/* ==========================================================================
   FORNO BERTOLINI — editorial minimalism (minimalist-ui direction)
   Farina + legno + un accento verde eucalipto. Type: Familjen Grotesk (unica
   famiglia). Mobile-first (390px). Iron rules: plain HTML/CSS, one font link,
   content photos never tower.
   ========================================================================== */

:root {
  --bg: #f5efe4;          /* farina canvas */
  --surface: #fbf7ee;     /* alternating / lighter surface */
  --ink: #2a2118;         /* espresso — headings + body */
  --muted: #6b5f4d;       /* warm taupe secondary (4.9:1 on --bg) */
  --line: rgba(42, 33, 24, 0.14);
  --accent: #3a6b52;      /* eucalyptus green — the one accent */
  --accent-ink: #2c5741;  /* darker green for text on pale-green band */
  --accent-soft: #e7efe4; /* pale-green band */
  --cream: #f5efe4;       /* text on ink buttons */
  --font: "Familjen Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 8px;
  --pad-x: 1.4rem;
}

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

html { scroll-behavior: smooth; }

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

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

a { color: var(--accent); text-underline-offset: 3px; }

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 7.5vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 4.6vw, 2.15rem); font-weight: 600; }
h3 { font-size: 1.08rem; font-weight: 600; letter-spacing: -0.01em; }

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

/* -- buttons --------------------------------------------------------------- */
.btn {
  display: inline-block; text-decoration: none; color: var(--ink);
  border: 1px solid var(--ink); border-radius: var(--radius);
  padding: 0.7rem 1.3rem; font-weight: 500; font-size: 0.98rem;
  transition: background-color .18s ease, color .18s ease, transform .1s ease;
}
.btn:hover { background: rgba(42, 33, 24, 0.06); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.btn-primary:hover { background: #3d3125; color: var(--cream); }

/* -- top bar --------------------------------------------------------------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.85rem var(--pad-x);
  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-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.topbar-cta {
  text-decoration: none; font-weight: 500; font-size: 0.92rem;
  color: var(--cream); background: var(--ink);
  padding: 0.45rem 1rem; border-radius: var(--radius);
  transition: background-color .18s ease;
}
.topbar-cta:hover { background: #3d3125; }

/* -- layout scaffold ------------------------------------------------------- */
.section {
  padding: 3.25rem var(--pad-x);
  max-width: 68rem; margin: 0 auto;
}

/* -- hero (split asimmetrico) --------------------------------------------- */
.hero {
  padding: 2.75rem var(--pad-x) 3rem;
  max-width: 68rem; margin: 0 auto;
  display: grid; gap: 2rem; align-items: center;
}
.hero h1 { margin-bottom: 1.1rem; }
.hero-sub { color: var(--muted); max-width: 42ch; margin-bottom: 1.9rem; font-size: 1.12rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-photo img {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius);
}

/* -- perché (lista editoriale a filetti) ---------------------------------- */
.why h2 { margin-bottom: 2rem; max-width: 20ch; }
.reasons { list-style: none; padding: 0; display: grid; gap: 0; counter-reset: r; }
.reasons li {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 1.1rem;
}
.reasons li::before {
  counter-increment: r; content: counter(r, decimal-leading-zero);
  display: block; color: var(--accent); font-weight: 600;
  font-size: 0.92rem; letter-spacing: 0.04em; margin-bottom: 0.7rem;
  font-variant-numeric: tabular-nums;
}
.reasons h3 { margin-bottom: 0.4rem; }
.reasons p { color: var(--muted); max-width: 46ch; }

/* -- cosa sforniamo (split immagine + lista) ------------------------------ */
.products { display: grid; gap: 2rem; align-items: center; }
.products-photo img {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius);
}
.products-text h2 { margin-bottom: 1.5rem; }
.product-list { list-style: none; padding: 0; }
.product-list li {
  padding: 1.05rem 0; border-top: 1px solid var(--line);
}
.product-list li:first-child { border-top: 0; padding-top: 0; }
.p-name { display: block; font-weight: 600; font-size: 1.12rem; margin-bottom: 0.2rem; }
.p-desc { display: block; color: var(--muted); }
.products-note { margin-top: 1.4rem; color: var(--muted); font-size: 0.92rem; }

/* -- antispreco (banda verde) --------------------------------------------- */
.antispreco { background: var(--accent-soft); padding: 3.5rem var(--pad-x); }
.antispreco-inner { max-width: 52ch; margin: 0 auto; text-align: center; }
.antispreco h2 { color: var(--accent-ink); margin-bottom: 0.9rem; }
.antispreco p { color: #40584a; font-size: 1.1rem; }

/* -- recensioni (citazioni impilate) -------------------------------------- */
.reviews { text-align: center; }
.reviews > h2 { margin-bottom: 2.25rem; }
.quotes { max-width: 46ch; margin: 0 auto; display: grid; gap: 0; }
.quote { padding: 1.75rem 0; border-top: 1px solid var(--line); }
.quote:first-child { border-top: 0; padding-top: 0; }
.quote p {
  font-size: clamp(1.2rem, 3.4vw, 1.5rem); line-height: 1.35;
  letter-spacing: -0.01em; font-weight: 500;
}
.quote cite {
  display: block; margin-top: 0.85rem; font-style: normal;
  font-size: 0.9rem; color: var(--muted); letter-spacing: 0.02em;
}
.reviews-meta { margin-top: 2.25rem; color: var(--accent); font-weight: 500; font-size: 0.95rem; }

/* -- orari & dove ---------------------------------------------------------- */
.info-grid { display: grid; gap: 2.25rem; margin-top: 1.75rem; }
.where h3 { color: var(--muted); font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 0.8rem; margin-bottom: 0.9rem; }
.hours { border-collapse: collapse; width: 100%; max-width: 22rem; }
.hours td { padding: 0.35rem 0; border-bottom: 1px solid var(--line); }
.hours td:first-child { font-weight: 500; }
.hours td:last-child { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.contact-lines { margin-bottom: 1.5rem; line-height: 1.9; }
.contact-lines a { font-weight: 500; }

/* -- footer ---------------------------------------------------------------- */
.footer {
  padding: 2.75rem var(--pad-x) 3.25rem; text-align: center;
  color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--line);
}
.demo-note { margin-top: 0.5rem; opacity: 0.75; }

/* -- desktop --------------------------------------------------------------- */
@media (min-width: 760px) {
  :root { --pad-x: 2rem; }
  .hero { grid-template-columns: 1.05fr 1fr; gap: 3rem; padding-top: 3.75rem; padding-bottom: 4.25rem; }
  .hero-photo img { aspect-ratio: 4 / 3; }
  .reasons { grid-template-columns: repeat(3, 1fr); gap: 2.25rem; }
  .reasons li { padding-bottom: 0; }
  .products { grid-template-columns: 1fr 1.05fr; gap: 3rem; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .section { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .antispreco { padding-top: 5rem; padding-bottom: 5rem; }
}

/* -- motion safety --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
