/* ==========================================================================
   al Matarel — pasta fresca a San Lazzaro di Savena
   Warm-artisan bottega. Cream-flour canvas, single olive-herb accent,
   Young Serif display + Manrope body. Plain static CSS.
   ========================================================================== */

:root {
  --canvas:   #f7f1e5;   /* cream-flour */
  --band:     #f2e6c8;   /* straw / egg-pasta tint (section bands) */
  --card:     #fdfaf1;   /* raised surfaces */
  --ink:      #23201a;   /* warm near-black */
  --muted:    #6b6452;   /* secondary text (5.2:1 on canvas) */
  --accent:   #4f5a24;   /* olive-herb (6.6:1 on canvas, white-on 7.5:1) */
  --accent-d: #414c17;   /* darker olive for hover */
  --line:     #e5dcc4;   /* warm hairline */
  --line-2:   #ddd2b6;   /* stronger hairline on band */

  --r: 10px;             /* single radius system */
  --maxw: 1120px;
  --pad: clamp(20px, 5vw, 44px);
  --shadow: 0 14px 34px -18px rgba(60, 48, 20, 0.42);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: "Young Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0;
}

a { color: var(--accent); }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--pad);
  background: rgba(247, 241, 229, 0.86);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: "Young Serif", Georgia, serif;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.topbar-cta {
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: #fff;
  background: var(--accent);
  padding: 9px 18px;
  border-radius: var(--r);
  transition: background 0.2s ease, transform 0.15s ease;
}
.topbar-cta:hover { background: var(--accent-d); }
.topbar-cta:active { transform: translateY(1px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: var(--r);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, color 0.2s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-d); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: #fff; }
.btn-ghost:active { transform: translateY(1px); }
.btn svg { flex: none; }

/* ---------- Hero (light full-bleed photo) ---------- */
.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--pad) clamp(40px, 8vh, 84px);
  background-image: url("images/hero.jpg");
  background-size: cover;
  background-position: 50% 28%;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(247, 241, 229, 0.99) 0%,
    rgba(247, 241, 229, 0.98) 40%,
    rgba(247, 241, 229, 0.9) 52%,
    rgba(247, 241, 229, 0.5) 64%,
    rgba(247, 241, 229, 0.12) 80%,
    rgba(247, 241, 229, 0) 100%
  );
}
.hero-inner {
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
}
.hero-kicker {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-transform: none;
}
.hero h1 {
  font-size: clamp(2.9rem, 10vw, 5.4rem);
  margin: 0 0 18px;
}
.hero-sub {
  max-width: 30rem;
  margin: 0 0 26px;
  font-size: clamp(1.02rem, 2.4vw, 1.18rem);
  color: var(--ink);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Section scaffold ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 10vw, 104px) var(--pad);
}
.section > h2 {
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  margin-bottom: 14px;
}
.band {
  max-width: none;
  background: var(--band);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.band > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 46rem;
  margin: 0 0 8px;
}
.lead.center { text-align: center; margin-left: auto; margin-right: auto; }
.eyebrow {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- La sfoglia (split) ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.split-text h2 {
  font-size: clamp(1.9rem, 4.6vw, 2.9rem);
  margin-bottom: 18px;
  max-width: 16ch;
}
.split-text p { margin: 0 0 16px; color: var(--ink); }
.split-text p + p { color: var(--muted); }
.rating {
  margin-top: 22px !important;
  font-family: "Young Serif", Georgia, serif;
  font-size: 1.5rem;
  color: var(--accent) !important;
  line-height: 1.2;
}
.rating span {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 0.92rem;
  color: var(--muted);
}
.split-media {
  margin: 0;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3.4; }

/* ---------- Menu (Oggi proponiamo) ---------- */
.menu-wrap { max-width: 720px; }
.menu-section .eyebrow { margin-bottom: 12px; }
.menu-section h2 { font-size: clamp(2.1rem, 6vw, 3.2rem); margin-bottom: 12px; }
.menu-section .lead { margin-bottom: 30px; }
.menu-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}
.menu-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 2px;
  border-bottom: 1px solid var(--line-2);
}
.menu-list li:first-child { border-top: 1px solid var(--line-2); }
.dish { font-weight: 600; font-size: 1.08rem; }
.dish em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 0.92em; }
.price {
  flex: none;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.menu-note { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* ---------- Bento (Da portare a casa) ---------- */
.bento {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-areas:
    "lead small1"
    "lead small2";
  gap: 18px;
  margin-top: 34px;
}
.bento-cell {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(22px, 3vw, 34px);
}
.bento-cell h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}
.bento-cell p { margin: 0; color: var(--muted); }
.bento-lead {
  grid-area: lead;
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bento-lead h3 { color: #fff; font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
.bento-lead p { color: rgba(255, 255, 255, 0.92); font-size: 1.05rem; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-auto-rows: 1fr;
  gap: 16px;
  margin-top: 30px;
}
.gallery figure {
  margin: 0;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 0.5s ease; }
.gallery .g-tall { grid-row: span 2; }
.gallery .g-tall img { aspect-ratio: auto; }
.gallery figure:hover img { transform: scale(1.035); }
@media (prefers-reduced-motion: reduce) { .gallery figure:hover img { transform: none; } }

/* ---------- Orari & dove ---------- */
.info-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(28px, 5vw, 60px);
  margin-top: 26px;
}
.info-grid h3 { font-size: 1.4rem; margin-bottom: 16px; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td {
  text-align: left;
  padding: 11px 4px;
  border-bottom: 1px solid var(--line-2);
  font-size: 1.02rem;
}
.hours th { font-weight: 600; }
.hours td { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.hours td.closed { color: #9a8f75; }
.hours tr.is-today th,
.hours tr.is-today td {
  color: var(--accent);
  font-weight: 700;
}
.hours tr.is-today th::before {
  content: "Oggi · ";
  font-weight: 700;
  font-size: 0.82em;
}
.hours-note { margin: 16px 0 0; color: var(--muted); font-size: 0.95rem; }

.info-contact .addr { margin: 0 0 16px; font-size: 1.06rem; line-height: 1.5; }
.contact-lines { margin: 0 0 22px; }
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.contact-link svg { color: var(--accent); }
.contact-link:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 48px var(--pad) 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}
.footer p { margin: 0 0 6px; }
.footer-brand {
  font-family: "Young Serif", Georgia, serif;
  font-size: 1.4rem;
  color: var(--ink);
}
.demo-note { font-size: 0.82rem; opacity: 0.85; margin-top: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  .split-media img { aspect-ratio: 16 / 10; }
  .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero { min-height: 88svh; background-position: 50% 22%; }
  .hero h1 { font-size: clamp(2.6rem, 13vw, 3.6rem); }
  .bento {
    grid-template-columns: 1fr;
    grid-template-areas: "lead" "small1" "small2";
  }
  .gallery { grid-template-columns: 1fr; }
  .gallery .g-tall { grid-row: auto; }
  .gallery img, .gallery .g-tall img { aspect-ratio: 4 / 3; }
  .menu-list li { gap: 12px; }
  .hero-actions .btn { flex: 1 1 auto; }
}
