/* =====================================================================
   Stile del sito. Colori e caratteri si cambiano qui sotto, in :root.
   ===================================================================== */

:root {
  --verde: #1E3B2F;          /* titoli e testo */
  --verde-scuro: #12241B;    /* fondi scuri */
  --verde-testo: #33493E;    /* testo lungo, un filo più morbido */
  --oro: #C2A865;            /* solo dettagli */
  --bianco: #FFFFFF;
  --errore: #FFB8A8;         /* messaggi d'errore su fondo scuro */

  --f-titolo: "Bodoni Moda", "Didot", Georgia, serif;
  --f-frase: "Instrument Serif", Georgia, "Times New Roman", serif;
  --f-etichetta: "Syncopate", "Helvetica Neue", Arial, sans-serif;

  --altezza-testata: 88px;
  --margine: clamp(16px, 3.2vw, 48px);
  --gap-foto: 6px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--altezza-testata);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bianco);
  color: var(--verde);
  font-family: var(--f-frase);
  font-size: 1.125rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
em { font-family: var(--f-frase); font-style: italic; }
h1, h2, h3, p { margin: 0; }

/* Focus da tastiera ben visibile: verde su chiaro, bianco su scuro */
:focus-visible { outline: 2px solid var(--verde); outline-offset: 3px; }
.hero :focus-visible,
.ordina :focus-visible,
.menu-mobile :focus-visible,
.testata :focus-visible,
.piede :focus-visible { outline-color: var(--bianco); }

.visivo-nascosto {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.salta {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--bianco); color: var(--verde);
  padding: .8rem 1.2rem; font-family: var(--f-etichetta); font-size: .7rem;
  text-transform: uppercase; letter-spacing: .12em; text-decoration: none;
}
.salta:focus { top: 12px; }

.noscript { padding: 8rem 16px; text-align: center; font-size: 1.4rem; }

/* ---------- Bottone rettangolare ---------- */
.bottone {
  display: inline-block;
  background: var(--bianco);
  color: var(--verde);
  border: 1px solid var(--bianco);
  border-radius: 0;
  padding: 1.15em 2.8em;
  font-family: var(--f-etichetta);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s, color .25s;
}
.bottone:hover { background: transparent; color: var(--bianco); }
.bottone[disabled] { opacity: .6; cursor: progress; }
.bottone--contorno { background: transparent; color: var(--bianco); }
/* bottone della prima schermata: la parola tra asterischi esce in corsivo */
.bottone--hero { max-width: min(90vw, 34rem); line-height: 1.6; }
.bottone em {
  font-family: var(--f-frase);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.85em;
  line-height: 0;
  vertical-align: -.08em;
}
.bottone--contorno:hover { background: var(--bianco); color: var(--verde); }

