/* ==========================================================================
   LA TAVERNA RISTORANTE — Barcellona Pozzo di Gotto (ME)
   Direction: refined evening seafood ristorante. Midnight-blue canvas (echo of
   the Tyrrhenian at night + the Sicilian cobalt glassware in their room),
   single warm brass accent (the room's lamplight + wood), ivory text.
   Type: Schibsted Grotesk (display, sans — breaks the serif-heavy local cluster)
   over Literata (warm reading serif for body). Mobile-first, 390px.
   ========================================================================== */

:root {
  --bg: #0f1620;            /* midnight blue-black canvas */
  --surface: #16202c;       /* elevated / info blocks */
  --band: #131c26;          /* alternating section band */
  --text: #f3ece0;          /* warm ivory */
  --muted: #a7b3c0;         /* cool blue-grey */
  --accent: #cba24f;        /* brass — the one accent */
  --accent-bright: #ddb968; /* brass hover */
  --accent-ink: #0f1620;    /* text on brass */
  --line: rgba(243, 236, 224, 0.12);
  --line-gold: rgba(203, 162, 79, 0.30);
  --font-display: "Schibsted Grotesk", "Segoe UI", sans-serif;
  --font-body: "Literata", Georgia, serif;
  --radius: 4px;
  --measure: 66ch;
  --wrap: 1120px;
}

* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-weight: 700;
}
h2 { font-size: clamp(1.7rem, 5.5vw, 2.5rem); margin-bottom: 0.6rem; }
p { max-width: var(--measure); }

.eyebrow {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 1rem;
}

/* -- buttons --------------------------------------------------------------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-bright); border-color: var(--accent-bright); }
.btn-ghost { color: var(--accent); border-color: var(--line-gold); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); background: rgba(203, 162, 79, 0.10); }
.btn:active { transform: translateY(1px); }

/* -- top bar --------------------------------------------------------------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.85rem 1.25rem;
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  letter-spacing: 0.01em; color: var(--text); text-decoration: none;
}
.topnav { display: none; gap: 1.75rem; margin-left: auto; }
.topnav a {
  color: var(--muted); text-decoration: none; font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 500; transition: color 0.18s ease;
}
.topnav a:hover { color: var(--text); }
.topbar-cta {
  text-decoration: none; font-family: var(--font-display); font-weight: 600;
  font-size: 0.92rem; color: var(--accent-ink); background: var(--accent);
  padding: 0.5rem 1.1rem; border-radius: var(--radius);
  transition: background-color 0.18s ease;
}
.topbar-cta:hover { background: var(--accent-bright); }

/* -- hero ------------------------------------------------------------------ */
.hero {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(2.75rem, 8vh, 5rem) 1.25rem clamp(2.5rem, 6vh, 4rem);
  display: grid; gap: 2rem; align-items: center;
}
.hero h1 { font-size: clamp(3rem, 13vw, 5.5rem); margin-bottom: 1.1rem; }
.hero-sub { color: var(--muted); font-size: 1.15rem; max-width: 34ch; margin-bottom: 1.9rem; }
.hero-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; }
.hero-figure {
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  padding: 6px;
  background: var(--surface);
}
.hero-figure img {
  width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: 2px;
}

/* -- sections -------------------------------------------------------------- */
.section { padding: clamp(3rem, 8vh, 5.5rem) 1.25rem; }
.section > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.menu { background: var(--band); }
.recensioni { background: var(--band); }

/* section heading accent rule */
.section > h2,
.menu-head h2,
.rec-head h2 { position: relative; }

/* -- la cucina (split) ----------------------------------------------------- */
.cucina { display: grid; gap: 2rem; }
.cucina > * { max-width: none; }
.cucina-text { max-width: 46ch; }
.cucina-text p { margin-top: 1rem; color: var(--text); }
.cucina-figure img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line);
}

