/* ============================================================
   OPIFICIO DELLA BADANTE — Pagina Manifesto (template-manifesto.php)
   Long-form editoriale: hero, articolo a 2 colonne con sidebar sticky,
   banda foto full-bleed, griglia curiosità, step numerati, CTA Gamma.
   Solo classi BEM prefissate odb-mf- e token --odb-*.
   Breakpoint standard: md 900 (switch mobile↔desktop), sm 640.
   ============================================================ */

.odb-mf { position: relative; }

/* ============================================================
   HERO APERTURA
   ============================================================ */
.odb-mf-hero {
	padding-top: clamp(110px, 14vh, 160px);
	padding-bottom: clamp(64px, 10vh, 120px);
	border-bottom: 1px solid var(--odb-hair);
}
.odb-mf-hero__eyebrow {
	font-family: var(--odb-font-mono);
	font-size: calc(.7rem * var(--ts));
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--odb-ink-soft);
	margin: 0 0 clamp(24px, 4vh, 40px);
}
.odb-mf-hero__claim {
	font-family: var(--odb-font-display);
	font-weight: 500;
	font-style: italic;
	font-size: calc(clamp(2.4rem, 6.5vw, 6rem) * var(--ts));
	line-height: 1.02;
	letter-spacing: -0.01em;
	color: var(--odb-ink);
	margin: 0 0 clamp(32px, 5vh, 56px);
	max-width: 20ch;
	text-wrap: pretty;
}
.odb-mf-hero__claim em { font-style: normal; font-weight: 600; }
.odb-mf-hero__intro {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 80px);
	align-items: start;
}
@media (max-width: 640px) {
	.odb-mf-hero__intro { grid-template-columns: 1fr; }
}
.odb-mf-hero__lead {
	font-family: var(--odb-font-display);
	font-weight: 500;
	font-size: calc(clamp(1.25rem, 2.6vw, 1.9rem) * var(--ts));
	line-height: 1.3;
	letter-spacing: -0.005em;
	color: var(--odb-ink);
	margin: 0;
	text-wrap: pretty;
}
.odb-mf-hero__body {
	font-family: var(--odb-font-sans);
	font-size: calc(.96rem * var(--ts));
	line-height: 1.8;
	color: var(--odb-ink-soft);
	margin: 0;
}

/* ============================================================
   ARTICOLO — scaffold sezioni 01/02/03
   ============================================================ */
.odb-mf-article {
	padding-block: clamp(72px, 11vh, 140px);
	border-bottom: 1px solid var(--odb-hair);
}
.odb-mf-article--last { border-bottom: none; }

.odb-mf-label {
	display: flex;
	align-items: center;
	gap: 16px;
	font-family: var(--odb-font-mono);
	font-size: calc(.68rem * var(--ts));
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--odb-ink-soft);
	margin: 0 0 clamp(40px, 6vh, 72px);
}
.odb-mf-label__idx {
	font-size: calc(.62rem * var(--ts));
	color: var(--odb-hair);
}
.odb-mf-label::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--odb-hair);
}

