/* ==========================================================================
   OSTERIA NUMERO SETTE — Pianoro (BO)
   Direction: heritage Bolognese osteria. Warm "panna" paper canvas, bordeaux
   enamel-sign accent, stone-grey structure. EB Garamond (display, echoing the
   sign's old-style serif) + Hanken Grotesk (body). Printed-menu layout.
   Plain static HTML/CSS. Mobile-first (390px), CSS-only motion.
   ========================================================================== */

:root {
  --panna: #f5efe3;          /* canvas: warm cream paper */
  --panna-2: #efe6d3;        /* deeper paper: bands / panels */
  --ochre: #ecdcb2;          /* warm tint (from the wall / placemat) — bg only */
  --ink: #2a201b;            /* warm near-black text */
  --ink-soft: #5b5148;       /* secondary text (AA on panna) */
  --stone: #9a978d;          /* grey-stone hairlines (non-text) */
  --bordeaux: #8c2b34;       /* ONE accent — the enamel sign */
  --bordeaux-dark: #6f222a;  /* hover */
  --on-accent: #f7efe4;      /* text on bordeaux */
  --font-display: "EB Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", -apple-system, "Segoe UI", sans-serif;
  --radius: 4px;
  --wrap: 1120px;
}

* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--panna);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--bordeaux); }
a:hover { color: var(--bordeaux-dark); }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: 0.005em;
}
h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin-bottom: 0.9rem; }
h3 { font-size: 1.05rem; }

/* -- buttons ---------------------------------------------------------------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 0.72rem 1.4rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--bordeaux);
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--bordeaux); color: var(--on-accent); }
.btn-primary:hover { background: var(--bordeaux-dark); border-color: var(--bordeaux-dark); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--bordeaux); }
.btn-ghost:hover { background: var(--bordeaux); color: var(--on-accent); }
.btn:active { transform: translateY(1px); }

/* -- 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: 20;
  background: color-mix(in srgb, var(--panna) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--stone) 55%, transparent);
}
.brand { text-decoration: none; color: var(--ink); display: flex; align-items: baseline; gap: 0.5rem; min-width: 0; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-place { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-soft); }
.topbar-cta {
  flex: none;
  text-decoration: none; font-weight: 600; font-size: 0.9rem;
  color: var(--on-accent); background: var(--bordeaux);
  padding: 0.42rem 1rem; border-radius: var(--radius);
}
.topbar-cta:hover { background: var(--bordeaux-dark); color: var(--on-accent); }

/* -- hero (split) ----------------------------------------------------------- */
.hero {
  max-width: var(--wrap); margin: 0 auto;
  padding: 2.25rem 1.25rem 2.75rem;
  display: grid; gap: 1.75rem;
}
.hero-kicker {
  color: var(--bordeaux); font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.9rem, 12vw, 5rem);
  line-height: 0.98;
  margin-bottom: 1.1rem;
}
.hero-sub {
  color: var(--ink-soft); font-size: 1.12rem; max-width: 34ch; margin-bottom: 1.75rem;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-photo img {
  width: 100%; border-radius: var(--radius);
  aspect-ratio: 4 / 5; object-fit: cover;
  box-shadow: 0 18px 44px color-mix(in srgb, var(--ink) 22%, transparent);
}

/* -- generic section -------------------------------------------------------- */
.section { max-width: var(--wrap); margin: 0 auto; padding: 3.25rem 1.25rem; }
.section p { max-width: 62ch; }

/* -- identità (split image + text) ----------------------------------------- */
.split { display: grid; gap: 1.75rem; align-items: center; }
.split-photo img {
  width: 100%; border-radius: var(--radius);
  aspect-ratio: 3 / 4; object-fit: cover;
  box-shadow: 0 14px 36px color-mix(in srgb, var(--ink) 18%, transparent);
}
.split-text h2 { margin-bottom: 1rem; }
.split-text p + p { margin-top: 1rem; }
.split-text p { color: var(--ink-soft); }

/* -- atmosfera band (full-width image) -------------------------------------- */
.band { margin: 0.5rem 0 0.5rem; }
.band img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  max-height: 62vh;
}
.band-caption {
  max-width: var(--wrap); margin: 0.85rem auto 0; padding: 0 1.25rem;
  font-family: var(--font-display); font-style: italic; font-size: 1.15rem;
  color: var(--ink-soft);
}

