:root {
  --bordeaux: #931821;
  --bg: #fbf8f3;
  --surface: #ffffff;
  --ink: #2b2220;
  --muted: #6f625d;
  --line: #e9e1d6;
  --gold: #b08d57;
  --gold-ink: #7a5f35;
  --font-body: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --gutter: 16px;
  --max: 720px;
  --catnav-h: 52px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.5 var(--font-body); }
img { max-width: 100%; display: block; }
button, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* Intestazione */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar__inner { max-width: var(--max); margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: var(--bordeaux); }
.brand__logo { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }
.brand__name { font: 600 1.35rem/1.1 var(--font-display); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.lang__btn, .lang__other { min-height: 36px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-size: .85rem; font-weight: 500; cursor: pointer; }
.lang__other { position: relative; display: inline-grid; place-items: center; min-width: 40px; }
.lang__other select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.lang__other:focus-within { outline: 2px solid var(--bordeaux); outline-offset: 2px; }
.lang__btn[aria-pressed="true"], .lang__other.is-active { background: var(--bordeaux); border-color: var(--bordeaux); color: #fff; }

/* Schermata di scelta */
.home { padding-top: 28px; }
.home__title { margin: 0 0 20px; font: 600 2.2rem/1.2 var(--font-display); color: var(--bordeaux); text-align: center; }
.home__title::after { content: ''; display: block; width: 48px; height: 2px; margin: 10px auto 0; background: var(--gold); }
.home__menus { display: flex; flex-direction: column; gap: 12px; }
.menu-card { width: 100%; padding: 18px 20px; display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 3px rgba(43, 34, 32, .05); }
.menu-card::after { content: '›'; margin-left: auto; color: var(--bordeaux); font-size: 1.8rem; line-height: 1; }
.menu-card.is-serving { border: 2px solid var(--bordeaux); }
.menu-card__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.menu-card__badge { align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: var(--bordeaux); color: #fff; font-size: .72rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.menu-card__name { font: 600 1.7rem/1.15 var(--font-display); color: var(--bordeaux); }
.menu-card__note { color: var(--muted); font-size: .95rem; }
.menu-card__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--ink); font-size: .9rem; font-weight: 500; }

/* Barra categorie */
.catnav::-webkit-scrollbar { display: none; }
.catnav { position: sticky; top: 0; z-index: 10; height: var(--catnav-h); display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none;
  padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  background: rgba(251, 248, 243, .96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.catnav:empty { display: none; }
.catnav__link { flex-shrink: 0; padding: 8px 12px; border-radius: 999px; color: var(--muted); font-size: .92rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.catnav__link.is-active { color: var(--bordeaux); background: rgba(147, 24, 33, .08); }

/* Contenuto */
.page { max-width: var(--max); margin: 0 auto; padding: 16px var(--gutter) 32px; }
.menu-intro { text-align: center; padding: 8px 0 16px; }
.menu-intro__note { margin: 0; color: var(--muted); font-style: italic; }
.menu-intro__price { margin: 6px 0 0; font: 600 1.4rem var(--font-display); color: var(--bordeaux); }

/* Testata del menù */
.menu-top { max-width: var(--max); margin: 0 auto; padding: 14px var(--gutter) 10px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.back, .allergen-link { min-height: 40px; padding: 6px 14px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--bordeaux); font-size: .9rem; font-weight: 500; text-decoration: none; cursor: pointer; }
.allergen-link .allergen { width: 18px; height: 18px; font-size: .7rem; font-style: italic; }
.menu-title { margin: 8px 0 0; font: 600 2.4rem/1.15 var(--font-display); color: var(--bordeaux); text-align: center; }

/* Categorie e piatti */
.category { padding-top: 24px; scroll-margin-top: calc(var(--catnav-h) + 8px); }
.category__title { margin: 0 0 4px; font: 600 1.9rem/1.2 var(--font-display); color: var(--bordeaux); text-align: center; }
.category__title::after { content: ''; display: block; width: 48px; height: 2px; margin: 8px auto 0; background: var(--gold); }
.category__note { margin: 4px 0 8px; color: var(--muted); font-size: .92rem; text-align: center; }

.dish { border-bottom: 1px solid var(--line); }
.dish:last-child { border-bottom: 0; }
.dish__open { width: 100%; padding: 14px 0; display: flex; align-items: flex-start; gap: 14px; background: none; border: 0; text-align: left; cursor: pointer; }
.dish__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dish__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.dish__name { font-size: 1.05rem; font-weight: 500; }
.dish__frozen { margin-left: 2px; color: var(--bordeaux); }
.dish__prices { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; white-space: nowrap; }
.price { font-weight: 500; }
.price__label { color: var(--muted); font-size: .85rem; font-weight: 400; }
.dish__desc { color: var(--muted); font-size: .95rem; }
.dish__pairing { color: var(--gold-ink); font-size: .88rem; font-style: italic; }
.dish__meta { margin-top: 2px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.dish__meta:empty { display: none; }
.dish__photo { width: 88px; height: 88px; flex-shrink: 0; border-radius: 10px; object-fit: cover; }
.dish.is-sold-out .dish__name, .dish.is-sold-out .price { color: var(--muted); text-decoration: line-through; }
.dish.is-sold-out .dish__photo { filter: grayscale(1); opacity: .6; }
.dish__soldout { padding: 2px 8px; border-radius: 4px; background: var(--ink); color: #fff; font-size: .72rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }

.allergen { width: 22px; height: 22px; display: inline-grid; place-items: center; flex-shrink: 0; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-ink); font-size: .72rem; font-weight: 500; }
.tag { padding: 2px 8px; border-radius: 999px; background: #f1ebe2; font-size: .75rem; }
.tag--vegetarian, .tag--vegan { background: #e7f0e1; color: #35592a; }
.tag--gluten_free { background: #e6eef7; color: #23456b; }
.tag--spicy { background: #fbe3dc; color: #8f2c12; }
.tag--chef { background: rgba(147, 24, 33, .1); color: var(--bordeaux); }
.tag--new { background: #fff1cc; color: #7a5800; }

.message { padding: 48px 16px; color: var(--muted); text-align: center; }
.btn { min-height: 44px; padding: 10px 20px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--bordeaux); border-radius: 999px; background: var(--bordeaux); color: #fff; font-weight: 500; text-decoration: none; cursor: pointer; }
.btn--ghost { background: transparent; color: var(--bordeaux); }

/* Piè di pagina */
.footer { padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.footer:empty { display: none; }
.footer__inner { max-width: var(--max); margin: 0 auto; display: flex; flex-direction: column; gap: 12px; color: var(--muted); font-size: .9rem; }
.footer__inner p { margin: 0; }
.footer__cover { color: var(--ink); font-weight: 500; }
.footer__title { scroll-margin-top: calc(var(--catnav-h) + 12px); margin-top: 8px !important; font: 600 1.2rem var(--font-display); color: var(--bordeaux); }
.footer__legend { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 12px; }
.footer__legend li { display: flex; align-items: center; gap: 8px; }
.footer__links { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }

/* Scheda piatto */
.dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: 16px; background: var(--surface); color: var(--ink); }
.dialog::backdrop { background: rgba(30, 20, 18, .55); }
.dialog__close { position: absolute; top: 10px; right: 10px; z-index: 1; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 1px 4px rgba(0, 0, 0, .15); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.detail__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.detail__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.detail__name { margin: 0; padding-right: 40px; font: 600 1.7rem/1.2 var(--font-display); color: var(--bordeaux); }
.detail__prices { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.detail__body p { margin: 0; }
.detail__section-title { margin-top: 6px !important; font-size: .95rem; font-weight: 500; }
.detail__allergens { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.detail__allergens li { display: flex; align-items: center; gap: 8px; }
.detail__note { color: var(--muted); font-size: .88rem; }

/* Google Translate: nasconde barra e tooltip */
#gt-element, .skiptranslate > iframe, .goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame,
.VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; }
body { top: 0 !important; position: static !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
