/* =====================================================================
   MOLLICA E CAFFÈ — Ordini al tavolo (tasti, barra carrello, foglio ordine)
   Tutto è visibile solo con body.ordering (server attivo e ordini aperti).
   ===================================================================== */
body:not(.ordering) .octl{ display:none }

/* --- Tasto "+" e quantità sulle voci --- */
.octl{ flex:none; display:flex; align-items:center }
.card__meta .octl{ margin-left:auto }
.row .octl, .addon .octl{ align-self:center }
.oadd{
  width:40px; height:40px; border-radius:50%; border:1.5px solid var(--gold-2);
  background:var(--cream-2); color:var(--gold); font:600 1.45rem/1 "DM Sans",system-ui,sans-serif;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  transition:background .15s var(--ease), color .15s var(--ease), transform .1s var(--ease);
}
.oadd:hover{ background:var(--gold); color:var(--cream-2) }
.oadd:active{ transform:scale(.92) }
.ostep{
  display:inline-flex; align-items:center; gap:2px; height:40px; padding:0 3px;
  border-radius:999px; background:var(--ink); color:var(--cream-2);
}
.ostep button{
  width:34px; height:34px; border:0; border-radius:50%; background:transparent; color:inherit;
  font:600 1.3rem/1 "DM Sans",system-ui,sans-serif; cursor:pointer;
}
.ostep button:active{ background:rgba(255,255,255,.14) }
.ostep output{ min-width:1.6em; text-align:center; font-weight:600; font-variant-numeric:tabular-nums }

/* --- Barra carrello in basso --- */
.obar{
  position:fixed; z-index:30; left:12px; right:12px; bottom:calc(12px + env(safe-area-inset-bottom,0px));
  max-width:560px; margin:0 auto; min-height:56px; padding:8px 18px;
  display:flex; align-items:center; gap:12px; border:0; border-radius:16px; cursor:pointer;
  background:var(--ink); color:var(--cream-2); font:500 1rem/1.2 "DM Sans",system-ui,sans-serif;
  box-shadow:0 16px 34px -14px rgba(58,36,23,.75);
}
.obar__n{ background:var(--gold-2); color:var(--ink); border-radius:999px; padding:4px 10px; font-weight:600; font-size:.85rem }
.obar__go{ flex:1; text-align:left; font-weight:600 }
.obar__tot{ font-family:"Fraunces",serif; font-weight:600; font-size:1.1rem; font-variant-numeric:tabular-nums }
.has-cart .totop{ display:none }   /* coprirebbe i tasti "+" a destra; la barra categorie resta in alto */
.ordering .totop{ right:auto; left:16px }   /* a destra ci sono i tasti "+": il "torna su" va a sinistra */
.has-cart .footer{ padding-bottom:96px }

/* --- Avviso "ordini sospesi" e messaggi brevi --- */
.onotice{
  position:fixed; z-index:30; left:12px; right:12px; bottom:calc(12px + env(safe-area-inset-bottom,0px));
  max-width:560px; margin:0 auto; padding:12px 16px; border-radius:14px;
  background:var(--gold-soft); color:var(--ink); font-size:.92rem; text-align:center;
  box-shadow:0 10px 24px -14px rgba(58,36,23,.6);
}
.otoast{
  position:fixed; z-index:40; left:50%; transform:translateX(-50%); bottom:calc(84px + env(safe-area-inset-bottom,0px));
  max-width:calc(100vw - 32px); padding:10px 16px; border-radius:12px; background:var(--spice); color:#fff; font-size:.92rem;
}

