/* ==========================================================================
   D'Amò — hero cambio gusto
   I colori arrivano da js/config.js (palette per gusto) e vengono scritti
   come variabili CSS su <html>. Registrandole con @property il browser
   può interpolarle: la pagina cambia colore in modo continuo.
   ========================================================================== */

/* Font locali (licenza SIL OFL, vedi cartella fonts) */
@font-face { font-family: "Anton"; src: url("../fonts/anton-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

@property --bg      { syntax: "<color>"; inherits: true; initial-value: #E8432E; }
@property --ring1   { syntax: "<color>"; inherits: true; initial-value: #EC5139; }
@property --ring2   { syntax: "<color>"; inherits: true; initial-value: #F06347; }
@property --ring3   { syntax: "<color>"; inherits: true; initial-value: #F47A5F; }
@property --ring4   { syntax: "<color>"; inherits: true; initial-value: #F89A82; }
@property --ink     { syntax: "<color>"; inherits: true; initial-value: #250A05; }
@property --ink-soft{ syntax: "<color>"; inherits: true; initial-value: #4A170D; }
@property --accent  { syntax: "<color>"; inherits: true; initial-value: #FFF4E6; }
@property --accent-ink { syntax: "<color>"; inherits: true; initial-value: #A8221A; }
@property --surface { syntax: "<color>"; inherits: true; initial-value: rgba(255,244,230,.38); }

:root {
  --dur-color: 850ms;
  --ease-color: cubic-bezier(.45,.05,.25,1);
  --pill-bg: rgba(255, 252, 247, .92);
  --pill-ink: #1d1410;
  --radius: 999px;
  --font-display: "Anton", "Bebas Neue", "Oswald", Impact, "Arial Narrow", sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: clamp(18px, 4vw, 64px);
  --mx: 0; --my: 0; /* posizione mouse normalizzata (-1…1), aggiornata da JS */

  transition:
    --bg var(--dur-color) var(--ease-color),
    --ring1 var(--dur-color) var(--ease-color) 20ms,
    --ring2 var(--dur-color) var(--ease-color) 60ms,
    --ring3 var(--dur-color) var(--ease-color) 100ms,
    --ring4 var(--dur-color) var(--ease-color) 140ms,
    --ink var(--dur-color) var(--ease-color),
    --ink-soft var(--dur-color) var(--ease-color),
    --accent var(--dur-color) var(--ease-color),
    --accent-ink var(--dur-color) var(--ease-color),
    --surface var(--dur-color) var(--ease-color);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  min-height: 100svh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }

.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 {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--pill-bg); color: var(--pill-ink); padding: 10px 16px; border-radius: 12px;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.page {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  isolation: isolate;
}

/* ===== HEADER ===== */
.header {
  position: relative; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 16px; padding: 18px var(--pad) 0;
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); justify-self: start; }
.logo-img { width: 96px; height: auto; filter: drop-shadow(0 6px 10px rgba(0,0,0,.2)); transition: transform .3s cubic-bezier(.3,1.5,.5,1); }
.logo:hover .logo-img { transform: rotate(-4deg) scale(1.04); }
.logo-text { display: none; } /* solo il logo, senza scritta accanto */
.logo-text strong { font-family: var(--font-display); font-size: 26px; letter-spacing: .02em; font-weight: 400; }
.logo-text small { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; margin-top: 4px; color: var(--ink-soft); }

.nav-pill {
  list-style: none; margin: 0; padding: 6px;
  display: flex; gap: 2px;
  background: var(--pill-bg);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
}
.nav-pill a {
  display: block; padding: 10px 18px; border-radius: var(--radius);
  color: var(--pill-ink); text-decoration: none; font-weight: 500; font-size: 15px;
  transition: background-color .25s;
}
.nav-pill a:hover { background: rgba(0,0,0,.06); }
.nav-pill a[aria-current="page"] { color: var(--accent-ink); background: var(--accent); }

.actions { display: flex; align-items: center; gap: 10px; justify-self: end; }
.icon-btn {
  position: relative;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  border: 0; background: var(--pill-bg); color: var(--pill-ink);
  box-shadow: 0 10px 24px -12px rgba(0,0,0,.4);
  transition: transform .2s;
}
.icon-btn:hover { transform: translateY(-2px); }
.icon-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 21px; height: 21px; padding: 0 5px;
  border-radius: 11px; font-size: 12px; font-weight: 700; line-height: 21px; text-align: center;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 0 0 2px var(--pill-bg);
}
.cart.bump { animation: bump .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.22) rotate(-8deg); } 100% { transform: scale(1); } }

.search { display: flex; align-items: center; position: relative; }
.search input {
  width: 0; padding: 0; height: 46px; border: 0; opacity: 0;
  border-radius: var(--radius); background: var(--pill-bg); color: var(--pill-ink);
  margin-right: -46px; padding-right: 46px;
  transition: width .35s cubic-bezier(.3,.9,.3,1), opacity .2s, padding .35s;
}
.search.open input { width: 230px; padding-left: 18px; opacity: 1; }
.search .icon-btn { box-shadow: none; }
.search.open .icon-btn { background: transparent; }
.search input:focus-visible { outline-offset: 2px; }
.burger { display: none; }

/* ===== HERO ===== */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(340px, 1.25fr) 128px;
  grid-template-areas: "info stage picker";
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  padding: 12px var(--pad) 28px;
  min-height: 0;
}

/* Cerchi concentrici: centrati sulla colonna del pacchetto */
.rings {
  position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: 50%;
  width: 0; height: 0;
  transform: translate(calc(var(--mx) * -14px), calc(var(--my) * -10px));
}
.ring, .glow {
  position: absolute; left: 0; top: 0; border-radius: 50%;
  translate: -50% -50%;
}
.ring { animation: breathe 14s ease-in-out infinite; will-change: transform; }
.r1 { width: 175vmax; height: 175vmax; background: var(--ring1); animation-duration: 18s; }
.r2 { width: 128vmin; height: 128vmin; background: var(--ring2); animation-delay: -3s; animation-duration: 16s; }
.r3 { width: 96vmin;  height: 96vmin;  background: var(--ring3); animation-delay: -6s; animation-duration: 13s; }
.r4 { width: 66vmin;  height: 66vmin;  background: var(--ring4); animation-delay: -9s; animation-duration: 11s;
      box-shadow: 0 30px 80px -30px rgba(0,0,0,.25) inset; }
.glow {
  width: 46vmin; height: 46vmin;
  background: radial-gradient(closest-side, rgba(255,255,255,.35), rgba(255,255,255,0));
  animation: breathe 9s ease-in-out infinite;
}
.r2, .r3, .r4 { box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 40px 90px -40px rgba(0,0,0,.28); }
@keyframes breathe {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(1.2%, -0.8%) scale(1.025); }
  66% { transform: translate(-1%, 1%) scale(.985); }
}

/* ===== INFO ===== */
.info { grid-area: info; position: relative; z-index: 2; max-width: 520px; }
.eyebrow {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  padding: 7px 14px; border-radius: var(--radius); background: var(--surface);
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.title {
  margin: 0; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(56px, 8.4vw, 132px); line-height: .92; letter-spacing: .005em;
  padding-top: .16em; /* spazio per l'accento di "È" */
  text-transform: uppercase; text-wrap: balance;
}
.flavor {
  margin: 14px 0 0; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(26px, 2.8vw, 40px); line-height: 1.05; text-transform: uppercase; letter-spacing: .02em;
  color: var(--ink);
}
.flavor::before {
  content: ""; display: block; width: 44px; height: 5px; border-radius: 3px;
  background: var(--ink); margin-bottom: 12px; opacity: .85;
}
.desc { margin: 14px 0 0; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.55; color: var(--ink-soft); max-width: 44ch; min-height: 3.1em; }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; }
.badges li {
  padding: 6px 12px; border-radius: var(--radius); font-size: 13px; font-weight: 700;
  border: 1.5px solid var(--ink); color: var(--ink);
}

.buy { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; margin-top: 26px; }
.price { margin: 0; font-family: var(--font-display); font-size: clamp(38px, 3.4vw, 52px); line-height: 1; display: flex; align-items: baseline; gap: 10px; flex-basis: 100%; }
.price small { font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--ink-soft); }

.qty {
  display: inline-flex; align-items: center; height: 54px; padding: 4px;
  border-radius: var(--radius); background: var(--surface);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 35%, transparent);
}
.qty-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 0; background: transparent;
  font-size: 22px; font-weight: 500; color: var(--ink); transition: background-color .2s;
}
.qty-btn:hover { background: var(--surface); }
.qty input {
  width: 40px; text-align: center; border: 0; background: transparent; font-weight: 700; font-size: 18px;
  color: var(--ink); -moz-appearance: textfield; appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.btn-cart {
  height: 54px; padding: 0 12px 0 26px; border: 0; border-radius: var(--radius);
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 16px;
  box-shadow: 0 16px 30px -14px rgba(0,0,0,.45);
  transition: transform .2s cubic-bezier(.3,1.4,.5,1), box-shadow .2s;
}
.btn-cart svg {
  width: 38px; height: 38px; padding: 9px; border-radius: 50%;
  background: var(--accent-ink); stroke: var(--accent); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .3s cubic-bezier(.3,1.4,.5,1);
}
.btn-cart:hover { transform: translateY(-2px); box-shadow: 0 22px 36px -16px rgba(0,0,0,.5); }
.btn-cart:hover svg { transform: translateX(3px); }
.btn-cart:active { transform: translateY(0) scale(.98); }

.note { margin: 18px 0 0; font-size: 12px; line-height: 1.4; color: var(--ink-soft); max-width: 52ch; }
.note:empty { display: none; }

/* Testi che cambiano */
.swap { display: inline-block; will-change: transform, opacity; }
.badges.swap { display: flex; }

/* ===== STAGE ===== */
.stage {
  grid-area: stage; position: relative; z-index: 1;
  height: min(74vh, 780px); min-height: 420px;
  display: grid; place-items: center;
  perspective: 1200px;
  container-type: inline-size;
}
.crumbs { position: absolute; inset: 0; pointer-events: none; }
.bigword {
  position: absolute; top: 0; left: 0; right: 0; text-align: center;
  font-family: var(--font-display); text-transform: uppercase;
  font-size: 23cqw; line-height: .9;
  color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--ink) 16%, transparent);
  transition: opacity .4s;
  pointer-events: none; user-select: none;
}
.tilt {
  position: relative; height: 86%; aspect-ratio: 820 / 1100; /* tutte le buste hanno la stessa tela 820×1100 */
  transform-style: preserve-3d;
  transform: rotateX(calc(var(--my) * -7deg)) rotateY(calc(var(--mx) * 9deg));
  will-change: transform;
}
.float { width: 100%; height: 100%; animation: float 5.5s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(-1.2%) rotate(-1.2deg); }
  50%      { transform: translateY(1.8%) rotate(1deg); }
}
.pack-wrap { position: relative; width: 100%; height: 100%; }
.pack {
  position: absolute; inset: 0; margin: auto;
  width: 100%; height: 100%; object-fit: contain;
  opacity: 0; visibility: hidden;
  filter: drop-shadow(0 26px 30px rgba(0,0,0,.28)) drop-shadow(0 6px 10px rgba(0,0,0,.18));
  user-select: none; -webkit-user-drag: none;
  will-change: transform, opacity;
}
.pack.is-front, .pack.is-entering, .pack.is-leaving { opacity: 1; visibility: visible; }
/* Patatine che escono dalla busta */
.burst { position: absolute; inset: 0; pointer-events: none; }
.burst.front { z-index: 2; }
.tilt { cursor: pointer; }
.chip {
  position: absolute; left: 50%; top: 14%;
  width: 29%; margin-left: -14.5%;
  aspect-ratio: 1; margin-top: -14.5%;
  opacity: 0; will-change: transform, opacity;
}
.chip img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 14px 14px rgba(0,0,0,.22));
  animation: chipfloat 3.2s ease-in-out infinite;
  animation-play-state: paused;
}
.burst.open .chip img { animation-play-state: running; }
@keyframes chipfloat {
  0%, 100% { transform: translateY(-4%) rotate(-4deg); }
  50% { transform: translateY(5%) rotate(5deg); }
}

