/* ─────────────────────────────────────────────────────────────
   Bott-Eva — stile
   Palette dal logo e dalle confezioni: blu notte, crema, oro.
   ───────────────────────────────────────────────────────────── */
:root {
  --night: #05080f;        /* sfondo delle foto */
  --navy: #0d1830;
  --navy-2: #14233f;
  --navy-3: #1c2f55;
  --cream: #f6eede;
  --cream-2: #ece0c7;
  --paper: #fbf7ef;
  --gold: #d6ac56;
  --gold-soft: #e9cd8c;
  --gold-deep: #a8822f;
  --ink: #111c33;
  --ink-soft: #4a5570;
  --on-dark: #f3ebdc;
  --on-dark-soft: rgba(243, 235, 220, 0.68);
  --line-dark: rgba(243, 235, 220, 0.14);
  --line-light: rgba(17, 28, 51, 0.13);
  --whatsapp: #1f8f4e;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 18px;
  --gutter: clamp(16px, 4.5vw, 64px);
  --maxw: 1240px;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55), 0 10px 24px -14px rgba(0, 0, 0, 0.4);
}

*, *::before, *::after { box-sizing: border-box; }
/* niente scroll-behavior: smooth sull'html: interferisce con i ricalcoli di GSAP ScrollTrigger
   (la pagina scivolava da sola verso l'alto). Lo scroll morbido dei link interni è in main.js */
html { -webkit-text-size-adjust: 100%; }
html.cart-open { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--on-dark);
  background-color: var(--night);
  overflow-x: hidden;
}
/* bagliore fisso dietro al 3D: layer separato invece di background-attachment: fixed (che su iOS fa scattare lo scroll) */
.page-home::before,
.page-story::before,
.page-confirm::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 70% 40%, rgba(28, 47, 85, 0.7) 0%, rgba(13, 24, 48, 0) 70%),
    radial-gradient(ellipse 70% 60% at 10% 100%, rgba(20, 35, 63, 0.8) 0%, rgba(5, 8, 15, 0) 70%);
}
@media (max-width: 899.98px) {
  .page-home::before {
    background: radial-gradient(ellipse 120% 50% at 50% 30%, rgba(28, 47, 85, 0.7) 0%, rgba(13, 24, 48, 0) 70%);
  }
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-soft); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
strong { font-weight: 500; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.04; margin: 0; letter-spacing: -0.015em; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--gold); }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

section[id] { scroll-margin-top: 64px; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.eyebrow {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}
.lead { font-size: clamp(17px, 1.35vw, 20px); color: var(--on-dark-soft); max-width: 36ch; }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); max-width: 640px; }
.section-title { font-size: clamp(40px, 5.4vw, 72px); margin-bottom: 22px; }
.section-lead { color: var(--on-dark-soft); font-size: 18px; max-width: 52ch; }