/* ---------- Foto e segnaposto ---------- */
.foto {
  position: relative;
  overflow: hidden;
  background: var(--verde-scuro);
}
.foto picture, .foto img, .segnaposto {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.foto img { object-fit: cover; }
.foto--bn img { filter: grayscale(1) contrast(1.05); }

.segnaposto {
  display: flex; align-items: flex-start;
  padding: 1rem;
  background:
    radial-gradient(120% 80% at 30% 20%, hsl(var(--tono, 150) 18% 26%) 0%, transparent 60%),
    linear-gradient(165deg, hsl(var(--tono, 150) 20% 17%) 0%, #0D1813 100%);
  color: rgba(255,255,255,.55);
  font-family: var(--f-etichetta);
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.foto--bn .segnaposto {
  background:
    radial-gradient(120% 80% at 70% 30%, #4a4a4a 0%, transparent 60%),
    linear-gradient(165deg, #2b2b2b 0%, #0f0f0f 100%);
}

/* ---------- Testata ---------- */
.testata {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--altezza-testata);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 0 var(--margine);
  color: var(--bianco);
  transition: background-color .35s, color .35s, box-shadow .35s;
}
/* dopo lo scroll la testata diventa verde pieno, così il logo resta bianco */
.testata--piena {
  background: var(--verde);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .15);
}

.menu { display: flex; gap: clamp(1.25rem, 2.6vw, 2.75rem); }
.menu--destra { justify-content: flex-end; }
.menu a, .menu-mobile a {
  font-family: var(--f-titolo);
  text-transform: uppercase;
  letter-spacing: .05em;
  text-decoration: none;
  font-size: .95rem;
  padding: .4rem 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .3s;
}
.menu a:hover { background-size: 100% 1px; }

.marchio {
  grid-column: 2;
  font-family: var(--f-titolo);
  font-weight: 700;
  font-size: clamp(1.15rem, 1.9vw, 1.6rem);
  line-height: .92;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  max-width: 9ch;
}
.marchio--logo { max-width: none; line-height: 0; }
.marchio--logo img { height: clamp(44px, 4.6vw, 60px); width: auto; }

.hamburger {
  display: none;
  grid-column: 3; justify-self: end;
  width: 44px; height: 44px;
  background: none; border: 0; padding: 0;
  color: inherit; cursor: pointer;
}
.hamburger__linee,
.hamburger__linee::before,
.hamburger__linee::after {
  display: block; width: 26px; height: 1.5px; margin: 0 auto;
  background: currentColor; position: relative;
  transition: transform .3s, background-color .3s;
}
.hamburger__linee::before, .hamburger__linee::after { content: ""; position: absolute; left: 0; }
.hamburger__linee::before { top: -8px; }
.hamburger__linee::after { top: 8px; }
.hamburger[aria-expanded="true"] .hamburger__linee { background: transparent; }
.hamburger[aria-expanded="true"] .hamburger__linee::before { transform: translateY(8px) rotate(45deg); }
.hamburger[aria-expanded="true"] .hamburger__linee::after { transform: translateY(-8px) rotate(-45deg); }

.menu-mobile {
  position: fixed; inset: 0; z-index: 40;
  background: var(--verde);
  color: var(--bianco);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 1.6rem;
}
.menu-mobile[hidden] { display: none; }
.menu-mobile a { font-size: 1.9rem; }
body.menu-aperto { overflow: hidden; }
body.menu-aperto .testata { background: transparent; color: var(--bianco); box-shadow: none; }

/* ---------- Apertura (hero) ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--verde-scuro);
  overflow: hidden;
}
.hero .foto { height: 100%; }
.hero .foto img, .hero .segnaposto { animation: zoom-lento 9s cubic-bezier(.2, .6, .2, 1) both; }
.hero .foto::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.45) 0, rgba(0,0,0,0) 26%),
    radial-gradient(60% 45% at 50% 52%, rgba(0,0,0,.4) 0, rgba(0,0,0,0) 100%);
}
.hero .foto img { object-position: 50% 60%; }
.hero .segnaposto { padding-top: calc(var(--altezza-testata) + 1rem); }

.hero__testo {
  position: absolute; left: 50%; top: 52%;
  transform: translate(-50%, -50%);
  width: min(92vw, 940px);
  text-align: center;
  color: var(--bianco);
  z-index: 2;
}
.hero h1 {
  font-family: var(--f-titolo);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.6vw, 4.3rem);
  line-height: 1.08;
  letter-spacing: -.005em;
  text-shadow: 0 1px 32px rgba(0,0,0,.35);
  text-wrap: balance;
}
.hero h1 em { font-size: 1.1em; letter-spacing: 0; }
.hero .bottone { margin-top: 2.2rem; }

@keyframes zoom-lento {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

/* ---------- Titolo gigante + foto in parallasse ---------- */
.intro { padding-top: clamp(4.5rem, 9vw, 8rem); }

.titolo-gigante {
  position: relative; z-index: 2;
  font-family: var(--f-titolo);
  font-weight: 400;
  text-transform: uppercase;
  text-align: center;
  font-size: clamp(3.4rem, 12.5vw, 11.5rem);
  line-height: .86;
  letter-spacing: -.01em;
  margin: 0 var(--margine) -.52em;
  text-wrap: balance;
  pointer-events: none;
}

/* foto unica a tutta larghezza, sotto il titolo gigante */
.banda {
  position: relative;
  height: clamp(420px, 86vh, 980px);
  overflow: hidden;
}
.banda .foto { position: absolute; inset: 0; }

.frase {
  max-width: 34ch;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--margine) clamp(4rem, 8vw, 7rem);
  text-align: center;
  font-family: var(--f-frase);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1.2;
  text-wrap: balance;
}

/* ---------- Storia e Famiglia ---------- */
.racconto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--margine) clamp(4.5rem, 9vw, 8rem);
}
.racconto article {
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 4.5rem);
  border-top: 1px solid rgba(30, 59, 47, .15);
}
.racconto article + article { border-left: 1px solid rgba(30, 59, 47, .15); }
.racconto--uno { grid-template-columns: 1fr; max-width: 900px; }
.racconto--uno article { text-align: center; }
.racconto--uno .testo { margin: 0 auto; max-width: 44ch; }
.racconto--uno .firma { justify-content: center; }
.racconto h2 {
  font-family: var(--f-titolo);
  font-weight: 400;
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
  line-height: 1;
  margin-bottom: 1.4rem;
}
.racconto .attacco {
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.racconto .testo {
  color: var(--verde-testo);
  font-size: 1.28rem;
  line-height: 1.55;
  max-width: 38ch;
}
.firma {
  margin-top: 1.6rem;
  font-style: italic;
  font-size: 1.35rem;
  display: flex; align-items: center; gap: .8rem;
}
.firma::before { content: ""; width: 2.2rem; height: 1px; background: var(--oro); }

/* ---------- Gli oli: una scena per olio ---------- */
.oli { padding-top: clamp(1rem, 3vw, 2rem); }
.oli .titolo-gigante { font-size: clamp(3rem, 10vw, 9rem); margin-bottom: -.45em; }
.titolo-gigante .riga { display: block; }
.titolo-gigante em { text-transform: none; font-size: 1.04em; letter-spacing: -.01em; }

.scena { position: relative; }
.scena--chiara { background: #E6EAE3; color: var(--verde); }
.scena--scura { background: var(--verde-scuro); color: var(--bianco); }

.scena__palco {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr minmax(0, .8fr) 1fr;
  grid-template-areas: "testo bottiglia dettagli";
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  padding: calc(var(--altezza-testata) + 2rem) var(--margine) 3rem;
}
.scena__testo { grid-area: testo; max-width: 26rem; }
.scena h3 {
  font-family: var(--f-titolo);
  font-weight: 400;
  font-size: clamp(2.6rem, 4.6vw, 4.4rem);
  line-height: 1;
}
.scena__prezzo { font-family: var(--f-titolo); font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-top: .7rem; }
.scena__nota { font-style: italic; font-size: clamp(1.25rem, 1.7vw, 1.45rem); line-height: 1.35; margin-top: 1.2rem; opacity: .9; }
.scena__formato {
  margin-top: 1rem;
  font-family: var(--f-etichetta); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  opacity: .75;
}
.scena__ordina {
  display: inline-block;
  margin-top: 2rem;
  padding-bottom: .45rem;
  border-bottom: 1px solid currentColor;
  font-family: var(--f-etichetta); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none;
  transition: opacity .2s;
}
.scena__ordina:hover { opacity: .65; }
.scena--scura :focus-visible { outline-color: var(--bianco); }

.scena__bottiglia { grid-area: bottiglia; position: relative; height: min(74vh, 760px); }
.foto--bottiglia { position: absolute; inset: 0; background: transparent; overflow: visible; }
.foto--bottiglia img { object-fit: contain; filter: drop-shadow(0 28px 36px rgba(0, 0, 0, .22)); }
.sagoma { display: block; height: 100%; width: auto; margin: 0 auto; fill: currentColor; opacity: .13; }
.segnaposto__nome {
  position: absolute; left: 0; right: 0; bottom: 42%;
  text-align: center;
  font-family: var(--f-etichetta); font-size: .55rem; letter-spacing: .1em; text-transform: uppercase;
  opacity: .6;
}

/* bottiglia 3D: quando è pronta prende il posto della foto */
.bottiglia3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bottiglia--3d .foto--bottiglia { display: none; }
.scena--chiara .bottiglia3d { filter: drop-shadow(0 30px 34px rgba(18, 36, 27, .22)); }
.scena--scura .bottiglia3d { filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }

.scena__dettagli {
  grid-area: dettagli;
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(2rem, 7vh, 4.5rem);
}
.scena__dettagli li {
  position: relative;
  padding-left: clamp(3.2rem, 7.5vw, 7rem);
  font-size: 1.2rem; line-height: 1.35;
  max-width: 24rem;
}
/* linea sottile che collega il dettaglio alla bottiglia */
.scena__dettagli li::before {
  content: "";
  position: absolute; left: 0; top: .7em;
  width: clamp(2.4rem, 6.5vw, 6rem); height: 1px;
  background: currentColor; opacity: .55;
  transform-origin: left center;
}
.scena__dettagli em { font-family: var(--f-titolo); font-style: normal; }

/* ---------- Ordina ---------- */
.ordina {
  position: relative;
  isolation: isolate;
  color: var(--bianco);
  background: var(--verde-scuro);
  padding: clamp(5rem, 10vw, 9rem) var(--margine);
  overflow: hidden;
}
.ordina__sfondo { position: absolute; inset: 0; z-index: -1; }
.ordina__sfondo picture, .ordina__sfondo img, .ordina__sfondo .segnaposto {
  filter: blur(6px); transform: scale(1.08);
}
.ordina__sfondo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14, 30, 23, .82), rgba(14, 30, 23, .9));
}

