/* =========================================================================
   BurgerPlanet — stile "Astronave elegante"
   Livelli: base (sfondo) → elevated (pannelli) → floating (header, dialog, CTA)
   ========================================================================= */

@font-face {
  font-family: "Unbounded";
  src: url("../assets/fonts/unbounded-var.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  /* colori del brand (brand-guidelines.md) */
  --c-bg: #0A0B0F;
  --c-surface: #14161D;
  --c-plasma: #FF5A1F;
  --c-cyan: #22D3EE;
  --c-text: #F2F4F7;
  --c-muted: #8A8F9C;

  /* derivati */
  --c-surface-2: #1A1D26;
  --c-line: rgba(242, 244, 247, 0.09);
  --c-line-strong: rgba(242, 244, 247, 0.18);
  --c-glass: rgba(20, 22, 29, 0.72);
  --c-plasma-soft: rgba(255, 90, 31, 0.14);
  --c-cyan-soft: rgba(34, 211, 238, 0.12);

  /* ombre colorate, a strati, bassa opacità */
  --sh-elevated: 0 1px 0 rgba(242, 244, 247, 0.04) inset, 0 2px 6px rgba(0, 0, 0, 0.28), 0 18px 40px -18px rgba(0, 0, 0, 0.6);
  --sh-floating: 0 1px 0 rgba(242, 244, 247, 0.05) inset, 0 10px 30px -10px rgba(0, 0, 0, 0.7), 0 30px 80px -30px rgba(34, 211, 238, 0.12);
  --sh-plasma: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 6px 16px -6px rgba(255, 90, 31, 0.55), 0 18px 40px -16px rgba(255, 90, 31, 0.45);

  /* tipografia */
  --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --fs-h2: clamp(1.9rem, 1.4rem + 2.2vw, 3.1rem);
  --fs-h1: clamp(2.35rem, 1.6rem + 3.6vw, 4.6rem);

  /* spaziatura (scala 4/8) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;
  --section-y: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --container: 1240px;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  --header-h: 68px;
  --ease-spring: cubic-bezier(0.22, 1.2, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

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

html {
  background: var(--c-bg);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top) + 12px);
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* grana leggera su tutta la pagina */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

.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;
  top: var(--s-3);
  left: var(--s-3);
  z-index: 200;
  padding: var(--s-2) var(--s-4);
  background: var(--c-plasma);
  color: var(--c-bg);
  font-weight: 700;
  border-radius: var(--r-sm);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
[tabindex="-1"]:focus { outline: none; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section { padding-block: var(--section-y); position: relative; }

.section-title {
  font-family: var(--f-display);
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.section-lead {
  margin-top: var(--s-4);
  max-width: 52ch;
  color: var(--c-muted);
  font-size: var(--fs-md);
}

/* etichetta tecnica: Unbounded piccolo, maiuscolo, spaziato (prezzi, bollini) */
.tech {
  font-family: var(--f-display);
  font-size: var(--fs-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* pannello in vetro (livello elevated) */
.panel {
  background: linear-gradient(180deg, rgba(26, 29, 38, 0.86), rgba(20, 22, 29, 0.86));
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-elevated);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* ---------- pulsanti ---------- */
.btn {
  --btn-h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: var(--btn-h);
  padding: 0 var(--s-5);
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: var(--fs-base);
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease-out), border-color 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.35s var(--ease-spring);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn--sm { --btn-h: 42px; padding: 0 var(--s-4); font-size: var(--fs-sm); }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--c-plasma);
  color: var(--c-bg);
  box-shadow: var(--sh-plasma);
}
.btn--primary:hover { background: #ff6d38; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 8px 20px -6px rgba(255, 90, 31, 0.65), 0 24px 50px -16px rgba(255, 90, 31, 0.55); }
.btn--primary:active { background: #f04f15; }

.btn--ghost {
  background: rgba(242, 244, 247, 0.03);
  color: var(--c-text);
  border-color: var(--c-line-strong);
}
.btn--ghost:hover { border-color: var(--c-cyan); background: var(--c-cyan-soft); }
.btn--ghost:active { background: rgba(34, 211, 238, 0.2); }

.icon-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line-strong);
  background: var(--c-glass);
  transition: border-color 0.2s, background-color 0.2s, transform 0.3s var(--ease-spring);
}
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { border-color: var(--c-cyan); background: rgba(34, 211, 238, 0.14); }
.icon-btn:active { transform: scale(0.94); }

/* ---------- header (floating) ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: calc(var(--header-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top); /* app su iPhone: spazio per la barra di stato */
  transition: background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 11, 15, 0.78);
  border-bottom-color: var(--c-line);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}
.site-header__inner {
  height: 100%;
  width: min(100% - 2 * var(--gutter), 1360px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: var(--s-5);
}
.brand { display: inline-flex; flex: none; border-radius: 8px; }
.brand img { width: 150px; height: auto; }
.site-header__cta { display: none; }

.nav { margin-left: auto; }
.nav__toggle {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line-strong);
  background: var(--c-glass);
  transition: border-color 0.2s, background-color 0.2s;
}
.nav__toggle:hover { border-color: var(--c-cyan); }
.nav__toggle-bars,
.nav__toggle-bars::before {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.8px;
  margin-left: -9px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-spring);
}
.nav__toggle-bars { top: 19px; }
.nav__toggle-bars::before { content: ""; top: 6px; left: 0; margin-left: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars { transform: translateY(3px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: translateY(-6px) rotate(-90deg); }

.nav__list {
  position: absolute;
  top: calc(var(--header-h) - 4px);
  left: var(--gutter);
  right: var(--gutter);
  padding: var(--s-3);
  background: rgba(20, 22, 29, 0.96);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-floating);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s var(--ease-out), transform 0.35s var(--ease-spring), visibility 0s linear 0.25s;
}
.nav__list.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.25s var(--ease-out), transform 0.35s var(--ease-spring), visibility 0s;
}
.nav__list a {
  display: block;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-md);
  transition: background-color 0.2s, color 0.2s;
}
.nav__list a:hover { background: var(--c-cyan-soft); color: #fff; }
.nav__list a:active { background: rgba(34, 211, 238, 0.2); }

@media (min-width: 640px) {
  .site-header__cta { display: inline-flex; }
  .nav { margin-left: auto; }
}

@media (min-width: 1024px) {
  :root { --header-h: 76px; }
  .brand img { width: 168px; }
  .nav__toggle { display: none; }
  .nav__list {
    position: static;
    display: flex;
    gap: var(--s-1);
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav__list a {
    padding: var(--s-2) var(--s-3);
    font-size: var(--fs-sm);
    color: rgba(242, 244, 247, 0.82);
  }
  .nav__list a:hover { background: transparent; color: var(--c-text); box-shadow: 0 1px 0 var(--c-cyan); border-radius: 0; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: clip;
  isolation: isolate;
}
.hero__grid-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 62% 55%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 62% 55%, #000 10%, transparent 75%);
}
.hero__inner {
  height: 100svh;
  min-height: 600px;
  width: min(100% - 2 * var(--gutter), 1360px);
  margin-inline: auto;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top) + var(--s-4));
  padding-bottom: var(--s-4);
  display: flex;
  flex-direction: column;
}
.hero__copy { position: relative; z-index: 2; }
.hero__title {
  font-family: var(--f-display);
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 11ch;
  text-wrap: balance;
}
.hero__lead {
  margin-top: var(--s-4);
  max-width: 40ch;
  color: rgba(242, 244, 247, 0.74);
  font-size: var(--fs-base);
}
.hero__actions {
  margin-top: var(--s-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}
.hero__cue {
  display: block;
  width: 1px;
  margin-top: var(--s-6);
}
/* indicatore di scorrimento: solo una linea ciano che scende piano; sparisce appena si scorre */
.hero__cue-line {
  position: relative;
  display: block;
  width: 1px;
  height: 48px;
  background: rgba(242, 244, 247, 0.12);
  overflow: hidden;
  transition: opacity 0.4s var(--ease-out);
}
.hero__cue.is-hidden .hero__cue-line { opacity: 0; }
.hero__cue-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 18px;
  background: linear-gradient(180deg, transparent, var(--c-cyan));
  animation: cue 2.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes cue {
  from { transform: translateY(-18px); }
  to { transform: translateY(48px); }
}

.hero__visual {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-top: var(--s-4);
}
/* palco del panino: proporzioni dell'area degli ingredienti nella foto (1237 × 3300 px) */
.hero__stage {
  position: relative;
  height: 100%;
  aspect-ratio: 1237 / 3300;
  transform-origin: 50% 96%;
}
.layer {
  position: absolute;
  left: var(--l);
  top: var(--t);
  width: var(--w);
  transform-origin: 50% 100%; /* lo schiacciamento dell'insalata parte dal basso */
  will-change: transform;
}
.layer img { width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
/* hero-layers:start */
/* GENERATO da tools/build_hero_pieces.py: non modificare a mano.
   --l --t --w = posizione APERTA (foto originale), in % del palco.
   --cx --cy  = spostamento per la posizione CHIUSA, in % della dimensione del pezzo.
   --csy      = schiacciamento verticale nella posizione CHIUSA (1 = nessuno). */
.layer[data-layer="board"] { --l: -43.169%; --t: 91.788%; --w: 202.587%; --cx: 0.00%; --cy: 0.00%; --csy: 1.000; z-index: 1; }
.layer[data-layer="bun-bottom"] { --l: 17.704%; --t: 72.182%; --w: 82.296%; --cx: -26.52%; --cy: 19.83%; --csy: 1.000; z-index: 2; }
.layer[data-layer="lettuce"] { --l: 1.536%; --t: 50.273%; --w: 88.278%; --cx: -0.92%; --cy: 73.82%; --csy: 0.420; z-index: 3; }
.layer[data-layer="tomato-small"] { --l: 10.428%; --t: 67.273%; --w: 25.384%; --cx: 29.94%; --cy: 95.65%; --csy: 1.000; z-index: 4; }
.layer[data-layer="tomato-big"] { --l: 44.947%; --t: 48.030%; --w: 39.450%; --cx: -31.56%; --cy: 271.43%; --csy: 1.000; z-index: 5; }
.layer[data-layer="jalapeno-right"] { --l: 73.969%; --t: 67.061%; --w: 20.776%; --cx: -86.38%; --cy: 276.65%; --csy: 1.000; z-index: 6; }
.layer[data-layer="red-pepper"] { --l: 3.395%; --t: 44.606%; --w: 36.136%; --cx: 21.48%; --cy: 1084.96%; --csy: 1.000; z-index: 7; }
.layer[data-layer="jalapeno-left"] { --l: 14.228%; --t: 35.576%; --w: 21.423%; --cx: 32.45%; --cy: 587.45%; --csy: 1.000; z-index: 8; }
.layer[data-layer="onion-ring"] { --l: 44.867%; --t: 32.939%; --w: 35.166%; --cx: -29.89%; --cy: 353.97%; --csy: 1.000; z-index: 9; }
.layer[data-layer="onion-slice"] { --l: 34.034%; --t: 34.091%; --w: 7.276%; --cx: 11.11%; --cy: 679.26%; --csy: 1.000; z-index: 10; }
.layer[data-layer="patty"] { --l: 2.264%; --t: 21.303%; --w: 79.305%; --cx: -2.75%; --cy: 364.63%; --csy: 1.000; z-index: 11; }
.layer[data-layer="bacon"] { --l: 57.478%; --t: 14.667%; --w: 38.157%; --cx: -3.39%; --cy: 709.05%; --csy: 1.000; z-index: 12; }
.layer[data-layer="bun-top"] { --l: 0.000%; --t: 0.000%; --w: 80.032%; --cx: 0.00%; --cy: 213.57%; --csy: 1.000; z-index: 13; }
/* hero-layers:end */

/* Stato chiuso già dal primo disegno (solo con JavaScript attivo: senza JS il panino resta aperto) */
.hero__stage { --closed-scale: 1.28; }
.js .hero__stage { transform: scale(var(--closed-scale)); }
.js .layer { transform: translate(var(--cx), var(--cy)) scaleY(var(--csy, 1)); }
.js .hero__glow--orange { opacity: 0.45; transform: scale(0.72); }
.js .hero__glow--cyan { opacity: 0.25; transform: scale(0.7); }
.js .hero__shadow { transform: scaleX(0.72); }
@media (min-width: 900px) { .hero__stage { --closed-scale: 1.32; } }

@media (prefers-reduced-motion: reduce) {
  .js .hero__stage, .js .layer, .js .hero__glow, .js .hero__shadow { transform: none; }
  .js .hero__glow { opacity: 1; }
}

.hero__glow {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
}
.hero__glow--orange {
  left: -95%;
  top: 30%;
  width: 290%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(255, 90, 31, 0.42), rgba(255, 90, 31, 0.14) 45%, transparent 72%);
}
.hero__glow--cyan {
  left: -30%;
  top: -6%;
  width: 230%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(34, 211, 238, 0.3), rgba(34, 211, 238, 0.08) 48%, transparent 72%);
}
.hero__shadow {
  position: absolute;
  z-index: 2;
  left: -5%;
  width: 110%;
  top: 89.5%;
  height: 5%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.75), transparent);
  will-change: transform, opacity;
}