/* ── Pulsanti ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font: 500 16px/1 var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 14px 30px -14px rgba(214, 172, 86, 0.7);
}
.btn:hover { background: var(--gold-soft); color: var(--ink); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn--ghost { background: transparent; color: var(--on-dark); box-shadow: inset 0 0 0 1px var(--line-dark); }
.btn--ghost:hover { background: rgba(243, 235, 220, 0.08); color: var(--on-dark); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
.btn--block { width: 100%; }
.btn--whatsapp { background: var(--whatsapp); color: #fff; box-shadow: 0 12px 24px -12px rgba(31, 143, 78, 0.6); }
.btn--whatsapp:hover { background: #18773f; color: #fff; }
.icon-btn {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: transparent; color: var(--ink);
  cursor: pointer;
}
.icon-btn:hover { background: var(--cream-2); }

/* ── Navigazione ────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px var(--gutter);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.nav.is-scrolled {
  background: rgba(5, 8, 15, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-dark);
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { margin-right: auto; display: block; }
.brand img { height: 38px; width: auto; }
.nav__links { display: flex; gap: 30px; }
.nav__links a { color: var(--on-dark); text-decoration: none; font-weight: 400; font-size: 15px; position: relative; white-space: nowrap; }
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.nav__links a:hover::after, .nav__links a[aria-current='page']::after { transform: scaleX(1); }
.cart-btn {
  position: relative;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border: 0; border-radius: 50%;
  background: rgba(243, 235, 220, 0.08);
  color: var(--on-dark);
  box-shadow: inset 0 0 0 1px var(--line-dark);
  cursor: pointer;
}
.cart-btn:hover { background: rgba(243, 235, 220, 0.16); }
.cart-btn__count {
  position: absolute; top: -3px; right: -3px;
  min-width: 21px; height: 21px; padding: 0 6px;
  border-radius: 999px;
  background: var(--gold); color: var(--ink);
  font: 600 12px/21px var(--sans); text-align: center;
}
.cart-btn__count.bump { animation: bump 0.45s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }

/* ── Canvas 3D ──────────────────────────────────────────────── */
#scene {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100lvh;
  z-index: 0;
  pointer-events: none;
}
main, .footer { position: relative; z-index: 1; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 120px var(--gutter) 80px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero h1 { font-size: clamp(54px, 7.6vw, 112px); margin-bottom: 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__fallback { display: none; }
.no-webgl .hero__fallback { display: block; max-width: 380px; justify-self: center; border-radius: var(--radius); overflow: hidden; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--on-dark-soft); text-decoration: none;
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; font-weight: 500;
}
.scroll-hint i { width: 1px; height: 40px; background: linear-gradient(var(--gold), transparent); animation: drip 2s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .scroll-hint i { animation: none; } }

/* ── Racconto a scroll ─────────────────────────────────────── */
.beat {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.beat--right .beat__text { grid-column: 2; }
.beat--left .beat__text { grid-column: 1; }
.beat__text { max-width: 460px; }
.beat__num {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-deep);
  padding-bottom: 4px;
  margin-bottom: 22px;
}
.beat h2 { font-size: clamp(40px, 4.6vw, 66px); margin-bottom: 22px; }
.beat p { color: var(--on-dark-soft); font-size: 18px; }

/* ── Gusti ──────────────────────────────────────────────────── */
.flavors {
  background: var(--night);
  padding: clamp(90px, 12vw, 160px) 0 clamp(70px, 9vw, 120px);
  box-shadow: 0 -120px 120px -20px var(--night);
}
.flavors__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 32px);
}
.flavor {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(20, 35, 63, 0.55), rgba(13, 24, 48, 0.85));
  border: 1px solid var(--line-dark);
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.flavor:hover { transform: translateY(-4px); border-color: rgba(214, 172, 86, 0.4); }
.flavor__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #04070d; }
.flavor__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.6s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.flavor__cut { opacity: 0; transform: scale(1.04); }
.flavor__media.is-cut .flavor__cut { opacity: 1; transform: none; }
@media (hover: hover) {
  .flavor:hover .has-cut .flavor__cut { opacity: 1; transform: none; }
}
.flavor__flip {
  position: absolute; right: 14px; bottom: 14px;
  min-height: 36px; padding: 0 14px;
  border: 0; border-radius: 999px;
  background: rgba(5, 8, 15, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--on-dark);
  font: 500 13px var(--sans);
  box-shadow: inset 0 0 0 1px var(--line-dark);
  cursor: pointer;
}
.flavor__flip:hover { background: rgba(5, 8, 15, 0.9); }
.flavor__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.flavor__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.flavor h3 { font-size: 30px; }
.flavor__price { font-family: var(--serif); font-weight: 300; font-size: 24px; color: var(--gold-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.flavor p { color: var(--on-dark-soft); font-size: 15.5px; flex: 1; }
.flavor__buy { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 6px; }

.stepper {
  display: inline-flex; align-items: center;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-dark);
}
.stepper button {
  width: 42px; height: 42px;
  border: 0; background: none; border-radius: 50%;
  font: 400 20px/1 var(--sans); color: inherit;
  cursor: pointer;
}
.stepper button:hover { background: rgba(243, 235, 220, 0.08); }
.stepper output { min-width: 22px; text-align: center; font-weight: 500; font-variant-numeric: tabular-nums; }
.stepper--sm button { width: 36px; height: 36px; font-size: 18px; }

/* ── Dentro: galleria del taglio ───────────────────────────── */
.cuts { background: var(--night); padding: clamp(60px, 8vw, 110px) 0 clamp(90px, 12vw, 150px); }
.cuts__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 30%);
  gap: clamp(16px, 2vw, 28px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))) 18px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  scrollbar-width: thin;
  scrollbar-color: var(--navy-3) transparent;
}
.cut { margin: 0; scroll-snap-align: start; }
.cut img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; }
.cut figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 4px 0; }
.cut figcaption em { font-family: var(--serif); font-size: 22px; color: var(--on-dark); }
.cut figcaption a { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); white-space: nowrap; text-decoration: none; }
.cut figcaption a:hover { color: var(--gold-soft); }