/* layout due colonne: testo + sidebar */
.odb-mf-cols {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(40px, 6vw, 100px);
	align-items: start;
}
@media (min-width: 900px) {
	.odb-mf-cols { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
}

/* colonna testo principale */
.odb-mf-text h2 {
	font-family: var(--odb-font-title);
	font-weight: 600;
	font-size: calc(clamp(1.6rem, 3.4vw, 2.6rem) * var(--ts));
	letter-spacing: -0.025em;
	line-height: 1.05;
	margin: 0 0 clamp(20px, 3vh, 32px);
}
.odb-mf-text__body p {
	font-family: var(--odb-font-sans);
	font-size: calc(1rem * var(--ts));
	line-height: 1.82;
	color: var(--odb-ink-soft);
	margin: 0 0 1.5em;
	max-width: 62ch;
	text-wrap: pretty;
}
.odb-mf-text__body p:last-child { margin-bottom: 0; }
.odb-mf-text__body strong { color: var(--odb-ink); font-weight: 600; }

/* drop cap sul primo paragrafo del corpo */
.odb-mf-text__body > p:first-of-type::first-letter {
	font-family: var(--odb-font-display);
	font-weight: 600;
	font-size: 3.8em;
	line-height: 0.78;
	float: left;
	margin: 0.06em 0.1em 0 0;
	color: var(--odb-ink);
}

/* sidebar sticky */
.odb-mf-sidebar {
	display: flex;
	flex-direction: column;
	gap: clamp(28px, 4vh, 48px);
}
@media (min-width: 900px) {
	.odb-mf-sidebar { position: sticky; top: 88px; }
}
.odb-mf-note {
	padding: clamp(18px, 2.4vw, 26px);
	border: 1px solid var(--odb-hair);
	background: var(--odb-bg-deep);
}
.odb-mf-note__label {
	font-family: var(--odb-font-mono);
	font-size: calc(.62rem * var(--ts));
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--odb-ink-soft);
	display: block;
	margin-bottom: 10px;
}
.odb-mf-note p {
	font-family: var(--odb-font-mono);
	font-size: calc(.8rem * var(--ts));
	line-height: 1.65;
	color: var(--odb-ink);
	margin: 0;
}
.odb-mf-note p + p { margin-top: 0.8em; }

/* pull quote */
.odb-mf-pull {
	font-family: var(--odb-font-display);
	font-style: italic;
	font-weight: 500;
	font-size: calc(clamp(1.2rem, 2.4vw, 1.75rem) * var(--ts));
	line-height: 1.28;
	letter-spacing: -0.005em;
	color: var(--odb-ink);
	margin: 0;
	text-wrap: pretty;
	padding-left: clamp(18px, 2.4vw, 32px);
	border-left: 2px solid var(--odb-ink);
}
.odb-mf-pull__attr {
	font-family: var(--odb-font-mono);
	font-size: calc(.66rem * var(--ts));
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--odb-ink-soft);
	margin-top: 16px;
	display: block;
}

/* ============================================================
   BANDA FOTO — Territorio (full-bleed, taglio diagonale)
   ============================================================ */
.odb-mf-photoband {
	margin: clamp(56px, 8vh, 100px) 0;
	position: relative;
	overflow: hidden;
	clip-path: polygon(0 0, 100% 8%, 100% 100%, 0 92%);
}
.odb-mf-photoband img {
	width: 100%;
	height: clamp(440px, 70vh, 860px);
	object-fit: cover;
	display: block;
	filter: grayscale(.1) contrast(1.03);
}
.odb-mf-photoband figcaption {
	position: absolute;
	top: 50%;
	left: var(--odb-pad);
	transform: translateY(-50%);
	font-family: var(--odb-font-mono);
	font-size: calc(.7rem * var(--ts));
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--odb-bg);
	background: rgba(26, 23, 18, .55);
	padding: 7px 12px;
	border: 1px solid rgba(255, 255, 255, .15);
}

/* ============================================================
   CURIOSITÀ — griglia con divisori a 1px
   ============================================================ */
.odb-mf-facts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1px;
	background: var(--odb-hair);
	border: 1px solid var(--odb-hair);
	margin-top: clamp(40px, 6vh, 64px);
}
.odb-mf-fact {
	background: var(--odb-bg);
	padding: clamp(24px, 3vw, 36px);
}
.odb-mf-fact__n {
	font-family: var(--odb-font-display);
	font-style: italic;
	font-weight: 500;
	font-size: calc(2.4rem * var(--ts));
	line-height: 1;
	color: var(--odb-hair);
	margin: 0 0 12px;
}
.odb-mf-fact__label {
	font-family: var(--odb-font-mono);
	font-size: calc(.62rem * var(--ts));
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--odb-ink-soft);
	display: block;
	margin: 0 0 8px;
}
.odb-mf-fact__text {
	font-family: var(--odb-font-sans);
	font-size: calc(.9rem * var(--ts));
	line-height: 1.65;
	color: var(--odb-ink);
	margin: 0;
}