/* Testi dell'hero: nessuna animazione d'ingresso. Sono la prima cosa che si vede aprendo l'app,
   quindi compaiono subito al loro posto, a piena opacità (niente titolo sbiadito). */

@media (min-width: 768px) {
  .hero__lead { font-size: var(--fs-md); }
  .hero__cue { margin-top: var(--s-7); }
}

@media (min-width: 900px) {
  .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: var(--s-6);
    padding-bottom: var(--s-5);
  }
  .hero__copy { padding-bottom: 4vh; }
  .hero__visual { height: 100%; padding-top: var(--s-2); }
  .hero__grid-lines { background-size: 88px 88px; }
}

@media (max-width: 899px) {
  .hero__title { max-width: 13ch; }
  /* su cellulare l'indicatore sta sul bordo sinistro sotto i pulsanti, senza togliere spazio al panino */
  .hero__cue { position: absolute; left: 0; top: calc(100% + var(--s-5)); margin: 0; }
}
@media (max-width: 520px) {
  .hero__actions { flex-wrap: nowrap; gap: var(--s-2); }
  .hero__actions .btn { flex: 1 1 auto; --btn-h: 48px; padding: 0 var(--s-3); font-size: 0.9375rem; }
}
@media (max-width: 359px) {
  .hero__actions .btn { font-size: var(--fs-sm); padding: 0 10px; }
}

/* ---------- CHI SIAMO ---------- */
.about__grid {
  display: grid;
  gap: var(--s-7);
  align-items: center;
}
.about__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--sh-elevated);
}
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--c-line);
  pointer-events: none;
}
.about__text {
  margin-top: var(--s-5);
  max-width: 60ch;
  color: rgba(242, 244, 247, 0.8);
  font-size: var(--fs-md);
}
.pillars {
  margin-top: var(--s-6);
  display: grid;
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.pillars li {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  background: var(--c-bg);
  font-weight: 600;
}
.pillars__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-cyan);
  box-shadow: 0 0 0 4px var(--c-cyan-soft), 0 0 12px rgba(34, 211, 238, 0.6);
}