.shadow {
  position: absolute; bottom: 3%; left: 50%; width: 46%; height: 5.5%;
  translate: -50% 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,.34), rgba(0,0,0,0));
  animation: shadow 5.5s ease-in-out infinite; z-index: -1;
}
@keyframes shadow { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(.86); opacity: .65; } }

.crumbs i {
  position: absolute; border-radius: 46% 54% 50% 50%; background: var(--ring4);
  box-shadow: inset -3px -4px 0 rgba(0,0,0,.08), 0 8px 16px -8px rgba(0,0,0,.35);
  animation: drift 9s ease-in-out infinite;
}
.crumbs i:nth-child(1) { width: 26px; height: 22px; left: 10%; top: 24%; }
.crumbs i:nth-child(2) { width: 14px; height: 13px; left: 18%; top: 70%; animation-delay: -2s; background: var(--accent); }
.crumbs i:nth-child(3) { width: 34px; height: 30px; right: 8%; top: 16%; animation-delay: -4s; }
.crumbs i:nth-child(4) { width: 12px; height: 12px; right: 14%; top: 58%; animation-delay: -6s; background: var(--accent); }
.crumbs i:nth-child(5) { width: 20px; height: 18px; right: 22%; bottom: 10%; animation-delay: -1s; }
.crumbs i:nth-child(6) { width: 10px; height: 10px; left: 26%; top: 10%; animation-delay: -5s; background: var(--ink); opacity: .35; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  50% { transform: translate(6px, -14px) rotate(25deg); }
}