/* ── Come ordinare (chiaro) ────────────────────────────────── */
.steps {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(80px, 12vw, 150px) 0;
}
.steps .eyebrow { color: var(--gold-deep); }
.steps h2 em, .steps h3 em { color: var(--gold-deep); }
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps__list li {
  padding: 32px 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line-light);
}
.steps__n {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy); color: var(--gold-soft);
  font-family: var(--serif); font-size: 20px;
  margin-bottom: 22px;
}
.steps h3 { font-size: 28px; margin-bottom: 10px; font-weight: 400; }
.steps p { color: var(--ink-soft); margin: 0; }

/* ── Contatti ───────────────────────────────────────────────── */
.contact { background: var(--navy); padding: clamp(80px, 12vw, 140px) 0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.contact__logo { width: min(380px, 80%); }
.contact__list { margin: 0; display: grid; }
.contact__list div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line-dark); }
.contact__list div:first-child { padding-top: 0; }
.contact__list dt { font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 500; padding-top: 4px; }
.contact__list dd { margin: 0; font-size: 17px; }
.contact a { color: var(--on-dark); }
.contact a:hover { color: var(--gold-soft); }

.footer { background: var(--night); color: var(--on-dark-soft); font-size: 13.5px; padding: 26px 0; border-top: 1px solid var(--line-dark); }
.footer__inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ── Pagina storia ─────────────────────────────────────────── */
.story-hero { padding: clamp(150px, 22vh, 220px) 0 clamp(70px, 10vw, 120px); }
.story-hero__grid { display: grid; grid-template-columns: 1.4fr 1fr; align-items: end; gap: 40px; }
.story-hero h1 { font-size: clamp(56px, 9vw, 128px); margin-bottom: 30px; }
.story-hero .lead { max-width: 40ch; }
.story-hero__img { width: min(360px, 100%); justify-self: end; opacity: 0.9; }