@media (min-width: 640px) {
  .pillars { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .about__grid { grid-template-columns: 5fr 7fr; gap: var(--s-9); }
  .about__media { aspect-ratio: 3 / 4; }
}

/* ---------- BURGER SIGNATURE ---------- */
.signature {
  background:
    radial-gradient(60% 50% at 20% 50%, rgba(255, 90, 31, 0.08), transparent 70%),
    var(--c-bg);
  border-block: 1px solid var(--c-line);
}
.signature__head { max-width: 640px; }
/* schede con la foto di ogni burger: su cellulare scorrono di lato (la successiva si intravede),
   da 1100px stanno tutte e cinque in fila */
.signature__list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(76%, 320px);
  gap: var(--s-4);
  margin: var(--s-7) calc(var(--gutter) * -1) var(--s-6);
  padding: 4px var(--gutter) var(--s-2);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.signature__list::-webkit-scrollbar { display: none; }
.sig-item {
  scroll-snap-align: start;
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  gap: var(--s-2);
  min-width: 0;
}
.sig-item__visual {
  position: relative;
  aspect-ratio: 1;
  margin-bottom: var(--s-2);
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-line);
  background: #050506;
  box-shadow: var(--sh-elevated);
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.sig-item:hover .sig-item__visual {
  border-color: rgba(255, 90, 31, 0.45);
  box-shadow: var(--sh-elevated), 0 24px 60px -24px rgba(255, 90, 31, 0.45);
}
.sig-item__img { display: block; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.sig-item__top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); }
.sig-item__name {
  font-family: var(--f-display);
  font-size: var(--fs-h3);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.sig-item__price { flex: none; color: var(--c-plasma); font-size: var(--fs-sm); }
.sig-item__desc { color: var(--c-muted); font-size: var(--fs-sm); line-height: 1.65; }

@media (min-width: 1100px) {
  .signature__list {
    grid-auto-flow: row;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--s-5);
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }
  .sig-item__name { font-size: 1.15rem; }
}

/* ---------- MENU ---------- */
.marquee {
  overflow: hidden;
  background: var(--c-plasma);
  color: var(--c-bg);
  margin-bottom: var(--s-8);
  margin-top: calc(var(--section-y) * -1);
  box-shadow: 0 20px 50px -30px rgba(255, 90, 31, 0.7);
}
.marquee__track {
  display: flex;
  width: max-content;
}
/* L'animazione parte solo quando il testo è dentro e i font sono pronti (classe is-running, js/menu.js).
   Se partisse sulla barra ancora vuota, Safari su iPhone la lascerebbe vuota e ferma:
   calcola lo spostamento (-50%) e il disegno una volta sola, all'avvio. */
.marquee__track.is-running {
  animation: marquee var(--marquee-duration, 38s) linear infinite;
  will-change: transform;
}
.marquee.is-paused .marquee__track { animation-play-state: paused; }
.marquee__group {
  display: flex;
  align-items: center;
  flex: none;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: var(--s-5);
  padding: var(--s-3) var(--s-5) var(--s-3) 0;
  font-family: var(--f-display);
  font-size: clamp(1rem, 0.8rem + 1vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.marquee__item svg { width: 18px; height: 18px; flex: none; }
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.menu__head { max-width: 760px; }
.menu__toolbar {
  position: relative;
  z-index: 20;
  margin-top: var(--s-6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-2);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: rgba(14, 15, 20, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--sh-floating);
}
.filters {
  display: flex;
  gap: var(--s-1);
  overflow-x: auto;
  scrollbar-width: none;
  margin: calc(var(--s-1) * -1);
  padding: var(--s-1);
  max-width: 100%;
}
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: none;
  min-height: 42px;
  padding: 0 var(--s-4);
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: transparent;
  color: rgba(242, 244, 247, 0.75);
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.filter:hover { color: var(--c-text); background: rgba(242, 244, 247, 0.05); }
.filter:active { background: rgba(242, 244, 247, 0.09); }
.filter[aria-pressed="true"] {
  color: var(--c-text);
  border-color: rgba(34, 211, 238, 0.55);
  background: var(--c-cyan-soft);
  box-shadow: 0 0 18px -4px rgba(34, 211, 238, 0.45);
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 42px;
  padding: 0 var(--s-3);
  cursor: pointer;
  font-weight: 600;
  font-size: var(--fs-sm);
  border-radius: var(--r-pill);
  transition: background-color 0.2s;
}
.switch:hover { background: rgba(242, 244, 247, 0.05); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track {
  position: relative;
  width: 40px;
  height: 24px;
  border-radius: var(--r-pill);
  background: rgba(242, 244, 247, 0.12);
  border: 1px solid var(--c-line-strong);
  transition: background-color 0.25s, border-color 0.25s;
}
.switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--c-text);
  transition: transform 0.35s var(--ease-spring);
}
.switch input:checked + .switch__track { background: rgba(34, 211, 238, 0.3); border-color: var(--c-cyan); }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(16px); background: var(--c-cyan); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--c-cyan); outline-offset: 3px; }

.menu__list { margin-top: var(--s-7); min-height: 40vh; }
.menu__loading, .menu__empty { color: var(--c-muted); }
.menu-cat + .menu-cat { margin-top: var(--s-8); }
.menu-cat__title {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  font-family: var(--f-display);
  font-size: var(--fs-h3);
  font-weight: 500;
  letter-spacing: -0.02em;
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--c-line);
}
.menu-cat__count { font-family: var(--f-body); font-size: var(--fs-sm); color: var(--c-muted); font-weight: 500; letter-spacing: 0; }
.menu-cat__items {
  display: grid;
  gap: var(--s-4);
  margin-top: var(--s-5);
}
@media (min-width: 800px) {
  .menu__toolbar { position: sticky; top: calc(var(--header-h) + 8px); }
}
@media (min-width: 800px) {
  .menu-cat__items { grid-template-columns: 1fr 1fr; gap: var(--s-5); }
}

.dish {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-5);
  padding-right: var(--s-5);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-elevated);
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background-color 0.25s;
}
.dish:hover { border-color: rgba(34, 211, 238, 0.32); background: #161922; }
.dish.has-badge { padding-right: 104px; }
/* burger con foto: miniatura a sinistra di nome e descrizione; allergeni e "Aggiungi" sotto, a tutta larghezza */
.dish.has-photo {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  grid-template-areas: "photo top" "photo desc" "foot foot";
  grid-template-rows: auto 1fr auto;
  column-gap: var(--s-4);
  padding-right: var(--s-5);
}
.dish.has-photo .dish__photo {
  grid-area: photo;
  align-self: start;
  width: 96px;
  height: 96px;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-line);
  object-fit: cover;
  background: #050506;
}
.dish.has-photo .dish__top { grid-area: top; }
.dish.has-photo .dish__desc { grid-area: desc; }
.dish.has-photo .dish__foot { grid-area: foot; margin-top: var(--s-2); }
.dish.has-photo.has-badge .dish__foot { margin-right: 0; }
/* il bollino resta nell'angolo della scheda, mai sopra la foto: si fa spazio a nome e descrizione */
.dish.has-photo.has-badge .dish__top,
.dish.has-photo.has-badge .dish__desc { padding-right: 44px; }
.dish.has-photo .badge { width: 64px; height: 64px; top: -10px; right: -6px; }
@media (min-width: 800px) {
  .dish.has-photo { grid-template-columns: 132px minmax(0, 1fr); }
  .dish.has-photo .dish__photo { width: 132px; height: 132px; }
  .dish.has-photo.has-badge .dish__top,
  .dish.has-photo.has-badge .dish__desc { padding-right: 64px; }
  .dish.has-photo .badge { width: 80px; height: 80px; top: -14px; }
}
.dish__top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); }
.dish__name { font-size: var(--fs-md); font-weight: 750; line-height: 1.35; letter-spacing: -0.005em; }
.dish__price { flex: none; color: var(--c-plasma); font-size: var(--fs-sm); }
.dish__desc { color: var(--c-muted); font-size: var(--fs-sm); line-height: 1.65; }
.dish__allergens { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
.dish__none { color: var(--c-muted); font-size: var(--fs-xs); }

.al {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--c-line-strong);
  color: var(--c-muted);
  transition: color 0.2s, border-color 0.2s;
}
.al svg { width: 18px; height: 18px; }
.al:hover { color: var(--c-cyan); border-color: rgba(34, 211, 238, 0.5); }
.al::after {
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-line-strong);
  color: var(--c-text);
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 0.15s, transform 0.25s var(--ease-spring);
  z-index: 3;
}
.al:hover::after { opacity: 1; transform: translate(-50%, 0); }