/* --- Foglio "Il tuo ordine" --- */
.osheet{
  width:min(560px, 100vw); max-width:100vw; max-height:92dvh; margin:auto auto 0; padding:18px 18px calc(18px + env(safe-area-inset-bottom,0px));
  border:0; border-radius:22px 22px 0 0; background:var(--cream-2); color:var(--ink); overflow:auto;
  overscroll-behavior:contain;
}
@media (min-width:640px){ .osheet{ margin:auto; border-radius:22px } }
.osheet::backdrop{ background:rgba(40,24,14,.45) }
.osheet h2{ font-family:"Fraunces",serif; font-weight:600; font-size:1.45rem; margin:0 }
.osheet__head{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:8px }
.osheet__x{ width:40px; height:40px; border:0; border-radius:50%; background:var(--gold-soft); color:var(--ink); font-size:1rem; cursor:pointer }
.osheet__muted{ color:var(--ink-2); font-size:.9rem; margin:10px 0 0 }
.olines{ list-style:none; margin:0; padding:0 }
.oline{ padding:12px 0; border-bottom:1px dashed var(--line) }
.oline__top{ display:flex; gap:12px; align-items:baseline }
.oline__nm{ flex:1; font-family:"Fraunces",serif; font-weight:600; font-size:1.05rem }
.oline__pr{ font-weight:600; font-variant-numeric:tabular-nums; white-space:nowrap }
.oline__bottom{ display:flex; gap:10px; align-items:center; margin-top:8px }
.oline__note{ flex:1; min-width:0 }
.oline__note, .ofield input, .ofield textarea{
  width:100%; padding:10px 12px; border:1px solid var(--line); border-radius:12px; background:#fff; color:var(--ink);
  font:400 1rem/1.3 "DM Sans",system-ui,sans-serif;   /* 16px: niente zoom automatico su iPhone */
}
.oline__note:focus, .ofield input:focus, .ofield textarea:focus{ outline:2px solid var(--gold-2); outline-offset:0; border-color:transparent }
.ofield{ display:block; margin-top:16px }
.ofield > span{ display:block; font-weight:600; margin-bottom:6px }
.ofield small{ display:block; color:var(--ink-3); margin-top:5px; font-size:.82rem }
.ofield textarea{ resize:vertical }
.osheet__total{ display:flex; justify-content:space-between; align-items:baseline; margin-top:16px; padding-top:12px; border-top:1px solid var(--line) }
.osheet__total strong{ font-family:"Fraunces",serif; font-size:1.4rem; font-variant-numeric:tabular-nums }
.oerr{ margin:12px 0 0; padding:10px 12px; border-radius:12px; background:#F7DDD6; color:#7E2414; font-size:.92rem }
.osheet__actions{ display:flex; align-items:center; justify-content:flex-end; gap:16px; margin-top:16px }
.obtn{
  min-height:50px; padding:0 26px; border:0; border-radius:14px; background:var(--ink); color:var(--cream-2);
  font:600 1.02rem/1 "DM Sans",system-ui,sans-serif; cursor:pointer;
}
.obtn[disabled]{ opacity:.5; cursor:default }
.olink{ border:0; background:none; color:var(--ink-2); text-decoration:underline; font:inherit; cursor:pointer; padding:8px 4px }
.osheet__done{ text-align:center; padding:10px 4px 4px }
.osheet__check{ width:64px; height:64px; margin:0 auto 12px; border-radius:50%; background:var(--open); color:#fff; font-size:2rem; line-height:64px }
.osheet__big{ font-family:"Fraunces",serif; font-size:1.3rem; font-weight:600; margin:8px 0 }
.osheet__done .obtn{ margin-top:16px; width:100% }

/* --- Carrello in alto a destra, accanto alla lingua --- */
.otop{
  position:relative; margin-left:auto; margin-right:-6px; width:42px; height:42px; flex:none;
  display:flex; align-items:center; justify-content:center; border:1px solid var(--line); border-radius:50%;
  background:var(--cream-2); color:var(--ink); cursor:pointer; transition:border-color .2s var(--ease);
}
.otop:hover{ border-color:var(--gold-2) }
.otop__n{
  position:absolute; top:-5px; right:-5px; min-width:20px; height:20px; padding:0 5px; border-radius:999px;
  background:var(--spice); color:#fff; font:700 .72rem/20px "DM Sans",system-ui,sans-serif; text-align:center;
}
body:not(.ordering) .otop{ display:none }

/* --- "+" dei prodotti da personalizzare: il numero dice quanti sono già nell'ordine --- */
.oadd{ position:relative }
.oadd--n{ background:var(--ink); color:var(--cream-2); border-color:var(--ink) }
.obadge{
  position:absolute; top:-6px; right:-6px; min-width:19px; height:19px; padding:0 4px; border-radius:999px;
  background:var(--gold-2); color:var(--ink); font:700 .7rem/19px "DM Sans",system-ui,sans-serif;
}

/* --- Foglio "Personalizza" (stile A: foto in alto, pastiglie, barra fissa in fondo) --- */
.ocomp{ padding:0; overflow:auto }
.ohero{ position:relative; aspect-ratio:16/10; background:var(--ink) }
.ohero img{ width:100%; height:100%; object-fit:cover; display:block }
.ohero::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(30,18,10,0) 38%, rgba(30,18,10,.84)) }
.ohero--plain{ aspect-ratio:auto; min-height:118px; background:radial-gradient(120% 140% at 0% 0%, #6b4428, var(--ink)) }
.ohero--plain::after{ content:none }
.ohero__txt{ position:absolute; left:20px; right:72px; bottom:16px; z-index:1; color:#fff }
.ohero__txt h2{ margin:0; font:600 1.8rem/1.1 "Fraunces",serif; color:#fff }
.ohero__txt p{ margin:4px 0 0; font:500 1.05rem "Fraunces",serif; color:var(--gold-soft) }
.ohero__x{ position:absolute; top:12px; right:12px; z-index:2; width:42px; height:42px; border:0; border-radius:50%;
  background:rgba(255,255,255,.92); color:var(--ink); font-size:1rem; cursor:pointer }
.ocomp__body{ padding:4px 18px 14px }
.oblock{ margin-top:18px }
.oblock h3{ margin:0 0 10px; font:600 1.02rem/1.3 "DM Sans",system-ui,sans-serif }
.oblock h3 small{ font-weight:400; font-size:.86rem; color:var(--ink-3); margin-left:6px }
.opills{ display:flex; flex-wrap:wrap; gap:8px }
.opill{
  display:inline-flex; align-items:center; gap:6px; min-height:44px; padding:8px 16px; border:0; border-radius:999px;
  background:#fff; box-shadow:inset 0 0 0 1.5px var(--line); color:var(--ink); font:500 .97rem/1.2 "DM Sans",system-ui,sans-serif;
  cursor:pointer; text-align:left; transition:background .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
}
.opill small{ color:var(--ink-3); font-size:.8rem; font-variant-numeric:tabular-nums }
/* ingredienti: pieni = dentro, barrati in rosso = tolti */
.opill--ing{ background:var(--gold-soft); box-shadow:none }
.opill--ing{ position:relative }
.opill--ing[aria-pressed="true"]{ background:transparent; box-shadow:inset 0 0 0 1.5px var(--line); color:var(--ink-3) }
.opill--ing[aria-pressed="true"]::after{ content:""; position:absolute; left:12px; right:12px; top:50%; height:2px; border-radius:2px; background:var(--spice); transform-origin:left }
@media (prefers-reduced-motion:no-preference){ .opill--ing.just[aria-pressed="true"]::after{ animation:ostrike .25s ease-out both } }
@keyframes ostrike{ from{ transform:scaleX(0) } }
/* aggiunte e scelte: scure con la spunta quando scelte */
.opill--add[aria-pressed="true"], .opill[role="radio"][aria-checked="true"]{ background:var(--ink); color:var(--cream-2); box-shadow:none }
.opill--add[aria-pressed="true"] small, .opill[role="radio"][aria-checked="true"] small{ color:var(--gold-soft) }
.opill--add[aria-pressed="true"]::before, .opill[role="radio"][aria-checked="true"]::before{ content:"✓"; font-weight:700 }
.oseg{ position:relative; display:grid; grid-template-columns:1fr 1fr; padding:4px; border-radius:14px; background:var(--gold-soft) }
.oseg__ind{ position:absolute; top:4px; bottom:4px; left:4px; width:calc(50% - 4px); border-radius:11px; background:var(--cream-2); box-shadow:0 4px 12px -6px rgba(58,36,23,.45) }
.oseg button{ position:relative; min-height:46px; border:0; border-radius:11px; background:transparent; color:var(--ink); font:600 .98rem "DM Sans",system-ui,sans-serif; cursor:pointer }
.oseg small{ color:var(--ink-3); font-weight:500 }
.ochoice{ display:grid; grid-template-columns:repeat(auto-fit, minmax(120px, 1fr)); gap:10px }
.ochoice .opill{ justify-content:center; min-height:62px; border-radius:16px; font:600 1.15rem "Fraunces",serif }
.ofree{
  width:100%; padding:12px 14px; border:1px solid var(--line); border-radius:12px; background:#fff; color:var(--ink);
  font:400 1rem/1.3 "DM Sans",system-ui,sans-serif;   /* 16px: niente zoom automatico su iPhone */
}
.ofree:focus{ outline:2px solid var(--gold-2); border-color:transparent }
.ocomp__note{ margin-top:18px }
.ocomp__foot{
  position:sticky; bottom:0; z-index:2; display:flex; gap:12px; align-items:center;
  padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px)); background:var(--cream-2); box-shadow:0 -10px 24px -18px rgba(58,36,23,.6);
}
.oqty{ display:flex; align-items:center; height:52px; padding:0 4px; border-radius:999px; background:var(--gold-soft) }
.oqty button{ width:44px; height:44px; border:0; border-radius:50%; background:transparent; color:var(--ink); font:600 1.4rem/1 "DM Sans",system-ui,sans-serif; cursor:pointer }
.oqty output{ min-width:1.6em; text-align:center; font-weight:600; font-variant-numeric:tabular-nums }
.oaddbtn{
  flex:1; height:52px; display:flex; align-items:center; justify-content:space-between; padding:0 20px; border:0; border-radius:16px;
  background:var(--spice); color:#fff; font:600 1.05rem "DM Sans",system-ui,sans-serif; cursor:pointer;
}
.ocomp__tot{ font-family:"Fraunces",serif; font-size:1.15rem; font-variant-numeric:tabular-nums }
.ocomp .opill:focus-visible, .ocomp button:focus-visible{ outline:2px solid var(--gold-2); outline-offset:2px }

/* --- Piccolo salto del contatore quando si aggiunge --- */
@media (prefers-reduced-motion:no-preference){
  .obump{ animation:obump .35s var(--ease) } .ocomp__tot.obump{ display:inline-block }
  @keyframes obump{ 40%{ transform:scale(1.12) } }
}

/* --- Prodotto esaurito e avviso dello staff --- */
.osold{ display:inline-block; padding:4px 10px; border-radius:999px; background:var(--gold-soft); color:var(--ink-2); font:600 .78rem/1.2 "DM Sans",system-ui,sans-serif; white-space:nowrap }
.is-soldout .card__img, .is-soldout img{ filter:grayscale(.85); opacity:.7 }
.is-soldout .card__name, .is-soldout .row__name{ text-decoration:line-through; text-decoration-color:var(--ink-3) }
/* Avviso dello staff: striscia colorata fissa sotto le categorie (resta mentre si scorre) */
.obanner{
  position:sticky; top:calc(var(--topbar-h) + var(--nav-h)); z-index:14;
  display:flex; align-items:center; justify-content:center; gap:10px; margin:0; padding:10px 16px;
  background:var(--spice); color:#fff; font-weight:700; font-size:.95rem; line-height:1.35; text-align:center;
  box-shadow:0 6px 14px -10px rgba(58,36,23,.6);
}
.obanner span:first-child{ font-size:1.15rem }

/* --- Stato dell'ultimo ordine --- */
.ostate{ font-weight:600; margin:6px 0 }
.ostate--arrived{ color:var(--open) }
.ostate--sending, .ostate--checking{ color:var(--ink-2) }
.olast{ margin:0 0 6px; padding:10px 12px; border-radius:12px; background:var(--cream); font-size:.9rem }



/* --- Il "+" che vola nel carrello --- */
.ofly{ position:fixed; z-index:60; left:0; top:0; width:56px; height:56px; border-radius:50%; object-fit:cover; pointer-events:none; box-shadow:0 8px 20px -8px rgba(58,36,23,.6) }
.ofly--dot{ width:18px; height:18px; background:var(--gold-2) }
@media (prefers-reduced-motion:no-preference){ .otop.obump{ animation:otopb .45s cubic-bezier(.3,1.6,.5,1) } }
@keyframes otopb{ 30%{ transform:scale(1.25) } 60%{ transform:scale(.92) } }

/* --- Prezzo che scorre --- */
.oroll{ display:inline-block; height:1.2em; line-height:1.2em; overflow:hidden; vertical-align:bottom }
.oroll > span{ display:block; transition:transform .45s cubic-bezier(.2,.8,.2,1) }
.oroll i{ display:block; height:1.2em; font-style:normal }
.ocomp__tot, .obar__tot, .osheet__total strong{ display:inline-flex; line-height:1.2em }

/* --- Ordine inviato: stampantina, spunta, briciole --- */
.osheet__done{ position:relative }
.oprint{ position:relative; height:250px; display:flex; justify-content:center; align-items:flex-end; margin:0 -18px 6px; overflow:hidden;
  background:radial-gradient(120% 90% at 50% 100%, #EADCBE, var(--cream-2)) }
.oprint__box{ position:relative; z-index:2; width:200px; height:auto; margin-bottom:10px }
.oprint__paper{ position:absolute; left:50%; bottom:96px; width:200px; margin-left:-100px; height:0; overflow:hidden; z-index:1; transition:height .22s ease-out }
.oprint__in{ position:absolute; left:0; right:0; bottom:0; padding:12px 12px 16px; background:#fff; color:#1d1d1d; text-align:left;
  font:500 .76rem/1.45 "DM Sans",system-ui,sans-serif; box-shadow:0 6px 18px -10px rgba(0,0,0,.4) }
.oprint__in p{ margin:0; min-height:1.45em; display:flex; justify-content:space-between; gap:8px }
.oprint .op-h{ justify-content:center; font-weight:700; font-size:.72rem; letter-spacing:.04em }
.oprint .op-t{ justify-content:center; font-weight:700; font-size:1.05rem }
.oprint .op-s{ padding-left:12px; color:#555 }
.op-caret::after{ content:"▌"; margin-left:1px; animation:opblink .5s steps(1) infinite }
@keyframes opblink{ 50%{ opacity:0 } }
.odone--printing .odone__body{ display:none }
.odone__check{ position:relative; width:76px; height:76px; margin:4px auto 12px }
.ocheck{ width:76px; height:76px; display:block }
.ocheck circle{ fill:var(--open) }
.ocheck path{ fill:none; stroke:#fff; stroke-width:6; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:60; stroke-dashoffset:60 }
.ocheck.go path{ stroke-dashoffset:0 }
@media (prefers-reduced-motion:no-preference){
  .ocheck.go circle{ animation:ocpop .35s ease-out both; transform-origin:center }
  .ocheck.go path{ stroke-dashoffset:60; animation:ocdraw .35s .25s ease-out forwards }
  .odone__body{ animation:ocfade .35s ease-out both }
}
@keyframes ocpop{ from{ transform:scale(.3); opacity:0 } }
@keyframes ocdraw{ to{ stroke-dashoffset:0 } }
@keyframes ocfade{ from{ opacity:0; transform:translateY(6px) } }
.ocrumb{ position:absolute; left:50%; top:50%; width:8px; height:6px; border-radius:40% 60% 50% 50%; pointer-events:none }

/* --- Stato: clessidra che gira → spunta verde con onda --- */
.ostate{ display:inline-flex; align-items:center; gap:10px }
.ostbadge{ position:relative; flex:none; width:30px; height:30px; border-radius:50%; display:grid; place-items:center; background:var(--gold-soft); font-size:.9rem; font-style:normal }
.ostbadge i{ font-style:normal; display:block }
.ostbadge--arrived{ background:var(--open); color:#fff; font-weight:700 }
@media (prefers-reduced-motion:no-preference){
  .ostbadge--sending i{ animation:ospin 1.4s linear infinite }
  .ostbadge.ring::after{ content:""; position:absolute; inset:0; border-radius:50%; animation:oring .9s ease-out }
}
@keyframes ospin{ to{ transform:rotate(360deg) } }
@keyframes oring{ from{ box-shadow:0 0 0 0 rgba(94,107,52,.6) } to{ box-shadow:0 0 0 16px rgba(94,107,52,0) } }
.olast{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px 12px }
.olast .ostbadge{ width:24px; height:24px; font-size:.75rem }

/* --- Timbri a inchiostro (Ricevuto al banco, Esaurito, Tavolo) --- */
.ostamp{ position:absolute; z-index:3; display:grid; place-items:center; text-align:center; pointer-events:none; mix-blend-mode:multiply;
  border:4px double currentColor; border-radius:14px; padding:6px 12px; font:800 .95rem/1.05 "DM Sans",system-ui,sans-serif; letter-spacing:.04em;
  text-transform:uppercase; transform:rotate(-9deg) }
.ostamp small{ display:block; margin-top:2px; font-size:.62rem; font-weight:700; letter-spacing:.08em }
.ostamp--green{ color:#4E6A2A; right:14px; bottom:10px }
.ostamp--red{ color:#B5361F }
.ostamp--photo{ mix-blend-mode:normal; left:50%; top:50%; margin:-24px 0 0 -64px; font-size:1.25rem; background:rgba(255,250,240,.84); box-shadow:0 4px 14px -6px rgba(0,0,0,.4) }
.ostamp--brown{ color:#5A3B27 }
.ostamp--big{ left:50%; top:50%; margin:-36px 0 0 -90px; font-size:1.7rem; padding:8px 18px; background:rgba(252,247,236,.6) }
.card__ph{ position:relative }

/* --- Copia cliente (resta in mano dopo lo strappo) --- */
.ocopy{ position:relative; max-width:300px; margin:14px auto 16px; padding:16px 16px 84px; background:#fff; color:#1d1d1d; text-align:left;
  font:500 .9rem/1.45 "DM Sans",system-ui,sans-serif; transform:rotate(-1.5deg); box-shadow:0 10px 24px -14px rgba(58,36,23,.55);
  clip-path:polygon(0 8px,5% 0,10% 8px,15% 0,20% 8px,25% 0,30% 8px,35% 0,40% 8px,45% 0,50% 8px,55% 0,60% 8px,65% 0,70% 8px,75% 0,80% 8px,85% 0,90% 8px,95% 0,100% 8px,100% 100%,0 100%) }
.ocopy p{ margin:0 }
.ocopy__t{ text-align:center; font-weight:800; font-size:1.25rem; letter-spacing:.02em }
.ocopy__s{ text-align:center; color:#555 }
.ocopy__r{ display:flex; justify-content:space-between; margin-top:8px !important; font-weight:600 }
.ocopy .ostate{ margin-top:10px !important; font-weight:600; font-size:.88rem; color:#444 }
.ocopy .ostbadge{ width:26px; height:26px; font-size:.8rem }
.oprint .op-top, .oprint .op-bot{ display:block }
.oprint .op-tear{ height:0; border-top:2px dashed #bbb; margin:6px -12px }
.oprint .op-c{ justify-content:center; color:#555 }

/* --- Pastiglia del tavolo in alto (QR per tavolo) --- */
.otpill{ flex:none; margin-left:auto; margin-right:-6px; height:32px; padding:0 12px; border-radius:999px; background:var(--ink); color:var(--cream-2);
  display:grid; place-items:center; font:700 .82rem "DM Sans",system-ui,sans-serif }
.otpill + .otop{ margin-left:0 }
body:not(.ordering) .otpill{ display:none }
@media (max-width:420px){ .has-tpill .topbar__name{ display:none } .otpill{ height:30px; padding:0 10px; font-size:.78rem } }

/* --- Dal "+" al foglio (composeIn / closeComposer in order.js) --- */
.ocomp.oc-anim{ background:transparent; overflow:hidden }
.oc-panel{ position:fixed; z-index:0; background:var(--cream-2); border-radius:22px 22px 0 0; pointer-events:none }
.oc-anim > .ohero, .oc-anim > .ocomp__body{ position:relative; z-index:1 }
.oc-ghost{ position:fixed; z-index:6; margin:0; pointer-events:none; transform-origin:0 0 }
.oc-ghost--img{ object-fit:cover; display:block }
.oc-ghost--x{ display:grid; place-items:center; border-radius:50%; font:400 1.7rem/1 "DM Sans",system-ui,sans-serif; transform-origin:50% 50% }
.oc-ghost--x > span{ display:block }
.oc-ghost__box{ overflow:hidden }
.oc-ghost__box img{ width:100%; height:100%; object-fit:cover; display:block }
.ocomp .ohero{ touch-action:none } /* la foto si trascina giù per chiudere il foglio */
.ohero.oc-hero-wait{ background:transparent }
.ohero.oc-hero-wait::after{ opacity:0 }
.ohero::after{ transition:opacity .3s ease }

/* --- Tieni premuto + / −: niente menù "copia" né selezione del testo su iPhone --- */
.oadd, .ostep button, .oqty button{ -webkit-touch-callout:none; -webkit-user-select:none; user-select:none; touch-action:manipulation }
.ostep output{ display:inline-block }

/* --- Carrello vuoto: il piattino con le briciole --- */
.oplate{ text-align:center; padding:4px 0 6px }
.oplate svg{ display:block; margin:6px auto 4px; overflow:visible }
.oplate__cb{ transform-box:fill-box; transform-origin:center }
.oplate p{ margin:4px 0 0; color:var(--ink-2); font-size:.95rem }
.oplate__plus{ display:inline-grid; place-items:center; width:24px; height:24px; border-radius:50%; box-shadow:inset 0 0 0 1.5px var(--gold-2); color:var(--gold); font-weight:700; vertical-align:middle }
@media (prefers-reduced-motion:no-preference){ .oplate__plus{ animation:oplbeat 1.6s ease-in-out infinite } @keyframes oplbeat{ 0%,60%,100%{ transform:none } 30%{ transform:scale(1.18) } } }

/* --- Rimosso · Annulla --- */
.oundo{ position:relative; display:flex; align-items:center; gap:10px; margin:10px 0; padding:0 12px; min-height:48px; border-radius:12px; background:var(--ink); color:var(--cream-2); font-size:.92rem; overflow:hidden; list-style:none }
.oundo span{ flex:1 }
.oundo button{ border:0; background:none; color:#F2C94C; font:700 .92rem "DM Sans",system-ui,sans-serif; min-height:44px; padding:0 4px; cursor:pointer }
.oundo__t{ position:absolute; left:0; bottom:0; height:3px; width:100%; background:#F2C94C; transform-origin:left }

/* --- Tavolo (solo dal QR): pastiglia "Tavolo N" oppure invito a inquadrare il QR --- */
.otable{ display:flex; align-items:center; gap:12px; margin:16px 0 0; padding:12px 14px; border-radius:14px; border:1px solid var(--line); background:var(--cream-2) }
.otable b{ display:block; font:700 1.05rem "Fraunces",serif }
.otable small{ display:block; color:var(--ink-3); font-size:.82rem; margin-top:2px }
p.otable b{ display:inline }
p.otable small{ display:inline; margin:0 0 0 8px }
.otable--scan{ background:var(--gold-soft); border-color:transparent }
.otable--scan p{ margin:0 }
.otable__ic{ font-size:1.6rem; line-height:1 }

/* --- Ritiro al banco / servizio al tavolo --- */
.osvc{ margin:16px 0 0; padding:12px; border-radius:14px; border:1px solid var(--line); transition:border-color .25s, box-shadow .25s }
.osvc.is-bad{ border-color:var(--spice); box-shadow:0 0 0 1px var(--spice) }
.osvc h3{ margin:0 0 10px; font:600 1rem "DM Sans",system-ui,sans-serif }
.osvc__opts{ display:grid; grid-template-columns:1fr 1fr; gap:10px }
.osvc__opts button{ display:flex; flex-direction:column; align-items:flex-start; gap:2px; min-height:44px; padding:12px; border-radius:12px; border:1.5px solid var(--line);
  background:var(--cream-2); color:var(--ink); font:inherit; text-align:left; cursor:pointer; transition:background .2s, border-color .2s, color .2s }
.osvc__opts button b{ font:700 1rem "Fraunces",serif }
.osvc__opts button small{ color:var(--ink-3); font-size:.8rem; line-height:1.3 }
.osvc__opts button[aria-checked="true"]{ background:var(--ink); border-color:var(--ink); color:var(--cream-2) }
.osvc__opts button[aria-checked="true"] small{ color:#EADCBE }
.osvc__ic{ font-size:1.3rem; line-height:1 }
.osvc__note{ margin:10px 0 0; padding:8px 10px; border-radius:10px; background:var(--gold-soft); font-size:.86rem; font-weight:600 }

/* --- Errore gentile sul tavolo + puntini durante l'invio --- */
#oTable{ transition:border-color .25s, box-shadow .25s }
#oTable.is-bad{ border-color:var(--spice); box-shadow:0 0 0 1px var(--spice) }
.oterr{ overflow:hidden; color:#7E2414; font-size:.9rem; font-weight:600 }
.oterr span{ display:block; padding:6px 0 2px }
.odots{ display:inline-flex; gap:6px; vertical-align:middle }
.odots i{ width:8px; height:8px; border-radius:50%; background:#F2C94C }
@media (prefers-reduced-motion:no-preference){ .odots i{ animation:odot 1s ease-in-out infinite } .odots i:nth-child(2){ animation-delay:.15s } .odots i:nth-child(3){ animation-delay:.3s }
  @keyframes odot{ 0%,100%{ transform:scale(.6); opacity:.5 } 50%{ transform:none; opacity:1 } } }

/* --- La nota diventa un'etichetta di carta --- */
.onote{ position:relative; display:inline-flex; align-items:center; gap:12px; max-width:100%; min-width:0; padding:9px 14px 9px 26px; background:#FFF8E6; color:var(--ink);
  font:italic 500 .98rem/1.3 "Fraunces",serif; box-shadow:0 6px 14px -8px rgba(58,36,23,.45); transform:rotate(-1.5deg);
  clip-path:polygon(10px 0,100% 0,100% 100%,10px 100%,0 50%) }
.onote::before{ content:""; position:absolute; left:12px; top:50%; width:6px; height:6px; margin-top:-3px; border-radius:50%; background:var(--cream); box-shadow:inset 0 0 0 1.5px var(--gold-2) }
.onote__t{ min-width:0; overflow-wrap:anywhere }
.onote__e{ flex:none; border:0; background:none; font:600 .8rem "DM Sans",system-ui,sans-serif; color:var(--gold); text-decoration:underline; min-height:36px; padding:0; cursor:pointer }
.oline__bottom .onote{ flex:1 }
.ofield .onote{ margin-top:6px } .ocomp__body > .onote{ margin-top:18px }

/* --- Panino illustrato a strati (panini componibili) --- */
.ohero--pan{ aspect-ratio:auto; background:radial-gradient(90% 70% at 50% 100%, #E9D7B8 0%, #F3E7D1 55%, #F8F0E1 100%) }
.ohero--pan::after{ content:none }
.ohero--pan .ohero__txt{ position:static; padding:2px 20px 4px; color:var(--ink) }
.ohero--pan .ohero__txt h2{ color:var(--ink) }
.ohero--pan .ohero__txt p{ color:var(--gold) }
.ohero--pan .ohero__x{ box-shadow:0 2px 10px -4px rgba(58,36,23,.45) }
.opan{ position:relative; height:clamp(220px, 58vw, 320px); overflow:hidden }
.opan::before{ content:""; position:absolute; left:6%; right:6%; bottom:12px; height:26px; border-radius:50%;
  background:radial-gradient(closest-side, rgba(70,42,20,.28), rgba(70,42,20,0)); transition:transform .5s cubic-bezier(.25,.9,.3,1.1) }
.opan.small::before{ transform:scaleX(.82) }
.opan .lay{ position:absolute; left:50%; bottom:22px; display:block; height:auto; pointer-events:none; user-select:none; -webkit-user-drag:none;
  transform-origin:50% 100%; will-change:transform; filter:drop-shadow(0 2px 2px rgba(60,35,15,.18)) }
.opan .lay[data-n$="-sopra"]{ transform-origin:6% 92% }
.opan .drop{ position:absolute; z-index:120; display:block; border-radius:50% 45% 55% 50%; pointer-events:none }
.oallergy{ margin:6px 0 0; font-size:.78rem; color:var(--ink-3) }
.oline__desc{ display:block; margin-top:2px; font:400 .82rem/1.35 "DM Sans",system-ui,sans-serif; color:var(--ink-2) }
.oblock--swap{ background:#FFF1E0; border-radius:12px; padding:8px 10px; margin-left:-10px; margin-right:-10px }
.oblock--swap h3{ color:#7A3B12 }
.opill--out{ opacity:.45; text-decoration:line-through; cursor:not-allowed } .opill--out small{ display:inline-block; text-decoration:none; margin-left:4px }

/* --- Abbinamenti dopo una puccia o un panino: tre file da scorrere di lato --- */
.osheet.opair{ padding:0; overflow:hidden }
.opair__in{ display:flex; flex-direction:column; max-height:92dvh }
.opair__head{ position:relative; padding:18px 18px 4px }
.opair__head h2{ margin:0; padding-right:48px; font-size:1.4rem; line-height:1.15 }
.opair__head p{ margin:4px 0 0; color:var(--ink-2); font-size:.9rem }
.opair__head .osheet__x{ position:absolute; top:14px; right:14px }
.opair__body{ overflow-y:auto; overscroll-behavior:contain; padding-bottom:8px }
.opair__row{ margin-top:10px }
.opair__h{ display:flex; align-items:baseline; justify-content:space-between; margin:0 18px 8px; font:600 1.02rem "DM Sans",system-ui,sans-serif }
.opair__h small{ font-weight:500; font-size:.8rem; color:var(--ink-2) }
.opair__ban{ position:relative; height:74px; margin:0 18px 8px; border-radius:14px; overflow:hidden; display:flex; background:var(--ink) }
.opair__ban img{ flex:1; min-width:0; height:100%; object-fit:cover; display:block }
.opair__ban::after{ content:""; position:absolute; inset:0; background:linear-gradient(90deg, rgba(30,18,10,.72), rgba(30,18,10,.15)) }
.opair__ban h3{ position:absolute; inset:0; z-index:1; margin:0; padding:0 14px; display:flex; align-items:center; justify-content:space-between; gap:8px; color:#fff; font:600 1.2rem "Fraunces",serif }
.opair__ban h3 small{ color:#fff; background:rgba(30,18,10,.78); padding:4px 10px; border-radius:99px; font:600 .8rem "DM Sans",system-ui,sans-serif; white-space:nowrap }
.opair__track{ display:flex; align-items:stretch; gap:10px; overflow-x:auto; scroll-snap-type:x mandatory; padding:2px 18px 10px; scroll-padding:0 18px; scrollbar-width:none }
.opair__track::-webkit-scrollbar{ display:none }
.opc{ position:relative; flex:0 0 40%; max-width:180px; scroll-snap-align:start; display:flex; flex-direction:column; border-radius:16px; background:var(--cream, #F4EBDA); overflow:hidden; border:1.5px solid transparent; transition:border-color .2s }
.opc--txt{ border-color:var(--line) }
.opc.on{ border-color:var(--ink) }
.opc__pic{ position:relative; height:92px; background:var(--gold-soft) }
.opc__pic img{ width:100%; height:100%; object-fit:cover; display:block }
.opc__n{ position:absolute; top:7px; right:7px; z-index:1; min-width:24px; height:24px; padding:0 6px; border-radius:99px; background:var(--ink); color:var(--cream-2); font:700 .78rem/24px "DM Sans",system-ui,sans-serif; text-align:center }
.opc__in{ padding:9px 9px 9px; display:flex; flex-direction:column; gap:5px; flex:1 }
.opc__nm{ font:600 .95rem/1.2 "Fraunces",serif; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:2.4em }
.opc--txt .opc__nm{ padding-right:22px }
.opc__pr{ font:600 .85rem "DM Sans",system-ui,sans-serif; color:var(--ink-2); font-variant-numeric:tabular-nums }
.opc__chips{ display:grid; grid-template-columns:1fr 1fr; gap:5px }
.opc__chips button{ min-height:34px; padding:0 4px; border:1.5px solid var(--line); border-radius:10px; background:var(--cream-2); color:var(--ink); font:600 .8rem/1.1 "DM Sans",system-ui,sans-serif; cursor:pointer }
.opc__chips button[aria-pressed="true"]{ background:var(--ink); border-color:var(--ink); color:var(--cream-2) }
.opc__chips.need{ animation:opcNeed .5s }
@keyframes opcNeed{ 20%,60%{ transform:translateX(-4px) } 40%,80%{ transform:translateX(4px) } }
.opc__err{ margin:0; font-size:.75rem; font-weight:600; color:var(--spice, #B5361F) }
.opc__err:empty{ display:none }
.opc__txt{ width:100%; min-height:36px; padding:6px 9px; border:1.5px solid var(--line); border-radius:10px; background:var(--cream-2); color:var(--ink); font:500 16px "DM Sans",system-ui,sans-serif }
.opc__glass{ display:flex; align-items:center; gap:6px; font-size:.78rem; color:var(--ink-2) }
.opc__glass input{ width:18px; height:18px; accent-color:var(--ink) }
.opc__act{ margin-top:auto; display:flex; gap:6px }
.opc__plus{ flex:1; min-height:40px; border:1.5px solid var(--gold-2); border-radius:12px; background:var(--cream-2); color:var(--gold); font:700 .9rem "DM Sans",system-ui,sans-serif; cursor:pointer }
.opc__minus{ width:40px; min-height:40px; border:1.5px solid var(--line); border-radius:12px; background:var(--cream-2); color:var(--ink); font:700 1.1rem "DM Sans",system-ui,sans-serif; cursor:pointer }
.opc.on .opc__plus{ background:var(--ink); border-color:var(--ink); color:var(--cream-2) }
.opair__foot{ padding:10px 18px calc(12px + env(safe-area-inset-bottom,0px)); border-top:1px solid var(--line) }
.opair__go{ width:100%; display:flex; align-items:center; justify-content:center; gap:10px }
.opair__go--skip{ background:var(--gold-soft); color:var(--ink) }
.opair__sum{ font-family:"Fraunces",serif; font-variant-numeric:tabular-nums }

/* --- Prima visita: "puoi ordinare da qui" --- */
.ohint{ position:fixed; z-index:40; left:12px; right:12px; bottom:calc(14px + env(safe-area-inset-bottom,0px)); max-width:520px; margin:0 auto;
  display:flex; align-items:center; gap:12px; padding:12px 14px; border-radius:18px; background:var(--ink); color:var(--cream-2);
  box-shadow:0 14px 30px -14px rgba(30,18,10,.6) }
.ohint p{ flex:1; margin:0; font-size:.92rem; line-height:1.35 }
.ohint__ic{ font-size:1.4rem }
.ohint button{ flex:none; min-height:40px; padding:0 14px; border:0; border-radius:999px; background:var(--gold-2); color:var(--ink); font:700 .85rem "DM Sans",system-ui,sans-serif; cursor:pointer }
body.has-cart .ohint{ bottom:calc(84px + env(safe-area-inset-bottom,0px)) }

/* Super menù studente: cosa è già compreso */
.oincl{ margin:14px 0 0; padding:10px 12px; border-radius:12px; background:var(--gold-soft); font-weight:600 }

/* Da fuori (senza QR del tavolo): invito a inquadrare il QR */
.oscan{ margin:14px auto 0; max-width:360px; padding:10px 14px; border-radius:14px; background:var(--gold-soft); color:var(--ink); font-size:.9rem; font-weight:600; line-height:1.4 }
.oscan[hidden]{ display:none }
