/* =========================================================================
   Il Regno del Food — Panettoni artigianali
   Design system (ui-ux-pro-max): Luxury Serif (Cormorant + Montserrat) + corsivo
   Great Vibes per il titolo. Sfondo bianco, verde del logo e oro, come il mockup.
   ========================================================================= */

@font-face {
  font-family: "Great Vibes";
  src: url("../fonts/greatvibes.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant";
  src: url("../fonts/cormorant-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant";
  src: url("../fonts/cormorant-italic-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* colori (campionati dal logo e dal mockup) */
  --bg: #ffffff;
  --bg-soft: #fbf8f1;
  --bg-warm: #f5eee0;
  --ink: #0b3019;
  --ink-2: #184a2c;
  --text: #33443a;
  --muted: #637068;
  --gold: #a5812f;            /* oro: 3.6:1 sul bianco, per i titoli grandi */
  --gold-deep: #8a6a26;
  --gold-soft: #e9dcc0;
  --line: rgba(11, 48, 25, 0.11);
  --line-gold: rgba(184, 146, 68, 0.38);
  --shadow-card: 0 28px 60px -34px rgba(11, 48, 25, 0.3);

  /* tipografia */
  --script: "Great Vibes", "Snell Roundhand", cursive;
  --serif: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* layout (aggiornati da js/main.js) */
  --nav-h: 64px;
  --a-w: 100vw;
  --a-top: 40px;
  --stream-x: 57vw;
  --content-left: 6vw;
  --sticky-dist: 110vh;
  --b-w: 125vw;
  --b-left: -15vw;
  --b-bottom: -4vw;
  --b-visible: 86vw;
  --pad-x: 6vw;
  --gutter: 38px;              /* telefono: margine destro libero, ci scorre la colata */
  --h-target: 66svh;
  --b-gap: 220px;
  --c1-len: 300px;
  --b-h: 100vw;
  --a-h: 88vw;
  --sec-pad: clamp(96px, 14vh, 170px);

  /* cursore scuro con bordo bianco: si vede sul bianco e sul verde (nitido anche su schermi HiDPI) */
  --cur-arrow: -webkit-image-set(url("../assets/cursor/arrow.png") 1x, url("../assets/cursor/arrow@2x.png") 2x) 4 3, auto;
  --cur-hand: -webkit-image-set(url("../assets/cursor/hand.png") 1x, url("../assets/cursor/hand@2x.png") 2x) 12 3, pointer;

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

@media (min-width: 900px), (orientation: landscape) and (min-aspect-ratio: 6/5) and (min-width: 600px) {
  :root {
    --nav-h: 84px;
    --a-w: min(46vw, 900px);
    --a-top: 6vh;
    --stream-x: 26vw;
    --content-left: max(38vw, calc(var(--stream-x) + 11vw));
    --sticky-dist: 130vh;
    --b-w: 55vw;
    --b-left: -4vw;
    --pad-x: 5vw;
    --gutter: 0px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  overflow-x: clip;
  cursor: var(--cur-arrow);
}

button:not(:disabled),
summary,
select,
input[type="checkbox"],
input[type="radio"] { cursor: var(--cur-hand); }

input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"]),
textarea { cursor: text; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow: clip;              /* niente scroll orizzontale, e la tela della colata non allunga mai la pagina */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
p, li { text-wrap: pretty; }   /* niente parola sola sull'ultima riga, dove il browser lo sa fare */
ul, ol { padding: 0; list-style: none; }

::selection { background: var(--gold-soft); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 600; text-decoration: none;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 12px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ------------------------------------------------------------------ type */

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.4rem;
}

.h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
  max-width: 20ch;
}
.h2 em, .pour__title em { font-style: italic; color: var(--gold); font-weight: 500; }

.lead {
  margin-top: 1.6rem;
  max-width: 58ch;
  font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.18rem);
  color: var(--text);
  text-wrap: pretty;
}

/* --------------------------------------------------------------- buttons */

.btn {
  --h: 54px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: var(--h);
  padding: 0 1.7em;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: var(--cur-hand);
  overflow: hidden;
  isolation: isolate;
  transition: scale 0.25s var(--ease-out), background-color 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.3s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { scale: 0.97; }
.btn--sm { --h: 46px; padding: 0 1.4em; font-size: 1.06rem; }
.btn--block { width: 100%; }
.btn--caps { text-transform: uppercase; letter-spacing: 0.09em; font-size: 1.02rem; }

.btn--green {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 16px 32px -18px rgba(11, 48, 25, 0.7);
}
.btn--green::after {
  content: "";
  position: absolute;
  inset: -2px auto -2px -60%;
  width: 45%;
  z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(233, 220, 192, 0.35), transparent);
  transform: skewX(-18deg) translateX(0);
  transition: transform 0.8s var(--ease-out);
}
.btn--green:hover { background: var(--ink-2); box-shadow: 0 20px 40px -18px rgba(11, 48, 25, 0.75); }
.btn--green:hover::after { transform: skewX(-18deg) translateX(420%); }
.btn .icon { transition: transform 0.3s var(--ease-out); }
.btn:hover .icon { transform: translateX(3px); }

.btn--line {
  color: var(--ink);
  border-color: var(--line-gold);
  background: #fff;
}
.btn--line:hover { border-color: var(--gold); background: var(--bg-soft); }

/* ------------------------------------------------------------------ nav */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  padding: 0 var(--pad-x);
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(1.3) blur(12px);
  backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity 0.4s;
}
.nav.is-scrolled::before { opacity: 1; }
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
/* il logo grande è nella hero: in alto la navbar parte dai link, come nel mockup */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  flex: none;
  transition: max-width 0.7s var(--ease-out), opacity 0.4s;
}
.nav.is-scrolled .brand { max-width: 280px; opacity: 1; }
.brand__mark { height: calc(var(--nav-h) - 20px); width: auto; flex: none; }
.brand__word { height: calc((var(--nav-h) - 20px) * 0.42); width: auto; flex: none; }
.nav__links { display: none; gap: 2.6rem; }
.nav__links a {
  position: relative;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  padding: 0.5rem 0;
  white-space: nowrap;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.1rem;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav__links a:hover::after,
.nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }
.nav__cta { display: none; margin-right: 0.6rem; }
.cart-btn {
  position: relative;
  width: 48px; height: 48px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: var(--cur-hand);
  transition: background-color 0.25s;
}
.cart-btn:hover { background: var(--bg-soft); }
.cart-btn .icon { width: 30px; height: 30px; }
.cart-btn__count {
  position: absolute;
  top: 2px; right: 0;
  min-width: 21px; height: 21px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold-deep);
  color: #fff;
  font: 600 0.72rem/21px var(--sans);
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}
.nav__burger {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: var(--cur-hand);
}
.nav__burger .icon { width: 22px; height: 22px; }

/* telefono in orizzontale: il bottone per prenotare c'è, i link restano nel menu */
@media (min-width: 900px), (orientation: landscape) and (min-aspect-ratio: 6/5) and (min-width: 600px) {
  .nav__cta { display: inline-flex; white-space: nowrap; }
}
@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__burger { display: none; }
}
@media (min-width: 900px) and (max-width: 1180px) {
  .nav__links { gap: 1.6rem; }
  .nav__links a { font-size: 1.08rem; }
  .nav.is-scrolled .brand__word { display: none; }
}

