/* RACE 2.09 — menu del cliente, aspetto 2026 (disegno «Menu del cliente» approvato da Antonio).
   Vale solo dentro .g-app.g-m2: le altre pagine del cliente restano con guest.css.
   Colori: --g-accent (colore del locale), --g-bg/--g-surface/--g-ink/--g-muted (chiaro di giorno, scuro la sera),
   --g-a1..--g-a4 = «aura», quattro tinte morbide della famiglia del colore del locale (branding.aura_colors). */

.g-app.g-m2 {
  --m2-side: max(16px, calc(50vw - 324px));
  --m2-bottom: max(22px, env(safe-area-inset-bottom));
  --m2-glass: color-mix(in srgb, var(--g-surface) 72%, transparent);
  --m2-glass-strong: color-mix(in srgb, var(--g-surface) 84%, transparent);
  --m2-chip: color-mix(in srgb, var(--g-ink) 6%, transparent);
  --m2-card-soft: color-mix(in srgb, var(--g-ink) 5%, transparent);
  --m2-plus-bg: #FFFFFF;
  --m2-plus-ink: #1D1D1F;
  --m2-glow-op: .5;
  --m2-amb-op: .38;
  position: relative;
  display: flow-root; /* il margine della copertina sul computer non deve «uscire» dalla pagina */
  overflow-x: clip;
}
.g-app.g-m2.is-dark { --m2-glow-op: .72; --m2-amb-op: .5; --m2-chip: color-mix(in srgb, var(--g-ink) 9%, transparent); --m2-card-soft: color-mix(in srgb, var(--g-ink) 7%, transparent); --m2-plus-bg: #F7EFEA; }

/* Luce dell'ambiente: la copertina sfocata dietro la pagina */
.m2-ambient { position: absolute; left: 0; right: 0; top: 120px; height: 760px; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 35%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 35%, transparent 100%); }
.m2-ambient::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: min(150%, 980px); transform: translateX(-50%);
  background: var(--g-cover, none) center / cover no-repeat; filter: blur(70px) saturate(1.5); opacity: var(--m2-amb-op); }
.g-m2.no-cover .m2-ambient { top: 0; height: 520px; }
.g-m2.no-cover .m2-ambient::before { filter: blur(60px); opacity: .9;
  background: radial-gradient(40% 50% at 20% 20%, var(--g-a1, transparent), transparent 70%), radial-gradient(45% 50% at 85% 10%, var(--g-a2, transparent), transparent 70%),
              radial-gradient(40% 45% at 60% 60%, var(--g-a3, transparent), transparent 70%); }

/* Copertina: grande, che «respira» e sfuma nella pagina */
.m2-hero { position: relative; max-width: 680px; height: 400px; margin: 0 auto; }
.m2-hero-media { position: absolute; inset: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 52%, rgba(0,0,0,.55) 74%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 52%, rgba(0,0,0,.55) 74%, transparent 100%); }
.m2-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,0) 28%); }
.m2-cover { display: block; width: 100%; height: 100%; object-fit: cover; animation: m2-respira 14s ease-in-out infinite alternate; }
@keyframes m2-respira { from { transform: scale(1.03) translate(0, 0); } to { transform: scale(1.16) translate(-12px, -10px); } }
.g-m2.no-cover .m2-hero { height: 130px; }
.g-m2.no-cover .m2-hero-media::after { display: none; }

