/* ==========================================================================
   TAVERNA MEÀRI — Barcellona Pozzo di Gotto
   Direction: vintage-eclectic Sicilian wine-tavern. Dark emerald canvas lifted
   from their own walls, dusty-rose velvet as the single accent, warm-gold
   picture-frame keylines (decorative brand only, never interactive) echoing the
   gilt frames of their gallery wall. Bodoni Moda display (their Didone wordmark)
   + Work Sans body. Radius: 3px frames, 4px buttons — no pills.
   Mobile-first (390px), CSS-only motion.
   ========================================================================== */

:root {
  --bg: #10322a;            /* deep emerald — their wall */
  --bg-deep: #0c261f;       /* darker band */
  --panel: #16382e;         /* slightly raised surface */
  --text: #f3e8d4;          /* warm parchment / lamp glow */
  --muted: #bcae91;         /* warm sage-cream secondary */
  --accent: #d7987f;        /* dusty rose — the velvet armchairs (ONLY interactive color) */
  --accent-soft: #e6b6a1;   /* lighter rose for hover on dark */
  --accent-ink: #2a1410;    /* text on rose */
  --gold: #c7a35d;          /* gilt frame keyline — DECORATIVE brand only */
  --line: rgba(243,232,212,0.16);

  --font-display: "Bodoni Moda", "Didot", Georgia, serif;
  --font-body: "Work Sans", -apple-system, "Segoe UI", sans-serif;
  --measure: 60ch;
  --maxw: 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.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto;}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-soft); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.005em;
}
h2 { font-size: clamp(1.75rem, 4.5vw, 2.5rem); margin-bottom: 0.9rem; }
h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
     font-family: var(--font-body); color: var(--muted); margin-bottom: 0.9rem; }

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

/* -- buttons --------------------------------------------------------------- */
.btn {
  display: inline-block; text-decoration: none;
  font-weight: 600; font-size: 0.98rem; letter-spacing: 0.01em;
  padding: 0.7rem 1.5rem; border-radius: 4px;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-soft); color: var(--accent-ink); }
.btn-ghost { color: var(--text); border-color: var(--line); }
.btn-ghost:hover { color: var(--text); border-color: var(--accent); }

/* -- top bar --------------------------------------------------------------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  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.25rem; letter-spacing: 0.01em; }
.topbar-cta {
  text-decoration: none; font-weight: 600; font-size: 0.9rem;
  color: var(--accent-ink); background: var(--accent);
  padding: 0.45rem 1.1rem; border-radius: 4px;
  transition: background-color 0.18s ease;
}
.topbar-cta:hover { background: var(--accent-soft); color: var(--accent-ink); }

/* -- shared frame device (gilt keyline like their gallery wall) ------------- */
.hero-figure, .table-figure, .footer-mark {
  margin: 0;
  padding: 8px;
  border: 1px solid var(--gold);
  border-radius: 3px;
  background: color-mix(in srgb, var(--gold) 8%, transparent);
}
.hero-figure img, .table-figure img { border-radius: 2px; }

/* -- hero ------------------------------------------------------------------- */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(2.5rem, 7vh, 4rem) 1.25rem clamp(3rem, 8vh, 4.5rem);
  display: grid; gap: clamp(1.75rem, 5vw, 3rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(3rem, 15vw, 6.2rem);
  margin-bottom: 1rem;
}
.hero-sub { color: var(--muted); max-width: 34ch; font-size: 1.15rem; margin-bottom: 1.9rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

@media (min-width: 820px) {
  .hero { grid-template-columns: 1.05fr 0.95fr; padding-top: clamp(3rem, 8vh, 5rem); }
  .hero-figure img { aspect-ratio: 3 / 4; }
}

/* -- identità / ambient ----------------------------------------------------- */
.ambient { background: var(--bg-deep); border-block: 1px solid var(--line); }
.ambient-inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 8vw, 4.5rem) 1.25rem; }
.lead {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.3rem, 3.2vw, 1.7rem); line-height: 1.4;
  max-width: 30ch; color: var(--text); margin-bottom: 2.5rem;
}
.traits { list-style: none; padding: 0; display: grid; gap: 0; }
.traits li { padding: 1.35rem 0; border-top: 1px solid var(--line); }
.traits li:last-child { border-bottom: 1px solid var(--line); }
.trait-name {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: 1.35rem; margin-bottom: 0.3rem;
}
.trait-desc { color: var(--muted); }