/* ---------------------------------------------------------------- menu */

.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background:
    radial-gradient(80vw 60vh at 100% 0%, rgba(233, 220, 192, 0.5), transparent 60%),
    #fff;
  display: grid;
  place-items: center;
  overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu__inner {
  width: min(520px, 88vw);
  display: grid;
  gap: 1.6rem;
  justify-items: start;
  padding: 5rem 0 3rem;
}
.menu__logo { width: 92px; }
.menu nav { display: grid; gap: 0.2rem; }
.menu nav a {
  font-family: var(--serif);
  font-size: clamp(2rem, 8.5vw, 3rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.18;
  color: var(--ink);
  text-decoration: none;
}
.menu nav a:hover { color: var(--gold-deep); }
.menu__close {
  position: absolute;
  top: 12px; right: var(--pad-x);
  width: 46px; height: 46px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  display: grid; place-items: center;
  cursor: var(--cur-hand);
}
.menu__close .icon { width: 22px; height: 22px; }
.menu__addr { font-size: 0.85rem; letter-spacing: 0.04em; color: var(--muted); }

/* -------------------------------------------------------------- stream */
/* la colata è disegnata su una tela (main.js) che sta in un contenitore fermo con la fetta finché è
   agganciata e poi scorre con la pagina: quello che è disegnato resta incollato alle sezioni anche quando
   il telefono scorre per conto suo. Sopra gli sfondi, sotto schede, fetta e panettone. */
.stream-wrap {
  position: sticky;
  top: 0;
  z-index: 3;
  height: 100vh;
  height: 100svh;
  margin-top: -100vh;
  margin-top: -100svh;
  pointer-events: none;
}
.stream {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  will-change: transform;
}

.crumbs {
  position: absolute;
  inset: 0 0 auto;
  height: 0;
  z-index: 4;
  pointer-events: none;
}
.crumb {
  position: absolute;
  top: 0; left: 0;
  will-change: transform;
}
.crumb svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 6px 7px rgba(11, 48, 25, 0.2)); }
.crumb.is-blur svg { filter: blur(2.4px) drop-shadow(0 6px 7px rgba(11, 48, 25, 0.16)); }

main { position: relative; }

/* ---------------------------------------------------------------- hero */