.story { background: var(--paper); color: var(--ink); padding: clamp(80px, 11vw, 140px) 0; }
.story h2 em { color: var(--gold-deep); }
.story__grid { display: grid; grid-template-columns: 0.8fr 1.6fr; gap: clamp(32px, 6vw, 96px); }
.story__aside {
  position: sticky; top: 120px; align-self: start;
  display: flex; flex-direction: column; gap: 8px;
  color: var(--ink-soft); font-size: 15px;
  border-top: 1px solid var(--ink);
  padding-top: 18px;
}
.story__big { font-family: var(--serif); font-weight: 300; font-size: clamp(64px, 8vw, 110px); line-height: 1; color: var(--navy-2); font-style: italic; }
.story__body { max-width: 62ch; }
.story__body h2 { font-size: clamp(34px, 3.8vw, 50px); margin: 0 0 22px; }
.story__body h2:not(:first-child) { margin-top: 56px; }
.story__body p { font-size: 19px; color: #2c3650; }
.story__body p:first-of-type::first-letter {
  float: left; font-family: var(--serif); font-size: 84px; line-height: 0.82;
  padding: 6px 12px 0 0; color: var(--gold-deep);
}
.story__photo { margin: 40px 0 0; }
.story__photo img { border-radius: 22px; width: 100%; max-width: 520px; }
.story__photo figcaption { font-size: 14px; color: var(--ink-soft); margin-top: 12px; }

.timeline { padding: clamp(80px, 12vw, 140px) 0; }
.timeline__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.timeline__list li { padding: 0 32px 0 0; position: relative; }
.timeline__list li::before {
  content: ''; display: block; width: 13px; height: 13px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 6px rgba(214, 172, 86, 0.15);
  margin-bottom: 26px; position: relative; z-index: 1;
}
.timeline__list li::after { content: ''; position: absolute; top: 6px; left: 0; right: 0; height: 1px; background: var(--line-dark); }
.timeline__when { display: block; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 10px; }
.timeline h3 { font-size: 30px; margin-bottom: 14px; }
.timeline p { color: var(--on-dark-soft); }

.story-cta { background: var(--navy); padding: clamp(80px, 12vw, 140px) 0; text-align: center; }
.story-cta h2 { font-size: clamp(40px, 5.5vw, 76px); margin-bottom: 34px; }

/* ── Pagine legali ──────────────────────────────────────────── */
.story-hero--short { padding-bottom: clamp(40px, 6vw, 70px); }
.story-hero--short h1 { font-size: clamp(46px, 7vw, 96px); }
.legal { background: var(--paper); color: var(--ink); padding: clamp(60px, 9vw, 110px) 0; }
.legal__body { max-width: 820px; }
.legal h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 400; margin: 48px 0 14px; scroll-margin-top: 80px; }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { font-size: 17px; color: #2c3650; }
.legal ul { padding-left: 20px; margin: 0 0 1em; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--navy-3); }
.legal__toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; }
.legal__toc a { font-size: 13.5px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-light); text-decoration: none; color: var(--ink); background: #fff; }
.legal__toc a:hover { border-color: var(--navy-3); }
.footer a { color: var(--on-dark-soft); }
.footer a:hover { color: var(--gold-soft); }

/* ── Ingredienti e allergeni nelle schede ──────────────────── */
.flavor__info { margin: 2px 0 14px; font-size: 14px; color: var(--on-dark-soft); }
.flavor__info summary { cursor: pointer; color: var(--gold-soft); font-weight: 500; list-style: none; }
.flavor__info summary::-webkit-details-marker { display: none; }
.flavor__info summary::after { content: ' +'; }
.flavor__info[open] summary::after { content: ' −'; }
.flavor__info p { margin: 8px 0 0; font-size: 14px; }

