/* =========================================================
   Ermes Delivery Strà – stile
   ========================================================= */
:root {
  --bg: #121012;
  --bg-2: #1b171a;
  --card: #221d21;
  --line: #3a3238;
  --text: #f6efe6;
  --muted: #b9ada6;
  --red: #d7261e;
  --red-2: #a3140f;
  --red-soft: rgba(215, 38, 30, .14);
  --gold: #f0b44c;
  --wa: #25d366;
  --wa-2: #1da851;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --head: "Oswald", "Arial Narrow", sans-serif;
  --body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --topbar-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 12px); -webkit-text-size-adjust: 100%; }
/* niente zoom (pizzico o doppio tocco) e niente scorrimento orizzontale: solo su e giù */
html, body { overflow-x: clip; touch-action: pan-y; }
.chips, .sheet__inner { touch-action: pan-x pan-y; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--body);
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}
img, svg { display: block; max-width: 100%; }
a { color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: .01em; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.small { font-size: .82rem; color: var(--muted); }
.center { text-align: center; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: 0 22px;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: .98rem; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 6px 20px rgba(215, 38, 30, .35); }
.btn--primary:hover { background: #e53a2f; }
.btn--wa { background: var(--wa); color: #06260f; }
.btn--wa:hover { background: #3ee07a; }
.btn--ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--text); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.btn--block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 4px; }

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(18, 16, 18, .88);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.topbar__inner { height: var(--topbar-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo__svg { height: 60px; width: auto; aspect-ratio: 256 / 120; overflow: visible; transition: transform .2s ease; }
.logo:hover .logo__svg { transform: scale(1.04); }
.logo__svg--full { height: 104px; aspect-ratio: 256 / 120; margin-bottom: 10px; }
.nav { display: none; gap: 28px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .92rem; opacity: .85; }
.nav a:hover { opacity: 1; color: var(--gold); }
.topbar__actions { display: flex; gap: 8px; }
.topbar__call span { display: none; }
/* WhatsApp e Chiama: stesso stile, sobrio, in tono con il sito */
.topbar__icon {
  min-height: 42px; min-width: 42px; padding: 0 11px;
  background: rgba(255, 255, 255, .04); border-color: var(--line); color: var(--text);
}
.topbar__icon:hover { border-color: var(--gold); color: var(--gold); }
.ico-line { fill: none !important; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.topbar__order { display: none; position: relative; box-shadow: 0 6px 18px rgba(215, 38, 30, .35); }
.topbar__count {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  border: 2px solid var(--bg); background: var(--gold); color: #2a1a05; font-size: .7rem; display: grid; place-items: center;
}

/* ---------- Hero: fuoco del forno a legna dietro al titolo (js/fire.js, montato da js/hero.js) ---------- */
/* su telefono la prima schermata è tutta dell'intro: il menu parte appena si scorre
   (altezza schermo – barra in alto – barra in basso) */
.hero {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  background: #070506; /* quasi nero: il fuoco si somma sopra (fusione additiva) */
  --hero-h: calc(100vh - var(--topbar-h) - 76px - env(safe-area-inset-bottom));
}
@supports (height: 100svh) {
  .hero { --hero-h: calc(100svh - var(--topbar-h) - 76px - env(safe-area-inset-bottom)); }
}
/* il fuoco: inquadratura ferma, nessuna trasformazione o animazione CSS sulla scena */
.hero__fire { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.fire__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* le due copie del video che la scheda grafica usa come immagine: presenti ma invisibili
   (non "display: none", altrimenti iPhone non le fa scorrere) */
.fire__src { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
/* riserva (sito aperto con doppio clic o senza WebGL): lo stesso video mostrato direttamente,
   nella stessa posizione; il nero del video si fonde con lo sfondo */
.fire__media {
  position: absolute; display: block; max-width: none; object-fit: fill; mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 30% 60% at 50.5% 55%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 30% 60% at 50.5% 55%, #000 55%, transparent 100%);
}
/* sfumature in alto e in basso: la scena si fonde con il resto della pagina */
.hero__fade { position: absolute; left: 0; right: 0; height: 80px; z-index: 1; pointer-events: none; }
.hero__fade--top { top: 0; background: linear-gradient(to bottom, var(--bg), transparent); }
.hero__fade--bottom { bottom: 0; background: linear-gradient(to top, var(--bg), transparent); }

.hero__content { position: relative; z-index: 2; display: flex; flex-direction: column; min-height: var(--hero-h); padding-top: 18px; padding-bottom: 14px; }
.hero__main { position: relative; margin: auto 0; display: flex; flex-direction: column; align-items: center; }
/* alone scuro leggero dietro al testo: le scritte si leggono, il fuoco resta visibile attorno */
.hero__main::before {
  content: ""; position: absolute; inset: -6% -10%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(7, 5, 6, .5), rgba(7, 5, 6, .3) 55%, rgba(7, 5, 6, 0) 100%);
}

.status {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px;
  padding: 7px 16px; border-radius: 999px; font: 500 .8rem/1.2 var(--body); letter-spacing: .01em;
  color: rgba(255, 255, 255, .75);
}
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: #8a7f7b; }
.status.is-open { color: #c9f7d9; }
.status.is-open .status__dot { background: var(--wa); box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
/* v4.3 – chiuso: si illumina di rosso, come il verde quando è aperto */
.status.is-closed { color: #ffc9c4; }
.status.is-closed .status__dot { background: #ff3b30; box-shadow: 0 0 0 0 rgba(255, 59, 48, .6); animation: pulseRed 2s infinite; }
@keyframes pulseRed { 70% { box-shadow: 0 0 0 9px rgba(255, 59, 48, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); } }

/* titolo con il carattere di tutto il sito (Oswald maiuscolo), come prima della 3.1 */
.hero h1 {
  font-family: var(--head); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.6rem, 11vw, 3.8rem); line-height: 1.02; letter-spacing: .01em; color: #fff;
  text-shadow: 0 6px 40px rgba(0, 0, 0, .6);
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero__lead {
  margin: 18px auto 0; max-width: 31em; font: 400 .98rem/1.6 var(--body); color: rgba(255, 255, 255, .72);
  text-shadow: 0 2px 16px rgba(0, 0, 0, .7);
}
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; margin-top: 28px; }
.cta-glass, .cta-solid {
  display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 999px;
  font: 600 .95rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background .2s ease, transform .15s ease;
}
.cta-glass svg, .cta-solid svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cta-solid svg { width: 17px; height: 17px; }
.cta-glass { color: #fff; }
.cta-glass:hover { background: rgba(255, 255, 255, .1); }
.cta-solid { background: #fff; color: #111; }
.cta-solid:hover { background: rgba(255, 255, 255, .9); }
.cta-glass:active, .cta-solid:active { transform: scale(.97); }
/* v4.3 – "Scarica l'app": pulsante principale sul telefono */
.cta-app {
  display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 999px;
  font: 700 .95rem/1 var(--body); text-decoration: none; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, #ef3a2e, var(--red-2)); box-shadow: 0 10px 28px rgba(215, 38, 30, .45), inset 0 1px 0 rgba(255, 255, 255, .2);
  transition: transform .15s ease, box-shadow .2s ease;
}
.cta-app svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cta-app:active { transform: scale(.97); }
.cta-app + .cta-solid { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .35); }

/* vetro liquido: sfondo sfocato e un sottile bordo luminoso che sfuma a metà dei lati */
.liquid-glass-strong {
  background: rgba(255, 255, 255, .01);
  background-blend-mode: luminosity;
  -webkit-backdrop-filter: blur(50px); backdrop-filter: blur(50px);
  border: none;
  box-shadow: 4px 4px 4px rgba(0, 0, 0, .05), inset 0 1px 1px rgba(255, 255, 255, .15);
  position: relative; overflow: hidden;
}
.liquid-glass-strong::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.4px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, .2) 20%, rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, .2) 80%, rgba(255, 255, 255, .5) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* barra sottile in fondo alla prima schermata */
.hero__bar {
  margin-top: 22px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font: 400 .74rem/1.3 var(--body); color: rgba(255, 255, 255, .42);
}
.hero__bar p { margin: 0; }
.hero__bar nav { display: flex; gap: 20px; }
.hero__bar a { color: rgba(255, 255, 255, .42); text-decoration: none; transition: color .2s; }
.hero__bar a:hover { color: rgba(255, 255, 255, .75); }

/* ---------- Sezioni ---------- */
.section { padding: 56px 0; }
#menu { padding-top: 28px; }
.section--alt { background: var(--bg-2); border-top: 1px solid rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .04); }
.section__head { margin-bottom: 24px; }
.eyebrow { margin: 0 0 6px; color: var(--red); font-weight: 700; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow--wa { color: var(--wa); }
.section h2 { font-size: clamp(2rem, 7vw, 3rem); text-transform: uppercase; }
.section__lead { color: var(--muted); margin: 10px 0 0; max-width: 40em; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { font-size: 1.35rem; text-transform: uppercase; margin-bottom: 14px; }

/* ---------- Menu ---------- */
.menu-tools {
  position: sticky; top: var(--topbar-h); z-index: 30;
  margin: 0 -16px 8px; padding: 10px 16px 8px;
  background: linear-gradient(var(--bg) 85%, rgba(18, 16, 18, 0));
}
.search {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 14px;
}
.search:focus-within { border-color: var(--red); }
.search svg { width: 18px; height: 18px; fill: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; height: 48px; border: 0; background: none; outline: none; font-size: 16px; }
.search input::placeholder { color: #857a76; }
/* durante la ricerca: niente barra categorie (evita i salti), solo il numero di risultati */
.search-count { margin: 8px 2px 0; font-size: .8rem; font-weight: 600; color: var(--muted); }
.search-count:empty { display: none; }
#menu.is-searching .chips, #menu.is-searching .extras { display: none; }
/* mentre si cerca la lista non si accorcia sotto l'altezza dello schermo: la pagina non "salta" */
#menu.is-searching .menu-list { min-height: 75vh; display: flex; flex-direction: column; }
#menu.is-searching .items { display: flex; flex-direction: column; }

.chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 4px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chips a {
  flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--text); text-decoration: none; font-size: .86rem; font-weight: 600; white-space: nowrap;
  background: var(--bg-2);
}
.chips a.is-active { background: var(--red); border-color: var(--red); color: #fff; }

.cat { margin-top: 26px; }
.cat__title {
  font-size: 1.5rem; text-transform: uppercase; display: flex; align-items: center; gap: 10px;
  padding-bottom: 10px; border-bottom: 2px solid var(--red); margin-bottom: 4px;
}
.cat__title span { font-family: var(--body); font-size: .72rem; font-weight: 700; color: var(--muted); background: var(--card); border-radius: 999px; padding: 3px 9px; }
.items { list-style: none; margin: 0; padding: 0; }
.item {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 2px; border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.item h4 { font-family: var(--body); font-weight: 700; font-size: 1rem; letter-spacing: 0; }
.item p { margin: 3px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.4; }
.item__buy { display: flex; align-items: center; gap: 12px; flex: none; }
.item__price { font-weight: 700; color: var(--gold); white-space: nowrap; font-size: .95rem; }
.add {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--red-soft); color: var(--red); font-size: 1.6rem; font-weight: 500; line-height: 1;
  transition: background .2s, color .2s, transform .15s;
}
.add:hover { background: var(--red); color: #fff; }
.add:active { transform: scale(.9); }
.empty { text-align: center; color: var(--muted); padding: 30px 0; }

.extras { margin-top: 36px; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 20px; }
.extras h3 { font-size: 1.2rem; text-transform: uppercase; margin-bottom: 10px; }
.extras ul { list-style: none; padding: 0; margin: 0 0 12px; }
.extras li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: .92rem; }
.extras b { color: var(--gold); white-space: nowrap; }

/* ---------- Ordine ---------- */
/* Nota costo consegna: discreta */
.delivery-info { margin: -10px 0 16px; color: var(--text); font-size: .98rem; font-weight: 700; }

/* Ordine compatto */
.order { display: grid; gap: 14px; align-items: start; }
.order .card { padding: 16px; }
.order .card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.order__cart-head { display: flex; justify-content: space-between; align-items: baseline; }
.order__count { font-family: var(--body); font-size: .85rem; font-weight: 600; color: var(--muted); }
.cart { list-style: none; margin: 0; padding: 0; }
.cart__row {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center;
  gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.cart__info { min-width: 0; }
.cart__info b { display: block; font-size: .92rem; line-height: 1.25; }
.cart__info small { display: block; color: var(--muted); font-size: .76rem; line-height: 1.3; }
.cart__price { font-weight: 700; color: var(--gold); white-space: nowrap; font-size: .9rem; min-width: 58px; text-align: right; }
.cart-empty { text-align: center; padding: 14px 0; color: var(--muted); }
.cart-empty p { margin: 0 0 10px; }
.totals { padding-top: 10px; }
.totals__row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: .92rem; color: var(--muted); }
.totals__row span:last-child { white-space: nowrap; }
.totals__row--total { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--text); font-size: 1.05rem; align-items: center; }
.totals__row--total strong { font-size: 1.5rem; font-family: var(--head); }
#deliveryNote { margin: 10px 0 0; }

.stepper { display: inline-flex; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; }
.stepper button { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 1.3rem; color: var(--text); border-radius: 50%; }
.stepper button:hover { color: var(--red); }
.stepper output { min-width: 26px; text-align: center; font-weight: 700; }
.stepper--sm button { width: 34px; height: 34px; font-size: 1.1rem; }
.stepper--sm output { min-width: 18px; font-size: .9rem; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border: 0; padding: 0; margin: 0 0 16px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 54px; padding: 8px;
  border: 2px solid var(--line); border-radius: 12px; font-weight: 600; font-size: .9rem;
}
.seg input:checked + span { border-color: var(--red); background: var(--red-soft); }
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.field { display: block; margin-bottom: 14px; }
.field label, .field > span { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; font-size: 16px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; outline: none;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); }
/* modulo d'ordine più compatto */
.order .seg { margin-bottom: 12px; }
.order .seg span { min-height: 46px; font-size: .88rem; }
.order .field { margin-bottom: 10px; }
.order .field label { margin-bottom: 4px; font-size: .8rem; }
.order .field input, .order .field select { min-height: 44px; padding: 8px 12px; }
.order__form .btn--block { margin-top: 4px; }
.order__form .small.center { margin: 10px 0 0; }
.row2 { display: flex; gap: 12px; }
.row2 > .field { flex: 1; min-width: 0; }
.row2 > .field--wide { flex: 1.6; }

/* controllo indirizzo: suggerimenti e stato */
.addr { position: relative; }
.addr-suggest {
  list-style: none; margin: -4px 0 8px; padding: 4px; border-radius: 12px; overflow: hidden;
  background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.addr-suggest button {
  display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-radius: 8px;
  background: none; color: var(--text); font-size: .88rem; cursor: pointer;
}
.addr-suggest button:hover, .addr-suggest button:focus-visible { background: var(--red-soft); }
.addr-status { margin: -4px 0 8px; font-size: .8rem; font-weight: 600; }
.addr-status:empty { display: none; }
.addr-status.is-ok { color: #9fe0b3; }
.addr-status.is-wait { color: var(--muted); }
.addr-status.is-err { color: #ffb4ad; }
.addr-override { display: block; margin: -4px auto 10px; color: var(--gold); font-weight: 600; font-size: .85rem; }

/* posizione per il rider */
.loc { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; }
.loc__btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; cursor: pointer;
  border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-weight: 600; font-size: .85rem;
}
.loc__btn svg { width: 18px; height: 18px; }
/* v4.0 – a cosa serve la posizione (testo piccolo sotto il pulsante) */
.loc__note { margin: 4px 0 8px; font-size: .74rem; line-height: 1.45; color: var(--muted); }
.loc__note a { color: var(--gold); white-space: nowrap; }
.loc__btn:hover { border-color: var(--gold); }
.loc__btn.is-on { border-color: var(--gold); color: var(--gold); }
.loc__status { margin: 4px 0 10px; }
.loc__status:empty { display: none; }

/* elementi del riepilogo */
.cart__edit {
  margin-top: 3px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--gold); font-size: .76rem; font-weight: 700; text-decoration: underline; text-underline-offset: 2px;
}
.form-error { background: rgba(215, 38, 30, .15); border: 1px solid var(--red); color: #ffd6d3; padding: 10px 14px; border-radius: 12px; font-size: .9rem; }

/* ---------- WhatsApp ---------- */
.wa-card {
  display: grid; gap: 20px; padding: 28px 22px; border-radius: 22px;
  background: linear-gradient(135deg, #0f3d24, #0b2a1a 60%, #10251a);
  border: 1px solid rgba(37, 211, 102, .25);
}
#whatsapp:target .wa-card { animation: waFocus 1.6s ease-out .35s; }
@keyframes waFocus {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .7); }
  100% { box-shadow: 0 0 0 22px rgba(37, 211, 102, 0); }
}
.wa-card__icon { width: 64px; height: 64px; border-radius: 18px; background: var(--wa); display: grid; place-items: center; }
.wa-card__icon svg { width: 38px; height: 38px; fill: #fff; }
.wa-card h2 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
.wa-card p { color: #cfe9da; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.quick button {
  border: 1px solid rgba(37, 211, 102, .45); background: rgba(37, 211, 102, .08); color: #dffbe9;
  border-radius: 999px; padding: 9px 14px; font-size: .88rem; font-weight: 600; cursor: pointer; min-height: 40px;
}
.quick button:hover { background: rgba(37, 211, 102, .2); }

/* ---------- Contatti ---------- */
.contact { display: grid; gap: 18px; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 10px 4px; border-bottom: 1px solid rgba(255, 255, 255, .06); text-align: left; font-weight: 500; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--gold); font-weight: 700; }
.hours tr.is-today th::after { content: " · oggi"; font-size: .75rem; font-weight: 600; }
.closed { color: var(--muted); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 12px; }
/* contatti cliccabili ma senza sottolineatura */
.contact-list a { text-decoration: none; font-weight: 600; transition: color .15s; }
.contact-list a:hover, .contact-list a:focus-visible { color: var(--text); }
.ci { width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--red-soft); display: grid; place-items: center; }
.ci svg { width: 18px; height: 18px; fill: var(--red); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 280px; background: var(--card); }
.map iframe { width: 100%; height: 100%; min-height: 280px; border: 0; display: block; filter: grayscale(.2) contrast(1.05); }

/* ---------- Footer ---------- */
/* ---------- Piè di pagina ---------- */
.footer {
  position: relative; overflow: hidden; isolation: isolate; padding: 56px 0 0;
  background: linear-gradient(to bottom, var(--bg), #0a0809); border-top: 1px solid rgba(255, 255, 255, .06);
  color: var(--muted); font-size: .9rem;
}
/* alone rosso morbido in alto */
.footer::before {
  content: ""; position: absolute; left: 50%; top: -180px; width: min(900px, 140vw); height: 420px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(215, 38, 30, .16), transparent); z-index: -1; pointer-events: none;
}
.footer p { margin: 0; }

/* invito finale */
.footer__cta {
  display: grid; gap: 22px; padding: 28px 22px; border-radius: 24px;
  background: linear-gradient(135deg, rgba(215, 38, 30, .18), rgba(255, 255, 255, .02) 62%);
  border: 1px solid rgba(255, 255, 255, .08);
}
.footer__cta h2 { font-size: clamp(2rem, 8.5vw, 3.2rem); text-transform: uppercase; color: var(--text); line-height: 1.02; }
.footer__cta h2 em { font-style: normal; color: var(--red); }
.footer__cta-lead { margin-top: 10px !important; max-width: 32em; line-height: 1.6; }
.footer__cta-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.footer__cta-btns .btn { flex: 1 1 150px; }
.footer__cta-btns .btn svg { width: 18px; height: 18px; }

/* colonne */
.footer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 20px; padding: 44px 0 36px; }
.footer__brand { grid-column: 1 / -1; }
.footer__grid > :last-child { grid-column: 1 / -1; }
.footer__logo { display: inline-block; }
.footer__logo .logo__svg { height: 84px; margin: 0; }
.footer__brand p { margin: 12px 0 18px; max-width: 30em; line-height: 1.6; }
.footer__app {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 12px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--text); text-decoration: none;
  transition: border-color .2s ease, background .2s ease;
}
.footer__app:hover { border-color: var(--gold); background: rgba(240, 180, 76, .06); }
.footer__app svg { width: 28px; height: 28px; fill: var(--gold); flex: none; }
.footer__app span { display: flex; flex-direction: column; line-height: 1.3; }
.footer__app b { font-weight: 700; font-size: .92rem; }
.footer__app small { color: var(--muted); font-size: .74rem; }
.footer__col h3 {
  margin: 0 0 14px; font-family: var(--body); font-size: .7rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--text);
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; line-height: 1.45; }
.footer__col a { color: var(--muted); text-decoration: none; transition: color .2s ease; }
.footer__col a:hover { color: var(--text); }
.footer__hours li { display: flex; justify-content: space-between; gap: 16px; max-width: 320px; }
.footer__hours b { font-weight: 600; color: var(--text); white-space: nowrap; }
.footer__hours b.closed { font-weight: 500; color: var(--muted); }
.footer__hours li.is-today span, .footer__hours li.is-today b { color: var(--gold); }

/* il ristorante di Vigonovo */
.footer__sister {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, .08); border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: var(--muted); text-decoration: none; transition: color .2s ease;
}
.footer__sister b { color: var(--text); font-weight: 600; }
.footer__sister svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.footer__sister:hover { color: var(--text); }
.footer__sister:hover svg { transform: translate(2px, -2px); }

/* dati legali */
.footer__legal { display: flex; flex-direction: column; gap: 12px; padding: 20px 0 6px; font-size: .76rem; line-height: 1.65; color: rgba(185, 173, 166, .7); }
.footer__links { display: flex; gap: 20px; }
.footer__links a { color: inherit; text-decoration: none; transition: color .2s ease; }
.footer__links a:hover { color: var(--text); }

/* grande scritta ERMES che sfuma, a chiudere la pagina */
.footer__word {
  margin-top: 8px; font-family: var(--head); font-weight: 700; text-transform: uppercase; text-align: center;
  font-size: 34vw; line-height: .8; letter-spacing: .02em; user-select: none; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0) 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Dock mobile ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(18, 16, 18, .94); border-top: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.dock a {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; border-radius: 16px; text-decoration: none;
  font-family: var(--head); font-size: 1.2rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  transition: transform .15s ease, background .2s ease;
}
.dock a:active { transform: scale(.97); }
.dock svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.dock__menu { background: var(--card); border: 1px solid var(--line); color: var(--text); }
.dock__menu svg { fill: var(--gold); }
.dock__order {
  background: linear-gradient(135deg, #ef3a2e, var(--red-2)); color: #fff;
  box-shadow: 0 8px 24px rgba(215, 38, 30, .45), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.dock__total { font-family: var(--body); font-size: .9rem; font-weight: 700; letter-spacing: 0; text-transform: none; margin-left: -4px; }
.dock__count {
  position: absolute; top: -6px; right: -4px; border: 2px solid var(--bg); min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--gold); color: #2a1a05; font-size: .75rem; display: grid; place-items: center;
}

/* ---------- Scheda prodotto ---------- */
.sheet {
  border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 520px;
  background: var(--card); color: var(--text); border-radius: 22px 22px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .5);
}
.sheet[open] { animation: up .25s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet::backdrop { background: rgba(0, 0, 0, .6); }
.sheet { max-height: 92vh; max-height: 92dvh; overflow: hidden; }
.sheet__inner {
  position: relative; padding: 24px 20px 0; max-height: 92vh; max-height: 92dvh;
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
.sheet__close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: var(--bg); color: var(--text); font-size: 1.5rem; cursor: pointer;
}
.sheet h3 { font-size: 1.6rem; text-transform: uppercase; padding-right: 48px; }
.sheet__desc { color: var(--muted); margin: 6px 0 18px; font-size: .92rem; }
.dough { border: 0; padding: 0; margin: 0 0 16px; }
.dough legend { font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
#doughOptions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.radio { position: relative; cursor: pointer; }
.radio input { position: absolute; opacity: 0; }
.radio span {
  display: block; padding: 12px; border: 2px solid var(--line); border-radius: 12px; font-weight: 600; font-size: .9rem;
}
.radio em { font-style: normal; color: var(--gold); font-weight: 500; font-size: .8rem; }
.radio input:checked + span { border-color: var(--red); background: var(--red-soft); }
.radio input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.sheet .field input { background: var(--bg); }
/* pulsanti in basso sempre visibili mentre si scorre la scheda */
.sheet__foot {
  position: sticky; bottom: 0; z-index: 2; display: flex; gap: 12px; align-items: center;
  margin: 6px -20px 0; padding: 12px 20px calc(14px + env(safe-area-inset-bottom));
  background: var(--card); border-top: 1px solid var(--line);
}
.sheet__foot .btn { flex: 1; }

/* Togli / Aggiungi ingredienti */
.sheet__block { margin: 0 0 16px; }
.sheet__label { margin: 0 0 8px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.sheet__label em { font-style: normal; color: var(--gold); font-weight: 500; }
.addgroup { margin-bottom: 10px; }
.addgroup__title { margin: 0 0 6px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8d817b; }
.chips-opt { display: flex; flex-wrap: wrap; gap: 6px; }
.opt {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--text);
  font-size: .84rem; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s;
}
.opt em { font-style: normal; font-weight: 500; font-size: .76rem; color: var(--gold); }
.opt.is-on { border-color: var(--red); background: var(--red-soft); }
.opt.is-on::before { content: "+"; color: var(--red); font-weight: 800; }
.opt--remove.is-off { color: var(--muted); text-decoration: line-through; border-style: dashed; }
.opt--remove.is-off::before { content: "–"; text-decoration: none; display: inline-block; }
.sheet__summary { margin: -4px 0 4px; font-size: .82rem; color: var(--gold); min-height: 1em; }

/* richieste di preparazione (Ben cotta, Tagliata): evidenziate senza il "+" */
.opt[data-prep].is-on::before { content: none; }

/* ---------- Conferma prima dell'invio ---------- */
.confirm {
  border: 0; padding: 0; width: calc(100% - 32px); max-width: 460px; margin: auto;
  background: var(--card); color: var(--text); border-radius: 22px; border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}
.confirm[open] { animation: up .25s ease-out; }
.confirm::backdrop { background: rgba(0, 0, 0, .65); }
.confirm__inner { padding: 20px 18px 0; max-height: 90vh; max-height: 90dvh; overflow-y: auto; overscroll-behavior: contain; }
.confirm h3 { font-size: 1.45rem; text-transform: uppercase; margin-bottom: 6px; }
.confirm__lead { margin: 0 0 12px; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.confirm__lead b { color: var(--text); }
.confirm__note {
  padding: 10px 12px; border-radius: 12px; margin-bottom: 10px;
  background: rgba(240, 180, 76, .1); border: 1px solid rgba(240, 180, 76, .35);
}
.confirm__note > b { color: var(--gold); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.confirm__note p { margin: 4px 0 0; font-size: .84rem; line-height: 1.4; }
.confirm__list { margin: 0 0 4px; display: grid; }
.confirm__list div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: .84rem; }
.confirm__list dt { color: var(--muted); }
.confirm__list dd { margin: 0; font-weight: 700; text-align: right; }
.confirm__actions {
  position: sticky; bottom: 0; display: grid; gap: 8px; margin: 0 -18px; padding: 12px 18px calc(14px + env(safe-area-inset-bottom));
  background: var(--card); border-top: 1px solid var(--line);
}
.confirm__actions .btn { min-height: 46px; padding: 0 14px; font-size: .92rem; white-space: nowrap; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--bg); font-weight: 600; font-size: .9rem;
  padding: 12px 18px; border-radius: 999px; box-shadow: var(--shadow); transition: .25s ease;
  max-width: calc(100% - 32px); text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Tablet / Desktop ---------- */
@media (min-width: 560px) {
  .topbar__call span { display: inline; }
}
@media (min-width: 900px) {
  :root { --topbar-h: 88px; } .logo__svg { height: 72px; } .logo__svg--full { height: 104px; }
  body { padding-bottom: 0; }
  .dock { display: none; }
  .toast { bottom: 28px; }
  .nav { display: flex; }
  .topbar__order { display: inline-flex; }
  .hero { --hero-h: min(calc(100svh - var(--topbar-h)), 860px); }
  .hero h1 { font-size: clamp(3.6rem, 6vw, 5.4rem); }
  .hero__lead { font-size: 1.08rem; }
  .hero__bar { flex-direction: row; justify-content: space-between; }
  .section, #menu { padding: 84px 0; }
  .items { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
  #menu.is-searching .items { display: grid; }
  .order { grid-template-columns: 1fr 1fr; }
  .order__cart { position: sticky; top: calc(var(--topbar-h) + 16px); }
  .wa-card { grid-template-columns: auto 1fr; padding: 44px; gap: 28px; }
  .contact { grid-template-columns: 1fr 1fr; }
  .map { grid-column: 1 / -1; }
  .footer__cta { grid-template-columns: 1fr auto; align-items: center; gap: 32px; padding: 44px 48px; }
  .footer__cta-btns .btn { flex: none; }
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 40px; padding: 64px 0 48px; }
  .footer__brand, .footer__grid > :last-child { grid-column: auto; }
  .footer__legal { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .footer__word { font-size: min(25vw, 330px); }
  .sheet { margin: auto; border-radius: 22px; }
}

/* =========================================================
   v2.13 – profilo, punti pizza, bibita omaggio, ricerca con X
   ========================================================= */
/* icona profilo in alto (accanto a WhatsApp e telefono) */
.topbar__user { position: relative; cursor: pointer; }
.topbar__points {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  border: 2px solid var(--bg); background: var(--gold); color: #2a1a05; font-size: .68rem; display: grid; place-items: center;
}

/* X per cancellare la ricerca (sostituisce quella del browser, che su iPhone non sempre c'è) */
.search input::-webkit-search-cancel-button, .search input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.search__clear {
  flex: none; width: 34px; height: 34px; margin-right: -6px; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--text);
}
.search__clear svg { width: 16px; height: 16px; fill: currentColor; }
.search__clear:hover { background: var(--red); }

/* riepilogo: aggiunte con il loro prezzo */
.cart__line { display: flex !important; justify-content: space-between; gap: 10px; }
.cart__line span:last-child { white-space: nowrap; color: #d9c9a8; }
.cart__price small { display: block; font-size: .7rem; font-weight: 600; color: var(--muted); }
.badge {
  display: inline-block; vertical-align: 1px; margin-left: 4px; padding: 1px 7px; border-radius: 999px;
  background: var(--gold); color: #2a1a05; font-family: var(--body); font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.cart__row--free .cart__price { color: var(--gold); }

/* ordine appena inviato */
.sent {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px;
  margin: 4px 0 8px; padding: 10px 12px; border-radius: 12px;
  background: rgba(37, 211, 102, .08); border: 1px solid rgba(37, 211, 102, .3); font-size: .85rem;
}
.sent p { margin: 0; }
.sent b { color: #bff5d2; }
.sent .link-btn { color: #bff5d2; font-weight: 700; }

/* bibita omaggio disponibile */
.reward {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 12px 0 2px; padding: 12px 14px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(240, 180, 76, .2), rgba(240, 180, 76, .06)); border: 1px solid rgba(240, 180, 76, .5);
}
.reward__text b { display: block; color: var(--gold); font-family: var(--head); font-size: 1.1rem; letter-spacing: .02em; text-transform: uppercase; }
.reward__text span { font-size: .84rem; }
.btn--gold { background: var(--gold); color: #2a1a05; flex: none; }
.btn--gold:hover { background: #f7c56a; }

/* punti pizza nel conto */
.points { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.points__head { display: flex; justify-content: space-between; align-items: baseline; font-size: .85rem; font-weight: 600; color: var(--muted); }
.points__head b { color: var(--gold); font-size: .95rem; }
.points__bar { height: 6px; margin: 8px 0 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.points__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #e9a13b, var(--gold)); transition: width .35s ease; }
.points__note { margin: 0; font-size: .78rem; line-height: 1.4; color: var(--muted); }
.points__note b { color: var(--text); }
.points__note .link-btn { padding: 0; color: var(--gold); font-weight: 700; }

/* scheda bibita: "è la mia bibita omaggio" */
.check {
  display: flex; align-items: center; gap: 12px; padding: 12px; cursor: pointer;
  border: 2px solid rgba(240, 180, 76, .45); border-radius: 12px; background: rgba(240, 180, 76, .07);
}
.check input { width: 22px; height: 22px; flex: none; accent-color: var(--gold); }
.check b { display: block; font-size: .92rem; }
.check small { display: block; color: var(--muted); font-size: .78rem; }
.stepper button:disabled { opacity: .3; cursor: not-allowed; }

/* finestra bibita omaggio */
.gift__list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 10px; }
.gift__opt {
  min-height: 52px; padding: 8px 10px; border-radius: 12px; cursor: pointer; text-align: center;
  border: 2px solid var(--line); background: var(--bg); color: var(--text); font-weight: 700; font-size: .86rem;
}
.gift__opt:hover { border-color: var(--gold); }
.gift__opt.is-on { border-color: var(--gold); background: rgba(240, 180, 76, .12); }

/* profilo */
.profile .confirm__inner { position: relative; padding-top: 22px; }
.profile .sheet__close { top: 10px; right: 10px; }
.profile h3 { padding-right: 44px; }
.profile__login .btn--block { margin-top: 4px; }
.profile__login .small { margin: 10px 0 16px; }
.profile .eyebrow { margin-bottom: 2px; }
.card-points { margin: 14px 0 18px; padding: 14px; border-radius: 14px; background: var(--bg); border: 1px solid rgba(240, 180, 76, .4); }
.card-points__head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; color: var(--muted); }
.card-points__head b { font-family: var(--head); font-size: 1.5rem; color: var(--gold); }
.card-points__slots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; margin: 10px 0 8px; }
.card-points__slots i { aspect-ratio: 1; border-radius: 50%; border: 2px dashed var(--line); }
.card-points__slots i.is-on { border: 0; background: radial-gradient(circle at 35% 35%, #ffd98a, var(--gold) 45%, #c47a1c); box-shadow: 0 0 10px rgba(240, 180, 76, .35); }
.card-points .small { margin: 0; }
.profile__sub { font-size: 1.1rem; text-transform: uppercase; margin: 0 0 6px; }
.history { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.history__item { padding: 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.history__head { display: flex; justify-content: space-between; gap: 10px; font-size: .84rem; }
.history__head b { text-transform: capitalize; }
.history__head span { color: var(--gold); font-weight: 700; white-space: nowrap; }
.history__lines { list-style: none; margin: 6px 0 8px; padding: 0; font-size: .82rem; color: var(--muted); }
.history__lines li { padding: 2px 0; }
.history__lines small { display: block; font-size: .74rem; color: #9d918b; }
.history__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.history__foot small { color: var(--muted); font-size: .76rem; }
.history__foot .btn { min-height: 36px; }


/* =========================================================
   v2.14 – account, punti sempre visibili, omaggio automatico, esauriti
   ========================================================= */
/* punti nel resoconto */
.order__cart .points { margin-top: 12px; }
.points__rows { margin: 0 0 6px; display: grid; }
.points__rows div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: .8rem; border-bottom: 1px dashed rgba(255, 255, 255, .06); }
.points__rows dt { color: var(--muted); }
.points__rows dd { margin: 0; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.cart__pts { display: inline-block !important; margin-top: 2px; padding: 0 7px; border-radius: 999px; font-size: .68rem !important; font-weight: 700; color: var(--gold) !important; background: rgba(240, 180, 76, .1); }

/* prodotti esauriti (dal pannello) */
.badge--off { background: #5a4f55; color: var(--text); }
.item.is-soldout h4, .item.is-soldout p, .item.is-soldout .item__price { opacity: .5; }
.add:disabled { opacity: .3; cursor: not-allowed; background: var(--red-soft); color: var(--red); }

/* notifica bibita omaggio */
.gift .confirm__inner { text-align: center; }
.gift__badge {
  width: 74px; height: 74px; margin: 4px auto 10px; border-radius: 50%; display: grid; place-content: center; line-height: 1;
  background: radial-gradient(circle at 35% 30%, #ffe0a0, var(--gold) 50%, #c47a1c); color: #2a1a05;
  box-shadow: 0 0 0 6px rgba(240, 180, 76, .15), 0 10px 30px rgba(240, 180, 76, .35);
}
.gift__badge span { font-family: var(--head); font-size: 1.9rem; font-weight: 700; }
.gift__badge small { font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.gift h3 { color: var(--gold); }
.gift__reset { margin: -4px 0 12px; font-size: .84rem; font-weight: 700; color: var(--text); }
.gift .sheet__label { text-align: left; }
.gift .confirm__actions { text-align: center; }
.gift .link-btn { font-size: .82rem; }

/* account */
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.auth-tabs button { min-height: 40px; border: 0; border-radius: 9px; background: none; font-weight: 700; font-size: .9rem; color: var(--muted); cursor: pointer; }
.auth-tabs button[aria-selected="true"] { background: var(--card); color: var(--text); box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 2px 8px rgba(0, 0, 0, .3); }
.auth .field { margin-bottom: 12px; }
.auth .field label { font-size: .8rem; margin-bottom: 4px; }
.auth .btn--block { margin-top: 6px; }
.auth__forgot { display: block; margin: -4px 0 8px auto; font-size: .8rem; color: var(--gold); }
.auth__back { display: block; margin: 10px auto 12px; font-size: .84rem; }
.auth__or { display: flex; align-items: center; gap: 10px; margin: 12px 0; color: var(--muted); font-size: .76rem; }
.auth__or::before, .auth__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn--bio { background: var(--text); color: var(--bg); }
.btn--bio svg { width: 22px; height: 22px; }
.btn--bio:hover { background: #fff; }
.pwd { position: relative; }
.pwd input { padding-right: 84px; }
.pwd__eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .06); color: var(--muted); font-size: .76rem; font-weight: 700; cursor: pointer; }
.strength { height: 4px; margin-top: 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.strength i { display: block; height: 100%; width: 0; background: var(--red); transition: width .25s, background .25s; }
.strength i.is-ok { background: var(--gold); }
.strength i.is-good { background: var(--wa); }
.hint { display: block; margin-top: 4px; color: var(--muted); font-size: .74rem; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; font-size: .8rem; line-height: 1.4; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--red); }
.consent em { font-style: normal; color: #8d817b; }
.auth__sent { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: rgba(37, 211, 102, .08); border: 1px solid rgba(37, 211, 102, .3); font-size: .84rem; }
.auth__sent p { margin: 0; }
.demo-note { margin-top: 6px !important; color: var(--gold); }
.demo-note .link-btn { color: var(--gold); font-weight: 700; padding: 0; }
.bio-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -6px 0 18px; padding: 12px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.bio-card b { display: block; font-size: .9rem; }
.bio-card small { display: block; color: var(--muted); font-size: .76rem; }
.account-box { margin: 4px 0 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.account-box summary { padding: 12px 14px; cursor: pointer; font-weight: 700; font-size: .9rem; }
.account-box form { padding: 0 14px 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.account-box .field { margin-bottom: 10px; }
.account-box .field label { font-size: .78rem; margin-bottom: 4px; }
.account-box input:disabled { opacity: .6; }
.account-box__foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 0 10px 12px; }
.link-btn--danger { color: #ff8f86; }
#profileContact { margin: 2px 0 0; word-break: break-word; }

/* =========================================================
   v3.7 – app sul telefono: guida per browser, discreta
   Tutto ciò che parla di app si vede solo su telefono/tablet
   e solo finché l'app non è installata (classe "can-install" da js/install.js)
   ========================================================= */
html:not(.can-install) [data-install],
html:not(.can-install) [data-install-only] { display: none !important; }
/* senza "Scarica l'app" (computer o app già installata) "Ordina ora" torna il pulsante bianco principale */
html:not(.can-install) .cta-app + .cta-solid { background: #fff; color: #111; border: 0; }

/* avviso piccolo in basso */
.ig-banner {
  position: fixed; left: 12px; right: 12px; z-index: 55;
  bottom: calc(86px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px; max-width: 480px; margin: 0 auto;
  padding: 10px 8px 10px 10px; border-radius: 18px;
  background: rgba(34, 29, 33, .96); border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transform: translateY(16px); opacity: 0; transition: transform .3s ease, opacity .3s ease;
}
.ig-banner.is-on { transform: none; opacity: 1; }
/* v4.3: mentre si compila l'ordine l'avviso si fa da parte */
.ig-banner.is-on.is-away { transform: translateY(24px); opacity: 0; pointer-events: none; }
@media (min-width: 900px) { .ig-banner { bottom: calc(16px + env(safe-area-inset-bottom)); } }
.ig-banner { border-color: rgba(215, 38, 30, .55); box-shadow: 0 12px 34px rgba(0, 0, 0, .55), 0 0 0 1px rgba(215, 38, 30, .15); }
.ig-banner img { width: 44px; height: 44px; border-radius: 11px; flex: none; }
.ig-banner p { flex: 1; min-width: 0; margin: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ig-banner p b { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-banner p span { font-size: .76rem; line-height: 1.3; color: var(--muted); }
.ig-banner__go {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 16px; border: 0; border-radius: 999px;
  background: linear-gradient(135deg, #ef3a2e, var(--red-2)); color: #fff; font: 700 .9rem var(--body); cursor: pointer;
  box-shadow: 0 6px 18px rgba(215, 38, 30, .45);
}
.ig-banner__go .ig-ico { width: 18px; height: 18px; stroke: #fff; }
.ig-banner__x {
  flex: none; width: 34px; height: 38px; border: 0; background: none; color: var(--muted);
  font-size: 1.4rem; line-height: 1; cursor: pointer;
}

/* guida: pannello che sale dal basso */
.install {
  border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 480px;
  background: var(--card); color: var(--text); border-radius: 22px 22px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .5); max-height: 90vh; max-height: 90dvh;
}
/* v4.3: solo dissolvenza (niente spostamento), così la freccia resta ancorata allo schermo */
.install[open] { animation: igFade .25s ease-out; }
.install::backdrop { background: rgba(0, 0, 0, .55); }
@media (min-width: 560px) { .install { margin: auto; border-radius: 22px; border: 1px solid var(--line); } }
/* v4.3: se il pulsante del browser da toccare è in basso, la guida sta in alto e lo lascia libero */
.install.install--top { margin: 0 auto auto; border-radius: 0 0 22px 22px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.install.install--top[open] { animation: igFade .25s ease-out; }
.install--top .install__inner { padding-top: calc(16px + env(safe-area-inset-top)); padding-bottom: 16px; }
@keyframes igFade { from { opacity: 0; } }
.ig-perks { list-style: none; margin: -4px 0 12px; padding: 0; display: grid; gap: 4px; }
.ig-perks li { position: relative; padding-left: 22px; font-size: .84rem; color: #e9dfd6; }
.ig-perks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 9px; height: 5px; border: solid var(--gold); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
/* freccia che indica sullo schermo il pulsante del browser (fuori dalla pagina) */
.ig-arrow {
  position: fixed; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: #ffcc33; font: 700 .85rem var(--body); text-shadow: 0 2px 8px rgba(0, 0, 0, .8); pointer-events: none;
  animation: igBounce 1.1s ease-in-out infinite;
}
.ig-arrow svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .7)); }
.ig-arrow--br { right: 10px; bottom: calc(6px + env(safe-area-inset-bottom)); }
.ig-arrow--bc { left: 50%; bottom: calc(6px + env(safe-area-inset-bottom)); margin-left: -40px; width: 80px; }
.ig-arrow--tr { right: 8px; top: calc(4px + env(safe-area-inset-top)); flex-direction: column-reverse; }
.ig-arrow--tr svg { transform: rotate(180deg); }
@keyframes igBounce { 50% { translate: 0 8px; } }
.ig-arrow--tr { animation-name: igBounceUp; }
@keyframes igBounceUp { 50% { translate: 0 -8px; } }
@media (prefers-reduced-motion: reduce) { .ig-arrow { animation: none; } }
.install__inner { position: relative; padding: 20px 18px calc(16px + env(safe-area-inset-bottom)); }
.install__close {
  position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: var(--bg); color: var(--text); font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.ig-head { display: flex; align-items: center; gap: 12px; padding-right: 44px; margin-bottom: 14px; }
.ig-head img { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.ig-head h2 { font-size: 1.3rem; line-height: 1.15; margin: 0; }
.ig-head p { margin: 2px 0 0; font-size: .86rem; color: var(--muted); }

.ig-main {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px;
  border: 0; border-radius: 14px; background: var(--red); color: #fff; font: 700 1.05rem var(--body); cursor: pointer;
  box-shadow: 0 8px 22px rgba(215, 38, 30, .35);
}
.ig-main .ig-ico { width: 22px; height: 22px; stroke: #fff; }
.ig-or { margin: 12px 0 6px; font-size: .8rem; color: var(--muted); text-align: center; }

.ig-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: ig; }
.ig-steps li {
  position: relative; counter-increment: ig; padding: 10px 12px 10px 48px;
  border-radius: 14px; background: var(--bg); border: 1px solid var(--line);
}
.ig-steps li::before {
  content: counter(ig); position: absolute; left: 12px; top: 10px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold); color: #2a1a05; font-weight: 700; font-size: .85rem;
}
.ig-steps p { margin: 0; font-size: .98rem; line-height: 1.5; }
.ig-steps p b { font-weight: 700; }
.ig-steps small { display: block; margin-top: 2px; font-size: .8rem; line-height: 1.45; color: var(--muted); }
.ig-steps--minor li { padding-top: 8px; padding-bottom: 8px; }
.ig-steps--minor p { font-size: .9rem; }

/* il pulsante del browser, disegnato come appare sul telefono */
.ig-key {
  display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; margin: -3px 1px 0;
  padding: 2px 7px; border-radius: 8px; background: #f2f2f7; color: #1c1c1e; font-size: .82rem; font-weight: 600; line-height: 1.4;
}
.ig-steps small .ig-key { padding: 1px 5px; font-size: .74rem; }
.ig-ico { width: 18px; height: 18px; flex: none; fill: none; stroke: #2f7cf6; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ig-ico--fill { fill: #1c1c1e; stroke: none; }
.ig-steps small .ig-ico { width: 15px; height: 15px; }

.ig-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.ig-link { min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--muted); font: 600 .9rem var(--body); cursor: pointer; }
.ig-done {
  min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--text); color: var(--bg); font: 700 .95rem var(--body); cursor: pointer;
}
.ig-foot .ig-link:only-child { margin-left: auto; }


/* v2.21 – pizza composta riconosciuta */
.sheet__recog { margin: 2px 0 8px; padding: 10px 12px; border-radius: 12px; font-size: .86rem; line-height: 1.4;
  background: rgba(240, 180, 76, .1); border: 1px solid rgba(240, 180, 76, .45); color: var(--text); }
.sheet__recog b { color: var(--gold); }
.cart__recog { font-style: italic; color: #cbbfb8 !important; }

@media (prefers-reduced-motion: reduce) {
  .ig-banner, .install[open] { transition: none; animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .status.is-open .status__dot, .status.is-closed .status__dot { animation: none; }
  .sheet[open] { animation: none; }
}