/* la hero resta ferma e la sezione della fetta le scorre sopra: il braccio tagliato in basso non si vede mai */
.intro { position: relative; }
.hero {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: #fff;
}
.hero__table {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 1;
  pointer-events: none;
  display: none;
}
.hero__copy {
  position: absolute;
  z-index: 3;
  /* mobile: il blocco del logo si centra nello spazio libero sopra il panettone */
  top: calc(var(--nav-h) + max(2px, (100svh - var(--nav-h) - min(96vw, 52svh) * 0.982 - 330px) / 2.2));
  left: 0;
  right: 0;
  padding: 0 var(--pad-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero__brand { display: grid; justify-items: center; }
.hero__mark { height: min(17.5svh, 38vw); width: auto; }
.hero__word { width: min(72vw, 330px); margin-top: 0.45rem; }
.hero__title {
  margin-top: 0.7rem;
  font-family: var(--script);
  font-weight: 400;
  line-height: 1;
}
.hero__t1 {
  display: block;
  font-size: min(14.5vw, 7.4svh);
  line-height: 1;
  color: var(--ink);
}
.hero__t2 {
  display: block;
  font-size: min(10.8vw, 5.6svh);
  line-height: 1;
  color: var(--gold);
  margin-top: -0.34em;
  padding-left: 0.7em;
}
.hero__year,
.hero__tagline,
.hero__cta { display: none; }
.hero__visual {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  width: min(96vw, 52svh);
  aspect-ratio: 1;
}
.hero__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}
/* coperta dalla fetta: non si disegna più (niente fusione in moltiplica da ricalcolare) */
.hero.is-off { visibility: hidden; }

@media (min-width: 600px) and (max-width: 899px) and (orientation: portrait) {
  .hero__copy { top: calc(var(--nav-h) + 3svh); }
  .hero__mark { height: 13svh; }
  .hero__visual { width: min(84vw, 47svh); }
}
@media (max-width: 599px) and (max-height: 720px) {
  .hero__mark { height: 14.5svh; }
  .hero__word { width: min(62vw, 300px); }
  .hero__t1 { font-size: min(12.5vw, 6.8svh); }
  .hero__t2 { font-size: min(9.4vw, 5.1svh); }
  .hero__visual { width: min(92vw, 50svh); }
}

@media (min-width: 900px), (orientation: landscape) and (min-aspect-ratio: 6/5) and (min-width: 600px) {
  .hero { min-height: 620px; }
  .hero__table { display: block; }
  .hero__copy {
    inset: var(--nav-h) auto 0 0;
    width: 52vw;
    padding: 0 2vw 2vh;
    justify-content: center;
    font-size: clamp(11px, min(1.12vw, 1.8svh), 18px);
  }
  .hero__mark { height: 8.4em; }
  .hero__word { width: 24em; margin-top: 0.35em; }
  .hero__title { margin-top: 0.4em; font-size: 1em; }
  .hero__t1 { font-size: 8.2em; line-height: 0.95; }
  .hero__t2 { font-size: 5.6em; margin-top: -0.4em; padding-left: 0.7em; }
  .hero__year {
    display: inline-flex;
    align-items: center;
    gap: 0.55em;
    margin-top: 0.3em;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 2.5em;
    line-height: 1;
    letter-spacing: 0.16em;
    color: var(--ink);
  }
  .hero__year::before,
  .hero__year::after {
    content: "";
    width: 3.4em;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
  }
  .hero__year::after { background: linear-gradient(270deg, transparent, var(--gold)); }
  .hero__year span { margin-right: -0.16em; }
  .hero__tagline {
    display: block;
    margin-top: 0.7em;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-size: 1.62em;
    line-height: 1.3;
    color: var(--text);
  }
  .hero__cta { display: inline-flex; margin-top: 1.3em; font-size: max(0.96em, 0.95rem); }
  /* qui sotto c'è il tavolo: il video è su fondo bianco, in moltiplica il bianco sparisce e restano solo
     mano e panettone (sul telefono il fondo è già bianco: nessuna fusione, il video si disegna diretto) */
  .hero__visual { width: min(50vw, 88svh); mix-blend-mode: multiply; }
}
@media (min-width: 900px) and (max-height: 600px), (orientation: landscape) and (max-height: 600px) {
  .hero__mark, .hero__year { display: none; }
}

/* ------------------------------------------------------- la fetta (video) */

.pour {
  position: relative;            /* niente z-index: sfondo e contenuto si intercalano con la colata */
  height: calc(100vh + var(--sticky-dist));
  height: calc(100svh + var(--sticky-dist));
}
.pour::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #fff;
  border-radius: 36px 36px 0 0;
  box-shadow: 0 -26px 50px -30px rgba(11, 48, 25, 0.32);
}
.pour__sticky {
  position: sticky;
  z-index: 5;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: visible;
}
.pour__media {
  position: absolute;
  left: 0;
  top: var(--a-top);
  width: var(--a-w);
  aspect-ratio: 500 / 440;
  transform-origin: 0% 70%;
  will-change: transform;
}
.pour__float { position: relative; width: 100%; height: 100%; will-change: transform; }
.seq {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.seq-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* l'immagine di riserva resta finché la tela non ha disegnato il primo frame (rete lenta) */
.js .seq.is-ready + .seq-fallback { display: none; }
.no-js .seq { display: none; }

.pour__copy {
  will-change: opacity, translate;
  position: absolute;
  left: var(--pad-x);
  right: max(var(--pad-x), var(--gutter));
  /* sotto la paletta; sugli schermi alti (tablet in verticale) scende ancora un po' */
  top: calc(var(--a-top) + var(--a-h) * 0.77 + clamp(4px, 1.4svh, 16px) + clamp(0px, (100svh - 860px) * 0.3, 48px));
  /* mobile: scheda bianca sopra la colata, come le altre sezioni */
  padding: 1.3rem 1.3rem 1.4rem;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.pour__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.3rem, min(10vw, 6.2svh), 6rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
.pour__lead {
  margin-top: 1rem;
  max-width: 46ch;
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.12rem);
  line-height: 1.6;
}
.trust {
  display: none;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin-top: 1.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.trust li { display: inline-flex; align-items: center; gap: 0.5rem; }
.trust .icon { color: var(--gold); width: 18px; height: 18px; }

/* telefono: le didascalie stanno sotto la goccia, che durante l'aggancio non scende oltre --h-target */
.pour__caption {
  position: absolute;
  left: var(--pad-x);
  right: max(var(--pad-x), var(--gutter));
  top: calc(var(--h-target) + clamp(16px, 3.2svh, 32px));
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 1.2rem + 3vw, 4rem);
  line-height: 1.05;
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  will-change: opacity, translate;
}
.pour__caption span { display: block; }
.pour__caption em { color: var(--gold); font-weight: 500; }

@media (max-width: 599px) and (max-height: 760px) {
  .pour .eyebrow { font-size: 0.7rem; letter-spacing: 0.15em; margin-bottom: 1rem; }
  .pour__lead { font-size: 0.9rem; line-height: 1.5; margin-top: 0.8rem; }
}

@media (min-width: 900px), (orientation: landscape) and (min-aspect-ratio: 6/5) and (min-width: 600px) {
  .pour__copy {
    left: max(calc(var(--a-w) * 0.8), 50vw);
    right: auto;
    width: min(620px, calc(100vw - max(calc(var(--a-w) * 0.8), 50vw) - var(--pad-x)));
    top: 50%;
    transform: translateY(-46%);
    padding: 0;
    border-radius: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .pour__caption {
    left: max(calc(var(--a-w) * 0.8), 50vw);
    right: var(--pad-x);
    top: 50%;
    width: auto;
    max-width: none;
    padding: 0;
    background: none;
    box-shadow: none;
    transform: translateY(-50%);
  }
  .trust { display: flex; }
}
@media (max-height: 560px) {
  .trust { display: none; }
  .pour__lead { display: none; }
}

/* ------------------------------------------------------------ sections */

.section {
  position: relative;
  z-index: 4;
  padding: var(--sec-pad) max(var(--pad-x), var(--gutter)) var(--sec-pad) var(--pad-x);
}
.section__inner { position: relative; }
.section__index { display: none; }

/* mobile: le sezioni sono schede bianche, la colata scorre dietro */
.section > .section__inner {
  padding: 2.4rem 1.4rem;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

@media (min-width: 900px), (orientation: landscape) and (min-aspect-ratio: 6/5) and (min-width: 600px) {
  .section { padding: var(--sec-pad) var(--pad-x) var(--sec-pad) var(--content-left); }
  .section > .section__inner {
    padding: 0;
    border-radius: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .section__index {
    display: block;
    position: absolute;
    top: calc(var(--sec-pad) + 0.3rem);
    left: var(--pad-x);
    width: calc(var(--stream-x) - var(--pad-x) - 4vw);
    font-family: var(--serif);
    font-size: clamp(3rem, 5vw, 5.5rem);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(184, 146, 68, 0.7);
  }
  .section__index i {
    display: block;
    margin-top: 0.6rem;
    font-family: var(--sans);
    font-style: normal;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-deep);
    -webkit-text-stroke: 0;
  }
}

/* manifesto */
.pillars {
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
}
.pillar {
  position: relative;
  padding: 1.6rem 1.4rem 1.5rem;
  border-radius: 22px;
  border: 1px solid rgba(184, 146, 68, 0.26);
  background: linear-gradient(160deg, var(--bg-soft), #fff 62%);
  transition: translate 0.5s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}
.pillar:hover { translate: 0 -4px; border-color: var(--line-gold); box-shadow: var(--shadow-card); }
.pillar__icon { width: 30px; height: 30px; color: var(--gold); margin-bottom: 1rem; }
.pillar h3 {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  font-style: italic;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.pillar p { font-size: 0.96rem; line-height: 1.6; }
@media (min-width: 1100px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
}

/* collezione */
.products { margin-top: 3.2rem; display: grid; gap: 1.2rem; }
.product {
  display: grid;
  gap: 1.4rem;
  padding: 1.6rem 0 2rem;
  border-top: 1px solid var(--line);
}
.product__media {
  position: relative;
  width: min(78%, 380px);
  justify-self: center;
  perspective: 900px;
  will-change: transform;
}
.product__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  will-change: transform;
}
/* ombra a terra + alone caldo: solo gradienti, nessun filtro costoso */
.product__media::after {
  content: "";
  position: absolute;
  left: 12%; right: 12%;
  bottom: -5%;
  height: 12%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(11, 48, 25, 0.26), rgba(11, 48, 25, 0) 100%);
  z-index: 0;
}
.product__glow {
  position: absolute;
  inset: 0% -6% 4%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(233, 220, 192, 0.95), rgba(233, 220, 192, 0.35) 55%, rgba(233, 220, 192, 0) 100%);
  opacity: 0.8;
  transition: opacity 0.6s, transform 0.8s var(--ease-out);
}
.product:hover .product__glow { opacity: 1; transform: scale(1.08); }
.product__tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.product--savory .product__tag { color: #a8551f; }
.product__name {
  margin-top: 0.5rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.4rem, 1.6rem + 3vw, 4.1rem);
  line-height: 1;
  color: var(--ink);
}
.product__desc { margin-top: 0.9rem; max-width: 46ch; }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1.1rem 0 1.4rem; }
.chips li {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--text);
}
.add__qty:not(:empty) {
  display: inline-grid;
  place-items: center;
  min-width: 24px; height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--gold-deep);
  color: #fff;
  font: 600 0.75rem/24px var(--sans);
}
.add.is-added { border-color: var(--gold); background: var(--bg-soft); }

