/* ==========================================================================
   Enotria l'Osteria — cucina di mare, Barcellona Pozzo di Gotto
   Direction: warm evening-glow. Deep espresso canvas + a single golden-ochre
   accent pulled from their facade. Prata (display) + Mulish (body).
   Radius rule: buttons = pill; images/surfaces = 4px. One accent, locked.
   Mobile-first (390px). Content photos crop landscape so none tower.
   ========================================================================== */

:root {
  --bg:        #1b1510;   /* warm espresso canvas (the dark arched door, the night) */
  --surface:   #241c14;   /* raised sections */
  --band:      #14100b;   /* deepest bands */
  --hair:      #3a2f22;   /* hairlines */
  --text:      #f3e7d2;   /* cream/burro (their menu ground) */
  --muted:     #c2a878;   /* gold-taupe secondary text */
  --accent:    #e0a52a;   /* golden-ochre — their facade wall by night */
  --accent-hi: #f2b840;   /* hover / bright gold */
  --accent-ink:#1b1108;   /* text on gold */

  --font-display: "Prata", Georgia, "Times New Roman", serif;
  --font-body: "Mulish", -apple-system, "Segoe UI", system-ui, sans-serif;

  --radius: 4px;
  --measure: 64ch;
  --pad: 1.4rem;
}

* { 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; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-hi); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.14; }
h2 { font-size: clamp(1.75rem, 5.4vw, 2.6rem); letter-spacing: 0.005em; }
h3 { font-size: 1.02rem; font-family: var(--font-body); font-weight: 700;
     letter-spacing: 0.02em; color: var(--accent); }

/* Iron rule safety net: any <figure> content image crops landscape on mobile. */
@media (max-width: 720px) {
  figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
}

/* -- top bar --------------------------------------------------------------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 0.7rem var(--pad);
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--hair) 60%, transparent);
}
.brand { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text);
         text-decoration: none; }
.brand-star { color: var(--accent); flex: none; }
.brand-name { font-family: var(--font-display); font-size: 1.3rem; line-height: 1;
              display: inline-flex; align-items: baseline; gap: 0.4rem; }
.brand-sub { font-family: var(--font-body); font-weight: 500; font-size: 0.62rem;
             letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); }
.topbar-cta {
  flex: none; text-decoration: none; font-weight: 700; font-size: 0.9rem;
  color: var(--accent-ink); background: var(--accent);
  padding: 0.45rem 1.1rem; border-radius: 999px;
  transition: background 0.25s ease, transform 0.15s ease;
}
.topbar-cta:hover { background: var(--accent-hi); color: var(--accent-ink); }
.topbar-cta:active { transform: translateY(1px); }

/* -- buttons --------------------------------------------------------------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 0.98rem;
  padding: 0.75rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: color-mix(in srgb, var(--text) 42%, transparent); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn:active { transform: translateY(1px); }

/* -- hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 92vh;
  min-height: 92dvh;
  display: flex; align-items: flex-end;
  padding: 6rem var(--pad) 3rem;
  background: #0d0a06 url("images/facciata.jpg") center 28% / cover no-repeat;
}
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to right, rgba(12,9,5,0.66) 0%, rgba(12,9,5,0.18) 46%, transparent 72%),
    linear-gradient(to top, rgba(12,9,5,0.97) 0%, rgba(12,9,5,0.88) 22%, rgba(12,9,5,0.58) 46%, rgba(12,9,5,0.3) 68%, rgba(12,9,5,0.5) 100%);
}
.hero-inner { position: relative; max-width: 34rem; text-shadow: 0 1px 22px rgba(0,0,0,0.5); }
.hero-kicker {
  color: var(--accent); font-size: 0.76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 1.1rem;
}
.hero h1 { margin: 0 0 1.1rem; }
.hero-brand { display: block; font-size: clamp(3.4rem, 16vw, 6rem); line-height: 0.92;
              color: var(--text); }
.hero-brand-sub {
  display: block; font-family: var(--font-body); font-weight: 500;
  font-size: clamp(0.8rem, 3.4vw, 1.05rem); letter-spacing: 0.42em;
  text-transform: uppercase; color: var(--accent); margin-top: 0.7rem; padding-left: 0.15em;
}
.hero-sub { color: var(--text); opacity: 0.92; max-width: 32ch; margin-bottom: 1.9rem;
            font-size: 1.08rem; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* -- generic section ------------------------------------------------------- */
.section { padding: clamp(3.2rem, 8vw, 5rem) var(--pad); max-width: var(--measure); margin: 0 auto; }
.section > h2 { margin-bottom: 1.1rem; }

/* gold hairline flourish under section headings */
.section > h2::after {
  content: ""; display: block; width: 2.4rem; height: 2px; margin-top: 0.9rem;
  background: var(--accent);
}

/* -- intro / statement ----------------------------------------------------- */
.intro p { color: var(--text); opacity: 0.9; max-width: 58ch; }
.rating { margin-top: 1.6rem; color: var(--muted); font-size: 0.98rem; opacity: 1; }
.rating .stars { color: var(--accent); letter-spacing: 0.08em; }
.rating strong { color: var(--text); font-weight: 700; }
.chips { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex;
         flex-wrap: wrap; gap: 0.55rem; }
