/* ==========================================================================
   PANIFICIO SACCHETTI — forno di quartiere, Savena (Bologna)
   Direction: warm latte canvas + golden biscuit bands + terracotta/cotto accent
   (from their tiled walls & oven brick). Signature motif: carta-pizzo (lace
   doily) scalloped edge, echoing what the biscotti sit on in the photos.
   Type: Yeseva One (vintage bakery-label serif) + Karla (warm humanist body).
   Radius rule: buttons/chips = pill; surfaces/images = 12px.
   Mobile-first: designed at 390px, enhanced at >=760px.
   ========================================================================== */

:root {
  --bg: #faf3e6;          /* warm latte canvas (lace paper / tile grout) */
  --surface: #fdf8ee;     /* cards */
  --band: #f2e2c1;        /* golden biscuit band tint */
  --text: #2c1f14;        /* deep cocoa near-black */
  --muted: #6b5641;       /* warm taupe-brown (AA on canvas & band) */
  --line: #e7d6b6;        /* warm sand hairline */
  --accent: #a8471f;      /* cotto / terracotta (oven brick, wall tiles) */
  --accent-dark: #8a3916; /* hover */
  --accent-ink: #fff8ef;  /* warm white on accent */
  --font-display: "Yeseva One", Georgia, serif;
  --font-body: "Karla", -apple-system, "Segoe UI", sans-serif;
  --radius: 12px;
  --measure: 66ch;
  --pad: 1.25rem;
}

* { 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(--accent); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; letter-spacing: 0; }
h2 { font-size: clamp(1.7rem, 5vw, 2.4rem); margin-bottom: 0.6rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

.eyebrow {
  color: var(--accent); font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.13em; margin-bottom: 0.9rem;
}

/* mobile-image iron rule safety net for any <figure> content photo */
@media (max-width: 640px) {
  figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
}

/* -- buttons --------------------------------------------------------------- */
.btn {
  display: inline-block; text-decoration: none; color: var(--text);
  border: 1.5px solid var(--text); border-radius: 999px;
  padding: 0.62rem 1.35rem; font-weight: 700; font-size: 0.98rem;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* -- 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: 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-size: 1.2rem; }
.topbar-cta {
  text-decoration: none; font-weight: 700; font-size: 0.92rem;
  color: var(--accent-ink); background: var(--accent);
  padding: 0.4rem 1rem; border-radius: 999px;
}
.topbar-cta:hover { background: var(--accent-dark); }

/* -- hero (asymmetric split) ------------------------------------------------ */
.hero {
  max-width: 1180px; margin: 0 auto;
  padding: 2.4rem var(--pad) 3rem;
  display: grid; gap: 2rem; align-items: center;
}
.hero-copy { max-width: 34rem; }
.hero h1 {
  font-size: clamp(3rem, 13vw, 5.2rem);
  margin: 0.2rem 0 0.4rem;
}
.hero-names {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 4.5vw, 1.5rem);
  color: var(--accent); margin-bottom: 1rem;
}
.hero-sub { color: var(--muted); max-width: 42ch; margin-bottom: 1.6rem; font-size: 1.1rem; }
.hero-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }

/* biscotti photo resting on a "doily" mat with a scalloped bottom edge */
.hero-media {
  position: relative;
  background: var(--surface);
  padding: 12px 12px 20px;
  border-radius: var(--radius);
  box-shadow: 0 16px 40px -22px rgba(60, 34, 12, 0.5);
}
.hero-media img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 6px;
}
.hero-media::after {   /* carta-pizzo scalloped fringe under the photo */
  content: ""; position: absolute; left: 8px; right: 8px; bottom: 4px; height: 12px;
  background: radial-gradient(circle 7px at 9px 12px, var(--surface) 0 6px, transparent 6.5px) repeat-x;
  background-size: 18px 12px;
}

