/* ============================================================
   /i-box-del-orto/ — box selection page styles. Loaded only on
   this page via Elements::BoxesSelectPageStyles().
   Design follows the 2026-04 designer handoff (PDF page 4).
   ============================================================ */

/* ---------- Full-bleed page shell ----------
   Defeat GeneratePress's .grid-container max-width so the page
   renders edge-to-edge per the design. Body + content area both
   take the sand palette; white cards inside provide the rhythm.
   Header / nav are unaffected.
*/
body.page-id-40785,
body.page-template-page-i-box-del-orto {
	background: var(--light-sand);
}
body.page-id-40785 #page.site,
body.page-id-40785 #content.site-content,
body.page-id-40785 #primary,
body.page-id-40785 #main,
body.page-id-40785 .inside-article,
body.page-id-40785 .entry-content,
body.page-template-page-i-box-del-orto #page.site,
body.page-template-page-i-box-del-orto #content.site-content,
body.page-template-page-i-box-del-orto #primary,
body.page-template-page-i-box-del-orto #main,
body.page-template-page-i-box-del-orto .inside-article,
body.page-template-page-i-box-del-orto .entry-content {
	max-width: 100%;
	width: 100%;
	padding: 0;
	margin: 0;
	background: transparent;
}
/* Strip GP's "decorative dot before/after" on .entry-header for this page */
body.page-id-40785 .entry-header::before,
body.page-id-40785 .entry-header::after,
body.page-template-page-i-box-del-orto .entry-header::before,
body.page-template-page-i-box-del-orto .entry-header::after {
	display: none;
}

.ibox-page {
	width: 100%;
	margin: 0;
	padding: 0;
	font-family: Mulish, sans-serif;
	color: var(--dark-1);
	background: var(--light-sand);
}

.ibox-section-head {
	text-align: center;
	margin: 0 auto 40px;
	max-width: 720px;
}
.ibox-section-head h2 {
	font-family: Mulish, sans-serif;
	font-weight: 800;
	font-size: 32px;
	color: var(--grass);
	margin: 0 0 8px;
	line-height: 1.2;
}
.ibox-section-head p {
	font-size: 15px;
	color: var(--mid-grey);
	margin: 0;
	line-height: 1.5;
}

/* ---------- Hero ---------- */

.ibox-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	background: var(--sand);
	border-radius: 0;
	overflow: hidden;
	min-height: 50vh;
}
.ibox-hero-text {
	padding: 64px 56px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 18px;
}
.ibox-hero-text h1 {
	font-family: Mulish, sans-serif;
	font-weight: 800;
	font-size: 44px;
	line-height: 1.15;
	color: var(--grass);
	margin: 0;
}
.ibox-hero-lede {
	font-size: 17px;
	font-weight: 600;
	line-height: 1.45;
	color: var(--dark-1);
	margin: 0;
}
.ibox-hero-body {
	font-size: 14px;
	line-height: 1.55;
	color: var(--mid-grey);
	margin: 0;
}
.ibox-hero-image {
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	min-height: 360px;
}

/* ---------- Come funzionano i box ---------- */

.ibox-how {
	padding: 72px 24px;
	margin: 0;
	background: var(--light-sand);
}
.ibox-how-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
	max-width: 1200px;
	margin: 0 auto;
}
.ibox-step {
	background: var(--light-1);
	border-radius: 12px;
	padding: 28px 24px;
	box-shadow:
		0 1px 2px rgba(0, 0, 0, 0.025),
		0 4px 16px rgba(0, 0, 0, 0.04);
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.ibox-step-num {
	display: inline-block;
	background: var(--sand);
	color: var(--dark-1);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	padding: 4px 12px;
	border-radius: 999px;
	align-self: flex-start;
	text-transform: uppercase;
}
.ibox-step h3 {
	font-family: Mulish, sans-serif;
	font-weight: 800;
	font-size: 18px;
	color: var(--grass);
	margin: 8px 0 0;
	line-height: 1.3;
	display: flex;
	align-items: center;
	gap: 10px;
}
.ibox-step-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	color: var(--grass);
	flex: 0 0 auto;
}
.ibox-step-icon svg {
	width: 22px;
	height: 22px;
}
.ibox-step p {
	font-size: 14px;
	color: var(--mid-grey);
	line-height: 1.5;
	margin: 0;
}

/* ---------- Box selection (the [boxes-available] shortcode) ---------- */

.ibox-boxes {
	padding: 72px 24px;
	background: var(--light-sand);
}

/* Override the legacy `padding: 60px 0 !important` that was the only thing
   inside this scope — the section already has its own padding. */