.chips li {
  font-size: 0.85rem; color: var(--muted); font-weight: 600;
  border: 1px solid var(--hair); border-radius: 999px; padding: 0.35rem 0.9rem;
}

/* -- la cucina (typographic groups, no prices) ----------------------------- */
.cucina { max-width: 74ch; }
.cucina .lead { color: var(--muted); max-width: 52ch; margin-bottom: 2.2rem; }
.menu-groups { display: grid; gap: 2.3rem; }
@media (min-width: 720px) { .menu-groups { grid-template-columns: 1fr 1fr; gap: 2.6rem 3rem; } }
.menu-group h3 { margin-bottom: 0.85rem; padding-bottom: 0.6rem;
                 border-bottom: 1px solid var(--hair); }
.menu-group ul { list-style: none; padding: 0; }
.menu-group li { padding: 0.4rem 0; color: var(--text); opacity: 0.92; }
.menu-note { margin-top: 2.4rem; color: var(--muted); font-size: 0.92rem;
             border-left: 2px solid var(--accent); padding-left: 1rem; max-width: 54ch; }

/* -- split (image + text) -------------------------------------------------- */
.split { display: grid; gap: 0; }
.split-media { margin: 0; }
.split-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.split-body { padding: clamp(2.6rem, 7vw, 4rem) var(--pad); max-width: var(--measure); margin: 0 auto; }
.split-body h2 { margin-bottom: 1rem; }
.split-body p { color: var(--text); opacity: 0.9; max-width: 46ch; margin-bottom: 1.6rem; }
.split-body .btn { margin-top: 0.2rem; }
.split-reverse { background: var(--surface); }

@media (min-width: 820px) {
  .split { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .split-media { height: 100%; }
  .split-media img { height: 100%; aspect-ratio: auto; min-height: 26rem; }
  .split-body { display: flex; flex-direction: column; justify-content: center;
                max-width: 40rem; margin: 0; padding: 4rem clamp(2.5rem, 5vw, 4.5rem); }
  .split-reverse .split-media { order: 2; }
  .split-reverse .split-body { order: 1; margin-left: auto; }
}

/* -- photo band + pull-quote ---------------------------------------------- */
.band {
  position: relative; padding: clamp(4.5rem, 14vw, 8rem) var(--pad);
  background: var(--band) url("images/tartare.jpg") center 42% / cover no-repeat;
  text-align: center;
}
.band-scrim { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(14,10,6,0.82), rgba(14,10,6,0.68)); }
.band-quote { position: relative; margin: 0 auto; max-width: 40rem; }
.band-quote blockquote {
  font-family: var(--font-display); font-size: clamp(1.35rem, 4.4vw, 2.05rem);
  line-height: 1.35; color: var(--text); margin: 0 0 1.2rem;
}
.band-quote figcaption { color: var(--accent); font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.2em; }

/* -- orari & dove ---------------------------------------------------------- */
.dove { max-width: 60rem; }
.info-grid { display: grid; gap: 2.6rem; margin-top: 1.8rem; }
@media (min-width: 700px) { .info-grid { grid-template-columns: 1.05fr 1fr; gap: 3.4rem; } }
.dove h3 { color: var(--accent); margin-bottom: 0.9rem; }
.hours { border-collapse: collapse; width: 100%; max-width: 22rem; }
.hours td { padding: 0.5rem 0; border-bottom: 1px solid var(--hair); color: var(--muted);
            font-size: 0.98rem; }
.hours td:first-child { color: var(--text); font-weight: 600; }
.hours td:last-child { text-align: right; }
.hours tr:last-child td { border-bottom: none; }
.hours tr.today td { color: var(--accent); }
.hours tr.today td:first-child { color: var(--accent); font-weight: 700; }
.contact-lines { margin-bottom: 1.5rem; color: var(--text); opacity: 0.92; }
.contact-lines a { font-weight: 600; }
.contact-actions { display: flex; flex-direction: column; gap: 0.7rem; align-items: flex-start; }
.contact-actions .btn { width: 100%; text-align: center; }
@media (min-width: 480px) { .contact-actions .btn { width: auto; } }

/* -- footer ---------------------------------------------------------------- */
.footer { padding: 3rem var(--pad) 3.4rem; text-align: center; color: var(--muted);
          font-size: 0.9rem; border-top: 1px solid var(--hair); background: var(--band); }
.footer p { margin: 0.25rem 0; }
.footer-brand { font-family: var(--font-display); font-size: 1.5rem; color: var(--text);
                margin-bottom: 0.6rem; display: flex; align-items: baseline;
                justify-content: center; gap: 0.45rem; }
.footer-brand span { font-family: var(--font-body); font-weight: 500; font-size: 0.6rem;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--accent); }
.demo-note { margin-top: 1.1rem; opacity: 0.6; font-size: 0.82rem; }

/* -- motion (MOTION 3: gentle, CSS-only, reduced-motion safe) -------------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * { opacity: 0; transform: translateY(14px); animation: rise 0.8s cubic-bezier(0.16,1,0.3,1) forwards; }
  .hero-kicker { animation-delay: 0.05s; }
  .hero h1 { animation-delay: 0.15s; }
  .hero-sub { animation-delay: 0.28s; }
  .hero-actions { animation-delay: 0.4s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}