/* bollino tondo (dalla direzione B) */
.badge {
  position: absolute;
  top: -14px;
  right: -6px;
  width: 88px;
  height: 88px;
  transform: rotate(-14deg);
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45));
  transition: transform 0.6s var(--ease-spring);
  pointer-events: none;
  color: var(--c-bg);
}
.dish:hover .badge { transform: rotate(8deg) scale(1.04); }
.badge svg { width: 100%; height: 100%; }
.badge text { font-family: var(--f-display); font-size: 9.6px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.badge--signature .badge__disc { fill: var(--c-plasma); }
.badge--signature text, .badge--signature .badge__mark { fill: var(--c-bg); }
.badge--veggie .badge__disc { fill: var(--c-cyan); }
.badge--veggie text, .badge--veggie .badge__mark { fill: var(--c-bg); }

.legend {
  margin-top: var(--s-8);
  padding: var(--s-5);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: rgba(20, 22, 29, 0.5);
}
.legend__title { font-family: var(--f-display); font-size: var(--fs-md); font-weight: 500; letter-spacing: -0.01em; }
.legend__list {
  margin-top: var(--s-4);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--s-3) var(--s-4);
}
.legend__list li { display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-sm); color: rgba(242, 244, 247, 0.82); }
.legend__list .al { flex: none; }
.legend__list .al::after { display: none; }

.dish.is-entering { animation: dish-in 0.5s var(--ease-out) both; }
@keyframes dish-in {
  from { opacity: 0; transform: translateY(10px); }
}

/* ---------- RECENSIONI ---------- */
.reviews { background: linear-gradient(180deg, transparent, rgba(20, 22, 29, 0.6) 30%, transparent); }
.reviews__list {
  margin-top: var(--s-7);
  display: grid;
  gap: var(--s-4);
}
.review {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  box-shadow: var(--sh-elevated);
}
.review__text { font-size: var(--fs-md); font-weight: 550; line-height: 1.55; flex: 1; }
.review__text p::before { content: "“"; }
.review__text p::after { content: "”"; }
.review__author { color: var(--c-muted); font-size: var(--fs-sm); font-weight: 600; }
.stars {
  --pct: calc(var(--rating) / 5 * 100%);
  display: inline-block;
  font-size: 1.05rem;
  letter-spacing: 3px;
  line-height: 1;
  background: linear-gradient(90deg, var(--c-plasma) var(--pct), rgba(242, 244, 247, 0.18) var(--pct));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stars::before { content: "★★★★★"; }

@media (max-width: 639px) {
  .reviews__list {
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) var(--s-3);
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .reviews__list::-webkit-scrollbar { display: none; }
  .review { scroll-snap-align: start; }
}
@media (min-width: 640px) { .reviews__list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .reviews__list { grid-template-columns: repeat(4, 1fr); } }

/* ---------- PRENOTA ---------- */
.booking {
  border-top: 1px solid var(--c-line);
  background:
    radial-gradient(50% 60% at 85% 30%, rgba(34, 211, 238, 0.07), transparent 70%),
    radial-gradient(40% 50% at 10% 90%, rgba(255, 90, 31, 0.07), transparent 70%);
}
.booking__grid { display: grid; gap: var(--s-6); align-items: start; }
.booking__alt { margin-top: var(--s-5); color: var(--c-muted); }
.booking__alt a { color: var(--c-text); font-weight: 700; text-decoration-color: var(--c-cyan); text-underline-offset: 4px; transition: color 0.2s; }
.booking__alt a:hover { color: var(--c-cyan); }

.booking-form {
  display: grid;
  gap: var(--s-5);
  padding: var(--s-5);
  min-width: 0;
}
.field { min-width: 0; border: 0; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.field__label { padding: 0; font-weight: 700; font-size: var(--fs-sm); }
.field__optional { color: var(--c-muted); font-weight: 500; }
.field__hint { color: var(--c-muted); font-size: var(--fs-sm); }
.field__hint[hidden] { display: none; }
.field__error { color: #ff8a5c; font-size: var(--fs-sm); font-weight: 600; }
.field__counter { justify-self: end; color: var(--c-muted); font-size: var(--fs-xs); }
.field-row { display: grid; gap: var(--s-5); }

.chips {
  display: flex;
  gap: var(--s-2);
}
.chips--scroll {
  position: relative;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 4px 2px 10px;
  margin: -4px -2px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--c-line-strong) transparent;
  overscroll-behavior-x: contain;
}
.day {
  flex: none;
  scroll-snap-align: start;
  display: grid;
  justify-items: center;
  gap: 2px;
  width: 64px;
  padding: var(--s-2) 0;
  border-radius: var(--r-md);
  border: 1px solid var(--c-line-strong);
  background: rgba(242, 244, 247, 0.02);
  transition: border-color 0.2s, background-color 0.2s, transform 0.3s var(--ease-spring);
}
.day__dow { font-size: var(--fs-xs); color: var(--c-muted); font-weight: 600; }
.day__num { font-family: var(--f-display); font-size: 1.15rem; font-weight: 500; line-height: 1.2; }
.day__mon { font-size: var(--fs-xs); color: var(--c-muted); }
.day:hover:not(:disabled) { border-color: rgba(34, 211, 238, 0.5); }
.day:active:not(:disabled) { transform: scale(0.96); }
.day[aria-checked="true"] {
  border-color: var(--c-cyan);
  background: var(--c-cyan-soft);
  box-shadow: 0 0 20px -6px rgba(34, 211, 238, 0.6);
}
.day[aria-checked="true"] .day__dow,
.day[aria-checked="true"] .day__mon { color: var(--c-text); }
.day:disabled { opacity: 0.38; cursor: not-allowed; }
.day:disabled .day__mon { font-weight: 700; }

.slots { display: grid; gap: var(--s-4); }
.slots__group { display: grid; gap: var(--s-2); }
.slots__title { font-size: var(--fs-xs); color: var(--c-muted); font-weight: 600; }
.slots__list { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.slot {
  min-width: 72px;
  min-height: 42px;
  padding: 0 var(--s-3);
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line-strong);
  background: rgba(242, 244, 247, 0.02);
  font-weight: 600;
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
  transition: border-color 0.2s, background-color 0.2s, transform 0.3s var(--ease-spring);
}
.slot:hover { border-color: rgba(34, 211, 238, 0.5); }
.slot:active { transform: scale(0.96); }
.slot[aria-checked="true"] { border-color: var(--c-cyan); background: var(--c-cyan-soft); box-shadow: 0 0 20px -6px rgba(34, 211, 238, 0.6); }

.stepper {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: var(--s-2);
  padding: 4px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-pill);
}
.stepper__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(242, 244, 247, 0.06);
  font-size: 1.3rem;
  line-height: 1;
  transition: background-color 0.2s, transform 0.3s var(--ease-spring);
}
.stepper__btn:hover:not(:disabled) { background: var(--c-cyan-soft); color: var(--c-cyan); }
.stepper__btn:active:not(:disabled) { transform: scale(0.92); }
.stepper__btn:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper__value {
  min-width: 3ch;
  text-align: center;
  font-family: var(--f-display);
  font-size: 1.2rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.input {
  width: 100%;
  min-height: 50px;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm);
  border: 1px solid var(--c-line-strong);
  background: rgba(10, 11, 15, 0.6);
  font-size: 16px; /* evita lo zoom automatico su iPhone */
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.input::placeholder { color: rgba(138, 143, 156, 0.8); }
.input:hover { border-color: rgba(242, 244, 247, 0.3); }
.input:focus { outline: none; border-color: var(--c-cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2); background: rgba(10, 11, 15, 0.85); }
.input[aria-invalid="true"] { border-color: #ff8a5c; }
.input--area { resize: vertical; min-height: 96px; line-height: 1.5; }

.booking-form__note { color: var(--c-text); font-size: var(--fs-sm); font-weight: 600; text-align: center; margin-top: calc(var(--s-3) * -1); }
.booking-form__demo { color: var(--c-muted); font-size: var(--fs-xs); text-align: center; margin-top: calc(var(--s-4) * -1); }
.booking-form__demo[hidden] { display: none; }

@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .booking-form { padding: var(--s-6); }
}
@media (min-width: 1000px) {
  .booking__grid { grid-template-columns: 4fr 7fr; gap: var(--s-9); }
  .booking__intro { position: sticky; top: calc(var(--header-h) + var(--s-6)); }
}

/* dialog riepilogo (floating) */
.modal {
  width: min(100% - 2rem, 480px);
  padding: 0;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  color: var(--c-text);
  box-shadow: var(--sh-floating);
}
.modal::backdrop { background: rgba(6, 7, 10, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in 0.4s var(--ease-spring); }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.modal__body { display: grid; gap: var(--s-4); padding: var(--s-6) var(--s-5) var(--s-5); max-height: 90vh; max-height: 90dvh; overflow-y: auto; overscroll-behavior: contain; }
.modal__body > [hidden] { display: none; }
.modal__badge {
  justify-self: start;
  padding: 3px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-cyan);
  color: var(--c-cyan);
  font-family: var(--f-display);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.modal__title { font-family: var(--f-display); font-size: 1.35rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
.modal__note {
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm);
  background: var(--c-plasma-soft);
  border: 1px solid rgba(255, 90, 31, 0.35);
  font-size: var(--fs-sm);
  font-weight: 600;
}

/* ---------- ORARI E CONTATTI ---------- */
.info { border-top: 1px solid var(--c-line); }
.info__grid { margin-top: var(--s-7); display: grid; gap: var(--s-6); align-items: start; }
.info__hours { padding: var(--s-5); }
.status {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 4px 14px 4px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line-strong);
  font-size: var(--fs-sm);
  font-weight: 700;
}
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-muted); }
.status.is-open { border-color: rgba(34, 211, 238, 0.5); }
.status--hero {
  margin-bottom: var(--s-4);
  padding: 3px 12px 3px 9px;
  background: rgba(20, 22, 29, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: rgba(242, 244, 247, 0.86);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.status--hero .status__dot { width: 7px; height: 7px; }
/* finché js/hours.js non ha calcolato lo stato resta invisibile ma occupa il suo posto */
.status--hero:not(.is-ready) { visibility: hidden; }
.status.is-open .status__dot { background: var(--c-cyan); box-shadow: 0 0 0 4px var(--c-cyan-soft), 0 0 10px var(--c-cyan); }
.hours { width: 100%; margin-top: var(--s-4); border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: var(--s-3) 0; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.hours th { font-weight: 600; padding-right: var(--s-4); }
.hours td { text-align: right; color: rgba(242, 244, 247, 0.85); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--c-text); }
.hours tr.is-today th { box-shadow: inset 2px 0 0 var(--c-cyan); padding-left: var(--s-3); }
.hours .is-closed { color: var(--c-muted); }

.contacts { display: grid; }
.contacts__row {
  display: grid;
  grid-template-columns: 10ch 1fr;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--c-line);
}
.contacts dt { color: var(--c-muted); font-size: var(--fs-sm); padding-top: 2px; }
.contacts dd { font-weight: 600; overflow-wrap: anywhere; }
.contacts address { font-style: normal; }
.contacts a { text-decoration: none; background-image: linear-gradient(var(--c-cyan), var(--c-cyan)); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size 0.35s var(--ease-out), color 0.2s; }
.contacts a:hover { color: var(--c-cyan); background-size: 100% 1px; }
.info__contacts .btn { margin-top: var(--s-6); }

@media (min-width: 900px) {
  .info__grid { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
  .info__hours { padding: var(--s-6); }
}

/* ---------- FOOTER ---------- */
.site-footer {
  border-top: 1px solid var(--c-line);
  padding-block: var(--s-8) calc(var(--s-6) + 84px);
  background: #08090C;
  color: rgba(242, 244, 247, 0.8);
  font-size: var(--fs-sm);
}
.site-footer__grid { display: grid; gap: var(--s-6); }
.site-footer__brand p { margin-top: var(--s-3); color: var(--c-muted); }
.site-footer__nav { display: grid; gap: var(--s-2); align-content: start; }
.site-footer a { text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: var(--c-cyan); }
.site-footer__contact { display: grid; gap: var(--s-2); align-content: start; }
.site-footer__bottom {
  margin-top: var(--s-7);
  padding-top: var(--s-4);
  border-top: 1px solid var(--c-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-2);
  color: var(--c-muted);
  font-size: var(--fs-xs);
}
/* firma dello studio: ultima riga, solo testo, stesso grigio della riga sopra */
.site-footer__credit { flex-basis: 100%; margin-top: var(--s-1); letter-spacing: 0.01em; }
@media (min-width: 800px) {
  .site-footer { padding-bottom: var(--s-6); }
  .site-footer__grid { grid-template-columns: 2fr 1fr 1.4fr; }
}

/* ---------- COMPONI IL TUO BURGER ----------
   Palco (base) con la pila di foto; schede ingrediente (elevated); finestra d'ordine (floating).
   Su cellulare il palco resta in alto mentre si scorrono gli ingredienti, così si vede ogni strato cadere. */
.componi { border-top: 1px solid var(--c-line); }
.componi__head { max-width: 640px; }
.componi__grid { margin-top: var(--s-7); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); align-items: start; }
.componi__grid > * { min-width: 0; }

.componi__stage-wrap {
  position: sticky;
  top: var(--header-h);
  z-index: 3;
  margin-inline: calc(var(--gutter) * -1);
  padding: var(--s-2) var(--gutter) var(--s-3);
  background: var(--c-bg);
}
/* sfumatura sotto il palco fisso: le schede ci scorrono sotto senza un taglio netto */
.componi__stage-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 18px;
  background: linear-gradient(180deg, var(--c-bg), rgba(10, 11, 15, 0));
  pointer-events: none;
}
/* ciò che si raggiunge con la tastiera (o portato in vista) si ferma sotto il palco fisso, non dietro */
.componi__builder { --cb-under: calc(var(--header-h) + var(--cb-stage-h) + 84px); }
.componi__builder :is(button, a) { scroll-margin-top: var(--cb-under); scroll-margin-bottom: 96px; }