/* Barra in alto: tavolo, lingua, account */
.m2-topbar { position: absolute; z-index: 2; top: max(16px, env(safe-area-inset-top)); left: 16px; right: 16px; display: flex; align-items: center; gap: 8px; }
.g-app .m2-pill { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 38px; padding: 0 14px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px;
  background: rgba(0,0,0,.32); color: #FFFFFF; font: inherit; font-size: 14px; font-weight: 700; line-height: 1; text-decoration: none; cursor: pointer;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: transform .15s ease; }
.g-app .m2-pill:active { transform: scale(.94); }
.g-app .m2-table { height: 34px; padding: 0 13px; font-size: 13px; cursor: default; }
.g-app .m2-table:active { transform: none; }
.g-app .m2-round { width: 38px; padding: 0; justify-content: center; font-size: 18px; }
.g-app .m2-round span { margin: 0; }
.g-app .m2-me { max-width: 56vw; }
.g-app .m2-me.is-in { padding-left: 3px; }
.m2-me-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m2-avatar { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: #E9DDCF; color: #1D1D1F; font-size: 12px; font-weight: 800; }
.m2-avatar img { width: 100%; height: 100%; object-fit: cover; }
.g-m2.no-cover .m2-pill { background: var(--m2-glass); border-color: var(--g-line); color: var(--g-ink); }
.m2-live { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #34C759; animation: m2-vivo 1.6s ease-out infinite; }
@keyframes m2-vivo { from { box-shadow: 0 0 0 0 rgba(52,199,89,.75); } to { box-shadow: 0 0 0 9px rgba(52,199,89,0); } }

/* Nome del locale e saluto del momento */
.m2-intro { position: relative; margin-top: -92px; }
.g-m2.no-cover .m2-intro { margin-top: -40px; }
.m2-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; min-width: 0; }
.m2-logo { flex: none; width: 64px; height: 64px; border-radius: 18px; object-fit: contain; background: var(--g-surface); box-shadow: 0 10px 26px rgba(0,0,0,.25); }
.m2-monogram { display: grid; place-items: center; background: linear-gradient(135deg, var(--g-accent), color-mix(in srgb, var(--g-accent) 70%, var(--g-a3, #000))); color: var(--g-on-accent); font-family: var(--g-font-head); font-size: 28px; font-weight: 800; }
.m2-brand-text { min-width: 0; }
.g-app .m2-brand h1 { margin: 0; font-size: 32px; font-weight: 800; line-height: 1.08; letter-spacing: -.025em; overflow-wrap: anywhere; }
.m2-brand p { margin: 3px 0 0; color: var(--g-muted); font-size: 14px; font-weight: 600; }
.m2-greet { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--g-font-head); color: var(--g-ink); font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.m2-greet svg { flex: none; color: var(--g-accent); }
.g-m2.is-dark .m2-greet svg { color: color-mix(in srgb, var(--g-accent) 45%, white); }

/* «Il tuo ordine»: torna allo stato del tavolo */
.g-app .m2-live-order { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 22px; background: var(--m2-glass-strong); color: var(--g-ink); text-decoration: none;
  box-shadow: var(--g-shadow); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.m2-live-ico { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--g-a1, var(--g-bg)), var(--g-a3, var(--g-bg))); color: var(--g-ink); }
.m2-live-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.m2-live-text strong { font-size: 15px; }
.m2-live-text small { color: var(--g-muted); font-size: 12.5px; }
.m2-live-order b { font-size: 15px; font-variant-numeric: tabular-nums; }
/* 2.10 conto saldato: pillola verde «✓ Pagato» al posto di €0,00 */
.m2-live-order b.m2-paid { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; background: #E9F9EE; color: #1F8A3E; font-size: 13.5px; font-weight: 700; }
@media (prefers-color-scheme: dark) { .m2-live-order b.m2-paid { background: rgba(52, 199, 89, .18); color: #4CD97B; } }
.m2-live-order svg:last-child { flex: none; color: var(--g-muted); }

/* Contenuto */
.g-app.g-m2 main.guest-shell { position: relative; padding-bottom: 130px; }
.g-m2 .g-pay-waiting, .g-m2 .g-translating { margin-top: 14px; }
.g-m2 .g-block { margin-top: 16px; }
.g-m2 .g-nows-block { padding: 10px; border-radius: 26px; background: var(--m2-glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.g-m2 .g-nows-block .g-nows-head { padding: 2px 6px 0; }
.g-m2 .g-nows-block .g-rail { margin: 0 -10px; padding: 2px 10px 4px; scroll-padding: 0 10px; }
.g-m2 .g-now { background: var(--g-surface); box-shadow: none; border-radius: 18px; }

/* Categorie: pillole che restano in alto mentre scorri (vetro solo quando sono «attaccate») */
.g-app.g-m2 .g-sticky { margin: 18px -16px 0; padding: 8px 16px; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid transparent; transition: background .2s ease, border-color .2s ease; }
.g-app.g-m2 .g-sticky.is-stuck { background: color-mix(in srgb, var(--g-bg) 80%, transparent); border-bottom-color: var(--g-line); backdrop-filter: blur(22px) saturate(170%); -webkit-backdrop-filter: blur(22px) saturate(170%); }
.g-m2 .g-moments { border-radius: 18px; background: var(--m2-glass); box-shadow: none; }
.g-m2 .g-moments button { border-radius: 14px; }
.g-m2 .g-cats { gap: 8px; }
.g-app.g-m2 .g-cats a { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--m2-chip); color: var(--g-ink); font-size: 15px; font-weight: 600; }
.g-app.g-m2 .g-cats a.is-active { background: var(--g-accent); color: var(--g-on-accent); font-weight: 700; }
.g-m2 .g-search-toggle { width: 38px; height: 38px; border-radius: 50%; background: var(--m2-chip); box-shadow: none; }
.g-m2 .g-search input { border-radius: 999px; background: var(--m2-glass-strong); }

/* Il più ordinato del mese: grande, con la luce della sua foto */
.m2-top { margin-top: 18px; }
.g-app .m2-h2 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.g-app.g-m2 .m2-hl { display: block; margin-top: 12px; padding: 0; border-radius: 0; background: transparent; box-shadow: none; }
.m2-hl-photo { position: relative; aspect-ratio: 16 / 10; }
.m2-glow { position: absolute; left: 4%; top: 12%; width: 92%; height: 92%; border-radius: 30px; object-fit: cover; filter: blur(26px) saturate(1.7); opacity: var(--m2-glow-op); pointer-events: none; }
.m2-hl-img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 24px; object-fit: cover; }
.m2-hl-photo.is-art { border-radius: 24px; overflow: hidden; background: radial-gradient(120% 90% at 85% 10%, color-mix(in srgb, var(--g-accent) 55%, transparent) 0%, transparent 60%), color-mix(in srgb, var(--g-accent) 18%, var(--g-surface)); }
.m2-badge { position: absolute; z-index: 1; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: rgba(0,0,0,.45); color: #FFFFFF; font-size: 12px; font-weight: 700; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.m2-act { position: absolute; z-index: 1; right: 10px; bottom: 10px; }
.m2-hl .m2-act { right: 12px; bottom: 12px; }
.m2-hl-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 10px; }
.g-app .m2-hl-row h3 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.25; }
.m2-hl-row .g-price { flex: none; margin: 0; padding: 0; font-size: 17px; }
.m2-hl-meta { margin-top: 3px; color: var(--g-muted); font-size: 13px; font-weight: 600; }
.m2-hl.is-unavailable .m2-hl-photo { filter: grayscale(.8); }

/* Piatti: due colonne di foto (tre sullo schermo grande) */
.g-m2 .g-category { padding-top: 28px; }
.g-m2[data-searching] .m2-top { display: none; }
.g-app.g-m2 .g-category-head h2 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.g-app.g-m2 .g-products:not(.g-shelf) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; margin-top: 12px; }
.g-app.g-m2 .m2-card { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 0; border-radius: 0; background: transparent; box-shadow: none; }
.m2-photo { position: relative; aspect-ratio: 1 / 1; border-radius: 20px; background: var(--m2-chip); box-shadow: 0 14px 26px -18px rgba(0,0,0,.55); }
.m2-img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 20px; object-fit: cover; }
.m2-photo.is-art { overflow: hidden; background:
  radial-gradient(120% 90% at 85% 10%, color-mix(in srgb, var(--g-accent) 55%, transparent) 0%, transparent 60%),
  radial-gradient(90% 80% at 10% 100%, color-mix(in srgb, hsl(var(--art-hue, 20) 70% 55%) 35%, transparent) 0%, transparent 70%),
  color-mix(in srgb, var(--g-accent) 18%, var(--g-surface)); }
.m2-photo .g-tile-art span { font-size: 56px; }
.g-app .m2-card h3 { margin: 6px 2px 0; font-size: 15px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m2-card .g-product-meta { gap: 4px 6px; padding: 0 2px; }
.m2-card .g-price { font-size: 14px; }
.m2-card .g-tag { padding: 1px 7px; font-size: 11px; }
.m2-card .g-mini-icons, .m2-card .g-pt-marks { padding: 0 2px; }
.m2-card.is-unavailable { opacity: .6; }
.m2-card.is-unavailable .m2-photo { filter: grayscale(.8); }

/* Il «+» bianco sulla foto; con il piatto già scelto diventa − n + del colore del locale */
.g-app.g-m2 .g-card-stepper:not(.has-qty) .g-add { width: 40px; height: 40px; background: var(--m2-plus-bg); color: var(--m2-plus-ink); box-shadow: 0 4px 12px rgba(0,0,0,.22); }
.g-app.g-m2 .g-card-stepper .g-add { transition: transform .15s ease; }
.g-app.g-m2 .g-card-stepper .g-add:active { transform: scale(.88); }
.g-m2 .g-card-stepper.has-qty { animation: m2-spunta .38s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes m2-spunta { 0% { transform: scale(.6); } 70% { transform: scale(1.08); } 100% { transform: none; } }
.m2-act .g-soldout { background: rgba(0,0,0,.6); color: #FFFFFF; }

/* Barra dell'ordine: vetro, sempre in basso; il Consigliere le sta accanto */
.g-app.g-m2 button.g-cartbar { left: var(--m2-side); right: var(--m2-side); bottom: var(--m2-bottom); width: auto; min-height: 62px; height: 62px; gap: 10px; padding: 0 8px 0 11px; transform: none;
  border: 1px solid color-mix(in srgb, var(--g-ink) 10%, transparent); border-radius: 999px; background: var(--m2-glass); color: var(--g-ink);
  box-shadow: 0 14px 36px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.35); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  animation: m2-rise .35s cubic-bezier(.2, .8, .2, 1); }
.g-app.g-m2.has-adv button.g-cartbar { right: calc(var(--m2-side) + 72px); }
.g-app.g-m2 .g-cartbar .g-count { flex: none; min-width: 36px; height: 36px; border-radius: 999px; background: var(--g-accent); color: var(--g-on-accent); font-size: 15px; font-weight: 800; }
.g-app.g-m2 .g-cartbar .g-grow { min-width: 0; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-app.g-m2 .g-cartbar strong { flex: none; display: inline-flex; align-items: center; height: 44px; padding: 0 15px; border-radius: 999px; background: var(--g-accent); color: var(--g-on-accent); font-size: 15.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.g-app.g-m2 .g-cartbar .g-count + .g-grow + strong { margin-left: auto; }
.g-app.g-m2 .g-cartbar.bump { animation: m2-bump .42s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes m2-rise { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes m2-bump { 40% { transform: scale(1.04); } 100% { transform: none; } }

/* Consigliere: il bottone rotondo con la scintilla e il suo alone */
.g-app.g-m2 .g-advisor-fab, .g-app.g-m2 .g-cartbar:not([hidden]) ~ .g-advisor-fab { right: var(--m2-side); bottom: var(--m2-bottom); width: 62px; height: 62px; padding: 0; justify-content: center;
  border: 1px solid rgba(255,255,255,.55); background: linear-gradient(135deg, var(--g-a1, var(--g-surface)), var(--g-a3, var(--g-surface))); color: var(--g-ink);
  box-shadow: 0 14px 36px rgba(0,0,0,.25); animation: g-fab-in .3s cubic-bezier(.2, .8, .2, 1); }
.g-app.g-m2 .g-advisor-fab .g-fab-label { display: none; }
.g-app.g-m2 .g-advisor-fab.is-small { width: 62px; padding: 0; }
.g-app.g-m2 .g-advisor-fab .g-fab-icon { display: grid; place-items: center; }
.g-app.g-m2 .g-advisor-fab::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: inherit; animation: m2-alone 2.4s ease-out infinite; pointer-events: none; }
.g-app.g-m2 .g-advisor-fab:active { transform: scale(.92); }
@keyframes m2-alone { from { transform: scale(1); opacity: .6; } to { transform: scale(1.55); opacity: 0; } }
.g-app.g-m2 .g-advisor-nudge, .g-app.g-m2 .g-cartbar:not([hidden]) ~ .g-advisor-nudge { right: var(--m2-side); bottom: calc(var(--m2-bottom) + 74px); padding: 4px 4px 4px 14px; border: 1px solid var(--g-line); border-radius: 18px 18px 6px 18px;
  background: var(--m2-glass-strong); color: var(--g-ink); box-shadow: 0 8px 24px rgba(0,0,0,.15); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.g-app.g-m2 .g-advisor-nudge::after { display: none; }

/* In fondo: prenota un tavolo e i social del locale */
.m2-end { display: flex; flex-direction: column; gap: 28px; margin-top: 34px; }
.g-app .m2-book { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border: 0; border-radius: 26px; overflow: hidden; cursor: pointer; text-align: left;
  background: linear-gradient(135deg, var(--g-a1, var(--g-surface)) 0%, var(--g-a2, var(--g-surface)) 55%, var(--g-a3, var(--g-surface)) 100%); color: var(--g-ink); box-shadow: 0 14px 30px rgba(0,0,0,.18); transition: transform .15s ease; }
.g-app .m2-book:active { transform: scale(.98); }
.m2-book::before { content: ""; position: absolute; left: -40px; top: -60px; width: 200px; height: 160px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.45), transparent); pointer-events: none; }
.m2-book > * { position: relative; }
.m2-book-ico { display: grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.4); }
.g-m2.is-dark .m2-book-ico { background: rgba(255,255,255,.14); }
.g-m2.is-dark .m2-book::before { opacity: .35; }
.m2-book-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.m2-book-text strong { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.g-app .m2-book-text small { color: inherit; font-size: 13px; opacity: .8; }
.m2-book > svg { flex: none; opacity: .6; }
/* 2.16 (14/10) lidi: «Prenota l'ombrellone» sopra «Prenota un tavolo» (link, non pulsante) */
.g-app a.m2-book { color: var(--g-ink); text-decoration: none; }
.m2-end > .m2-beach + .m2-book { margin-top: -16px; }
.m2-follow { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.m2-follow-title { color: var(--g-muted); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; text-align: center; }
.m2-socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 12px; }
.g-app .m2-soc { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 54px; color: var(--g-muted); font-size: 12px; font-weight: 600; text-decoration: none; transition: transform .15s ease; }
.g-app .m2-soc:active { transform: scale(.92); }
.m2-soc-ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 18px; background: var(--m2-chip); color: var(--g-ink); box-shadow: 0 8px 18px rgba(0,0,0,.16); }
.m2-soc.is-instagram .m2-soc-ico { background: linear-gradient(135deg, #F9A13A 0%, #E1306C 50%, #8A3AB9 100%); color: #FFFFFF; }
.m2-soc.is-facebook .m2-soc-ico { background: #1877F2; color: #FFFFFF; }
.m2-soc.is-whatsapp .m2-soc-ico { background: #25D366; color: #FFFFFF; }
.m2-soc.is-phone .m2-soc-ico { background: var(--g-accent); color: var(--g-on-accent); }
.m2-end .g-review-row { justify-content: center; }
.g-m2 .g-foot { padding: 24px 0 8px; }

/* ===================== 2.09 passo 1b: scheda del piatto (disegno «Scheda») ===================== */
.g-m2 .m2-dish { height: min(806px, calc(100dvh - 38px)); max-height: none; border-radius: 30px 30px 0 0; background: var(--g-surface); box-shadow: 0 -12px 40px rgba(0,0,0,.35); }
.g-m2 .m2-dish:not(.has-photo) { height: auto; max-height: min(806px, calc(100dvh - 38px)); } /* senza foto la scheda e' alta quanto serve */
.g-m2 .m2-dish[open] { animation: m2-sale .5s cubic-bezier(.2, .85, .25, 1); }
.g-m2 .m2-dish::backdrop { background: rgba(0,0,0,.42); }
@keyframes m2-sale { from { transform: translateY(100%); } to { transform: none; } }
.g-m2 .m2-dish .m2-dish-scroll { position: relative; padding: 0 0 150px; overflow-x: hidden; overscroll-behavior: contain; }
.m2-dish-amb { position: absolute; left: -15%; right: -15%; top: 170px; height: 560px; pointer-events: none; background: var(--m2-dish-photo, none) center / cover no-repeat;
  filter: blur(70px) saturate(1.6); opacity: var(--m2-amb-op);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 30%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 30%, transparent 100%); }
.g-m2 .m2-dish .m2-dish-photo { position: relative; height: 350px; background: transparent;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 58%, rgba(0,0,0,.5) 80%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 58%, rgba(0,0,0,.5) 80%, transparent 100%); }
.m2-dish-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.38) 0%, rgba(0,0,0,0) 30%); pointer-events: none; }
.m2-dish-main { position: relative; padding: 64px 20px 0; }
.m2-dish.has-photo .m2-dish-main { margin-top: -58px; padding-top: 0; }
.m2-dish-cat { display: block; min-height: 18px; color: var(--g-muted); font-size: 13px; font-weight: 700; }
.m2-dish-head { display: flex; align-items: flex-start; gap: 12px; margin-top: 4px; }
.g-app .m2-dish .g-detail-title { flex: 1; min-width: 0; margin: 0; padding: 0; font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: -.025em; overflow-wrap: anywhere; }
.m2-dish-price { flex: none; margin-top: 4px; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.m2-dish .g-detail-chips { gap: 8px; margin-top: 14px; }
.m2-dish .g-chip { height: 32px; padding: 0 12px; background: var(--m2-chip); font-size: 13px; }
.g-app .m2-dish .g-detail-desc { margin: 16px 0 0; color: var(--g-ink); font-size: 16px; line-height: 1.5; }
.g-app .m2-dish .m2-dish-sec { margin-top: 24px; padding: 0; border-radius: 0; background: transparent; }
.g-app .m2-dish .m2-dish-sec > h3 { margin: 0 0 8px; color: var(--g-muted); font-family: var(--g-font-body); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.g-app .m2-dish .m2-dish-sec.is-big { margin-top: 28px; }
.g-app .m2-dish .m2-dish-sec.is-big > h3 { margin-bottom: 12px; color: var(--g-ink); font-family: var(--g-font-head); font-size: 21px; font-weight: 800; letter-spacing: -.02em; text-transform: none; }
.m2-dish .g-allergens { gap: 8px; }
.m2-dish .g-allergen { gap: 4px; height: 32px; padding: 0 12px 0 6px; border-radius: 999px; background: rgba(255,159,10,.16); color: #94550A; font-size: 13px; }
.g-m2.is-dark .m2-dish .g-allergen { color: #FFC46B; }
.m2-dish .g-allergen > span { width: 22px; height: 22px; background: transparent; font-size: 14px; }
.m2-dish .g-pt-detail-warn { flex-basis: 100%; }

/* Scelte del piatto: righe in una scheda, interruttore per le aggiunte, pallino per le scelte singole */
.g-app :is(.m2-dish, .m2-opts) .opt-ui.is-list .opt-tiles { display: block; padding: 0 14px; border-radius: 20px; background: var(--m2-card-soft); }
.g-app :is(.m2-dish, .m2-opts) .opt-ui.is-list .opt-tile { flex-direction: row; align-items: center; gap: 12px; min-height: 54px; padding: 0; border: 0; border-top: 1px solid var(--g-line); border-radius: 0; background: transparent; box-shadow: none; }
.g-app :is(.m2-dish, .m2-opts) .opt-ui.is-list .opt-tile:first-child { border-top: 0; }
.g-app :is(.m2-dish, .m2-opts) .opt-ui.is-list .opt-tile:active { transform: none; }
.g-app :is(.m2-dish, .m2-opts) .opt-ui.is-list .opt-name { flex: 1; font-size: 15px; font-weight: 600; }
.g-app :is(.m2-dish, .m2-opts) .opt-ui.is-list .opt-price { font-size: 14px; font-weight: 600; }
.g-app :is(.m2-dish, .m2-opts) .opt-ui.is-list .opt-tick { position: relative; inset: auto; order: 3; flex: none; }
.g-app :is(.m2-dish, .m2-opts) .opt-ui.is-list .opt-g:not([data-single="1"]) .opt-tick { width: 50px; height: 30px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--g-ink) 16%, transparent); transition: background .25s ease; }
.g-app :is(.m2-dish, .m2-opts) .opt-ui.is-list .opt-g:not([data-single="1"]) .opt-tick::after { content: ""; position: absolute; left: 2px; top: 2px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: #FFFFFF; box-shadow: 0 2px 6px rgba(0,0,0,.25); transform: none; transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.g-app :is(.m2-dish, .m2-opts) .opt-ui.is-list .opt-g:not([data-single="1"]) .opt-tile.is-on .opt-tick { background: var(--g-accent); }
.g-app :is(.m2-dish, .m2-opts) .opt-ui.is-list .opt-g:not([data-single="1"]) .opt-tile.is-on .opt-tick::after { transform: translateX(20px); }
.g-app :is(.m2-dish, .m2-opts) .opt-ui.is-list .opt-g[data-single="1"] .opt-tick { width: 24px; height: 24px; border: 2px solid color-mix(in srgb, var(--g-ink) 25%, transparent); border-radius: 50%; }
.g-app :is(.m2-dish, .m2-opts) .opt-ui.is-list .opt-g[data-single="1"] .opt-tile.is-on .opt-tick { border: 7px solid var(--g-accent); background: #FFFFFF; }
.g-app :is(.m2-dish, .m2-opts) .opt-ui.is-list .opt-g[data-single="1"] .opt-tile.is-on .opt-tick::after { display: none; }
.g-app :is(.m2-dish, .m2-opts) .opt-ui .opt-tile:has(.opt-in:focus-visible) { outline-offset: -2px; }
.g-app :is(.m2-dish, .m2-opts) .opt-ui.is-wizard .opt-tile { background: var(--m2-card-soft); box-shadow: none; }
.g-m2.is-dark :is(.m2-dish, .m2-opts) .opt-tile.is-on .opt-price, .g-m2.is-dark :is(.m2-dish, .m2-opts) .opt-badge.is-req { color: color-mix(in srgb, var(--g-accent) 45%, white); }
.g-m2.is-dark :is(.m2-dish, .m2-opts) .opt-g.is-done .opt-badge.is-req { color: var(--g-on-accent); }
.g-app :is(.m2-dish, .m2-opts) .opt-ui.is-wizard .opt-tile.is-on { background: color-mix(in srgb, var(--g-accent) 12%, transparent); }

/* Nota per la cucina */
.m2-dish-note { display: flex; align-items: center; gap: 10px; height: 50px; margin-top: 12px; padding: 0 16px; border-radius: 18px; background: var(--m2-card-soft); color: var(--g-muted); }
.m2-dish-note:focus-within { outline: 3px solid color-mix(in srgb, var(--g-accent) 45%, transparent); outline-offset: 1px; }
.g-app .m2-dish-note input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: transparent; color: var(--g-ink); font: inherit; font-size: 15px; outline: none; }
.m2-dish-note input::placeholder { color: var(--g-muted); }

/* «Cosa ci abbino?» con la scintilla del Consigliere */
.g-app .m2-dish .m2-dish-ask { margin-top: 16px; padding: 12px 14px; border: 0; border-radius: 22px; background: var(--m2-card-soft); }
.g-app .m2-dish .m2-dish-ask > .m2-ask-ico { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--g-a1, var(--g-bg)), var(--g-a3, var(--g-bg))); color: var(--g-ink); font-size: 0; }
.g-app .m2-dish .m2-dish-ask > span:last-child { color: var(--g-muted); }

/* «Ci sta bene con»: due foto per riga, con il + bianco */
.g-app .m2-dish .g-pair-rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; overflow: visible; }
.g-app .m2-dish .g-pair { position: relative; display: block; width: auto; padding: 0; border-radius: 0; background: transparent; box-shadow: none; }
.g-app .m2-dish .g-pair-photo { display: grid; width: 100%; height: 108px; border-radius: 18px; font-size: 30px; }
.g-app .m2-dish .g-pair-text { display: grid; gap: 2px; margin-top: 8px; }
.g-app .m2-dish .g-pair-text strong { font-size: 14px; font-weight: 700; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.g-app .m2-dish .g-pair-text small { color: var(--g-ink); font-size: 14px; font-weight: 700; }
.g-app .m2-dish .g-pair .g-add { position: absolute; right: 8px; top: 66px; width: 34px; height: 34px; background: var(--m2-plus-bg); color: var(--m2-plus-ink); box-shadow: 0 4px 12px rgba(0,0,0,.2); }

/* Foto e voti dei clienti, il tuo parere */
.m2-dish .g-gallery-item { width: 120px; height: 100px; border-radius: 16px; }
.m2-dish .g-quote { padding: 12px 14px; border-radius: 18px; background: var(--m2-card-soft); }
.g-app .m2-dish .g-mini-btn { border: 0; background: var(--m2-card-soft); }
.g-app .m2-dish .g-inline-text { border: 0; border-radius: 16px; background: var(--m2-card-soft); }
.m2-dish-safe { margin: 26px 0 0; color: var(--g-muted); font-size: 12px; text-align: center; }

/* Sopra la scheda: maniglia e «torna al menu» (vetro sulla foto) */
.m2-dish-bar { position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 70px; display: grid; place-items: center; padding: 16px 68px 0;
  border-bottom: 1px solid var(--g-line); background: color-mix(in srgb, var(--g-surface) 94%, transparent); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.m2-dish-bar span { max-width: 100%; overflow: hidden; font-family: var(--g-font-head); font-size: 16px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; transform: translateY(6px); transition: transform .2s ease; }
.m2-dish.is-scrolled .m2-dish-bar { opacity: 1; }
.m2-dish.is-scrolled .m2-dish-bar span { transform: none; }
.m2-grab { position: absolute; z-index: 3; left: 50%; top: 8px; width: 40px; height: 5px; margin-left: -20px; border-radius: 99px; background: color-mix(in srgb, var(--g-ink) 18%, transparent); pointer-events: none; }
.m2-dish.has-photo .m2-grab { background: rgba(255,255,255,.75); }
.g-app .m2-dish .m2-dish-back { position: absolute; z-index: 3; left: 16px; top: 20px; width: 40px; height: 40px; border: 1px solid transparent; background: var(--m2-chip); color: var(--g-ink); transition: transform .15s ease; }
.g-app .m2-dish.has-photo .m2-dish-back { border-color: rgba(255,255,255,.28); background: rgba(0,0,0,.32); color: #FFFFFF; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.g-app .m2-dish .m2-dish-back:active { transform: scale(.9); }
.g-app .m2-dish.has-photo.is-scrolled .m2-dish-back { border-color: transparent; background: var(--m2-chip); color: var(--g-ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
.m2-dish.has-photo.is-scrolled .m2-grab { background: color-mix(in srgb, var(--g-ink) 18%, transparent); }

/* In basso: quantità e «Aggiungi» con il totale */
.g-app .m2-dish .g-detail-foot { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; gap: 10px; padding: 34px 16px max(26px, env(safe-area-inset-bottom)); border: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--g-surface) 0%, transparent) 0%, var(--g-surface) 42%); }
.g-app .m2-dish .g-stepper.big { height: 58px; min-height: 58px; padding: 0 5px; gap: 0; border-radius: 999px; background: var(--m2-chip); }
.g-app .m2-dish .g-stepper.big button { width: 44px; height: 44px; background: transparent; box-shadow: none; color: var(--g-ink); }
.g-app .m2-dish .g-stepper.big output { min-width: 22px; font-size: 18px; }
.g-app .m2-dish .g-detail-foot .g-btn { height: 58px; min-height: 58px; padding: 0 22px; justify-content: space-between; border-radius: 999px; font-size: 17px; font-weight: 800; box-shadow: 0 12px 28px rgba(0,0,0,.25); }
.g-app .m2-dish .g-detail-foot .g-btn:only-child, .g-app .m2-dish .g-detail-foot .g-btn.is-incomplete, .g-app .m2-dish .g-detail-foot .g-btn:disabled { justify-content: center; }
.g-app .m2-dish .g-detail-foot .g-btn > span:last-child { font-variant-numeric: tabular-nums; }

/* 2.09 passo 1b: il piatto che «vola» nella barra dell'ordine (menu2.js) */
.m2-fly { position: fixed; z-index: 70; left: 0; top: 0; width: 84px; height: 84px; margin: -42px 0 0 -42px; border: 3px solid #FFFFFF; border-radius: 50%; object-fit: cover; pointer-events: none;
  box-shadow: 0 12px 30px rgba(0,0,0,.35); background: var(--g-accent); color: var(--g-on-accent); display: grid; place-items: center; font-family: var(--g-font-head); font-size: 34px; font-weight: 800; }

/* ===================== 2.09 passo 1c: pannelli dal basso (ordine, Consigliere, account) ===================== */
.g-m2 .m2-sheet { position: relative; overflow: hidden; border-radius: 30px 30px 0 0; background: var(--g-surface); box-shadow: 0 -12px 40px rgba(0,0,0,.35); }
.g-m2 .m2-sheet[open] { animation: m2-sale .5s cubic-bezier(.2, .85, .25, 1); }
.g-m2 .m2-sheet::backdrop { background: rgba(0,0,0,.42); }
.g-m2 .m2-sheet::before { content: ""; position: absolute; left: -20%; right: -20%; top: -140px; height: 280px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, var(--g-a1, transparent), transparent); opacity: .45; filter: blur(30px); }
.g-m2 .m2-advisor::before, .g-m2 .m2-account::before { background: radial-gradient(closest-side, var(--g-a2, transparent), transparent); opacity: .4; }
.g-m2 .m2-sheet > * { position: relative; }
.g-m2 .m2-sheet > .m2-grab { position: relative; left: auto; top: auto; flex: none; display: block; margin: 10px auto 0; }
.g-app .m2-sheet .g-close { width: 36px; height: 36px; background: var(--m2-chip); color: var(--g-ink); }
.g-app .m2-sheet-head { align-items: flex-start; padding: 14px 20px 6px; }
.g-app .m2-sheet-head h2 { margin: 4px 0 0; font-size: 28px; font-weight: 800; line-height: 1.1; letter-spacing: -.025em; }
.g-app .m2-sheet-head p { margin: 6px 0 0; color: var(--g-muted); font-size: 14px; line-height: 1.45; }
.m2-kicker { display: inline-flex; align-items: center; gap: 7px; color: var(--g-muted); font-size: 13px; font-weight: 700; }

/* «Il tuo ordine» */
.g-m2 .m2-cart[open] { height: min(790px, calc(100dvh - 54px)); max-height: none; }
.g-app .m2-cart .g-sheet-body { padding: 10px 16px 16px; }
.g-app .m2-lines { display: flex; flex-direction: column; padding: 4px 14px; border-radius: 24px; background: var(--m2-card-soft); }
.g-app .m2-line { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; grid-template-areas: "ph name step" "ph note step" "in in in"; align-items: center; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--g-line); }
.g-app .m2-line:last-child { border-bottom: 0; }
.m2-line-ph { grid-area: ph; align-self: start; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; overflow: hidden; background: color-mix(in srgb, var(--g-accent) 22%, var(--g-surface)); }
.m2-line-ph img { width: 100%; height: 100%; object-fit: cover; }
.m2-line-ph i { font-family: var(--g-font-head); font-size: 20px; font-style: normal; font-weight: 800; color: var(--g-ink); opacity: .6; }
.g-app .m2-line .g-line-name { grid-area: name; display: flex; flex-direction: column; min-width: 0; font-size: 15px; font-weight: 600; }
.m2-line .g-line-name b { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.g-app .m2-line .g-line-name small { margin-top: 1px; color: var(--g-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.g-app .m2-line .g-stepper { grid-area: step; gap: 0; height: 36px; padding: 0 3px; border-radius: 999px; background: var(--m2-chip); }
.g-app .m2-line .g-stepper button { width: 30px; height: 30px; background: transparent; box-shadow: none; color: var(--g-ink); }
.g-app .m2-line .g-stepper output { min-width: 18px; font-size: 15px; }
.g-app .m2-line .g-note-btn { grid-area: note; justify-self: start; padding: 0; font-size: 12.5px; }
.g-app .m2-line .g-line-note { grid-area: in; margin-top: 8px; border: 0; border-radius: 14px; background: var(--g-surface); }
.g-app .m2-cart .m2-ask { margin-top: 14px; padding: 12px 14px; border: 0; border-radius: 22px; background: var(--m2-card-soft); }
.g-app .m2-ask > .m2-ask-ico { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--g-a1, var(--g-bg)), var(--g-a3, var(--g-bg))); color: var(--g-ink); font-size: 0; }
.g-app .m2-ask > span:last-child { color: var(--g-muted); }
.g-app .m2-cart-upsell { margin-top: 22px; padding: 0; border-radius: 0; background: transparent; }
.g-app .m2-cart-upsell h3 { margin: 0 0 10px; font-family: var(--g-font-head); font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.g-app .m2-cart .g-pair-rail { gap: 12px; margin: 0 -16px; padding: 2px 16px 4px; }
.g-app .m2-cart .g-pair { position: relative; display: block; width: 140px; padding: 0; border-radius: 0; background: transparent; box-shadow: none; }
.g-app .m2-cart .g-pair-photo { width: 140px; height: 96px; border-radius: 16px; }
.g-app .m2-cart .g-pair-text { display: grid; gap: 1px; margin-top: 6px; }
.g-app .m2-cart .g-pair-text strong { font-size: 13.5px; }
.g-app .m2-cart .g-pair-text small { color: var(--g-ink); font-size: 13px; font-weight: 700; }
.g-app .m2-cart .g-pair .g-add { position: absolute; right: 6px; top: 56px; width: 34px; height: 34px; background: var(--m2-plus-bg); color: var(--m2-plus-ink); box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.g-app .m2-cart .g-cart-kcal { margin: 14px 4px 0; color: var(--g-muted); font-size: 13px; }
.g-app .m2-fields { margin-top: 18px; }
.g-app .m2-fields .g-field { margin-top: 12px; font-size: 13px; }
.g-app .m2-fields .g-field input, .g-app .m2-fields .g-field textarea { border: 0; border-radius: 16px; background: var(--m2-card-soft); }
.g-app .m2-cart-foot { padding: 14px 20px max(22px, env(safe-area-inset-bottom)); border-top: 1px solid var(--g-line); background: var(--m2-glass-strong); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.g-app .m2-cart-foot .g-total { margin: 0 0 12px; }
.g-app .m2-cart-foot .g-total span { color: var(--g-muted); font-size: 15px; }
.g-app .m2-cart-foot .g-total strong { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.g-app .m2-cart-foot .g-btn { height: 58px; border-radius: 999px; font-size: 17px; font-weight: 800; box-shadow: 0 12px 28px rgba(0,0,0,.22); }

/* Consigliere */
.g-m2 .m2-advisor[open] { height: min(780px, calc(100dvh - 64px)); }
.g-app .m2-adv-head { align-items: center; gap: 12px; }
.g-app .m2-adv-head > div { flex: 1; min-width: 0; }
.g-app .m2-adv-head h2 { margin: 0; font-size: 19px; letter-spacing: -.015em; }
.g-app .m2-adv-head p { margin: 2px 0 0; font-size: 13px; }
.m2-adv-ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--g-a1, var(--g-bg)), var(--g-a3, var(--g-bg))); color: var(--g-ink); }
.g-app .m2-advisor .g-chat { gap: 10px; padding: 6px 16px 10px; background: transparent; }
.g-app .m2-advisor .g-msg { max-width: 86%; animation: m2-appare .45s cubic-bezier(.2, .8, .2, 1) both; }
.g-app .m2-advisor .g-msg p { padding: 12px 14px; font-size: 15px; line-height: 1.42; box-shadow: none; }
.g-app .m2-advisor .g-msg.is-bot p { border-radius: 20px 20px 20px 6px; background: var(--m2-card-soft); }
.g-app .m2-advisor .g-msg.is-user p { border-radius: 20px 20px 6px 20px; background: var(--g-ink); color: var(--g-bg); font-weight: 600; }
.g-app .m2-advisor .g-msg.is-typing p { padding: 15px 16px; }
.g-app .m2-advisor .g-chat-products { gap: 0; margin-top: 8px; padding: 4px 12px; border-radius: 22px; background: var(--m2-card-soft); }
.g-app .m2-advisor .g-chat-product { gap: 12px; padding: 8px 0; border-radius: 0; background: transparent; box-shadow: none; border-bottom: 1px solid var(--g-line); }
.g-app .m2-advisor .g-chat-product:last-child { border-bottom: 0; }
.g-app .m2-advisor .g-chat-product img, .g-app .m2-advisor .g-chat-product-art { width: 52px; height: 52px; border-radius: 14px; }
.g-app .m2-advisor .g-chat-product-t b { font-size: 15px; }
.g-app .m2-advisor .g-chat-product-t small { font-size: 13px; }
.g-app .m2-advisor .g-chat-add { width: 34px; height: 34px; background: var(--g-ink); color: var(--g-bg); font-size: 18px; }
.g-app .m2-advisor .g-chat-add:disabled { background: #18803C; color: #FFFFFF; }
.g-app .m2-advisor .g-chat-added { border-radius: 18px; }
.g-app .m2-advisor .g-chat-added button { background: var(--g-ink); color: var(--g-bg); }
.g-app .m2-advisor .g-chat-chips { flex-wrap: nowrap; gap: 8px; padding: 4px 16px 0; overflow-x: auto; scrollbar-width: none; background: transparent; }
.g-app .m2-advisor .g-chat-chips::-webkit-scrollbar { display: none; }
.g-app .m2-advisor .g-chat-chips button { flex: none; height: 36px; padding: 0 14px; border: 0; background: var(--m2-chip); font-size: 14px; white-space: nowrap; }
.m2-chat-bar { flex: none; padding: 10px 16px max(22px, env(safe-area-inset-bottom)); }
.m2-aura-ring { position: relative; padding: 1.5px; border-radius: 999px; overflow: hidden; isolation: isolate; }
.m2-aura-ring::before { content: ""; position: absolute; z-index: -1; left: -40%; top: -400%; width: 180%; height: 900%;
  background: conic-gradient(from 0deg, var(--g-a1, var(--g-line)), var(--g-a2, var(--g-line)), var(--g-a3, var(--g-line)), var(--g-a4, var(--g-line)), var(--g-a1, var(--g-line))); animation: m2-gira 9s linear infinite; }
@keyframes m2-gira { to { transform: rotate(360deg); } }
@keyframes m2-appare { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.g-app .m2-advisor .g-chat-form { align-items: center; gap: 10px; height: 50px; padding: 0 6px 0 16px; border: 0; border-radius: 999px; background: var(--g-surface); }
.g-app .m2-advisor .g-chat-form input { min-height: 0; height: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; font-size: 16px; outline: none; }
.g-app .m2-advisor .g-chat-send { width: 38px; height: 38px; background: var(--g-ink); color: var(--g-bg); }
.m2-aura-ring:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--g-accent) 30%, transparent); }

/* Account */
.g-app .m2-account[open] { display: flex; flex-direction: column; gap: 16px; padding: 0 20px max(28px, env(safe-area-inset-bottom)); max-height: min(800px, calc(100dvh - 40px)); overflow-y: auto; }
.g-m2 .m2-account > .m2-grab { margin-top: 10px; margin-bottom: -6px; }
.m2-acc-head { display: flex; align-items: center; gap: 14px; }
.m2-acc-av { position: relative; flex: none; width: 60px; height: 60px; border-radius: 50%; }
.m2-acc-av::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, var(--g-a1, var(--g-accent)), var(--g-a2, var(--g-accent)), var(--g-a3, var(--g-accent)), var(--g-a4, var(--g-accent)), var(--g-a1, var(--g-accent))); animation: m2-gira 8s linear infinite; }
.m2-acc-av > span { position: absolute; inset: 3px; display: grid; place-items: center; overflow: hidden; border: 2px solid var(--g-surface); border-radius: 50%; background: #E9DDCF; color: #1D1D1F; font-size: 18px; font-weight: 800; }
.m2-acc-av img { width: 100%; height: 100%; object-fit: cover; }
.m2-acc-who { flex: 1; min-width: 0; }
.g-app .m2-acc-who h2, .g-app .m2-acc-guest h2 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.015em; overflow-wrap: anywhere; }
.m2-acc-who p { margin: 2px 0 0; color: var(--g-muted); font-size: 13px; line-height: 1.35; }
.m2-acc-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 22px; background: var(--m2-card-soft); }
.m2-acc-kicker { color: var(--g-muted); font-size: 13px; font-weight: 700; }
.m2-acc-dishes { display: flex; gap: 10px; }
.m2-acc-dish { display: flex; flex-direction: column; gap: 4px; flex: 1 1 0; min-width: 0; max-width: calc((100% - 20px) / 3); }
.m2-acc-ph { position: relative; display: grid; place-items: center; height: 74px; border-radius: 14px; overflow: hidden; background: color-mix(in srgb, var(--g-accent) 22%, var(--g-surface)); }
.m2-acc-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m2-acc-ph i { font-family: var(--g-font-head); font-size: 26px; font-style: normal; font-weight: 800; opacity: .6; }
.m2-acc-ph b { position: absolute; left: 6px; bottom: 6px; padding: 2px 7px; border-radius: 999px; background: rgba(0,0,0,.5); color: #FFFFFF; font-size: 11px; font-weight: 800; }
.m2-acc-name { overflow: hidden; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.m2-acc-list { display: flex; flex-direction: column; padding: 2px 14px; border-radius: 22px; background: var(--m2-card-soft); }
.g-app .m2-acc-list a { display: flex; align-items: center; gap: 12px; min-height: 54px; color: var(--g-ink); text-decoration: none; border-bottom: 1px solid var(--g-line); }
.g-app .m2-acc-list a:last-child { border-bottom: 0; }
.m2-acc-ico { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 9px; color: #FFFFFF; }
.m2-acc-ico.is-pink { background: #FF5A8C; }
.m2-acc-ico.is-blue { background: #0A84FF; }
.m2-acc-ico.is-green { background: #34C759; }
.m2-acc-t { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; }
.m2-acc-list small { max-width: 40%; overflow: hidden; color: var(--g-muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.m2-acc-list .m2-chev { flex: none; opacity: .4; }
.m2-acc-note { margin: 0; color: var(--g-muted); font-size: 13px; line-height: 1.4; }
.m2-acc-note.is-center { text-align: center; }
.g-app .m2-acc-out { width: 100%; height: 50px; border: 0; border-radius: 999px; background: var(--m2-chip); color: var(--g-ink); font-size: 15px; font-weight: 700; cursor: pointer; }
.m2-acc-top { display: flex; justify-content: flex-end; }
.m2-acc-guest { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: -18px; text-align: center; }
.m2-acc-guest p { margin: 0; color: var(--g-muted); font-size: 15px; line-height: 1.45; }
.m2-acc-big { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, var(--g-a1, var(--g-bg)), var(--g-a3, var(--g-bg))); color: var(--g-ink); }
.m2-acc-big svg { width: 30px; height: 30px; }
.g-app .m2-acc-go { height: 54px; border-radius: 999px; font-size: 16px; font-weight: 800; }
.g-app .m2-acc-wa { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; margin-top: -6px; padding: 0 16px; border-radius: 999px; background: color-mix(in srgb, #25D366 16%, transparent); color: var(--g-ink); font-size: 14px; font-weight: 700; text-align: center; text-decoration: none; }
.m2-acc-wa svg { flex: none; color: #25D366; }

@media (min-width: 720px) {
  .m2-hero { height: 420px; margin-top: 16px; }
  .m2-ambient { top: 0; height: 900px; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 45%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 45%, transparent 100%); }
  .m2-hero-media { border-radius: 28px 28px 0 0; }
  .g-app.g-m2 .g-products:not(.g-shelf) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .m2-hl-photo { aspect-ratio: 2 / 1; }
  .g-m2 .m2-dish { height: min(820px, 92vh); margin: auto; border-radius: 30px; }
  .g-m2 .m2-dish:not(.has-photo) { height: auto; max-height: min(820px, 92vh); }
  .g-m2 .m2-sheet { margin: auto; border-radius: 30px; }
  .g-m2 .m2-cart[open], .g-m2 .m2-advisor[open] { height: min(780px, 92vh); }
}
@media (prefers-reduced-motion: reduce) {
  .m2-cover, .m2-live, .g-app.g-m2 .g-advisor-fab::before, .g-app.g-m2 button.g-cartbar, .g-m2 .g-card-stepper.has-qty, .g-m2 .m2-dish[open],
  .g-m2 .m2-sheet[open], .m2-aura-ring::before, .m2-acc-av::before, .g-app .m2-advisor .g-msg { animation: none; }
  .m2-dish-bar, .m2-dish-bar span { transition: none; }
}

/* 2.85 (24/10) Antonio: «ogni tasto indietro quando entriamo nella videata dell'attività commerciale o nel menu deve
   rimanere fisso dove è, non deve scorrere insieme alla pagina». Il tasto resta in alto a sinistra; quando le categorie
   si attaccano in alto diventa tondo (solo la freccia) e le categorie gli fanno posto. */
.g-app .m2-back { position: fixed; z-index: 40; top: max(16px, env(safe-area-inset-top)); left: max(16px, env(safe-area-inset-left, 0px));
  transition: top .2s ease, width .2s ease, padding .2s ease, background .2s ease; }
.g-app .m2-back-t { white-space: nowrap; }
.g-app:has(.g-sticky.is-stuck) .m2-back { top: max(8px, env(safe-area-inset-top)); width: 38px; padding: 0; justify-content: center; }
.g-app:has(.g-sticky.is-stuck) .m2-back .m2-back-t { display: none; }
.g-app:has(.m2-back) .g-sticky.is-stuck { padding-left: 64px; }
.g-backpill { position: fixed; z-index: 40; }
@media (min-width: 720px) { .g-app .m2-back { left: max(16px, calc(50% - 324px)); } }
@media (prefers-reduced-motion: reduce) { .g-app .m2-back { transition: none; } }

/* 2.88 (24/10) il menu più fluido sul telefono (anteprime 2.87, approvate: «meno vetri sfocati uno sopra l'altro e la
   copertina ferma mentre scorri»). Ogni vetro sfocato costa al telefono a ogni scatto dello scorrimento: qui diventano
   fondi pieni (quasi uguali a vederli), resta solo il vetro del carrello. La copertina non «respira» più. */
@media (pointer: coarse) {
  .m2-cover { animation: none; }
  .g-app.g-m2 .g-sticky.is-stuck { background: color-mix(in srgb, var(--g-bg) 97%, transparent); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .g-m2 .g-nows-block { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--g-surface, var(--m2-glass)); }
  .g-app .m2-dish-bar, .g-app .m2-cart-foot { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .g-app .m2-cart-foot { background: var(--g-surface); }
}
/* 2.88 la casella nascosta della scelta resta dentro la sua riga: fuori, il tocco faceva scorrere di lato il foglio */
.g-app .opt-ui .opt-tile { position: relative; }
.g-app .opt-ui .opt-in { left: 0; top: 0; }
/* 2.88 la luce in cima ai fogli usciva del 20% per lato: il foglio diventava più largo di sé e, toccando una scelta,
   scorreva di lato (Antonio: «qui è sballato»). Ora resta dentro il foglio. */
.g-m2 .m2-sheet::before { left: 0; right: 0; }
