/* ==========================================================================
   FORNO CASSARI — San Lazzaro di Savena
   Direction: warm-heritage neighborhood bakery. Signature = the glossy
   BRICK-RED of their interior (ceiling ovals + counter panels), mahogany ink,
   ivory-terrazzo canvas, brass used only as a hairline. One accent: brick red.
   Type: Petrona (display) + Work Sans (body). Mobile-first, 390px first.
   Shape rule: interactive = pill; surfaces = 4px.
   ========================================================================== */

:root {
  --brick: #9c3327;          /* THE accent — glossy red of their shop */
  --brick-dark: #7c281f;     /* deeper brick, links on paper, footer edges */
  --paper: #f4ebdd;          /* canvas — the light terrazzo floor */
  --card: #fbf6ec;           /* alternating band, a touch lighter */
  --ink: #2a1a12;            /* mahogany dark — the wood shelving */
  --muted: #6f6152;          /* warm taupe secondary text */
  --brass: #a8803c;          /* the pendant lamps — HAIRLINE only, never a fill */
  --on-brick: #fbf1e3;       /* cream text on brick */
  --font-display: "Petrona", Georgia, serif;
  --font-body: "Work Sans", -apple-system, "Segoe UI", sans-serif;
  --radius: 4px;
  --measure: 62ch;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brick-dark); }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.005em;
  font-weight: 600;
}
h2 { font-size: clamp(1.7rem, 5.5vw, 2.4rem); margin-bottom: 1rem; color: var(--ink); }
h3 { font-size: 1.2rem; margin-bottom: 0.35rem; color: var(--brick-dark); font-weight: 600; }
p { max-width: var(--measure); }

