/* ==========================================================================
   Il Duca · Menù del QR
   Impostazione delle app di consegna (Deliveroo, Just Eat, Uber Eats):
   foto piccola accanto a ogni pizza, scheda con foto grande al tocco,
   categorie sempre visibili in alto e lista con il totale in basso.
   ========================================================================== */

:root {
  --green-950: #0F2219;
  --green-900: #16301F;
  --green-800: #1F3E2B;
  --gold-300: #E8D29C;
  --gold-400: #D4AE62;
  --gold-500: #BF9548;
  --gold-700: #8A5A0B;
  --tomato: #B3261E;
  --leaf: #2F6B45;
  --cream-50: #FCF9F3;
  --cream-100: #F7F1E6;
  --cream-200: #EEE4D2;
  --white: #FFFFFF;
  --ink: #17191A;
  --muted: #585E58;
  --line: rgba(23, 25, 26, 0.1);
  --line-strong: rgba(23, 25, 26, 0.24);
  --on-dark: #F7F1E6;
  --ok: #15803D;
  --soon: #B45309;
  --ko: #B91C1C;
  --font-display: "Playfair Display", "Times New Roman", Georgia, serif;
  --font-body: "Karla", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --col: 720px;
  --pad: 16px;
  --bar-h: 58px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 8px); }
body {
  margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.5; color: var(--ink);
  background: var(--cream-100); -webkit-font-smoothing: antialiased; overscroll-behavior-y: none;
}
body.is-locked { overflow: hidden; }
h1, h2, h3, p, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold-700); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* Bozza */
.draft-note { display: none; }
.bozza .draft-note { display: block; padding: 8px var(--pad); background: #FDE68A; color: #422006; font-size: .78rem; text-align: center; }
.todo { background: none; color: inherit; }
.bozza .todo { background: #FDE68A; color: #422006; padding: 0 .25em; border-radius: 4px; }

/* Bottoni */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 52px; padding: .8em 1.3em;
  border: 1px solid transparent; border-radius: 14px; font-weight: 700; font-size: 1rem; line-height: 1.1; cursor: pointer; text-decoration: none;
  transition: background-color .2s var(--ease-out), transform .15s var(--ease-out);
}
.btn:active { transform: scale(.98); }
.btn--dark { background: var(--green-950); color: var(--cream-50); }
.btn--line { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn--grow { flex: 1; }

/* ---------- Copertina ---------- */
.cover { position: relative; height: clamp(210px, 32vh, 270px); overflow: hidden; color: var(--on-dark); background: var(--green-950); }
.cover__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%; }
.cover__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 34, 25, .62) 0%, rgba(15, 34, 25, .2) 38%, rgba(15, 34, 25, .5) 62%, rgba(15, 34, 25, .94) 100%); }
.cover__top, .cover__body { position: absolute; left: 0; right: 0; width: min(var(--col), 100%); margin-inline: auto; padding-inline: var(--pad); }
/* Come l'intestazione di un'app: indietro a sinistra, nome al centro, tavolo a destra */
.cover__top { top: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding-top: calc(10px + env(safe-area-inset-top)); }
.cover__brand { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; letter-spacing: -.005em; white-space: nowrap; }
.cover__top .back { justify-self: start; }
.cover__top .cover__table { justify-self: end; }