/* formato e prezzo */
.buy { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1rem; }
.buy__sizes {
  display: inline-flex;
  margin: 0;
  padding: 3px;
  min-width: 0;
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  background: #fff;
}
.buy__sizes--one { padding: 3px; }
.size {
  position: relative;
  display: inline-flex;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0 1.05rem;
  border-radius: 999px;
  align-items: center;
  cursor: var(--cur-hand);
  color: var(--ink);
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out);
}
.size input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: var(--cur-hand);
}
.size__w { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.size__p { font-family: var(--serif); font-variant-numeric: lining-nums; font-size: 1.35rem; font-weight: 600; line-height: 1; color: var(--gold-deep); transition: color 0.35s; }
.size:hover { background: var(--bg-soft); }
.size:has(input:checked),
.size--static { background: var(--ink); color: #fff; }
.size:has(input:checked) .size__p,
.size--static .size__p { color: var(--gold-soft); }
.size:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.size--static { cursor: var(--cur-arrow); }
.size--static:hover { background: var(--ink); }
@media (min-width: 900px), (orientation: landscape) and (min-aspect-ratio: 6/5) and (min-width: 600px) {
  .products { gap: 0; }
  .product {
    grid-template-columns: minmax(220px, 0.9fr) 1.1fr;
    align-items: center;
    gap: 3.5vw;
    padding: 3.2rem 0;
  }
  .product:nth-child(even) .product__media { order: 2; }
  .product__media { width: 100%; max-width: 380px; }
}

/* chi siamo */
.maker__grid { display: grid; gap: 2.4rem; }
.maker__photo { position: relative; margin: 0 0.4rem 0.6rem 0; }
.maker__photo::before {
  content: "";
  position: absolute;
  inset: 14px -12px auto 14px;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--gold);
  border-radius: 24px;
  z-index: 0;
}
.maker__frame {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  will-change: clip-path;
}
.maker__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
  will-change: transform;
}
.maker__photo figcaption {
  position: relative;
  margin-top: 1.7rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
}
.maker__copy p + p { margin-top: 1rem; }
.maker__copy .h2 { margin-bottom: 1.6rem; }
.maker .h2 { font-size: clamp(2.2rem, 1.1rem + 2.9vw, 4rem); max-width: 18ch; }
.maker__motto {
  margin-top: 1.6rem !important;
  font-family: var(--script);
  font-size: 2.1rem;
  line-height: 1.2;
  color: var(--gold);
}
@media (min-width: 900px) {
  .maker__photo { max-width: 760px; }
}
@media (min-width: 1500px) {
  .maker__grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 4vw; }
}

