/* ==========================================================================
   Matteotti 85 - pizzeria/birreria, Barcellona Pozzo di Gotto
   Direction: warm-dark "evening-and-embers". Canvas mirrors the night-only
   room (dark walls + black tablecloths); pine + cream + one amber glow.
   Type: Bricolage Grotesque (display) + Instrument Sans (body). Mobile-first.
   ========================================================================== */

:root {
  --bg: #17110d;            /* warm near-black espresso canvas */
  --bg-2: #1f1712;          /* alternating surface */
  --surface: #241b14;       /* cards / raised */
  --line: #3a2c22;          /* hairlines / borders on dark */
  --text: #f2e7d8;          /* warm cream */
  --muted: #b39c85;         /* secondary text */
  --pine: #caa878;          /* blond wood tone */
  --accent: #e6a14b;        /* amber honey - Edison glow + pilsner */
  --accent-2: #f0b667;      /* lighter amber for hover */
  --accent-ink: #1a1206;    /* text on amber */
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Instrument Sans", -apple-system, "Segoe UI", sans-serif;
  --radius: 12px;
  --measure: 64ch;
  --maxw: 1120px;
  --pad: 1.35rem;
}

* { 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.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.06;
  letter-spacing: -0.015em;
  font-weight: 700;
}
h2 { font-size: clamp(1.75rem, 5.2vw, 2.6rem); margin-bottom: 0.9rem; }
h3 {
  font-size: 1.08rem; font-weight: 700; letter-spacing: -0.01em;
  color: var(--pine); font-family: var(--font-display); margin-bottom: 0.9rem;
}