.ibox-boxes .box-wrapper {
	max-width: 1200px;
	padding: 0 !important;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
	gap: 24px;
}

.ibox-boxes .single-box {
	background: var(--light-1);
	border: 1px solid var(--light-3);
	border-radius: 12px;
	margin: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow:
		0 1px 2px rgba(0, 0, 0, 0.025),
		0 8px 24px rgba(0, 0, 0, 0.04);
	transition: transform 180ms ease, box-shadow 180ms ease;
}
.ibox-boxes .single-box:hover {
	transform: translateY(-2px);
	box-shadow:
		0 2px 4px rgba(0, 0, 0, 0.03),
		0 12px 32px rgba(18, 104, 63, 0.08);
}

.ibox-boxes .box-bgr {
	width: 100%;
	height: 200px;
	background-position: center !important;
	background-size: cover !important;
	border-radius: 0;
	max-height: none;
	position: relative;
}
.ibox-boxes .box-bgr .box-ref-id {
	position: absolute;
	top: 12px;
	right: 12px;
	font-size: 11px;
	font-weight: 600;
	background: rgba(0, 0, 0, 0.55);
	color: var(--light-1);
	padding: 3px 10px;
	border-radius: 999px;
	letter-spacing: 0.02em;
}

.ibox-boxes .box-products-wrap {
	padding: 24px !important;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
}

.ibox-boxes .box-hentry {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	padding: 0 0 12px;
	margin: 0 0 16px;
	border-bottom: 1px solid var(--light-3);
}
.ibox-boxes .box-hentry h3 {
	font-family: Mulish, sans-serif;
	font-weight: 800;
	font-size: 22px;
	color: var(--dark-1);
	margin: 0;
	line-height: 1.2;
}
.ibox-boxes .box-hentry > span {
	font-family: Mulish, sans-serif;
	font-weight: 800;
	font-size: 18px;
	color: var(--grass);
	margin: 0;
	white-space: nowrap;
}

.ibox-boxes h4 {
	font-family: Mulish, sans-serif;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--mid-grey);
	margin: 0 0 12px;
}

.ibox-boxes .products-in-box ul {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}
.ibox-boxes .products-in-box li {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	background: transparent;
	font-size: 14px;
	font-weight: 500;
	color: var(--dark-1);
	padding: 0 0 0 24px;
	line-height: 1.4;
	white-space: normal;
}
.ibox-boxes .products-in-box li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--grass);
	background-image:
		linear-gradient(45deg, transparent 50%, var(--light-1) 50%, var(--light-1) 60%, transparent 60%),
		linear-gradient(-45deg, transparent 35%, var(--light-1) 35%, var(--light-1) 50%, transparent 50%);
	background-size: 100% 100%;
	background-repeat: no-repeat;
	font-family: inherit;
	color: transparent;
	margin: 0;
}
.ibox-boxes .products-in-box li strong {
	font-weight: 500;
	text-transform: lowercase;
}
.ibox-boxes .products-in-box li strong::first-letter {
	text-transform: uppercase;
}

.ibox-boxes .single-box button {
	margin-top: auto;
	width: 100%;
	padding: 12px 20px;
	font-family: Mulish, sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: var(--light-1) !important;
	background: var(--grass) !important;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background 150ms ease;
}
.ibox-boxes .single-box button:hover {
	background: var(--olive) !important;
}

.ibox-boxes .log-in-first {
	margin-top: auto;
	padding: 12px;
	background: var(--light-2);
	border-radius: 8px;
	text-align: center;
	font-size: 13px;
	color: var(--mid-grey);
}
.ibox-boxes .log-in-first a {
	color: var(--grass);
	font-weight: 700;
	text-decoration: underline;
}

/* ---------- Personalizzare il tuo box (products grid) ---------- */

.ibox-products {
	padding: 72px 24px 80px;
	background: var(--light-sand);
}
.ibox-products .home-product-list {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 24px;
}

/* ---------- Mobile ---------- */

@media screen and (max-width: 850px) {
	.ibox-hero {
		grid-template-columns: 1fr;
		margin-bottom: 40px;
	}
	.ibox-hero-text {
		padding: 36px 24px;
	}
	.ibox-hero-text h1 {
		font-size: 32px;
	}
	.ibox-hero-image {
		min-height: 220px;
	}

	.ibox-section-head h2 {
		font-size: 26px;
	}

	.ibox-how,
	.ibox-boxes,
	.ibox-products {
		padding: 40px 16px;
	}

	.ibox-boxes .box-wrapper {
		grid-template-columns: 1fr !important;
	}

	.ibox-products .home-product-list {
		grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
		gap: 14px;
	}
}
