/* ==========================================================================
   DRAGO VERDE — Pizzeria & Kebab, Bologna
   Direction: deep bottle-green canvas + one warm paprika accent (the brick
   oven / grill). Type: Syne (display) + Manrope (body). VARIANCE 7 / MOTION 3
   (CSS-only) / DENSITY 4. Mobile-first (390px). One theme, locked dark-green.
   ========================================================================== */

:root {
  --bg: #10231a;            /* deep bottle-green canvas */
  --band: #0c1b13;          /* deeper green, alternating sections */
  --surface: #1a3626;       /* lifted cards */
  --surface-2: #204330;     /* card hover / highlighted */
  --line: rgba(241, 235, 219, 0.14);
  --text: #f1ebdb;          /* warm cream (the awning) */
  --muted: #a7b6a3;         /* sage, secondary text */
  --accent: #db6a30;        /* paprika — the oven / the grill (fills, rules) */
  --accent-2: #ec9152;      /* lighter paprika — inline links/text on dark */
  --accent-ink: #17130c;    /* near-black on paprika */
  --font-display: "Syne", "Trebuchet MS", sans-serif;
  --font-body: "Manrope", -apple-system, "Segoe UI", sans-serif;
  --radius: 12px;           /* cards / images */
  --measure: 66ch;
  --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.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 800;
}
h2 { font-size: clamp(1.75rem, 5.2vw, 2.6rem); margin-bottom: 0.4rem; }
h3 { font-size: 1.15rem; line-height: 1.2; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: 1.25rem; }