/* ============================================================
   METODO — testa introduttiva + step numerati
   ============================================================ */
.odb-mf-metodo-head { margin-bottom: clamp(8px, 2vh, 20px); }
.odb-mf-metodo-head h2 {
	font-family: var(--odb-font-title);
	font-weight: 600;
	font-size: calc(clamp(1.6rem, 3.4vw, 2.6rem) * var(--ts));
	letter-spacing: -0.025em;
	line-height: 1.05;
	margin: 0 0 clamp(20px, 3vh, 32px);
	max-width: 22ch;
}
.odb-mf-metodo-head__intro {
	font-family: var(--odb-font-sans);
	font-size: calc(1rem * var(--ts));
	line-height: 1.82;
	color: var(--odb-ink-soft);
	margin: 0;
	max-width: 62ch;
	text-wrap: pretty;
}
.odb-mf-steps {
	display: flex;
	flex-direction: column;
	border-top: 1px solid var(--odb-hair);
	margin-top: clamp(28px, 4vh, 44px);
}
.odb-mf-step {
	display: grid;
	grid-template-columns: clamp(48px, 6vw, 80px) minmax(0, 1fr);
	grid-template-areas: "num body";
	gap: clamp(20px, 3vw, 48px);
	padding: clamp(28px, 4vh, 44px) 0;
	border-bottom: 1px solid var(--odb-hair-soft);
	align-items: start;
}
/* Step con immagine: aggiunge la colonna media a destra (le forme blob). */
.odb-mf-step--has-media {
	grid-template-columns: clamp(48px, 6vw, 80px) minmax(0, 1fr) auto;
	grid-template-areas: "num body media";
}
/* Bande sfalsate: gli step pari sono più stretti (85%) e allineati a sinistra,
   così le righe/bande non terminano tutte allo stesso punto (dispari 100%, pari 85%). */
.odb-mf-steps .odb-mf-step:nth-child(even) {
	width: 85%;
	align-self: flex-start;
}
.odb-mf-step__n { grid-area: num; }
.odb-mf-step__body { grid-area: body; }
.odb-mf-step__media {
	grid-area: media;
	align-self: center;
	width: clamp(210px, 26vw, 360px);
	aspect-ratio: 16 / 9;
	margin: 0;
	overflow: hidden;
	background: var(--odb-bg-deep);
	border-radius: 63% 37% 54% 46% / 58% 49% 51% 42%;
}
.odb-mf-step__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(.1) contrast(1.02);
}
/* Forme blob organiche: stessa "ricetta" dello step 2 (angoli sinistri più larghi,
   destri più corti) con piccole variazioni → i lati del rettangolo restano leggibili
   invece di arrotondarsi in un'ellisse, e ogni step ha una silhouette leggermente diversa. */