.ordina__contenuto { max-width: 680px; margin: 0 auto; }
.ordina h2 {
  font-family: var(--f-titolo);
  font-weight: 400;
  text-transform: uppercase;
  text-align: center;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: .9;
}
.ordina .attacco {
  text-align: center;
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  line-height: 1.3;
  margin: 1.2rem auto 0;
  max-width: 34ch;
}
.ordina .avviso-pagamento {
  text-align: center;
  color: var(--oro);
  font-style: italic;
  font-size: 1.15rem;
  margin: 1rem 0 3rem;
}

.modulo { display: grid; gap: 1.4rem; }
.modulo__coppia { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }

.campo { display: grid; gap: .5rem; }
.campo label, .campo .etichetta-campo, .totale__etichetta {
  font-family: var(--f-etichetta);
  font-size: .6rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
}
.campo .facoltativo { text-transform: none; letter-spacing: 0; font-family: var(--f-frase); font-size: 1rem; font-style: italic; opacity: .8; }

.campo input, .campo textarea {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 0;
  color: var(--bianco);
  font-family: var(--f-frase);
  font-size: 1.25rem;
  padding: .7rem .9rem;
  transition: border-color .2s, background-color .2s;
}
.campo textarea { min-height: 6.5rem; resize: vertical; line-height: 1.4; }
.campo input:hover, .campo textarea:hover { border-color: rgba(255,255,255,.7); }
.campo input:focus, .campo textarea:focus { border-color: var(--bianco); background: rgba(255,255,255,.08); }
.campo [aria-invalid="true"] { border-color: var(--errore); }
.campo__errore { color: var(--errore); font-size: 1.05rem; font-style: italic; min-height: 0; }
.campo__errore:empty { display: none; }

/* Campo trappola per i robot: invisibile alle persone */
.campo-trappola { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.prodotti {
  border: 0; margin: .4rem 0 0; padding: 0;
  display: grid;
}
.prodotti legend { padding: 0; margin-bottom: .6rem; }
.prodotto {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,.2);
}
.prodotto:last-of-type { border-bottom: 1px solid rgba(255,255,255,.2); }
.prodotto__nome { font-family: var(--f-titolo); font-size: 1.45rem; line-height: 1.1; }
.prodotto__dettaglio { font-style: italic; opacity: .8; font-size: 1.1rem; }