/* non solo panettoni */
.beyond { padding-top: calc(var(--sec-pad) * 0.55); }
.marquee-band { position: relative; z-index: 4; padding-top: calc(var(--sec-pad) * 0.7); }
.marquee {
  position: relative;
  z-index: 3;
  margin: 0;
  display: grid;
  gap: 0.4rem;
  overflow: hidden;
  /* sul telefono la scritta sfuma prima del margine in cui scorre la colata (--gutter è 0 su desktop) */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 min(92%, calc(100% - var(--gutter) - 24px)), transparent min(100%, calc(100% - var(--gutter) + 4px)));
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 min(92%, calc(100% - var(--gutter) - 24px)), transparent min(100%, calc(100% - var(--gutter) + 4px)));
}
.marquee__row { overflow: hidden; }
.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 2.4rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.6rem, 1.6rem + 4.5vw, 6rem);
  line-height: 1.15;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  will-change: transform;
}
.marquee__row:first-child .marquee__track span { color: transparent; -webkit-text-stroke: 1px rgba(184, 146, 68, 0.85); }
.marquee__row--reverse .marquee__track { animation-direction: reverse; animation-duration: 44s; color: var(--ink); }
.marquee__gem { width: 0.32em; height: 0.32em; color: var(--gold); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

.b2b {
  margin-top: 2.6rem;
  display: grid;
  gap: 1.4rem;
  padding: 1.8rem 1.5rem;
  border-radius: 24px;
  border: 1px solid var(--line-gold);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(233, 220, 192, 0.7), transparent 60%),
    var(--bg-soft);
}
.b2b h3 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
@media (min-width: 1100px) {
  .b2b { grid-template-columns: 1fr auto; align-items: center; padding: 2.2rem 2.4rem; }
}

/* come ordinare */
.how {
  display: grid;
  gap: 1rem;
  margin: 2.6rem 0 2.4rem;
  counter-reset: how;
}
.how__step {
  position: relative;
  padding: 1.5rem 1.4rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #fff;
}
.how__step b {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold-deep);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
}
.how__step h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.how__step p { font-size: 0.95rem; line-height: 1.6; }
.how__step strong { color: var(--ink); white-space: nowrap; }
.order__ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.order__count {
  display: inline-grid;
  place-items: center;
  min-width: 24px; height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--gold-deep);
  color: #fff;
  font: 600 0.75rem/24px var(--sans);
}
.order__note { margin-top: 1.4rem; font-size: 0.86rem; color: var(--muted); }
@media (min-width: 1100px) {
  .how { grid-template-columns: repeat(3, 1fr); }
}

/* -------------------------------------------------------------- finale: contatti, modulo e panettone */

