/* =========================================================
   Trattoria I Magnaccioni — replica grafica (HTML/CSS/JS)
   v2: tagli foto uniformi + immagini AVIF/WebP responsive
   ========================================================= */

/* Font ospitati sul sito (niente richieste a Google Fonts: più veloce e conforme GDPR) */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/raleway-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/nunito-latin-600-normal.woff2") format("woff2"); }

:root {
  --red: #aa0000;
  --red-form: #b01111;
  --text: #313338;
  --ink: #0c0c0c;
  --white: #fff;
  --cream: #fffaf2;
  --tint-red: rgb(251, 242, 242);
  --tint-red-6: rgb(250, 240, 240);
  --tint-orange: rgb(255, 247, 241);
  --placeholder: #2b211c;               /* colore caldo mostrato mentre la foto carica */
  --container: 1140px;
  --ff-body: "Manrope", system-ui, sans-serif;
  --ff-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --ff-sub: "Raleway", system-ui, sans-serif;
  --ff-alt: "Nunito", system-ui, sans-serif;
  --radius-card: 25px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .12);

  /* formati unici delle foto: un solo taglio per tipo di immagine */
  --ratio-dish: 4 / 5;      /* foto piatti pagina menu */
  --ratio-grid: 380 / 324;  /* celle scacchiera home */
  --ratio-tall: 3 / 4;      /* amatriciana + orari */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--ff-body); font-size: 16px; line-height: 1.7;
  color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
a { color: var(--red); text-decoration: none; transition: color .25s, background-color .25s, transform .25s; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.3; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }

/* icone SVG inline (sostituiscono Font Awesome) */
.ico { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; vertical-align: -.125em; }

/* immagine di sfondo responsive (<picture class="bg">) */
.bg { display: block; position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--placeholder); }
.bg__img { width: 100%; height: 100%; object-fit: cover; }

/* contenuto fuori schermo: il browser lo renderizza solo quando serve */
.cv { content-visibility: auto; contain-intrinsic-size: auto 700px; }