/* ===== PICKER ===== */
.picker-wrap { grid-area: picker; position: relative; z-index: 3; justify-self: end; }
.picker-label {
  margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-align: center;
}
.picker {
  display: flex; flex-direction: column; gap: 10px;
  padding: 10px; border-radius: 34px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.flavor-opt {
  position: relative; width: 92px; height: 92px; padding: 8px;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 26px; background: transparent;
  transition: background-color .3s, transform .3s cubic-bezier(.3,1.5,.5,1);
}
.flavor-opt img {
  width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,.25));
  transition: transform .35s cubic-bezier(.3,1.5,.5,1);
}
.flavor-opt::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 3px var(--ink);
  opacity: 0; transform: scale(.9);
  transition: opacity .3s, transform .35s cubic-bezier(.3,1.5,.5,1);
}
.flavor-opt:hover img { transform: translateY(-3px) rotate(-4deg) scale(1.05); }
.flavor-opt[aria-checked="true"] { background: var(--pill-bg); }
.flavor-opt[aria-checked="true"]::after { opacity: 1; transform: scale(1); }
.flavor-opt[aria-checked="true"] img { transform: scale(1.08) rotate(-3deg); }
.flavor-opt:focus-visible { outline-offset: 4px; }
.flavor-opt .opt-name {
  position: absolute; right: calc(100% + 12px); top: 50%; translate: 0 -50%;
  white-space: nowrap; pointer-events: none;
  padding: 7px 12px; border-radius: var(--radius); font-size: 13px; font-weight: 700;
  background: var(--pill-bg); color: var(--pill-ink);
  opacity: 0; transform: translateX(6px); transition: opacity .2s, transform .25s;
}
.flavor-opt:hover .opt-name, .flavor-opt:focus-visible .opt-name { opacity: 1; transform: none; }
.flavor-opt.dim { opacity: .35; }