/* Tasto "Torna al sito" */
.back {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none; min-width: 44px; height: 44px; padding: 0;
  border-radius: 999px; font-size: .92rem; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s;
}
.back .icon { width: 20px; height: 20px; }
.back--cover {
  border: 1px solid rgba(252, 249, 243, .3); background: rgba(15, 34, 25, .35); color: var(--on-dark);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.back--cover:hover { background: rgba(15, 34, 25, .6); border-color: rgba(252, 249, 243, .55); }
.back__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.back--bar { display: none; }
.cover__table { padding: 6px 12px; border-radius: 999px; background: var(--gold-400); color: var(--green-950); font-size: .85rem; font-weight: 700; white-space: nowrap; }
.cover__body { bottom: 0; padding-bottom: 18px; }
.cover__eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-300); }
.cover__title { margin: 2px 0 10px; font-family: var(--font-display); font-size: clamp(2.5rem, 10vw, 3.2rem); font-weight: 500; line-height: 1; letter-spacing: -.02em; }
.cover__title em { color: var(--gold-400); font-weight: 400; }
.status {
  display: inline-flex; align-items: center; gap: .5em; padding: 6px 12px; border-radius: 999px;
  background: rgba(15, 34, 25, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: .84rem; font-weight: 700; color: var(--on-dark);
}
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: #9AA3AF; }
.status.is-open .status__dot { background: #4ADE80; }
.status.is-soon .status__dot { background: #FBBF24; }
.status.is-closed .status__dot { background: #F87171; }

/* ---------- Barra fissa: ricerca e categorie ---------- */
.bar {
  position: sticky; top: 0; z-index: 30; background: rgba(247, 241, 230, .96);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line); transition: box-shadow .25s;
}
.bar.is-stuck { box-shadow: 0 8px 20px -14px rgba(15, 34, 25, .35); }
.bar__row { display: flex; align-items: center; gap: 4px; width: min(var(--col), 100%); min-height: var(--bar-h); margin-inline: auto; padding: 6px 4px 6px 10px; }
.bar__search {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%;
  background: var(--white); color: var(--green-950); cursor: pointer;
}
.bar__search[hidden] { display: none; }
.bar__search .icon { width: 20px; height: 20px; }
.tabs { position: relative; flex: 1; min-width: 0; }
.tabs[hidden] { display: none; }
.tabs::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 26px; pointer-events: none; background: linear-gradient(90deg, rgba(247, 241, 230, 0), rgba(247, 241, 230, .96)); }
.tabs__list { position: relative; display: flex; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; padding-right: 22px; }
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__list a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; white-space: nowrap;
  font-size: .93rem; font-weight: 700; color: var(--muted); text-decoration: none; transition: color .2s;
}
.tabs__list a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2.5px; border-radius: 2px;
  background: var(--gold-500); transform: scaleX(0); transition: transform .3s var(--ease-out);
}
.tabs__list a.is-current { color: var(--ink); }
.tabs__list a.is-current::after { transform: scaleX(1); }
.tabs__list li[hidden] { display: none; }

.search { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.search[hidden] { display: none; }
.search__input {
  flex: 1; min-width: 0; height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--white); color: var(--ink); font: inherit; font-size: 1rem; -webkit-appearance: none; appearance: none;
}
.search__input::placeholder { color: #7A807A; }
.search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search__input:focus { outline: none; border-color: var(--gold-700); box-shadow: 0 0 0 3px rgba(212, 174, 98, .3); }
.search__cancel { min-height: 44px; padding: 0 10px; border: 0; background: none; font-weight: 700; color: var(--gold-700); cursor: pointer; }

.filters { display: flex; gap: 8px; width: min(var(--col), 100%); margin-inline: auto; padding: 0 var(--pad) 10px; overflow-x: auto; scrollbar-width: none; }
.filters[hidden] { display: none; }
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: none; min-height: 38px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--white); font-size: .88rem; font-weight: 700; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.filter[aria-pressed="true"] { background: var(--green-950); border-color: var(--green-950); color: var(--cream-50); }

/* ---------- Pagina ---------- */
.page { width: min(var(--col), 100%); margin-inline: auto; padding: 0 var(--pad); }
/* Durante la ricerca la barra deve poter salire fino in cima anche con pochi risultati */
.is-searching .page { min-height: 100vh; min-height: 100svh; }
.section-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; line-height: 1.15; letter-spacing: -.01em; }
.results { padding-top: 14px; font-size: .9rem; color: var(--muted); }
.results:empty { display: none; }

/* I più amati */