/* telefono: scheda dei contatti, poi la colata esce dal margine e cade nel panettone, sotto il modulo */
.finale {
  position: relative;            /* niente z-index: l'alone resta sotto la colata, panettone e testi sopra */
  display: flex;
  flex-direction: column;
  padding: var(--sec-pad) max(var(--pad-x), var(--gutter)) clamp(40px, 7svh, 72px) var(--pad-x);
  overflow: hidden;
}
.finale__glow {
  position: absolute;
  left: calc(var(--b-left) + var(--b-w) * 0.5 - 60vw);
  top: calc(var(--b-top-f, 60%) - var(--b-h) * 0.25);
  width: 120vw;
  height: calc(var(--b-h) * 1.5);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(233, 220, 192, 0.85), rgba(233, 220, 192, 0.3) 55%, transparent 75%);
  pointer-events: none;
}
.finale__grid { display: contents; }
.finale__copy {
  order: 1;
  position: relative;
  z-index: 5;
  padding: 2.4rem 1.4rem;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.finale__title { max-width: 15ch; margin-bottom: 1.8rem; font-size: clamp(2.1rem, 1rem + 2.6vw, 3.6rem); }
.contacts { display: grid; gap: 0.7rem; margin-top: 2rem; }
.contacts li { display: flex; align-items: center; gap: 0.75rem; min-height: 44px; }
.contacts .icon { color: var(--gold); width: 22px; height: 22px; }
.contacts a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.contacts a:hover { color: var(--gold-deep); border-color: var(--gold); }
.finale__media {
  order: 2;
  position: relative;
  z-index: 4;
  flex: none;
  align-self: flex-start;
  width: var(--b-w);
  margin: var(--b-gap) 0 calc(var(--b-h) * -0.03) calc(var(--b-left) - var(--pad-x));
  aspect-ratio: 510 / 520;
}
.finale .contact__form { order: 3; z-index: 5; margin-top: 1.4rem; }
.finale__legal {
  order: 4;
  position: relative;
  z-index: 5;
  margin-top: 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  max-width: 48ch;
}
@media (min-width: 900px), (orientation: landscape) and (min-aspect-ratio: 6/5) and (min-width: 600px) {
  /* il panettone a sinistra, sotto la corsia della colata; testo e modulo a destra */
  .finale {
    display: block;
    min-height: calc(var(--b-h) * 0.97 + 22vh);
    padding: var(--sec-pad) var(--pad-x) clamp(56px, 9vh, 110px) var(--finale-left);
  }
  .finale .section__index { top: var(--sec-pad); }
  .finale__glow {
    left: calc(var(--b-left) + var(--b-w) * 0.5 - 37vw);
    top: auto;
    bottom: -32vh;
    width: 74vw;
    height: 120vh;
  }
  .finale__grid {
    display: grid;
    position: relative;
    z-index: 5;
    width: min(100%, 640px);
    gap: 2.6rem;
    align-items: start;
  }
  .finale__copy { padding: 0; border-radius: 0; background: none; border: 0; box-shadow: none; }
  .contacts { gap: 0.2rem; margin-top: 1.6rem; }
  .finale .contact__form { margin-top: 0; }
  .finale__legal { margin-top: 0; }
  .finale__media {
    position: absolute;
    left: var(--b-left);
    bottom: calc(var(--b-h) * -0.02);
    margin: 0;
  }
}

/* -------------------------------------------------------------- carrello */

.cart { position: fixed; inset: 0; z-index: 80; }
.cart[hidden] { display: none; }
.cart__scrim {
  position: absolute;
  inset: 0;
  background: rgba(11, 48, 25, 0.38);
  opacity: 0;
  transition: opacity 0.45s;
}
.cart.is-open .cart__scrim { opacity: 1; }
.cart__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(470px, 100vw);
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -40px 0 90px -40px rgba(11, 48, 25, 0.45);
  transform: translateX(104%);
  transition: transform 0.6s var(--ease-out);
  outline: none;
}
.cart.is-open .cart__panel { transform: none; }
.cart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: max(1rem, env(safe-area-inset-top)) 1.4rem 1rem;
  border-bottom: 1px solid var(--line);
}
.cart__eyebrow { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep); }
.cart__title { font-family: var(--script); font-weight: 400; font-size: 2.6rem; line-height: 1.05; color: var(--ink); }
.cart__close {
  width: 46px; height: 46px;
  flex: none;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  display: grid; place-items: center;
  cursor: var(--cur-hand);
}
.cart__close .icon { width: 22px; height: 22px; }
.cart__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.6rem 1.4rem 1.6rem;
}
.cart__list { display: grid; }
.qty-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  grid-template-areas: "img name remove" "img step sub";
  align-items: center;
  gap: 0.2rem 0.9rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.qty-row[hidden] { display: none; }
