/*
 Theme Name: Divi Child
 Description: JE.MAR – child theme di Divi. Sorgente: je.mar/tools (non modificare qui: viene sovrascritto da tools/theme.mjs)
 Template: Divi
 Version: 1.0.202610281658
*/
/* =========================================================
   JE.MAR – bozza statica v2
   Un componente = una classe riutilizzabile (diventerà il CSS del child theme Divi).
   Animazioni: js/main.js (GSAP + ScrollTrigger). Senza JS tutto resta visibile.
   ========================================================= */

/* ---------- Variabili (palette del Manuale Brand Identity) ---------- */
:root {
  --verde: #95BD61;
  --verde-scuro: #5E8433;
  --verde-chiaro: #E3EED3;
  --viola: #8B328A;
  --viola-scuro: #60295A;
  --beige: #E5D1AA;
  --avorio: #F4E9D1;
  --carta: #FAF6EC;
  --marrone: #44392F;
  --marrone-2: #2B231D;
  --testo: #44392F;
  --testo-2: #6E6357;
  --bianco: #fff;

  --f-titoli: "Bricolage Grotesque", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-testo: "Manrope", system-ui, sans-serif;

  --w: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --sez: clamp(72px, 8.5vw, 124px);
  --r: 28px;
  --r-s: 14px;
  --ease: cubic-bezier(.22, .8, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body {
  margin: 0; background: var(--carta); color: var(--testo);
  font: 400 17px/1.65 var(--f-testo); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--f-titoli); font-weight: 650; color: var(--marrone);
  line-height: 1.02; letter-spacing: -.035em; margin: 0 0 .45em;
  font-variation-settings: "opsz" 96;
}
h1 { font-size: clamp(2.9rem, 8vw, 7.4rem); }
h2 { font-size: clamp(2.3rem, 5.2vw, 4.6rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0 0 1.1em; }
::selection { background: var(--verde); color: var(--marrone); }

/* parola in corsivo serif dentro i titoli */
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.c-viola { color: var(--viola); }
.c-verde { color: var(--verde); }

.wrap { width: min(var(--w), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sezione { padding-block: var(--sez); position: relative; }
.chiaro { color: var(--avorio); }
.chiaro h1, .chiaro h2, .chiaro h3 { color: #fff; }

.etichetta {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
  font: 600 .76rem/1 var(--f-testo); letter-spacing: .18em; text-transform: uppercase; color: var(--viola);
}
.etichetta::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--verde); }
.chiaro .etichetta { color: var(--verde); }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.32rem); line-height: 1.55; color: var(--testo-2); max-width: 620px; }
.chiaro .lead { color: #DCCFB8; }
.testa { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-bottom: clamp(44px, 6vw, 80px); }
.testa h2 { max-width: 760px; margin: 0; }
.testa .lead { margin: 0; max-width: 420px; }

/* ---------- Pulsanti ---------- */
.btn {
  --bg: var(--marrone); --fg: var(--avorio);
  display: inline-flex; align-items: center; gap: 14px; position: relative; overflow: hidden; isolation: isolate;
  padding: 8px 8px 8px 26px; border-radius: 999px; background: var(--bg); color: var(--fg);
  font: 600 .98rem/1 var(--f-testo); text-decoration: none; border: 0; cursor: pointer;
  transition: color .4s var(--ease);
}
.btn__ico {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--verde); color: var(--marrone); overflow: hidden; position: relative;
}
.btn__ico svg { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.btn:hover .btn__ico svg { transform: rotate(-45deg); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--viola); clip-path: circle(0 at calc(100% - 29px) 50%); transition: clip-path .6s var(--ease);
}
.btn:hover::before { clip-path: circle(150% at calc(100% - 29px) 50%); }
.btn:hover { color: #fff; }
.btn--chiaro { --bg: var(--avorio); --fg: var(--marrone); }
.btn--verde { --bg: var(--verde); --fg: var(--marrone); }
.btn--verde .btn__ico { background: var(--marrone); color: var(--verde); }
.btn--vuoto { --bg: transparent; --fg: currentColor; padding: 16px 4px; }
.btn--vuoto::before { display: none; }
.btn--vuoto span:first-child { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 4px; transition: background-size .5s var(--ease); }
.btn--vuoto:hover span:first-child { background-size: 0 1px; background-position: 100% 100%; }
.btn--vuoto:hover { color: inherit; }
.azioni { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; }

/* ---------- Header a pillola (si nasconde scendendo, riappare risalendo) ---------- */
.header {
  position: fixed; top: 12px; left: 12px; right: 12px; z-index: 80;
  max-width: 1400px; margin-inline: auto; height: 68px; padding: 0 10px 0 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(68, 57, 47, .08);
  border-radius: 20px; box-shadow: 0 1px 0 rgba(68, 57, 47, .06), 0 18px 40px -26px rgba(43, 35, 29, .5);
  transition: transform .6s var(--ease);
}
.header.is-nascosto { transform: translateY(calc(-100% - 20px)); }
.header__logo { display: block; flex: none; }
.header__logo img { height: 46px; width: auto; }
.menu { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.menu a:not(.btn) {
  display: block; padding: 10px 16px; border-radius: 999px; text-decoration: none;
  font: 600 .93rem/1 var(--f-testo); color: var(--marrone); transition: background .3s, color .3s;
}
.menu a:not(.btn):hover { background: var(--avorio); }
.menu a[aria-current="page"] { background: var(--marrone); color: var(--avorio) !important; }
.menu li:last-child { margin-left: 8px; }
.menu .btn { padding: 6px 6px 6px 20px; font-size: .9rem; }
.menu .btn .btn__ico { width: 36px; height: 36px; }
.burger { display: none; }

/* ---------- Transizione tra le pagine ---------- */
.sipario {
  position: fixed; inset: 0; z-index: 100; background: var(--marrone); pointer-events: none;
  display: grid; place-items: center; transform: translateY(-100%);
}
.sipario img { width: 70px; }
.js .sipario { transform: none; }

/* ---------- HERO HOME: foto a tutto schermo con cornice che si stringe allo scroll ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; padding: 12px; }
.hero__cornice { position: relative; height: 100%; border-radius: var(--r); overflow: hidden; background: var(--marrone); isolation: isolate; }
.hero__cornice > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__cornice::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 60% at 50% 55%, rgba(43, 35, 29, .62), rgba(43, 35, 29, .8)), linear-gradient(180deg, rgba(43, 35, 29, .5), transparent 30%);
}
.hero__contenuto { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 120px var(--gutter) 90px; color: #fff; }
.hero h1 { color: #fff; max-width: 1100px; }
.hero h1 .serif { color: var(--verde); }
.hero .lead { color: #EADFCB; text-align: center; margin: 4px auto 36px; max-width: 640px; }
.hero__piede {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end;
  padding: 0 clamp(20px, 3vw, 40px) clamp(20px, 3vw, 34px); color: #EADFCB; font-size: .85rem; gap: 20px;
}
.hero__chip { display: flex; gap: 8px; flex-wrap: wrap; }
.hero__chip span { padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .16); }
.hero__scroll { display: flex; align-items: center; gap: 12px; }
.hero__scroll i { width: 1px; height: 46px; background: rgba(255, 255, 255, .3); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--verde); animation: goccia 2s var(--ease) infinite; }
@keyframes goccia { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

/* ---------- Testo che si "accende" scorrendo ---------- */
.manifesto { padding-block: clamp(80px, 10vw, 140px); }
.manifesto__testo {
  font: 500 clamp(1.7rem, 3.6vw, 3.2rem)/1.22 var(--f-titoli); letter-spacing: -.03em; color: var(--marrone);
  max-width: 1180px; margin: 0;
}
.manifesto__testo .serif { color: var(--viola); }
.manifesto__simbolo { width: 54px; margin-bottom: 36px; }
.js .accendi .p { opacity: .14; }

/* ---------- Numeri ---------- */
.numeri { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(68, 57, 47, .15); }
.numero { padding: 32px 28px 0 0; border-right: 1px solid rgba(68, 57, 47, .15); margin-right: 28px; }
.numero:last-child { border-right: 0; margin-right: 0; }
.numero strong { display: block; font: 600 clamp(3rem, 6.5vw, 5.8rem)/1 var(--f-titoli); letter-spacing: -.05em; color: var(--marrone); }
.numero strong sup { font-size: .4em; color: var(--verde-scuro); vertical-align: top; margin-left: 4px; position: relative; top: .4em; }
.numero > span { display: block; margin-top: 14px; color: var(--testo-2); font-size: .95rem; max-width: 200px; }

/* ---------- Prodotti: scorrimento orizzontale bloccato ---------- */
.orizzontale { background: var(--marrone-2); color: var(--avorio); overflow: hidden; }
.orizzontale__pista { display: flex; gap: 24px; padding: clamp(100px, 12vh, 140px) var(--gutter) clamp(60px, 9vh, 100px); width: max-content; align-items: stretch; height: 100svh; min-height: 640px; }
.pannello { flex: none; width: min(78vw, 1040px); border-radius: var(--r); overflow: hidden; position: relative; isolation: isolate; }
.pannello--intro { width: min(46vw, 560px); display: flex; flex-direction: column; justify-content: space-between; padding: 20px 20px 10px 0; border-radius: 0; }
.pannello--intro h2 { color: #fff; }
.pannello--intro .lead { color: #CFC3AE; }
.pannello__conta { font: 500 .9rem/1 var(--f-testo); color: #9C9080; display: flex; align-items: center; gap: 14px; }
.pannello__conta b { width: 160px; height: 2px; background: rgba(244, 233, 209, .15); position: relative; overflow: hidden; }
.pannello__conta b::after { content: ""; position: absolute; inset: 0; background: var(--verde); transform-origin: left; transform: scaleX(var(--prog, 0)); }
.pannello__foto { position: absolute; inset: 0; z-index: -2; }
.pannello__foto img { width: 115%; max-width: none; height: 100%; object-fit: cover; }
.pannello::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(43, 35, 29, .9) 0%, rgba(43, 35, 29, .1) 55%); }
.pannello__testo { position: absolute; left: 0; bottom: 0; right: 0; padding: clamp(26px, 3.5vw, 48px); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.pannello__testo h3 { color: #fff; font-size: clamp(2rem, 4.4vw, 4rem); letter-spacing: -.04em; margin-bottom: 10px; }
.pannello__testo p { color: #E2D6C0; margin: 0; max-width: 480px; }
.pannello__num { position: absolute; top: 28px; left: 32px; font: 600 .8rem/1 var(--f-testo); letter-spacing: .2em; color: var(--verde); }
.pannello--avorio { background: var(--avorio); color: var(--testo); width: min(60vw, 760px); padding: clamp(30px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; }
.pannello--avorio::after { display: none; }
.pannello--avorio h3 { font-size: clamp(2rem, 3.6vw, 3.4rem); letter-spacing: -.04em; }
.lista-spunta { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 0; }
.lista-spunta li { display: flex; gap: 14px; padding: 15px 0; border-top: 1px solid rgba(68, 57, 47, .14); font-weight: 600; color: var(--marrone); }
.lista-spunta li::before { content: "✓"; color: var(--verde-scuro); font-weight: 800; }

/* ---------- Applicazioni: schede che cambiano scorrendo (sezione bloccata) ---------- */
.schede { background: var(--carta); }
.schede__griglia { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 100px); align-items: center; min-height: 100svh; padding-block: 110px 60px; }
.schede__elenco { list-style: none; margin: 0; padding: 0; }
.scheda { border-top: 1px solid rgba(68, 57, 47, .15); padding: 22px 0; cursor: pointer; }
.scheda:last-child { border-bottom: 1px solid rgba(68, 57, 47, .15); }
.scheda__titolo { display: flex; align-items: baseline; gap: 18px; font: 600 clamp(1.7rem, 3.4vw, 3rem)/1.05 var(--f-titoli); letter-spacing: -.04em; color: rgba(68, 57, 47, .22); transition: color .5s var(--ease); }
.scheda__titolo small { font: 600 .8rem/1 var(--f-testo); letter-spacing: .1em; color: inherit; }
.scheda__corpo { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.scheda__corpo > div { overflow: hidden; }
.scheda__corpo p { color: var(--testo-2); margin: 14px 0 0; max-width: 460px; }
.scheda__barra { height: 2px; background: rgba(68, 57, 47, .1); margin-top: 18px; position: relative; overflow: hidden; }
.scheda__barra::after { content: ""; position: absolute; inset: 0; background: var(--viola); transform-origin: left; transform: scaleX(var(--prog, 0)); }
.scheda.is-attiva .scheda__titolo { color: var(--marrone); }
.scheda.is-attiva .scheda__corpo { grid-template-rows: 1fr; }
.schede__media { position: relative; aspect-ratio: 5 / 5.4; border-radius: var(--r); overflow: hidden; background: var(--avorio); }
.schede__media figure { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.08); transition: opacity .8s var(--ease), transform 1.4s var(--ease); }
.schede__media figure.is-attiva { opacity: 1; transform: none; }
.schede__media img { width: 100%; height: 100%; object-fit: cover; }
.schede__media figcaption {
  position: absolute; left: 20px; bottom: 20px; right: 20px; display: flex; align-items: center; gap: 14px;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); border-radius: 18px; padding: 14px 18px;
  font-size: .9rem; color: var(--testo-2); line-height: 1.35;
}
.schede__media figcaption strong { display: block; color: var(--marrone); font-family: var(--f-titoli); font-size: 1.05rem; }
.schede__media figcaption svg { width: 40px; height: 40px; flex: none; padding: 9px; border-radius: 12px; background: var(--verde-chiaro); color: var(--verde-scuro); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.scheda__img-mobile { display: none; }

/* ---------- Territorio: immagine che si espande fino a tutto schermo ---------- */
.espandi { position: relative; height: 100svh; min-height: 600px; overflow: hidden; display: grid; place-items: center; background: var(--carta); }
.espandi__foto { position: absolute; inset: 0; clip-path: inset(18% 26% 18% 26% round 28px); }
.espandi__foto img { width: 100%; height: 100%; object-fit: cover; }
.espandi__foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(43, 35, 29, .9) 0%, rgba(43, 35, 29, .35) 45%, rgba(43, 35, 29, .15)); opacity: var(--scuro, 0); }
.espandi__parola {
  position: relative; z-index: 2; font: 700 clamp(4rem, 17vw, 17rem)/0.8 var(--f-titoli); letter-spacing: -.06em; color: #fff;
  pointer-events: none; text-align: center; margin: 0 0 8vh;
}
.espandi__testo { position: absolute; z-index: 3; left: 0; right: 0; bottom: clamp(30px, 6vh, 70px); text-align: center; color: #fff; padding: 0 var(--gutter); }
.espandi__testo p { max-width: 640px; margin: 0 auto 22px; font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: #F1E7D5; }
.espandi__coord { display: inline-flex; gap: 22px; flex-wrap: wrap; justify-content: center; font: 600 .75rem/1 var(--f-testo); letter-spacing: .2em; text-transform: uppercase; color: var(--beige); }

/* ---------- Carte impilate (metodo) ---------- */
.pila { display: grid; gap: 0; }
.carta {
  position: sticky; top: calc(100px + var(--i, 0) * 22px); height: clamp(400px, 62vh, 520px);
  border-radius: var(--r); padding: clamp(28px, 4vw, 56px); margin-bottom: 40px; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: auto minmax(0, 400px); gap: clamp(24px, 4vw, 56px); align-content: start; justify-content: start;
  transform-origin: center top; box-shadow: 0 -20px 50px -30px rgba(43, 35, 29, .5);
}
.carta:last-child { margin-bottom: 0; }
.carta::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #000; opacity: var(--buio, 0); pointer-events: none; z-index: 2; }
.carta__num { font: 600 clamp(4rem, 9vw, 8.5rem)/.8 var(--f-titoli); letter-spacing: -.06em; }
.carta__testo { display: flex; flex-direction: column; justify-content: flex-start; gap: 6px; padding-top: 8px; }
.carta__testo h3 { font-size: clamp(1.9rem, 3.4vw, 3rem); letter-spacing: -.04em; }
.carta__testo p { font-size: 1.08rem; max-width: 400px; }
/* foto su tutta la metà destra, sfumata nel colore della carta dove ci sono i testi */
.carta__foto {
  position: absolute; top: 0; right: 0; bottom: 0; width: 60%; z-index: -1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .3) 30%, #000 66%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .3) 30%, #000 66%);
}
.carta__foto img { width: 100%; height: 100%; object-fit: cover; }
.carta--avorio { background: var(--avorio); }
.carta--verde { background: var(--verde); }
.carta--verde .carta__testo p { color: var(--marrone); }
.carta--viola { background: var(--viola); color: #F5E6F4; }
.carta--viola h3, .carta--viola .carta__num { color: #fff; }
.carta--marrone { background: var(--marrone); color: var(--avorio); }
.carta--marrone h3 { color: #fff; }
.carta--marrone .carta__num { color: var(--verde); }
.carta--avorio .carta__num { color: var(--viola); }
.carta--verde .carta__num { color: var(--marrone); }

/* ---------- Nastri che scorrono (velocità legata allo scroll) ---------- */
.nastri { padding-block: clamp(56px, 7vw, 96px); overflow: hidden; display: grid; gap: 18px; }
.nastro { display: flex; width: max-content; gap: 18px; will-change: transform; }
.nastro__voce {
  flex: none; height: clamp(76px, 9vw, 120px); display: flex; align-items: center; gap: 18px;
  padding: 0 clamp(26px, 3vw, 44px); border-radius: 999px; white-space: nowrap;
  font: 600 clamp(1.8rem, 4vw, 3.4rem)/1 var(--f-titoli); letter-spacing: -.04em;
}
.nastro__voce--pieno { background: var(--marrone); color: var(--avorio); }
.nastro__voce--verde { background: var(--verde); color: var(--marrone); }
.nastro__voce--viola { background: var(--viola); color: #fff; }
.nastro__voce--bordo { border: 1.5px solid rgba(68, 57, 47, .25); color: var(--marrone); }
.nastro__voce--serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.nastro__foto { flex: none; height: clamp(76px, 9vw, 120px); aspect-ratio: 2 / 1; border-radius: 999px; overflow: hidden; }
.nastro__foto img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- CTA finale ---------- */
.finale { padding: 12px; }
.finale__box {
  position: relative; overflow: hidden; border-radius: var(--r); background: var(--viola-scuro); color: #F5E6F4;
  padding: clamp(56px, 7vw, 100px) clamp(24px, 5.5vw, 84px); isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .95fr); gap: clamp(36px, 5vw, 80px); align-items: center;
}
.finale__box::before {
  content: ""; position: absolute; width: 70vw; aspect-ratio: 1; right: -25vw; top: -30vw; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(149, 189, 97, .35), transparent 62%);
}
.finale .etichetta { color: var(--verde); }
.finale h2 { color: #fff; font-size: clamp(2.6rem, 5.6vw, 5.4rem); margin: 0; }
.finale h2 .serif { color: var(--verde); }
.finale p { color: #E6CFE4; max-width: 480px; margin: 24px 0 0; font-size: 1.08rem; }
.finale__azioni { display: flex; align-items: center; gap: 24px; margin-top: 36px; }
.finale__azioni small { color: #CDB3CA; font-size: .92rem; line-height: 1.4; max-width: 200px; }

/* scheda con i contatti diretti, a destra */
.finale__scheda {
  position: relative; z-index: 2; border-radius: 22px; padding: clamp(22px, 2.6vw, 34px);
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(6px);
}
.finale__scheda h3 { color: #fff; font-size: 1.25rem; margin: 0 0 14px; }
.finale__riga {
  display: grid; grid-template-columns: 46px 1fr auto; gap: 16px; align-items: center; padding: 16px 12px; margin: 0 -12px;
  border-top: 1px solid rgba(255, 255, 255, .12); text-decoration: none; border-radius: 14px;
  transition: background .35s, border-color .35s;
}
.finale__riga:first-of-type { border-top-color: transparent; }
.finale__riga:hover { background: rgba(149, 189, 97, .16); border-color: transparent; }
.finale__riga:hover + .finale__riga { border-top-color: transparent; }
.finale__riga > svg:first-child { width: 46px; height: 46px; padding: 12px; border-radius: 12px; background: rgba(149, 189, 97, .18); color: var(--verde); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.finale__riga small { display: block; font: 600 .7rem/1 var(--f-testo); letter-spacing: .16em; text-transform: uppercase; color: #CDB3CA; margin-bottom: 6px; }
.finale__riga strong { font: 600 1.08rem/1.3 var(--f-titoli); color: #fff; letter-spacing: -.01em; overflow-wrap: anywhere; }
.finale__riga > svg:last-child { width: 18px; height: 18px; color: #CDB3CA; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .4s var(--ease), color .3s; }
.finale__riga:hover > svg:last-child { transform: translateX(4px) rotate(-45deg); color: var(--verde); }
.finale__nota { display: flex; align-items: center; gap: 10px; margin: 16px 0 0 !important; font-size: .88rem !important; color: #CDB3CA !important; }
.finale__nota::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 0 4px rgba(149, 189, 97, .25); flex: none; }

.calamita {
  width: clamp(120px, 10vw, 148px); aspect-ratio: 1; border-radius: 50%; background: var(--verde); color: var(--marrone); flex: none;
  display: grid; place-items: center; text-align: center; text-decoration: none; font: 700 1rem/1.2 var(--f-titoli);
  transition: background .4s; position: relative; z-index: 2;
}
.calamita:hover { background: var(--avorio); }
.calamita span { display: block; pointer-events: none; }
.calamita svg { width: 24px; height: 24px; margin: 8px auto 0; display: block; }
.finale__pistacchi { position: absolute; left: 44%; bottom: -36px; width: clamp(130px, 15vw, 220px); z-index: -1; opacity: .95; pointer-events: none; }

/* ---------- Footer ---------- */
.footer { background: var(--carta); padding: clamp(70px, 8vw, 110px) 0 0; overflow: hidden; }
.footer__griglia { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(68, 57, 47, .15); }
.footer__griglia p { color: var(--testo-2); max-width: 300px; }
.footer h4 { font: 600 .74rem/1 var(--f-testo); letter-spacing: .2em; text-transform: uppercase; color: var(--testo-2); margin-bottom: 20px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; transition: color .3s; }
.footer a:hover { color: var(--viola); }
.footer__logo img { width: 190px; margin-bottom: 22px; }
.footer__basso { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 22px 0; font-size: .84rem; color: var(--testo-2); }
.footer__marchio {
  font: 700 clamp(5rem, 24vw, 25rem)/.74 var(--f-titoli); letter-spacing: -.07em; text-align: center; white-space: nowrap;
  color: var(--avorio); margin: 10px 0 0; user-select: none; overflow: hidden; padding-bottom: .02em;
}
.footer__marchio span { color: var(--beige); }

/* =========================================================
   PAGINE INTERNE
   ========================================================= */

/* Intestazione tipografica con mosaico di foto a velocità diverse (Azienda) */
.intro { padding: 150px 0 clamp(60px, 8vw, 110px); position: relative; }
.intro__griglia { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: end; }
.briciole { font-size: .85rem; color: var(--testo-2); margin-bottom: 26px; }
.briciole a { text-decoration: none; }
.briciole a:hover { color: var(--viola); }
.intro h1 .serif { color: var(--viola); }
.mosaico { position: relative; height: clamp(420px, 48vw, 640px); }
.mosaico figure { position: absolute; margin: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(43, 35, 29, .5); }
.mosaico figure img { width: 100%; height: 100%; object-fit: cover; }
.mosaico .m1 { left: 0; top: 4%; width: 52%; height: 70%; }
.mosaico .m2 { right: 0; top: 0; width: 42%; height: 46%; }
.mosaico .m3 { right: 6%; bottom: 0; width: 46%; height: 44%; }
.mosaico__bollino {
  position: absolute; left: 40%; bottom: 6%; z-index: 3; width: 130px; height: 130px; border-radius: 50%;
  background: var(--verde); display: grid; place-items: center;
}
.mosaico__bollino svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: ruota 18s linear infinite; }
.mosaico__bollino text { font: 700 10.5px var(--f-testo); letter-spacing: 2.6px; fill: var(--marrone); text-transform: uppercase; }
.mosaico__bollino img { width: 40px; }
@keyframes ruota { to { transform: rotate(360deg); } }

/* Titolo fermo a sinistra, testo che scorre a destra */
.fermo { display: grid; grid-template-columns: .85fr 1fr; gap: clamp(30px, 6vw, 110px); align-items: start; }
.fermo__titolo { position: sticky; top: 120px; }
.fermo__testo p { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.6; color: var(--testo-2); }
.fermo__testo p:first-child { font: 500 clamp(1.5rem, 2.4vw, 2.1rem)/1.3 var(--f-titoli); letter-spacing: -.025em; color: var(--marrone); }
.citazione {
  margin: 40px 0; padding: 34px 0 0; border-top: 1px solid rgba(68, 57, 47, .2);
  font: 400 clamp(1.8rem, 3vw, 2.6rem)/1.15 var(--f-serif); font-style: italic; color: var(--viola);
}

/* Valori: righe che si aprono, con foto che segue il cursore */
.valori-lista { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(244, 233, 209, .18); }
.valore-riga {
  display: grid; grid-template-columns: 80px 1fr 1.1fr; gap: 24px; align-items: center;
  padding: clamp(22px, 3vw, 36px) 0; border-bottom: 1px solid rgba(244, 233, 209, .18); position: relative;
  transition: padding .5s var(--ease);
}
.valore-riga::before { content: ""; position: absolute; inset: 0; background: var(--verde); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); z-index: 0; }
.valore-riga > * { position: relative; z-index: 1; transition: color .4s; }
.valore-riga small { font: 600 .8rem/1 var(--f-testo); color: var(--verde); letter-spacing: .1em; }
.valore-riga h3 { margin: 0; font-size: clamp(2rem, 5vw, 4.4rem); letter-spacing: -.05em; color: #fff; text-transform: capitalize; }
.valore-riga p { margin: 0; color: #CFC3AE; max-width: 420px; }
.valore-riga:hover::before { transform: scaleY(1); }
.valore-riga:hover h3, .valore-riga:hover p, .valore-riga:hover small { color: var(--marrone); }
.valore-riga:hover { padding-left: 20px; padding-right: 20px; }
.segui-foto {
  position: fixed; left: 0; top: 0; z-index: 60; width: 240px; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden;
  pointer-events: none; opacity: 0; scale: .6; transition: opacity .35s, scale .5s var(--ease);
}
.segui-foto.is-on { opacity: 1; scale: 1; }
.segui-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.segui-foto img.is-on { opacity: 1; }

/* Foto a tutta larghezza con testo sovrapposto (diversa dall'espansione della home) */
.banda-foto { position: relative; height: clamp(460px, 80vh, 760px); overflow: hidden; color: #fff; isolation: isolate; display: flex; align-items: flex-end; }
.banda-foto__bg { position: absolute; inset: -12% 0; z-index: -2; }
.banda-foto__bg img { width: 100%; height: 100%; object-fit: cover; }
.banda-foto::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(43, 35, 29, .85), rgba(43, 35, 29, .05) 65%); }
.banda-foto .wrap { padding-bottom: clamp(40px, 6vw, 80px); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.banda-foto h2 { color: #fff; margin: 0; }
.banda-foto p { color: #EADFCB; margin: 0; max-width: 480px; font-size: 1.1rem; }

/* Marchio: palette che si apre */
.marchio { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: center; }
.marchio__logo { background: #fff; border-radius: var(--r); aspect-ratio: 1; display: grid; place-items: center; position: relative; overflow: hidden; }
.marchio__logo img { width: 62%; }
.colori { display: flex; height: 120px; gap: 6px; margin-top: 34px; }
.colori div {
  flex: 1; border-radius: 14px; display: flex; align-items: flex-end; padding: 12px; font: 600 .72rem/1.25 var(--f-testo);
  transition: flex .6s var(--ease); overflow: hidden; white-space: nowrap; min-width: 0;
}
.colori div span { opacity: 0; transition: opacity .3s; }
.colori div:hover { flex: 3.2; }
.colori div:hover span { opacity: 1; }

/* Prodotti: due metà che si allargano al passaggio */
.meta { display: flex; gap: 12px; height: calc(100svh - 24px); min-height: 600px; padding: 12px; }
.meta__lato {
  flex: 1; position: relative; border-radius: var(--r); overflow: hidden; text-decoration: none; color: #fff; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(24px, 3.5vw, 50px);
  transition: flex 1s var(--ease);
}
.meta:hover .meta__lato { flex: .7; }
.meta .meta__lato:hover { flex: 1.5; }
.meta__lato img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); }
.meta__lato:hover img { transform: scale(1.06); }
.meta__lato::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(43, 35, 29, .88), rgba(43, 35, 29, .15) 60%); }
.meta__lato small { font: 600 .78rem/1 var(--f-testo); letter-spacing: .2em; text-transform: uppercase; color: var(--verde); margin-bottom: 14px; }
.meta__lato h2 { color: #fff; margin: 0 0 12px; }
.meta__lato p { color: #E2D6C0; max-width: 420px; margin: 0 0 20px; }
.meta__titolo {
  position: absolute; top: 110px; left: 0; right: 0; z-index: 4; text-align: center; color: #fff; pointer-events: none;
  font: 600 .8rem/1 var(--f-testo); letter-spacing: .2em; text-transform: uppercase;
}

/* Scheda prodotto: foto ferma, dati che scorrono */
.prodotto { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: start; }
.prodotto + .prodotto { margin-top: clamp(90px, 12vw, 160px); }
.prodotto__foto { margin: 0; position: sticky; top: 100px; height: calc(100svh - 130px); max-height: 760px; border-radius: var(--r); overflow: hidden; }
.prodotto__foto img { width: 100%; height: 100%; object-fit: cover; }
.prodotto__foto figcaption { position: absolute; top: 18px; left: 18px; padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, .88); font: 600 .78rem/1 var(--f-testo); letter-spacing: .12em; text-transform: uppercase; color: var(--marrone); }
.prodotto__info { padding-top: 6vh; }
.prodotto__info h2 { font-size: clamp(2.6rem, 5.6vw, 5rem); }
.prodotto--inverso .prodotto__foto { order: 2; }
.dati { margin: 40px 0; border-top: 1px solid rgba(68, 57, 47, .16); }
.dati div { display: grid; grid-template-columns: 160px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid rgba(68, 57, 47, .16); }
.dati dt { font: 600 .74rem/1.6 var(--f-testo); letter-spacing: .16em; text-transform: uppercase; color: var(--testo-2); }
.dati dd { margin: 0; font-weight: 600; color: var(--marrone); }
.pillole { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.pillole span { padding: 10px 16px; border-radius: 999px; background: var(--verde-chiaro); color: var(--verde-scuro); font-weight: 600; font-size: .9rem; }

/* Card con inclinazione 3D (settori) */
.inclina { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; perspective: 1200px; }
.inclina__card {
  border-radius: var(--r); padding: clamp(28px, 3vw, 40px); min-height: 380px; display: flex; flex-direction: column; justify-content: space-between;
  transform-style: preserve-3d; transition: transform .25s ease-out; will-change: transform;
}
.inclina__card:nth-child(1) { background: var(--avorio); }
.inclina__card:nth-child(2) { background: var(--verde-chiaro); }
.inclina__card:nth-child(3) { background: var(--marrone); color: var(--avorio); }
.inclina__card:nth-child(3) h3 { color: #fff; }
.inclina__card:nth-child(3) li { border-color: rgba(244, 233, 209, .18); }
.inclina__card svg { width: 64px; height: 64px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; color: var(--viola); transform: translateZ(40px); }
.inclina__card:nth-child(3) svg { color: var(--verde); }
.inclina__card h3 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); letter-spacing: -.04em; transform: translateZ(30px); margin: 40px 0 16px; }
.inclina__card ul { list-style: none; padding: 0; margin: 0; transform: translateZ(20px); }
.inclina__card li { padding: 10px 0; border-top: 1px solid rgba(68, 57, 47, .14); font-weight: 500; }

/* Percorso verticale con linea di avanzamento */
.percorso { position: relative; max-width: 900px; margin-inline: auto; }
.percorso__linea { position: absolute; left: 31px; top: 10px; bottom: 10px; width: 2px; background: rgba(68, 57, 47, .12); }
.percorso__linea i { position: absolute; inset: 0; background: linear-gradient(var(--verde), var(--viola)); transform-origin: top; transform: scaleY(var(--prog, 1)); }
.tappa { display: grid; grid-template-columns: 64px 1fr; gap: 30px; padding-bottom: 60px; position: relative; }
.tappa:last-child { padding-bottom: 0; }
.tappa__pallino { width: 64px; height: 64px; border-radius: 50%; background: var(--carta); border: 2px solid var(--beige); display: grid; place-items: center; font: 600 1.05rem/1 var(--f-titoli); color: var(--marrone); transition: background .5s, color .5s, border-color .5s; }
.tappa.is-attiva .tappa__pallino { background: var(--marrone); color: var(--avorio); border-color: var(--marrone); }
.tappa h3 { margin: 14px 0 8px; }
.tappa p { color: var(--testo-2); margin: 0; max-width: 560px; }

/* Domande frequenti */
.faq { max-width: 960px; margin-inline: auto; }
.faq details { border-top: 1px solid rgba(68, 57, 47, .16); }
.faq details:last-child { border-bottom: 1px solid rgba(68, 57, 47, .16); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 26px 0; font: 600 clamp(1.15rem, 1.8vw, 1.45rem)/1.3 var(--f-titoli); letter-spacing: -.02em; color: var(--marrone); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(68, 57, 47, .25); flex: none; position: relative; transition: background .3s, transform .5s var(--ease); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: currentColor; }
.faq summary i::after { transform: rotate(90deg); transition: transform .4s var(--ease); }
.faq details[open] summary i { background: var(--verde); border-color: var(--verde); transform: rotate(180deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq details p { color: var(--testo-2); margin: 0; padding: 0 60px 28px 0; max-width: 760px; }

/* Contatti */
.contatti-top { padding: 12px; }
.contatti-top__box { border-radius: var(--r); background: var(--marrone); color: var(--avorio); padding: clamp(130px, 16vw, 200px) clamp(24px, 5vw, 70px) clamp(40px, 5vw, 70px); position: relative; overflow: hidden; isolation: isolate; }
.contatti-top__box h1 { color: #fff; font-size: clamp(3.4rem, 12vw, 11rem); margin: 0; }
.contatti-top__box h1 .serif { color: var(--verde); }
.contatti-top__box .briciole, .contatti-top__box .briciole a { color: #BDB09A; }
.contatti-top__griglia { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid rgba(244, 233, 209, .18); }
.contatto { padding: 26px 24px 4px 0; text-decoration: none; display: block; }
.contatto + .contatto { padding-left: 24px; border-left: 1px solid rgba(244, 233, 209, .18); }
.contatto small { display: block; font: 600 .72rem/1 var(--f-testo); letter-spacing: .18em; text-transform: uppercase; color: var(--verde); margin-bottom: 12px; }
.contatto strong { font: 500 1.1rem/1.35 var(--f-titoli); color: #fff; }
a.contatto strong { background: linear-gradient(var(--verde), var(--verde)) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); padding-bottom: 2px; }
a.contatto:hover strong { background-size: 100% 1px; }
.contatti-top__simbolo { position: absolute; right: -4%; top: -10%; width: min(38vw, 480px); opacity: .08; z-index: -1; }

.modulo-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 100px); align-items: start; }
.modulo-wrap__testo { position: sticky; top: 120px; }
.modulo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.campo { position: relative; grid-column: span 1; }
.campo--pieno { grid-column: 1 / -1; }
.campo input, .campo select, .campo textarea {
  width: 100%; font: inherit; font-size: 1.08rem; color: var(--marrone); background: transparent;
  border: 0; border-bottom: 1.5px solid rgba(68, 57, 47, .25); border-radius: 0; padding: 30px 0 12px; outline: none;
  transition: border-color .3s; -webkit-appearance: none; appearance: none;
}
.campo textarea { min-height: 130px; resize: vertical; }
.campo label { position: absolute; left: 0; top: 30px; color: var(--testo-2); pointer-events: none; transition: transform .35s var(--ease), color .3s, font-size .35s; transform-origin: left top; }
.campo input:focus + label, .campo input:not(:placeholder-shown) + label,
.campo textarea:focus + label, .campo textarea:not(:placeholder-shown) + label,
.campo select:focus + label, .campo select:valid + label { transform: translateY(-24px) scale(.78); color: var(--viola); }
.campo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--viola); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.campo:focus-within::after { transform: scaleX(1); }
.campo select { cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%2344392F' stroke-width='2'%3E%3Cpath d='m2 5 5 5 5-5'/%3E%3C/svg%3E") right 4px bottom 18px no-repeat; }
.scelte { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 6px; }
.scelte legend { width: 100%; margin-bottom: 12px; color: var(--testo-2); font-size: .95rem; padding: 0; }
.scelte { border: 0; padding: 0; }
.scelte label { cursor: pointer; }
.scelte input { position: absolute; opacity: 0; pointer-events: none; }
.scelte span { display: inline-block; padding: 11px 18px; border-radius: 999px; border: 1.5px solid rgba(68, 57, 47, .2); font-weight: 600; font-size: .92rem; transition: background .3s, color .3s, border-color .3s; }
.scelte input:checked + span { background: var(--marrone); border-color: var(--marrone); color: var(--avorio); }
.scelte input:focus-visible + span { outline: 2px solid var(--viola); outline-offset: 2px; }
.consenso { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--testo-2); margin: 22px 0 10px; }
.consenso input { margin-top: 4px; accent-color: var(--viola); width: 18px; height: 18px; flex: none; }
.modulo__esito { grid-column: 1 / -1; display: none; padding: 16px 20px; border-radius: var(--r-s); background: var(--verde-chiaro); color: var(--marrone); font-weight: 600; }
.modulo.is-inviato .modulo__esito { display: block; }
.mappa { padding: 0 12px 12px; }
.mappa iframe { display: block; width: 100%; height: clamp(320px, 50vh, 520px); border: 0; border-radius: var(--r); filter: grayscale(.4) sepia(.2) contrast(.95); }

/* ---------- Riduzione del movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01s !important; }
  .sipario { display: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1150px) {
  .menu a:not(.btn) { padding: 10px 11px; }
  .numeri { grid-template-columns: repeat(2, 1fr); }
  .numero:nth-child(2) { border-right: 0; margin-right: 0; }
  .numero:nth-child(n+3) { border-top: 1px solid rgba(68, 57, 47, .15); }
}
@media (max-width: 980px) {
  .header { height: 60px; padding-left: 16px; }
  .header__logo img { height: 38px; }
  .burger { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--marrone); cursor: pointer; position: relative; z-index: 2; }
  .burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: var(--avorio); position: relative; transition: transform .4s var(--ease), background .3s; }
  .burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
  .burger span::before { top: -6px; } .burger span::after { top: 6px; }
  .menu-aperto .burger span { background: transparent; }
  .menu-aperto .burger span::before { transform: translateY(6px) rotate(45deg); }
  .menu-aperto .burger span::after { transform: translateY(-6px) rotate(-45deg); }
  .header nav {
    position: fixed; left: -12px; right: -12px; top: -12px; height: 100svh; background: var(--marrone); border-radius: 0;
    padding: 110px 28px 40px; clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease); z-index: 1;
  }
  .menu-aperto .header nav { clip-path: inset(0 0 0 0); }
  .menu { flex-direction: column; align-items: flex-start; gap: 4px; }
  .menu a:not(.btn) { color: var(--avorio); font: 600 2.2rem/1.1 var(--f-titoli); padding: 8px 0; letter-spacing: -.03em; }
  .menu a:not(.btn):hover { background: none; color: var(--verde); }
  .menu a[aria-current="page"] { background: none; color: var(--verde) !important; }
  .menu li:last-child { margin: 26px 0 0; }
  .menu li { opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s var(--ease); }
  .menu-aperto .menu li { opacity: 1; transform: none; }
  .menu-aperto .menu li:nth-child(2) { transition-delay: .05s; } .menu-aperto .menu li:nth-child(3) { transition-delay: .1s; }
  .menu-aperto .menu li:nth-child(4) { transition-delay: .15s; } .menu-aperto .menu li:nth-child(5) { transition-delay: .2s; }
  .menu-aperto .menu li:nth-child(6) { transition-delay: .25s; }

  .hero__piede { flex-direction: column; align-items: center; }
  .hero__scroll { display: none; }

  /* prodotti: scorrimento orizzontale nativo con aggancio */
  .orizzontale__pista { height: auto; min-height: 0; width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-block: 90px 70px; scrollbar-width: none; }
  .orizzontale__pista::-webkit-scrollbar { display: none; }
  .pannello { width: 82vw; height: 70svh; min-height: 460px; scroll-snap-align: center; }
  .pannello--intro { width: 82vw; height: auto; }
  .pannello--avorio { width: 82vw; height: auto; }
  .pannello__conta { display: none; }

  .schede__griglia { grid-template-columns: 1fr; min-height: 0; padding-block: var(--sez); }
  .schede__media { display: none; }
  .scheda__titolo { color: var(--marrone); }
  .scheda__corpo { grid-template-rows: 1fr; }
  .scheda__barra { display: none; }
  .scheda__img-mobile { display: block; border-radius: 18px; overflow: hidden; margin-top: 18px; aspect-ratio: 16 / 10; }
  .scheda__img-mobile img { width: 100%; height: 100%; object-fit: cover; }

  .carta { grid-template-columns: minmax(0, 1fr); height: 540px; gap: 16px; top: calc(84px + var(--i, 0) * 14px); }
  /* su mobile la foto occupa la parte bassa e sfuma verso l'alto */
  .carta__foto {
    top: auto; left: 0; width: auto; height: 58%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .4) 25%, #000 60%);
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .4) 25%, #000 60%);
  }
  .carta__num { font-size: 3.6rem; }

  .finale__box { grid-template-columns: 1fr; }
  .finale__pistacchi { left: auto; right: -20px; }
  .footer__griglia { grid-template-columns: 1fr 1fr; }

  .intro { padding-top: 120px; }
  .intro__griglia, .fermo, .marchio, .prodotto, .modulo-wrap, .schede__griglia, .finale__box, .banda-foto .wrap { grid-template-columns: minmax(0, 1fr); }
  .fermo__titolo, .modulo-wrap__testo { position: static; }
  .valore-riga { grid-template-columns: 50px 1fr; }
  .valore-riga p { grid-column: 2; }
  .segui-foto { display: none; }
  .banda-foto .wrap { grid-template-columns: 1fr; }
  .meta { flex-direction: column; height: auto; }
  .meta__lato { min-height: 72svh; }
  .meta:hover .meta__lato, .meta .meta__lato:hover { flex: 1; }
  .meta__titolo { display: none; }
  .prodotto__foto { position: relative; top: 0; height: auto; aspect-ratio: 4 / 3; }
  .prodotto--inverso .prodotto__foto { order: 0; }
  .prodotto__info { padding-top: 0; }
  .inclina { grid-template-columns: 1fr; }
  .inclina__card { min-height: 0; }
  .contatti-top__griglia { grid-template-columns: 1fr 1fr; }
  .contatto:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .numeri { grid-template-columns: 1fr 1fr; }
  .numero { padding-right: 14px; margin-right: 14px; }
  .numero strong { font-size: 2.6rem; }
  .pannello { width: 86vw; }
  .pannello--intro, .pannello--avorio { width: 86vw; }
  .pannello__testo { grid-template-columns: 1fr; }
  .footer__griglia { grid-template-columns: 1fr; }
  .dati div { grid-template-columns: 1fr; gap: 6px; }
  .modulo { grid-template-columns: 1fr; }
  .campo { grid-column: 1 / -1; }
  .contatti-top__griglia { grid-template-columns: 1fr; }
  .contatto + .contatto { padding-left: 0; border-left: 0; border-top: 1px solid rgba(244, 233, 209, .18); }
  .mosaico { height: 400px; }
  .mosaico__bollino { width: 100px; height: 100px; left: 34%; }
  .mosaico__bollino text { font-size: 8.5px; }
  .faq details p { padding-right: 0; }
  .colori { height: 90px; }
  .espandi__parola { font-size: 21vw; }
}

/* =========================================================
   Divi 5: i componenti della bozza dentro i contenitori del builder
   Ogni sezione Divi ha la classe .jm-sez e contiene un modulo Codice con il markup
   della bozza. Qui si tolgono padding, larghezze e sfondi di Divi e si rimettono
   le basi tipografiche della bozza. Le basi usano "html :where(.jm-sez)" (specificità
   di due elementi): battono le regole generiche di Divi (h1, p, a…) ma perdono contro
   quelle dei componenti (.hero h1, .finale p…), come nella bozza.
   ========================================================= */
html body { background: var(--carta); color: var(--testo); font: 400 17px/1.65 var(--f-testo); }
#page-container { padding-top: 0 !important; margin-top: 0 !important; overflow: visible !important; }
#page-container, #et-main-area, #main-content { background: transparent !important; }

.jm-sez.et_pb_section { padding: 0 !important; margin: 0 !important; background: transparent !important; width: 100%; }
.jm-sez .et_pb_row { display: block !important; width: 100% !important; max-width: none !important; padding: 0 !important; margin: 0 !important; }
.jm-sez .et_pb_column { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
.jm-sez .et_pb_module { margin: 0 !important; padding: 0 !important; }

html :where(.jm-sez) h1, html :where(.jm-sez) h2, html :where(.jm-sez) h3, html :where(.jm-sez) h4 {
  font-family: var(--f-titoli); font-weight: 650; color: var(--marrone);
  line-height: 1.02; letter-spacing: -.035em; margin: 0 0 .45em; padding: 0;
  font-variation-settings: "opsz" 96;
}
html :where(.jm-sez) h1 { font-size: clamp(2.9rem, 8vw, 7.4rem); }
html :where(.jm-sez) h2 { font-size: clamp(2.3rem, 5.2vw, 4.6rem); }
html :where(.jm-sez) h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); letter-spacing: -.02em; line-height: 1.15; }
html :where(.jm-sez) p { padding: 0; margin: 0 0 1.1em; }
html :where(.jm-sez) a { color: inherit; }
/* Divi mette pallini, rientro e interlinea fissa a ogni lista (.entry-content ul, .et-l--header ul…):
   nei componenti della bozza le liste sono sempre "pulite" */
html .jm-sez :is(ul, ol) { list-style: none; padding: 0; line-height: inherit; }
html :where(.jm-sez) img { max-width: 100%; height: auto; display: block; }

/* header fisso: sotto la barra di amministrazione quando si è collegati */
.admin-bar .header { top: 44px; }
@media (max-width: 782px) { .admin-bar .header { top: 58px; } }

@media (max-width: 640px) {
  html body { font-size: 16px; }
}
