/* RACE 2.09 — pagine del locale, aspetto 2026 (disegni «Prenota», «Prenotazione», poi asporto/stato/tavolo).
   Si carica insieme a menu2.css (variabili, copertina, pillole, pannelli) e vale solo dentro .g-app.g-m2.
   Il modulo di prenotazione (_guest.html › booking_form) e' lo stesso nel menu del tavolo e nella pagina /prenota. */

/* ---------- Pagina: copertina piu' bassa, logo e nome, titolo */
.g-m2.m2-page .m2-hero { height: 330px; }
.g-m2.m2-page .m2-intro.is-page { margin-top: -89px; }
.g-m2.m2-page.no-cover .m2-hero { height: 96px; }
.g-m2.m2-page.no-cover .m2-intro.is-page { margin-top: -14px; }
.g-m2 .m2-brand-name { margin: 0; font-family: var(--g-font-head); color: var(--g-ink); font-size: 26px; font-weight: 800; line-height: 1.1; letter-spacing: -.025em; overflow-wrap: anywhere; }
.g-m2.m2-page .m2-brand { margin-bottom: 0; }
.g-m2.m2-page .m2-logo { width: 58px; height: 58px; border-radius: 17px; }
.g-app .m2-back { gap: 4px; padding: 0 14px 0 9px; }
.g-m2 .m2-page-main { position: relative; padding-bottom: 32px; }
.g-m2 .m2-page-head { margin-top: 22px; }
.g-app .m2-page-head h1 { margin: 0; font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: -.025em; }
.m2-page-head p { margin: 6px 0 0; color: var(--g-muted); font-size: 15px; line-height: 1.45; }
.m2-card-soft { padding: 16px; border-radius: 24px; background: var(--m2-card-soft); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.m2-closed { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.m2-closed p { margin: 0; color: var(--g-muted); }
.m2-page-note { margin: 14px 0 0; color: var(--g-muted); font-size: 13px; text-align: center; }
.g-m2 .g-foot { padding: 26px 0 8px; }

/* Righe con icona (calendario, chiama, portami lì, disdici...) */
.m2-list { display: flex; flex-direction: column; margin-top: 16px; padding: 2px 14px; border-radius: 24px; background: var(--m2-card-soft); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.g-app .m2-list > a, .g-app .m2-list > button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 0; border: 0; border-bottom: 1px solid var(--g-line); background: transparent; color: var(--g-ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.g-app .m2-list > :last-child { border-bottom: 0; }
.m2-list-ico { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--m2-chip); }
.m2-list-t { flex: 1; min-width: 0; font-size: 16px; font-weight: 700; }
.m2-list .m2-chev { flex: none; opacity: .4; }
.g-app .m2-list > .is-danger { color: #D92D20; }
.g-m2.is-dark .m2-list > .is-danger { color: #FF8A80; }

/* ---------- Modulo di prenotazione (pagina /prenota e pannello «Prenota un tavolo» del menu) */
.g-m2 .g-booking { gap: 0; }
.g-app.g-m2 .g-book-label { margin: 22px 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-m2 .g-book-row { margin: 22px 0 8px; min-height: 22px; }
.g-m2 .g-book-row .g-book-label { margin: 0; }
.g-m2 .g-booking:not(.is-many) .g-book-row .g-stepper { display: none; }
.g-app.g-m2 .g-book-row .g-stepper.big { height: 40px; min-height: 40px; padding: 0 3px; gap: 0; border-radius: 999px; background: var(--m2-chip); }
.g-app.g-m2 .g-book-row .g-stepper.big button { width: 34px; height: 34px; background: transparent; box-shadow: none; color: var(--g-ink); }
.g-m2 .g-book-people { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.g-app.g-m2 .g-book-people button { height: 48px; padding: 0; border: 0; border-radius: 15px; background: var(--m2-card-soft); color: var(--g-ink); font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.g-app.g-m2 .g-book-people button:active { transform: scale(.92); }
.g-app.g-m2 .g-book-people button.is-on { background: var(--g-accent); color: var(--g-on-accent); }
.g-app.g-m2 .g-book-people button:disabled { opacity: .35; cursor: default; }
.g-app.g-m2 .g-days { gap: 8px; margin: 0 -16px; padding: 0 16px 2px; }
.g-app.g-m2 .g-days > * { position: relative; width: 64px; min-height: 74px; gap: 1px; border: 0; border-radius: 15px; background: var(--m2-card-soft); transition: transform .15s ease; }
.g-app.g-m2 .g-days > *:active { transform: scale(.94); }
.g-app.g-m2 .g-days small { color: inherit; font-size: 12px; font-weight: 700; opacity: .8; }
.g-app.g-m2 .g-days small:first-child { text-transform: capitalize; }
.g-app.g-m2 .g-days small:last-child { font-size: 11px; font-weight: 600; opacity: .7; }
.g-app.g-m2 .g-days strong { font-size: 22px; font-weight: 800; line-height: 1.1; }
.g-app.g-m2 .g-days .is-on { background: var(--g-accent); }
.g-m2 .g-times { gap: 14px; }
.g-m2 .g-time-group > span { margin-bottom: 8px; font-size: 12px; }
.g-app.g-m2 .g-time-group > div { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.g-app.g-m2 .g-time-group button { height: 52px; border: 0; border-radius: 15px; background: var(--m2-card-soft); font-size: 16px; font-weight: 800; transition: transform .15s ease; }
.g-app.g-m2 .g-time-group button:active:not(:disabled) { transform: scale(.94); }
.g-app.g-m2 .g-time-group button.is-on { background: var(--g-accent); }
.g-m2 .g-times .g-hint { margin: 0; text-align: left; }
/* 2.10 (13/10) prenotazioni a turni: tessera con nome del turno, ora grande e «fino alle 21:15» / «Ultimi 4 posti» / «Pieno» */
.g-app .g-time-group.is-turni > div { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.g-app .g-time-group button.g-turn { display: grid; justify-items: start; align-content: center; gap: 2px; height: auto; min-height: 84px;
  padding: 12px 14px; text-align: left; }
.g-app .g-turn small { overflow: hidden; max-width: 100%; color: var(--g-muted); font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.g-app .g-turn b { font-size: 22px; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
.g-app .g-turn small.is-few { color: #C2410C; font-weight: 700; }
.g-app .g-time-group button.g-turn:disabled { text-decoration: none; }
.g-app .g-time-group button.g-turn:disabled b { text-decoration: line-through; }
.g-app .g-time-group button.g-turn.is-on small { color: inherit; opacity: .85; }
.g-m2 .g-book-me { display: flex; align-items: center; gap: 6px; margin: 22px 0 0; color: var(--g-muted); font-size: 13px; }
.g-m2 .g-book-me svg { color: #34C759; }
.g-m2 .g-booking .g-field { margin-top: 12px; font-size: 13px; }
.g-m2 .g-book-me + .g-book-grid2 .g-field { margin-top: 8px; }
.g-app.g-m2 .g-booking .g-field input, .g-app.g-m2 .g-booking .g-field textarea { min-height: 50px; padding: 0 16px; border: 0; border-radius: 18px; background: var(--m2-card-soft); }
.g-m2 .g-book-plan { margin-top: 16px; }
.g-m2 .g-book-plan > .g-btn.secondary { border-radius: 999px; background: var(--m2-card-soft); }
.g-m2 .g-check { margin-top: 14px; color: var(--g-ink); font-size: 13.5px; }
.g-m2 .g-friend { border: 0; background: var(--m2-card-soft); }

/* Il bottone «Prenota»: nella pagina resta in fondo allo schermo (sfuma sul contenuto) */
.g-m2 .g-book-actions { margin-top: 22px; }
.g-app.g-m2 [data-book-send] { flex-direction: column; gap: 0; height: 62px; min-height: 62px; border-radius: 999px; font-size: 17px; font-weight: 800; box-shadow: 0 12px 28px rgba(0,0,0,.25); }
.g-m2 .m2-book-page .g-book-actions { position: sticky; z-index: 5; bottom: 0; margin: 22px -16px 0; padding: 44px 16px max(18px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, color-mix(in srgb, var(--g-bg) 0%, transparent) 0%, color-mix(in srgb, var(--g-bg) 85%, transparent) 38%, var(--g-bg) 58%); }
/* finche' manca qualcosa il bottone e' grigio pieno (non trasparente: sotto non devono vedersi orari e campi) */
.g-app.g-m2 [data-book-send]:disabled { opacity: 1; background: color-mix(in srgb, var(--g-ink) 10%, var(--g-bg)); color: var(--g-muted); box-shadow: none; }
.g-m2 .g-book-alt { margin-top: 10px; }

/* Richiesta inviata (dentro il modulo) */
.g-m2 .g-booking .g-thanks { padding: 26px 20px 22px; border-radius: 30px; background: var(--m2-card-soft); }
.g-m2 .g-booking .g-thanks-icon { width: 84px; height: 84px; background: #34C759; color: #FFFFFF; box-shadow: 0 14px 34px rgba(52,199,89,.45); animation: m2-spunta .38s cubic-bezier(.3, 1.6, .5, 1); }
.g-app.g-m2 .g-booking .g-thanks h3 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.g-app.g-m2 .g-booking .g-thanks .g-btn { border-radius: 999px; }

/* Pannello «Prenota un tavolo» nel menu */
.g-m2 #bookingDialog { border-radius: 30px 30px 0 0; }
.g-m2 #bookingDialog .g-sheet-head h2 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.g-app.g-m2 #bookingDialog .g-close { background: var(--m2-chip); }
.g-m2 #bookingDialog .g-days { margin: 0 -20px; padding: 0 20px 2px; }

/* ---------- Pagina della prenotazione: stato grande al centro */
.m2-bstatus { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 22px; padding: 26px 20px 22px; border-radius: 30px; text-align: center;
  background: var(--m2-card-soft); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
/* 3.81 evento spostato: la scelta del cliente nella pagina della prenotazione (templates/booking_status.html › .m2-moved) */
.m2-moved { margin-top: 22px; padding: 22px 20px 20px; border-radius: 30px; background: var(--m2-card-soft); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 0 0 2px var(--g-accent); }
.m2-moved + .m2-bstatus { margin-top: 14px; }
.m2-moved-k { margin: 0; color: var(--g-accent); font-size: 13.5px; font-weight: 700; }
.g-app .m2-moved h2 { margin: 4px 0 0; font-size: 22px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.m2-moved-when { display: grid; gap: 2px; margin: 12px 0 0; font-size: 16px; line-height: 1.35; }
.m2-moved-when span { color: var(--g-muted); text-decoration: line-through; }
.m2-moved-when b { font-weight: 700; }
.m2-moved-t { margin: 10px 0 0; color: var(--g-muted); font-size: 14px; line-height: 1.45; }
.m2-moved-act { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 0; }
.g-app .m2-moved-act .g-btn { min-height: 52px; font-size: 16px; }
.m2-bs-ico { position: relative; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; }
.m2-bs-ico.is-ok { background: #34C759; color: #FFFFFF; box-shadow: 0 14px 34px rgba(52,199,89,.45); animation: m2-spunta .38s cubic-bezier(.3, 1.6, .5, 1); }
.m2-bs-ico.is-no { background: var(--m2-chip); color: var(--g-muted); }
.m2-bs-ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, #FF9F0A, rgba(255,159,10,0) 70%, #FF9F0A);
  -webkit-mask: radial-gradient(closest-side, transparent 78%, #000 80%); mask: radial-gradient(closest-side, transparent 78%, #000 80%); animation: m2-gira 1.6s linear infinite; }
.m2-bs-core { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; background: rgba(255,159,10,.16); color: #FF9F0A; }
.m2-bs-pill { padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.m2-bs-pill.is-wait { background: rgba(255,159,10,.16); color: #94550A; }
.m2-bs-pill.is-ok { background: rgba(52,199,89,.16); color: #1E7A43; }
.m2-bs-pill.is-no { background: var(--m2-chip); color: var(--g-muted); }
.g-m2.is-dark .m2-bs-pill.is-wait { color: #FFC46B; }
.g-m2.is-dark .m2-bs-pill.is-ok { color: #6BD99A; }
.g-app .m2-bstatus h1 { margin: 4px 0 0; font-size: 26px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.m2-bs-who { margin: 0; color: var(--g-muted); font-size: 15px; }
.m2-bs-note { margin: 4px 0 0; color: var(--g-muted); font-size: 14px; line-height: 1.45; }
.g-app .m2-bs-again { width: auto; height: 50px; min-height: 50px; margin-top: 6px; padding: 0 24px; border-radius: 999px; font-size: 16px; font-weight: 800; box-shadow: 0 12px 28px rgba(0,0,0,.25); }

/* ---------- Ordini online: asporto e domicilio (disegni «Asporto», «Domicilio», «Carrello») */
.g-m2 .o-page { padding-bottom: 120px; }
.g-m2 .m2-h2 { margin: 0; }
.g-m2 .o-mode { margin-top: 18px; padding: 0; border-radius: 0; background: transparent; box-shadow: none; }
.g-m2 .m2-modes { display: flex; gap: 10px; padding: 0; background: transparent; }
.g-app .m2-mode { position: relative; display: flex; flex: 1 1 0; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; padding: 14px; border: 2px solid transparent; border-radius: 22px;
  background: var(--m2-card-soft); color: var(--g-ink); cursor: pointer; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: border-color .2s ease, transform .15s ease; }
.g-app .m2-mode:active { transform: scale(.97); }
.g-app .m2-mode input { position: absolute; opacity: 0; pointer-events: none; }
.g-app .m2-mode .m2-mode-ico { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: var(--m2-chip); color: var(--g-ink); transition: background .2s ease; }
.g-app .m2-mode b { margin-top: 6px; font-size: 16px; font-weight: 800; }
.g-app .m2-mode small { color: var(--g-muted); font-size: 13px; }
.g-app .m2-mode:has(input:checked) { border-color: var(--g-accent); background: color-mix(in srgb, var(--g-accent) 10%, var(--m2-card-soft)); }
.g-app .m2-mode:has(input:checked) .m2-mode-ico { background: var(--g-accent); color: var(--g-on-accent); }
.g-app .m2-mode:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--g-accent) 45%, transparent); outline-offset: 2px; }
/* un solo modo (solo asporto o solo domicilio): una riga sola, non un riquadro grande */
.g-app .m2-mode:only-child { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 12px; row-gap: 0; }
.g-app .m2-mode:only-child .m2-mode-ico { grid-row: span 2; }
.g-app .m2-mode:only-child b { margin-top: 0; }
.m2-mode-note { display: flex; align-items: center; gap: 8px; margin: 10px 2px 0; color: var(--g-muted); font-size: 13px; }
.m2-mode-note svg { flex: none; }
.m2-now { margin-top: 22px; }
.g-m2 .m2-now .g-rail { margin-top: 10px; }
.g-app .m2-now-card { position: relative; flex: none; display: flex; align-items: flex-end; width: min(270px, 76vw); height: 150px; border-radius: 24px; overflow: hidden; color: #FFFFFF; text-decoration: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--g-accent) 80%, black), color-mix(in srgb, var(--g-accent) 55%, var(--g-a3, #000))); }
.m2-now-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m2-now-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,0) 80%); }
.m2-now-text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; padding: 16px; max-width: 80%; }
.m2-now-kind { align-self: flex-start; padding: 3px 9px; border-radius: 999px; background: var(--g-accent); color: var(--g-on-accent); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.m2-now-text strong { font-size: 18px; font-weight: 800; line-height: 1.15; }
.m2-now-text small { font-size: 13px; opacity: .85; }
.m2-now-card.is-event { align-items: center; gap: 0; padding-left: 16px; }
.m2-now-day { position: relative; z-index: 1; display: flex; flex: none; flex-direction: column; align-items: center; justify-content: center; width: 56px; height: 60px; border-radius: 16px; background: rgba(255,255,255,.18); line-height: 1; }
.m2-now-day strong { font-size: 22px; font-weight: 800; }
.m2-now-day small { margin-top: 2px; font-size: 11px; text-transform: uppercase; }
.g-m2 .m2-ocats { position: sticky; z-index: 6; top: 0; display: flex; gap: 8px; margin: 22px -16px 0; padding: 8px 16px; overflow-x: auto; scrollbar-width: none;
  background: color-mix(in srgb, var(--g-bg) 82%, transparent); backdrop-filter: blur(22px) saturate(170%); -webkit-backdrop-filter: blur(22px) saturate(170%); }
.g-m2 .m2-ocats::-webkit-scrollbar { display: none; }
.g-app.g-m2 .m2-ocats a { display: inline-flex; flex: none; align-items: center; height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--m2-chip); color: var(--g-ink); font-size: 15px; font-weight: 600; text-decoration: none; }
.g-m2 .o-cat { padding-top: 24px; scroll-margin-top: 64px; }
.g-m2 .m2-ogrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; margin-top: 12px; }
.g-app.g-m2 .m2-oitem { display: flex; flex-direction: column; align-items: stretch; gap: 3px; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.g-app.g-m2 .m2-oitem .m2-photo { aspect-ratio: 1 / .94; }
.g-app.g-m2 .m2-oitem .m2-img { width: 100%; height: 100%; border-radius: 20px; }
.m2-initial { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--g-font-head); font-size: 54px; font-weight: 800; color: var(--g-ink); opacity: .35; }
.g-app.g-m2 .m2-oitem h3 { margin: 6px 2px 0; font-size: 15px; font-weight: 700; line-height: 1.25; }
.m2-oprice { padding: 0 2px; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.g-app.g-m2 .m2-oitem p { margin: 0 2px; color: var(--g-muted); font-size: 12.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.g-m2 .m2-oitem .o-allergens { padding: 0 2px; color: var(--g-muted); font-size: 11.5px; }
.g-m2 .m2-oitem.is-off { opacity: .6; }
.g-m2 .m2-oitem.is-off .m2-photo { filter: grayscale(.8); }
.g-app.g-m2 .m2-oadd { position: absolute; z-index: 1; right: 10px; bottom: 10px; display: grid; place-items: center; width: 40px; height: 40px; min-height: 0; padding: 0; border: 0; border-radius: 999px;
  background: var(--m2-plus-bg); color: var(--m2-plus-ink); box-shadow: 0 4px 12px rgba(0,0,0,.22); cursor: pointer; transition: transform .15s ease; }
.g-app.g-m2 .m2-oadd:active { transform: scale(.88); }
.m2-oadd-n { display: none; font-size: 15px; font-weight: 800; }
.g-app.g-m2 .m2-oadd.has-qty { background: var(--g-accent); color: var(--g-on-accent); animation: m2-spunta .38s cubic-bezier(.3, 1.6, .5, 1); }
.m2-oadd.has-qty svg { display: none; }
.m2-oadd.has-qty .m2-oadd-n { display: block; }
.m2-soldout { position: absolute; right: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.6); color: #FFFFFF; font-size: 12px; font-weight: 700; }
.g-app.g-m2 button.m2-ocartbar { 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); font-size: 15px;
  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 .m2-ocartbar.is-bump { animation: m2-bump .42s cubic-bezier(.3, 1.6, .5, 1); }
.m2-ocount { flex: none; display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 999px; background: var(--g-accent); color: var(--g-on-accent); font-size: 14px; font-weight: 800; }
.g-app.g-m2 .m2-ocartbar .g-grow { min-width: 0; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-app.g-m2 .m2-ocartbar b { 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; }

/* «Il tuo ordine» degli ordini online: pannello dal basso */
.g-m2 .m2-ocart[open] { height: min(820px, calc(100dvh - 24px)); max-height: none; }
.g-app .m2-ocart .g-sheet-body { padding: 4px 16px 0; }
.g-m2 .m2-ocart .o-checkout { margin: 0; padding: 0; border-radius: 0; background: transparent; box-shadow: none; }
.g-app .m2-olines { display: flex; flex-direction: column; margin: 0; padding: 2px 14px; list-style: none; border-radius: 24px; background: var(--m2-card-soft); }
.g-app .m2-olines li { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--g-line); }
.g-app .m2-olines li:last-child { border-bottom: 0; }
.o-line-ph { 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)); }
.o-line-ph img { width: 100%; height: 100%; object-fit: cover; }
.o-line-ph i { font-family: var(--g-font-head); font-size: 20px; font-style: normal; font-weight: 800; opacity: .6; }
.g-app .m2-olines li > div:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.g-app .m2-olines li b { overflow: hidden; font-size: 15px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.g-app .m2-olines li small { color: var(--g-muted); font-size: 13px; }
.g-app .m2-olines .o-qty { display: inline-flex; align-items: center; height: 36px; padding: 0 3px; border-radius: 999px; background: var(--m2-chip); }
.g-app .m2-olines .o-qty button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--g-ink); font-size: 18px; font-weight: 700; cursor: pointer; }
.g-app .m2-olines .o-qty span { min-width: 18px; font-size: 15px; font-weight: 800; text-align: center; }
.g-app .m2-olabel { margin: 22px 0 8px; padding: 0; color: var(--g-muted); font-family: var(--g-font-body); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.m2-hidden-field { display: none; }
.m2-when { display: flex; gap: 8px; margin: 0 -16px; padding: 0 16px 2px; overflow-x: auto; scrollbar-width: none; }
.m2-when::-webkit-scrollbar { display: none; }
.g-app .m2-when button { display: flex; flex: none; flex-direction: column; align-items: center; justify-content: center; min-width: 72px; height: 58px; padding: 0 14px; border: 0; border-radius: 16px;
  background: var(--m2-card-soft); color: var(--g-ink); font: inherit; cursor: pointer; }
.g-app .m2-when button b { font-size: 16px; font-weight: 800; }
.g-app .m2-when button.is-asap b { font-size: 14px; }
.g-app .m2-when button small { color: inherit; font-size: 11px; font-weight: 600; opacity: .85; }
.g-app .m2-when button.is-on { background: var(--g-accent); color: var(--g-on-accent); }
.g-app .m2-when button:disabled { opacity: .4; cursor: default; }
.g-m2 .m2-ocart .g-field { margin-top: 10px; font-size: 13px; }
.g-app.g-m2 .m2-ocart .g-field input, .g-app.g-m2 .m2-ocart .g-field select { min-height: 50px; padding: 0 16px; border: 0; border-radius: 18px; background: var(--m2-card-soft); color: var(--g-ink); }
.g-m2 .m2-ocart .o-me { margin: 0 0 4px; }
.g-m2 .m2-opay { display: block; margin: 0; padding: 0; border: 0; border-radius: 0; }
.g-m2 .m2-opay legend { padding: 0; }
.m2-opay-list { overflow: hidden; border-radius: 22px; background: var(--m2-card-soft); }
.g-app.g-m2 .m2-opay label { position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; margin: 0; padding: 8px 14px; border: 0; border-radius: 0; background: transparent; color: var(--g-ink); cursor: pointer; }
.g-app.g-m2 .m2-opay label[hidden] { display: none; }
.g-app.g-m2 .m2-opay label + label { border-top: 1px solid var(--g-line); }
.g-app.g-m2 .m2-opay input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--g-accent); }
.g-app.g-m2 .m2-opay span { display: flex; flex-direction: column; color: var(--g-ink); font-size: 16px; font-weight: 700; }
.g-app.g-m2 .m2-opay small { color: var(--g-muted); font-size: 13px; font-weight: 400; }
.g-app .m2-ototal { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 4px 0; }
.g-app .m2-ototal span { font-weight: 700; }
.g-app .m2-ototal strong { font-family: var(--g-font-head); font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.g-m2 .m2-ocart .o-error { margin: 12px 0 0; padding: 10px 14px; border-radius: 14px; background: rgba(217,45,32,.12); color: #B42318; font-size: 14px; font-weight: 600; }
.g-m2.is-dark .m2-ocart .o-error { color: #FF8A80; }
.g-m2 .m2-osend { position: sticky; z-index: 2; bottom: 0; margin: 14px -16px 0; padding: 26px 16px max(18px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, color-mix(in srgb, var(--g-surface) 0%, transparent) 0%, var(--g-surface) 40%); }
.g-app.g-m2 .m2-osend .o-send { height: 60px; min-height: 60px; border-radius: 999px; font-size: 17px; font-weight: 800; box-shadow: 0 12px 28px rgba(0,0,0,.25); }
.g-m2 .m2-osend .g-hint { margin-top: 8px; }

/* Scelte del piatto (asporto) */
.g-m2 .m2-optsheet { border-radius: 30px 30px 0 0; }
.g-app .m2-optsheet .o-sheet-body { padding: 8px 20px max(20px, env(safe-area-inset-bottom)); }
.g-app .m2-optsheet h3 { margin: 6px 0 14px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.g-app .m2-optsheet .o-sheet-actions { display: flex; gap: 10px; margin-top: 18px; }
/* 2.10 (13/10) su iPhone il pannello delle scelte non scorreva (Antonio, «si bugga, non mi fa scorrere»): Safari non fa
   scorrere il <dialog> da solo. Scorre il contenuto; «Annulla» e «Aggiungi» restano sempre in fondo. */
.g-app .m2-optsheet[open] { overflow: hidden; }
.g-app .m2-optsheet .o-sheet-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14px); mask-image: linear-gradient(180deg, transparent 0, #000 14px); }
.g-app .m2-optsheet .o-sheet-actions { position: sticky; bottom: calc(-1 * max(20px, env(safe-area-inset-bottom))); z-index: 2; margin: 18px -20px 0;
  padding: 12px 20px max(14px, env(safe-area-inset-bottom)); background: linear-gradient(180deg, transparent, var(--g-surface) 22%); }
.g-app .m2-optsheet .o-sheet-actions .g-btn { height: 54px; border-radius: 999px; }
.g-app .m2-optsheet .o-sheet-actions .g-btn.secondary { flex: 0 0 auto; width: auto; padding: 0 22px; background: var(--m2-chip); }
.g-app.g-m2 .m2-optsheet .g-field input { min-height: 50px; padding: 0 16px; border: 0; border-radius: 18px; background: var(--m2-card-soft); }

/* ---------- Stato dell'ordine online (disegno «Stato consegna») */
.m2-ostatus { display: flex; flex-direction: column; gap: 18px; margin-top: 22px; padding: 22px 18px; border-radius: 30px; background: var(--m2-card-soft); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.m2-ost-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.m2-ost-top > div { display: flex; flex-direction: column; min-width: 0; }
.m2-ost-top .o-number { margin: 0; color: var(--g-muted); font-size: 13px; font-weight: 700; }
.m2-ost-top .o-number b { color: var(--g-ink); }
.m2-ost-when { font-size: 15px; font-weight: 700; }
.m2-ost-time { font-family: var(--g-font-head); font-size: 52px; font-weight: 800; line-height: .95; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.m2-steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.m2-steps::before, .m2-steps::after { content: ""; position: absolute; left: 12.5%; top: 21px; height: 3px; border-radius: 3px; }
.m2-steps::before { right: 12.5%; background: var(--m2-chip); }
.m2-steps::after { width: calc(75% * var(--m2-step, 0) / 3); background: #34C759; transition: width .6s ease; }
.m2-steps li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.m2-step-dot { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--g-surface); color: var(--g-muted); box-shadow: inset 0 0 0 2px var(--m2-chip); }
.m2-step-n { font-size: 15px; font-weight: 800; }
.m2-steps li.is-done .m2-step-dot { background: #34C759; color: #FFFFFF; box-shadow: none; }
.m2-steps li.is-now .m2-step-dot { background: var(--g-accent); color: var(--g-on-accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--g-accent) 22%, transparent); animation: m2-pulse 1.8s ease-in-out infinite; }
.m2-ostatus.stage-ritirato .m2-steps li.is-now .m2-step-dot, .m2-ostatus.stage-consegnato .m2-steps li.is-now .m2-step-dot { background: #34C759; color: #FFFFFF; box-shadow: none; animation: none; }
@keyframes m2-pulse { 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--g-accent) 8%, transparent); } }
.m2-step-t { color: var(--g-muted); font-size: 12px; font-weight: 600; line-height: 1.2; }
.m2-steps li.is-now .m2-step-t, .m2-steps li.is-done .m2-step-t { color: var(--g-ink); font-weight: 800; }
.m2-ost-text { margin: 0; font-size: 16px; line-height: 1.45; }
.m2-ostatus .m2-bs-ico { align-self: center; width: 80px; height: 80px; }
.m2-ostatus .g-pay-waiting { margin: 0; }
.m2-olist { margin-top: 16px; padding: 4px 14px 14px; border-radius: 24px; background: var(--m2-card-soft); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.g-app .m2-olist .o-lines { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.g-app .m2-olist .o-lines li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border: 0; border-bottom: 1px solid var(--g-line); font-size: 15px; }
.m2-oq { flex: none; font-weight: 800; }
.m2-on { flex: 1; min-width: 0; }
.m2-ot { color: var(--g-muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.g-app .m2-olist .m2-ototal { margin: 12px 0 0; }
.m2-ost-pay { margin: 8px 0 0; color: var(--g-muted); font-size: 14px; }

/* ---------- Ordine al tavolo (disegno «Ordine al tavolo»): cosa arriva, serve qualcosa, conto, voti */
.m2-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.g-m2.m2-table-page .m2-page-main { display: flex; flex-direction: column; gap: 18px; }
.g-m2.m2-table-page .m2-page-main > .g-foot { margin-top: -4px; }
.m2-tp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.g-app .m2-again { display: inline-flex; flex: none; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--g-accent); color: var(--g-on-accent); font-size: 14px; font-weight: 800; text-decoration: none; }
.g-app .m2-again:active { transform: scale(.96); }
.m2-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 0 2px 6px; }
.g-app .m2-sec-head h2, .g-app .m2-tp-sec .m2-h2, .g-app .m2-bill .m2-h2 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.m2-sec-head span { flex: none; color: var(--g-muted); font-size: 13px; }
.g-app .m2-sec-note { margin: 0; color: var(--g-muted); font-size: 14px; line-height: 1.45; }
.g-app .m2-sec-note.is-center { text-align: center; font-size: 13px; }
.m2-arriva { display: flex; flex-direction: column; gap: 4px; padding: 14px; }
.m2-arr-list { display: flex; flex-direction: column; }
.g-app .m2-arr { display: flex; align-items: center; gap: 12px; padding: 7px 0; border: 0; background: transparent; color: var(--g-ink); }
.m2-arr-ph { display: grid; place-items: center; flex: none; width: 44px; height: 44px; overflow: hidden; border-radius: 13px; background: var(--m2-chip); color: var(--g-muted); font-size: 18px; font-weight: 800; }
.m2-arr-ph img { width: 100%; height: 100%; object-fit: cover; }
.m2-arr.is-new .m2-arr-ph { opacity: .75; }
.m2-arr-name { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.m2-arr-name b { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.m2-arr-name .qty-count { font-weight: 800; }
.m2-arr-name small { color: var(--g-muted); font-size: 12.5px; }
.m2-arr.is-cancelled .m2-arr-name b { color: var(--g-muted); text-decoration: line-through; }
.g-app .m2-spill { display: inline-flex; flex: none; align-items: center; gap: 6px; min-height: 0; padding: 4px 10px; border: 0; border-radius: 999px; background: var(--m2-chip); color: var(--g-muted); font-size: 12px; font-weight: 800; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.g-app .m2-spill.status-served, .g-app .m2-spill.status-ready { background: rgba(52,199,89,.16); color: #1E7A43; }
.g-app .m2-spill.status-in_preparation { background: rgba(255,159,10,.16); color: #94550A; }
.g-app .m2-spill.status-cancelled { background: rgba(217,45,32,.12); color: #B42318; }
.g-m2.is-dark .m2-spill.status-served, .g-m2.is-dark .m2-spill.status-ready { color: #6BD99A; }
.g-m2.is-dark .m2-spill.status-in_preparation { color: #FFC46B; }
.g-m2.is-dark .m2-spill.status-cancelled { color: #FF8A80; }
.m2-spill-dot { width: 7px; height: 7px; border-radius: 50%; background: #FF9F0A; animation: m2-vivo-a 1.6s ease-out infinite; }
@keyframes m2-vivo-a { 0% { box-shadow: 0 0 0 0 rgba(255,159,10,.6); } 100% { box-shadow: 0 0 0 7px rgba(255,159,10,0); } }

.m2-tp-sec { display: flex; flex-direction: column; gap: 10px; }
.m2-tp-sec .m2-sec-note { margin-top: -4px; }
.m2-help { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.g-app .m2-help-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; padding: 14px; border: 1px solid transparent; border-radius: 22px; background: var(--m2-card-soft); color: var(--g-ink); font: inherit; text-align: left; cursor: pointer;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: background .3s ease, border-color .3s ease, transform .15s ease; }
.g-app .m2-help-btn.is-wide { grid-column: 1 / -1; flex-direction: row; align-items: center; }
.g-app .m2-help-btn:active { transform: scale(.97); }
.g-app .m2-help-btn:disabled { opacity: .7; }
.m2-help-ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--m2-chip); color: var(--g-ink); transition: background .3s ease; }
.m2-help-btn.is-wide .m2-help-ico { background: var(--g-accent); color: var(--g-on-accent); }
.m2-help-ico svg + svg, .m2-help-btn.is-sent .m2-help-ico svg:first-child { display: none; }
.m2-help-btn.is-sent .m2-help-ico svg + svg { display: block; }
.m2-help-t { display: flex; flex-direction: column; min-width: 0; }
.m2-help-t b { font-size: 15px; font-weight: 800; }
.m2-help-t small { color: var(--g-muted); font-size: 12px; font-weight: 600; }
.g-app .m2-help-btn.is-sent { border-color: rgba(52,199,89,.5); background: rgba(52,199,89,.14); }
.g-app .m2-help-btn.is-sent .m2-help-ico { background: #34C759; color: #FFFFFF; animation: m2-spunta .38s cubic-bezier(.3, 1.6, .5, 1); }
.m2-help-btn.is-sent small { color: #1E7A43; }
.g-m2.is-dark .m2-help-btn.is-sent small { color: #6BD99A; }

.m2-bill { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 26px; }
.m2-bill-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.m2-bill-row b { font-variant-numeric: tabular-nums; }
.m2-bill-row.is-muted { color: var(--g-muted); font-size: 14px; }
.m2-bill-due { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px solid var(--g-line); }
.m2-bill-due span { font-size: 15px; font-weight: 700; }
.m2-bill-due b { font-family: var(--g-font-head); font-size: 28px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.g-app .m2-big { height: 54px; min-height: 54px; border-radius: 999px; font-size: 17px; font-weight: 800; box-shadow: 0 12px 28px rgba(0,0,0,.25); }
.g-app .m2-bill .m2-big { margin-top: 4px; }
.g-m2 .m2-bill .g-pay-waiting { margin: 2px 0 0; }
.g-app .m2-paid { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px; border-radius: 18px; background: rgba(52,199,89,.16); color: #1E7A43; font-size: 15px; font-weight: 800; }
.g-m2.is-dark .m2-paid { color: #6BD99A; }
.m2-paid-ico { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #34C759; color: #FFFFFF; animation: m2-spunta .38s cubic-bezier(.3, 1.6, .5, 1); }

.m2-rate { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 26px; }
.m2-rate .m2-sec-head { padding: 0; }
.g-app .m2-rate-row { display: flex; align-items: flex-start; gap: 12px; padding: 0; border: 0; }
.g-app .m2-rate-form { display: flex; flex-direction: column; gap: 0; max-width: none; }
.g-app .m2-rate-form[hidden], .g-app .m2-rate-wait[hidden] { display: none; }
.g-app .m2-rate-row + .m2-rate-row { padding-top: 10px; border-top: 1px solid var(--g-line); }
.g-app .m2-rate-ph { width: 52px; height: 52px; border-radius: 14px; }
.m2-rate-main { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.m2-rate-name { font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.g-app .m2-rate-wait, .g-app .m2-rate-done { margin: 0; color: var(--g-muted); font-size: 13.5px; }
.m2-rate-stars { color: #F2B544; letter-spacing: 1px; }
.m2-rate-stars span { color: var(--m2-chip); }
.g-app .m2-rate-thanks { margin: 0; color: #1E7A43; font-size: 14px; font-weight: 700; animation: m2-appare .45s ease both; }
.g-m2.is-dark .m2-rate-thanks { color: #6BD99A; }
.g-app .m2-stars { gap: 2px; }
.g-app .m2-stars label { display: grid; place-items: center; width: 32px; height: 32px; color: var(--g-muted); font-size: 0; }
.m2-stars label svg { fill: transparent; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; transition: fill .15s ease, transform .15s ease; }
.g-app .m2-stars input:checked ~ label, .g-app .m2-stars label:hover, .g-app .m2-stars label:hover ~ label { color: #F2B544; }
.m2-stars input:checked ~ label svg, .m2-stars label:hover svg, .m2-stars label:hover ~ label svg { fill: #F2B544; }
.m2-stars input:focus-visible + label { outline: 2px solid var(--g-accent); outline-offset: 1px; border-radius: 8px; }
.m2-rate-form:not(:has(input:checked)) .m2-rate-more { display: none; }
.m2-rate-more { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; animation: m2-appare .35s ease both; }
.g-app .m2-rate-more textarea { width: 100%; min-height: 64px; padding: 12px 14px; border: 0; border-radius: 16px; background: var(--m2-chip); color: var(--g-ink); font: inherit; font-size: 15px; resize: vertical; }
.g-app .m2-rate-more .g-btn { align-self: flex-start; width: auto; height: 42px; min-height: 42px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 800; }
.g-app .m2-rate-row .g-photo-up { flex: none; width: 42px; height: 42px; min-height: 42px; padding: 0; border: 0; border-radius: 50%; background: var(--m2-chip); color: var(--g-ink); justify-content: center; }
.g-app .m2-rate-row .g-photo-up-thumb { flex: none; width: 42px; height: 42px; background: transparent; color: var(--g-ink); }
.g-app .m2-rate-row .g-photo-up-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.g-app .m2-rate-row .g-photo-up.is-done { background: rgba(52,199,89,.16); }

.m2-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.g-app .m2-chip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--m2-chip); color: var(--g-ink); font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.g-app .m2-chip.is-main { background: var(--g-accent); color: var(--g-on-accent); font-weight: 800; }
.g-app .m2-chip.is-round { width: 40px; padding: 0; font-size: 16px; font-weight: 800; }
.g-app .m2-chip:active { transform: scale(.96); }

.g-app .m2-next { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border: 0; border-radius: 26px; overflow: hidden;
  background: linear-gradient(135deg, var(--g-a1, var(--m2-chip)) 0%, var(--g-a2, var(--m2-chip)) 55%, var(--g-a3, var(--m2-chip)) 100%); color: var(--g-ink); font: inherit; text-align: left; cursor: pointer; }
.m2-next-ico { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.4); }
.g-m2.is-dark .m2-next-ico { background: rgba(255,255,255,.12); }
.m2-next-t { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.m2-next-t b { font-size: 17px; font-weight: 800; }
.m2-next-t small { font-size: 13px; opacity: .8; }
.m2-next .m2-chev { flex: none; opacity: .6; }

.g-app .m2-race-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 0; }
.g-app .m2-race-note a { color: var(--g-ink); font-weight: 700; }
.m2-race-inv { display: flex; align-items: flex-start; gap: 14px; padding: 18px; border-radius: 26px; }
.m2-race-ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--g-accent); color: var(--g-on-accent); }
.m2-race-ico svg { width: 20px; height: 20px; }
.g-app .m2-race-inv h2 { margin: 0; font-size: 18px; font-weight: 800; }
.g-app .m2-race-inv p { margin: 4px 0 12px; color: var(--g-muted); font-size: 14px; line-height: 1.45; }
.g-app .m2-race-inv .g-btn { width: auto; height: 44px; min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 800; }

/* ---------- Paga il conto: pannello dal basso (disegno «Paga il conto») */
.g-m2 .m2-pay[open] { height: min(790px, calc(100dvh - 24px)); max-height: none; }
.g-app .m2-pay .m2-sheet-head h2 { font-size: 26px; }
.g-app .m2-pay .m2-sheet-head p b { color: var(--g-ink); }
.g-app .m2-pay-body { display: flex; flex-direction: column; padding: 4px 20px 20px; }
.g-app .m2-pay-step { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 20px 0 10px; font-size: 16px; font-weight: 800; }
.g-app .m2-pay-step:first-child { margin-top: 6px; }
.m2-pay-step > span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--g-ink); color: var(--g-bg); font-size: 12px; font-weight: 800; }
.m2-pay-step small { color: var(--g-muted); font-size: 13px; font-weight: 600; }
.m2-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.g-app .m2-split-opt { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px; border: 2px solid transparent; border-radius: 20px; background: var(--m2-card-soft); cursor: pointer; transition: border-color .2s ease; }
.m2-split-opt b { font-size: 16px; font-weight: 800; }
.m2-split-opt small { color: var(--g-muted); font-size: 13px; }
.g-app .m2-split-opt:has(input:checked) { border-color: var(--g-accent); }
.g-app .m2-pay input[type="radio"], .g-app .m2-mine-row input { position: absolute; width: 1px; height: 1px; min-height: 0; margin: 0; opacity: 0; pointer-events: none; }
.g-app .m2-pay label:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--g-accent) 40%, transparent); outline-offset: 2px; }
.g-m2 .m2-pay-extra { margin-top: 10px; }
.m2-people { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 18px; background: var(--m2-card-soft); }
.m2-people > span { flex: 1; font-size: 15px; font-weight: 600; }
.g-app .m2-mini-step { height: 38px; padding: 0 3px; gap: 0; border-radius: 999px; background: var(--m2-chip); }
.g-app .m2-mini-step button { width: 32px; height: 32px; background: transparent; box-shadow: none; color: var(--g-ink); }
.g-app .m2-mini-step output { min-width: 22px; font-size: 16px; }
.g-app .m2-mine { display: block; padding: 4px 14px; border-radius: 18px; background: var(--m2-card-soft); }
.g-app .m2-mine-row { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 15px; cursor: pointer; }
.m2-mine-row + .m2-mine-row { border-top: 1px solid var(--g-line); }
.m2-mine-box { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--g-ink) 25%, transparent); color: transparent; }
.m2-mine-box svg { width: 13px; height: 13px; }
.m2-mine-row:has(input:checked) .m2-mine-box { background: #34C759; color: #FFFFFF; box-shadow: none; }
.m2-mine-name { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.m2-mine-name small { color: var(--g-muted); font-size: 12px; }
.m2-mine-row b { font-variant-numeric: tabular-nums; }
.g-m2 .m2-mine .m2-sec-note { padding: 6px 0 8px; font-size: 13px; }
.m2-tips { display: flex; gap: 8px; }
.g-app .m2-tip { position: relative; display: flex; flex: 1 1 0; flex-direction: column; align-items: center; justify-content: center; min-width: 0; height: 54px; padding: 0 4px; border-radius: 16px; background: var(--m2-card-soft); color: var(--g-ink); cursor: pointer; transition: background .2s ease; }
.m2-tip b { font-size: 15px; font-weight: 800; }
.g-app .m2-tip small:empty { display: none; }
.g-app .m2-tip small { color: inherit; font-size: 11px; font-weight: 600; opacity: .8; }
.g-app .m2-split-opt, .g-app .m2-where-opt, .g-app .m2-mine-row, .g-app .m2-people { color: var(--g-ink); }
.g-app .m2-tip:has(input:checked) { background: var(--g-accent); color: var(--g-on-accent); }
.m2-how { margin-bottom: 4px; }
.m2-how .m2-tip { height: 46px; }
.m2-where { display: flex; flex-direction: column; padding: 0 14px; border-radius: 20px; background: var(--m2-card-soft); }
.g-app .m2-where-opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 0; cursor: pointer; }
.m2-where-opt + .m2-where-opt { border-top: 1px solid var(--g-line); }
.m2-where-ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--m2-chip); }
.m2-where-t { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.m2-where-t b { font-size: 16px; font-weight: 700; }
.m2-where-t small { color: var(--g-muted); font-size: 13px; }
.m2-radio { flex: none; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--g-ink) 25%, transparent); transition: box-shadow .2s ease; }
.m2-where-opt:has(input:checked) .m2-radio { box-shadow: inset 0 0 0 7px var(--g-accent); }
.g-app.g-m2 .m2-pay .g-field input { min-height: 50px; padding: 0 16px; border: 0; border-radius: 18px; background: var(--m2-card-soft); color: var(--g-ink); }
.g-m2 .m2-pay .g-field { margin-top: 10px; }
.g-app .m2-pay-foot { display: flex; flex-direction: column; gap: 8px; padding: 12px 20px max(22px, env(safe-area-inset-bottom)); border-top: 1px solid var(--g-line); }
.g-app .m2-pay-sum { display: flex; justify-content: space-between; gap: 10px; margin: 0; color: var(--g-muted); font-size: 14px; text-align: left; }
.g-app .m2-pay-foot .m2-big { height: 58px; min-height: 58px; font-size: 18px; }
.g-app .m2-pay-foot .g-hint { margin: 0; text-align: center; }

@media (min-width: 720px) {
  .g-m2.m2-page .m2-hero { height: 360px; }
  .g-app.g-m2 .g-time-group > div { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .g-app.g-m2 .g-time-group.is-turni > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-m2 .m2-ogrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-m2 .m2-ocart, .g-m2 .m2-optsheet { margin: auto; border-radius: 30px; }
  .g-m2 .m2-ocart[open] { height: min(820px, 92vh); }
  .g-m2 .m2-pay { margin: auto; border-radius: 30px; }
  .g-m2 .m2-pay[open] { height: min(790px, 92vh); }
  .m2-help { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 350px) {
  .g-m2 .g-book-people { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .m2-bs-ring, .m2-bs-ico.is-ok, .g-m2 .g-booking .g-thanks-icon, .g-app.g-m2 .m2-oadd.has-qty, .g-app.g-m2 button.m2-ocartbar, .m2-steps li.is-now .m2-step-dot,
  .m2-spill-dot, .g-app .m2-help-btn.is-sent .m2-help-ico, .m2-paid-ico, .m2-rate-more, .g-app .m2-rate-thanks { animation: none; }
}

/* 2.10 (13/10) sconti a tempo (services/sconti.py): prezzo pieno barrato, prezzo nuovo rosso «saldi», etichetta −20% sulla
   foto; in vetrina la scheda «Offerta» con il prezzo e (ordini online) «Aggiungi» con un tocco */
.g-app { --g-sale: color-mix(in srgb, #EF3B2D 78%, var(--g-ink)); }   /* piu' chiaro sul tema scuro, piu' scuro sul chiaro */
.g-app .is-sconto { color: var(--g-sale); }
.g-app .is-sconto s, .g-app .m2-dish-price s, .g-app .g-now-text small s, .g-app .m2-now-text small s { margin-right: 3px; color: var(--g-muted); font-weight: 500; }
.g-app .m2-now-text small s { color: inherit; opacity: .7; }
.g-app .m2-sconto-chip { position: absolute; z-index: 2; top: 8px; left: 8px; padding: 3px 9px; border-radius: 999px; background: #DC2F23;
  color: #FFFFFF; font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.g-app .g-now.kind-sconto .g-now-thumb { position: relative; }
.g-app .g-now-badge { position: absolute; top: -6px; left: -6px; padding: 2px 7px; border-radius: 999px; background: #DC2F23; color: #FFFFFF;
  font-size: 11.5px; font-weight: 800; font-variant-numeric: tabular-nums; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.g-app .g-now.kind-sconto { overflow: visible; }
.g-app .g-now.kind-sconto small b { color: var(--g-sale); }
.g-app .m2-offer::after { background: linear-gradient(0deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.45) 55%, rgba(0,0,0,.15) 100%); }
.g-app .m2-offer .m2-now-text { gap: 2px; padding: 14px 104px 14px 16px; max-width: none; }
.g-app .m2-offer .m2-now-text strong { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.g-app .m2-offer-price { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.g-app .m2-offer-price s { margin-right: 4px; font-weight: 500; opacity: .7; }
.g-app .m2-offer-ico { position: absolute; z-index: 1; top: 50%; right: 22px; font-size: 54px; font-style: normal; line-height: 1; transform: translateY(-62%); opacity: .9; }
.g-app .m2-offer:has(.m2-offer-add) .m2-offer-ico { right: 26px; transform: translateY(-80%); }
.g-app .g-now-ico { font-size: 28px; font-style: normal; line-height: 1; }
.g-app .m2-offer-badge { position: absolute; z-index: 2; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; background: #DC2F23;
  color: #FFFFFF; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.g-app .m2-offer .m2-now-kind { display: none; }
.g-app .m2-offer-add { position: absolute; z-index: 2; right: 12px; bottom: 14px; display: inline-flex; align-items: center; height: 38px; padding: 0 16px;
  border: 0; border-radius: 999px; background: #FFFFFF; color: #111111; font: inherit; font-size: 14px; font-weight: 800; text-decoration: none; cursor: pointer; }
.g-app .m2-offer-add:active { transform: scale(.95); }
.g-app .m2-offer .m2-now-text small { color: rgba(255,255,255,.82); opacity: 1; font-weight: 600; }