.qty-row__img { grid-area: img; width: 56px; height: 56px; object-fit: contain; }
.qty-row__name {
  grid-area: name;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
}
.qty-row__name small {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  font-size: 0.76rem;
  color: var(--muted);
}
.qty-row .stepper { grid-area: step; justify-self: start; margin-top: 0.3rem; }
.qty-row__sub {
  grid-area: sub;
  place-self: center end;
  padding-right: 0.5rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  font-variant-numeric: lining-nums;
  color: var(--ink);
}
.qty-row__sizes {
  display: inline-flex;
  gap: 2px;
  margin-top: 0.45rem;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--sans);
  font-style: normal;
}
.qty-row__sizes button {
  min-height: 34px;
  min-width: 52px;
  padding: 0 0.7rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: 600 0.72rem/1 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: var(--cur-hand);
  transition: background-color 0.25s, color 0.25s;
}
.qty-row__sizes button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.qty-row__sizes button:not([aria-pressed="true"]):hover { background: var(--bg-soft); }
.qty-row__sizes--one {
  padding: 0.45rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
.qty-row__remove {
  grid-area: remove;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: grid; place-items: center;
  cursor: var(--cur-hand);
  transition: color 0.2s, background-color 0.2s;
}
.qty-row__remove:hover { color: #a8551f; background: var(--bg-soft); }
.qty-row__remove .icon { width: 20px; height: 20px; }
.stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid var(--line-gold);
  background: #fff;
}
.stepper button {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--ink);
  display: grid; place-items: center;
  cursor: var(--cur-hand);
  transition: background-color 0.2s;
}
.stepper button:hover { background: var(--bg-soft); }
.stepper button:disabled { opacity: 0.3; cursor: var(--cur-arrow); background: transparent; }
.stepper .icon { width: 18px; height: 18px; }
.stepper output {
  min-width: 2ch;
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.cart__empty { padding: 1.6rem 0 0.6rem; }
.cart__empty[hidden] { display: none; }
.cart__empty-title { font-family: var(--serif); font-size: 1.6rem; font-style: italic; font-weight: 600; color: var(--ink); line-height: 1.15; margin-bottom: 0.3rem; }
.cart__empty p:not(.cart__empty-title) { font-size: 0.92rem; color: var(--muted); }
.quick { margin-top: 1.2rem; }
.quick__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.7rem;
}
.quick__list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.quick__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.25rem 0.8rem 0.25rem 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 600;
  cursor: var(--cur-hand);
  transition: border-color 0.2s, background-color 0.2s, scale 0.2s var(--ease-out);
}
.quick__btn:hover { border-color: var(--gold); background: var(--bg-soft); }
.quick__btn:active { scale: 0.96; }
.quick__btn img { width: 36px; height: 36px; object-fit: contain; }
.quick__btn span { display: grid; text-align: left; line-height: 1.05; }
.quick__btn small { font-family: var(--sans); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.04em; color: var(--muted); }
.quick__btn .icon { width: 16px; height: 16px; color: var(--gold-deep); }