@media (min-width: 760px) {
  .lead { max-width: 46ch; }
  .traits { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .traits li { border-top: 2px solid var(--accent); border-bottom: none !important; padding: 1.4rem 0 0; }
}

/* -- il muro (full-bleed photo band) ---------------------------------------- */
.wall { position: relative; }
.wall > img { width: 100%; height: clamp(260px, 46vw, 460px); object-fit: cover; object-position: center; }
.wall-caption {
  max-width: var(--maxw); margin: 0 auto;
  padding: 1.5rem 1.25rem 0;
}
.wall-line {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.6rem, 5vw, 2.4rem); color: var(--accent);
  line-height: 1.15; padding-bottom: 0.2rem;
}
.wall-note { color: var(--muted); max-width: 52ch; margin-top: 0.6rem; }

/* -- a tavola (image + text split) ------------------------------------------ */
.table {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3rem, 8vw, 5rem) 1.25rem;
  display: grid; gap: clamp(1.75rem, 5vw, 3.5rem); align-items: center;
}
.table-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.table-copy p { color: var(--text); margin-bottom: 1rem; max-width: 46ch; }
.menu-note { color: var(--muted); font-size: 0.95rem; }

@media (min-width: 820px) {
  .table { grid-template-columns: 0.85fr 1.15fr; }
  .table-figure img { aspect-ratio: 3 / 4; }
}

/* -- recensioni ------------------------------------------------------------- */
.reviews { background: var(--bg-deep); border-block: 1px solid var(--line); }
.reviews-inner { max-width: 900px; margin: 0 auto; padding: clamp(3rem, 8vw, 4.5rem) 1.25rem; }
.rating {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600;
  color: var(--text); margin-bottom: 2rem;
}
.rating span[aria-hidden] { color: var(--accent); }
.rating-src { font-family: var(--font-body); font-size: 0.9rem; font-weight: 400; color: var(--muted); letter-spacing: 0.01em; }
blockquote { border: 0; margin: 0; padding: 1.6rem 0; border-top: 1px solid var(--line); }
blockquote:last-child { border-bottom: 1px solid var(--line); }
blockquote p {
  font-family: var(--font-display); font-weight: 500; font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.5rem); line-height: 1.4; color: var(--text);
  padding-bottom: 0.2rem;
}
blockquote cite {
  display: block; margin-top: 0.8rem;
  font-style: normal; font-size: 0.82rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}

/* -- dove ------------------------------------------------------------------- */
.find { max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 8vw, 5rem) 1.25rem; }
.find-inner { display: grid; gap: 2.5rem; }
.address a { color: var(--text); text-decoration: none; font-size: 1.15rem; line-height: 1.5; }
.address a:hover { color: var(--accent-soft); }
.hours-note { color: var(--muted); margin-top: 1rem; }
.contact-lines { font-size: 1.1rem; line-height: 2; margin-bottom: 1.6rem; }
.find-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

@media (min-width: 700px) {
  .find-inner { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
}

/* -- footer ----------------------------------------------------------------- */
.footer {
  background: var(--bg-deep);
  padding: 3rem 1.25rem 3.5rem; text-align: center;
  color: var(--muted); font-size: 0.9rem;
  border-top: 1px solid var(--line);
}
.footer-mark { width: min(340px, 78vw); margin: 0 auto 1.75rem; }
.footer-mark img { width: 100%; border-radius: 2px; }
.footer p { max-width: 60ch; margin: 0 auto; }
.demo-note { margin-top: 0.5rem; opacity: 0.7; }

/* -- motion: gentle entrance, respectful of reduced-motion ------------------ */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .hero-figure { animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .hero-figure { animation-delay: 0.1s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}