.stepper { display: flex; align-items: stretch; flex-shrink: 0; }
.stepper button {
  width: 44px; height: 44px;
  background: transparent; color: var(--bianco);
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 0;
  font-family: var(--f-titolo); font-size: 1.4rem; line-height: 1;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.stepper button:hover { background: var(--bianco); color: var(--verde); }
.stepper button:disabled { opacity: .35; cursor: default; background: transparent; color: var(--bianco); }
.stepper input {
  width: 3.2rem; height: 44px;
  text-align: center;
  background: transparent; color: var(--bianco);
  border: 1px solid rgba(255,255,255,.42); border-left: 0; border-right: 0;
  border-radius: 0;
  font-family: var(--f-titolo); font-size: 1.3rem;
  -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.totale {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: .4rem 0 .6rem;
}
.totale__cifra { font-family: var(--f-titolo); font-size: clamp(2.2rem, 4vw, 2.8rem); line-height: 1; }

.modulo__invio { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin-top: .8rem; }
.modulo__invio .bottone { min-width: 16rem; }

.avviso-errore {
  border: 1px solid rgba(255, 184, 168, .55);
  padding: 1.2rem 1.3rem;
  display: grid; gap: 1rem; justify-items: start;
}
.avviso-errore[hidden] { display: none; }
.avviso-errore p { color: var(--errore); font-size: 1.15rem; }

.conferma { text-align: center; }
.conferma h3 {
  font-family: var(--f-titolo); font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.05;
  margin-bottom: 1rem;
}
.conferma > p { font-size: 1.3rem; max-width: 36ch; margin: 0 auto; }
.conferma__codice {
  margin-top: 1.6rem;
  font-family: var(--f-etichetta); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--oro);
}
.riepilogo {
  width: 100%; max-width: 460px;
  margin: 1.6rem auto 2rem;
  border-collapse: collapse;
  font-size: 1.2rem;
  text-align: left;
}
.riepilogo td { padding: .65rem 0; border-top: 1px solid rgba(255,255,255,.2); }
.riepilogo td:last-child { text-align: right; }
.riepilogo tr:last-child td { font-family: var(--f-titolo); font-size: 1.5rem; border-bottom: 1px solid rgba(255,255,255,.2); }

/* ---------- Piè di pagina ---------- */
.piede {
  text-align: center;
  padding: clamp(4rem, 8vw, 6rem) var(--margine) 3rem;
  background: var(--verde);
  color: var(--bianco);
}
.piede .marchio { display: inline-block; max-width: 9ch; font-size: 1.6rem; }
.piede .marchio--logo img { height: clamp(72px, 8vw, 104px); }
.piede__frase { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-top: 1.6rem; }
.piede__filo { width: 2.4rem; height: 1px; background: var(--oro); margin: 1.8rem auto; border: 0; }
.piede__email { font-size: 1.25rem; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.piede__nota {
  margin-top: 2.2rem;
  font-family: var(--f-etichetta); font-size: .58rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.7);
}

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  :root { --altezza-testata: 72px; }
  .menu { display: none; }
  .hamburger { display: block; }
  .racconto { grid-template-columns: 1fr; padding-bottom: clamp(2rem, 6vw, 4rem); }
  .racconto article { padding-inline: 0; }
  /* una sotto l'altra: più aria tra le due e un filo oro corto come separatore */
  .racconto article + article {
    border-left: 0;
    border-top: 0;
    margin-top: clamp(1.5rem, 5vw, 3rem);
    position: relative;
  }
  .racconto article + article::before {
    content: ""; position: absolute; top: 0; left: 0;
    width: 3rem; height: 1px; background: var(--oro);
  }

  .scena__palco {
    grid-template-columns: 1fr minmax(0, .9fr);
    grid-template-areas: "testo bottiglia" "dettagli bottiglia";
    align-content: center;
    row-gap: 2.5rem;
  }
  .scena__dettagli { gap: 1.2rem; }
  .scena__dettagli li { padding-left: 3rem; }
  .scena__dettagli li::before { width: 2.2rem; }
}

/* ---------- Telefono ---------- */
@media (max-width: 700px) {
  .hero .foto::after {
    background:
      linear-gradient(to bottom, rgba(0,0,0,.45) 0, rgba(0,0,0,0) 26%),
      radial-gradient(90% 40% at 50% 52%, rgba(0,0,0,.42) 0, rgba(0,0,0,0) 100%),
      linear-gradient(to top, rgba(0,0,0,.25) 0, rgba(0,0,0,0) 30%);
  }
  .hero__testo { top: 50%; }
  .hero h1 { font-size: clamp(2rem, 8.6vw, 2.6rem); }
  .hero .bottone { margin-top: 1.5rem; }

  .banda { height: 72vh; height: 72svh; }
  .titolo-gigante { margin-bottom: -.45em; }

  .scena__palco {
    grid-template-columns: 1fr;
    grid-template-areas: "testo" "bottiglia" "dettagli";
    grid-template-rows: auto 1fr auto;
    justify-items: center;
    text-align: center;
    row-gap: 1rem;
    padding: calc(var(--altezza-testata) + 1.2rem) var(--margine) 1.6rem;
  }
  .scena h3 { font-size: 2.3rem; }
  .scena__prezzo { font-size: 1.5rem; margin-top: .3rem; }
  .scena__nota { font-size: 1.15rem; margin-top: .6rem; }
  .scena__formato, .scena__ordina { display: none; }
  .scena__bottiglia { height: auto; min-height: 30vh; width: 100%; align-self: stretch; }
  .scena__dettagli { gap: .35rem; }
  .scena__dettagli li { padding-left: 0; font-size: 1.05rem; max-width: none; }
  .scena__dettagli li::before { display: none; }
  .modulo__coppia { grid-template-columns: 1fr; }
  .prodotto { flex-wrap: wrap; }
  .modulo__invio .bottone { width: 100%; min-width: 0; }
}

