@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}


:root {
  
  --orange:        #FF8E09;   
  --orange-soft:   #FEB04E;  
  --ink:           #0D0D0D;   
  --cream:         #FAFAFA;   

  
  --ink-2:         #161616;
  --ink-3:         #1F1F1F;
  --line:          rgba(250, 250, 250, .12);
  --line-strong:   rgba(250, 250, 250, .22);
  --muted:         rgba(250, 250, 250, .62);
  --muted-2:       rgba(250, 250, 250, .50);   /* .42 stava a 3,98 di contrasto: sotto 4,5 */

  /* Lo spazio che la scena del panino lascia in fondo, sopra la barra. */
  --scena-fondo:   5.6rem;

 
  --font: "Archivo", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  
  --wrap:          1180px;
  --radius:        18px;
  --radius-sm:     12px;
  --nav-h:         64px;
  --section-y:     clamp(4rem, 10vw, 8rem);

  --shadow:        0 20px 50px rgba(0, 0, 0, .45);
  --shadow-orange: 0 14px 40px rgba(255, 142, 9, .28);
}



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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cream);
  background: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }


[hidden] { display: none !important; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--orange); }

h1, h2, h3 { line-height: 1.08; margin: 0; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 5vw, 2.5rem);
}

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

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

.skip-link {
  position: absolute; top: -100px; left: 12px; z-index: 999;
  background: var(--orange); color: var(--ink);
  padding: .7rem 1.1rem; border-radius: 0 0 10px 10px; font-weight: 800;
  transition: top .2s;
}
.skip-link:focus { top: 0; color: var(--ink); }


.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .78rem; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 .9rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px;
  background: var(--orange); border-radius: 2px;
}

.section-title {
  font-size: clamp(2rem, 6.5vw, 3.4rem);
  font-weight: 900;
  margin-bottom: 1.1rem;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  font-weight: 800; font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease,
              background-color .18s ease, color .18s ease;
  will-change: transform;
}
.btn:active { transform: scale(.97); }

.btn--primary {
  background: var(--orange); color: var(--ink);
  box-shadow: var(--shadow-orange);
}
.btn--primary:hover {
  background: var(--orange-soft); color: var(--ink);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent; color: var(--cream);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  background: var(--cream); color: var(--ink); border-color: var(--cream);
}

.btn--block { display: flex; width: 100%; }

.btn--lg {
  padding: 1.15rem 2.1rem;
  font-size: 1.08rem;
  letter-spacing: -.01em;
}

.tag {
  display: inline-block;
  font-size: .66rem; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase;
  padding: .2rem .5rem; border-radius: 999px;
  border: 1px solid currentColor;
  white-space: nowrap;
  vertical-align: middle;
}
.tag--piccante        { color: #FF6B4A; }
.tag--veg             { color: #7BC96F; }
.tag--novita          { color: var(--orange-soft); }
.tag--senza-lattosio  { color: #6FC2E8; }
.tag--consigliato     { color: var(--orange); }



.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(13, 13, 13, .55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease;
}

.nav.is-scrolled {
  background: rgba(13, 13, 13, .92);
  border-bottom-color: var(--line);
}

.nav__inner {
  height: 100%;
  max-width: var(--wrap); margin-inline: auto;
  padding-inline: clamp(1.15rem, 5vw, 2.5rem);
  display: flex; align-items: center; gap: 1rem;
}

.nav__brand { display: flex; align-items: center; gap: .6rem; margin-right: auto; }
.nav__logo  { width: 40px; height: 40px; border-radius: 50%; }
.nav__name  { font-weight: 900; font-size: 1.1rem; letter-spacing: -.01em; }
.nav__brand:hover .nav__name { color: var(--orange); }

.nav__links {
  position: fixed; inset: var(--nav-h) 0 auto 0;
  background: rgba(13, 13, 13, .98);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: .5rem clamp(1.15rem, 5vw, 2.5rem) 1.5rem;
  transform: translateY(-120%);
  opacity: 0; visibility: hidden;
  transition: transform .32s cubic-bezier(.4, 0, .2, 1), opacity .25s, visibility .25s;
}
.nav__links.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
.nav__links ul { display: flex; flex-direction: column; }
.nav__links a {
  display: block; padding: .95rem 0;
  font-weight: 800; font-size: 1.15rem;
  border-bottom: 1px solid var(--line);
}
.nav__links a.is-active { color: var(--orange); }

.nav__cta {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--orange); color: var(--ink);
  padding: .55rem 1rem; border-radius: 999px;
  font-weight: 800; font-size: .9rem;
}
.nav__cta:hover { background: var(--orange-soft); color: var(--ink); }

/* Hamburger */
.nav__toggle {
  width: 44px; height: 44px; flex: 0 0 auto;
  display: grid; place-content: center; gap: 5px;
  background: transparent; border: 1px solid var(--line-strong);
  border-radius: 11px; cursor: pointer; padding: 0;
}
.nav__toggle span {
  display: block; width: 19px; height: 2px;
  background: var(--cream); border-radius: 2px;
  transition: transform .28s ease, opacity .2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 860px) {
  :root { --nav-h: 76px; }
  .nav__toggle { display: none; }
  .nav__links {
    position: static; transform: none; opacity: 1; visibility: visible;
    background: none; border: 0; padding: 0; backdrop-filter: none;
  }
  /* Le voci sono sette (otto con le offerte attive): il passo si stringe da
     solo quando la finestra e' stretta, invece di far uscire "Chiama" fuori. */
  .nav__links ul { flex-direction: row; gap: clamp(.95rem, 2.1vw, 2rem); }
  .nav__links a {
    padding: .3rem 0; font-size: .95rem; font-weight: 800;
    border: 0; position: relative; white-space: nowrap;
  }
  .nav__links a::after {
    content: ""; position: absolute; left: 0; bottom: -4px;
    width: 100%; height: 2px; background: var(--orange);
    transform: scaleX(0); transform-origin: left;
    transition: transform .25s ease;
  }
  .nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
  .nav__links a[aria-current="page"] { color: var(--cream); }
  .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
  .nav__cta { margin-left: 1.5rem; padding: .65rem 1.35rem; }
}

/* Fascia scomoda: la barra e' gia' orizzontale ma lo spazio non basta per
   sette voci a grandezza piena. Si rimpicciolisce il testo e il pulsante del
   telefono resta la sola cornetta, che si capisce lo stesso. */
@media (min-width: 860px) and (max-width: 1099px) {
  .nav__name      { font-size: 1rem; }
  .nav__links a   { font-size: .87rem; }
  .nav__cta       { margin-left: .9rem; padding: .6rem .8rem; }
  .nav__cta span  { display: none; }
}



.hero {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  padding: calc(var(--nav-h) + 2.5rem) 0 5rem;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg { position: absolute; inset: 0; z-index: -2; }


.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 47%;
  /* Niente bianco e nero: l'arancione del locale e' il marchio. */
  filter: brightness(.50) saturate(1.10) contrast(1.04);
  transform: scale(1.03);
}

.hero__glow {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(75% 55% at 50% 46%, rgba(13,13,13,.82), rgba(13,13,13,.30) 66%, transparent 100%),
    radial-gradient(70% 55% at 50% 26%, rgba(255, 142, 9, .18), transparent 72%),
    linear-gradient(to bottom,
      rgba(13,13,13,.66) 0%,
      rgba(13,13,13,.40) 30%,
      rgba(13,13,13,.84) 76%,
      var(--ink) 100%);
}

.hero__content {
  max-width: 720px;
  width: 100%;
  padding-inline: clamp(1.15rem, 5vw, 2.5rem);
}

.hero__logo {
  width: clamp(96px, 26vw, 150px); height: auto;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(13,13,13,.55), 0 22px 55px rgba(255,142,9,.35);
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.hero__eyebrow {
  font-size: .8rem; font-weight: 800;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--orange-soft);
  margin: 0 0 .5rem;
}

.hero__title {
  font-size: clamp(3.4rem, 17vw, 8rem);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: .88;
  margin-bottom: 1.1rem;
  text-transform: uppercase;
}
.hero__title-line { display: block; }
.hero__title-line--accent {
  color: var(--orange);
  text-shadow: 0 0 60px rgba(255, 142, 9, .45);
}

.hero__claim {
  font-size: clamp(1rem, 3.6vw, 1.22rem);
  color: rgba(250, 250, 250, .82);
  max-width: 34ch; margin: 0 auto 2rem;
  text-wrap: balance;
}

.hero__actions {
  display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center;
}


.perks {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .5rem .9rem;
  margin: 1.4rem 0 0;
  font-size: .86rem; font-weight: 600;
  color: rgba(250, 250, 250, .78);
}
.perks li { display: inline-flex; align-items: center; gap: .35rem; }
.perks strong { color: var(--cream); font-weight: 800; }
.perks__tick {
  display: inline-grid; place-items: center;
  width: 17px; height: 17px; flex: 0 0 auto;
  border-radius: 50%;
  background: var(--orange); color: var(--ink);
  font-size: .68rem; font-weight: 900; line-height: 1;
}
@media (min-width: 860px) { .perks { gap: .5rem 1.4rem; font-size: .9rem; } }


.hero__status {
  margin: 1.7rem 0 0;
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .88rem; font-weight: 800;
  padding: .45rem 1rem; border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(13,13,13,.5);
  color: rgba(250,250,250,.85);
}
.hero__status::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--muted-2); flex: 0 0 auto;
}
.hero__status.is-open::before {
  background: #4ADE80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .2);
  animation: pulse 2.2s infinite;
}
.hero__status.is-closed::before { background: #F87171; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(74,222,128,.2); }
  50%      { box-shadow: 0 0 0 9px rgba(74,222,128,0); }
}

/* Freccia "scorri" */
.hero__scroll {
  position: absolute; bottom: 1.6rem; left: 50%; translate: -50% 0;
  width: 26px; height: 42px; border-radius: 14px;
  border: 2px solid var(--line-strong);
  display: grid; place-items: start center; padding-top: 7px;
}
.hero__scroll span {
  width: 3px; height: 8px; border-radius: 2px; background: var(--orange);
  animation: scrolldot 1.8s infinite;
}
@keyframes scrolldot {
  0%   { opacity: 0; transform: translateY(0); }
  35%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(15px); }
}
@media (max-height: 700px) { .hero__scroll { display: none; } }


@media (max-height: 740px) {
  .hero { padding-bottom: 3rem; }
  .hero__logo { width: clamp(74px, 20vw, 108px); margin-bottom: 1rem; }
  .hero__title { margin-bottom: .8rem; }
  .hero__claim { margin-bottom: 1.4rem; font-size: 1rem; }
  .perks { margin-top: 1rem; font-size: .8rem; gap: .4rem .8rem; }
  .hero__status { margin-top: 1.1rem; }
}


@media (min-width: 1280px) {
  .hero__glow {
    background:
      radial-gradient(62% 55% at 50% 46%, rgba(13,13,13,.86), rgba(13,13,13,.34) 66%, transparent 100%),
      radial-gradient(70% 55% at 50% 26%, rgba(255, 142, 9, .18), transparent 72%),
      linear-gradient(to bottom,
        rgba(13,13,13,.66) 0%,
        rgba(13,13,13,.44) 30%,
        rgba(13,13,13,.84) 76%,
        var(--ink) 100%);
  }
}



.build {
  /* Quanto dura la scena: tolta l'altezza dello schermo, quel che resta e' lo
     scorrimento su cui si spalmano gli strati. A 220vh sono 120vh per otto
     strati piu' la frase finale, circa un strato ogni scatto e mezzo di
     rotellina. Alzando questo numero la scena rallenta, abbassandolo corre. */
  height: 220vh;
  position: relative;
  background:
    linear-gradient(to bottom, var(--ink) 0%, var(--ink-2) 30%, var(--ink-2) 70%, var(--ink) 100%);
}

.build__sticky {
  position: sticky; top: 0;
  height: 100svh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-content: center;
  gap: 1rem;
  padding: calc(var(--nav-h) + 1.5rem) clamp(1.15rem, 5vw, 2.5rem) 2.5rem;
  overflow: hidden;
}

.build__text { text-align: center; max-width: 620px; margin-inline: auto; width: 100%; }

.build__title {
  font-size: clamp(1.7rem, 6vw, 2.8rem);
  font-weight: 900;
  margin-bottom: .6rem;
}
.build__title::after {
  content: ""; display: block; width: 54px; height: 3px;
  background: var(--orange); border-radius: 2px; margin: .8rem auto 0;
}