.odb-mf-steps .odb-mf-step:nth-child(5n+1) .odb-mf-step__media { border-radius: 45% 55% 38% 62% / 58% 42% 58% 40%; }
.odb-mf-steps .odb-mf-step:nth-child(5n+2) .odb-mf-step__media { border-radius: 40% 60% 33% 67% / 62% 38% 62% 37%; }
.odb-mf-steps .odb-mf-step:nth-child(5n+3) .odb-mf-step__media { border-radius: 35% 62% 42% 58% / 60% 40% 64% 36%; }
.odb-mf-steps .odb-mf-step:nth-child(5n+4) .odb-mf-step__media { border-radius: 48% 54% 30% 66% / 55% 44% 60% 38%; }
.odb-mf-steps .odb-mf-step:nth-child(5n+5) .odb-mf-step__media { border-radius: 42% 58% 36% 64% / 63% 36% 57% 43%; }
.odb-mf-step__n {
	font-family: var(--odb-font-display);
	font-style: italic;
	font-weight: 500;
	font-size: calc(clamp(2rem, 4vw, 3.2rem) * var(--ts));
	line-height: 1;
	color: var(--odb-hair);
	margin: 0;
	padding-top: 4px;
}
.odb-mf-step__body h3 {
	font-family: var(--odb-font-title);
	font-weight: 600;
	font-size: calc(clamp(1.1rem, 2.2vw, 1.55rem) * var(--ts));
	letter-spacing: -0.02em;
	line-height: 1.1;
	margin: 0 0 12px;
}
.odb-mf-step__body p {
	font-family: var(--odb-font-sans);
	font-size: calc(.94rem * var(--ts));
	line-height: 1.78;
	color: var(--odb-ink-soft);
	margin: 0;
	max-width: 58ch;
	text-wrap: pretty;
}
/* Mobile: l'immagine dello step va sotto il testo, allineata alla colonna body. */
@media (max-width: 640px) {
	.odb-mf-step--has-media {
		grid-template-columns: clamp(40px, 10vw, 56px) minmax(0, 1fr);
		grid-template-areas:
			"num body"
			".   media";
		row-gap: clamp(16px, 4vw, 26px);
	}
	.odb-mf-step__media {
		align-self: start;
		width: clamp(220px, 66vw, 340px);
	}
	/* niente bande sfalsate su mobile: gli step tornano a tutta larghezza */
	.odb-mf-steps .odb-mf-step:nth-child(even) {
		width: auto;
		align-self: stretch;
	}
}

/* chiusura — citazione manifesto */
.odb-mf-close {
	margin-top: clamp(48px, 7vh, 80px);
	padding-top: clamp(40px, 6vh, 64px);
	border-top: 1px solid var(--odb-hair);
}
.odb-mf-close__quote {
	font-family: var(--odb-font-display);
	font-style: italic;
	font-weight: 500;
	font-size: calc(clamp(1.5rem, 3vw, 2.4rem) * var(--ts));
	line-height: 1.28;
	letter-spacing: -0.005em;
	color: var(--odb-ink);
	margin: 0;
	max-width: 48ch;
	text-wrap: pretty;
}
.odb-mf-close__attr {
	font-family: var(--odb-font-mono);
	font-size: calc(.66rem * var(--ts));
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--odb-ink-soft);
	margin: 20px 0 0;
}

/* ============================================================
   CTA GAMMA — centrata
   ============================================================ */
.odb-mf-cta {
	padding-block: clamp(80px, 12vh, 140px);
	border-top: 1px solid var(--odb-hair);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: clamp(24px, 4vh, 40px);
}
.odb-mf-cta__eyebrow {
	font-family: var(--odb-font-mono);
	font-size: calc(.7rem * var(--ts));
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--odb-ink-soft);
	margin: 0;
}
.odb-mf-cta__title {
	font-family: var(--odb-font-display);
	font-style: italic;
	font-weight: 500;
	font-size: calc(clamp(2rem, 6vw, 5rem) * var(--ts));
	line-height: 1;
	letter-spacing: -0.01em;
	color: var(--odb-ink);
	margin: 0;
	max-width: 16ch;
	text-wrap: balance;
}
.odb-mf-cta__btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: var(--odb-font-mono);
	font-size: calc(.76rem * var(--ts));
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--odb-bg);
	background: var(--odb-ink);
	border: 1px solid var(--odb-ink);
	padding: 16px 32px;
	transition: background-color .25s var(--odb-ease), border-color .25s var(--odb-ease);
}
.odb-mf-cta__btn:hover,
.odb-mf-cta__btn:focus-visible {
	background: var(--odb-wine);
	border-color: var(--odb-wine);
}