/* =====================================================================
   Movimento allo scroll. Attivo solo se app.js aggiunge la classe
   "movimento" (cioè non per chi ha chiesto di ridurre il movimento).
   --p va da 0 a 1 ed è calcolato in app.js.
   Per attenuare tutto, abbassa questi tre numeri.
   ===================================================================== */
:root {
  --mov-hero: 8%;      /* quanto scendono le foto della prima schermata */
  --mov-titolo: 14vw;  /* quanto scivolano le righe del titolo gigante */
  --mov-banda: 22%;    /* quanto si sposta la foto unica sotto il titolo gigante */
}

/* 1. Prima schermata: foto più lente della pagina, titolo che sale e sfuma */
.movimento .hero .foto picture,
.movimento .hero .segnaposto {
  top: -10%; bottom: auto; height: 120%;
  translate: 0 calc(var(--p) * var(--mov-hero));
}
.movimento .hero__testo {
  translate: 0 calc(var(--p) * -35vh);
  opacity: calc(1 - var(--p) * 1.7);
}

/* 2. Titolo gigante: le due righe scorrono in direzioni opposte */
.intro, .oli { overflow-x: clip; }
.movimento .titolo-gigante .riga--a { translate: calc((.5 - var(--p)) * var(--mov-titolo)) 0; }
.movimento .titolo-gigante .riga--b { translate: calc((var(--p) - .5) * var(--mov-titolo)) 0; }

/* 3. Foto unica: scorre più lenta della pagina dentro la sua banda */
.movimento .banda picture,
.movimento .banda .segnaposto {
  top: -15%; bottom: auto; height: 130%;
  translate: 0 calc((var(--p) - .5) * var(--mov-banda));
}

/* 4. Gli oli: il palco resta fermo, la bottiglia entra, poi testo e dettagli */
.movimento .scena { height: 280vh; }
.movimento .scena__palco {
  position: sticky; top: 0;
  height: 100vh; height: 100svh; min-height: 0;
  overflow: hidden;
  --entra: clamp(0, calc(var(--p) / .3), 1);
  --testo: clamp(0, calc((var(--p) - .14) / .16), 1);
  --esce: clamp(0, calc((var(--p) - .86) / .14), 1);
}
.movimento .scena__bottiglia {
  translate: calc((1 - var(--entra)) * 55vw) calc(var(--esce) * -6vh);
  rotate: calc((1 - var(--entra)) * 9deg);
}
.movimento .bottiglia--3d { rotate: none; }   /* la rotazione la fa il 3D */
.movimento .scena__testo {
  opacity: var(--testo);
  translate: 0 calc((1 - var(--testo)) * 2rem);
}
.movimento .scena__dettagli li {
  --v: clamp(0, calc((var(--p) - .38 - var(--k) * .13) / .1), 1);
  opacity: var(--v);
  translate: calc((1 - var(--v)) * 1.2rem) 0;
}
.movimento .scena__dettagli li::before { transform: scaleX(var(--v)); }

@media (max-width: 700px) {
  :root { --mov-titolo: 10vw; }
  .movimento .scena { height: 230vh; }
  .movimento .scena__bottiglia { translate: calc((1 - var(--entra)) * 80vw) 0; }
  .movimento .scena__dettagli li { translate: 0 calc((1 - var(--v)) * .6rem); }
}

/* =====================================================================
   TEMA ATTUALE (classe "ghia" sul <body> di index.html)
   Impaginazione ispirata a drinkghia.com con la palette BORGO1721:
   serif condensato maiuscolo, barra annunci, fasce di testo, logo a
   bandierina, fasce di colore per gli oli, motivo di foglie d'ulivo.
   Le regole qui sotto hanno la precedenza su quelle sopra.
   I colori si cambiano nel blocco .ghia qui sotto.
   ===================================================================== */

.ghia {
  --cielo: #89B3D9;
  --nebbia: #B8CAD9;
  --germoglio: #6E8C03;
  --oliva: #465902;
  --notte: #384001;
  --carta: #EEF3F7;          /* azzurro chiarissimo, ricavato da #B8CAD9 */
  --bianco: #FFFFFF;

  --verde: var(--notte);
  --verde-scuro: #2A3001;
  --verde-testo: #4A5320;
  --oro: var(--germoglio);

  --f-titolo: "Imbue", "Didot", Georgia, serif;
  --f-frase: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-etichetta: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --barra: 0px;             /* altezza della barra annunci (34px se c'è) */
  background: var(--carta);
  color: var(--notte);
  font-family: var(--f-frase);
  font-size: 1.04rem;
}
.ghia.con-annunci { --barra: 34px; }
html:has(.ghia.con-annunci) { scroll-padding-top: calc(var(--altezza-testata) + 34px); }