/* ---------- Tipografia ---------- */
.h-display { font-family: var(--ff-head); font-size: 43px; font-weight: 600; color: #000; line-height: 1.3; }
.h-sub     { font-family: var(--ff-sub); font-size: 28px; font-weight: 600; color: #000; line-height: 1.3; }
.h-small   { font-family: var(--ff-head); font-size: 20px; font-weight: 600; color: #000; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--red); color: var(--white);
  font-family: var(--ff-body); font-size: 15px; padding: 16px 40px; border-radius: 30px; border: 0; cursor: pointer;
}
.btn:hover { background: #8a0000; color: var(--white); }
.btn .ico { transition: transform .25s; }
.btn:hover .ico { transform: translateX(4px); }
.btn--sink:hover { transform: translateY(4px); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header { position: relative; z-index: 50; background: var(--white); transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 124px; max-width: 1240px; }
.site-logo img { height: 92px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav ul { list-style: none; display: flex; margin: 0; padding: 0; }
.main-nav a.nav-link { display: block; padding: 0 16px; line-height: 124px; color: var(--text); }
.main-nav a.nav-link:hover, .main-nav a.nav-link.is-active { color: var(--red); }
.header-cta { margin-left: 20px; background: var(--red); color: var(--white); padding: 12px 34px; border-radius: 30px; font-size: 15px; line-height: 1.5; }
.header-cta:hover { background: #8a0000; color: var(--white); }
.menu-toggle { display: none; background: var(--red); color: var(--white); border: 0; width: 44px; height: 44px; border-radius: 6px; font-size: 22px; cursor: pointer; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 780px; display: flex; align-items: center; justify-content: center;
  color: var(--white); text-align: center; overflow: hidden; background: var(--placeholder);
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0,0,0,.52); }
.hero__inner { position: relative; z-index: 2; padding: 80px 20px 120px; max-width: 1000px; }
.hero__frill { width: 125px; margin: 0 auto 26px; }
.hero__title { font-family: var(--ff-head); font-size: 84px; font-weight: 600; letter-spacing: -1.3px; line-height: 1.2; color: var(--white); }
.hero__subtitle { margin-top: 40px; font-family: var(--ff-sub); font-size: 28px; font-weight: 600; line-height: 1.3; color: rgba(255,255,255,.84); }

/* =========================================================
   PRENOTA ORA + ORARI
   ========================================================= */
.sketch-bg { position: relative; }
.sketch-bg::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .15;
  background: center/contain no-repeat url("../assets/img/sketch-a-1200.webp");
  background-image: image-set(url("../assets/img/sketch-a-1200.avif") type("image/avif"), url("../assets/img/sketch-a-1200.webp") type("image/webp"));
}
.sketch-bg > * { position: relative; z-index: 1; }

.intro { padding: 100px 0; }
.intro__grid { display: grid; grid-template-columns: 1.05fr 1fr 1fr; gap: 40px; align-items: center; }
.intro__text .h-small { margin-bottom: 14px; }
.intro__text .h-display { margin-bottom: 18px; }
.intro__text .h-sub { margin-bottom: 20px; }
.intro__text p { margin-bottom: 36px; }
/* stesso formato per foto e card orari */
.intro__img, .intro .orari-card { aspect-ratio: var(--ratio-tall); min-height: 0; min-width: 0; background: var(--placeholder); overflow: hidden; }
.intro__img img { width: 100%; height: 100%; object-fit: cover; }

.orari-card { position: relative; min-height: 420px; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; text-align: center; color: var(--white); background: var(--placeholder); }
.orari-card::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(rgba(0,0,0,0) 0%, rgba(0,0,0,.85) 100%); }
.orari-card__body { position: relative; z-index: 2; padding: 40px 25px; }
.orari-card h3 { font-family: var(--ff-head); font-size: 43px; color: var(--white); margin-bottom: 12px; }
.orari-card p { color: var(--white); margin: 0; }
.orari-card__label { display: block; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,.8); margin-bottom: 2px; }
.orari-card__addr { margin-top: 14px !important; }

/* =========================================================
   MENÙ INTRO
   ========================================================= */
.menu-intro { padding: 60px 0 80px; }
.menu-intro__divider { width: 100px; margin: 0 auto 10px; }
.menu-intro .h-display, .menu-intro .h-sub { margin-bottom: 30px; }
.menu-intro__text { max-width: 760px; margin: 0 auto 36px; }

/* =========================================================
   SCACCHIERA PIATTI — celle tutte uguali
   ========================================================= */
.dish-grid-section { position: relative; padding: 50px 0; background: var(--ink); }
.dish-grid-section::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(12,12,12,.46); }
.dish-grid-section > .container { position: relative; z-index: 2; }
.dish-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.dish-cell { aspect-ratio: var(--ratio-grid); overflow: hidden; }
.dish-cell--text {
  background: var(--tint-red); border: 1px solid var(--red);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px 30px;
}
.dish-cell--text .h-sub { margin-bottom: 8px; }
.dish-cell--text p { font-size: 15px; line-height: 1.6; }
.dish-cell__line { width: 76px; border-top: 1px solid #000; margin: 18px auto; }
.dish-cell__incl { font-family: var(--ff-sub); font-size: 24px; font-weight: 600; color: #000; }
.dish-cell--img { background: var(--placeholder); }
.dish-cell--img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.dish-cell--img:hover img { transform: scale(1.06); }
.dish-grid-section .btn-wrap { text-align: center; margin-top: 60px; }

/* =========================================================
   RECENSIONI
   ========================================================= */
.reviews { padding: 20px 0 40px; contain-intrinsic-size: auto 260px; }
.reviews__wrap { position: relative; padding: 0 40px; }
.reviews__viewport { overflow: hidden; }
.reviews__track { display: flex; transition: transform .5s ease; }
.review { flex: 0 0 33.3333%; padding: 0 8px; }
.review__card { background: #f4f4f4; border-radius: 4px; padding: 20px; height: 100%; font-size: 13px; line-height: 1.6; color: #000; }
.review__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.review__who { flex: 1; min-width: 0; }
.review__name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.review__date { color: #8a8a8a; font-size: 12px; }
.review__g { width: 20px; height: 20px; }
.review__stars { color: #f6bb06; font-size: 15px; display: flex; align-items: center; gap: 1px; margin-bottom: 8px; }
.review__verified { color: #1a73e8; margin-left: 6px; }
.review__text { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.review.is-open .review__text { -webkit-line-clamp: unset; }
.review__more { background: none; border: 0; padding: 0; margin-top: 6px; color: #8a8a8a; font: inherit; font-size: 12px; cursor: pointer; }
.reviews__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.2); color: #555; display: grid; place-items: center; font-size: 14px; }
.reviews__arrow--prev { left: 0; }
.reviews__arrow--next { right: 0; }
.reviews__dots { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.reviews__dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: #d1d1d1; cursor: pointer; padding: 0; }
.reviews__dots button.is-active { background: #777; }

/* =========================================================
   FESTE
   ========================================================= */
.events { padding: 60px 0 100px; }
.events__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: center; }
.events__sketch { width: 80px; margin-bottom: 20px; }
.events .h-sub { margin-bottom: 22px; }
.dropcap::first-letter { float: left; font-size: 52px; line-height: 1; color: var(--red); font-family: var(--ff-sub); font-weight: 600; margin: 4px 10px 0 0; }
.events__text { margin-top: 30px; }
.events__gallery { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; aspect-ratio: 1 / 0.8; }
.events__gallery figure { margin: 0; overflow: hidden; border-radius: 20px; box-shadow: var(--shadow); background: var(--placeholder); }
.events__gallery figure:first-child { grid-row: 1 / 3; }
.events__gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.events__gallery figure:hover img { transform: scale(1.05); }

/* =========================================================
   SERVIZI
   ========================================================= */
.services { background: var(--tint-red-6); padding: 130px 0 120px; contain-intrinsic-size: auto 420px; }
.services .h-display { margin-bottom: 10px; }
.services__divider { width: 200px; margin-bottom: 30px; }
.services__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.service { display: flex; align-items: center; gap: 12px; color: var(--red); font-size: 22px; }

/* =========================================================
   INSTAGRAM
   ========================================================= */
.insta { padding: 40px 0 30px; }
.insta__header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; color: var(--red); }
.insta__avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.insta__user { font-weight: 700; font-size: 20px; line-height: 1.2; }
.insta__bio { font-size: 13px; line-height: 1.5; }
.insta__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.insta__item { position: relative; aspect-ratio: 1; overflow: hidden; display: block; background: #eee; }
.insta__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, filter .3s; }
.insta__item:hover img { transform: scale(1.05); filter: brightness(.75); }
.insta__actions { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.insta__btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px; border-radius: 4px; font-size: 14px; color: #fff; background: #333; }
.insta__btn--follow { background: #408bd1; }
.insta__btn:hover { opacity: .85; color: #fff; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { position: relative; overflow: hidden; text-align: center; color: var(--white); padding: 80px 30px 50px; background: var(--placeholder); }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0,0,0,.45); }
.site-footer > :not(.bg) { position: relative; z-index: 2; }
.site-footer h2 { font-family: var(--ff-head); font-size: 43px; font-weight: 400; color: var(--white); }
.site-footer a { color: var(--white); }
.site-footer__divider { width: 200px; margin: 22px auto; filter: brightness(0) invert(1); position: relative; z-index: 2; }
.site-footer__phones { display: flex; justify-content: center; gap: 30px 90px; flex-wrap: wrap; }
.site-footer__name { display: block; font-family: var(--ff-sub); font-size: 16px; letter-spacing: 3px; text-transform: uppercase; opacity: .85; margin-bottom: 4px; }

/* =========================================================
   FLOATING BUTTONS
   ========================================================= */
.fab { position: fixed; bottom: 36px; z-index: 60; display: flex; align-items: center; gap: 10px; }
.fab--left { left: 63px; }
.fab--right { right: 63px; flex-direction: row-reverse; }
.fab__circle { width: 56px; height: 56px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 20px; box-shadow: 0 3px 10px rgba(0,0,0,.25); transition: transform .25s; }
.fab__label { background: var(--red); color: #fff; font-size: 11px; letter-spacing: .5px; padding: 4px 10px; border-radius: 3px; text-transform: uppercase; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.fab:hover .fab__circle { transform: scale(1.07); }

/* =========================================================
   PAGINA MENU
   ========================================================= */
.page-hero { position: relative; overflow: hidden; min-height: 478px; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; background: var(--placeholder); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(12,12,12,.6); }
.page-hero--dark::before { background: rgba(12,12,12,.7); }
.page-hero__inner { position: relative; z-index: 2; padding: 60px 20px; }
.page-hero h1, .page-hero__title { font-family: var(--ff-alt); font-size: 64px; font-weight: 600; line-height: 1.4; color: #fff; }
.page-hero .frill { width: 125px; margin: 10px auto 0; }
.page-hero .frill--top { margin: 0 auto 16px; }
.page-hero h1.page-hero__h1-alt { font-family: var(--ff-head); font-size: 43px; }
.page-hero__phone { font-family: var(--ff-alt); font-size: 31px; font-weight: 600; margin-top: 10px; }
.page-hero__phone a { color: #fff; }

.menu-sec { padding: 100px 0; content-visibility: auto; contain-intrinsic-size: auto 1000px; }
.menu-sec--white { background: #fff; }
.menu-sec--tint { background: var(--tint-orange); }
.menu-sec--sketch { position: relative; background: #fff; }
.menu-sec--sketch::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: center/contain no-repeat url("../assets/img/sketch-b-1200.webp");
  background-image: image-set(url("../assets/img/sketch-b-1200.avif") type("image/avif"), url("../assets/img/sketch-b-1200.webp") type("image/webp"));
}
.menu-sec--sketch > .container { position: relative; z-index: 1; }
.menu-sec__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 60px; align-items: start; }
.menu-sec--reverse .menu-sec__media { order: 2; }
/* card foto: formato fisso 4:5, identico per tutti i piatti, e segue lo scroll della lista */
.menu-sec__media {
  position: sticky; top: 30px; background: #000; border-radius: var(--radius-card); padding: 28px;
}
.menu-sec__media img {
  width: 100%; aspect-ratio: var(--ratio-dish); height: auto; object-fit: cover; object-position: center;
  border-radius: calc(var(--radius-card) - 8px); background: var(--placeholder);
}
.menu-sec__list .h-display { color: var(--ink); margin-bottom: 6px; }
.menu-sec__divider { width: 127px; margin-bottom: 30px; }
.dish { padding: 14px 0; }
.dish__row { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.dish__name { font-family: var(--ff-sub); font-size: 28px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.dish__price { font-family: var(--ff-sub); font-size: 28px; font-weight: 600; color: #000; white-space: nowrap; }
.dish__desc { color: var(--ink); }

/* =========================================================
   PAGINA PRENOTA
   ========================================================= */
.booking { padding: 90px 0; }
.booking__form { max-width: 1107px; margin: 0 auto; }
.booking fieldset { border: 0; padding: 0; margin: 0 0 30px; }
.booking legend { font-size: 18px; font-weight: 700; color: #212427; margin-bottom: 18px; padding: 0; }
.form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.form-row--2 { grid-template-columns: 1fr; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; color: var(--red-form); margin-bottom: 8px; }
.field input, .field select, .field textarea { width: 100%; height: 48px; padding: 0 16px; border: 1px solid #b1b1b1; border-radius: 8px; background: transparent; font: inherit; color: #7a7a7a; transition: border-color .2s, box-shadow .2s; }
.field textarea { height: 140px; padding: 12px 16px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red-form); box-shadow: 0 0 0 3px rgba(176,17,17,.12); color: #222; }
.field.has-error input, .field.has-error select { border-color: #d63638; }
.field__error { color: #d63638; font-size: 13px; margin-top: 4px; display: none; }
.field.has-error .field__error { display: block; }
.btn-submit { background: var(--red-form); color: #fff; border: 0; border-radius: 8px; padding: 13px 28px; font: inherit; font-weight: 700; cursor: pointer; }
.btn-submit:hover { background: #8e0d0d; }
.form-msg { margin-top: 20px; padding: 14px 18px; border-radius: 8px; display: none; }
.form-msg.is-ok { display: block; background: #edf7ed; color: #1e4620; }
.form-msg.is-err { display: block; background: #fdecec; color: #8a1414; }
.btn-submit:disabled { opacity: .7; cursor: wait; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-info { padding: 0 0 100px; }
.contact-info__grid { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 24px; align-items: stretch; }
.contact-info .orari-card { min-height: 480px; }
.contact-info .orari-card h3 { font-size: 36px; }
/* mappa caricata solo quando serve (risparmia ~500KB di Google Maps) */
.map-facade { position: relative; min-height: 480px; border-radius: 8px; overflow: hidden; display: grid; place-items: center;
  background: #e8e4dc repeating-linear-gradient(45deg, rgba(0,0,0,.03) 0 10px, transparent 10px 20px); }
.map-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-facade__btn { display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: #fff; border: 0; border-radius: 30px; padding: 14px 30px; font: inherit; cursor: pointer; }

/* =========================================================
   ANIMAZIONI
   ========================================================= */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--down { transform: translateY(-40px); }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .hero { min-height: 640px; }
  .hero__title { font-size: 64px; }
  .h-display, .orari-card h3, .site-footer h2, .page-hero h1.page-hero__h1-alt { font-size: 36px; }
  .intro__grid { grid-template-columns: 1fr 1fr; }
  .intro__text { grid-column: 1 / -1; }
  .events__grid { grid-template-columns: 1fr; }
  .services__list { grid-template-columns: repeat(2, 1fr); }
  .review { flex-basis: 50%; }
  .dish-cell--text .h-sub { font-size: 22px; }
  .dish-cell__incl { font-size: 18px; }
  .dish-cell--text p { font-size: 13px; }
  .dish-cell__line { margin: 10px auto; }
  .menu-sec__grid { grid-template-columns: 1fr; gap: 40px; }
  .menu-sec--reverse .menu-sec__media { order: 0; }
  .menu-sec__media { position: static; max-width: 560px; }
  .contact-info__grid { grid-template-columns: 1fr 1fr; }
  .contact-info .map-facade { grid-column: 1 / -1; order: 3; min-height: 380px; }
}

@media (max-width: 921px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .site-header .container { min-height: 90px; }
  .site-logo img { height: 70px; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 20px; box-shadow: 0 10px 20px rgba(0,0,0,.08); display: none; }
  .main-nav.is-open { display: flex; }
  .main-nav ul { flex-direction: column; }
  .main-nav a.nav-link { line-height: 1; padding: 16px 0; border-bottom: 1px solid #eee; }
  .header-cta { margin: 16px 0 0; text-align: center; }
}

@media (max-width: 767px) {
  body { font-size: 15px; }
  .hero { min-height: 560px; }
  .hero__title { font-size: 44px; letter-spacing: -.5px; }
  .hero__subtitle { font-size: 20px; margin-top: 24px; }
  .h-display, .orari-card h3, .site-footer h2, .page-hero h1.page-hero__h1-alt { font-size: 30px; }
  .h-sub, .dish__name, .dish__price { font-size: 22px; }
  .intro { padding: 60px 0; }
  .intro__grid { grid-template-columns: 1fr; }
  .intro__img { aspect-ratio: 4 / 3; }
  .intro .orari-card { aspect-ratio: auto; min-height: 340px; }
  .dish-grid { grid-template-columns: 1fr; }
  .dish-cell { aspect-ratio: auto; }
  .dish-cell--text { padding: 30px 24px; }
  .dish-cell--text .h-sub { font-size: 24px; }
  .dish-cell--text p { font-size: 15px; }
  .dish-cell__incl { font-size: 20px; }
  .dish-cell--img { aspect-ratio: 4 / 3; }
  .review { flex-basis: 100%; }
  .events__gallery { aspect-ratio: 1 / 1; }
  .services { padding: 70px 0; }
  .services__list { grid-template-columns: 1fr 1fr; gap: 20px; }
  .service { font-size: 18px; }
  .insta__grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero { min-height: 340px; }
  .page-hero h1, .page-hero__title { font-size: 40px; }
  .page-hero__phone { font-size: 24px; }
  .menu-sec { padding: 60px 0; }
  .menu-sec__media { padding: 16px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .map-facade { min-height: 320px; }
  .contact-info__grid { grid-template-columns: 1fr; }
  .contact-info .map-facade { order: 0; }
  .contact-info .orari-card { min-height: 380px; }
  .site-footer__phones { flex-direction: column; gap: 24px; }
  .fab--left { left: 16px; } .fab--right { right: 16px; }
  .fab { bottom: 20px; }
  .site-footer__copy { margin-top: 60px; font-size: 14px; }
  .site-footer { padding-bottom: 110px; }  /* spazio per i pulsanti fissi */
}

/* =========================================================
   v3 — SEO, FAQ, footer NAP, chiamata sedi, utilità
   ========================================================= */
.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; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

p.h-small, p.h-sub, p.dish-cell__incl { margin: 0; }
.services__list { list-style: none; margin: 0; padding: 0; }
.form-row--4 { grid-template-columns: repeat(4, 1fr); }

.review__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }

/* Blocco testo SEO + domande frequenti */
.seo-faq { padding: 100px 0; background: var(--tint-orange); contain-intrinsic-size: auto 900px; }
.seo-faq__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 60px; align-items: start; }
.seo-faq__intro .h-sub { margin-bottom: 20px; }
.seo-faq__intro p { margin-bottom: 18px; }
.seo-faq__intro .btn { margin-top: 12px; }
.faq__title { font-family: var(--ff-head); font-size: 32px; color: #000; margin-bottom: 18px; }
.faq__item { border-bottom: 1px solid rgba(170, 0, 0, .18); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { font-family: var(--ff-body); font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.faq__item summary:hover h3 { color: var(--red); }
.faq__icon { font-size: 20px; color: var(--red); transition: transform .25s; }
.faq__item[open] .faq__icon { transform: rotate(180deg); }
.faq__item p { padding: 0 0 20px; margin: 0; }
.faq__item a { text-decoration: underline; }

/* Footer: indirizzo e link */
.site-footer__nap { font-style: normal; margin-top: 36px; opacity: .9; }
.site-footer__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; margin-top: 14px; }
.site-footer__links a { display: inline-flex; align-items: center; gap: 6px; text-decoration: underline; text-underline-offset: 3px; }
.site-footer__copy { margin-top: 60px; }

/* Pulsante "Chiamaci" con scelta della trattoria */
.fab__toggle { display: flex; align-items: center; gap: 10px; flex-direction: row-reverse; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.fab__toggle:hover .fab__circle { transform: scale(1.07); }
.fab__menu { position: absolute; right: 0; bottom: 70px; background: #fff; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); padding: 8px; min-width: 220px; }
.fab__menu a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink); line-height: 1.3; }
.fab__menu a:hover { background: var(--tint-red); }
.fab__menu a .ico { color: var(--red); font-size: 18px; }
.fab__menu strong { display: block; font-size: 15px; }
.fab__menu span { font-size: 14px; }

/* 404 */
.page-hero--404 { min-height: 70vh; }
.page-hero__actions { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 1024px) {
  .seo-faq__grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .seo-faq { padding: 60px 0; }
  .faq__title { font-size: 26px; }
  .form-row--4 { grid-template-columns: 1fr; }
}

/* =========================================================
   v4 — Privacy, cookie, pagine legali
   ========================================================= */
.site-footer__legal { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px; margin-top: 10px; font-size: 14px; opacity: .85; }
.site-footer__legal a, .site-footer__legal button { color: #fff; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.booking__privacy { font-size: 13px; color: #6b6b6b; margin-top: 14px; }
.booking__privacy a { text-decoration: underline; }

.map-facade__box { position: relative; z-index: 1; text-align: center; padding: 20px; max-width: 320px; }
.map-facade__note { font-size: 13px; color: #555; margin-top: 12px; }
.map-facade__note a { text-decoration: underline; }

.cookie-banner {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 100;
  width: min(640px, calc(100% - 32px)); background: #fff; color: var(--text);
  border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.28); padding: 22px 24px 20px; font-size: 14px; line-height: 1.6;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__title { font-family: var(--ff-head); font-weight: 600; font-size: 18px; color: #000; margin-bottom: 6px; padding-right: 30px; }
.cookie-banner a { text-decoration: underline; }
.cookie-banner__close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border: 0; background: none; cursor: pointer; font-size: 18px; color: #555; display: grid; place-items: center; }
.cookie-banner__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
.cookie-btn { flex: 1 1 140px; max-width: 200px; padding: 11px 20px; border-radius: 30px; border: 2px solid var(--red); background: #fff; color: var(--red); font: inherit; font-weight: 700; cursor: pointer; }
.cookie-btn--primary { background: var(--red); color: #fff; }
.cookie-btn:hover { background: #8a0000; border-color: #8a0000; color: #fff; }

.page-hero--legal { min-height: 300px; }
.legal { padding: 70px 0 100px; }
.legal__body { max-width: 860px; }
.legal__body h2 { font-family: var(--ff-head); font-size: 24px; color: #000; margin: 38px 0 12px; }
.legal__body ul { padding-left: 22px; margin: 0 0 1em; }
.legal__body li { margin-bottom: 8px; }
.legal__body a { text-decoration: underline; }
.legal__table { overflow-x: auto; margin: 0 0 1em; }
.legal__table table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.legal__table th, .legal__table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #e5e5e5; vertical-align: top; }
.legal__table th { background: var(--tint-red); color: var(--red); }
.legal__btn { background: var(--red); color: #fff; border: 0; border-radius: 20px; padding: 6px 16px; font: inherit; cursor: pointer; }
.legal__update { margin-top: 40px; font-size: 14px; color: #777; }

@media (max-width: 767px) {
  .cookie-banner { bottom: 12px; padding: 18px 18px 16px; }
  .cookie-btn { max-width: none; }
  .page-hero--legal { min-height: 220px; }
}