.build__caption {
  min-height: 3.2em;
  font-size: clamp(1rem, 3.8vw, 1.25rem);
  color: rgba(250,250,250,.78);
  margin: 1rem 0 .8rem;
  transition: opacity .3s ease;
  text-wrap: balance;
}
.build__caption.is-fading { opacity: 0; }

.build__progress {
  width: min(220px, 60%); height: 3px; margin-inline: auto;
  background: var(--line); border-radius: 2px; overflow: hidden;
}
.build__progress span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--orange-soft), var(--orange));
  border-radius: 2px;
  transition: width .1s linear;
}

.build__stage { display: grid; place-items: center; min-height: 0; }

/* Lo stack di strati.
   Le immagini sono ritagliate dalla foto vera del Mo Magno: un solo
   scatto, diviso in sette strati che si rimontano scorrendo.
   Le percentuali qui sotto NON sono a occhio: sono le proporzioni reali
   delle foto. Se rifai i ritagli, vanno ricalcolate. */
/* Lo stack di strati.
   Ritagliati dalla foto vera del Mo Magno: uno scatto solo, diviso in
   sette pezzi che si rimontano scorrendo la pagina.
   Le percentuali NON sono a occhio: sono le proporzioni reali delle
   immagini. Se rifai i ritagli, vanno ricalcolate. */
/* Lo stack di strati.
   Otto pezzi ritagliati da un'unica foto del Mo Magno, che si rimontano
   scorrendo la pagina. Le percentuali NON sono a occhio: sono le
   proporzioni reali delle immagini, calcolate dal montaggio.
   Se rifai i ritagli, vanno ricalcolate. */
.burger {
  position: relative;
  /* Tre limiti, vince il piu' piccolo: una misura massima, la larghezza dello
     schermo e la sua ALTEZZA. L'ultimo serve per le finestre basse e larghe —
     un telefono girato, un Fold aperto — dove senza di lui il panino usciva
     dalla scena e veniva tagliato. */
  width: min(290px, 68vw, 36svh);
  aspect-ratio: 560 / 743;
  display: block;
  filter: drop-shadow(0 30px 45px rgba(0, 0, 0, .55));
}

.burger__layer {
  position: absolute;
  left: 0; right: 0;
  margin-inline: auto;          /* centrato senza toccare transform */
  will-change: transform, opacity;
}

/* Il movimento e' guidato fotogramma per fotogramma da script.js
   (initBurgerAnimation): niente transition, altrimenti i due si
   ostacolano e il panino si muove a scatti.
   Senza JavaScript la classe qui sotto non viene mai aggiunta e il
   panino resta visibile, gia' montato. */
.burger--animato .burger__layer { opacity: 0; }

.burger__layer img { width: 100%; height: auto; display: block; }

/* pane-sopra  */ .burger__layer:nth-child(1) { width: 90.89%; bottom: 60.30%; z-index: 8; }
/* salsa       */ .burger__layer:nth-child(2) { width: 51.79%; bottom: 55.18%; z-index: 7; }
/* bacon       */ .burger__layer:nth-child(3) { width: 100.00%; bottom: 51.95%; z-index: 6; }
/* cheddar     */ .burger__layer:nth-child(4) { width: 91.96%; bottom: 43.74%; z-index: 5; }
/* hamburger   */ .burger__layer:nth-child(5) { width: 88.93%; bottom: 33.51%; z-index: 4; }
/* pomodoro    */ .burger__layer:nth-child(6) { width: 89.64%; bottom: 24.23%; z-index: 3; }
/* insalata    */ .burger__layer:nth-child(7) { width: 97.68%; bottom: 10.50%; z-index: 2; }
/* pane-sotto  */ .burger__layer:nth-child(8) { width: 94.82%; bottom: 0.00%; z-index: 1; }


/* ----------------------------------------------------------------------------
 * LA SCENA SU SCHERMI LARGHI MA BASSI
 * --------------------------------------------------------------------------
 * Il caso che ha fatto nascere queste due regole: un Galaxy Z Fold aperto, che
 * da' una finestra quasi quadrata (circa 755×900). La colonna singola pensata
 * per il telefono ci sta stretta: il pulsante "Aggiungi all'ordine" finiva
 * sotto la barra in basso e la riga degli ingredienti spariva sotto la
 * linguetta dei panini. Vale anche per un telefono girato e per i tablet
 * piccoli.
 * ------------------------------------------------------------------------- */

/* Dove c'e' la barra in basso, la scena le lascia il suo spazio: prima il
   pulsante ci finiva sotto per 26px, su qualsiasi telefono. La misura sta in
   una variabile perche' la usa anche la linguetta dei panini, che deve
   restare sopra prezzo e pulsante. */
@media (max-width: 859px) {
  .build__sticky { padding-bottom: calc(var(--scena-fondo) + env(safe-area-inset-bottom)); }
}

/* Su schermi bassi e larghi — un telefono girato — la scena non ci sta: si
   stringe invece di farsi tagliare dalla barra. */
@media (max-height: 520px) {
  .build__sticky { padding-top: calc(var(--nav-h) + .6rem); }
  .build__title { font-size: 1.4rem; }
  .build__title::after { margin-top: .5rem; }
  .build__caption { min-height: 0; font-size: .95rem; margin: .5rem 0 .4rem; }
  .build__progress { display: none; }
  .build__sotto { padding-top: .6rem; }
  .build__prezzo { font-size: .85rem; }
}

/* Quando la finestra NON e' alta e stretta, testo e pulsante vanno a sinistra
   e il panino a destra: cosi' il pulsante esce da sotto la barra e la riga
   degli ingredienti si allontana dalla linguetta, che sta a destra.

   La regola guarda le PROPORZIONI, non una larghezza precisa: 3/5 vuol dire
   "larga almeno 3 quanto e' alta 5". Un telefono normale sta sotto (390×844
   fa 0,46) e resta a colonna singola; un Fold aperto sta sopra (0,77) e passa
   a due colonne. E' stato scritto cosi' apposta: il Fold 5 aperto riporta 690
   pixel di larghezza, non 755, e una soglia a numero fisso lo mancava per un
   soffio. Sotto i 560px due colonne sarebbero comunque troppo strette. */
@media (min-width: 560px) and (max-width: 859px) and (min-aspect-ratio: 3/5) {
  .build__sticky {
    grid-template-rows: auto auto;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 0 2rem;
    max-width: var(--wrap); margin-inline: auto;
  }
  .build__text { text-align: left; margin-inline: 0; grid-column: 1; grid-row: 1; }
  .build__sotto {
    grid-column: 1; grid-row: 2;
    text-align: left; align-self: start;
    padding-top: 1.2rem;
  }
  .build__stage { grid-column: 2; grid-row: 1 / 3; }
  /* il clamp qui darebbe 45px e il titolo andrebbe a capo tre volte */
  .build__title { font-size: 2rem; }
  .build__title::after { margin-inline: 0; }
  .build__progress { margin-inline: 0; width: 180px; }
  .burger { width: min(300px, 40vw, 36svh); }
}

@media (min-width: 860px) {
  .build__sticky {
    grid-template-rows: auto auto;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 0 3rem;
    max-width: var(--wrap); margin-inline: auto;
  }
  .build__text { text-align: left; margin-inline: 0; grid-column: 1; grid-row: 1; }
  /* qui lo spazio c'e': prezzo e pulsante tornano sotto al testo, a sinistra */
  .build__sotto {
    grid-column: 1; grid-row: 2;
    text-align: left; align-self: start;
    padding-top: 1.4rem;
  }
  .build__stage { grid-column: 2; grid-row: 1 / 3; }
  .build__title::after { margin-inline: 0; }
  .build__progress { margin-inline: 0; width: 220px; }
  .burger { width: min(360px, 32vw, 40svh); }
}



.about { padding-block: var(--section-y); background: var(--ink); }

.about__grid { display: grid; gap: 3rem; }

.about__text p { color: rgba(250,250,250,.72); max-width: 60ch; }

.about__badges {
  display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.8rem;
}
.about__badges li {
  font-size: .82rem; font-weight: 800;
  padding: .45rem .95rem; border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: rgba(250,250,250,.8);
  background: var(--ink-2);
}

.about__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.about__shot { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--ink-3); }
.about__shot img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.8,.3,1);
}
.about__shot:hover img { transform: scale(1.05); }
.about__shot--tall { grid-row: span 2; }
.about__shot:not(.about__shot--tall) { aspect-ratio: 4 / 3; }
.about__shot--tall { aspect-ratio: 3 / 4; }


.staff {
  grid-column: 1 / -1;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid var(--line);
}
.staff__title {
  font-size: clamp(1.3rem, 4.5vw, 1.8rem); font-weight: 900;
  margin-bottom: 1.8rem; text-align: center;
}
.staff__grid { display: grid; gap: 1.2rem; }

.persona {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 1.2rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  transition: border-color .22s ease, transform .22s ease;
}
.persona:hover { border-color: rgba(255, 142, 9, .4); transform: translateY(-3px); }

.persona__foto {
  width: 100%; aspect-ratio: 3 / 4;
  object-fit: cover; object-position: center top;
  border-radius: var(--radius-sm);
  background: var(--orange);
}
.persona__testo { min-width: 0; }
.persona__nome { font-size: 1.1rem; font-weight: 900; margin: 0 0 .15rem; }
.persona__ruolo {
  margin: 0 0 .7rem;
  font-size: .76rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange);
}
.persona__bio {
  margin: 0 0 .8rem;
  font-size: .92rem; line-height: 1.5;
  color: rgba(250, 250, 250, .8);
}
.persona__citazione {
  margin: 0; padding-left: .9rem;
  border-left: 2px solid rgba(255, 142, 9, .5);
  font-size: .88rem; line-height: 1.6; font-style: italic;
  color: var(--muted);
}
.persona__citazione::before { content: "«"; color: var(--orange); font-style: normal; }
.persona__citazione::after  { content: "»"; color: var(--orange); font-style: normal; }

@media (min-width: 560px) { .persona { grid-template-columns: 150px 1fr; gap: 1.5rem; } }
@media (min-width: 900px) {
  .staff__grid { grid-template-columns: 1fr 1fr; gap: 1.4rem; }
  .persona { grid-template-columns: 130px 1fr; align-content: start; }
}

@media (min-width: 900px) {
  .about__grid { grid-template-columns: 1.05fr .95fr; gap: 4rem; align-items: center; }
  .about__gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .about__shot--tall { aspect-ratio: auto; }
  .about__gallery .about__shot:not(.about__shot--tall) { align-self: center; }
}


.menu {
  padding-block: var(--section-y);
  background:
    radial-gradient(90% 45% at 50% 0%, rgba(255,142,9,.10), transparent 62%),
    var(--ink-2);
  border-top: 1px solid var(--line);
}

.menu__head { text-align: center; margin-bottom: 2.5rem; }
.menu__head .eyebrow { justify-content: center; }
.menu__note { color: var(--muted); font-size: .92rem; margin: 0; }

.burger-section {
  padding-block: var(--section-y);
  background:
    radial-gradient(90% 50% at 50% 0%, rgba(255, 142, 9, .12), transparent 62%),
    var(--ink);
  border-top: 1px solid var(--line);
}
.burger-section .menu__head { text-align: center; margin-bottom: 2.5rem; }
.burger-section .menu__head .eyebrow { justify-content: center; }


.combo {
  border: 1px solid rgba(255,142,9,.35);
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, rgba(255,142,9,.14), rgba(255,142,9,.02) 55%),
    var(--ink);
  padding: clamp(1.4rem, 5vw, 2.5rem);
  margin-bottom: 3rem;
  box-shadow: var(--shadow);
}
.combo__top { display: grid; gap: 1rem; margin-bottom: 1.6rem; }
.combo__badge {
  display: inline-block; align-self: start;
  background: var(--orange); color: var(--ink);
  font-size: .72rem; font-weight: 900;
  letter-spacing: .16em; text-transform: uppercase;
  padding: .35rem .8rem; border-radius: 999px;
}
.combo__name { font-size: clamp(1.7rem, 6vw, 2.4rem); font-weight: 900; }
.combo__sub  { color: var(--orange-soft); font-weight: 800; margin: .2rem 0 .6rem; }
.combo__desc { color: rgba(250,250,250,.72); margin: 0; max-width: 52ch; }
.combo__price {
  font-size: clamp(2.4rem, 9vw, 3.4rem); font-weight: 900;
  color: var(--orange); line-height: 1; letter-spacing: -.03em;
}
.combo__price small { display: block; font-size: .8rem; font-weight: 800; color: var(--muted); letter-spacing: 0; }

.combo__builder { display: grid; gap: 1.6rem; }

.combo__steps { display: grid; gap: 1rem; }

.combo__step { display: grid; gap: .5rem; }