/* titoli: serif condensato, maiuscolo, grasso */
.ghia .hero h1,
.ghia .titolo-gigante,
.ghia .racconto h2,
.ghia .scena h3,
.ghia .ordina h2,
.ghia .fasce-oli__voce span,
.ghia .fascia__binario {
  font-family: var(--f-titolo);
  font-weight: 800;
  font-variation-settings: "opsz" 100;
  text-transform: uppercase;
  letter-spacing: -.005em;
}
/* Imbue non ha il corsivo: le parole in evidenza cambiano colore */
.ghia .hero h1 em, .ghia .titolo-gigante em, .ghia .racconto h2 em, .ghia .scena h3 em {
  font-family: inherit; font-style: normal; text-transform: inherit; font-size: inherit;
}

/* ---------- Barra annunci in cima ---------- */
.ghia .annunci {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--barra);
  background: var(--cielo); color: var(--notte);
  overflow: hidden;
  display: flex; align-items: center;
  font-family: var(--f-etichetta); font-weight: 600; font-size: .78rem;
}
.ghia .annunci__binario { display: flex; gap: 1.6rem; width: max-content; animation: scorre-g 60s linear infinite; }
.ghia .annunci__binario span { white-space: nowrap; }
@keyframes scorre-g { to { transform: translateX(-33.333%); } }

/* ---------- Testata chiara con il logo a bandierina ---------- */
.ghia .testata,
.ghia .testata--piena {
  top: var(--barra);
  background: var(--carta);
  color: var(--notte);
  box-shadow: 0 1px 0 rgba(56, 64, 1, .12);
}
.ghia .menu a {
  font-family: var(--f-etichetta); font-weight: 600; font-size: .82rem; letter-spacing: .06em;
}
/* la riga della testata resta alta quanto la testata: menu e hamburger restano
   centrati, mentre il riquadro del logo scende oltre */
.ghia .testata { grid-template-rows: var(--altezza-testata); }
.ghia .testata .marchio {
  align-self: start;
  background: var(--notte);
  /* scende oltre la testata e si appoggia sulla foto; base morbida a U, come l'arco del logo */
  padding: 40px 28px 48px;   /* logo centrato nel riquadro (la curva in basso occupa un po' di spazio) */
  border-radius: 0 0 50% 50% / 0 0 30% 30%;
  position: relative; z-index: 2;
  filter: drop-shadow(0 6px 14px rgba(30, 34, 0, .22));
  max-width: none; line-height: 0;
  color: var(--carta);
}
.ghia .testata .marchio--logo img { height: clamp(40px, 4vw, 52px); }
.ghia .menu-mobile { background: var(--notte); top: 0; }
.ghia .menu-mobile a { font-family: var(--f-titolo); font-weight: 800; font-size: 2.6rem; }
body.ghia.menu-aperto .testata { background: var(--carta); color: var(--notte); }

/* ---------- Bottoni ---------- */
.ghia .bottone {
  border-radius: 6px;
  background: var(--cielo); border-color: var(--cielo); color: var(--notte);
  font-family: var(--f-etichetta); font-weight: 700; font-size: .8rem; letter-spacing: .1em;
  padding: 1.05em 2.2em;
}
.ghia .bottone:hover { background: var(--carta); border-color: var(--carta); color: var(--notte); }

.ghia .chip {
  display: inline-block;
  margin-bottom: 1.2rem;
  padding: .45em 1em;
  border-radius: 999px;
  background: var(--nebbia); color: var(--notte);
  font-family: var(--f-etichetta); font-weight: 700; font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase;
}

/* ---------- Prima schermata: foto piena, titolo in basso a sinistra ---------- */
.ghia .hero { margin-top: var(--barra); height: calc(100svh - var(--barra)); }
.ghia .hero .foto::after {
  background:
    linear-gradient(90deg, rgba(30, 34, 0, .72) 0, rgba(30, 34, 0, .25) 55%, rgba(30, 34, 0, 0) 80%),
    linear-gradient(to top, rgba(30, 34, 0, .45), rgba(30, 34, 0, 0) 45%);
}
.ghia .hero__testo {
  left: var(--margine); right: auto; top: auto; bottom: clamp(48px, 11vh, 120px);
  transform: none;
  width: min(92vw, 780px);
  text-align: left;
}
.ghia .hero h1 {
  font-size: clamp(3rem, 6.6vw, 6.6rem);
  line-height: .9;
  text-shadow: none;
}
.ghia .hero h1 em { color: var(--cielo); }
.ghia .hero .bottone { margin-top: 2rem; }

/* ---------- Fascia di parole ---------- */
.ghia .fascia { background: var(--notte); color: var(--nebbia); overflow: hidden; padding: .85rem 0 .7rem; }
.ghia .fascia__binario {
  display: flex; gap: 1.4rem; width: max-content;
  font-size: clamp(1.5rem, 2.6vw, 2.3rem); line-height: 1;
  animation: scorre-f 48s linear infinite;
}
.ghia .fascia__segno { color: var(--cielo); }
@keyframes scorre-f { to { transform: translateX(-50%); } }

/* ---------- Frase centrale, scritte ai lati, foto in parallasse ---------- */
.ghia .intro { position: relative; background: var(--carta); padding-top: clamp(4rem, 8vw, 7rem); }
.ghia .titolo-gigante {
  color: var(--notte);
  font-size: clamp(3rem, 10vw, 9rem);
  line-height: .86;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  pointer-events: auto;
}
.ghia .titolo-gigante em { color: var(--germoglio); }
.ghia .lato {
  position: absolute; top: calc(clamp(4rem, 8vw, 7rem) + clamp(3rem, 10vw, 9rem) * .7);
  font-family: var(--f-etichetta); font-weight: 700; font-size: .72rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--oliva);
}
.ghia .lato--sx { left: var(--margine); }
.ghia .lato--dx { right: var(--margine); }
.ghia .banda { margin: 0 var(--margine); border-radius: 18px; }
.ghia .frase {
  font-family: var(--f-titolo); font-weight: 600; font-variation-settings: "opsz" 60;
  color: var(--oliva);
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  line-height: 1.05;
}