/* -- top bar --------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
  padding: 0.7rem 1.25rem;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
  letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 0.5rem;
}
.brand .dot {
  width: 0.62rem; height: 0.62rem; border-radius: 999px;
  background: var(--accent); display: inline-block; flex: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 26%, transparent);
}

/* -- buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  text-decoration: none; font-family: var(--font-body); font-weight: 700;
  font-size: 0.98rem; line-height: 1; white-space: nowrap;
  color: var(--text); border: 1.5px solid var(--line);
  border-radius: 999px; padding: 0.72rem 1.25rem;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { border-color: color-mix(in srgb, var(--text) 45%, transparent); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn-primary {
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
}
.btn-primary:hover { background: #e6773c; border-color: #e6773c; color: var(--accent-ink); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.9rem; }

/* -- hero ------------------------------------------------------------------ */
.hero {
  padding: clamp(3rem, 9vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  position: relative; overflow: hidden;
}
.hero::before {
  /* soft ember glow: the single warm accent used as light, not a 2nd colour */
  content: ""; position: absolute; inset: -30% -10% auto auto;
  width: 60vw; height: 60vw; max-width: 620px; max-height: 620px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 26%, transparent), transparent 62%);
  pointer-events: none; z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-kicker {
  color: var(--accent-2); font-weight: 700; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(3.2rem, 15vw, 7.2rem);
  letter-spacing: -0.035em; margin-bottom: 1.1rem; max-width: 12ch;
}
.hero h1 .verde { color: var(--accent); }
.hero-sub {
  color: var(--text); opacity: 0.92; font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  max-width: 40ch; margin-bottom: 1.9rem;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* -- generic section ------------------------------------------------------- */
.section { padding: clamp(3rem, 7vw, 4.75rem) 0; }
.section.band { background: var(--band); }
.section-head { max-width: var(--measure); margin-bottom: 1.9rem; }
.section-head p { color: var(--muted); margin-top: 0.6rem; max-width: 54ch; }

/* -- le firme (signature duo) ---------------------------------------------- */
.firme { display: grid; gap: 1.1rem; }
@media (min-width: 720px) {
  .firme { grid-template-columns: 1fr 1fr; }
  .firma img { aspect-ratio: 4 / 5; }   /* desktop: portrait card in the 2-col split */
}
.firma {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.firma:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.firma img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 55%; }   /* mobile: landscape crop so full-width cards don't tower (portrait restored on desktop) */
.firma .firma-body { padding: 1.3rem 1.35rem 1.5rem; }
.firma h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.firma p { color: var(--muted); font-size: 0.98rem; }
.firma p .hi { color: var(--text); font-weight: 600; }

/* -- menu ------------------------------------------------------------------ */
.menu-grid { display: grid; gap: 2.1rem 2.6rem; }
@media (min-width: 760px) { .menu-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.menu-group { break-inside: avoid; }
.menu-group > h3 {
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
  letter-spacing: 0.01em; padding-bottom: 0.55rem; margin-bottom: 0.9rem;
  border-bottom: 2px solid var(--accent); display: inline-block;
}
.dishes { list-style: none; padding: 0; }
.dishes li { padding: 0.5rem 0; }
.dishes li + li { border-top: 1px solid var(--line); }
.dish-row { display: flex; align-items: baseline; gap: 0.75rem; }
.dish-name { font-weight: 600; }
.dish-fill { flex: 1 1 auto; }
.dish-price {
  color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.dish-desc { color: var(--muted); font-size: 0.88rem; line-height: 1.4; margin-top: 0.12rem; }

.dishes li.dish--signature {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-radius: var(--radius); padding: 0.7rem 0.85rem; margin-bottom: 0.35rem;
}
.dishes li.dish--signature + li { border-top: 0; }
.tag {
  display: inline-block; font-family: var(--font-body); font-weight: 700;
  font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent-ink); background: var(--accent);
  padding: 0.16rem 0.5rem; border-radius: 999px; margin-left: 0.45rem;
  vertical-align: 0.14em;
}

.menu-mini { color: var(--muted); font-size: 0.95rem; margin-top: 0.5rem; line-height: 1.7; }
.menu-mini b { color: var(--text); font-weight: 700; }
.menu-note {
  margin-top: 2rem; color: var(--muted); font-size: 0.9rem;
  border-top: 1px solid var(--line); padding-top: 1rem; max-width: 60ch;
}

/* -- facts (buono a sapersi) ----------------------------------------------- */
.facts { display: grid; gap: 1.15rem 1.9rem; }
@media (min-width: 620px) { .facts { grid-template-columns: 1fr 1fr; } }
.fact {
  display: flex; flex-direction: column; gap: 0.25rem;
  padding-left: 0.95rem; border-left: 2px solid var(--accent);
}
.fact .ft { font-weight: 700; font-size: 1.02rem; }
.fact .fd { color: var(--muted); font-size: 0.92rem; }

/* -- full-width photo band -------------------------------------------------- */
.band-photo { position: relative; }
.band-photo img {
  width: 100%; height: clamp(240px, 42vw, 460px); object-fit: cover;
  object-position: center 45%;
}
.band-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.2rem 1.25rem 1.15rem;
  background: linear-gradient(to top, color-mix(in srgb, var(--band) 94%, transparent), transparent);
  color: var(--text); font-weight: 600;
}
.band-photo figcaption span { display: block; max-width: var(--maxw); margin: 0 auto; }

/* -- orari & dove ----------------------------------------------------------- */
.dove-grid { display: grid; gap: 2.2rem; }
@media (min-width: 860px) {
  .dove-grid { grid-template-columns: 1.05fr 0.95fr; align-items: start; }
  .dove-photo img { aspect-ratio: 4 / 5; }   /* desktop: portrait beside the hours/contact column */
}
.dove-cols { display: grid; gap: 2rem; }
@media (min-width: 520px) { .dove-cols { grid-template-columns: 1fr 1fr; } }
.hours { width: 100%; border-collapse: collapse; }
.hours caption {
  text-align: left; font-family: var(--font-display); font-weight: 800;
  font-size: 1.1rem; padding-bottom: 0.7rem;
}
.hours td { padding: 0.3rem 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.hours td:first-child { color: var(--text); font-weight: 600; width: 3.6rem; }
.hours tr.today td { color: var(--text); }
.hours tr.today td:first-child { color: var(--accent); font-weight: 700; }
.hours tr.today .today-tag {
  color: var(--accent-ink); background: var(--accent); font-weight: 700;
  font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.1rem 0.42rem; border-radius: 999px; margin-left: 0.5rem;
}
.contact-block h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 0.6rem; }
.contact-lines { color: var(--muted); margin-bottom: 1.2rem; line-height: 1.95; }
.contact-lines a { font-weight: 600; }
.contact-lines strong { color: var(--text); font-weight: 600; }
.dove-photo img {
  width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover;   /* mobile: landscape crop (portrait restored on desktop) */
  object-position: center 30%; border: 1px solid var(--line);
}
.dove-photo figcaption { color: var(--muted); font-size: 0.85rem; margin-top: 0.6rem; }

/* -- footer ----------------------------------------------------------------- */
.footer {
  background: var(--band); border-top: 1px solid var(--line);
  padding: 2.5rem 1.25rem 3rem; text-align: center;
  color: var(--muted); font-size: 0.9rem;
}
.footer .brand { justify-content: center; margin-bottom: 0.6rem; color: var(--text); }
.footer a { color: var(--accent-2); }
.demo-note { margin-top: 0.8rem; opacity: 0.72; font-size: 0.82rem; }

/* Motion is capped at MOTION 3: hover/active microinteractions only (buttons,
   cards). No scroll-driven reveals — content must always render, unconditionally. */