/* Selettore con molti gusti: miniature più piccole */
.picker[data-count="6"] .flavor-opt, .picker[data-count="7"] .flavor-opt { width: 80px; height: 80px; border-radius: 22px; }
.picker[data-count="6"], .picker[data-count="7"] { gap: 6px; }

/* ===== SCHEDA PRODOTTO ===== */
.btn-scheda {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  padding: 0; border: 0; background: none; color: var(--ink);
  font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px;
}
.btn-scheda svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-scheda:hover { text-decoration-thickness: 3px; }
.btn-scheda[hidden] { display: none; }
body.modal-open { overflow: hidden; }
.scheda {
  width: min(560px, calc(100vw - 24px)); max-height: min(86vh, 860px);
  padding: 0; border: 0; border-radius: 28px;
  background: var(--pill-bg); color: var(--pill-ink);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.6);
  overflow: auto;
}
.scheda::backdrop { background: rgba(20, 10, 5, .45); backdrop-filter: blur(4px); }
.scheda[open] { animation: schedaIn .45s cubic-bezier(.2,1.2,.4,1); }
@keyframes schedaIn { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
.scheda-inner { padding: 28px 28px 24px; }
.scheda-close {
  position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%;
  border: 0; display: grid; place-items: center; background: rgba(0,0,0,.06); color: var(--pill-ink);
}
.scheda-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.scheda-head { display: flex; align-items: center; gap: 16px; padding-right: 40px; }
.scheda-head img { width: 64px; height: auto; filter: drop-shadow(0 8px 10px rgba(0,0,0,.2)); }
.scheda-line { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6a5d56; }
.scheda h2 { margin: 4px 0 0; font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1; text-transform: uppercase; }
.scheda h3 { margin: 22px 0 8px; font-family: var(--font-display); font-weight: 400; font-size: 21px; text-transform: uppercase; letter-spacing: .02em; }
.scheda h3 small { font-family: var(--font-body); font-size: 13px; text-transform: none; letter-spacing: 0; color: #6a5d56; margin-left: 6px; }
.scheda p { margin: 0; line-height: 1.55; font-size: 15px; }
.scheda-free { margin-top: 18px !important; }
.scheda table { width: 100%; border-collapse: collapse; font-size: 15px; }
.scheda th, .scheda td { padding: 9px 4px; border-bottom: 1px solid rgba(0,0,0,.1); text-align: left; font-weight: 500; }
.scheda td { text-align: right; font-weight: 700; white-space: nowrap; }
.scheda th[scope="row"] { color: #3d3330; }
.scheda details { margin-top: 20px; }
.scheda summary { cursor: pointer; font-weight: 700; padding: 8px 0; }

/* ===== FORMATO E RICHIESTA INFORMAZIONI ===== */
.formato { margin: 0; flex-basis: 100%; font-size: 15px; color: var(--ink-soft); }
.formato strong { color: var(--ink); font-family: var(--font-display); font-weight: 400; font-size: 26px; margin-left: 6px; }
.info-intro { margin-top: 16px !important; }
.info-msg { display: grid; gap: 6px; margin-top: 16px; font-size: 13px; font-weight: 700; }
.info-msg textarea { font: inherit; font-weight: 400; font-size: 15px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid rgba(0,0,0,.15); resize: vertical; background: #fff; color: var(--pill-ink); }
.info-azioni { display: grid; gap: 12px; margin-top: 18px; }
.info-azioni .btn-cart { text-decoration: none; justify-content: space-between; background: var(--accent-ink); color: #fff; }
.info-azioni .btn-cart svg { background: #fff; stroke: var(--accent-ink); }
.info-persona { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 16px; background: rgba(0,0,0,.04); }
.info-persona p { margin: 0 auto 0 0; font-weight: 700; }
.info-btn { padding: 9px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; text-decoration: none; color: var(--pill-ink); box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.2); }
.info-btn:hover { background: rgba(0,0,0,.06); }
.info-btn.wa { background: #25D366; color: #08341a; box-shadow: none; }

/* ===== TOAST ===== */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 50;
  translate: -50% 0; max-width: calc(100vw - 32px);
  padding: 14px 20px; border-radius: 18px;
  background: var(--pill-bg); color: var(--pill-ink); font-weight: 500;
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.45);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .3s, transform .4s cubic-bezier(.3,1.4,.5,1);
}
.toast.show { opacity: 1; transform: none; }

/* ===== TABLET ===== */
@media (max-width: 1180px) {
  .nav-pill a { padding: 10px 13px; font-size: 14px; }
  .hero { grid-template-columns: minmax(280px, 1fr) minmax(300px, 1.1fr) 112px; }
  .flavor-opt { width: 80px; height: 80px; }
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  .header { grid-template-columns: 1fr auto; padding-top: 14px; }
  .logo-img { width: 70px; }
  .logo-text strong { font-size: 22px; }
  .burger { display: grid; }
  .nav {
    position: absolute; left: var(--pad); right: var(--pad); top: calc(100% + 10px);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .3s, visibility .3s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav-pill { flex-direction: column; border-radius: 24px; padding: 8px; }
  .nav-pill a { padding: 14px 18px; font-size: 16px; }
  .search.open input { width: min(52vw, 220px); }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "stage" "picker" "info";
    gap: 10px; padding-top: 4px; align-items: start;
  }
  .r1 { width: 220vmax; height: 220vmax; }
  .r2 { width: 150vmin; height: 150vmin; }
  .r3 { width: 112vmin; height: 112vmin; }
  .r4 { width: 78vmin;  height: 78vmin; }
  .glow { width: 60vmin; height: 60vmin; }

  .stage { height: min(46svh, 460px); min-height: 300px; }
  .tilt { height: 92%; }

  .picker-wrap { justify-self: stretch; min-width: 0; }
  .picker-label { margin-bottom: 8px; }
  .picker {
    flex-direction: row; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    padding: 8px; border-radius: 28px; max-width: 100%; width: max-content; margin: 0 auto;
  }
  .picker::-webkit-scrollbar { display: none; }
  .flavor-opt, .picker[data-count] .flavor-opt { flex: 0 0 auto; width: 66px; height: 66px; border-radius: 20px; scroll-snap-align: center; }
  .flavor-opt .opt-name { display: none; }

  .info { max-width: none; text-align: left; padding-bottom: 8px; }
  .eyebrow { margin-top: 10px; }
  .title { font-size: clamp(50px, 15vw, 88px); }
  .desc { min-height: 0; }
  .buy { gap: 12px; }
  .btn-cart { flex: 1 1 auto; justify-content: space-between; min-width: 0; }
}
@media (max-width: 380px) {
  .actions { gap: 6px; }
  .icon-btn { width: 42px; height: 42px; }
  .logo-text small { display: none; }
  .btn-cart { padding-left: 18px; font-size: 15px; }
  .flavor-opt { width: 58px; height: 58px; }
}

/* ===== MOVIMENTO RIDOTTO ===== */
@media (prefers-reduced-motion: reduce) {
  :root { --dur-color: 250ms; }
  .ring, .glow, .float, .shadow, .crumbs i { animation: none !important; }
  .rings, .tilt { transform: none !important; }
  .chip img { animation: none !important; }
  .cart.bump { animation: none; }
  .scheda[open] { animation: none; }
  .toast, .btn-cart, .btn-cart svg, .flavor-opt, .flavor-opt img, .flavor-opt::after { transition-duration: .01ms !important; }
}

/* ===== Tasto lingua IT / EN ===== */
.lang-switch { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--pill-bg);
  box-shadow: 0 10px 24px -12px rgba(0,0,0,.4); }
.lang-switch button { border: 0; background: transparent; color: var(--pill-ink); font-weight: 700; font-size: 13px;
  letter-spacing: .06em; height: 38px; min-width: 40px; padding: 0 10px; border-radius: 999px; transition: background-color .2s, color .2s; }
.lang-switch button:hover { background: rgba(0,0,0,.06); }
.lang-switch button[aria-pressed="true"] { background: var(--pill-ink); color: #fff; }
@media (max-width: 380px) { .lang-switch button { min-width: 34px; height: 34px; padding: 0 6px; } }

/* Firma di chi ha realizzato il sito (footer di tutte le pagine) */
.credit { flex-basis: 100%; margin: 6px 0 0; font-size: 12px; letter-spacing: .02em; color: color-mix(in srgb, var(--ink) 75%, transparent); display: flex; align-items: center; }
.credit-bar .credit { justify-content: flex-end; }
.credit a { color: inherit; text-decoration: none; }
.credit-logo { display: inline-block; height: 13px; margin-left: 6px; vertical-align: -2px;
  /* logo solo bianco o nero: nero sugli sfondi chiari, bianco sugli scuri */
  color: #000; color: oklch(from var(--ink) round(l, 1) 0 0); }
.credit-logo svg { height: 100%; width: auto; display: block; }
.credit-logo { width: 82px; flex: none; }
.credit-bar { padding: 14px var(--pad) 18px; text-align: right; }
.credit-bar .credit { margin: 0; }
/* footer: firma in basso a destra, accanto a "Torna su" (verso l'interno) */
.cs-footer .credit, .hs-footer .credit { flex: 0 0 auto; order: 1; margin: 0; }
.cs-footer > a, .hs-footer > a { order: 2; }
@media (max-width: 600px) { .cs-footer .credit, .hs-footer .credit { order: 3; flex-basis: 100%; justify-content: flex-end; } }
.credit-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 10px var(--pad) 14px; pointer-events: none; }
.credit-bar .credit { pointer-events: auto; }
.desc + .btn-scheda { margin-top: 10px; } /* Linea classica: scheda subito dopo la descrizione */