/* Categorie e piatti */
.cat { padding-top: 30px; }
.cat[hidden] { display: none; }
.cat__head { padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.cat__sub { margin-top: 3px; font-size: .9rem; color: var(--muted); }

.dish { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 108px; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.dish[hidden] { display: none; }
.dish--plain { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.open {
  position: absolute; inset: 0; z-index: 1; width: 100%; padding: 0; border: 0; border-radius: 12px; background: transparent; cursor: pointer;
}
.dish:active { background: rgba(212, 174, 98, .06); }
.dish__name { font-family: var(--font-display); font-size: 1.13rem; font-weight: 600; line-height: 1.25; }
.dish__ing {
  display: -webkit-box; margin-top: 3px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  font-size: .9rem; line-height: 1.45; color: var(--muted);
}
.dish__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 8px; }
.dish__price { font-weight: 700; font-variant-numeric: tabular-nums; }
.dish__price--ask { font-size: .85rem; font-weight: 600; color: var(--muted); }
.dish__side { position: relative; }
.dish__media { width: 108px; aspect-ratio: 1; overflow: hidden; border-radius: 14px; background: var(--cream-200); }
.dish__media img { width: 100%; height: 100%; object-fit: cover; }
mark.hl { background: rgba(212, 174, 98, .45); color: inherit; border-radius: 3px; padding: 0 1px; }

/* Pulsante "+" (sopra la foto, come nelle app di consegna) */
.add {
  position: relative; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 50%; background: var(--white); color: var(--green-950); cursor: pointer;
  box-shadow: 0 6px 14px -8px rgba(15, 34, 25, .5); transition: background-color .2s, color .2s, transform .15s var(--ease-out);
}
.add:active { transform: scale(.9); }
.add .icon { width: 20px; height: 20px; stroke-width: 2.4; }
.add.is-added { background: var(--gold-400); border-color: var(--gold-400); font-weight: 700; font-size: 1rem; }
.dish__side .add { position: absolute; right: -6px; bottom: -6px; }

/* Etichette */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.badge .icon { width: 11px; height: 11px; }
.badge--top { background: rgba(212, 174, 98, .22); color: var(--gold-700); }
.badge--vegetariana { background: rgba(47, 107, 69, .12); color: var(--leaf); }
.badge--piccante { background: rgba(179, 38, 30, .1); color: var(--tomato); }
.badge--bianca { background: var(--cream-200); color: var(--muted); }
.badge--novita { background: var(--gold-400); color: var(--green-950); }

.empty { padding: 44px 0 12px; text-align: center; color: var(--muted); }
.empty[hidden] { display: none; }
.empty__title { margin-bottom: 4px; font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); }
.empty .btn { margin-top: 16px; }
.noscript { padding: 30px 0; }

/* Pizza Maxi */
.maxi { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; margin-top: 34px; padding: 20px; border-radius: 20px; background: var(--green-950); color: var(--on-dark); }
.maxi[hidden] { display: none; }
.maxi__badge {
  display: grid; place-items: center; align-content: center; width: 76px; height: 76px; border-radius: 50%; border: 1px solid rgba(212, 174, 98, .6);
  color: var(--gold-400); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.maxi__badge b { font-family: var(--font-display); font-size: 1.9rem; font-weight: 500; letter-spacing: 0; line-height: 1; }
.maxi__title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; }
.maxi__text { margin-top: 4px; font-size: .92rem; color: #BAC4BC; }
.maxi__price { margin-top: 8px; font-weight: 700; color: var(--gold-400); }

/* Allergeni */
.allergens { margin-top: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--cream-50); }
.allergens summary { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 18px; font-weight: 700; cursor: pointer; list-style: none; }
.allergens summary::-webkit-details-marker { display: none; }
.allergens summary::after { content: "+"; margin-left: auto; font-size: 1.3rem; color: var(--gold-700); }
.allergens[open] summary::after { content: "–"; }
.allergens summary .icon { color: var(--gold-700); }
.allergens__body { padding: 0 18px 18px; font-size: .92rem; color: var(--muted); }
.allergens__list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.allergens__list li { padding: 3px 10px; border-radius: 999px; background: var(--cream-200); font-size: .8rem; color: var(--ink); }

/* Piede */
.foot { display: grid; justify-items: center; gap: 4px; margin-top: 36px; padding: 32px 0 calc(116px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); text-align: center; font-size: .92rem; color: var(--muted); }
.foot__phone { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--ink); text-decoration: none; }
.foot__updated { font-size: .8rem; }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.foot__links a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 700; color: var(--ink); text-decoration: none; }

