/* Cucina · la pagina dei colleghi. La versione «Menù» (Nico, 21 ott 2026):
   una carta da ristorante, solo testo. I colori sono token registrati con
   @property, così il tema si dissolve (criterio 26). */
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap; src: url("caratteri/manrope.woff2") format("woff2"); }
@font-face { font-family: "DM Serif Display"; font-weight: 400; font-display: swap; src: url("caratteri/dm-serif-display.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-weight: 400 700; font-display: swap; src: url("caratteri/caveat.woff2") format("woff2"); }
@property --bg { syntax: "<color>"; inherits: true; initial-value: #f6f4ef; }
@property --card { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
@property --ink { syntax: "<color>"; inherits: true; initial-value: #23261f; }
@property --ink2 { syntax: "<color>"; inherits: true; initial-value: #6c705f; }
@property --muted { syntax: "<color>"; inherits: true; initial-value: #a2a592; }
@property --line { syntax: "<color>"; inherits: true; initial-value: #e3e0d4; }
@property --accent { syntax: "<color>"; inherits: true; initial-value: #2f6b4f; }
@property --accent-soft { syntax: "<color>"; inherits: true; initial-value: #e7f1ea; }
@property --gold { syntax: "<color>"; inherits: true; initial-value: #b8902a; }
@property --gold-soft { syntax: "<color>"; inherits: true; initial-value: #f8f0d9; }
@property --heart { syntax: "<color>"; inherits: true; initial-value: #c2413a; }
@property --danger-bg { syntax: "<color>"; inherits: true; initial-value: #fde8e6; }
@property --danger { syntax: "<color>"; inherits: true; initial-value: #9b2a22; }
@property --on-accent { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
@property --amp { syntax: "<color>"; inherits: true; initial-value: #c99a00; }
:root {
  --bg: #f6f4ef; --card: #ffffff; --ink: #23261f; --ink2: #6c705f; --muted: #a2a592; --line: #e3e0d4; --accent: #2f6b4f; --accent-soft: #e7f1ea; --gold: #b8902a; --gold-soft: #f8f0d9; --heart: #c2413a; --danger-bg: #fde8e6; --danger: #9b2a22; --on-accent: #ffffff; --amp: #c99a00;
  --shadow: rgba(35, 38, 31, 0.08); --shadow-strong: rgba(35, 38, 31, 0.2); --curva: cubic-bezier(0.22, 0.9, 0.3, 1);
  transition: --bg 250ms ease, --card 250ms ease, --ink 250ms ease, --ink2 250ms ease, --muted 250ms ease, --line 250ms ease, --accent 250ms ease, --accent-soft 250ms ease, --gold 250ms ease, --gold-soft 250ms ease, --heart 250ms ease, --danger-bg 250ms ease, --danger 250ms ease, --on-accent 250ms ease, --amp 250ms ease;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #13160f; --card: #1c2018; --ink: #eceee4; --ink2: #a9ad98; --muted: #6f7364; --line: #2c3226; --accent: #6cbf93; --accent-soft: #1f3328; --gold: #e3c25a; --gold-soft: #332b14; --heart: #f0867b; --danger-bg: #3a1c19; --danger: #f0867b; --on-accent: #13160f; --amp: #ffd23f; --shadow: rgba(0, 0, 0, 0.3); --shadow-strong: rgba(0, 0, 0, 0.5); } }
:root[data-theme="dark"] { --bg: #13160f; --card: #1c2018; --ink: #eceee4; --ink2: #a9ad98; --muted: #6f7364; --line: #2c3226; --accent: #6cbf93; --accent-soft: #1f3328; --gold: #e3c25a; --gold-soft: #332b14; --heart: #f0867b; --danger-bg: #3a1c19; --danger: #f0867b; --on-accent: #13160f; --amp: #ffd23f; --shadow: rgba(0, 0, 0, 0.3); --shadow-strong: rgba(0, 0, 0, 0.5); }

* { box-sizing: border-box; }
html { height: 100%; touch-action: manipulation; }
body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font: 15px/1.5 Manrope, "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
/* Niente zoom col doppio tocco sul telefono (il pizzico con due dita resta): touch-action: manipulation su tutto ciò che si tocca (Nico, 4 nov 2026) */
button, a, label, input, textarea, [role="button"] { touch-action: manipulation; }
button { font: inherit; color: inherit; }
/* La fascia in cima (Nico, 4 nov 2026): su iPhone installato (iOS 26, Liquid Glass) il sistema vela e sfoca ciò che scorre
   sotto la barra di stato («scroll edge effect»). Una fascia fissa, alta quanto la zona sicura e del colore della pagina,
   sta sempre sotto la barra di stato: così sotto il vetro c'è solo lo sfondo pieno e il logo, che parte più in basso, resta nitido.
   Su PC la zona sicura è 0 e la fascia non esiste. Sta sotto i veli e i fogli (z 34-35), sopra il contenuto che scorre. */
body::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 20; pointer-events: none; }
#app { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; max-width: 560px; margin: 0 auto; }

/* La testata «versione B» (Nico, 4 nov 2026): il logo, «AURORA» piccolo e spaziato sopra, «Eat&Go» grande con la «&» gialla, l'iniziale */
.bar { display: flex; align-items: center; gap: 12px; padding: calc(14px + env(safe-area-inset-top, 0px)) 18px 10px; }
.logo { width: 44px; height: 44px; flex: none; border-radius: 22%; display: block; }
.bar .t { display: grid; gap: 1px; }
.bar .t .sopra { font: 800 10px/1.2 Manrope, "Segoe UI", system-ui, sans-serif; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.bar .t b { display: block; font: 400 25px/1.05 "DM Serif Display", Georgia, serif; letter-spacing: 0.005em; }
.e { font-style: normal; color: var(--amp); }
.avatar { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: 12.5px; cursor: pointer; }
.menu-conto { position: absolute; top: calc(60px + env(safe-area-inset-top)); right: 12px; z-index: 30; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px var(--shadow-strong); padding: 6px; min-width: 220px; animation: cresce 160ms var(--curva); }
.menu-conto .chi { padding: 8px 10px 10px; font-size: 12.5px; color: var(--ink2); border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-conto .chi b { display: block; color: var(--ink); font-size: 13.5px; }
.menu-conto > button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.menu-conto > button:hover { background: var(--accent-soft); }
.tema { display: flex; gap: 2px; padding: 3px; margin: 4px 10px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.tema button { flex: 1 1 0; min-width: 0; height: 30px; border: 0; border-radius: 999px; background: transparent; color: var(--ink2); cursor: pointer; padding: 0; display: grid; place-items: center; transition: background 200ms var(--curva), color 200ms; }
.tema svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tema button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px var(--shadow-strong); }

/* Il contenuto */
.corpo { padding: 6px 22px 20px; display: grid; gap: 12px; align-content: start; }
.corpo > * { animation: entra 240ms var(--curva) backwards; }
.sinistra { display: grid; gap: 12px; }
.testa { text-align: center; padding: 12px 0 4px; display: grid; gap: 2px; }
.testa b { font: 400 30px/1.1 "DM Serif Display", Georgia, serif; }
.testa .sopra { font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 800; }
.testa .ritiro { font-size: 13px; color: var(--ink2); font-weight: 700; font-variant-numeric: tabular-nums; }
.orn { height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 8px 0 2px; }
.voce { padding: 14px 0; border-bottom: 1px dashed var(--line); display: grid; gap: 6px; }
.voce.finito { opacity: 0.5; }
.voce .r1 { display: flex; align-items: baseline; gap: 8px; }
.voce .nome { font: 400 19px/1.2 "DM Serif Display", Georgia, serif; }
.voce .punti { flex: 1; border-bottom: 2px dotted var(--muted); transform: translateY(-5px); min-width: 20px; }
.voce .prezzo { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Gli allergeni in grassetto, il resto normale: niente corsivo (il carattere non ce l'ha, il browser lo inclina storto) */
.voce .ingr { font-size: 13px; color: var(--ink2); line-height: 1.5; }
.voce .ingr b { color: var(--ink); font-weight: 800; }
/* Le etichette di dieta del piatto (4 nov 2026): disegno a colori nel cerchio bianco con il bordo del tema + parola, nel colore del testo secondario */
.voce .diete .dt { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; font-weight: 700; color: var(--ink2); }
.voce .diete .dt-s { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.voce .diete .dt-i { width: 19px; height: 19px; flex: none; --dt-bordo: var(--line); }
.voce .r3 { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink2); font-weight: 600; min-height: 36px; }
.voce .resta { white-space: nowrap; font-variant-numeric: tabular-nums; }
.voce .resta.poche { color: var(--gold); }
.voce .r3 .sp { flex: 1; }
.cuore { border: 0; background: transparent; cursor: pointer; padding: 6px; margin: -6px; color: var(--muted); transition: transform 160ms var(--curva), color 200ms; line-height: 0; }
.cuore:active { transform: scale(0.85); }
.cuore.on { color: var(--heart); animation: battito 380ms var(--curva); }
@keyframes battito { 0% { transform: scale(1); } 40% { transform: scale(1.28); } 100% { transform: scale(1); } }
.piu { width: 36px; height: 36px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 700 18px Manrope, sans-serif; cursor: pointer; flex: none; transition: transform 120ms var(--curva), background 200ms; }
.piu:active { transform: scale(0.9); }
.piu.pieno { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.qta { display: inline-flex; align-items: center; gap: 4px; }
.qta input { width: 40px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); text-align: center; font: 800 15px Manrope, sans-serif; font-variant-numeric: tabular-nums; }
.qta input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.fin { font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink2); background: var(--line); border-radius: 8px; padding: 5px 9px; }

/* Il pulsante in basso e le schede */
.basso { position: sticky; bottom: 0; background: var(--bg); padding: 10px 14px calc(6px + env(safe-area-inset-bottom)); display: grid; gap: 8px; border-top: 1px solid var(--line); }
.prenota { width: 100%; border: 0; border-radius: 16px; background: var(--accent); color: var(--on-accent); font: 800 16px Manrope, sans-serif; padding: 15px 16px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: transform 120ms var(--curva), opacity 200ms; position: relative; }
.prenota:active:not(:disabled) { transform: scale(0.98); }
.prenota:disabled { opacity: 0.4; cursor: default; }
.prenota span:last-child { font-variant-numeric: tabular-nums; }
.prenota .anello { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 2.5px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; border-radius: 50%; opacity: 0; }
.prenota.lavora .anello { opacity: 1; animation: gira 800ms linear infinite; }
.prenota.lavora span { opacity: 0; }
.schede { display: grid; grid-template-columns: repeat(4, 1fr); }
.scheda { border: 0; background: transparent; color: var(--muted); font: 700 11.5px Manrope, sans-serif; display: grid; justify-items: center; gap: 3px; padding: 6px 0 2px; cursor: pointer; position: relative; transition: color 200ms; }
.scheda.on { color: var(--accent); }
.scheda .n { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 17px; height: 17px; border-radius: 99px; background: var(--heart); color: #fff; font-size: 10.5px; display: grid; place-items: center; padding: 0 4px; animation: entra 200ms var(--curva); }

/* Prenotazioni e preferiti */
.sez { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink2); margin: 6px 2px -2px; }
.card { background: var(--card); border-radius: 18px; padding: 16px; box-shadow: 0 1px 0 var(--line), 0 6px 18px var(--shadow); display: grid; gap: 10px; }
.card.esce { animation: esce 180ms var(--curva) forwards; }
/* Ritirata: sbiadita, con il timbro sopra */
.card { position: relative; overflow: hidden; }
.card.fatta > *:not(.timbro) { opacity: 0.42; }
.card .timbro { position: absolute; right: 14px; top: 50%; transform: translateY(-50%) rotate(-12deg); border: 3px solid var(--accent); color: var(--accent); background: var(--card); border-radius: 10px; padding: 4px 12px; font-weight: 800; font-size: 17px; letter-spacing: 0.08em; text-transform: uppercase; text-align: center; line-height: 1.15; z-index: 1; animation: timbra 320ms var(--curva) backwards; }
.card .timbro small { display: block; font-size: 10.5px; letter-spacing: 0.02em; text-transform: none; font-weight: 700; font-variant-numeric: tabular-nums; }
@keyframes timbra { from { opacity: 0; transform: translateY(-50%) rotate(-12deg) scale(1.4); } }
.riga { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; }
.riga span:last-child { font-variant-numeric: tabular-nums; }
.riga.tot { border-top: 1px solid var(--line); padding-top: 10px; }
.nota-card { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; font-weight: 600; color: var(--ink); background: var(--gold-soft); border-left: 3px solid var(--gold); border-radius: 8px; padding: 7px 10px; line-height: 1.4; }
.nota-card svg { flex: none; margin-top: 2px; color: var(--gold); }
.stato { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--accent); background: var(--accent-soft); border-radius: 99px; padding: 5px 11px; justify-self: start; }
.stato.grigio { color: var(--ink2); background: var(--line); }
.annulla { border: 1px solid var(--line); background: transparent; color: var(--ink2); font: 700 14px Manrope, sans-serif; border-radius: 12px; padding: 11px; cursor: pointer; transition: background 200ms, color 200ms, border-color 200ms; }
.annulla:hover { background: var(--accent-soft); color: var(--ink); }
/* Disdire (Nico, 4 nov 2026): pulsante rosso tenue, conferma rosata dentro la scheda, riga «fino alle 15:30» */
.annulla.rosso { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.annulla.rosso:hover { background: var(--danger-bg); color: var(--danger); }
.annulla.pieno { background: var(--danger); color: var(--on-accent); border-color: var(--danger); }
.annulla.pieno:hover { background: color-mix(in srgb, var(--danger) 88%, var(--ink)); color: var(--on-accent); }
.conf-disdetta { background: var(--danger-bg); color: var(--ink); border-radius: 14px; padding: 12px; display: grid; gap: 10px; font-weight: 700; font-size: 13.5px; animation: entra 200ms var(--curva); }
.conf-disdetta .due { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.conf-disdetta .annulla { background: var(--card); }
.conf-disdetta .annulla.pieno { background: var(--danger); }
.entro { font-size: 12px; font-weight: 600; color: var(--ink2); text-align: center; margin-top: -4px; animation: entra 200ms var(--curva); }
.entro.grigio { color: var(--muted); margin-top: 0; }
.interruttore { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 16px; padding: 14px 16px; box-shadow: 0 1px 0 var(--line); font-weight: 700; cursor: pointer; }
.interruttore input { appearance: none; margin: 0 0 0 auto; width: 46px; height: 28px; border-radius: 99px; background: var(--line); position: relative; cursor: pointer; transition: background 200ms; flex: none; }
.interruttore input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 220ms var(--curva); }
.interruttore input:checked { background: var(--accent); }
.interruttore input:checked::after { transform: translateX(18px); }
.pref { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 16px; padding: 13px 16px; box-shadow: 0 1px 0 var(--line); }
.pref .nome { font: 400 18px "DM Serif Display", Georgia, serif; }
.pref small { display: block; font: 600 12px Manrope, sans-serif; color: var(--ink2); }
.pref.esce { animation: esce 180ms var(--curva) forwards; }
/* La lavagna del menù (Nico, 23 ott 2026): la stessa di Chef Giorgio, con le sue regole (cssLavagna) messe in pagina dall'app */
.lavagna-pagina { max-width: 560px; margin: 4px auto 0; width: 100%; }
.lavagna-pagina .lv { margin: 0; }
/* La lavagna ha una sua «.sez» (le portate): le intestazioni della pagina non la devono toccare */
.lavagna-pagina .sez { font-size: inherit; font-weight: inherit; letter-spacing: 0; text-transform: none; color: inherit; margin: 0; }
@media (max-width: 380px) { .lavagna-pagina .lv { font-size: 13.5px; } }
/* Sul telefono i campi di testo almeno 16px: sotto, iOS ingrandisce da solo quando ci si tocca dentro (Nico, 4 nov 2026) */
@media (max-width: 699px) { .qta input, .nota textarea { font-size: 16px; } }
.vuoto { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 60px 20px; color: var(--ink2); animation: respiro 600ms var(--curva) backwards; }
.vuoto b { color: var(--ink); font: 400 22px "DM Serif Display", Georgia, serif; }
.vuoto small { font-size: 13px; font-weight: 600; max-width: 30ch; }
@keyframes respiro { from { opacity: 0; transform: scale(0.97); } }

/* L'ingresso e gli errori */
.ingresso { min-height: 100dvh; display: grid; place-items: center; align-content: center; gap: 18px; text-align: center; padding: 30px; }
.ingresso .simbolo { width: 92px; height: 92px; border-radius: 22px; box-shadow: 0 10px 28px var(--shadow); display: block; }
.ingresso h1 { margin: 0; font: 400 32px/1.1 "DM Serif Display", Georgia, serif; }
.ingresso h1 .e { display: inline-block; }
.ingresso p { margin: 0; color: var(--ink2); font-weight: 600; }
/* L'apertura (versione «G», Nico, 4 nov 2026), solo con .anima cioè la prima volta che la schermata si apre:
   l'icona compare (pop), le tre foglie sbocciano dalla base una dopo l'altra, la «&» del logo entra girando,
   salgono il nome e il pulsante, la «&» gialla del nome fa un saltello, poi l'icona respira piano all'infinito.
   Le parti del logo sono i path dell'SVG inline (classi scritte da scripts/icona.cjs), transform-box: fill-box
   così l'origine è quella della foglia e non dell'icona. Fill «backwards»: finita l'animazione comandano gli
   stili normali (così il pulsante si abbassa ancora al tocco). */
.simbolo .f1, .simbolo .f2, .simbolo .f3, .simbolo .amp { transform-box: fill-box; }
.ingresso.anima .simbolo { animation: pop 500ms cubic-bezier(0.2, 0.9, 0.3, 1.2) backwards, fiato 3.2s 2s ease-in-out infinite; }
.ingresso.anima .f1 { transform-origin: 75% 100%; animation: sboccia 600ms 250ms cubic-bezier(0.2, 0.9, 0.3, 1.15) backwards; }
.ingresso.anima .f2 { transform-origin: 75% 100%; animation: sboccia 600ms 400ms cubic-bezier(0.2, 0.9, 0.3, 1.15) backwards; }
.ingresso.anima .f3 { transform-origin: 30% 100%; animation: sboccia 600ms 550ms cubic-bezier(0.2, 0.9, 0.3, 1.15) backwards; }
.ingresso.anima .amp { transform-origin: 50% 50%; animation: giravolta 800ms 800ms cubic-bezier(0.2, 0.9, 0.3, 1.2) backwards; }
.ingresso.anima h1 { animation: su 550ms 1.05s ease-out backwards; }
.ingresso.anima .errore { animation: su 550ms 1.05s ease-out backwards; }
.ingresso.anima .prenota { animation: su 550ms 1.2s ease-out backwards; }
.ingresso.anima h1 .e { animation: salta 600ms 1.6s ease backwards; }
.ingresso .prenota:active:not(:disabled) { transform: scale(0.97); }
@keyframes pop { from { opacity: 0; transform: scale(0.6); } }
@keyframes sboccia { from { opacity: 0; transform: scale(0.2) rotate(-12deg); } }
@keyframes su { from { opacity: 0; transform: translateY(14px); } }
@keyframes giravolta { from { opacity: 0; transform: rotate(-200deg) scale(0); } }
@keyframes salta { 40% { transform: translateY(-8px) rotate(-8deg); } }
@keyframes fiato { 50% { transform: scale(1.04); } }
.attesa .simbolo { animation: respira 1.6s ease-in-out infinite; }
.puntini { display: flex; gap: 7px; justify-content: center; }
.puntini i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink2); opacity: 0.25; animation: puntino 1.2s infinite; }
.puntini i:nth-child(2) { animation-delay: 0.2s; }
.puntini i:nth-child(3) { animation-delay: 0.4s; }
@keyframes respira { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes puntino { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }
.ingresso .prenota { max-width: 240px; justify-content: center; }
.errore { background: var(--danger-bg); color: var(--danger); border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: 13.5px; white-space: pre-line; }

/* La conferma: la spunta che si disegna */
.velo { position: fixed; inset: 0; background: color-mix(in srgb, var(--bg) 94%, transparent); display: grid; place-items: center; align-content: center; gap: 14px; text-align: center; padding: 30px; animation: entra 220ms var(--curva); z-index: 40; }
.velo b { font: 400 28px "DM Serif Display", Georgia, serif; }
.velo p { margin: 0; color: var(--ink2); font-weight: 600; }
.spunta { width: 84px; height: 84px; }
.spunta circle { fill: var(--accent-soft); }
.spunta path { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: traccia 360ms 120ms var(--curva) forwards; }
@keyframes traccia { to { stroke-dashoffset: 0; } }
.velo .prenota { max-width: 260px; justify-content: center; }
.velo .nota-conf { display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; font-size: 13px; color: var(--ink); }
.velo .nota-conf svg { color: var(--gold); }

/* ─── Il foglio «La tua prenotazione» (telefono) e il pannello (PC) ─── */
.velo-foglio { position: fixed; inset: 0; background: rgba(10, 12, 8, 0.38); z-index: 34; animation: appare 220ms ease; }
.foglio { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: var(--card); color: var(--ink); border-radius: 24px 24px 0 0; padding: 8px 18px calc(22px + env(safe-area-inset-bottom)); display: grid; gap: 14px; box-shadow: 0 -12px 40px var(--shadow-strong); animation: sale 320ms var(--curva); max-height: 88dvh; overflow: auto; max-width: 720px; margin: 0 auto; }
.foglio .maniglia { width: 44px; height: 22px; border: 0; background: transparent; margin: 0 auto -8px; padding: 0; cursor: pointer; position: relative; }
.foglio .maniglia::before { content: ""; position: absolute; left: 2px; right: 2px; top: 9px; height: 5px; border-radius: 5px; background: var(--line); }
.foglio h3 { margin: 0; font: 400 22px "DM Serif Display", Georgia, serif; }
.pannello { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 14px; }
.righe-r { display: grid; gap: 8px; }
.riga-r { display: flex; gap: 10px; align-items: baseline; }
.riga-r .q { font-weight: 800; color: var(--accent); min-width: 24px; font-variant-numeric: tabular-nums; }
.riga-r .n { flex: 1; font-weight: 600; }
.riga-r .prezzo { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.totale { display: flex; justify-content: space-between; font-weight: 800; font-size: 17px; border-top: 1px solid var(--line); padding-top: 10px; font-variant-numeric: tabular-nums; }
.vuoto-r { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.nota { display: grid; gap: 6px; }
.nota label { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink2); display: flex; justify-content: space-between; }
.nota label span { letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.nota textarea { width: 100%; min-height: 64px; resize: none; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--bg); color: var(--ink); font: 600 15px/1.45 Manrope, "Segoe UI", system-ui, sans-serif; outline: none; transition: border-color 150ms, box-shadow 150ms; }
.nota textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.nota textarea::placeholder { color: var(--muted); font-weight: 500; }
.nota textarea:disabled { opacity: 0.5; }
@keyframes appare { from { opacity: 0; } }
@keyframes sale { from { transform: translateY(40px); opacity: 0; } }

/* ─── Le notifiche: il riquadro «Avvisami» ─── */
.avvisi { border: 1px solid var(--line); background: var(--card); border-radius: 16px; padding: 14px 16px; display: grid; gap: 10px; }
.avvisi .capo { display: flex; gap: 12px; align-items: center; }
.avvisi .campana { width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; }
.avvisi .campana svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.avvisi .capo > div { flex: 1; min-width: 0; }
.avvisi .capo b { display: block; font-size: 14.5px; }
.avvisi .capo small { display: block; color: var(--ink2); font-size: 12.5px; line-height: 1.4; font-weight: 600; }
.avvisi .attiva { border: 0; border-radius: 999px; padding: 9px 16px; background: var(--accent); color: var(--on-accent); font: 800 13px Manrope, "Segoe UI", system-ui, sans-serif; cursor: pointer; flex: none; transition: transform 120ms var(--curva), opacity 200ms; }
.avvisi .attiva:active { transform: scale(0.96); }
.avvisi .attiva.lavora { opacity: 0.6; }
.avvisi.spente .campana { background: var(--line); color: var(--ink2); }
.passi { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; counter-reset: p; }
.passi li { display: flex; gap: 10px; align-items: center; font-size: 13.5px; font-weight: 600; flex-wrap: wrap; }
.passi li::before { counter-increment: p; content: counter(p); width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 12px; display: grid; place-items: center; }
.passi .sym { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); vertical-align: middle; }
.passi .sym svg { width: 14px; height: 14px; fill: none; stroke: #2f7cf6; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.avvisi .piccolo { font-size: 12px; color: var(--muted); font-weight: 600; }

.toast { position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top)); opacity: 0; pointer-events: none; transform: translate(-50%, -24px); background: var(--ink); color: var(--bg); font-weight: 700; font-size: 13px; padding: 10px 16px; border-radius: 10px; box-shadow: 0 10px 30px var(--shadow-strong); transition: transform 300ms var(--curva), opacity 300ms; z-index: 50; max-width: calc(100vw - 32px); }
.toast.su { opacity: 1; transform: translate(-50%, 0); }
.toast.errore { background: var(--danger); color: #fff; }
.trema { animation: trema 300ms var(--curva); }

@keyframes entra { from { opacity: 0; transform: translateY(8px); } }
@keyframes esce { to { opacity: 0; transform: translateX(-24px); } }
@keyframes cresce { from { opacity: 0; transform: scale(0.96) translateY(-4px); } }
@keyframes gira { to { transform: rotate(360deg); } }
@keyframes trema { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { :root { transition: none; } *, *::before, *::after { animation: none !important; transition: opacity 150ms !important; } }
#app { position: relative; display: flex; flex-direction: column; min-height: 100dvh; }
.corpo { flex: 1; }
@media (min-width: 700px) and (max-width: 899px) { #app { max-width: 720px; margin: 0 auto; } .corpo { padding: 10px 32px 24px; } }

/* ─── Il PC: le schede in alto, i piatti a sinistra e la prenotazione sempre a destra ─── */
@media (min-width: 900px) {
  #app { max-width: 1180px; margin: 0 auto; }
  .bar { order: -3; padding: 16px 32px 10px; }
  .basso { order: -2; position: static; border-top: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 0 32px; }
  .basso .prenota { display: none; }
  .schede { grid-template-columns: repeat(4, auto); justify-content: start; gap: 6px; }
  .scheda { grid-auto-flow: column; align-items: center; gap: 8px; padding: 12px 14px; font-size: 13.5px; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 200ms, border-color 200ms; }
  .scheda.on { border-bottom-color: var(--accent); }
  .scheda svg { width: 18px; height: 18px; }
  .scheda .n { position: static; }
  .corpo { order: -1; padding: 18px 32px 48px; }
  .corpo.due { grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; align-items: start; }
  .corpo.due .sinistra { min-width: 0; }
  .lato { position: sticky; top: 16px; display: grid; gap: 16px; }
  .testa { text-align: left; }
  .orn { background: linear-gradient(90deg, var(--gold), transparent); }
  .velo .prenota, .ingresso .prenota { max-width: 300px; }
}
