/* ==========================================================================
   Trattoria La Tellina — design system & styles
   Direction: palette blu navy del sito originale (logo #1E4182), sfondi
   bianchi e grigio-azzurro, accenti oro + editorial serif headings. No build step required.
   ========================================================================== */

:root {
  /* Colors — dal blu del logo originale (#1E4182) */
  --cream: #f3f6fb;        /* sfondo pagina: grigio-azzurro chiarissimo */
  --cream-2: #e6ecf5;      /* sfondi secondari, mappa */
  --paper: #ffffff;        /* sezioni chiare, card, testo su navy */
  --espresso: #0f1f3f;     /* testo principale, sezione menu */
  --ink: #0a1730;          /* footer */
  --sienna: #1e4182;       /* BLU DEL LOGO: link, bottoni, titoletti, badge */
  --sienna-dark: #163368;  /* hover */
  --terracotta: #3a63b0;   /* blu chiaro di supporto */
  --olive: #4f6b8f;        /* accento secondario */
  --gold: #c9a24d;         /* ornamenti, stelle, focus */
  --gold-soft: #b7c9ea;    /* testo evidenziato su navy (tab, eyebrow, tag) */
  --muted: #55627a;        /* testo secondario (≥ 4.5:1 su bianco) */
  --border: #d7dfec;
  --white: #fff;

  --bg: var(--cream);
  --fg: var(--espresso);
  --accent: var(--sienna);
  --accent-fg: var(--paper);

  /* Type */
  --font-display: "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Karla", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.5rem, 1.2rem + 1.4vw, 2rem);
  --fs-2xl: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --fs-hero: clamp(2.75rem, 1.5rem + 5.5vw, 6rem);
  --lh-body: 1.6;

  /* Spacing (spacious, density 3/10) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6rem;
  --section: clamp(4.5rem, 3rem + 6vw, 8rem);

  /* Shape & motion */
  --radius: 0.25rem;
  --radius-lg: 0.75rem;
  --shadow-soft: 0 10px 40px rgba(15, 31, 63, 0.12);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur: 320ms;
  --dur-slow: 700ms;

  --container: 76rem;
  --header-h: 5rem;

  color-scheme: light;
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
picture,
svg,
video { display: block; max-width: 100%; }

img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 40;
  font-optical-sizing: auto;
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 var(--space-2);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p { margin: 0 0 var(--space-2); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--dur-fast) ease;
}
a:hover { color: var(--sienna-dark); }

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.75rem 1.25rem;
  background: var(--espresso);
  color: var(--paper);
  z-index: 1000;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

@media (min-width: 48rem) {
  .container { width: min(100% - 4rem, var(--container)); }
}

/* --------------------------------------------------------------------------
   Typographic helpers
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sienna);
  margin-bottom: var(--space-2);
}
.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: currentColor;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: currentColor;
}
.eyebrow--light { color: var(--gold-soft); }

.lead {
  font-size: var(--fs-lg);
  color: var(--muted);
  max-width: 60ch;
}

.section-head { max-width: 42rem; margin-bottom: var(--space-5); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-inline: auto; }

em, .italic { font-style: italic; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-fg);
  --btn-bd: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.85rem 1.75rem;
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease,
              border-color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) ease;
}
.btn:hover {
  --btn-bg: var(--sienna-dark);
  --btn-bd: var(--sienna-dark);
  color: var(--paper);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(30, 65, 130, 0.25);
}
.btn:active { transform: translateY(0); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  --btn-bd: currentColor;
}
.btn--ghost:hover {
  --btn-bg: var(--espresso);
  --btn-bd: var(--espresso);
}

.btn--light {
  --btn-bg: var(--paper);
  --btn-fg: var(--espresso);
  --btn-bd: var(--paper);
}
.btn--light:hover {
  --btn-bg: var(--gold-soft);
  --btn-bd: var(--gold-soft);
  color: var(--espresso);
}

.btn--inherit {
  --btn-bg: transparent;
  --btn-fg: inherit;
  --btn-bd: currentColor;
  color: inherit;
}
.btn--inherit:hover {
  --btn-bg: rgba(30, 65, 130, 0.1);
  --btn-bd: currentColor;
  color: inherit;
  box-shadow: none;
}

.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  --btn-bd: rgba(255, 255, 255, 0.6);
}
.btn--outline-light:hover {
  --btn-bg: rgba(255, 255, 255, 0.12);
  --btn-bd: var(--paper);
  color: var(--paper);
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  /* sempre chiaro, così il logo resta nel suo blu #1E4182 anche sopra la foto */
  color: var(--espresso);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
  transition: height var(--dur) ease, box-shadow var(--dur) ease;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.site-header.is-scrolled,