/* -- menu (printed card) ---------------------------------------------------- */
.menu { max-width: var(--wrap); }
.menu-head { max-width: 60ch; margin-bottom: 1.75rem; }
.menu-lead { color: var(--ink-soft); }

.menu-cols { display: grid; gap: 2.25rem; }
.menu-group + .menu-group { margin-top: 1.9rem; }
.menu-group h3 {
  font-size: 0.82rem; font-family: var(--font-body); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.2em; color: var(--bordeaux);
  padding-bottom: 0.55rem; margin-bottom: 0.35rem;
  border-bottom: 2px solid color-mix(in srgb, var(--bordeaux) 30%, transparent);
}
.menu-list { list-style: none; padding: 0; }
.menu-list li { display: flex; align-items: baseline; gap: 0.4rem; padding: 0.42rem 0; }
.dish { font-weight: 500; }
.dish .only {
  font-family: var(--font-display); font-style: italic; font-size: 0.92em;
  color: var(--ink-soft); font-weight: 400;
}
.dots {
  flex: 1;
  border-bottom: 1.5px dotted color-mix(in srgb, var(--stone) 90%, var(--ink));
  transform: translateY(-3px);
}
.price {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 500;
  color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.menu-note {
  margin-top: 2rem; padding-top: 1.1rem;
  border-top: 1px solid color-mix(in srgb, var(--stone) 55%, transparent);
  color: var(--ink-soft); font-size: 0.9rem; max-width: 68ch;
}

/* -- orari & dove (info split) ---------------------------------------------- */
.info { display: grid; gap: 2rem; align-items: start; }
.info-note {
  color: var(--ink-soft); font-family: var(--font-display); font-style: italic;
  font-size: 1.2rem; margin-bottom: 1.5rem; max-width: 40ch;
}
.hours { border-collapse: collapse; width: 100%; max-width: 30rem; }
.hours th, .hours td {
  text-align: left; padding: 0.5rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--stone) 40%, transparent);
  font-weight: 400;
}
.hours th { font-weight: 600; width: 8rem; }
.hours td { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.hours td.closed { color: var(--bordeaux); font-weight: 600; }
.contact { margin-top: 1.75rem; }
.contact-lines { margin-bottom: 1.25rem; font-size: 1.05rem; }
.info-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.info-photo img { width: 100%; border-radius: var(--radius); aspect-ratio: 3 / 4; object-fit: cover; }
.info-photo-cap {
  margin-top: 0.7rem; font-family: var(--font-display); font-style: italic;
  color: var(--ink-soft); text-align: center;
}

/* -- footer ----------------------------------------------------------------- */
.footer {
  background: var(--panna-2);
  border-top: 1px solid color-mix(in srgb, var(--stone) 45%, transparent);
  padding: 2.75rem 1.25rem 3rem; text-align: center;
  color: var(--ink-soft); font-size: 0.92rem;
}
.footer-brand { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); margin-bottom: 0.35rem; }
.footer-addr { margin-bottom: 0.9rem; }
.footer-copy { font-size: 0.85rem; }
.demo-note { margin-top: 0.75rem; font-size: 0.8rem; opacity: 0.75; }

/* ==========================================================================
   DESKTOP / TABLET
   ========================================================================== */
@media (min-width: 720px) {
  .hero { grid-template-columns: 1.05fr 0.95fr; align-items: center; padding: 3.5rem 1.5rem 3.75rem; gap: 2.5rem; }
  .hero-photo img { aspect-ratio: 4 / 5; max-height: 78vh; }
  .split { grid-template-columns: 0.9fr 1.1fr; gap: 2.75rem; }
  .split-photo img { max-height: 78vh; }
  .menu-cols { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .info { grid-template-columns: 1.35fr 0.65fr; gap: 3rem; }
  .info-photo img { max-height: 30rem; }
  /* compact cheap short lists into two print-style columns */
  .menu-list.two-up { column-count: 2; column-gap: 2rem; }
  .menu-list.two-up li { break-inside: avoid; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: clamp(3.5rem, 6vw, 5.25rem); }
}

/* ==========================================================================
   MOTION — subtle scroll reveal, CSS only. Never hides content on browsers
   that lack scroll-driven animations, and disabled under reduced-motion.
   ========================================================================== */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section, .band, .hero-photo {
      animation: rise-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 22%;
    }
  }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
