/* ==========================================================================
   Panificio Casarini Massimo — Pianoro (BO)
   Direction: warm-traditional-craft, appetite-forward.
   Palette from their own photo (golden interior light, warm wood, toasted
   crust): clean warm-white canvas + roasted-brown ink + toasted-crust amber.
   Type: Zilla Slab (display, bakery-sign slab) + Work Sans (body).
   One radius system (8px). Mobile-first, designed at 390px.
   ========================================================================== */

:root {
  --bg: #fbf9f4;            /* clean warm-white canvas (reviews praise "molto pulito") */
  --wheat: #f1e9d8;         /* soft wheat section fill */
  --brown: #2a1c12;         /* roasted-crust brown ink / dark band */
  --text: #2a1c12;          /* body ink */
  --muted: #6a5a47;         /* warm taupe secondary text (AA on both --bg and --wheat) */
  --accent: #c67a2e;        /* toasted-crust amber — decorative: rules, stars, hover */
  --accent-deep: #8f4e17;   /* darker amber for accent TEXT (AA on light bg) */
  --line: #e3d8c3;          /* hairline on light */
  --font-display: "Zilla Slab", Georgia, serif;
  --font-body: "Work Sans", -apple-system, "Segoe UI", sans-serif;
  --radius: 8px;
  --measure: 64ch;
  --pad: 1.375rem;
}

* { 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; }
a { color: var(--accent-deep); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.005em;
}
h2 { font-size: clamp(1.7rem, 5.5vw, 2.5rem); margin-bottom: 0.6rem; }
h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.35rem; }

/* small caps label — used sparingly (hero + one section max) */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-deep);
}

/* ---- buttons: one shape (8px). Primary = brown/white (high contrast). ---- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.72rem 1.35rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--brown);
  color: var(--brown);
  background: transparent;
  transition: transform 0.12s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--brown); color: var(--bg); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--brown);
  color: var(--bg);
  border-color: var(--brown);
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--brown); }

/* ---- top bar ---- */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
  padding: 0.7rem var(--pad);
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  color: var(--brown);
  text-decoration: none;
}
.topbar-cta {
  text-decoration: none;
  font-weight: 600; font-size: 0.92rem;
  color: var(--bg); background: var(--brown);
  padding: 0.5rem 1.05rem; border-radius: var(--radius);
  transition: background-color 0.2s ease;
  white-space: nowrap;
}
.topbar-cta:hover { background: var(--accent); color: var(--brown); }

/* ---- hero: full-bleed real photo + bottom scrim ---- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}
.hero::after { /* warm scrim, bottom-anchored */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(
    to top,
    rgba(30, 18, 10, 0.92) 0%,
    rgba(30, 18, 10, 0.72) 24%,
    rgba(30, 18, 10, 0.18) 55%,
    rgba(30, 18, 10, 0.04) 100%
  );
}
.hero-inner {
  padding: 2.5rem var(--pad) 2.75rem;
  max-width: 40rem;
}
.hero .eyebrow { color: #f0c088; } /* amber, lightened for dark scrim */
.hero h1 {
  color: #fff;
  font-size: clamp(2.7rem, 12vw, 4.4rem);
  margin: 0.5rem 0 0.75rem;
}
.hero-sub {
  color: #f4ece1;
  font-size: 1.08rem;
  line-height: 1.5;
  max-width: 34ch;
  margin-bottom: 1.5rem;
}
.hero-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.hero .btn { border-color: #fff; color: #fff; }
.hero .btn:hover { background: #fff; color: var(--brown); }
.hero .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--brown); }
.hero .btn-primary:hover { background: #fff; border-color: #fff; color: var(--brown); }

/* ---- generic section rhythm ---- */
.section { padding: clamp(3.25rem, 9vw, 5rem) var(--pad); }
.wrap { max-width: var(--measure); margin: 0 auto; }
.wrap-wide { max-width: 68rem; margin: 0 auto; }

.rule { /* short amber underline accent below a heading */
  width: 44px; height: 3px; background: var(--accent);
  border-radius: 2px; margin-bottom: 1.1rem;
}

/* ---- chi siamo (prose) ---- */
.intro p { font-size: 1.14rem; line-height: 1.66; color: #4a3826; }
.intro p + p { margin-top: 1rem; }

/* ---- cosa sforniamo (category grid) ---- */
.prodotti { background: var(--wheat); }
.grid {
  display: grid; grid-template-columns: 1fr; gap: 0.9rem;
  margin-top: 1.6rem;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.35rem;
}
.card h3 { color: var(--brown); }
.card p { color: var(--muted); font-size: 0.98rem; line-height: 1.55; }
.banco-note {
  margin-top: 1.6rem; color: var(--muted); font-size: 0.95rem;
  border-left: 3px solid var(--accent); padding-left: 0.9rem;
}

/* ---- reviews band (one deliberate dark warm band) ---- */
.parlano {
  background: var(--brown);
  color: #f4ece1;
}
.parlano .eyebrow { color: #f0c088; }
.parlano h2 { color: #fff; }
.stars { color: var(--accent); letter-spacing: 0.12em; font-size: 1.05rem; }
.rating-line { color: #cbb79f; font-size: 0.95rem; margin-top: 0.15rem; }
.quotes {
  display: grid; grid-template-columns: 1fr; gap: 1.1rem;
  margin-top: 1.9rem;
}
.quote {
  border-top: 2px solid rgba(240, 192, 136, 0.35);
  padding-top: 1rem;
}
.quote p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  line-height: 1.4;
  color: #fbf3e8;
}
.quote cite {
  display: block; margin-top: 0.7rem;
  font-style: normal; font-size: 0.9rem; color: #cbb79f;
}

/* ---- orari e dove ---- */
.info-grid { display: grid; gap: 2.2rem; margin-top: 1.6rem; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 0.42rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours td:first-child { color: var(--brown); font-weight: 600; padding-right: 1.25rem; white-space: nowrap; }
.hours td:last-child { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.hours tr:last-child td { border-bottom: none; }
.contact-lines { line-height: 1.9; color: #4a3826; }
.contact-lines a { color: var(--accent-deep); text-decoration: none; font-weight: 500; }
.contact-lines a:hover { text-decoration: underline; }
.contact-lines .addr { color: var(--brown); font-weight: 600; }

/* ---- footer ---- */
.footer {
  padding: 2.4rem var(--pad) 2.75rem; text-align: center;
  color: var(--muted); font-size: 0.9rem;
  background: var(--wheat);
  border-top: 1px solid var(--line);
}
.footer .fbrand { font-family: var(--font-display); font-weight: 700; color: var(--brown); font-size: 1.05rem; }
.demo-note { margin-top: 0.6rem; opacity: 0.8; font-size: 0.82rem; }

/* ==========================================================================
   Larger screens
   ========================================================================== */
@media (min-width: 720px) {
  .hero { min-height: 78vh; }
  .hero-inner { padding: 3rem 2.5rem 3.25rem; }
  .grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .quotes { grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
  .info-grid { grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: start; }
  .section { padding-left: 2.5rem; padding-right: 2.5rem; }
  .topbar { padding-left: 2.5rem; padding-right: 2.5rem; }
}

@media (min-width: 1000px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 4.6rem; }
}

/* respect reduced motion (we only use tiny transitions, but honor it) */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