.site-header.is-open {
  --header-h: 4.25rem;
  box-shadow: 0 2px 16px rgba(15, 31, 63, 0.08), 0 1px 0 var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}
.brand .logo {
  width: min(13rem, 56vw);
  height: auto;
  aspect-ratio: 766 / 131;
  display: block;
  color: #1e4182; /* colore del logo: fisso, non segue il testo intorno */
}
.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-top: 0.1rem;
}

.nav {
  display: none;
  align-items: center;
  gap: var(--space-3);
}
.nav a {
  color: inherit;
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 0.25rem;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0.25rem; right: 0.25rem; bottom: 0.15rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.nav a:hover::after,
.nav a[aria-current="true"]::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.lang {
  color: inherit;
  text-decoration: none;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 0.5rem;
  opacity: 0.85;
}
.lang:hover { opacity: 1; color: inherit; }
.header-actions .btn { display: none; }
.header-actions .btn + .btn { margin-left: -0.25rem; }

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
}
.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: background var(--dur-fast) ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease-out);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.site-header.is-open .nav-toggle span { background: transparent; }
.site-header.is-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.site-header.is-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: var(--cream);
  padding: var(--space-4) 0;
  transform: translateY(-1rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) ease, transform var(--dur) var(--ease-out), visibility 0s var(--dur);
}
.mobile-nav.is-open {
  transform: none;
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-nav a:not(.btn) {
  display: block;
  padding: 1rem 0;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--espresso);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.mobile-nav .btn { margin-top: var(--space-4); width: 100%; }

@media (min-width: 64rem) {
  .nav { display: flex; }
  .nav-toggle,
  .mobile-nav { display: none; }
  .header-actions .btn { display: inline-flex; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: var(--paper);
  isolation: isolate;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  animation: hero-zoom 9s var(--ease-out) forwards;
}
@keyframes hero-zoom { to { transform: scale(1); } }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 23, 48, 0.62) 0%, rgba(10, 23, 48, 0.5) 40%, rgba(10, 23, 48, 0.84) 100%);
}
@media (min-width: 64rem) {
  /* su schermi larghi il testo sta a sinistra: scurisco solo quel lato e lascio respirare la foto */
  .hero::after {
    background:
      linear-gradient(90deg, rgba(10, 23, 48, 0.62) 0%, rgba(10, 23, 48, 0.3) 55%, rgba(10, 23, 48, 0.1) 100%),
      linear-gradient(180deg, rgba(10, 23, 48, 0.4) 0%, rgba(10, 23, 48, 0.1) 40%, rgba(10, 23, 48, 0.78) 100%);
  }
}
.hero h1,
.hero .lead,
.hero .eyebrow { text-shadow: 0 1px 2px rgba(10, 23, 48, 0.6), 0 4px 24px rgba(10, 23, 48, 0.45); }
.hero__content {
  padding-block: calc(var(--header-h) + var(--space-5)) var(--space-6);
  max-width: 46rem;
}
.hero h1 {
  color: var(--paper);
  margin-bottom: var(--space-3);
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-soft);
}
.hero .lead {
  color: rgba(255, 255, 255, 0.94);
  max-width: 34rem;
  margin-bottom: var(--space-4);
}
@media (max-width: 47.99rem) {
  .hero .lead { font-size: var(--fs-base); line-height: 1.55; max-width: 30rem; }
  .hero .eyebrow { font-size: 0.72rem; letter-spacing: 0.16em; }
  .hero h1 em { color: #d6e2f7; }
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero__strip {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(10, 23, 48, 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hero__strip .container {
  display: grid;
  gap: var(--space-2);
  padding-block: var(--space-2);
  font-size: var(--fs-sm);
}
.hero__strip .strip-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero__strip .strip-item svg { width: 1.25rem; height: 1.25rem; color: var(--gold-soft); flex: none; }
.hero__strip a { color: inherit; text-decoration: none; }
.hero__strip a:hover { text-decoration: underline; }
.hero__strip strong { font-weight: 600; }

@media (min-width: 48rem) {
  .hero__strip .container { grid-template-columns: repeat(3, 1fr); }
}

.scroll-hint {
  position: absolute;
  right: 2rem;
  bottom: 7.5rem;
  display: none;
  writing-mode: vertical-rl;
  font-size: var(--fs-xs);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  gap: 0.75rem;
  align-items: center;
}
.scroll-hint::after {
  content: "";
  width: 1px;
  height: 3.5rem;
  background: currentColor;
  animation: scroll-line 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@media (min-width: 64rem) { .scroll-hint { display: flex; } }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding-block: var(--section); scroll-margin-top: 4rem; }
.section--paper { background: var(--paper); }
.section--dark {
  background: var(--espresso);
  color: var(--cream);
}
.section--dark h2,
.section--dark h3 { color: var(--paper); }
.section--dark .lead { color: rgba(243, 246, 251, 0.75); }
.section--dark .eyebrow { color: var(--gold-soft); }

.ornament {
  width: 7rem;
  height: 1.25rem;
  margin: 0 auto var(--space-3);
  color: var(--gold);
}

/* Story / about */
.story {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}
.story__media {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}
.story__media figure { margin: 0; }
.story__media .frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.story__media .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story__media .frame--tall { aspect-ratio: 4 / 5; grid-row: span 2; }
.story__media .frame--wide { aspect-ratio: 5 / 6; align-self: end; margin-top: 3rem; }
.story__badge {
  position: absolute;
  left: -0.5rem;
  bottom: 1.5rem;
  background: var(--sienna);
  color: var(--paper);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  font-family: var(--font-display);
  line-height: 1.05;
}
.story__badge strong {
  display: block;
  font-size: 2.25rem;
  font-weight: 500;
}
.story__badge span {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.story__text p { color: var(--muted); }
.story__text p.strong { color: var(--fg); }

.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}
.fact strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--sienna);
}
.fact span {
  font-size: var(--fs-sm);
  color: var(--muted);
}

@media (min-width: 64rem) {
  .story { grid-template-columns: 1.05fr 1fr; gap: var(--space-7); }
  .facts { grid-template-columns: repeat(4, 1fr); }
}

/* Signature dishes */
.dishes {
  display: grid;
  gap: var(--space-3);
}
.dish {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  color: var(--paper);
  isolation: isolate;
  cursor: default;
}
.dish img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.dish::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 23, 48, 0.85));
  z-index: 1;
}
.dish figcaption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: var(--space-3);
}
.dish figcaption h3 {
  font-size: 1.35rem;
  color: var(--paper);
  margin-bottom: 0.25rem;
}
.dish figcaption p {
  font-size: var(--fs-sm);
  color: rgba(243, 246, 251, 0.8);
}
.dish:hover img { transform: scale(1.05); }
@media (min-width: 40rem) { .dishes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .dishes { grid-template-columns: repeat(3, 1fr); } }