.combo__step-label {
  display: flex; align-items: center; gap: .55rem;
  font-weight: 800; font-size: .95rem;
}
.combo__step-icon { font-size: 1.2rem; }


.combo__select option { background: var(--ink-2); color: var(--cream); }


.combo__total {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(13,13,13,.6);
  padding: 1.2rem;
  align-self: start;
}

.combo__lines { display: grid; gap: .1rem; margin-bottom: .9rem; }
.combo__line {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .45rem 0;
  font-size: .9rem; color: rgba(250,250,250,.78);
  border-bottom: 1px dashed rgba(250,250,250,.09);
}
.combo__line:last-child { border-bottom: 0; }
.combo__line span:last-child { color: var(--orange-soft); font-weight: 800; white-space: nowrap; }
.combo__line--base { color: var(--muted); }
.combo__line--base span:last-child { color: var(--muted); font-weight: 600; }

.combo__total-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin: 0 0 1.1rem;
  padding-top: .9rem; border-top: 1px solid var(--line-strong);
  font-weight: 800; font-size: .95rem;
}
.combo__total-price {
  font-size: clamp(1.9rem, 7vw, 2.4rem); font-weight: 900;
  color: var(--orange); line-height: 1; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  transition: color .25s ease;
}

.combo__total-price.is-raised { animation: bump .45s ease; }
@keyframes bump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.combo__actions { display: grid; gap: .6rem; }
.combo__reset {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px;
  background: none; border: 0; padding: .3rem .6rem;
  font-family: inherit; font-size: .84rem; font-weight: 800;
  color: var(--muted); cursor: pointer; text-decoration: underline;
}
.combo__reset:hover { color: var(--orange); }

@media (min-width: 760px) {
  .combo__top { grid-template-columns: 1fr auto; align-items: center; }
  .combo__price { text-align: right; }
  .combo__builder { grid-template-columns: 1.35fr .65fr; gap: 2rem; align-items: start; }
  .combo__steps { gap: 1.1rem; }
}


/* ============================================================================
   BARRA DEL MENU — ricerca, categorie e filtri, attaccata sotto la barra alta
   ========================================================================= */

.menubar {
  position: sticky;
  top: calc(var(--nav-h) - 1px);
  z-index: 40;
  display: grid; gap: .55rem;
  padding: .75rem 0 .8rem;
  margin-bottom: 1.4rem;
  background: var(--ink-2);
  border-bottom: 1px solid var(--line);
  /* Il fondo deve arrivare ai bordi dello schermo, ma la barra sta dentro la
     colonna di testo. L'ombra si allarga senza occupare spazio, cosi' non
     compare la barra di scorrimento orizzontale; il ritaglio la tiene bassa. */
  box-shadow: 0 0 0 100vmax var(--ink-2);
  clip-path: inset(0 -100vmax);
}

.cerca {
  position: relative;
  display: flex; align-items: center;
}
.cerca__icona {
  position: absolute; left: .9rem;
  font-size: .95rem; opacity: .65; pointer-events: none;
}
.cerca__campo {
  width: 100%;
  padding: .8rem 2.6rem .8rem 2.6rem;
  font-family: inherit; font-size: 1rem; /* 16px: sotto, iOS zooma da solo */
  color: var(--cream);
  background: rgba(13,13,13,.75);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: border-color .2s ease, background-color .2s ease;
}
.cerca__campo::placeholder { color: var(--muted-2); }
.cerca__campo:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(13,13,13,.95);
}
.cerca__campo::-webkit-search-cancel-button { display: none; }

.cerca__pulisci {
  position: absolute; right: .5rem;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  font-family: inherit; font-size: 1.35rem; line-height: 1;
  color: var(--muted); background: transparent;
  border: 0; border-radius: 50%; cursor: pointer;
}
.cerca__pulisci:hover { color: var(--cream); background: rgba(250,250,250,.08); }

.chips {
  display: flex; gap: .45rem;
  overflow-x: auto;
  padding: .15rem .15rem .2rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  padding: .5rem 1rem; border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(13,13,13,.6); color: rgba(250,250,250,.82);
  font-family: inherit; font-size: .85rem; font-weight: 800;
  cursor: pointer; white-space: nowrap;
  scroll-snap-align: start;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--orange); color: var(--orange); }
.chip.is-active {
  background: var(--orange); border-color: var(--orange); color: var(--ink);
}
/* categoria che si sta guardando scorrendo: si segnala, ma non si accende
   come quella scelta col dito */
.chip.is-in-vista:not(.is-active) {
  border-color: var(--orange); color: var(--orange);
}
.chip--azzera {
  border-style: dashed; color: var(--muted);
  font-weight: 600;
}
.chip--azzera:hover { border-color: var(--cream); color: var(--cream); }

.menu__esito {
  margin: 0 0 1rem;
  font-size: .9rem; color: var(--muted);
}
.menu__esito strong { color: var(--cream); }
.menu__esito a { color: var(--orange); }

.esito__link {
  font-family: inherit; font-size: inherit;
  color: var(--orange); background: transparent;
  border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
}

.menu__vuoto {
  padding: 2.5rem 1.5rem;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}
.menu__vuoto-titolo { margin: 0 0 .4rem; font-weight: 800; font-size: 1.1rem; }
.menu__vuoto-testo { margin: 0; color: var(--muted); font-size: .92rem; }

/* parole trovate dalla ricerca */
.dish mark {
  background: rgba(255, 142, 9, .28);
  color: inherit;
  border-radius: 3px;
  padding: 0 .1em;
}


.cat {
  margin-bottom: .8rem;
  /* sotto la barra alta c'e' anche quella del menu: il salto a una categoria
     deve fermarsi sotto entrambe */
  scroll-margin-top: calc(var(--nav-h) + 150px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 13, 13, .35);
  overflow: hidden;
  transition: border-color .2s ease;
}
.cat[hidden] { display: none; }
.cat[open] { border-color: var(--line-strong); background: rgba(13, 13, 13, .5); }
.cat:hover { border-color: rgba(255, 142, 9, .35); }

.cat__head {
  display: flex; align-items: center; gap: .8rem;
  padding: 1.1rem 1.2rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.cat__head::-webkit-details-marker { display: none; }
.cat__head:hover { background: rgba(255, 142, 9, .05); }

.cat__icon { font-size: 1.45rem; line-height: 1; flex: 0 0 auto; }
.cat__name {
  font-size: clamp(1.1rem, 4vw, 1.4rem); font-weight: 900;
  margin-right: auto;
}
.cat__meta {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: .1rem; text-align: right;
}
.cat__count { font-size: .78rem; color: var(--muted-2); white-space: nowrap; }
.cat__range {
  font-size: .78rem; font-weight: 800; color: var(--orange-soft);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
@media (max-width: 420px) { .cat__range { display: none; } }


.cat__chevron {
  flex: 0 0 auto;
  width: 10px; height: 10px;
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .25s ease;
}
.cat[open] .cat__chevron { transform: rotate(-135deg) translate(-2px, -2px); }

.cat__body { padding: 0 1.2rem 1.3rem; }
.cat__note {
  color: var(--muted); font-size: .88rem;
  margin: 0 0 1.2rem; max-width: 58ch;
  padding-top: .2rem; border-top: 1px solid var(--line);
}

.dishes { display: grid; gap: .8rem; }

.dish {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: .3rem .75rem;
  align-items: baseline;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(13,13,13,.45);
  transition: border-color .22s ease, background-color .22s ease, transform .22s ease;
}
.dish:hover {
  border-color: rgba(255,142,9,.45);
  background: rgba(255,142,9,.05);
  transform: translateY(-2px);
}
.dish__name {
  font-weight: 800; font-size: 1rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem;
}
.dish__price {
  font-weight: 900; font-size: 1.05rem; color: var(--orange);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.dish__desc {
  grid-column: 1 / -1;
  margin: 0; font-size: .88rem; line-height: 1.45;
  color: var(--muted);
}

.dish__desc--vuota { color: var(--muted-2); font-style: italic; }
.dish__desc--vuota span {
  border-bottom: 1px dashed rgba(250, 250, 250, .22);
  padding-bottom: 1px;
}


.dish__size {
  font-size: .74rem; font-weight: 800;
  letter-spacing: .04em;
  color: var(--muted-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .1rem .45rem;
  white-space: nowrap;
}

.dish--con-foto { grid-template-columns: auto 1fr auto auto; }
.dish__img {
  grid-row: span 2;
  width: 58px; height: 58px;
  object-fit: cover;
  border-radius: 10px;
  align-self: center;
  background: var(--ink-3);
}


.dish__add {
  align-self: center;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  font-family: inherit; font-size: 1.3rem; font-weight: 400; line-height: 1;
  color: var(--orange);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease,
              border-color .18s ease, transform .18s ease;
}
.dish__add:hover {
  background: var(--orange); color: var(--ink); border-color: var(--orange);
}
.dish__add:active { transform: scale(.9); }

.dish__add.is-added {
  background: #4ADE80; border-color: #4ADE80; color: var(--ink);
  transform: scale(1.12);
}

@media (min-width: 700px) { .dishes { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1050px) { .dishes { grid-template-columns: repeat(3, 1fr); } }

.menu__legend {
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center;
  margin: 2rem 0 0; padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}


.reviews {
  padding-block: var(--section-y);
  background: var(--ink);
  border-top: 1px solid var(--line);
}
.reviews__head { text-align: center; margin-bottom: 2.5rem; }
.reviews__head .eyebrow { justify-content: center; }

.reviews__warning {
  margin: 0 0 1.8rem;
  padding: .9rem 1.1rem;
  border: 1px dashed var(--orange);
  border-radius: var(--radius-sm);
  background: rgba(255, 142, 9, .1);
  font-size: .88rem; line-height: 1.5;
  color: rgba(250,250,250,.85);
  text-align: center;
}
.reviews__warning strong { color: var(--orange); }
.reviews__warning code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: .92em;
  padding: .1rem .35rem; border-radius: 5px;
  background: rgba(0,0,0,.45); color: var(--orange-soft);
}

.reviews__grid { display: grid; gap: 1rem; }

.review {
  display: grid; gap: .8rem; align-content: start;
  padding: 1.5rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--ink-2);
  transition: border-color .22s ease, transform .22s ease;
}
.review:hover { border-color: rgba(255,142,9,.4); transform: translateY(-3px); }

.stars { display: inline-flex; gap: .12rem; font-size: 1.05rem; line-height: 1; }
.star { color: var(--line-strong); }
.star--on { color: var(--orange); }

.review__text {
  margin: 0; font-size: .97rem; line-height: 1.6;
  color: rgba(250,250,250,.84);
}
.review__text::before { content: "«"; color: var(--orange); font-weight: 800; }
.review__text::after  { content: "»"; color: var(--orange); font-weight: 800; }

.review__foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  padding-top: .8rem; border-top: 1px solid var(--line);
  font-size: .84rem;
}
.review__author { font-weight: 800; color: var(--cream); }
.review__date { color: var(--muted-2); margin-left: auto; }
.review__source {
  font-size: .7rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .18rem .5rem; border-radius: 999px;
  border: 1px solid currentColor;
}
.review__source--google  { color: #6FC2E8; }
.review__source--justeat { color: var(--orange-soft); }

.reviews__fonte {
  max-width: 70ch; margin: 1.6rem auto 0;
  font-size: .8rem; line-height: 1.55;
  color: var(--muted-2); text-align: center;
}

.footer__legal {
  display: inline-block; margin-top: .5rem;
  font-size: .8rem; line-height: 1.6; color: var(--muted-2);
}
.footer__legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.footer__legal a:hover { color: var(--orange); }

.reviews__links {
  display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center;
  margin-top: 2rem;
}

@media (min-width: 760px)  { .reviews__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1050px) { .reviews__grid { grid-template-columns: repeat(3, 1fr); } }


.place { padding-block: var(--section-y); background: var(--ink); }
.place__head { text-align: center; margin-bottom: 2.5rem; }
.place__head .eyebrow { justify-content: center; }

.place__grid { display: grid; gap: 1.6rem; }

.place__map {
  position: relative;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-3);
  min-height: 320px;
}
.place__map iframe {
  width: 100%; height: 100%; min-height: 320px; border: 0;
  /* la mappa di Google e' chiara: la scuriamo per stare nel tema */
  filter: invert(90%) hue-rotate(180deg) contrast(.86) saturate(.7);
}
.place__map-link {
  position: absolute; left: 12px; bottom: 12px;
  background: var(--ink); color: var(--cream);
  border: 1px solid var(--line-strong);
  padding: .5rem .9rem; border-radius: 999px;
  font-size: .82rem; font-weight: 800;
}
.place__map-link:hover { background: var(--orange); color: var(--ink); border-color: var(--orange); }


.map-consent {
  height: 100%; min-height: 320px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .6rem; padding: 2rem 1.4rem; text-align: center;
  background:
    radial-gradient(80% 70% at 50% 30%, rgba(255, 142, 9, .10), transparent 70%),
    var(--ink-3);
}
.map-consent__pin { font-size: 2rem; line-height: 1; }
.map-consent__title { margin: 0; font-size: 1.1rem; font-weight: 900; }
.map-consent__body {
  margin: 0 0 .6rem; max-width: 34ch;
  font-size: .87rem; line-height: 1.5; color: var(--muted);
}
.map-consent__alt {
  font-size: .82rem; color: var(--muted-2);
  text-decoration: underline; text-underline-offset: 3px;
}
.map-consent__alt:hover { color: var(--cream); }

.place__hours { display: grid; gap: 1.2rem; align-content: start; }

.hours-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--ink-2); padding: 1.4rem;
}
.hours-card__title {
  display: flex; align-items: center; gap: .6rem;
  font-size: 1.1rem; font-weight: 900; margin-bottom: 1rem;
}
.hours-card__icon { font-size: 1.25rem; }