/* -- shared button system (pill) ------------------------------------------ */
.btn {
  display: inline-block; text-decoration: none;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 0.7rem 1.5rem; border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
.btn-primary { background: var(--brick); border-color: var(--brick); color: var(--on-brick); }
.btn-primary:hover { transform: translateY(-2px); background: var(--brick-dark); border-color: var(--brick-dark); }

/* -- 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(--paper) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
}
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--brick-dark); letter-spacing: -0.01em; }
.topbar-cta {
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  color: var(--on-brick); background: var(--brick);
  padding: 0.45rem 1.1rem; border-radius: 999px;
  transition: background-color 0.18s ease;
}
.topbar-cta:hover { background: var(--brick-dark); }

/* -- hero: brick-red band, typographic ------------------------------------ */
.hero {
  background: var(--brick);
  background-image:
    radial-gradient(120% 80% at 50% -10%, color-mix(in srgb, #b23d2f 70%, transparent), transparent 60%);
  color: var(--on-brick);
  padding: 3.25rem 1.25rem 3.5rem;
  border-bottom: 4px solid var(--brass);
}
.hero-inner {
  max-width: 40ch; margin: 0 auto; text-align: center;
  position: relative; padding-top: 1.1rem;
}
/* thin brass rule above the eyebrow, a nod to the pendant-lamp brass */
.hero-inner::before {
  content: ""; display: block; width: 46px; height: 2px;
  background: var(--brass); margin: 0 auto 1.1rem;
}
.hero-kicker {
  color: color-mix(in srgb, var(--on-brick) 85%, transparent);
  font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 0.9rem;
}
.hero h1 {
  font-size: clamp(2.9rem, 13vw, 4.6rem);
  color: var(--on-brick); font-weight: 700;
  margin-bottom: 0.9rem;
}
.hero-sub {
  color: color-mix(in srgb, var(--on-brick) 92%, transparent);
  max-width: 34ch; margin: 0 auto 1.75rem; font-size: 1.08rem;
}
.hero-actions { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; }
/* on the brick band, primary flips to a cream fill; ghost is outlined cream */
.hero .btn-primary { background: var(--on-brick); border-color: var(--on-brick); color: var(--brick-dark); }
.hero .btn-primary:hover { background: #fff; border-color: #fff; color: var(--brick-dark); }
.btn-ghost { background: transparent; border-color: color-mix(in srgb, var(--on-brick) 55%, transparent); color: var(--on-brick); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--on-brick); background: color-mix(in srgb, var(--on-brick) 12%, transparent); }

/* -- showcase photo band --------------------------------------------------- */
.showcase { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.25rem 0.5rem; }
.showcase figure { margin: 0; }
.showcase img {
  width: 100%; height: auto;
  aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--radius);
}
.showcase figcaption {
  margin-top: 0.7rem; color: var(--muted);
  font-size: 0.92rem; font-style: italic; text-align: center;
}

/* -- sections -------------------------------------------------------------- */
.section { padding: 3.25rem 1.25rem; }
.band-paper { background: var(--card); }
.wrap-narrow { max-width: var(--measure); margin: 0 auto; }

.rule-brass { display: block; width: 56px; height: 2px; background: var(--brass); margin-bottom: 1.4rem; }

#storia p + p { margin-top: 1rem; }
#storia p { color: color-mix(in srgb, var(--ink) 92%, transparent); }

/* -- "cosa sforniamo" typographic index ------------------------------------ */
.index { margin-top: 1.75rem; }
.index-row {
  padding: 1.15rem 0;
  border-top: 1px solid color-mix(in srgb, var(--brass) 55%, transparent);
}
.index-row:last-child { border-bottom: 1px solid color-mix(in srgb, var(--brass) 55%, transparent); }
.index-row p { color: var(--muted); margin-top: 0.1rem; }
.note { margin-top: 1.5rem; color: var(--muted); font-size: 0.92rem; font-style: italic; }

/* -- signature feature: brick band with the crescente pull-quote ----------- */
.feature {
  background: var(--brick-dark);
  color: var(--on-brick);
  padding: 3.75rem 1.25rem;
  text-align: center;
  border-top: 4px solid var(--brass);
  border-bottom: 4px solid var(--brass);
}
.feature-eyebrow {
  color: var(--brass); font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.2em; margin: 0 auto 1.25rem;
}
.feature-quote { margin: 0 auto; max-width: none; }
.feature-quote p {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.6rem, 6.5vw, 2.4rem); line-height: 1.25;
  color: var(--on-brick);
  max-width: 26ch; margin: 0 auto;   /* ch measured at THIS (large) font -> ~3 lines */
  padding-bottom: 0.15em; /* italic descender clearance */
}
.feature-attr {
  margin: 1.5rem auto 0;
  color: color-mix(in srgb, var(--on-brick) 78%, transparent);
  font-size: 0.9rem; letter-spacing: 0.03em;
}

/* -- reviews --------------------------------------------------------------- */
.rating { color: var(--muted); margin-bottom: 1.75rem; font-size: 1.05rem; }
.rating strong { color: var(--brick-dark); font-size: 1.35rem; font-family: var(--font-display); }
.quotes { display: grid; gap: 1.5rem; }
.quotes blockquote {
  margin: 0; padding: 1.3rem 1.4rem;
  background: var(--paper); border-radius: var(--radius);
  border-left: 3px solid var(--brick);
}
.band-paper .quotes blockquote { background: #fff; }
.quotes blockquote p {
  font-family: var(--font-display); font-style: italic; font-size: 1.12rem;
  line-height: 1.45; color: var(--ink); max-width: none;
}
.quotes cite {
  display: block; margin-top: 0.7rem;
  font-style: normal; font-size: 0.85rem; color: var(--muted);
  letter-spacing: 0.03em;
}

/* -- orari & dove ---------------------------------------------------------- */
.info-grid { display: grid; gap: 2.25rem; margin-top: 1.5rem; }
.contact-lines { margin-bottom: 1.4rem; line-height: 1.9; }
.contact-lines a { font-weight: 600; }
.hours-note { color: var(--muted); }

/* -- footer ---------------------------------------------------------------- */
.footer {
  background: var(--ink); color: color-mix(in srgb, var(--paper) 82%, transparent);
  padding: 2.75rem 1.25rem 3rem; text-align: center; font-size: 0.92rem;
}
.foot-brand {
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  color: var(--paper); margin: 0 auto 0.4rem;
}
.footer p { max-width: none; }
.demo-note { margin-top: 0.9rem; opacity: 0.6; font-size: 0.82rem; }

/* -- larger screens -------------------------------------------------------- */
@media (min-width: 720px) {
  .hero { padding: 4.5rem 1.25rem 4.75rem; }
  .section { padding: 4.25rem 1.25rem; }
  .info-grid { grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: start; }
  .quotes { grid-template-columns: 1fr 1fr; }
  .showcase { padding-top: 3.25rem; }
}

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