/* ---------- La mia lista ---------- */
.tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: center; padding: 0 12px calc(12px + env(safe-area-inset-bottom)); pointer-events: none; }
.tray[hidden] { display: none; }
.tray__btn {
  pointer-events: auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: min(560px, 100%); min-height: 58px;
  padding: 7px 18px 7px 8px; border: 0; border-radius: 16px; background: var(--green-950); color: var(--on-dark); font-weight: 700; cursor: pointer;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6); animation: rise .4s var(--ease-out);
}
.tray__count { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 8px; border-radius: 12px; background: var(--gold-400); color: var(--green-950); font-size: 1.05rem; }
.tray__label { text-align: left; }
.tray__total { color: var(--gold-300); font-variant-numeric: tabular-nums; }
.tray.is-bump .tray__count { animation: bump .4s var(--ease-out); }

.toast {
  position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 45; max-width: calc(100% - 32px);
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--cream-50); font-size: .88rem; font-weight: 600;
  opacity: 0; transform: translate(-50%, 10px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Schede dal basso ---------- */
.sheet {
  width: min(560px, 100%); max-width: 100%; max-height: min(92vh, 860px); margin: auto auto 0; padding: 0; border: 0;
  border-radius: 24px 24px 0 0; background: var(--cream-50); color: var(--ink); overflow: hidden; overscroll-behavior: contain;
}
.sheet[open] { display: flex; flex-direction: column; animation: rise .38s var(--ease-out); }
.sheet::backdrop { background: rgba(15, 34, 25, .58); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sheet__close {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%;
  background: var(--cream-200); color: var(--ink); cursor: pointer;
}
.sheet__close--float { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(252, 249, 243, .94); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .4); }

/* Scheda della pizza */
.dish-sheet__media { position: relative; flex: none; aspect-ratio: 4 / 3; max-height: 46vh; width: 100%; background: var(--cream-200); }
.dish-sheet__media img { width: 100%; height: 100%; object-fit: cover; }
.dish-sheet__media.is-empty { aspect-ratio: auto; height: 64px; background: none; }
.dish-sheet__media.is-empty img { display: none; }
/* (tolta l'etichetta "Foto di esempio": ora nel menù ci sono solo foto vere) */
.dish-sheet__body { flex: 1; overflow-y: auto; padding: 18px 20px 8px; }
.dish-sheet__title { font-family: var(--font-display); font-size: 1.85rem; font-weight: 500; line-height: 1.1; letter-spacing: -.01em; padding-right: 8px; }
.dish-sheet__media.is-empty + .dish-sheet__body .dish-sheet__title { padding-right: 56px; }
.dish-sheet__price { margin-top: 6px; font-size: 1.1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.dish-sheet__ing { margin-top: 12px; font-size: 1rem; color: var(--muted); }
.dish-sheet__ing:empty { display: none; }
.dish-sheet__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.dish-sheet__tags:empty { display: none; }
.dish-sheet__inlist { margin-top: 12px; font-size: .9rem; font-weight: 700; color: var(--gold-700); }
.dish-sheet__foot { display: flex; align-items: center; gap: 12px; padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--cream-50); }
.stepper { display: inline-flex; align-items: center; flex: none; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--white); }
.stepper button { display: grid; place-items: center; width: 44px; height: 50px; padding: 0; border: 0; background: none; cursor: pointer; }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper output { min-width: 26px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Lista */
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 10px; }
.sheet__title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; }
.sheet__list { flex: 1; overflow-y: auto; padding: 0 20px; border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line--plain { grid-template-columns: minmax(0, 1fr) auto; }
.line__img { grid-row: 1 / span 2; width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--cream-200); }
.line__name { font-weight: 700; line-height: 1.25; }
.line__sub { font-size: .85rem; color: var(--muted); }
.line__qty { grid-row: 1 / span 2; grid-column: -2; display: flex; align-items: center; gap: 6px; }
.line__qty button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--white); cursor: pointer; }
.line__qty output { min-width: 20px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.sheet__total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 20px 4px; }
.sheet__total strong { font-family: var(--font-display); font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.sheet__note { padding: 0 20px; font-size: .85rem; color: var(--muted); }
.sheet__actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 16px 20px calc(18px + env(safe-area-inset-bottom)); }