/* -- biscuit band + proof row ---------------------------------------------- */
.band {
  position: relative;
  background: var(--band);
  padding: 3.4rem var(--pad) 3rem;
  margin-top: 1rem;
}
.band::before {   /* scalloped canvas fringe dripping into the band top */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 13px;
  background: radial-gradient(circle 9px at 12px 0, var(--bg) 0 8px, transparent 8.5px) repeat-x;
  background-size: 24px 13px;
}
.band-inner { max-width: var(--measure); margin: 0 auto; }
.band .lead { color: var(--muted); font-size: 1.15rem; margin-top: 0.4rem; }
.proof {
  list-style: none; padding: 0; margin-top: 1.8rem;
  display: grid; gap: 0; border-top: 1px solid var(--line);
}
.proof li {
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: 0.9rem 0; border-bottom: 1px solid var(--line);
}
.proof-k {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--accent);
}
.proof-v { font-weight: 500; }

/* -- generic section ------------------------------------------------------- */
.section { padding: 3.2rem var(--pad); max-width: 1120px; margin: 0 auto; }
.section-note { color: var(--muted); margin-bottom: 1.6rem; max-width: 54ch; }

/* -- dal nostro banco (3 grouped lists) ------------------------------------ */
.banco-grid { display: grid; gap: 1rem; }
.banco-col {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem 1.4rem 1.6rem;
}
.banco-col--sweet { background: color-mix(in srgb, var(--band) 55%, var(--surface)); }
.banco-col h3 { color: var(--text); }
.banco-lead { color: var(--muted); font-size: 0.95rem; margin-bottom: 1rem; }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tags li {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.3rem 0.75rem;
  font-size: 0.9rem; font-weight: 500;
}
.banco-col--sweet .tags li { background: var(--surface); }

/* -- split (text + image) -------------------------------------------------- */
.split {
  max-width: 1120px; margin: 0 auto; padding: 3.2rem var(--pad);
  display: grid; gap: 1.8rem; align-items: center;
}
.split-copy p { color: var(--muted); margin-top: 0.9rem; max-width: 46ch; }
.split-copy h2 { color: var(--text); }
.split-media img {
  width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 16px 40px -24px rgba(60, 34, 12, 0.5);
}

/* -- full-width photo band ------------------------------------------------- */
.photoband { margin: 0 auto; max-width: 1400px; padding: 1rem var(--pad) 2rem; }
.photoband img {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius);
}
.photoband-cap {
  color: var(--muted); font-size: 0.9rem; margin-top: 0.7rem;
  text-align: center; max-width: 60ch; margin-left: auto; margin-right: auto;
}

/* -- orari & dove ---------------------------------------------------------- */
.info-grid { display: grid; gap: 2.2rem; margin-top: 1.2rem; }
.hours { border-collapse: collapse; width: 100%; max-width: 30rem; }
.hours td { padding: 0.5rem 0.4rem; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: top; }
.hours td:first-child { color: var(--text); font-weight: 700; white-space: nowrap; padding-right: 1.2rem; }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours .closed { color: var(--accent); font-weight: 700; }
.hours tr.is-today td { background: color-mix(in srgb, var(--band) 70%, transparent); }
.hours tr.is-today td:first-child { position: relative; }
.info-dove .contact-lines { margin-bottom: 1.3rem; line-height: 1.8; }

/* -- footer ---------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.6rem var(--pad) 3rem; text-align: center;
  color: var(--muted); font-size: 0.92rem; line-height: 1.7;
}
.footer-brand { font-family: var(--font-display); font-size: 1.4rem; color: var(--text); margin-bottom: 0.4rem; }
.footer a { font-weight: 700; }
.demo-note { margin-top: 0.9rem; opacity: 0.75; font-size: 0.82rem; }

/* ==========================================================================
   DESKTOP / TABLET  (>= 760px)
   ========================================================================== */
@media (min-width: 760px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    padding: 4rem var(--pad) 4.5rem;
    gap: 3rem;
  }
  .hero-media img { aspect-ratio: 4 / 3; }
  .proof { grid-template-columns: repeat(3, 1fr); gap: 0 2rem; border-top: none; }
  .proof li { border-bottom: none; border-left: 1px solid var(--line); padding: 0.2rem 0 0.2rem 1.2rem; }
  .banco-grid { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
  .split { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .split-media img { aspect-ratio: 3 / 2; }
  .info-grid { grid-template-columns: 1.1fr 0.9fr; }
}

/* honor reduced-motion for the only transitions on the page */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .btn:hover { transform: none; }
}