.componi { --cb-stage-h: clamp(230px, 34svh, 340px); }
.cb-stage {
  --cb-pad: 22px;
  position: relative;
  height: var(--cb-stage-h);
  padding: 64px var(--s-4) var(--cb-pad);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-surface);
  box-shadow: var(--sh-elevated);
  isolation: isolate;
}
/* griglia e luci su un livello fermo a parte: mentre gli strati si muovono non va ridisegnato */
.cb-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 34% at 50% 96%, rgba(255, 90, 31, 0.22), transparent 70%),
    radial-gradient(50% 50% at 50% 44%, rgba(34, 211, 238, 0.09), transparent 70%),
    linear-gradient(var(--c-line) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--c-line) 1px, transparent 1px) 0 0 / 48px 48px;
  transform: translateZ(0);
  pointer-events: none;
}
.cb-stage__top {
  position: absolute;
  inset: var(--s-3) var(--s-4) auto;
  z-index: 60;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
}
.cb-total { display: flex; align-items: baseline; gap: var(--s-2); }
.cb-total__label { color: var(--c-muted); font-size: var(--fs-sm); }
.cb-total__value {
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--c-plasma);
  font-variant-numeric: tabular-nums;
}
.cb-count { color: var(--c-muted); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }

/* pila: px virtuali (foto grandi), scalata per stare nel palco */
.cb-stack {
  position: absolute;
  left: 50%;
  bottom: var(--cb-pad);
  height: 0;
  transform-origin: 50% 0;
  transition: transform 0.55s var(--ease-out);
}
.cb-layer {
  position: absolute;
  left: 0;
  top: 0;
  transition: transform 0.5s var(--ease-spring);
  will-change: transform; /* al massimo 10 strati: ognuno sul suo livello, si muove senza ridisegnare */
}
.cb-layer img { display: block; width: 100%; height: 100%; }
.cb-floor {
  position: absolute;
  left: 9%;
  right: 9%;
  top: -24px;
  height: 84px;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.25) 60%, transparent);
}