/* gentle on-load fade — content is ALWAYS visible in final state (no JS, no
   scroll dependency); the animation only plays for motion-friendly viewers. */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .7s cubic-bezier(.16,1,.3,1) both; }
  .intro-media, .band, .menu-note { animation-delay: .08s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* -- top bar ---------------------------------------------------------------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.7rem var(--pad);
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.brand {
  font-family: var(--font-display); font-weight: 800; font-size: 1.12rem;
  color: var(--text); text-decoration: none; letter-spacing: -0.02em;
}
.topbar-cta {
  text-decoration: none; font-weight: 600; font-size: 0.92rem;
  color: var(--accent-ink); background: var(--accent);
  padding: 0.42rem 1rem; border-radius: 999px;
  transition: background .2s ease, transform .1s ease;
}
.topbar-cta:hover { background: var(--accent-2); }
.topbar-cta:active { transform: translateY(1px); }

/* -- buttons ---------------------------------------------------------------- */
.btn {
  display: inline-block; text-decoration: none;
  border-radius: 999px; padding: 0.72rem 1.5rem;
  font-weight: 600; font-size: 1rem; letter-spacing: 0.01em;
  transition: background .2s ease, border-color .2s ease, transform .1s ease, color .2s ease;
}
.btn-primary { background: var(--accent); border: 1px solid var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: transparent; border: 1px solid color-mix(in srgb, var(--text) 45%, transparent); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }
.btn-ghost:active { transform: translateY(1px); }

/* -- hero (photo full-bleed) ------------------------------------------------ */
.hero {
  position: relative;
  min-height: 86svh;
  display: flex; align-items: flex-end;
  padding: 2rem var(--pad) 2.6rem;
  background:
    linear-gradient(180deg, rgba(23,17,13,.55) 0%, rgba(23,17,13,.30) 34%, rgba(23,17,13,.78) 78%, var(--bg) 100%),
    radial-gradient(120% 90% at 78% 22%, rgba(230,161,75,.20), transparent 60%),
    #0e0a07 url("images/sala-hero.jpg") center 38% / cover no-repeat;
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; width: 100%; }
.hero-kicker {
  color: var(--accent); font-size: 0.82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 0.85rem;
}
.hero h1 {
  font-size: clamp(3rem, 15vw, 6.5rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 0.94; margin-bottom: 1.1rem;
  text-shadow: 0 2px 30px rgba(0,0,0,.4);
}
.hero-sub {
  color: var(--text); max-width: 34ch; font-size: 1.12rem;
  margin-bottom: 1.9rem; text-shadow: 0 1px 12px rgba(0,0,0,.55);
}
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* -- generic section shell -------------------------------------------------- */
.intro, .menu, .dove { padding: clamp(3.2rem, 8vw, 5.5rem) var(--pad); }
.menu { background: var(--bg-2); }

/* -- intro (split) ---------------------------------------------------------- */
.intro {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; gap: 2rem; align-items: center;
}
.intro-text p { color: var(--muted); max-width: 52ch; margin-top: 0.4rem; }
.tags { list-style: none; padding: 0; margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.55rem; }
.tags li {
  font-size: 0.86rem; font-weight: 500; color: var(--pine);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.4rem 0.9rem; background: color-mix(in srgb, var(--pine) 6%, transparent);
}
.intro-media { border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.intro-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

/* -- menu (two-column dish grid) -------------------------------------------- */
.menu-head { max-width: var(--maxw); margin: 0 auto 2.2rem; }
.menu-lead { color: var(--muted); max-width: 56ch; margin-top: 0.3rem; }
.dish-grid {
  list-style: none; padding: 0; margin: 0 auto;
  max-width: var(--maxw);
  display: grid; grid-template-columns: 1fr; gap: 1.15rem 3rem;
}
.dish { padding-bottom: 1.05rem; border-bottom: 1px solid var(--line); }
.dish-line { display: flex; align-items: baseline; justify-content: space-between; gap: 0.9rem; }
.dish-name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.16rem;
  letter-spacing: -0.01em; color: var(--text);
}
.dish-price {
  color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums;
  white-space: nowrap; font-size: 1.02rem;
}
.dish-desc { color: var(--muted); font-size: 0.93rem; margin-top: 0.28rem; line-height: 1.5; }
.menu-note { max-width: var(--maxw); margin: 2rem auto 0; color: var(--muted); font-size: 0.9rem; font-style: italic; }

/* -- showcase band (full-bleed) --------------------------------------------- */
.band { position: relative; overflow: hidden; background: #0e0a07; }
.band img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

/* -- orari & dove ----------------------------------------------------------- */
.dove-inner { max-width: var(--maxw); margin: 0 auto; }
.info-grid { display: grid; gap: 2.4rem; margin-top: 0.5rem; }
.hours { border-collapse: collapse; width: 100%; max-width: 340px; }
.hours td { padding: 0.5rem 0; border-bottom: 1px solid var(--line); color: var(--muted); font-variant-numeric: tabular-nums; }
.hours td:first-child { color: var(--text); font-weight: 500; }
.hours td:last-child { text-align: right; }
.hours .closed { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.contact-lines { margin-bottom: 1rem; line-height: 1.65; }
.contact-lines a { font-weight: 600; }
.dove .btn { margin-top: 0.4rem; }

/* -- footer ----------------------------------------------------------------- */
.footer {
  padding: 2.6rem var(--pad) 3.2rem; text-align: center;
  color: var(--muted); font-size: 0.88rem;
  border-top: 1px solid var(--line);
}
.footer p + p { margin-top: 0.4rem; }
.demo-note { opacity: 0.72; font-size: 0.82rem; }

/* ==========================================================================
   DESKTOP / TABLET
   ========================================================================== */
@media (min-width: 800px) {
  :root { --pad: 2rem; }

  .hero { min-height: 88svh; padding-bottom: 4rem; }
  .hero-sub { font-size: 1.22rem; max-width: 40ch; }

  .intro { grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; }
  .intro-media img { aspect-ratio: 4 / 5; }   /* taller crop on desktop only */

  .dish-grid { grid-template-columns: 1fr 1fr; }

  .info-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }

  .band img { aspect-ratio: 21 / 8; max-height: 62vh; }
}

@media (min-width: 1180px) {
  .hero h1 { font-size: 7rem; }
}