/* Vista per il cameriere */
.waiter { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: var(--white); color: var(--ink); }
.waiter[open] { display: grid; }
.waiter::backdrop { background: var(--white); }
.waiter__inner { display: flex; flex-direction: column; width: min(640px, 100%); margin: 0 auto; padding: calc(28px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom)); }
.waiter__eyebrow { font-size: .9rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-700); }
.waiter__title { margin: 6px 0 14px; font-family: var(--font-display); font-size: 2.4rem; font-weight: 500; }
.waiter__list { flex: 1; overflow-y: auto; }
.waiter__list li { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1.45rem; font-weight: 700; line-height: 1.25; }
.waiter__list b { min-width: 2.4ch; color: var(--gold-700); font-variant-numeric: tabular-nums; }
.waiter__total { margin: 14px 0 18px; font-size: 1.1rem; color: var(--muted); }
.waiter__close { width: 100%; }

@keyframes rise { from { transform: translateY(100%); } to { transform: none; } }
@keyframes bump { 40% { transform: scale(1.18); } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

/* Schermi grandi: le schede si aprono al centro, foto un po' più grandi */
@media (min-width: 760px) {
  .sheet { margin: auto; border-radius: 24px; }
  .sheet[open] { animation: pop .3s var(--ease-out); }
  .dish { grid-template-columns: minmax(0, 1fr) 124px; }
  .dish--plain { grid-template-columns: minmax(0, 1fr) auto; }
  .dish__media { width: 124px; }

  /* Sul computer "Torna al sito" ha la scritta, e quando la copertina esce dallo schermo compare anche nella barra */
  .back--cover { padding: 0 18px 0 13px; }
  .back__label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .back--bar {
    display: inline-flex; width: 0; min-width: 0; margin-right: -4px; overflow: hidden; opacity: 0; visibility: hidden;
    box-shadow: inset 0 0 0 1px var(--line-strong); background: var(--white); color: var(--green-950);
    transition: width .3s var(--ease-out), margin .3s var(--ease-out), opacity .2s, visibility 0s .3s;
  }
  .bar.is-stuck .back--bar { width: 44px; margin-right: 4px; opacity: 1; visibility: visible; transition: width .3s var(--ease-out), margin .3s var(--ease-out), opacity .2s .1s, visibility 0s; }
  .back--bar:hover { box-shadow: inset 0 0 0 1px var(--gold-700); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Menù solo da guardare (novembre 2026): senza "+" le righe senza foto sono solo testo,
   e la scheda della pizza finisce col testo (niente barra "Aggiungi" in fondo) */
.dish--plain { grid-template-columns: minmax(0, 1fr); }
.dish-sheet__body { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }

/* Logo come nel sito: "IL DUCA" in Playfair, senza stemma (novembre 2026) */
.foot__brand { display: grid; justify-items: center; gap: 4px; margin: 0 0 8px; line-height: 1.05; }
.foot__name { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; letter-spacing: -.005em; color: var(--ink); }
.foot__sub { font-size: .62rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-700); }

/* Firma di chi ha realizzato sito e menù: una riga in fondo, piccola ma in evidenza (come nel sito) */
.credit {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 22px;
  width: 100%; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .9rem;
}
.credit .credit__by { display: flex; align-items: center; min-height: 40px; margin: 0; line-height: 1.2; color: var(--ink); }
.credit__by strong { font-weight: 700; color: var(--gold-700); }
.credit__link { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; line-height: 1.2; color: var(--gold-700); font-weight: 700; text-decoration: none; }
.credit__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.credit__link .icon { width: 1.05em; height: 1.05em; }
/* senza la barra della lista in basso il piede non deve più lasciare spazio sotto */
.foot { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }

/* Copertina: logo completo come nel sito (IL DUCA + "Pizzeria · dal 1999") e titolo al centro, senza "Aperto ora" */
.cover__brand { display: grid; justify-items: center; gap: 3px; line-height: 1.05; }
.cover__name { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; letter-spacing: -.005em; }
.cover__sub { font-family: var(--font-body); font-size: .58rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-300); }
.cover__body { text-align: center; padding-bottom: 22px; }
.cover__title { margin-bottom: 0; }
/* Copertina più bassa: logo e "Il menù" vicini (non più ancorati in alto e in basso di un riquadro alto) */
.cover { height: auto; }
.cover__top, .cover__body { position: relative; }
.cover__body { bottom: auto; margin-top: 30px; padding-bottom: 28px; }