.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours th, .hours td { padding: .55rem 0; text-align: left; font-weight: 400; }
.hours td { text-align: right; color: rgba(250,250,250,.78); font-variant-numeric: tabular-nums; }
.hours tr + tr { border-top: 1px solid rgba(250,250,250,.07); }
/* riga del giorno corrente, evidenziata da script.js */
.hours tr.is-today th, .hours tr.is-today td { color: var(--orange); font-weight: 800; }
/* giorno di riposo */
.hours tr.is-closed th, .hours tr.is-closed td { color: var(--muted-2); }
.hours tr.is-closed td { font-style: italic; }
.hours tr.is-closed.is-today th, .hours tr.is-closed.is-today td { color: #F87171; font-weight: 800; }

.hours-card__pay {
  display: flex; align-items: center; gap: .5rem;
  margin: -.5rem 0 1.2rem;
  font-size: .86rem; color: rgba(250,250,250,.72);
}

.hours-card--delivery {
  border-color: rgba(255,142,9,.35);
  background: linear-gradient(150deg, rgba(255,142,9,.12), transparent 60%), var(--ink-2);
}
.hours-card__big { font-size: 1.05rem; line-height: 1.4; margin-bottom: 1.2rem; color: rgba(250,250,250,.8); }
.hours-card__big strong { font-size: 1.6rem; font-weight: 900; color: var(--cream); }

.direct {
  position: relative;
  margin: 1.4rem 0 1rem;
  padding: 1.5rem 1.3rem 1.3rem;
  border: 2px solid var(--orange);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255,142,9,.20), transparent 65%),
    var(--ink);
  box-shadow: 0 18px 44px rgba(255, 142, 9, .16);
}

.direct__badge {
  position: absolute; top: 0; left: 1.2rem;
  transform: translateY(-50%);
  background: var(--orange); color: var(--ink);
  font-size: .7rem; font-weight: 900;
  letter-spacing: .14em; text-transform: uppercase;
  padding: .3rem .75rem; border-radius: 999px;
  white-space: nowrap;
}

.direct__title {
  margin: 0 0 .6rem;
  font-size: clamp(1.2rem, 4.5vw, 1.45rem);
  font-weight: 900; letter-spacing: -.02em;
  color: var(--cream);
}

.direct__body {
  margin: 0 0 1.1rem;
  font-size: .93rem; line-height: 1.6;
  color: rgba(250,250,250,.78);
}
.direct__body strong { color: var(--orange-soft); }

.direct__perks { display: grid; gap: .55rem; margin: 0 0 1.3rem; }
.direct__perks li {
  display: grid; grid-template-columns: auto 1fr; gap: .55rem;
  align-items: start;
  font-size: .9rem; line-height: 1.45;
  color: rgba(250,250,250,.82);
}
.direct__perks strong { color: var(--cream); font-weight: 800; }
.direct__tick {
  display: grid; place-items: center;
  width: 18px; height: 18px; margin-top: .12rem;
  border-radius: 50%;
  background: var(--orange); color: var(--ink);
  font-size: .7rem; font-weight: 900; line-height: 1;
}

.direct__how {
  margin: .9rem 0 0;
  font-size: .82rem; line-height: 1.5;
  color: var(--muted); text-align: center;
}
.direct__plus {
  display: inline-grid; place-items: center;
  width: 19px; height: 19px;
  border: 1px solid var(--orange); border-radius: 50%;
  color: var(--orange); font-weight: 400; line-height: 1;
  vertical-align: -4px;
}


.alt-order {
  margin: 0; padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: .86rem; color: var(--muted-2); text-align: center;
}
.alt-order a {
  color: var(--muted); font-weight: 800;
  text-decoration: underline; text-underline-offset: 3px;
}
.alt-order a:hover { color: var(--cream); }

.place__address {
  font-style: normal; line-height: 1.7;
  color: rgba(250,250,250,.75); font-size: .98rem;
  padding-left: 1rem; border-left: 3px solid var(--orange);
}
.place__address strong { color: var(--cream); }
.place__address a { color: var(--orange); font-weight: 800; }

@media (min-width: 900px) {
  .place__grid { grid-template-columns: 1.15fr .85fr; gap: 2rem; }
  .place__map { min-height: 100%; }
}


.contact {
  padding-block: var(--section-y);
  background:
    radial-gradient(80% 50% at 50% 100%, rgba(255,142,9,.12), transparent 65%),
    var(--ink-2);
  border-top: 1px solid var(--line);
}
.contact__head { text-align: center; margin-bottom: 2.5rem; }
.contact__head .eyebrow { justify-content: center; }

.contact__cards { display: grid; gap: 1rem; }

.ccard {
  display: grid; gap: .15rem;
  padding: 1.5rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--ink);
  transition: transform .22s ease, border-color .22s ease, background-color .22s ease;
}
.ccard:hover {
  transform: translateY(-4px);
  border-color: var(--orange);
  background: rgba(255,142,9,.06);
  color: var(--cream);
}
.ccard__icon  { font-size: 1.6rem; margin-bottom: .5rem; }
.ccard__label {
  font-size: .74rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; color: var(--orange);
}
.ccard__value { font-size: 1.25rem; font-weight: 900; }
.ccard__hint  { font-size: .85rem; color: var(--muted); }


.ccard--hero {
  position: relative;
  border: 2px solid var(--orange);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255,142,9,.20), transparent 65%),
    var(--ink);
  box-shadow: 0 16px 40px rgba(255, 142, 9, .16);
}
.ccard--hero:hover { border-color: var(--orange-soft); }
.ccard__flag {
  position: absolute; top: 0; right: 1.2rem;
  transform: translateY(-50%);
  background: var(--orange); color: var(--ink);
  font-size: .66rem; font-weight: 900;
  letter-spacing: .14em; text-transform: uppercase;
  padding: .26rem .7rem; border-radius: 999px;
}