/* -- menu ------------------------------------------------------------------ */
.menu-head { margin-bottom: 2rem; }
.menu-lead { color: var(--muted); margin-top: 0.5rem; }
.menu-cols { display: grid; gap: 2.25rem 3.5rem; }
.menu-group { break-inside: avoid; }
.menu-group h3 {
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent);
  padding-bottom: 0.6rem; margin-bottom: 0.6rem;
  border-bottom: 1px solid var(--line-gold);
}
.menu-list { list-style: none; padding: 0; }
.menu-list li {
  display: flex; align-items: baseline; gap: 0.5rem; padding: 0.4rem 0;
}
.dish { font-weight: 500; }
.dots { flex: 1 1 auto; border-bottom: 1px dotted var(--line); transform: translateY(-3px); }
.price {
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.menu-note { margin-top: 2rem; color: var(--muted); font-size: 0.92rem; font-style: italic; }

/* -- gallery --------------------------------------------------------------- */
.foto h2 { margin-bottom: 1.5rem; }
.gallery { display: grid; gap: 0.75rem; }
.gallery figure { margin: 0; }
.gallery img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius);
  transition: opacity 0.25s ease;
}
.gallery .g-wide img { aspect-ratio: 3 / 2; }
.gallery a:hover img { opacity: 0.92; }

/* -- reviews --------------------------------------------------------------- */
.rec-head { margin-bottom: 2rem; }
.rec-rating { color: var(--accent); font-family: var(--font-display); font-weight: 500; margin-top: 0.4rem; }
.quotes { display: grid; gap: 1.25rem; }
blockquote {
  border-left: 2px solid var(--line-gold);
  padding: 0.25rem 0 0.25rem 1.25rem;
}
blockquote p { font-style: italic; font-size: 1.1rem; color: var(--text); max-width: 48ch; }
blockquote cite {
  display: block; margin-top: 0.75rem; font-style: normal;
  font-family: var(--font-display); font-size: 0.82rem; letter-spacing: 0.04em;
  color: var(--muted);
}

/* -- hours & contacts ------------------------------------------------------ */
.dove h2 { margin-bottom: 1.5rem; }
.info-grid { display: grid; gap: 2.5rem; }
.info-block h3 {
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent);
  margin-bottom: 1rem;
}
.hours { border-collapse: collapse; width: 100%; max-width: 440px; }
.hours td { padding: 0.55rem 1.25rem 0.55rem 0; color: var(--muted); vertical-align: top; border-bottom: 1px solid var(--line); }
.hours tr:last-child td { border-bottom: none; }
.hours td:first-child { color: var(--text); font-weight: 500; white-space: nowrap; }
.contact-lines { margin-bottom: 1.5rem; line-height: 2; }
.contact-lines a { text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }

/* -- footer ---------------------------------------------------------------- */
.footer {
  padding: 3rem 1.25rem; text-align: center;
  color: var(--muted); font-size: 0.92rem;
  border-top: 1px solid var(--line);
}
.foot-brand {
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  color: var(--text); margin: 0 auto 0.5rem; max-width: none;
}
.footer p { max-width: none; }
.demo-note { margin-top: 0.9rem; opacity: 0.7; font-size: 0.85rem; }

/* ==========================================================================
   DESKTOP
   ========================================================================== */
@media (min-width: 720px) {
  .topnav { display: flex; }
  .menu-cols { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .g-wide { grid-column: 1 / -1; }
  .gallery .g-wide img { aspect-ratio: 16 / 7; }
  /* portrait sources may stand taller on desktop (iron rule: restore in min-width) */
  .gallery figure:not(.g-wide) img { aspect-ratio: 4 / 5; }
  .quotes { grid-template-columns: repeat(3, 1fr); }
  .info-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 860px) {
  .hero { grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; padding-top: clamp(3.5rem, 9vh, 6rem); }
  .hero-figure img { aspect-ratio: 4 / 5; }
  .cucina { grid-template-columns: 1fr 1fr; align-items: center; gap: 3.5rem; }
  .cucina-figure img { aspect-ratio: 4 / 5; }
  .menu-cols { grid-template-columns: repeat(3, 1fr); gap: 2.5rem 3rem; }
}

/* ==========================================================================
   MOTION — subtle, load-in only (CSS, gated). Restraint per direction.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero-figure {
    opacity: 0;
    animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .hero-copy .eyebrow { animation-delay: 0.05s; }
  .hero-copy h1 { animation-delay: 0.14s; }
  .hero-copy .hero-sub { animation-delay: 0.24s; }
  .hero-copy .hero-actions { animation-delay: 0.34s; }
  .hero-figure { animation-delay: 0.30s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
