/* ==========================================================================
   Trattoria Al Botteghino — Pianoro (BO)
   Direction: warm-editorial osteria. Cream tablecloth canvas, dark-walnut ink,
   one bordeaux accent (the wine / the sober red of the sala). Garalde serif
   display (Cormorant Garamond) + humanist sans body (Work Sans).
   Shape system: uniform 4px radius everywhere. Mobile-first (390px).
   ========================================================================== */

:root {
  --bg: #f8f5ee;          /* tablecloth cream canvas */
  --band: #f1ead9;        /* warmer band for feature / spazi sections */
  --surface: #fffdf8;     /* framed-photo mat, chips */
  --ink: #241a12;         /* dark-walnut near-black text */
  --muted: #6f5c48;       /* warm brown-grey secondary */
  --line: #e2d8c5;        /* hairlines */
  --accent: #7a2a2f;      /* bordeaux — the one accent */
  --accent-hover: #672328;
  --accent-ink: #fdf6f0;  /* near-white on bordeaux */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", -apple-system, "Segoe UI", sans-serif;
  --radius: 4px;
  --measure: 66ch;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 72px; }

body {
  background: var(--bg);
  color: var(--ink);
  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-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2 { font-family: var(--font-display); font-weight: 700; line-height: 1.04; letter-spacing: -0.005em; }
h2 { font-size: clamp(1.9rem, 5.2vw, 2.7rem); margin-bottom: 0.85rem; }
p { max-width: var(--measure); }

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

/* -- framed photo (a hanging print: white mat + hairline + soft shadow) ----- */
.framed {
  background: var(--surface);
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 38px rgba(36, 26, 18, 0.11);
}
.framed img { border-radius: 2px; width: 100%; }
.framed figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0.7rem 0.2rem 0.15rem;
}

/* -- buttons ---------------------------------------------------------------- */
.btn {
  display: inline-block;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 0.68rem 1.35rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* -- top bar ---------------------------------------------------------------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
  padding: 0.7rem 1.25rem;
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; letter-spacing: 0.005em; }
.topbar-cta {
  text-decoration: none; font-weight: 600; font-size: 0.92rem;
  color: var(--accent-ink); background: var(--accent);
  padding: 0.45rem 1.05rem; border-radius: var(--radius);
}

/* -- hero — asymmetric editorial split -------------------------------------- */
.hero {
  display: grid; gap: 2rem;
  padding: 2.4rem 1.25rem 3rem;
  max-width: 1120px; margin: 0 auto;
}
.hero h1 { font-size: clamp(2.7rem, 12vw, 4.3rem); margin-bottom: 1.1rem; }
.hero-sub { color: var(--muted); max-width: 40ch; margin-bottom: 1.75rem; font-size: 1.08rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-photo { align-self: start; }
.hero-photo img { aspect-ratio: 16 / 10; object-fit: cover; }

@media (min-width: 860px) {
  .hero {
    grid-template-columns: 1.02fr 0.98fr;
    align-items: center;
    gap: 3.4rem;
    padding: 4rem 2rem 4.75rem;
  }
  .hero-photo img { aspect-ratio: 4 / 5; }
}

/* -- sections --------------------------------------------------------------- */
.section { max-width: 1080px; margin: 0 auto; padding: clamp(3rem, 7vw, 4.75rem) 1.25rem; }
.intro { max-width: 760px; }
.dove { max-width: 940px; }

.band {
  background: var(--band);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(3rem, 7vw, 4.75rem) 1.25rem;
}

/* -- intro facts strip ------------------------------------------------------ */
.facts {
  list-style: none; padding: 0; margin-top: 1.75rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 0;
  color: var(--muted); font-size: 0.98rem;
}
.facts li { padding: 0 1.3rem; border-left: 1px solid var(--line); }
.facts li:first-child { padding-left: 0; border-left: 0; }
.facts strong {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.5rem; color: var(--ink); margin-right: 0.4rem;
  letter-spacing: 0;
}

/* -- feature (crescentine) -------------------------------------------------- */
.feature-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.feature-inner .eyebrow { margin-bottom: 0.7rem; }
.feature-inner p { margin: 0 auto; color: var(--muted); font-size: 1.08rem; }
.feature-prices {
  list-style: none; padding: 0; margin: 1.9rem auto 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem;
}
.feature-prices li {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0.5rem 0.9rem;
  font-size: 0.95rem; font-weight: 500;
}
.feature-prices span { color: var(--accent); font-weight: 600; margin-left: 0.4rem; }

/* -- menu ------------------------------------------------------------------- */
.menu-photo { margin-bottom: 2.75rem; }
.menu-photo img { aspect-ratio: 16 / 9; object-fit: cover; }
.menu-cols { display: grid; gap: 0.5rem 3.5rem; }
@media (min-width: 760px) { .menu-cols { grid-template-columns: 1fr 1fr; align-items: start; } }

.menu-group { margin-bottom: 2.1rem; }
.menu-group h3 {
  font-family: var(--font-display); font-weight: 600;
  color: var(--accent); font-size: 1.4rem; letter-spacing: 0.01em;
  padding-bottom: 0.4rem; margin-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}
.menu-list { list-style: none; padding: 0; }
.menu-list li { display: flex; align-items: baseline; gap: 0.45rem; padding: 0.4rem 0; }
.dish { font-weight: 500; }
.dish em { font-style: italic; font-weight: 400; color: var(--muted); font-size: 0.9em; }
.dots { flex: 1; border-bottom: 1px dotted var(--muted); opacity: 0.4; transform: translateY(-0.22em); }
.price { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu-note { margin-top: 1.6rem; color: var(--muted); font-size: 0.9rem; max-width: 62ch; }

/* -- gli spazi -------------------------------------------------------------- */
.spazi-inner { max-width: 1080px; margin: 0 auto; }
.spazi .lead { color: var(--muted); font-size: 1.08rem; margin-bottom: 2rem; }
.spazi-grid { display: grid; gap: 1.5rem; }
@media (min-width: 680px) { .spazi-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.spazi-grid img { aspect-ratio: 4 / 5; object-fit: cover; }

/* -- orari & dove ----------------------------------------------------------- */
.info-grid { display: grid; gap: 2.25rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .info-grid { grid-template-columns: 1fr 1fr; } }
h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; margin-bottom: 0.7rem; }
.hours { border-collapse: collapse; }
.hours td { padding: 0.35rem 1.5rem 0.35rem 0; color: var(--muted); }
.hours td:first-child { color: var(--ink); font-weight: 500; }
.hours-note { color: var(--muted); font-size: 0.9rem; margin-top: 0.85rem; }
.contact-lines { margin-bottom: 1.4rem; line-height: 1.9; }

/* -- footer ----------------------------------------------------------------- */
.footer {
  padding: 2.5rem 1.25rem 3rem; text-align: center;
  color: var(--muted); font-size: 0.9rem;
  border-top: 1px solid var(--line);
}
.demo-note { margin-top: 0.5rem; font-size: 0.82rem; opacity: 0.75; }

/* -- focus + motion --------------------------------------------------------- */
a:focus-visible, .btn:focus-visible, .topbar-cta:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px;
}
.btn, .topbar-cta { transition: transform 0.15s ease, background-color 0.15s ease; }
.framed { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary:hover, .topbar-cta:hover { background: var(--accent-hover); }
.btn:not(.btn-primary):hover { border-color: var(--accent); color: var(--accent); }
.framed:hover { transform: translateY(-3px); box-shadow: 0 24px 50px rgba(36, 26, 18, 0.16); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .btn:hover, .framed:hover { transform: none; }
}