/* --------------------------------------------------------------------------
   Menu
   -------------------------------------------------------------------------- */
.menu-tabs {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: var(--space-5);
  border-bottom: 1px solid rgba(243, 246, 251, 0.2);
  -webkit-overflow-scrolling: touch;
}
.menu-tabs::-webkit-scrollbar { display: none; }
.menu-tabs [role="tab"] {
  flex: none;
  padding: 0.85rem 1.1rem;
  min-height: 3rem;
  border: 0;
  background: transparent;
  color: rgba(243, 246, 251, 0.65);
  font-family: var(--font-display);
  font-size: 1.2rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.menu-tabs [role="tab"]:hover { color: var(--paper); }
.menu-tabs [role="tab"][aria-selected="true"] {
  color: var(--gold-soft);
  border-bottom-color: var(--gold-soft);
}
@media (min-width: 48rem) {
  .menu-tabs { justify-content: center; gap: var(--space-2); }
  .menu-tabs [role="tab"] { font-size: 1.35rem; padding-inline: 1.5rem; }
}

.menu-panel[hidden] { display: none; }
.menu-panel {
  display: grid;
  gap: 0 var(--space-6);
  animation: panel-in var(--dur) var(--ease-out);
}
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } }
@media (min-width: 64rem) { .menu-panel { grid-template-columns: 1fr 1fr; } }

