/* Final responsive refinements; keep catalogue and order logic intact. */
:root{--visual-height:100dvh}
img{max-width:100%}
dialog.scheda{max-height:min(calc(var(--visual-height) - 16px),920px)}
.scheda__corpo--griglia{height:min(calc(var(--visual-height) - 16px),880px)}
.scheda__dentro{scroll-padding-block:16px}
.scheda__testa,.scheda__piede{flex-shrink:0}
.scheda__nome,.ordine-storico,.riepilogo__lista{overflow-wrap:anywhere;min-width:0}
.grill-foto-combinazione img.grill-foto-singola{display:block;width:88%;height:88%;object-fit:contain;position:absolute;inset:6%;margin:auto}
.foto-piatto--tradizione .studio-originale{width:100%!important;height:100%!important;inset:0!important;object-fit:contain!important;filter:none!important;transform:none!important}
.foto-piatto--tradizione .studio-frame{overflow:hidden;border-radius:12px;background:transparent}
.allergeni{flex-wrap:wrap}
button.allergeni__n{min-width:44px;min-height:44px}
.privacy-banner{max-height:min(70dvh,calc(var(--visual-height) - 24px));overflow-y:auto;overscroll-behavior:contain}
@media(max-width:800px){
 body[data-pagina=menu] .cat--grigliata .card{grid-column:auto}
 body[data-pagina=menu] .cat--grigliata .foto-piatto{max-width:100%}
 .scheda input,.scheda select,.scheda textarea,.lingua--native select{font-size:16px!important}
 .testata-nuova .lingua--native select{min-height:44px}
 dialog.scheda{width:100%;margin:auto 0 0;max-height:calc(var(--visual-height) - 8px)}
 .scheda__corpo--griglia{height:calc(var(--visual-height) - 8px)}
 .scheda__corpo--griglia .grill-live-picture{width:min(100%,calc(var(--visual-height) * .30),300px)}
 .scheda__piede{padding-bottom:max(12px,env(safe-area-inset-bottom));gap:8px}
 .scheda__testa,.scheda__dentro{padding-inline:14px}
 .scheda__nome{line-height:1.1}
 .qta__btn,.quantita__btn{min-width:44px;min-height:44px}
 .riepilogo__azioni>*{min-width:0;white-space:normal}
 .pagina-menu,.pagina-ordini{padding-bottom:calc(130px + env(safe-area-inset-bottom))}
 .privacy-banner{inset-inline:12px;width:auto;bottom:max(12px,env(safe-area-inset-bottom));padding:14px;font-size:13px}
 .privacy-banner button{min-height:44px}
 .ordine-storico__azioni{flex-wrap:wrap}
}
@media(max-height:500px){
 .scheda__corpo--griglia .grill-live-picture{width:min(100%,calc(var(--visual-height) * .24))}
 .scheda__testa{padding-block:8px}.scheda__nome{font-size:1.3rem}
 .scheda__corpo--griglia .grill-live-title{display:none}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation:none!important;transition:none!important}}

@media(max-width:800px){dialog.scheda{bottom:var(--visual-bottom,0px)}}

.gruppo select{width:100%;min-height:48px;font:inherit;font-size:16px;padding:12px;border-radius:10px;background:#fff8ed;color:#342319;border:1px solid #bfa17c}.gruppo .pezzi-input{min-height:44px}

.bevande-foto{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-block:12px}.bevanda-foto{min-width:0;display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 8px;border:1px solid #c9ae87;border-radius:14px;background:#fffaf3;color:#342319;text-align:center;font:inherit}.bevanda-foto .foto-piatto{width:100%;margin:0}.bevanda-foto__nome{font-size:1rem;line-height:1.3;overflow-wrap:anywhere}.bevanda-foto__prezzo{font-weight:700}.bevanda-foto[aria-pressed=true]{border:2px solid #7e281b;background:#f9e9d4}.bevanda-foto:focus-visible{outline:3px solid #7e281b;outline-offset:2px}.gruppo__bevande .opz .foto-piatto{width:80px;flex:none;margin:0}.bevande-conferma .scheda__nome{font-size:clamp(1.5rem,5vw,2rem);line-height:1.15}.bevande-conferma .scheda__corpo{height:min(90dvh,880px);height:min(calc(var(--visual-height) - 16px),880px)}.bevande-conferma .scheda__piede{grid-template-columns:1fr}.bevande-conferma .btn{min-height:48px;white-space:normal;line-height:1.25}.bevanda-foto .qta{gap:4px}.bevanda-foto .qta__btn{width:44px;min-width:44px;height:44px}.bevanda-foto .qta__n{min-width:20px}.marocco-scena .egitto-illustrazione{mix-blend-mode:normal}
@media(max-width:650px){.bevande-foto{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.bevanda-foto{padding:10px 6px}.bevande-conferma .scheda__corpo{height:calc(var(--visual-height) - 8px)}}

.gruppo__bevande .opz{grid-template-columns:24px 72px minmax(0,1fr);min-height:96px}.gruppo__bevande .opz>input{grid-column:1;grid-row:1/4}.gruppo__bevande .opz>.foto-piatto{grid-column:2;grid-row:1/4;width:72px}.gruppo__bevande .opz>.opz__nome{grid-column:3;grid-row:1;overflow-wrap:anywhere}.gruppo__bevande .opz>.opz__prezzo{grid-column:3;grid-row:2}.gruppo__bevande .opz>.opz__all{grid-column:3;grid-row:3;justify-self:start}

.succo-incluso{font-weight:700;color:#286447;font-size:.9rem}.cat--cucina-egiziana .studio-frame,.cat--cucina-marocchina .studio-frame{aspect-ratio:1;background:#e8ddcb;border-radius:12px}