/* ── Conferma ordine ───────────────────────────────────────── */
.confirm { min-height: 100vh; display: grid; place-items: center; padding: 120px var(--gutter) 60px; }
.confirm__card { max-width: 620px; text-align: center; }
.confirm__card .lead { margin: 0 auto 28px; }
.confirm__card .hero__cta { justify-content: center; }
.confirm__card h1 { font-size: clamp(40px, 7vw, 72px); margin-bottom: 20px; }
.confirm__mark { width: 160px; margin: 0 auto 28px; }
.confirm__facts { display: flex; justify-content: center; gap: 40px; margin: 0 0 30px; }
.confirm__facts dt { font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.confirm__facts dd { margin: 4px 0 0; font-size: 22px; font-family: var(--serif); }

/* ── Carrello (chiaro, per leggibilità del form) ───────────── */
.cart-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(2, 4, 9, 0.6);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.cart-overlay.is-open { opacity: 1; visibility: visible; }
.cart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70;
  width: min(440px, 100vw);
  display: flex; flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  box-shadow: -30px 0 60px -30px rgba(0, 0, 0, 0.6);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.4s;
}
.cart.is-open { transform: none; visibility: visible; }
.cart:focus { outline: none; }
.cart a { color: var(--navy-3); }
.cart__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 16px 26px; border-bottom: 1px solid var(--line-light); }
.cart__head h2 { font-size: 30px; font-weight: 400; }
.cart__body { flex: 1; overflow-y: auto; padding: 8px 26px 20px; }
.cart__empty { text-align: center; color: var(--ink-soft); padding: 60px 0; }
.cart__items { list-style: none; margin: 0 0 20px; padding: 0; }
.cart-item { display: grid; grid-template-columns: 56px 1fr auto; grid-template-areas: 'img info sum' 'img step sum'; column-gap: 14px; row-gap: 6px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-light); }
.cart-item__img { grid-area: img; width: 56px; height: 70px; object-fit: cover; border-radius: 10px; background: var(--night); }
.cart-item__info { grid-area: info; display: flex; flex-direction: column; line-height: 1.3; }
.cart-item__info strong { font-weight: 500; }
.cart-item__info span { font-size: 13.5px; color: var(--ink-soft); }
.cart-item .stepper { grid-area: step; justify-self: start; box-shadow: inset 0 0 0 1px var(--line-light); }
.cart-item .stepper button:hover { background: var(--cream-2); }
.cart-item__sum { grid-area: sum; min-width: 72px; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.cart__form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font-size: 13px; font-weight: 500; color: var(--ink); padding: 0; margin-bottom: 6px; }
.field small { font-weight: 400; color: var(--ink-soft); }
.field input:not([type='radio']), .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-light);
  border-radius: 12px;
  background: #fff;
  font: 400 16px var(--sans);
  color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(28, 47, 85, 0.15); }