/* allergeni del burger composto */
.cb-allergens { display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: none; margin-top: var(--s-3); padding-bottom: 2px; }
.cb-allergens::-webkit-scrollbar { display: none; }
.cb-allergens__label { flex: none; align-self: center; color: var(--c-muted); font-size: var(--fs-xs); }
.cb-al {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px 0 6px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line-strong);
  color: var(--c-text);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.cb-al svg { width: 16px; height: 16px; color: var(--c-cyan); }

/* passi */
.cb-steps .filter { gap: 6px; display: inline-flex; align-items: center; }
.cb-steps .filter[aria-selected="true"] {
  color: var(--c-text);
  border-color: rgba(34, 211, 238, 0.55);
  background: var(--c-cyan-soft);
  box-shadow: 0 0 18px -4px rgba(34, 211, 238, 0.45);
}
.cb-steps__n {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: var(--r-pill);
  background: var(--c-plasma);
  color: var(--c-bg);
  font-size: 0.7rem;
  font-weight: 800;
}
.cb-steps__n:empty { display: none; }

.cb-panel { margin-top: var(--s-4); }
.cb-panel__note { color: var(--c-muted); font-size: var(--fs-sm); margin-bottom: var(--s-3); }

/* schede ingrediente: tutte uguali, quindi la griglia non ha buchi */
.cb-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); grid-auto-flow: row dense; }
@media (min-width: 560px) { .cb-items { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cb-item {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 2px;
  padding: var(--s-2) var(--s-3) var(--s-3);
  text-align: left;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-surface);
  box-shadow: var(--sh-elevated);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out), box-shadow 0.25s var(--ease-out), transform 0.3s var(--ease-spring);
}
.cb-item:hover { border-color: rgba(34, 211, 238, 0.35); background: #161922; }
.cb-item:active { transform: scale(0.97); }
.cb-item__img { display: block; aspect-ratio: 2 / 1; margin-bottom: var(--s-1); }
.cb-item__img img { width: 100%; height: 100%; object-fit: contain; }
.cb-item__name { font-weight: 700; font-size: var(--fs-sm); line-height: 1.35; padding-right: 26px; }
.cb-item__al { color: var(--c-muted); font-size: var(--fs-xs); line-height: 1.45; }
.cb-item__price { margin-top: var(--s-1); color: var(--c-plasma); }
.cb-item__state {
  position: absolute;
  top: var(--s-2);
  right: var(--s-2);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--c-line-strong);
  background: rgba(10, 11, 15, 0.7);
  color: var(--c-text);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.cb-item__state svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cb-item[aria-pressed="true"] {
  border-color: rgba(34, 211, 238, 0.6);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.08), rgba(34, 211, 238, 0.02)), var(--c-surface);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.25), 0 10px 30px -14px rgba(34, 211, 238, 0.35);
}
.cb-item[aria-pressed="true"] .cb-item__state { background: var(--c-cyan); border-color: var(--c-cyan); color: var(--c-bg); }
.cb-item[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }

/* niente buchi: l'ultima scheda rimasta da sola nella riga si allarga (foto a sinistra, testo a destra) */
@media (max-width: 559px) {
  .cb-items > .cb-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    grid-template-rows: 1fr auto auto 1fr;
    column-gap: var(--s-3);
    align-items: center;
  }
  .cb-items > .cb-item:last-child:nth-child(odd) .cb-item__img { grid-row: 1 / -1; margin: 0; }
  .cb-items > .cb-item:last-child:nth-child(odd) .cb-item__name { grid-row: 2; align-self: end; }
  .cb-items > .cb-item:last-child:nth-child(odd) .cb-item__al { grid-row: 3; align-self: start; }
  .cb-items > .cb-item:last-child:nth-child(odd) .cb-item__price { grid-row: 4; align-self: start; }
}
@media (min-width: 560px) {
  .cb-items > .cb-item:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
  .cb-items > .cb-item:last-child:nth-child(3n + 2) { grid-column: span 2; }
  .cb-items > .cb-item:last-child:is(:nth-child(3n + 1), :nth-child(3n + 2)) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    grid-template-rows: 1fr auto auto 1fr;
    column-gap: var(--s-3);
    align-items: center;
  }
  .cb-items > .cb-item:last-child:is(:nth-child(3n + 1), :nth-child(3n + 2)) .cb-item__img { grid-row: 1 / -1; margin: 0; }
  .cb-items > .cb-item:last-child:is(:nth-child(3n + 1), :nth-child(3n + 2)) .cb-item__name { grid-row: 2; align-self: end; }
  .cb-items > .cb-item:last-child:is(:nth-child(3n + 1), :nth-child(3n + 2)) .cb-item__al { grid-row: 3; align-self: start; }
  .cb-items > .cb-item:last-child:is(:nth-child(3n + 1), :nth-child(3n + 2)) .cb-item__price { grid-row: 4; align-self: start; }
}

.cb-item[aria-disabled="true"]:active { transform: none; }

/* salse: elenco senza foto */
.cb-sauces { display: grid; gap: var(--s-2); }
.cb-sauce {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-3);
  min-height: 60px;
  padding: var(--s-2) var(--s-4);
  text-align: left;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-surface);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: border-color 0.2s, background-color 0.2s, transform 0.3s var(--ease-spring);
}
.cb-sauce:hover { border-color: rgba(34, 211, 238, 0.35); }
.cb-sauce:active { transform: scale(0.98); }
.cb-sauce[aria-pressed="true"] { border-color: rgba(34, 211, 238, 0.6); background: linear-gradient(90deg, rgba(34, 211, 238, 0.08), transparent), var(--c-surface); }
.cb-sauce__box {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1px solid var(--c-line-strong);
  color: transparent;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.cb-sauce__box svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cb-sauce[aria-pressed="true"] .cb-sauce__box { background: var(--c-cyan); border-color: var(--c-cyan); color: var(--c-bg); }
.cb-sauce__name { font-weight: 700; font-size: var(--fs-sm); }
.cb-sauce__al { display: block; color: var(--c-muted); font-size: var(--fs-xs); font-weight: 500; }
.cb-sauce__price { color: var(--c-plasma); }

.cb-next { margin-top: var(--s-4); }
.cb-limit { margin-top: var(--s-3); color: var(--c-plasma); font-size: var(--fs-sm); font-weight: 600; }
.cb-limit:empty { display: none; }

/* il tuo burger: strati scelti, dal basso, ognuno si può togliere */
.cb-mine { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--c-line); }
.cb-mine__title { font-size: var(--fs-sm); font-weight: 700; color: var(--c-muted); }
.cb-mine__list { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.cb-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 40px;
  padding: 0 4px 0 var(--s-3);
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line-strong);
  background: rgba(242, 244, 247, 0.03);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.cb-chip--fixed { padding-right: var(--s-3); color: var(--c-muted); }
.cb-chip button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--c-muted);
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s, background-color 0.2s, transform 0.3s var(--ease-spring);
}
.cb-chip button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.cb-chip button:hover { color: var(--c-text); background: rgba(242, 244, 247, 0.08); }
.cb-chip button:active { transform: scale(0.88); }

/* contorno compreso: riga discreta sotto le descrizioni (menu, signature, Componi, carrello) */
.incl { display: block; margin-top: 4px; color: var(--c-cyan); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.01em; }
.cb-included { margin-top: var(--s-4); }
.cb-included .incl { margin-top: 0; }
.cb-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
.cb-actions .btn--primary { flex: 1 1 100%; }
.cb-actions .btn--ghost { flex: 1 1 0; }