.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px dashed rgba(243, 246, 251, 0.2);
}
.menu-item h4 {
  font-size: 1.2rem;
  margin: 0;
  color: var(--paper);
}
.menu-item .tag {
  align-self: start;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  border: 1px solid rgba(183, 201, 234, 0.5);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  white-space: nowrap;
}
.menu-item p {
  grid-column: 1 / -1;
  font-size: var(--fs-sm);
  color: rgba(243, 246, 251, 0.7);
}
.menu-item h4 .tag {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.5rem;
  position: relative;
  top: -0.1em;
}
.menu-item .price {
  align-self: start;
  font-family: var(--font-display, "Fraunces", serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--gold-soft);
  white-space: nowrap;
  padding-top: 0.1rem;
}
.dish figcaption h3 .price {
  font-size: 0.85em;
  font-weight: 400;
  color: var(--gold-soft);
  margin-left: 0.4rem;
  white-space: nowrap;
}
.menu-note {
  margin-top: var(--space-5);
  text-align: center;
  font-size: var(--fs-sm);
  color: rgba(243, 246, 251, 0.7);
  max-width: 48rem;
  margin-inline: auto;
}
.menu-note strong { color: var(--gold-soft); font-weight: 600; }

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.gallery li { margin: 0; }
.gallery button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--cream-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  position: relative;
}
.gallery button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out), filter var(--dur-slow) ease;
}
.gallery button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 31, 63, 0);
  transition: background var(--dur) ease;
}
.gallery button:hover img { transform: scale(1.05); }
.gallery button:hover::after { background: rgba(15, 31, 63, 0.18); }
.gallery li.is-tall button { aspect-ratio: 1; }
@media (min-width: 48rem) {
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; }
  .gallery li.is-tall { grid-row: span 2; }
  .gallery li.is-tall button { aspect-ratio: auto; height: 100%; }
}
@media (min-width: 64rem) { .gallery { grid-template-columns: repeat(4, 1fr); } }

/* Lightbox */
.lightbox {
  border: 0;
  padding: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  background: transparent;
  color: var(--paper);
}
.lightbox::backdrop {
  background: rgba(6, 14, 30, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lightbox__inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 4rem 1rem;
}
.lightbox__inner img {
  max-width: min(100%, 90rem);
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.lightbox__caption {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  font-size: var(--fs-sm);
  color: rgba(243, 246, 251, 0.8);
}
.lightbox__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(10, 23, 48, 0.6);
  color: var(--paper);
  transition: background var(--dur-fast) ease;
}
.lightbox__btn:hover { background: var(--sienna); }
.lightbox__btn svg { width: 1.25rem; height: 1.25rem; }
.lightbox__btn--prev { left: 1rem; }
.lightbox__btn--next { right: 1rem; }
.lightbox__btn--close { top: 1.25rem; right: 1rem; transform: none; }

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.quotes {
  display: grid;
  gap: var(--space-3);
}
.quote {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
}
.quote .stars {
  display: flex;
  gap: 0.2rem;
  color: var(--gold);
}
.quote .stars svg { width: 1.1rem; height: 1.1rem; }
.quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.35;
  flex: 1;
}
.quote figcaption {
  font-size: var(--fs-sm);
  color: var(--muted);
}
@media (min-width: 48rem) { .quotes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .quotes { grid-template-columns: repeat(4, 1fr); } }
.quote figcaption a { color: var(--sienna); font-weight: 600; }

/* --------------------------------------------------------------------------
   Contacts
   -------------------------------------------------------------------------- */
.contact {
  display: grid;
  gap: var(--space-5);
}
.contact__info {
  display: grid;
  gap: var(--space-4);
}
.info-block h3 {
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sienna);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.info-block h3 svg { width: 1.2rem; height: 1.2rem; }
.info-block p { color: var(--fg); }
.info-block a { font-weight: 600; }
.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-base);
}
.hours th,
.hours td {
  text-align: left;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.hours th { font-weight: 600; width: 45%; }
.hours td { color: var(--muted); }
.hours-note {
  margin-top: 0.85rem;
  font-size: var(--fs-sm);
  color: var(--muted);
}
.contact__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 3;
  background: var(--cream-2);
}
.contact__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.contact__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
@media (min-width: 64rem) {
  .contact { grid-template-columns: 1fr 1.15fr; gap: var(--space-7); align-items: start; }
  .contact__map { aspect-ratio: auto; height: 100%; min-height: 32rem; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(243, 246, 251, 0.7);
  padding-block: var(--space-6) var(--space-4);
  font-size: var(--fs-sm);
}
.site-footer .brand { color: var(--paper); }
.site-footer .brand .logo {
  width: 15rem;
  box-sizing: content-box;
  padding: 0.6rem 0.9rem;
  background: var(--paper);
  border-radius: var(--radius);
}
.footer-grid {
  display: grid;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(243, 246, 251, 0.12);
}
.footer-grid h4 {
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.4rem; }
.footer-grid a { color: inherit; text-decoration: none; }
.footer-grid a:hover { color: var(--paper); }
.social {
  display: flex;
  gap: 0.6rem;
}
.social a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(243, 246, 251, 0.25);
  border-radius: 999px;
  color: var(--paper);
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.social a:hover { background: var(--sienna); border-color: var(--sienna); }
.social svg { width: 1.2rem; height: 1.2rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
  padding-top: var(--space-3);
  font-size: var(--fs-xs);
}
.footer-bottom a { color: inherit; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) ease, transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__media img { animation: none; transform: none; }
  .scroll-hint::after { animation: none; transform: none; }
  .dish img, .gallery button img { transition: none; }
  *,
  *::before,
  *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Print */
@media print {
  .site-header, .mobile-nav, .scroll-hint, .hero__media, .lightbox, .contact__map { display: none !important; }
  .hero { min-height: auto; color: var(--fg); }
  .hero::after { display: none; }
  .hero h1, .hero .lead { color: var(--fg); }
  .section--dark { background: transparent; color: var(--fg); }
  .section--dark h2, .section--dark h3, .menu-item h4 { color: var(--fg); }
}

/* --------------------------------------------------------------------------
   Cookie: banner, mappa con consenso, pagina informativa
   -------------------------------------------------------------------------- */
.map-consent {
  height: 100%;
  min-height: 22rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4);
  text-align: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(30, 65, 130, 0.12), transparent 40%),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(15, 31, 63, 0.06) 38px 39px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(15, 31, 63, 0.06) 38px 39px),
    var(--cream-2);
}
.map-consent svg { width: 2.5rem; height: 2.5rem; color: var(--sienna); }
.map-consent p { max-width: 32ch; color: var(--muted); font-size: var(--fs-sm); }
.map-consent a { font-size: var(--fs-sm); }
.contact__map iframe { width: 100%; height: 100%; border: 0; display: block; min-height: 22rem; }