.field textarea { resize: vertical; }
.choice { display: flex; align-items: center; gap: 10px; font-size: 15px; padding: 4px 0; cursor: pointer; }
.choice input { accent-color: var(--navy-3); width: 18px; height: 18px; }
.choice--block { align-items: flex-start; padding: 8px 0; }
.choice--block input { margin-top: 3px; flex: none; }
.choice--block span { display: flex; flex-direction: column; line-height: 1.35; }
.choice--block em { font-style: normal; font-size: 13px; color: var(--gold-deep); font-weight: 500; }
.choice--block small { font-size: 12.5px; color: var(--ink-soft); }
.field select { width: 100%; padding: 12px 14px; border: 1px solid var(--line-light); border-radius: 12px; background: #fff; font: 400 16px var(--sans); color: var(--ink); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.consent input { accent-color: var(--navy-3); width: 20px; height: 20px; margin-top: 1px; flex: none; }
.consent a { color: var(--navy-3); }
.form-error { color: #a3262f; font-size: 14px; font-weight: 500; margin: 0; }
.cart__foot { padding: 18px 26px 24px; border-top: 1px solid var(--line-light); background: var(--cream); }
.cart__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.cart__total strong { font-family: var(--serif); font-size: 30px; font-weight: 300; }
.cart__hint { font-size: 12.5px; color: var(--ink-soft); margin: 12px 0 0; line-height: 1.5; }
.cart__actions { display: grid; gap: 10px; }
.cart__actions .btn { min-height: 50px; }
.cart__actions .btn:not(.btn--whatsapp) { background: var(--navy); color: var(--cream); box-shadow: 0 12px 24px -14px rgba(13, 24, 48, 0.7); }
.cart__actions .btn:not(.btn--whatsapp):hover { background: var(--navy-3); }
.cart__delivery { font-size: 13px; color: var(--ink-soft); margin: -6px 0 12px; }
@media (max-width: 640px) {
  .cart__foot { padding: 14px 18px 18px; }
  .cart__head { padding: 14px 14px 12px 18px; }
  .cart__body { padding: 4px 18px 16px; }
  .cart__total { margin-bottom: 10px; }
  .cart__total strong { font-size: 26px; }
  .cart__actions { gap: 8px; }
  .cart__actions .btn { min-height: 46px; }
  .cart__hint { font-size: 11.5px; margin-top: 8px; }
}
.cart__body { overscroll-behavior: contain; }
[hidden] { display: none !important; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80;
  transform: translate(-50%, 140%);
  visibility: hidden;
  background: var(--cream); color: var(--ink);
  padding: 13px 22px; border-radius: 999px;
  font-weight: 500; font-size: 15px;
  box-shadow: var(--shadow);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.35s;
  max-width: calc(100vw - 32px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.toast.is-visible { transform: translate(-50%, 0); visibility: visible; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .flavors__grid { grid-template-columns: repeat(2, 1fr); }
  .cuts__track { grid-auto-columns: minmax(260px, 44%); }
}

@media (max-width: 899.98px) {
  body { font-size: 16px; }
  .nav { gap: 16px; padding: 14px var(--gutter); }
  .nav__links { gap: 18px; }
  .nav__links a { font-size: 14.5px; }
  .hide-sm { display: none; }
  .brand img { height: 30px; }
  .cart-btn { width: 44px; height: 44px; }

  .hero, .beat { grid-template-columns: 1fr; }
  .hero { align-items: end; padding-top: 54svh; padding-bottom: 90px; }
  .no-webgl .hero { padding-top: 110px; align-items: start; }
  .no-webgl .hero__fallback { order: -1; max-width: 240px; margin-bottom: 24px; justify-self: start; }
  .hero h1 { font-size: clamp(46px, 13vw, 72px); margin-bottom: 18px; }
  .lead { max-width: none; }
  .scroll-hint { display: none; }

  /* mobile: testo grande (60%) e panettone piccolo di lato (40%), alternati; sezioni più corte */
  .beat { min-height: 72vh; min-height: 72svh; align-items: center; column-gap: 10px; padding: 0 16px; }
  .beat--right { grid-template-columns: 0.4fr 0.6fr; }
  .beat--left { grid-template-columns: 0.6fr 0.4fr; }
  .beat--right .beat__text { grid-column: 2; }
  .beat--left .beat__text { grid-column: 1; }
  .beat__text { max-width: none; text-shadow: 0 2px 14px rgba(5, 8, 15, 0.9); }
  .beat__num { font-size: 16px; margin-bottom: 12px; }
  .beat h2 { font-size: clamp(30px, 9vw, 40px); margin-bottom: 14px; }
  .beat p { font-size: 16px; line-height: 1.55; margin: 0; color: rgba(243, 235, 220, 0.82); }

  .steps__list, .timeline__list { grid-template-columns: 1fr; }
  .timeline__list { gap: 40px; }
  .timeline__list li { padding: 0 0 0 34px; }
  .timeline__list li::before { position: absolute; left: 0; top: 4px; margin: 0; }
  .timeline__list li::after { top: 18px; bottom: -40px; left: 6px; right: auto; width: 1px; height: auto; }
  .timeline__list li:last-child::after { display: none; }

  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .contact__list div { grid-template-columns: 1fr; gap: 4px; }

  .story-hero__grid { grid-template-columns: 1fr; }
  .story-hero__img { justify-self: start; width: 200px; }
  .story__grid { grid-template-columns: 1fr; }
  .story__aside { position: static; flex-direction: row; align-items: baseline; gap: 16px; }
  .story__big { font-size: 64px; }
  .story__body p { font-size: 17px; }
}

@media (max-width: 640px) {
  .flavors__grid { grid-template-columns: 1fr; }
  .cuts__track { grid-auto-columns: 78%; }
  .nav.is-scrolled { background: rgba(5, 8, 15, 0.96); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav__links a.hide-xs-nav { display: none; }
}

@media (max-width: 380px) {
  .hide-xs { display: none; }
}