/* ---------- Racconti su fondo azzurro ---------- */
.ghia .racconto {
  max-width: none; margin: 0;
  padding: clamp(3rem, 7vw, 6rem) var(--margine);
  grid-template-columns: repeat(2, minmax(0, 600px));
  justify-content: center;
  gap: 20px;
  background-color: var(--cielo);
}
.ghia .racconto article,
.ghia .racconto article + article {
  border: 0; margin: 0;
  border-radius: 16px;
  padding: clamp(2rem, 4vw, 3.4rem);
  text-align: left;
}
.ghia .racconto article + article::before { display: none; }
.ghia .racconto article:nth-child(1) { background: var(--carta); color: var(--notte); }
.ghia .racconto article:nth-child(2) { background: var(--notte); color: var(--carta); }
.ghia .racconto h2 { font-size: clamp(2.6rem, 4.6vw, 4rem); line-height: .9; }
.ghia .racconto .attacco { font-family: var(--f-frase); font-weight: 600; font-style: normal; font-size: 1.2rem; line-height: 1.35; }
.ghia .racconto .attacco em { font-style: normal; }
.ghia .racconto .testo { color: inherit; opacity: .9; font-size: 1.02rem; line-height: 1.65; }

/* ---------- Gli oli: fasce di colore, poi le scene ---------- */
.ghia .oli { background: var(--carta); padding-top: clamp(3rem, 7vw, 6rem); }
.ghia .oli .titolo-gigante { font-size: clamp(2.6rem, 7vw, 6rem); margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.ghia .oli .titolo-gigante .riga { display: inline-block; }
.ghia .fasce-oli { display: grid; }
.ghia .fasce-oli__voce {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: clamp(.8rem, 2vw, 1.4rem) var(--margine);
  text-decoration: none;
  transition: padding-left .3s;
}
.ghia .fasce-oli__voce:hover { padding-left: calc(var(--margine) + 1.5rem); }
.ghia .fasce-oli__voce span { font-size: clamp(3rem, 10vw, 9rem); line-height: .85; }
.ghia .fasce-oli__voce small {
  font-family: var(--f-etichetta); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  white-space: nowrap;
}
/* stesso colore della scena della bottiglia (voce "colore" dell'olio in content.js) */
.ghia .fasce-oli__voce--scuro { background: var(--notte); color: var(--nebbia); }
.ghia .fasce-oli__voce--scuro small { color: var(--cielo); }
.ghia .fasce-oli__voce--scuro:hover { background: var(--oliva); }
.ghia .fasce-oli__voce--chiaro { background: var(--nebbia); color: var(--notte); }
.ghia .fasce-oli__voce--chiaro small { color: var(--oliva); }
.ghia .fasce-oli__voce--chiaro:hover { background: var(--cielo); }

.ghia .scena--chiara { background: var(--nebbia); color: var(--notte); }
.ghia .scena--scura { background: var(--notte); color: var(--carta); }
.ghia .scena h3 { font-size: clamp(3rem, 6vw, 6rem); line-height: .88; }
.ghia .scena__prezzo {
  display: inline-block; margin-top: 1rem;
  padding: .4em .9em; border-radius: 999px;
  background: var(--cielo); color: var(--notte);
  font-family: var(--f-etichetta); font-weight: 700; font-size: 1rem;
}
.ghia .scena__nota { font-family: var(--f-frase); font-style: normal; font-weight: 500; font-size: 1.15rem; }
.ghia .scena__ordina {
  border: 0; border-radius: 6px;
  padding: .95em 1.8em;
  background: var(--notte); color: var(--carta);
  font-family: var(--f-etichetta); font-weight: 700;
}
.ghia .scena--scura .scena__ordina { background: var(--cielo); color: var(--notte); }
.ghia .scena__dettagli em { font-family: var(--f-titolo); font-style: normal; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }

/* ---------- Ordina ---------- */
.ghia .ordina { background: var(--oliva); }
.ghia .ordina__sfondo::after { background: rgba(70, 89, 2, .94); }
.ghia .ordina h2 { color: var(--carta); font-size: clamp(3.4rem, 9vw, 7rem); }
.ghia .ordina .attacco em { font-style: normal; font-weight: 700; }
.ghia .ordina .avviso-pagamento { color: var(--nebbia); font-style: normal; font-weight: 600; }
.ghia .campo label, .ghia .campo .etichetta-campo, .ghia .totale__etichetta { font-weight: 700; letter-spacing: .12em; color: var(--nebbia); }
.ghia .campo input, .ghia .campo textarea {
  background: var(--carta); color: var(--notte);
  border: 2px solid transparent; border-radius: 6px;
  font-family: var(--f-frase);
}
.ghia .campo input:focus, .ghia .campo textarea:focus { border-color: var(--cielo); background: var(--bianco); }
.ghia .campo [aria-invalid="true"] { border-color: var(--errore); }
.ghia .prodotto__nome { font-family: var(--f-titolo); font-weight: 800; text-transform: uppercase; font-size: 1.7rem; }
.ghia .prodotto__dettaglio { font-style: normal; }
.ghia .stepper button { border-radius: 6px; border-color: var(--nebbia); }
.ghia .stepper button:hover { background: var(--cielo); color: var(--notte); }
.ghia .stepper input { border: 0; font-family: var(--f-titolo); font-weight: 800; }
.ghia .totale__cifra { font-family: var(--f-titolo); font-weight: 800; color: var(--carta); }

/* ---------- Fondo pagina ---------- */
.ghia .piede { background: var(--notte); color: var(--nebbia); }
.ghia .piede__frase { font-family: var(--f-titolo); font-weight: 800; text-transform: uppercase; }
.ghia .piede__frase em { font-style: normal; }
.ghia .piede__filo { background: var(--cielo); }
.ghia .piede__nota { color: var(--cielo); font-weight: 600; }
.ghia .piede :focus-visible { outline-color: var(--carta); }

/* ---------- Tablet e telefono ---------- */
@media (max-width: 960px) {
  .ghia .racconto { grid-template-columns: minmax(0, 640px); }
  .ghia .lato { display: none; }
}
@media (max-width: 700px) {
  .ghia .testata .marchio { padding: 30px 18px 36px; }
  .ghia .testata .marchio--logo img { height: 36px; }
  .ghia .hero h1 { font-size: clamp(2.6rem, 12vw, 3.4rem); }
  .ghia .hero .foto img { object-position: 50% 50%; }
  .ghia .banda { margin: 0 12px; border-radius: 14px; }
  .ghia .racconto { padding-inline: 12px; }
  .ghia .fasce-oli__voce { flex-direction: column; align-items: flex-start; gap: .4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ghia .annunci__binario, .ghia .fascia__binario { animation: none; }
}



/* ---------- Pagina d'accesso con codice segreto ---------- */
html.bloccato, html.bloccato body { overflow: hidden; }
html.bloccato body > *:not(.accesso) { visibility: hidden; }
.accesso {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: 24px var(--margine);
  background-color: var(--notte, #384001);
  color: var(--carta, #EEF3F7);
  text-align: center;
  overflow: hidden;
  transition: opacity .6s ease, visibility .6s;
}
/* motivo di "1721" ripetuti in diagonale, tono su tono */
.accesso__motivo {
  position: absolute; left: 50%; top: 50%;
  width: 260vmax; height: 260vmax;
  transform: translate(-50%, -50%) rotate(-28deg);
  display: flex; flex-direction: column; justify-content: center;
  font-family: var(--f-titolo); font-weight: 800;
  font-size: clamp(1.8rem, 3.6vw, 3.2rem); line-height: 1.02;
  color: var(--nebbia, #B8CAD9); opacity: .13;
  white-space: nowrap; overflow: hidden;
  pointer-events: none; user-select: none;
}
.accesso__motivo span { display: block; }
.accesso__motivo span:nth-child(even) { margin-left: -1.6em; }   /* righe sfalsate */
.accesso__box { position: relative; width: min(100%, 560px); display: grid; justify-items: center; gap: 1.2rem; }
.accesso__logo { height: clamp(64px, 9vw, 92px); width: auto; margin-bottom: 1rem; }
.accesso__titolo {
  font-family: var(--f-titolo); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.8rem, 8vw, 5rem); line-height: .9; letter-spacing: -.005em;
}
.accesso__richiesta { font-family: var(--f-frase); font-size: 1.15rem; color: var(--nebbia, #B8CAD9); }
.accesso__form { display: flex; gap: 10px; width: 100%; margin-top: .4rem; }
.accesso__form input {
  flex: 1; min-width: 0;
  padding: .9rem 1rem;
  border: 2px solid transparent; border-radius: 6px;
  background: var(--carta, #EEF3F7); color: var(--notte, #384001);
  font-family: var(--f-frase); font-size: 1.15rem; letter-spacing: .2em; text-align: center;
}
.accesso__form input:focus { outline: none; border-color: var(--cielo, #89B3D9); }
.accesso__form .bottone { flex: none; }
.accesso__errore { min-height: 1.4em; color: var(--cielo, #89B3D9); font-weight: 600; }
.accesso--errore .accesso__form { animation: scuoti .4s ease; }
@keyframes scuoti {
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}
.accesso--aperto { opacity: 0; visibility: hidden; }
@media (max-width: 480px) {
  .accesso__form { flex-direction: column; }
}

/* ---------- Goccia d'olio 3D sul bordo sinistro (goccia.js) ---------- */
.goccia {
  --largo: clamp(64px, 7vw, 110px);
  position: fixed;
  left: calc(var(--largo) / -2);     /* centrata sul bordo sinistro: se ne vede metà */
  top: 0;
  width: var(--largo);
  height: 100vh;
  height: 100svh;
  z-index: 45;                       /* sopra le sezioni, sotto testata e barra annunci */
  pointer-events: none;
}
.goccia canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.goccia__scia {
  position: absolute; left: 50%; top: 0;
  width: 3px; margin-left: -1.5px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(to bottom, rgba(154, 154, 18, 0), rgba(154, 154, 18, .55) 30%, rgba(154, 154, 18, .8));
}

@media (max-width: 700px) {
  .goccia { --largo: 52px; }
}

/* ---------- Chi preferisce meno movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