.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  padding: 0 1rem 1rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner {
  max-width: 64rem;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  padding: 1rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(15, 31, 63, 0.18);
  font-size: var(--fs-sm);
}
.cookie-banner__inner p { margin: 0; flex: 1 1 28rem; }
.cookie-banner__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cookie-banner .btn { min-height: 2.6rem; padding: 0.55rem 1.2rem; }

/* pagina informativa */
.legal { padding-block: calc(var(--header-h) + var(--space-5)) var(--section); }
.legal .container { max-width: 46rem; }
.legal h1 { font-size: var(--fs-2xl); margin-bottom: var(--space-3); }
.legal h2 { font-size: var(--fs-xl); margin-top: var(--space-5); }
.legal p, .legal li { color: var(--fg); }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: 0.4rem; }
.legal table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); margin: var(--space-3) 0; }
.legal th, .legal td { text-align: left; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal th { font-weight: 600; }
.legal .updated { color: var(--muted); font-size: var(--fs-sm); }

/* --------------------------------------------------------------------------
   Modal "Scrivici" (contact form)
   -------------------------------------------------------------------------- */
.contact-modal {
  border: 0;
  padding: 0;
  width: min(100%, 38rem);
  max-height: 100dvh;
  background: var(--paper);
  color: var(--fg);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(10, 23, 48, 0.35);
}
.contact-modal::backdrop { background: rgba(10, 23, 48, 0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.contact-form { position: relative; padding: var(--space-4); display: grid; gap: var(--space-2); }
.contact-form h2 { font-size: var(--fs-xl); margin: 0; padding-right: 3rem; }
.contact-form__intro { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.contact-form__close { position: absolute; top: 0.9rem; right: 0.9rem; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--paper); }
.contact-form__close svg { width: 1.1rem; height: 1.1rem; }
.contact-form__grid { display: grid; gap: var(--space-2); }
@media (min-width: 40rem) { .contact-form__grid { grid-template-columns: 1fr 1fr; } }
.contact-form label { display: grid; gap: 0.35rem; font-size: var(--fs-sm); font-weight: 600; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
  font: inherit; font-weight: 400; font-size: 1rem; color: var(--fg);
  padding: 0.7rem 0.85rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--cream);
  min-height: 2.9rem; width: 100%;
}
.contact-form textarea { resize: vertical; min-height: 7rem; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--sienna); outline-offset: 1px; border-color: var(--sienna); }
.contact-form__consent { display: flex !important; gap: 0.6rem; align-items: flex-start; font-weight: 400 !important; color: var(--muted); }
.contact-form__consent input { margin-top: 0.25rem; width: 1.1rem; height: 1.1rem; accent-color: var(--sienna); }
.contact-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form__status { margin: 0; font-size: var(--fs-sm); min-height: 1.2em; }
.contact-form__status.is-ok { color: #1f6b3a; font-weight: 600; }
.contact-form__status.is-err { color: #a12a2a; font-weight: 600; }
.contact-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.contact-form__alt { font-size: var(--fs-xs); color: var(--muted); }
.contact-form.is-sending .btn { opacity: 0.6; pointer-events: none; }
@media (max-width: 40rem) {
  .contact-modal { width: 100%; height: 100dvh; max-height: none; border-radius: 0; margin: 0; }
  .contact-form { padding: var(--space-3); padding-top: var(--space-4); }
}
