/* ==========================================================================
   FORNO SABBATTINI — Pianoro
   Direction: morning neighborhood bakery. Bright flour-white canvas, single
   honey-gold accent sampled from their glazed sfogliatine + brass display rail.
   Warm all-sans type (Familjen Grotesk + Manrope). Typographic layout (one photo).
   Shape system: surfaces/photos radius 12px, buttons/chips pill, hairlines 1px.
   Mobile-first: designed at 390px, then scaled up.
   ========================================================================== */

:root {
  --bg: #faf8f2;           /* flour-white, morning light */
  --surface: #ffffff;      /* cards */
  --band: #f1ece0;         /* oat alt-section tint */
  --line: #e6ded0;         /* hairline */
  --text: #26201a;         /* warm coffee-crust ink */
  --muted: #6f6353;        /* secondary */
  --gold: #d59320;         /* honey-gold: fills, bands, "oggi", accent rules */
  --gold-ink: #8a5410;     /* toasted gold: gold-as-text on light (AA) */
  --gold-soft: #f6e3bd;    /* gold tint for hover/backgrounds */
  --on-gold: #2a1c07;      /* dark ink on gold fills */
  --font-display: "Familjen Grotesk", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --measure: 64ch;
  --page: 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;
}

img { max-width: 100%; display: block; }
a { color: var(--gold-ink); }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 700;
}
h2 { font-size: clamp(1.65rem, 4.6vw, 2.35rem); margin-bottom: 0.6rem; }
h3 { font-size: 1.12rem; margin-bottom: 0.4rem; font-weight: 600; }

/* Anti-tower safety net for any content <figure> at phone width. */
@media (max-width: 640px) {
  figure img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
}

/* -- top bar --------------------------------------------------------------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  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.15rem; letter-spacing: -0.01em; }
.topbar-cta {
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  color: var(--on-gold); background: var(--gold);
  padding: 0.42rem 1.05rem; border-radius: 999px;
  transition: transform .18s ease, background .18s ease;
}
.topbar-cta:hover { background: #e5a52f; transform: translateY(-1px); }

/* -- buttons --------------------------------------------------------------- */
.btn {
  display: inline-block; text-decoration: none; color: var(--text);
  border: 1px solid var(--text); border-radius: 999px;
  padding: 0.66rem 1.4rem; font-weight: 600; font-size: 0.98rem;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--text) 6%, transparent); }
.btn-primary {
  background: var(--gold); border-color: var(--gold); color: var(--on-gold);
}
.btn-primary:hover { background: #e5a52f; border-color: #e5a52f; }

/* -- layout shell ---------------------------------------------------------- */
.section { padding: 3.25rem 1.25rem; max-width: var(--page); margin: 0 auto; }
.section > h2 { max-width: var(--measure); }
.menu-note { margin-top: 1.1rem; color: var(--muted); font-size: 0.92rem; }

/* -- hero (split, left-aligned) -------------------------------------------- */
.hero {
  max-width: var(--page); margin: 0 auto;
  padding: 2.4rem 1.25rem 2.6rem;
  display: grid; gap: 1.75rem;
}
.hero-copy { align-self: center; }
.hero-kicker {
  color: var(--gold-ink); font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 0.7rem;
}
.hero h1 { font-size: clamp(2.5rem, 11vw, 3.9rem); margin-bottom: 0.85rem; }
.hero-sub { color: var(--muted); max-width: 40ch; font-size: 1.08rem; margin-bottom: 1rem; }
.hero-open {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; font-size: 0.92rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--line);
  padding: 0.4rem 0.9rem; border-radius: 999px; margin-bottom: 1.6rem;
}
.dot-open { width: 8px; height: 8px; border-radius: 999px; background: var(--gold); display: inline-block; }
.hero-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.hero-photo {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px color-mix(in srgb, var(--text) 12%, transparent);
}
.hero-photo img {
  width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
}