@media (min-width: 960px) {
  .componi__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s-8); }
  .componi__stage-wrap {
    top: calc(var(--header-h) + var(--s-5));
    margin: 0;
    padding: 0;
    background: none;
  }
  .componi__stage-wrap::after { display: none; }
  .componi { --cb-stage-h: min(68svh, 580px); }
  .componi__builder { --cb-under: calc(var(--header-h) + 24px); }
  .cb-stage { padding-top: 72px; }
  .cb-stage__top { inset: var(--s-4) var(--s-5) auto; }
  .cb-total__value { font-size: 1.6rem; }
  .cb-allergens { flex-wrap: wrap; overflow: visible; }
  .cb-actions .btn--primary { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .cb-stack, .cb-layer { transition: none; }
}

/* ---------- barra fissa su cellulare (floating): "Prenota" e, se c'è qualcosa, il carrello ----------
   Un'unica barra: con il carrello pieno i due pulsanti stanno affiancati, mai sovrapposti. */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: flex;
  gap: var(--s-2);
  padding: var(--s-3) var(--gutter) max(var(--s-3), env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(10, 11, 15, 0), rgba(10, 11, 15, 0.92) 35%);
  transform: translateY(110%);
  transition: transform 0.45s var(--ease-spring);
}
.mobile-cta.show-book,
.mobile-cta.show-cart { transform: none; }
.mobile-cta__book { flex: 1 1 auto; }
.mobile-cta:not(.show-cart) .mobile-cta__cart { display: none; }
.mobile-cta.show-cart:not(.show-book) .mobile-cta__book { display: none; }
.mobile-cta.show-cart .mobile-cta__book { flex: none; padding: 0 var(--s-5); }
.mobile-cta.show-cart .mobile-cta__long { display: none; }
@media (min-width: 800px) { .mobile-cta { display: none; } }

.mobile-cta__cart {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 0 var(--s-4) 0 8px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(34, 211, 238, 0.45);
  background: rgba(26, 29, 38, 0.94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--sh-floating);
  font-weight: 700;
  font-size: var(--fs-sm);
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s, background-color 0.2s, transform 0.35s var(--ease-spring);
}
.mobile-cta__cart:hover { border-color: var(--c-cyan); background: rgba(30, 36, 46, 0.96); }
.mobile-cta__cart:active { transform: scale(0.97); }
.mobile-cta__icon {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--c-cyan-soft);
  color: var(--c-cyan);
}
.mobile-cta__icon svg,
.head-cart svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.mobile-cta__count,
.head-cart__count {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: var(--c-cyan);
  color: var(--c-bg);
  font-family: var(--f-display);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.mobile-cta__total { margin-left: auto; color: var(--c-plasma); white-space: nowrap; }

/* pulsante carrello nell'header (da computer, quando il carrello non è vuoto) */
.head-cart { position: relative; display: none; flex: none; width: 46px; height: 46px; }
.head-cart[hidden] { display: none; }
@media (min-width: 800px) { .head-cart:not([hidden]) { display: grid; } }
.head-cart__count { top: -3px; right: -3px; }

/* conferma visiva quando si aggiunge qualcosa */
.is-bump { animation: cart-bump 0.5s var(--ease-spring); }
@keyframes cart-bump {
  35% { transform: scale(1.07); }
}

/* ---------- "Aggiungi" sui piatti del menu ---------- */
.dish__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: auto;
  padding-top: var(--s-2);
}
.dish__foot .dish__allergens { margin-top: 0; }
.dish.has-badge .dish__foot { margin-right: calc(var(--s-5) - 104px); }
.dish__add {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 42px;
  padding: 0 var(--s-4) 0 9px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line-strong);
  background: rgba(242, 244, 247, 0.03);
  font-weight: 700;
  font-size: var(--fs-sm);
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s, background-color 0.2s, transform 0.35s var(--ease-spring);
}
.dish__add:hover { border-color: var(--c-cyan); background: var(--c-cyan-soft); }
.dish__add:active { transform: scale(0.95); background: rgba(34, 211, 238, 0.2); }
.dish__add-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--c-plasma);
  color: var(--c-bg);
  transition: background-color 0.2s;
}
.dish__add-icon svg { grid-area: 1 / 1; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: opacity 0.2s, transform 0.4s var(--ease-spring); }
.dish__check { opacity: 0; transform: scale(0.4); }
.dish__add-label { display: grid; }
.dish__add-label > * { grid-area: 1 / 1; transition: opacity 0.2s; }
.dish__add-done { opacity: 0; }
.dish__add.is-added .dish__add-icon { background: var(--c-cyan); }
.dish__add.is-added .dish__plus { opacity: 0; transform: rotate(90deg) scale(0.4); }
.dish__add.is-added .dish__check { opacity: 1; transform: none; }
.dish__add.is-added .dish__add-text { opacity: 0; }
.dish__add.is-added .dish__add-done { opacity: 1; }
.dish__qty {
  min-width: 22px;
  height: 22px;
  margin-right: -6px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: var(--c-cyan);
  color: var(--c-bg);
  font-family: var(--f-display);
  font-size: 0.7rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.dish__qty[hidden] { display: none; }

/* ---------- pannello del carrello (floating) ----------
   Cellulare: sale dal basso. Da computer: entra da destra. Solo transform e opacity. */
.sheet {
  inset: auto 0 0 0;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 92vh;
  max-height: 92dvh;
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--c-line-strong);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: var(--c-surface);
  color: var(--c-text);
  box-shadow: var(--sh-floating);
}
.sheet[open] { display: flex; flex-direction: column; animation: sheet-up 0.45s var(--ease-out); }
.sheet.is-closing { animation: sheet-down 0.26s cubic-bezier(0.4, 0, 1, 1) forwards; }
.sheet::backdrop { background: rgba(6, 7, 10, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet[open]::backdrop { animation: fade-in 0.3s var(--ease-out); }
.sheet.is-closing::backdrop { animation: fade-out 0.26s forwards; }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes sheet-down { to { transform: translateY(100%); } }
@keyframes sheet-in { from { transform: translateX(100%); } }
@keyframes sheet-out { to { transform: translateX(100%); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@media (min-width: 800px) {
  .sheet {
    inset: 0 0 0 auto;
    width: min(460px, 100%);
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    border-top: 0;
    border-left: 1px solid var(--c-line-strong);
    border-radius: var(--r-lg) 0 0 var(--r-lg);
  }
  .sheet[open] { animation-name: sheet-in; }
  .sheet.is-closing { animation-name: sheet-out; }
}
html.cart-open { overflow: hidden; }

.sheet__inner { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.sheet__head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-4) var(--s-3) var(--s-5);
  border-bottom: 1px solid var(--c-line);
}
.sheet__title { flex: 1; font-family: var(--f-display); font-size: 1.15rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; }
.sheet__title:focus { outline: none; }
.sheet__back { margin-left: calc(var(--s-2) * -1); }
.sheet__back[hidden] { display: none; }
.sheet__back, .sheet__close { flex: none; width: 44px; height: 44px; }
.sheet__view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.sheet__view[hidden] { display: none; }
.sheet__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  align-content: start;
  gap: var(--s-5);
  padding: var(--s-4) var(--s-5) var(--s-5);
}
.sheet__foot {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5) max(var(--s-4), env(safe-area-inset-bottom));
  border-top: 1px solid var(--c-line);
  background: var(--c-surface-2);
}
.sheet__foot[hidden] { display: none; }
.sheet__foot--pair { grid-template-columns: 1fr 1fr; }
.sheet__demo { color: var(--c-muted); font-size: var(--fs-xs); text-align: center; }
.sheet__demo[hidden] { display: none; }
.sheet__text { line-height: 1.65; }
.sheet__text--muted { color: var(--c-muted); font-size: var(--fs-sm); }

/* righe */
.cart-list { display: grid; }
.cart-list:empty { display: none; }
.cart-line { display: grid; gap: var(--s-1); padding: var(--s-4) 0; border-bottom: 1px solid var(--c-line); }
.cart-line:first-child { padding-top: 0; }
.cart-line__top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); }
.cart-line__name { font-weight: 750; line-height: 1.35; }
.cart-line__price { flex: none; color: var(--c-plasma); font-size: var(--fs-sm); }
.cart-line__incl { color: var(--c-cyan); font-size: var(--fs-xs); font-weight: 600; }
.cart-line__details, .cart-line__unit { color: var(--c-muted); font-size: var(--fs-sm); line-height: 1.55; }
.cart-line__ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-top: var(--s-2); }
.stepper--sm { padding: 3px; gap: var(--s-1); }
.stepper--sm .stepper__btn { width: 38px; height: 38px; font-size: 1.15rem; }
.stepper--sm .stepper__value { min-width: 2.4ch; font-size: 1rem; }
.cart-line__link {
  min-height: 40px;
  padding: 0 var(--s-2);
  border: 0;
  border-radius: 8px;
  background: none;
  font-weight: 600;
  font-size: var(--fs-sm);
  text-decoration: underline;
  text-decoration-color: rgba(34, 211, 238, 0.6);
  text-underline-offset: 4px;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s, background-color 0.2s;
}
.cart-line__link:hover { color: var(--c-cyan); }
.cart-line__link:active { background: rgba(242, 244, 247, 0.08); }
.cart-line__remove {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--c-muted);
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s, background-color 0.2s, transform 0.3s var(--ease-spring);
}
.cart-line__remove svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cart-line__remove:hover { color: #ff8a5c; background: rgba(255, 90, 31, 0.1); }
.cart-line__remove:active { transform: scale(0.9); }
.cart-line__note { margin-top: var(--s-2); }
.cart-line__note[hidden] { display: none; }
.input--sm { min-height: 44px; padding: var(--s-2) var(--s-3); }

.cart-empty { display: grid; gap: var(--s-4); padding: var(--s-6) 0; text-align: center; color: var(--c-muted); }
.cart-empty[hidden] { display: none; }
.cart-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); }
/* "Completa il tuo ordine": riquadro nel carrello, mai una finestra a comparsa */
.cart-suggest { display: grid; gap: var(--s-2); padding: var(--s-4); border-radius: var(--r-md); border: 1px solid rgba(34, 211, 238, 0.22); background: rgba(34, 211, 238, 0.04); }
.cart-suggest[hidden] { display: none; }
.cart-suggest__title { font-weight: 700; font-size: var(--fs-sm); }
.cart-suggest__list { display: grid; }
.cart-suggest__item { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) 0; border-top: 1px solid var(--c-line); }
.cart-suggest__item:first-child { border-top: 0; }
.cart-suggest__text { flex: 1; min-width: 0; display: grid; }
.cart-suggest__name { font-weight: 600; font-size: var(--fs-sm); }
.cart-suggest__sub { color: var(--c-muted); font-size: var(--fs-xs); }
.cart-suggest__price { flex: none; color: var(--c-plasma); font-size: var(--fs-xs); }
.cart-suggest__add {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--c-line-strong);
  background: rgba(242, 244, 247, 0.04);
  color: var(--c-text);
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s, background-color 0.2s, transform 0.3s var(--ease-spring);
}
.cart-suggest__add svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.cart-suggest__add:hover { border-color: var(--c-cyan); background: var(--c-cyan-soft); }
.cart-suggest__add:active { transform: scale(0.92); }
.cart-al { display: grid; gap: var(--s-2); }
.cart-al:empty { display: none; }
.cart-al__label { font-weight: 700; font-size: var(--fs-sm); }
.cart-al__list { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.cart-al__none { color: var(--c-muted); font-size: var(--fs-sm); }
.cart-total { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); font-weight: 700; }
.cart-total span:first-child { color: var(--c-muted); font-size: var(--fs-sm); font-weight: 600; }
.cart-total .tech { color: var(--c-plasma); font-size: 1.05rem; }