.ccard--phone    .ccard__label { color: var(--orange); }
.ccard--wa       .ccard__label { color: #4ADE80; }
.ccard--delivery .ccard__label { color: var(--orange-soft); }
.ccard--map      .ccard__label { color: #6FC2E8; }
.ccard--wa:hover       { border-color: #4ADE80; background: rgba(74, 222, 128, .07); }
.ccard--map:hover      { border-color: #6FC2E8; background: rgba(111, 194, 232, .07); }

@media (min-width: 620px) { .contact__cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .contact__cards { grid-template-columns: repeat(4, 1fr); } }


.footer {
  background: var(--ink);
  border-top: 1px solid var(--line);
  padding: 3rem 0 calc(3rem + env(safe-area-inset-bottom));
}
.footer__inner { display: grid; gap: 1.8rem; text-align: center; justify-items: center; }
.footer__brand { display: flex; align-items: center; gap: .9rem; }
.footer__brand img { border-radius: 50%; }
.footer__brand strong { display: block; font-size: 1.15rem; font-weight: 900; }
.footer__brand span { font-size: .82rem; color: var(--muted); }

.footer__social { display: flex; gap: .7rem; }
.footer__social a {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--cream);
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.footer__social a:hover {
  background: var(--orange); color: var(--ink);
  border-color: var(--orange); transform: translateY(-3px);
}

.footer__meta { font-size: .88rem; color: var(--muted); margin: 0; }
.footer__meta a { color: var(--orange); font-weight: 800; }
.footer__meta small { color: var(--muted-2); }

@media (min-width: 800px) {
  .footer__inner { grid-template-columns: auto 1fr auto; align-items: center; text-align: left; }
  .footer__social { justify-self: center; }
  .footer__meta { text-align: right; }
}

.dock {
  position: fixed; z-index: 90;
  left: 0; right: 0; bottom: 0;
  /* le colonne si contano da sole: con le offerte attive sono cinque,
     senza offerte quattro */
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .2rem;
  padding: .4rem .45rem calc(.4rem + env(safe-area-inset-bottom));
  background: rgba(13,13,13,.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.dock.is-visible { transform: translateY(0); }

.dock__btn {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .18rem;
  min-height: 52px;                  /* area di tocco comoda col pollice */
  padding: .35rem .2rem; border-radius: 14px;
  color: rgba(250, 250, 250, .72);
  transition: color .18s ease, background-color .18s ease, transform .18s ease;
}
.dock__icon  { font-size: 1.2rem; line-height: 1; }
.dock__label { font-size: .68rem; font-weight: 800; }

.dock__btn--attivo { color: var(--cream); background: rgba(250, 250, 250, .07); }
.dock__btn--accent { color: var(--orange); }
.dock__btn:active  { transform: scale(.94); }

.dock__badge {
  position: absolute; top: .2rem; left: 50%;
  transform: translateX(3px);
  min-width: 18px; height: 18px;
  display: grid; place-items: center;
  padding: 0 .28rem;
  font-size: .67rem; font-weight: 900; line-height: 1;
  color: var(--ink); background: var(--orange);
  border-radius: 999px;
}

@media (min-width: 860px) { .dock { display: none; } }
/* spazio in fondo per non far coprire il footer dalla dock */
@media (max-width: 859px) { .footer { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); } }



.cart-fab {
  position: fixed; z-index: 95;
  right: clamp(.9rem, 4vw, 2rem);
  bottom: calc(5.4rem + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: .6rem;
  padding: .8rem 1.2rem;
  font-family: inherit; font-size: .95rem; font-weight: 800;
  color: var(--ink); background: var(--orange);
  border: 0; border-radius: 999px;
  box-shadow: var(--shadow-orange), 0 8px 24px rgba(0,0,0,.4);
  cursor: pointer;
  transition: transform .2s cubic-bezier(.34,1.4,.5,1), background-color .2s,
              opacity .2s ease;
}
.cart-fab:hover { background: var(--orange-soft); transform: translateY(-2px); }
.cart-fab.is-bumping { animation: bump .4s ease; }
.cart-fab__icon { font-size: 1.15rem; }
.cart-fab__count {
  min-width: 24px; height: 24px; padding: 0 .35rem;
  display: grid; place-items: center;
  background: var(--ink); color: var(--cream);
  border-radius: 999px; font-size: .8rem; font-variant-numeric: tabular-nums;
}

@media (min-width: 860px) { .cart-fab { bottom: 1.6rem; } }
@media (max-width: 380px) { .cart-fab__label { display: none; } }

/* Fuori dalla home il carrello non si apre in pagina: la variante --solo-pc e'
   un link che ci riporta. Sotto gli 860px il conto si vede gia' nel pallino
   della barra in basso, quindi la si mostra solo dove quella barra sparisce.
   Il :not([hidden]) serve perche' altrimenti la regola del media query
   riaccenderebbe il pulsante anche a carrello vuoto. */
.cart-fab--solo-pc { display: none; }
@media (min-width: 860px) {
  .cart-fab--solo-pc:not([hidden]) { display: flex; }
}

/* Con una colonna aperta il pulsante finirebbe sopra al pannello: si toglie di
   mezzo finche' resta aperta. */
body.ha-colonna .cart-fab,
body.ha-colonna .ripeti-fab { opacity: 0; pointer-events: none; }


.sheet {
  width: min(560px, 100%);
  max-height: 88svh;
  padding: 0; margin: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--ink-2);
  color: var(--cream);
  overflow: auto;
  overscroll-behavior: contain;
}
.sheet::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(4px); }
.sheet__inner { padding: clamp(1.2rem, 5vw, 1.8rem); }

.sheet__head {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.2rem;
}
.sheet__title { font-size: clamp(1.3rem, 5vw, 1.7rem); font-weight: 900; margin-right: auto; }
.sheet__close {
  width: 38px; height: 38px; flex: 0 0 auto;
  display: grid; place-items: center;
  font-size: 1.6rem; line-height: 1;
  color: var(--cream); background: transparent;
  border: 1px solid var(--line-strong); border-radius: 50%;
  cursor: pointer;
}
.sheet__close:hover { background: var(--cream); color: var(--ink); }

.sheet__empty {
  color: var(--muted); font-size: .95rem;
  padding: 1.4rem; margin: 0 0 1.2rem;
  border: 1px dashed var(--line-strong); border-radius: var(--radius-sm);
  text-align: center;
}
.sheet__empty strong { color: var(--orange); }

/* --- Righe dell'ordine --- */
.olines { display: grid; gap: .1rem; margin-bottom: 1.2rem; }

/* Le voci sono raggruppate per categoria: in un ordine con pizze, calzoni e
   focacce, i nomi da soli non bastano a capire cosa si sta ordinando —
   "4 Formaggi" e' sia pizza sia calzone. L'intestazione porta la stessa icona
   che la categoria ha nel menu, cosi' si ritrova a colpo d'occhio. */
.ogruppo + .ogruppo { margin-top: 1rem; }

.ogruppo__titolo {
  display: flex; align-items: center; gap: .5rem;
  margin: 0 0 .2rem;
  padding: .45rem .7rem;
  background: rgba(255, 142, 9, .09);
  border-radius: 10px;
  font-size: .76rem; font-weight: 900;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--orange-soft);
}
.ogruppo__icona { font-size: .95rem; line-height: 1; }
.ogruppo__nome { min-width: 0; }
.ogruppo__conto {
  margin-left: auto; flex: 0 0 auto;
  color: var(--muted); font-weight: 800; letter-spacing: 0;
  text-transform: none; font-size: .74rem;
}

.ogruppo__voci {
  display: grid; gap: .1rem;
  margin: 0; padding: 0 .2rem;
  list-style: none;
}
.oline {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center; gap: .5rem 1rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--line);
}
.oline:last-child { border-bottom: 0; }
.oline__info { min-width: 0; }
.oline__name { display: block; font-weight: 800; font-size: .95rem; line-height: 1.3; }
.oline__unit { display: block; font-size: .78rem; color: var(--muted-2); }
.oline__qty {
  display: flex; align-items: center; gap: .1rem;
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: .15rem;
}
.oline__btn {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  font-family: inherit; font-size: 1.1rem; line-height: 1;
  color: var(--cream); background: transparent;
  border: 0; border-radius: 50%; cursor: pointer;
}
.oline__btn:hover { background: var(--orange); color: var(--ink); }
.oline__count {
  min-width: 26px; text-align: center;
  font-weight: 800; font-variant-numeric: tabular-nums;
}
.oline__sum {
  font-weight: 900; color: var(--orange);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* La seconda riga della voce: prende tutta la larghezza sotto nome, quantita'
   e prezzo. Ci stanno la spunta del supplemento e la nota per quel piatto. */
.oline__extra {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem;
}
.oline__extra:empty { display: none; }

.oline__opzione {
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 44px;
  font-size: .82rem; color: rgba(250, 250, 250, .82);
  cursor: pointer;
}
.oline__opzione input {
  width: 18px; height: 18px; flex: 0 0 auto;
  accent-color: var(--orange); cursor: pointer;
}
.oline__opzione small { color: var(--orange-soft); font-weight: 800; }

.oline__nota-apri {
  min-height: 44px; padding: 0 .2rem;
  display: inline-flex; align-items: center;
  font-family: inherit; font-size: .82rem;
  color: var(--muted); background: none; border: 0;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.oline__nota-apri:hover { color: var(--orange); }

.oline__nota {
  flex: 1 1 200px; min-width: 0;
  padding: .55rem .7rem; min-height: 44px;
  font-family: inherit; font-size: .85rem;
  color: var(--cream); background: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
}
.oline__nota::placeholder { color: var(--muted-2); }
.oline__nota:focus { border-color: var(--orange); outline: none; }


.sheet__extra {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin: 0;
  padding: .6rem 0;
  border-top: 1px solid var(--line);
  font-size: .9rem; color: rgba(250, 250, 250, .78);
}
.sheet__extra span:last-child {
  font-weight: 800; color: var(--orange-soft);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

.sheet__total {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin: 0 0 1rem;
  padding-top: 1rem; border-top: 1px solid var(--line-strong);
  font-weight: 800;
}


.freeship {
  display: flex; align-items: flex-start; gap: .55rem;
  margin: 0 0 1.5rem;
  padding: .8rem 1rem;
  border: 1px solid rgba(255, 142, 9, .4);
  border-radius: var(--radius-sm);
  background: rgba(255, 142, 9, .08);
  font-size: .86rem; line-height: 1.45;
  color: rgba(250, 250, 250, .82);
}
.freeship strong { color: var(--orange-soft); }
.freeship--ok {
  border-color: rgba(74, 222, 128, .45);
  background: rgba(74, 222, 128, .09);
}
.freeship--ok strong { color: #4ADE80; }
.sheet__total strong {
  font-size: clamp(1.7rem, 6vw, 2.1rem); font-weight: 900;
  color: var(--orange); font-variant-numeric: tabular-nums; line-height: 1;
}


.sheet__field { margin-bottom: 1.2rem; }

/* Campi affiancati: nome+cognome, e via+civico+CAP.
   Su schermi stretti si impilano da soli. */
.sheet__row { display: grid; gap: 0 .8rem; grid-template-columns: 1fr 1fr; }
.sheet__row--address,
.sheet__row--three { grid-template-columns: 1fr; }
@media (min-width: 460px) {
  .sheet__row--address { grid-template-columns: 2.2fr 1fr 1fr; }
  .sheet__row--three   { grid-template-columns: 1fr 1fr 1fr; }
}
.sheet__field label {
  display: block; margin-bottom: .45rem;
  font-weight: 800; font-size: .92rem;
}
.sheet__optional { font-weight: 400; color: var(--muted-2); }

.sheet__required {
  display: inline-block; margin-left: .4rem;
  font-size: .66rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--orange);
  border: 1px solid currentColor; border-radius: 999px;
  padding: .1rem .45rem;
  vertical-align: 1px;
}

.sheet__input.has-error { border-color: #F87171; background: rgba(248,113,113,.06); }
.sheet__error {
  margin: .45rem 0 0;
  font-size: .84rem; font-weight: 800; color: #F87171;
}

.sheet__select-wrap { position: relative; }
.sheet__select-wrap::after {
  content: "";
  position: absolute; right: 1.1rem; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.sheet__select, .sheet__input {
  appearance: none; -webkit-appearance: none;
  width: 100%;
  padding: .9rem 1.1rem;
  font-family: inherit; font-size: 1rem; font-weight: 600;
  color: var(--cream);
  background: var(--ink); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color .2s ease;
}
.sheet__select { padding-right: 2.6rem; cursor: pointer; }
.sheet__select:focus, .sheet__input:focus { border-color: var(--orange); }
.sheet__input::placeholder { color: var(--muted-2); font-weight: 400; }
.sheet__select option { background: var(--ink-2); color: var(--cream); }

.sheet__hint {
  margin: .5rem 0 0; font-size: .82rem; line-height: 1.45; color: var(--muted);
}


/* ----------------------------------------------------------------------------
   ZONA DI CONSEGNA
   Compare sotto all'indirizzo appena il CAP e' scritto per intero. Due facce:
   una conferma discreta quando ci arriviamo, un riquadro con la via d'uscita
   quando no — perche' "non consegniamo qui" da solo e' un vicolo cieco, e chi
   sta ordinando merita di sapere che puo' passare a ritirare.
   -------------------------------------------------------------------------- */
.zona {
  margin-top: .9rem;
  padding: .8rem .9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(250, 250, 250, .04);
}

.zona__titolo {
  margin: 0 0 .35rem;
  font-size: .92rem; font-weight: 900;
  color: var(--orange-soft);
}
.zona__testo { margin: 0; font-size: .87rem; line-height: 1.5; color: var(--muted); }
.zona__testo strong { color: var(--cream); }

.zona__passa {
  width: 100%;
  margin-top: .8rem;
  min-height: 44px;              /* resta un bersaglio buono per il pollice */
}

.zona__dove {
  margin: .7rem 0 0;
  font-size: .78rem; line-height: 1.5; color: var(--muted-2);
}

/* Ci arriviamo: una riga sola, verde di conferma, senza cornice pesante. */
.zona--dentro {
  border-color: rgba(111, 194, 132, .35);
  background: rgba(111, 194, 132, .08);
}
.zona--dentro .zona__testo { color: #8FD3A2; }
.zona--dentro .zona__testo strong { color: #BDEBC9; }

/* Non ci arriviamo: si fa notare, ma con dentro la soluzione. */
.zona--fuori {
  border-color: rgba(255, 142, 9, .45);
  background: rgba(255, 142, 9, .08);
}


.sheet__actions { display: grid; gap: .7rem; margin-top: 1.6rem; }
.sheet__actions--row { grid-template-columns: 1fr 1fr; }
.sheet__actions--row .btn { width: 100%; }
.sheet__clear {
  background: none; border: 0; padding: .3rem;
  font-family: inherit; font-size: .85rem; font-weight: 800;
  color: var(--muted); cursor: pointer; text-decoration: underline;
}
.sheet__clear:hover { color: #F87171; }

.btn:disabled, .combo__actions .btn:disabled {
  opacity: .45; cursor: not-allowed; box-shadow: none; transform: none;
}
.btn.is-flashing { background: #4ADE80; }

.sheet--confirm { border-color: rgba(255, 142, 9, .45); }

.disclaimer {
  border: 1px solid rgba(255, 142, 9, .4);
  border-left-width: 4px;
  border-radius: var(--radius-sm);
  background: rgba(255, 142, 9, .07);
  padding: 1.1rem 1.2rem;
  margin-bottom: 1.3rem;
}
.disclaimer p { margin: 0 0 .7rem; font-size: .92rem; line-height: 1.55; color: rgba(250,250,250,.82); }
.disclaimer p:last-child { margin-bottom: 0; }
.disclaimer__lead strong { color: var(--orange); font-size: 1rem; }
.disclaimer a { color: var(--orange); font-weight: 800; }

.confirm__recap {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: rgba(13,13,13,.5); padding: .4rem 1rem;
}
.confirm__recap-row {
  display: flex; justify-content: space-between; gap: 1rem;
  margin: 0; padding: .6rem 0;
  font-size: .92rem; color: var(--muted);
  border-bottom: 1px dashed rgba(250,250,250,.09);
}
.confirm__recap-row:last-child { border-bottom: 0; }
.confirm__recap-row strong { color: var(--cream); }

/* Prima si accendeva solo quando mancava il numero, quindi era rosso da
   errore. Ora compare dopo ogni invio, come via d'uscita se WhatsApp non si
   apre: colore neutro, non deve spaventare chi ha ordinato bene. */
.fallback {
  margin-top: 1.2rem; padding: 1rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: rgba(250, 250, 250, .04);
}
.fallback p { font-size: .88rem; margin: 0 0 .8rem; color: rgba(250,250,250,.82); }
.fallback a { color: var(--orange); font-weight: 800; }
.fallback textarea {
  width: 100%; padding: .8rem;
  font-family: inherit; font-size: .82rem; line-height: 1.5;
  color: var(--cream); background: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  resize: vertical;
}
.fallback__azioni {
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.1rem;
  margin-top: .9rem;
}
.fallback__tel { font-size: .86rem; }

.btn--piccolo { padding: .6rem 1.1rem; font-size: .88rem; min-height: 44px; }



/* Sta a sinistra: a destra ci sono gia' il carrello e il "ripeti ordine".
   Sopra la barra in basso sul telefono, in fondo alla pagina su schermo largo. */
.su-fab {
  position: fixed; z-index: 94;
  left: clamp(.9rem, 4vw, 2rem);
  bottom: calc(5.4rem + env(safe-area-inset-bottom));
  width: 46px; height: 46px;
  display: grid; place-items: center;
  font-family: inherit; font-size: 1.25rem; line-height: 1;
  color: var(--cream); background: rgba(13, 13, 13, .94);
  border: 1px solid var(--line-strong); border-radius: 50%;
  /* deve leggersi come un comando che galleggia, non come una macchia sul
     nome del piatto che sta passando sotto */
  box-shadow: 0 6px 20px rgba(0, 0, 0, .55);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.su-fab:hover { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.su-fab[hidden] { display: none; }

@media (min-width: 860px) { .su-fab { bottom: 1.6rem; } }
/* con una colonna aperta i pulsanti fluttuanti si tolgono di mezzo */
body.ha-colonna .su-fab { display: none; }
@media print { .su-fab { display: none !important; } }

.install {
  position: fixed; z-index: 96;
  left: clamp(.7rem, 3vw, 1.5rem);
  right: clamp(.7rem, 3vw, 1.5rem);
  bottom: calc(5.4rem + env(safe-area-inset-bottom));
  max-width: 460px; margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .5rem 1rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(255, 142, 9, .45);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(255, 142, 9, .18), transparent 65%),
    var(--ink-2);
  box-shadow: 0 22px 55px rgba(0, 0, 0, .6);
  /* parte fuori schermo e sale quando riceve .is-visible */
  transform: translateY(140%);
  opacity: 0;
  transition: transform .45s cubic-bezier(.2, .9, .3, 1), opacity .3s ease;
}
.install.is-visible { transform: translateY(0); opacity: 1; }

.install__logo { border-radius: 12px; align-self: start; }
.install__text { min-width: 0; }
.install__title { margin: 0 0 .25rem; font-size: 1rem; font-weight: 900; }
.install__body {
  margin: 0; font-size: .87rem; line-height: 1.45;
  color: rgba(250, 250, 250, .78);
}
.install__body strong { color: var(--orange-soft); }

.install__actions {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: .8rem;
  margin-top: .3rem;
}
.install__actions .btn { padding: .7rem 1.4rem; font-size: .92rem; }
.install__no {
  background: none; border: 0; padding: .4rem;
  font-family: inherit; font-size: .85rem; font-weight: 800;
  color: var(--muted); cursor: pointer; text-decoration: underline;
}
.install__no:hover { color: var(--cream); }

@media (min-width: 860px) { .install { bottom: 1.6rem; } }
/* quando c'è anche il carrello, l'avviso sale per non coprirlo */
@media (max-width: 859px) { .install { bottom: calc(9.2rem + env(safe-area-inset-bottom)); } }


.pagina { background: var(--ink); }
.pagina .wrap { max-width: 760px; }

.pagina__head {
  padding: clamp(2rem, 8vw, 4rem) 0 1.5rem;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(80% 100% at 50% 0%, rgba(255,142,9,.10), transparent 70%);
}
.pagina__back {
  display: inline-block; margin-bottom: 1.5rem;
  font-size: .9rem; font-weight: 800; color: var(--muted);
}
.pagina__back:hover { color: var(--orange); }

.pagina__body { padding: clamp(2rem, 6vw, 3.5rem) 0 4rem; }
.pagina__body h2 {
  margin: 2.4rem 0 .8rem;
  font-size: clamp(1.15rem, 4vw, 1.45rem); font-weight: 900;
  color: var(--cream);
}
.pagina__body h2:first-of-type { margin-top: 1.5rem; }
.pagina__body p {
  margin: 0 0 1rem; font-size: .96rem; line-height: 1.7;
  color: rgba(250, 250, 250, .78);
}
.pagina__body strong { color: var(--cream); }
.pagina__body a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }

.nota-forte {
  border: 1px solid rgba(255, 142, 9, .4);
  border-left-width: 4px;
  border-radius: var(--radius-sm);
  background: rgba(255, 142, 9, .07);
  padding: 1.1rem 1.3rem;
  margin-bottom: 1rem;
}
.nota-forte p { margin: 0; }


.da-completare {
  border: 1px dashed #FBBF24;
  border-radius: var(--radius-sm);
  background: rgba(251, 191, 36, .08);
  padding: .7rem 1rem;
  font-size: .85rem !important; color: #FBBF24 !important;
}

.allergeni { counter-reset: a; display: grid; gap: .5rem; margin: 0 0 1.5rem; }
.allergeni li {
  counter-increment: a;
  display: grid; grid-template-columns: 30px 1fr; gap: .8rem;
  align-items: baseline;
  font-size: .95rem; line-height: 1.55; color: rgba(250, 250, 250, .78);
  padding: .55rem 0; border-bottom: 1px solid var(--line);
}
.allergeni li::before {
  content: counter(a);
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink-3); color: var(--orange);
  font-size: .78rem; font-weight: 900;
}
.allergeni strong { color: var(--cream); }

.pagina__update {
  margin-top: 2.5rem !important; padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: .82rem !important; color: var(--muted-2) !important;
}

.pagina__foot {
  padding: 2rem 0 3rem; border-top: 1px solid var(--line);
  font-size: .88rem; color: var(--muted); text-align: center;
}
.pagina__foot a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.pagina__foot a:hover { color: var(--orange); }



.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2,.8,.3,1),
              transform .7s cubic-bezier(.2,.8,.3,1);
}
.reveal.is-visible { opacity: 1; transform: none; }



@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .burger__layer { opacity: 1; transform: none; }
  .build { height: auto; }
  .build__sticky { position: static; height: auto; }
}


@media print {
  .nav, .dock, .hero__scroll, .build, .place__map,
  .footer__social, .about__gallery,
  .cart-fab, .sheet, .dish__add { display: none !important; }
  .dish { grid-template-columns: 1fr auto; }
  body { background: #fff; color: #000; }
  .menu, .place, .contact, .about { background: #fff; padding-block: 1rem; }
  .dish, .hours-card, .combo { border-color: #ccc; background: #fff; }
  .dish__price, .combo__price, .eyebrow { color: #000; }
  .dish__desc, .menu__note { color: #444; }
  a { color: #000; }
  .cat[hidden] { display: block !important; }
}


/* ============================================================================
   SITO SU PIU' PAGINE — briciole, riquadri "continua" e transizioni
   ========================================================================= */

/* Passaggio morbido fra le pagine. Dove non e' supportata (Firefox, Safari
   vecchi) non succede nulla: la pagina cambia come prima. */
@view-transition { navigation: auto; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

.briciole {
  padding-top: calc(var(--nav-h) + 1.2rem);
  padding-bottom: .2rem;
  font-size: .85rem;
  color: var(--muted-2);
}
.briciole a { color: var(--muted); }
.briciole a:hover { color: var(--orange); }
.briciole span[aria-hidden] { margin: 0 .4rem; opacity: .5; }
.briciole [aria-current] { color: var(--cream); font-weight: 800; }

/* le pagine interne non hanno la copertina: la prima sezione deve stare
   sotto la barra fissa invece che sparirci dietro */
.briciole + .about,
.briciole + .place { padding-top: 1.5rem; }

.prosegui {
  padding-block: var(--section-y);
  background: var(--ink);
  border-top: 1px solid var(--line);
}
.prosegui__grid {
  display: grid; gap: 1rem;
}
.prosegui__card {
  display: grid; gap: .3rem;
  padding: 1.6rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  transition: border-color .22s ease, background-color .22s ease, transform .22s ease;
}
.prosegui__card:hover {
  border-color: rgba(255, 142, 9, .45);
  background: rgba(255, 142, 9, .05);
  transform: translateY(-2px);
}
.prosegui__icon  { font-size: 1.6rem; line-height: 1; }
.prosegui__label { font-size: 1.15rem; font-weight: 900; color: var(--cream); }
.prosegui__hint  { font-size: .88rem; color: var(--muted); }

@media (min-width: 700px) {
  /* auto-fit e non "1fr 1fr": con tre schede si fanno tre colonne invece di
     lasciare la terza da sola su una riga mezza vuota */
  .prosegui__grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }
}

.about__cta { margin-top: 2rem; }

.place__stato {
  margin-top: .8rem;
  font-size: .95rem; font-weight: 800;
}

/* ============================================================================
   RIGA DEL PIATTO — ritocchi di leggibilita'
   ========================================================================= */

.dish { padding: .95rem 1rem; row-gap: .35rem; }

/* con la foto la descrizione va accanto, non sotto: in colonna 1 c'e' la
   miniatura, che occupa tutte e due le righe */
.dish--con-foto .dish__desc { grid-column: 2 / -1; }

.dish__name { line-height: 1.25; }

.dish__add {
  width: 44px; height: 44px;          /* la misura minima consigliata per il dito */
  font-size: 1.5rem;
}

@media (max-width: 699px) {
  /* su mobile prezzo e pulsante restano a destra, il nome ha tutto lo spazio */
  .dish { grid-template-columns: 1fr auto auto; align-items: center; }
  .dish--con-foto { grid-template-columns: auto 1fr auto auto; }
  .dish__desc { grid-column: 1 / -1; margin-top: .1rem; }
}


/* ============================================================================
   RIPETI L'ULTIMO ORDINE
   ========================================================================= */

/* Il pulsante sta nello stesso angolo del carrello, ma i due non si vedono
   mai insieme: questo c'e' solo a carrello vuoto. */
.ripeti-fab {
  position: fixed; z-index: 95;
  right: clamp(.9rem, 4vw, 2rem);
  bottom: calc(5.4rem + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: .55rem;
  padding: .75rem 1.1rem;
  font-family: inherit; font-size: .92rem; font-weight: 800;
  color: var(--cream);
  background: var(--ink-3);
  border: 1px solid rgba(255, 142, 9, .55);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  cursor: pointer;
  transition: transform .2s cubic-bezier(.34, 1.4, .5, 1),
              background-color .2s ease, border-color .2s ease;
}
.ripeti-fab:hover { background: var(--ink-2); border-color: var(--orange); }
.ripeti-fab:active { transform: scale(.96); }

.ripeti-fab__icona { font-size: 1.05rem; line-height: 1; }

.ripeti-fab__pallino {
  min-width: 20px; height: 20px;
  display: grid; place-items: center;
  padding: 0 .3rem;
  font-size: .72rem; font-weight: 900; line-height: 1;
  color: var(--ink); background: var(--orange);
  border-radius: 999px;
}

/* due battiti all'arrivo, poi si sta zitto */
@keyframes ripeti-battito {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}
.ripeti-fab.is-nuovo { animation: ripeti-battito .7s ease-in-out 2; }

@media (max-width: 400px) {
  /* su schermi stretti il testo mangerebbe mezza riga */
  .ripeti-fab__testo { display: none; }
  .ripeti-fab { padding: .8rem .9rem; }
}

.sheet--ripeti .sheet__inner { max-width: 460px; }

.ripeti__quando {
  margin: 0 0 .2rem;
  font-size: .85rem; color: var(--muted);
}

.ripeti__voci {
  margin: 1rem 0 0; padding: 0; list-style: none;
  border-top: 1px solid rgba(250, 250, 250, .12);
}
.ripeti__voce {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: .6rem; align-items: baseline;
  padding: .5rem 0;
  border-bottom: 1px solid rgba(250, 250, 250, .07);
  font-size: .92rem;
}
.ripeti__qta { font-weight: 800; color: var(--orange); font-variant-numeric: tabular-nums; }
.ripeti__nome { color: rgba(250, 250, 250, .85); }
.ripeti__prezzo { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }

.ripeti__voce--totale {
  grid-template-columns: 1fr auto;
  border-bottom: 0;
  font-weight: 900; font-size: 1rem; color: var(--cream);
}

.ripeti__nota {
  margin: .9rem 0 0;
  padding: .6rem .8rem;
  font-size: .82rem; color: var(--muted);
  border-left: 2px solid rgba(255, 142, 9, .5);
  border-radius: 0;
  background: rgba(255, 142, 9, .06);
}


/* ============================================================================
   RICORDA I DATI DEL CLIENTE
   ========================================================================= */

.ricorda {
  display: flex; align-items: flex-start; gap: .7rem;
  margin: 1.4rem 0 .2rem;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(250, 250, 250, .03);
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.ricorda:hover { border-color: var(--line-strong); background: rgba(250, 250, 250, .05); }
.ricorda:has(.ricorda__casella:checked) {
  border-color: rgba(255, 142, 9, .45);
  background: rgba(255, 142, 9, .06);
}

.ricorda__casella {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  margin-top: .1rem;
  accent-color: var(--orange);
  cursor: pointer;
}

.ricorda__testo { display: grid; gap: .2rem; }
.ricorda__testo strong { font-size: .95rem; color: var(--cream); }
.ricorda__nota { font-size: .82rem; line-height: 1.45; color: var(--muted); }

.ricorda__riga { margin: .5rem 0 0; }


/* ============================================================================
   OFFERTE DELLA SETTIMANA
   ========================================================================= */

.offerte {
  padding-block: var(--section-y);
  background:
    linear-gradient(to bottom, var(--ink) 0%, var(--ink-2) 40%, var(--ink-2) 60%, var(--ink) 100%);
}
.offerte__head { text-align: center; margin-bottom: 2.5rem; }
.offerte__head .eyebrow { justify-content: center; }
.offerte__nota { margin: .8rem auto 0; max-width: 46ch; color: var(--muted); font-size: .95rem; }

.offerte__lista { display: grid; gap: 1.2rem; }

.offerta {
  display: grid;
  align-content: start;
  gap: .9rem;
  padding: 1.5rem 1.4rem;
  border: 1px solid rgba(255, 142, 9, .38);
  border-radius: var(--radius);
  background: var(--ink);
  transition: border-color .22s ease, transform .22s ease;
}
.offerta:hover { border-color: var(--orange); transform: translateY(-2px); }

.offerta__nome-titolo {
  margin: 0;
  font-size: 1.3rem; font-weight: 900; line-height: 1.2;
  color: var(--cream);
}
.offerta__desc { margin: .35rem 0 0; font-size: .92rem; color: var(--muted); }

.offerta__voci {
  margin: 0; padding: .9rem 0 0; list-style: none;
  border-top: 1px solid var(--line);
  display: grid; gap: .35rem;
}
.offerta__voce {
  display: grid; grid-template-columns: auto 1fr; gap: .6rem;
  font-size: .93rem;
}
.offerta__qta { font-weight: 800; color: var(--orange); font-variant-numeric: tabular-nums; }
.offerta__nome { color: rgba(250, 250, 250, .86); }

.offerta__prezzo { display: grid; gap: .1rem; }
.offerta__cifra {
  font-size: 2rem; font-weight: 900; line-height: 1;
  color: var(--orange); font-variant-numeric: tabular-nums;
}
.offerta__risparmio { margin: 0; font-size: .87rem; color: var(--muted); }
.offerta__risparmio s { opacity: .75; }
.offerta__risparmio strong { color: var(--orange-soft); }

.offerta__scadenza {
  margin: 0; text-align: center;
  font-size: .8rem; color: var(--muted-2);
}

.dock__btn--offerte { color: var(--orange-soft); }

@media (min-width: 700px) {
  .offerte__lista { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .offerte__lista--una { max-width: 460px; margin-inline: auto; }
}


/* Finestra delle offerte: le schede stanno strette, una sotto l'altra */
.sheet--offerte .sheet__inner { max-width: 520px; }
.sheet--offerte .offerte__lista { grid-template-columns: 1fr; }
.sheet--offerte .offerta { background: var(--ink-2); }
.sheet--offerte .offerte__lista--una { max-width: none; }

/* pallino sul pulsante Offerte: si vede che c'e' qualcosa di nuovo */
.dock__badge--offerte { background: var(--orange-soft); }

/* il pulsante Offerte pulsa piano finche' non lo si tocca */
@keyframes offerte-respiro {
  0%, 100% { opacity: 1; }
  50%      { opacity: .55; }
}
.dock__btn--offerte .dock__icon { animation: offerte-respiro 2.4s ease-in-out 3; }

@media (prefers-reduced-motion: reduce) {
  .dock__btn--offerte .dock__icon { animation: none; }
}


/* ============================================================================
   PAGINA DEI PANINI
   ========================================================================= */

.panini-intro {
  padding-top: 1rem;
  padding-bottom: 2rem;
  text-align: center;
}
.panini-intro .eyebrow { justify-content: center; }
.panini-intro__testo {
  margin: .9rem auto 0; max-width: 48ch;
  color: var(--muted); font-size: .97rem;
}

.build__prezzo {
  margin: 0;
  font-size: .92rem; color: var(--muted);
  text-wrap: pretty;
}
.build__azioni { margin-top: .9rem; }

/* Su telefono la scena e' fatta cosi': le frasi in alto, il panino in mezzo,
   prezzo e pulsante sotto. Il pulsante resta a portata di pollice e la
   descrizione non spinge giu' il panino. */
.build__sotto {
  align-self: end;
  text-align: center;
  padding-top: .8rem;
}


.scegli__elenco {
  list-style: none; margin: 1rem 0 0; padding: 0;
  display: grid; gap: .4rem;
}
.scegli__voce {
  width: 100%;
  display: grid; grid-template-columns: 1fr auto; gap: .2rem .8rem;
  padding: .8rem .9rem; text-align: left;
  font-family: inherit;
  color: var(--cream); background: transparent;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease;
}
.scegli__voce:hover { border-color: rgba(255, 142, 9, .5); background: rgba(255, 142, 9, .05); }
.scegli__voce.is-scelto { border-color: var(--orange); background: rgba(255, 142, 9, .1); }

.scegli__nome {
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem;
  font-weight: 800; font-size: .97rem;
}
.scegli__desc {
  grid-column: 1 / -1;
  font-size: .84rem; color: var(--muted); line-height: 1.4;
}
.scegli__prezzo {
  font-weight: 900; color: var(--orange);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.scegli__scena {
  font-size: .68rem; font-weight: 800; letter-spacing: .03em;
  color: var(--ink); background: var(--orange-soft);
  border-radius: 999px; padding: .1rem .45rem;
}
.scegli__vuoto { margin-top: 1rem; color: var(--muted); font-style: italic; }

/* scheda dei panini di cui la scena non c'è ancora */
.arrivo { padding-block: var(--section-y); background: var(--ink-2); }
.arrivo__scheda {
  max-width: 560px; margin-inline: auto;
  padding: 2rem 1.6rem;
  text-align: center;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--ink);
}
.arrivo__targa {
  display: inline-block; margin-bottom: 1rem;
  padding: .25rem .7rem;
  font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); background: var(--orange-soft);
  border-radius: 999px;
}
.arrivo__nome { margin: 0; font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 900; }
.arrivo__desc { margin: .7rem 0 0; color: rgba(250, 250, 250, .82); }
.arrivo__prezzo {
  margin: 1.1rem 0 0;
  font-size: 2rem; font-weight: 900; color: var(--orange);
  font-variant-numeric: tabular-nums;
}
.arrivo__nota { margin: 1.1rem auto 0; max-width: 44ch; font-size: .88rem; color: var(--muted); }
.arrivo__azioni {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem;
  margin-top: 1.6rem;
}

/* la pagina dei panini ha il selettore in fondo: serve aria sotto */
body[data-pagina="panini"] .footer { padding-bottom: calc(9rem + env(safe-area-inset-bottom)); }


/* Il collegamento agli altri panini vive dentro la scena, sotto al panino.
   La classe .build--animata la mette script.js: senza JavaScript non arriva e
   il collegamento resta visibile dall'inizio, che e' il modo giusto di
   rompersi. */
.build__oltre-testo {
  margin: 0 0 .7rem;
  color: var(--muted); font-size: .95rem;
}
.build--animata .build__oltre-testo,
.build--animata .build__oltre {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .45s ease, transform .45s ease;
}
.build--animata .build__oltre { pointer-events: none; }

.build--animata .build__oltre-testo.is-visibile,
.build--animata .build__oltre.is-visibile {
  opacity: 1;
  transform: none;
}
.build--animata .build__oltre.is-visibile { pointer-events: auto; }

@media (prefers-reduced-motion: reduce) {
  .build--animata .build__oltre-testo,
  .build--animata .build__oltre { transition: none; }
}


/* ============================================================================
   COLONNA DEI PANINI
   Su schermo largo e' una colonna fissa a destra e la pagina le lascia posto.
   Sotto i 1100 px sta fuori campo e scorre dentro toccando la linguetta.
   ========================================================================= */

.rail {
  position: fixed; z-index: 92;
  top: var(--nav-h); right: 0; bottom: 0;
  width: min(320px, 86vw);
  display: flex; flex-direction: column;
  padding: 1rem .9rem 0;
  background: var(--ink-2);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4, 0, .2, 1);
}
.rail.is-aperta { transform: translateX(0); }

.rail__testa {
  display: flex; align-items: center; justify-content: space-between;
  gap: .6rem; margin-bottom: .8rem; flex: 0 0 auto;
}
.rail__titolo {
  margin: 0; font-size: .78rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.rail__chiudi {
  width: 44px; height: 44px; flex: 0 0 auto;
  display: grid; place-items: center;
  font-family: inherit; font-size: 1.5rem; line-height: 1;
  color: var(--muted); background: transparent;
  border: 1px solid var(--line); border-radius: 50%;
  cursor: pointer;
}
.rail__chiudi:hover { color: var(--cream); border-color: var(--line-strong); }

.cerca--rail { flex: 0 0 auto; margin-bottom: .9rem; }
.cerca--rail .cerca__campo { padding-block: .6rem; font-size: 1rem; }

.rail__corpo {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 1.5rem;
  scrollbar-width: thin;
}

.rail__gruppo + .rail__gruppo { margin-top: 1.4rem; }
.rail__gruppo-titolo {
  display: flex; align-items: center; gap: .5rem;
  margin: 0 0 .2rem;
  font-size: .74rem; font-weight: 900;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.rail__gruppo--pronti .rail__gruppo-titolo { color: var(--orange); }
.rail__quanti {
  font-size: .7rem; font-weight: 800;
  color: var(--ink); background: var(--muted);
  border-radius: 999px; padding: .05rem .4rem;
}
.rail__gruppo--pronti .rail__quanti { background: var(--orange); }
.rail__gruppo-nota { margin: 0 0 .5rem; font-size: .76rem; color: var(--muted-2); }

.scegli__elenco { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .3rem; }

.scegli__voce {
  width: 100%;
  display: grid; grid-template-columns: 1fr auto; gap: .1rem .6rem;
  padding: .6rem .7rem; text-align: left;
  font-family: inherit;
  color: var(--cream); background: transparent;
  border: 1px solid transparent; border-radius: 10px;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease;
}
.scegli__voce:hover { background: rgba(250, 250, 250, .05); }

/* il panino scelto: filetto arancione a sinistra, si vede a colpo d'occhio */
.scegli__voce.is-scelto {
  background: rgba(255, 142, 9, .12);
  border-color: rgba(255, 142, 9, .45);
  box-shadow: inset 3px 0 0 var(--orange);
}

.scegli__nome {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
  font-weight: 800; font-size: .92rem; line-height: 1.25;
}
.scegli__desc {
  grid-column: 1 / -1;
  font-size: .76rem; color: var(--muted); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.scegli__prezzo {
  font-weight: 900; font-size: .88rem; color: var(--orange);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.rail__vuoto { margin: 1rem 0; font-size: .85rem; color: var(--muted); font-style: italic; }

/* linguetta sul bordo: mostra sempre quale panino stai guardando */
.rail-tab {
  position: fixed; z-index: 93;
  right: 0; top: 50%; transform: translateY(-50%);
  max-width: 46vw;
  isolation: isolate;
  display: flex; align-items: center; gap: .45rem;
  padding: .7rem .8rem .7rem .9rem;
  font-family: inherit; font-size: .85rem; font-weight: 800;
  color: var(--cream); background: var(--ink-3);
  border: 1px solid rgba(255, 142, 9, .5); border-right: 0;
  border-radius: 12px 0 0 12px;
  box-shadow: -6px 0 20px rgba(0, 0, 0, .45);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.rail-tab:hover { background: var(--ink-2); border-color: var(--orange); }
.rail-tab__icona { font-size: 1.05rem; line-height: 1; flex: 0 0 auto; }
.rail-tab__nome {
  color: var(--orange);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rail-tab__freccia { color: var(--muted); flex: 0 0 auto; }
.rail-tab[aria-expanded="true"] { opacity: 0; pointer-events: none; }

@media (min-width: 1100px) {
  /* su schermo grande la linguetta puo' dire anche cosa fa */
  .rail-tab { padding: .9rem 1rem .9rem 1.1rem; font-size: .92rem; max-width: 300px; }
  .rail-tab::before {
    content: "Scegli il panino";
    position: absolute; right: 100%; top: 50%;
    transform: translateY(-50%) translateX(.6rem);
    padding: .35rem .7rem;
    font-size: .78rem; font-weight: 800; white-space: nowrap;
    color: var(--ink); background: var(--orange);
    border-radius: 999px;
    opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .rail-tab:hover::before { opacity: 1; transform: translateY(-50%) translateX(-.5rem); }
}

.rail-velo {
  position: fixed; inset: 0; z-index: 91;
  background: rgba(0, 0, 0, .55);
}

/* Le colonne si comportano allo stesso modo a ogni larghezza: stanno fuori
   campo e si aprono dalla linguetta. Su schermo largo la linguetta sta a meta'
   altezza sul bordo destro; su telefono sale sopra la barra delle azioni per
   non finirci sotto. */
@media (max-width: 1099px) {
  .rail { bottom: calc(4.2rem + env(safe-area-inset-bottom)); }
  .rail-tab { top: auto; bottom: calc(6.5rem + env(safe-area-inset-bottom)); transform: none; }
}

/* Sotto i 700px la scena del panino tiene il suo pulsante proprio a
   quell'altezza: sulla pagina dei panini la linguetta sale sopra il pulsante,
   che e' l'unica cosa da non coprire. Piu' su incontra solo il panino, che e'
   un'immagine. */
/* Dove la scena resta a colonna singola (le stesse proporzioni della regola
   qui sopra, al contrario) prezzo e pulsante occupano circa 9,5rem sopra lo
   spazio di fondo: la linguetta si mette ancora piu' su, dove incontra solo il
   panino, che e' un'immagine e non ha niente da leggere. */
@media (max-width: 559px),
       (max-width: 859px) and (max-aspect-ratio: 3/5) {
  body[data-pagina="panini"] .rail-tab {
    bottom: calc(var(--scena-fondo) + 9.5rem + env(safe-area-inset-bottom));
  }
}

@media (min-width: 1100px) {
  /* qui la barra in basso non c'e': sotto la colonna non serve lasciare spazio */
  body[data-pagina="panini"] .footer { padding-bottom: var(--section-y); }
}

@media (prefers-reduced-motion: reduce) {
  .rail { transition: none; }
}


/* ============================================================================
   BARRA DEL MENU A UNA RIGA + COLONNA DELLE CATEGORIE
   ========================================================================= */

.menubar { grid-template-columns: 1fr auto; align-items: center; }

.menubar__apri {
  display: flex; align-items: center; gap: .5rem;
  padding: .8rem 1rem;
  font-family: inherit; font-size: .92rem; font-weight: 800;
  color: var(--cream); background: rgba(13, 13, 13, .75);
  border: 1px solid var(--line-strong); border-radius: 999px;
  cursor: pointer; white-space: nowrap;
  transition: border-color .2s ease, background-color .2s ease;
}
.menubar__apri:hover { border-color: var(--orange); background: rgba(255, 142, 9, .08); }
.menubar__icona { font-size: 1rem; line-height: 1; }
.menubar__nome {
  max-width: 40vw;
  overflow: hidden; text-overflow: ellipsis;
}
.menubar__pallino {
  min-width: 19px; height: 19px;
  display: grid; place-items: center;
  padding: 0 .3rem;
  font-size: .7rem; font-weight: 900; line-height: 1;
  color: var(--ink); background: var(--orange);
  border-radius: 999px;
}

@media (max-width: 479px) {
  .menubar__nome { max-width: 30vw; }
}

.rail__filtri { display: grid; gap: .4rem; margin-top: .6rem; }
.rail__filtro {
  display: flex; align-items: center; gap: .5rem;
  min-height: 44px;
  padding: .55rem .75rem;
  font-family: inherit; font-size: .88rem; font-weight: 800;
  color: rgba(250, 250, 250, .82);
  background: transparent;
  border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer; text-align: left;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}
.rail__filtro:hover { border-color: var(--line-strong); background: rgba(250, 250, 250, .04); }
.rail__filtro.is-attivo {
  color: var(--ink); background: var(--orange-soft); border-color: var(--orange-soft);
}
.rail__azzera { margin-top: .7rem; width: 100%; }

/* ============================================================================
   MENÙ BURGER — le tre scelte aprono la colonna
   ========================================================================= */

.combo__scelta {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: .7rem;
  padding: .95rem 1.1rem;
  font-family: inherit; font-size: 1rem; font-weight: 800;
  color: var(--muted); background: rgba(13, 13, 13, .6);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  cursor: pointer; text-align: left;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.combo__scelta:hover { border-color: var(--orange); background: rgba(255, 142, 9, .06); }
.combo__scelta.is-scelto { color: var(--cream); border-color: rgba(255, 142, 9, .55); }

.combo__scelta-testo {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.combo__scelta-freccia { color: var(--orange); font-size: 1.3rem; line-height: 1; flex: 0 0 auto; }


/* ============================================================================
   FINESTRE COME PANNELLI DI LATO
   Stesso gesto della colonna dei panini: entrano dal bordo destro e occupano
   tutta l'altezza, invece di comparire al centro dello schermo.
   ========================================================================= */

.sheet--pannello {
  margin: 0 0 0 auto;              /* incollato al bordo destro */
  width: min(440px, 100%);
  height: 100%;
  max-height: none;
  border: 0;
  border-left: 1px solid var(--line-strong);
  border-radius: 0;
  animation: pannello-entra .3s cubic-bezier(.4, 0, .2, 1);
}
.sheet--pannello .sheet__inner { min-height: 100%; }

@keyframes pannello-entra {
  from { transform: translateX(100%); }
  to   { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sheet--pannello { animation: none; }
}

/* ============================================================================
   COLONNA DEL MENU A DUE LIVELLI
   ========================================================================= */

.rail__indietro {
  display: flex; align-items: center; gap: .4rem;
  margin-bottom: .9rem; padding: .5rem .7rem;
  font-family: inherit; font-size: .85rem; font-weight: 800;
  color: var(--orange); background: transparent;
  border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer;
}
.rail__indietro:hover { border-color: var(--orange); background: rgba(255, 142, 9, .07); }
.rail__indietro span { font-size: 1.1rem; line-height: 1; }

.rail__piatti { gap: .15rem; }

.rail__piatto {
  display: grid; grid-template-columns: 1fr auto auto;
  gap: .1rem .6rem; align-items: center;
  padding: .55rem .2rem .55rem .7rem;
  border-bottom: 1px solid rgba(250, 250, 250, .06);
}
.rail__piatto:last-child { border-bottom: 0; }

.rail__piatto-testo { display: grid; gap: .1rem; min-width: 0; }
.rail__piatto-prezzo {
  font-weight: 900; font-size: .88rem; color: var(--orange);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.rail__piatto .dish__add { width: 40px; height: 40px; font-size: 1.35rem; }


/* ============================================================================
   INGRESSO AL MENU NELLA HOME
   La lista completa sta su menu.html: qui resta solo la porta.
   ========================================================================= */

.ingresso-menu {
  padding-block: var(--section-y);
  background: var(--ink-2);
  border-block: 1px solid var(--line);
}
.ingresso-menu__grid { display: grid; gap: 1.8rem; }
.ingresso-menu__nota {
  margin: .9rem 0 0; max-width: 46ch;
  color: var(--muted); font-size: .97rem;
}
.ingresso-menu__nota strong { color: var(--cream); }

.ingresso-menu__azioni {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center; gap: .9rem;
}

/* ----------------------------------------------------------------------------
   I DUE TASTI CHE SI FANNO NOTARE
   Arrivati qui dal pulsante "Ordina su WhatsApp" dell'apertura, si e' scesi
   per due schermate e mezzo: senza un segnale non e' detto che si capisca
   dove si e' finiti. Un anello arancione si stringe intorno ai due tasti tre
   volte e poi si spegne da solo.
   L'anello e' un pseudo-elemento e non un box-shadow sul contenitore: cosi'
   non sposta niente e non tocca le ombre che i tasti hanno gia'.
   -------------------------------------------------------------------------- */
.ingresso-menu__azioni::before {
  content: "";
  position: absolute; inset: -.85rem -.85rem -.85rem -.85rem;
  border: 2px solid var(--orange);
  border-radius: 22px;
  opacity: 0;
  pointer-events: none;
}

.ingresso-menu.is-indicata .ingresso-menu__azioni::before {
  animation: anello-chiama 1.3s cubic-bezier(.22, .8, .3, 1) 3;
}
.ingresso-menu.is-indicata .ingresso-menu__azioni .btn--primary {
  animation: tasto-respira 1.3s cubic-bezier(.22, .8, .3, 1) 3;
}

@keyframes anello-chiama {
  0%   { opacity: 0;  transform: scale(1.07); }
  40%  { opacity: 1;  transform: scale(1); }
  100% { opacity: 0;  transform: scale(.985); }
}

@keyframes tasto-respira {
  0%, 100% { transform: none; box-shadow: var(--shadow-orange); }
  40%      { transform: translateY(-3px);
             box-shadow: var(--shadow-orange), 0 0 26px 4px rgba(255, 142, 9, .45); }
}

/* Con il movimento ridotto niente pulsazioni: l'anello resta acceso, fermo,
   per il tempo che serve a vederlo. */
@media (prefers-reduced-motion: reduce) {
  .ingresso-menu.is-indicata .ingresso-menu__azioni::before {
    animation: none; opacity: 1;
  }
  .ingresso-menu.is-indicata .ingresso-menu__azioni .btn--primary { animation: none; }
}
.ingresso-menu__allergeni {
  flex-basis: 100%; margin: 0;
  font-size: .85rem; color: var(--muted);
}

@media (min-width: 860px) {
  .ingresso-menu__grid { grid-template-columns: 1fr auto; align-items: center; gap: 3rem; }
  .ingresso-menu__azioni { flex-direction: column; align-items: stretch; }
  .ingresso-menu__allergeni { text-align: center; }
}


/* ============================================================================
   AVVISI DENTRO IL CARRELLO
   Due cose diverse, trattate in modo diverso: gli allergeni sono un'azione da
   fare e si vedono, la privacy e' una rassicurazione e sta ripiegata.
   ========================================================================= */

.avviso {
  display: block;
  margin: 1.2rem 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(13, 13, 13, .5);
  font-size: .86rem; line-height: 1.45;
}

.avviso__icona { font-size: 1.1rem; line-height: 1.2; flex: 0 0 auto; }
.avviso__testo { display: grid; gap: .12rem; min-width: 0; }
.avviso__testo strong { color: var(--cream); font-size: .9rem; }
.avviso__testo span { color: var(--muted); }

/* --- allergeni: una riga da toccare -------------------------------------- */
.avviso--allergeni {
  display: flex; align-items: center; gap: .7rem;
  padding: .85rem 1rem;
  border-color: rgba(255, 142, 9, .38);
  background: rgba(255, 142, 9, .07);
  transition: border-color .2s ease, background-color .2s ease;
}
.avviso--allergeni:hover {
  border-color: var(--orange);
  background: rgba(255, 142, 9, .12);
}
.avviso__freccia { color: var(--orange); font-weight: 900; flex: 0 0 auto; }

/* --- privacy: ripiegata --------------------------------------------------- */
.avviso--privacy summary {
  display: flex; align-items: center; gap: .7rem;
  padding: .8rem 1rem;
  cursor: pointer;
  list-style: none;
}
.avviso--privacy summary::-webkit-details-marker { display: none; }
.avviso--privacy summary:hover { background: rgba(250, 250, 250, .03); }

.avviso__piu {
  margin-left: auto; flex: 0 0 auto;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  font-size: 1rem; line-height: 1;
  color: var(--muted);
  border: 1px solid var(--line); border-radius: 50%;
  transition: transform .2s ease, color .2s ease;
}
.avviso--privacy[open] .avviso__piu { transform: rotate(45deg); color: var(--cream); }

.avviso__dentro {
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--line);
  margin-top: -1px;
}
.avviso__dentro p { margin: .8rem 0 0; color: var(--muted); font-size: .84rem; }
.avviso__dentro strong { color: rgba(250, 250, 250, .88); }
.avviso__dentro a { color: var(--orange); }

@media (prefers-reduced-motion: reduce) {
  .avviso--privacy[open] .avviso__piu { transition: none; }
}


/* Collegamento al menu completo, fisso in fondo alla colonna: si vede a
   entrambi i livelli, senza doverla scorrere fino in fondo. */
.rail__pie {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: .6rem;
  margin: 0 -.9rem;
  padding: .95rem 1.1rem calc(.95rem + env(safe-area-inset-bottom));
  font-size: .9rem; font-weight: 800;
  color: var(--cream);
  background: rgba(255, 142, 9, .08);
  border-top: 1px solid rgba(255, 142, 9, .3);
  transition: background-color .2s ease;
}
.rail__pie:hover { background: rgba(255, 142, 9, .16); }
.rail__pie-icona { font-size: 1.05rem; line-height: 1; }
.rail__pie-testo { flex: 1; }
.rail__pie-freccia { color: var(--orange); font-size: 1.3rem; line-height: 1; }

/* su menu.html sei gia' nell'elenco completo */
body[data-pagina="menu"] .rail__pie { display: none; }


/* guizzo del pulsante Ordine quando qualcosa entra nel carrello: fuori dalla
   home e' l'unico segnale che l'aggiunta e' andata a buon fine */
@keyframes dock-guizzo {
  0%, 100% { transform: scale(1); }
  40%      { transform: scale(1.18); }
}
.dock__btn.is-guizzo .dock__icon { animation: dock-guizzo .45s ease-out; }
.dock__btn.is-guizzo .dock__badge { animation: dock-guizzo .45s ease-out; }