/* -- band: sfornato la mattina (the one color-block story) ----------------- */
.band {
  background: linear-gradient(135deg, #e2a02a, var(--gold));
  color: var(--on-gold);
}
.band-inner {
  max-width: var(--page); margin: 0 auto;
  padding: 3.1rem 1.25rem;
}
.band h2 { color: var(--on-gold); max-width: 22ch; }
.band p { max-width: 58ch; font-size: 1.08rem; color: #3a2708; font-weight: 500; }

/* -- offerta (3 columns, no prices) ---------------------------------------- */
.offer { display: grid; gap: 1.25rem; margin-top: 1.4rem; }
.offer-col {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.3rem 1.25rem;
  border-top: 3px solid var(--gold);
}
.offer-col h3 { color: var(--text); }
.offer-col p { color: var(--muted); font-size: 0.98rem; }

/* -- alt section ----------------------------------------------------------- */
.section.alt {
  max-width: none; background: var(--band);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.section.alt > * { max-width: var(--page); margin-left: auto; margin-right: auto; }

/* -- vicini (prose + proof rows) ------------------------------------------- */
.near { display: grid; gap: 1.6rem; }
.near-copy p { color: var(--muted); max-width: 52ch; }
.proof { list-style: none; padding: 0; }
.proof li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.75rem 0; border-top: 1px solid var(--line);
}
.proof li:last-child { border-bottom: 1px solid var(--line); }
.proof-k { color: var(--gold-ink); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; }
.proof-v { color: var(--text); font-weight: 500; text-align: right; }

/* -- orari & contatti ------------------------------------------------------ */
.info-grid { display: grid; gap: 2rem; margin-top: 1.25rem; }
.hours { border-collapse: collapse; width: 100%; max-width: 22rem; }
.hours td { padding: 0.42rem 0.5rem 0.42rem 0; color: var(--muted); border-bottom: 1px solid var(--line); }
.hours td:first-child { color: var(--text); font-weight: 500; }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.today td {
  color: var(--on-gold); font-weight: 700;
  background: var(--gold-soft);
}
.hours tr.today td:first-child { color: var(--on-gold); }
.access { margin-top: 0.9rem; color: var(--muted); font-size: 0.88rem; }
.contact-lines { margin-bottom: 1.25rem; }

/* -- footer ---------------------------------------------------------------- */
.footer {
  padding: 2.6rem 1.25rem 3rem; text-align: center;
  color: var(--muted); font-size: 0.9rem;
  border-top: 1px solid var(--line);
}
.foot-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--text); margin-bottom: 0.35rem; }
.demo-note { margin-top: 0.5rem; opacity: 0.75; }

/* -- entrance motion (CSS only, gated) ------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero-photo {
    opacity: 0; transform: translateY(12px);
    animation: fade-up .7s cubic-bezier(.16,1,.3,1) forwards;
  }
  .hero-copy > *:nth-child(1) { animation-delay: .05s; }
  .hero-copy > *:nth-child(2) { animation-delay: .12s; }
  .hero-copy > *:nth-child(3) { animation-delay: .19s; }
  .hero-copy > *:nth-child(4) { animation-delay: .26s; }
  .hero-copy > *:nth-child(5) { animation-delay: .33s; }
  .hero-photo { animation-delay: .22s; }
  @keyframes fade-up { to { opacity: 1; transform: none; } }
}

/* -- desktop --------------------------------------------------------------- */
@media (min-width: 760px) {
  .hero {
    grid-template-columns: 1fr 1fr; gap: 2.75rem;
    padding: 4rem 1.25rem 4.25rem; align-items: center;
  }
  .hero-photo img { aspect-ratio: 4 / 3; }
  .offer { grid-template-columns: repeat(3, 1fr); }
  .near { grid-template-columns: 1.2fr 1fr; align-items: start; gap: 3rem; }
  .info-grid { grid-template-columns: 1fr 1fr; }
}