.fields { display: grid; gap: 1rem; margin: 1.8rem 0 0; padding: 0; border: 0; min-width: 0; }
.fields__legend {
  padding: 0;
  margin-bottom: 0.2rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 600;
  color: var(--ink);
}
.field label:not(.check) {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(11, 48, 25, 0.2);
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  color-scheme: light;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input::placeholder,
.field textarea::placeholder { color: #6b7570; }   /* 4.7:1 sul bianco */
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 146, 68, 0.22); }
.field input[aria-invalid="true"] { border-color: #b3401f; }
.field__help { margin-top: 0.35rem; font-size: 0.8rem; color: var(--muted); }
.field__error { margin-top: 0.45rem; font-size: 0.84rem; font-weight: 500; color: #b3401f; }
.check {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  cursor: var(--cur-hand);
  color: var(--ink);
  font-weight: 500;
}
.check input {
  width: 22px; height: 22px; min-height: 0;
  accent-color: var(--ink);
}
.cart__preview { margin-top: 1.4rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.cart__preview summary {
  cursor: var(--cur-hand);
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.summary__bubble {
  margin-top: 0.5rem;
  padding: 0.9rem 1rem;
  border-radius: 4px 18px 18px;
  background: #e8f3df;
  border: 1px solid rgba(11, 48, 25, 0.08);
}
.summary__text {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.84rem;
  line-height: 1.55;
  color: #1f2a22;
  white-space: pre-wrap;
  word-break: break-word;
}
.cart__foot {
  padding: 1rem 1.4rem max(1rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.cart__sum { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.7rem; }
.cart__total { font-size: 0.92rem; color: var(--text); }
.cart__total b { font-family: var(--serif); font-size: 1.7rem; color: var(--ink); margin-right: 0.15rem; }
.cart__amount { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); }
.cart__amount b {
  margin-left: 0.35rem;
  font-family: var(--serif);
  font-size: 2rem;
  letter-spacing: 0;
  text-transform: none;
  font-variant-numeric: lining-nums;
  color: var(--ink);
}
.cart__note { margin-top: 0.7rem; font-size: 0.78rem; line-height: 1.5; color: var(--muted); }
.cart__note strong { color: var(--ink); white-space: nowrap; }

/* ------------------------------------------------------------ modulo di contatto */
.contact__head {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}
.contact__form {
  container-type: inline-size;
  position: relative;
  display: grid;
  gap: 1.1rem;
  padding: 1.6rem 1.3rem;
  border-radius: 26px;
  border: 1px solid rgba(184, 146, 68, 0.28);
  background: linear-gradient(165deg, var(--bg-soft), #fff 58%);
  box-shadow: var(--shadow-card);
}
.contact__row { display: grid; gap: 1.1rem; }
.contact__form .check { align-items: flex-start; font-weight: 400; font-size: 0.92rem; line-height: 1.45; }
.contact__form .check input { margin-top: 0.1rem; flex: none; }
.contact__form .field textarea[aria-invalid="true"] { border-color: #b3401f; }
.contact__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.4rem; margin-top: 0.3rem; }
.contact__alt { font-size: 0.88rem; color: var(--muted); }
.contact__alt a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.contact__form.is-sending button[type="submit"] { opacity: 0.6; cursor: progress; }
.contact__form.is-sent > :not(.contact__done) { display: none; }
.contact__done { padding: 1.4rem 0.3rem; }
.contact__done[hidden] { display: none; }
.contact__done-title {
  font-family: var(--serif);
  font-size: 2rem;
  font-style: italic;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 640px) {
  .contact__form { padding: 2.2rem 2.2rem 2rem; }
}
@container (min-width: 470px) {
  .contact__row { grid-template-columns: 1fr 1fr; }
}

/* prodotto che vola nel carrello */
.fly {
  position: fixed;
  z-index: 95;
  left: 0; top: 0;
  width: 64px; height: 64px;
  object-fit: contain;
  pointer-events: none;
  will-change: transform, opacity;
}

/* ------------------------------------------------------------ order bar */

.order-bar {
  position: fixed;
  left: 12px; right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
  padding: 0 0.5rem 0 1.3rem;
  border-radius: 999px;
  border: 0;
  background: var(--ink);
  box-shadow: 0 22px 44px -16px rgba(11, 48, 25, 0.6);
  color: #fff;
  font-family: var(--sans);
  cursor: var(--cur-hand);
  transform: translateY(140%);
  transition: transform 0.5s var(--ease-out);
}
.order-bar.is-visible { transform: none; }
.order-bar[hidden] { display: none; }
.order-bar__count { font-size: 0.85rem; white-space: nowrap; }
.order-bar__count b { font-family: var(--serif); font-size: 1.5rem; color: var(--gold-soft); margin-right: 0.2rem; }
.order-bar__count i { font-style: normal; font-weight: 600; color: var(--gold-soft); }
.order-bar__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 46px;
  padding: 0 1.1rem;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 600;
  white-space: nowrap;
}
@media (min-width: 900px), (orientation: landscape) and (min-aspect-ratio: 6/5) and (min-width: 600px) {
  .order-bar { display: none !important; }
}

.toast {
  position: fixed;
  left: 50%;
  top: calc(var(--nav-h) + 14px);
  z-index: 90;
  transform: translate(-50%, -20px);
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 500;
  box-shadow: 0 16px 40px -14px rgba(11, 48, 25, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s, transform 0.5s var(--ease-out);
  white-space: nowrap;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* --------------------------------------------- stati iniziali animazioni */

.js:not(.reduced-motion) .reveal { opacity: 0; transform: translateY(28px); }
.js:not(.reduced-motion) .nav { clip-path: inset(0 0 0 100%); }
.js:not(.reduced-motion) .hero__visual,
.js:not(.reduced-motion) .hero__table,
.js:not(.reduced-motion) .hero__copy > * { opacity: 0; }
.js:not(.reduced-motion) .pour__media { transform: translateX(-112%) rotate(-5deg); }
.js:not(.reduced-motion) .pour__copy { opacity: 0; }

/* --------------------------------------------------------- movimento ridotto */

.reduced-motion .marquee__track { animation: none; }
.reduced-motion .pour__caption { display: none; }
.reduced-motion .cart__panel,
.reduced-motion .cart__scrim { transition: none; }
/* movimento ridotto su mobile: la colata è già ferma, quindi il testo diventa una scheda come le altre sezioni */
.reduced-motion .pour__sticky { position: relative; height: auto; min-height: 100svh; padding: calc(var(--a-top) + var(--a-h) + var(--c1-len) + 3rem) 0 2.5rem; }
.reduced-motion .pour { height: auto; }
.reduced-motion .pour__copy {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  margin: 0 max(var(--pad-x), var(--gutter)) 0 var(--pad-x);
  padding: 1.5rem 1.25rem;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
@media (min-width: 900px), (orientation: landscape) and (min-aspect-ratio: 6/5) and (min-width: 600px) {
  .reduced-motion .pour { height: 100svh; }
  .reduced-motion .pour__sticky { position: sticky; height: 100svh; min-height: 0; padding: 0; }
  .reduced-motion .pour__copy { position: absolute; left: max(calc(var(--a-w) * 0.8), 50vw); right: auto; top: 50%; transform: translateY(-46%); margin: 0; padding: 0; border-radius: 0; background: none; border: 0; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------- cursore: anello che segue */
.cursor-ring {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  width: 0;
  height: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}
.cursor-ring.is-on { opacity: 1; }
.cursor-ring::after {
  content: "";
  position: absolute;
  left: -17px;
  top: -17px;
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(165, 129, 47, 0.75);
  border-radius: 50%;
  background: rgba(165, 129, 47, 0);
  transition: transform 0.35s var(--ease-out), background-color 0.35s var(--ease-out), border-color 0.35s var(--ease-out), opacity 0.25s ease;
}
.cursor-ring.is-link::after {
  transform: scale(1.55);
  border-color: rgba(165, 129, 47, 0.55);
  background: rgba(165, 129, 47, 0.1);
}
.cursor-ring.is-down::after { transform: scale(0.82); }
.cursor-ring.is-link.is-down::after { transform: scale(1.3); }
.cursor-ring.is-text::after { opacity: 0; }