/* ritiro */
.pickup { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: var(--s-2); }
.input--select { -webkit-appearance: none; appearance: none; padding-right: 38px; text-overflow: ellipsis; }
.input.input--select,
.input.input--select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322D3EE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}
.input--select:disabled { opacity: 0.5; }

/* anteprima del messaggio, come appare nella chat */
.wa-preview {
  padding: var(--s-4) var(--s-3);
  border-radius: var(--r-md);
  border: 1px solid var(--c-line);
  background: #0B141A;
}
.wa-preview__bubble {
  max-width: 94%;
  padding: 7px 9px 5px;
  border-radius: 0 9px 9px 9px;
  background: #202C33;
  color: #E9EDEF;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  line-height: 1.45;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
.wa-preview__text { white-space: pre-wrap; overflow-wrap: anywhere; }
.wa-preview__text strong { font-weight: 700; }
.wa-preview__time { display: block; margin-top: 2px; text-align: right; font-size: 0.7rem; color: rgba(233, 237, 239, 0.6); }

/* ---------- avviso installazione su iPhone (floating) ---------- */
.ios-hint {
  position: fixed;
  z-index: 46;
  left: max(var(--gutter), env(safe-area-inset-left));
  right: max(var(--gutter), env(safe-area-inset-right));
  bottom: calc(max(var(--s-3), env(safe-area-inset-bottom)) + 72px);
  max-width: 440px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-2) var(--s-3) var(--s-3);
  border-radius: var(--r-md);
  border: 1px solid var(--c-line-strong);
  background: rgba(26, 29, 38, 0.94);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: var(--sh-floating);
  color: rgba(242, 244, 247, 0.78);
  font-size: var(--fs-sm);
  line-height: 1.5;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s var(--ease-out), transform 0.55s var(--ease-spring);
}
.ios-hint[hidden] { display: none; }
.ios-hint.is-on { opacity: 1; transform: none; }
.ios-hint > img { width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--c-line); }
.ios-hint b { display: block; margin-bottom: 2px; color: var(--c-text); font-weight: 700; font-size: 0.95rem; }
.ios-hint a { color: var(--c-cyan); font-weight: 700; text-underline-offset: 3px; }
.ios-hint a:hover { color: #67e3f5; }
.ios-hint__share { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -0.2em; fill: none; stroke: var(--c-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ios-hint__close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-top: -6px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--c-muted);
  transition: color 0.2s, background-color 0.2s, transform 0.3s var(--ease-spring);
}
.ios-hint__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.ios-hint__close:hover { color: var(--c-text); background: rgba(242, 244, 247, 0.08); }
.ios-hint__close:active { transform: scale(0.9); }

/* ---------- avviso "Nuova versione disponibile" (floating, compare solo mentre si usa l'app) ---------- */
.update-notice {
  position: fixed;
  z-index: 70;
  top: calc(var(--header-h) + env(safe-area-inset-top) + var(--s-2));
  left: 0;
  right: 0;
  width: max-content;
  margin-inline: auto;
  display: block;
  max-width: calc(100% - 2 * var(--gutter));
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-pill);
  border: 1px solid rgba(34, 211, 238, 0.45);
  background: rgba(26, 29, 38, 0.94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--sh-floating);
  color: var(--c-text);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-wrap: balance;
  opacity: 0;
  transform: translateY(-8px);
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.3s var(--ease-out), transform 0.45s var(--ease-spring), border-color 0.2s, background-color 0.2s;
}
.update-notice.is-on { opacity: 1; transform: none; }
.update-notice:hover { border-color: var(--c-cyan); background: rgba(30, 36, 46, 0.96); }
.update-notice:active { transform: scale(0.97); }
.update-notice__dot { display: inline-block; vertical-align: 1px; margin-right: var(--s-2); width: 8px; height: 8px; border-radius: 50%; background: var(--c-cyan); box-shadow: 0 0 0 4px var(--c-cyan-soft); }

/* ---------- comparse (solo transform/opacity) ----------
   Si nasconde solo ciò che è FUORI dallo schermo, e solo quando il JavaScript è partito (classe reveal-on,
   messa da initReveal dopo aver segnato come già visibile ciò che è sullo schermo): niente sparisce
   e ricompare all'apertura, e se il JavaScript non parte il contenuto resta visibile. */
.reveal-on [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(18px); }
.reveal-on [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .marquee__track.is-running { animation: none; }
  .reveal-on [data-reveal]:not(.is-in) { opacity: 1; transform: none; }
}
