/* ==========================================================================
   Forno Pasticceria Gluten Free di Paggio Simone — San Lazzaro di Savena (BO)
   Direction: modern-reassuring "clean lab". Palette from their real sign
   (viola wordmark + green wheat-spike). Sans display (Schibsted Grotesk).
   Mobile-first: designed at 390px, then up. One accent: viola.
   ========================================================================== */

:root {
  --bg: #faf7fc;          /* luminous white with a whisper of lilac */
  --surface: #ffffff;     /* cards / panels */
  --band: #f3edf9;        /* soft lilac band */
  --text: #241c2b;        /* aubergine near-black */
  --muted: #6c6474;       /* violet-grey secondary text */
  --line: #e7dff0;        /* hairlines */
  --accent: #6a1fae;      /* THE accent — viola from the wordmark */
  --accent-ink: #ffffff;  /* text on accent */
  --accent-hover: #56198c;
  --spiga: #4c8f3e;       /* brand-only green (wheat spike + GF seal) */
  --font-display: "Schibsted Grotesk", system-ui, sans-serif;
  --font-body: "Figtree", -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --measure: 64ch;
  --maxw: 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.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
}
h2 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); letter-spacing: -0.025em; }
h3 { font-size: 1.15rem; font-weight: 700; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: 1.25rem; }

/* -- eyebrow (rationed) ---------------------------------------------------- */
.eyebrow {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
}

/* -- buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  text-decoration: none; font-weight: 600; font-family: var(--font-display);
  border: 1.5px solid var(--accent); border-radius: 999px;
  padding: 0.7rem 1.4rem; color: var(--accent); background: transparent;
  transition: transform .18s cubic-bezier(.16,1,.3,1), background .18s, color .18s, box-shadow .18s;
  white-space: nowrap;
}
.btn:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent); color: var(--accent-ink); border-color: var(--accent);
  box-shadow: 0 8px 22px -10px color-mix(in srgb, var(--accent) 75%, transparent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn svg { width: 1.05em; height: 1.05em; }

/* -- top bar --------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.brand { display: flex; align-items: baseline; gap: 0.42rem; font-family: var(--font-display); }
.brand .mark { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; white-space: nowrap; }
.brand .mark .gf { color: var(--accent); }
/* keep the topbar wordmark to one line on small phones */
@media (max-width: 559px) { .topbar .brand .mark .gf { display: none; } }
.brand .spiga { width: 15px; height: 20px; flex: none; transform: translateY(3px); }
.brand-sub { display: none; font-size: 0.72rem; color: var(--muted); font-weight: 500;
  letter-spacing: 0.02em; text-transform: uppercase; }
.topbar-cta { font-size: 0.95rem; padding: 0.5rem 1.05rem; }
@media (min-width: 640px) { .brand-sub { display: inline; } }

/* -- hero (typographic, left-aligned) -------------------------------------- */
.hero { padding-top: clamp(3rem, 9vh, 5.5rem); padding-bottom: 2.25rem; }
.hero .eyebrow { display: block; margin-bottom: 1rem; }
.hero h1 {
  font-size: clamp(2.6rem, 11vw, 4.6rem);
  max-width: 15ch;
  margin-bottom: 1.15rem;
}
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  color: var(--muted); font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  max-width: 42ch; margin-bottom: 1.75rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* -- trust strip ----------------------------------------------------------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.trust .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding-inline: 0; }
.trust-item { padding: 1.15rem 1.25rem; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item:nth-child(3), .trust-item:nth-child(4) { border-top: 1px solid var(--line); }
.trust-item:nth-child(3) { border-left: none; }
.trust-k { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--text); display: flex; align-items: center; gap: 0.4rem; }
.trust-k .star { color: var(--accent); }
.trust-v { font-size: 0.86rem; color: var(--muted); margin-top: 0.15rem; }
@media (min-width: 820px) {
  .trust .wrap { grid-template-columns: repeat(4, 1fr); }
  .trust-item:nth-child(n) { border-top: none; }
  .trust-item + .trust-item { border-left: 1px solid var(--line); }
}

/* -- generic section ------------------------------------------------------- */
.section { padding-block: clamp(3rem, 8vh, 4.75rem); }
.section-head { max-width: var(--measure); margin-bottom: 1.9rem; }
.section-head p { color: var(--muted); margin-top: 0.6rem; }

/* -- products (asymmetric bento of categories) ----------------------------- */
.products { display: grid; grid-template-columns: 1fr; gap: 0.9rem; }
.prod {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: transform .2s cubic-bezier(.16,1,.3,1), box-shadow .2s;
}
.prod:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--text) 40%, transparent); }
.prod-media { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--band); }
.prod-body { padding: 1rem 1.15rem 1.25rem; }
.prod-body h3 { margin-bottom: 0.3rem; }
.prod-body p { font-size: 0.92rem; color: var(--muted); }
/* text-only cards (no photo) sit lighter, on the lilac band */
.prod.text-only { background: var(--band); }
.prod.text-only .prod-body { padding-block: 1.4rem; }
@media (min-width: 720px) {
  .products { grid-template-columns: repeat(6, 1fr); }
  .prod:nth-child(1) { grid-column: span 4; }        /* dolci — big showcase */
  .prod:nth-child(2) { grid-column: span 2; }        /* pane */
  .prod:nth-child(3) { grid-column: span 2; }        /* pasta fresca (text) */
  .prod:nth-child(4) { grid-column: span 4; }        /* salato (text) */
  /* let the photo fill the card height so the small card has no dead space */
  .prod-media { aspect-ratio: auto; flex: 1 1 auto; min-height: 240px; }
}

/* -- torte feature (full-width split) -------------------------------------- */
.feature { background: var(--band); }
.feature .wrap { display: grid; gap: 1.75rem; align-items: center; }
.feature-media img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius);
}
.feature h2 { margin-bottom: 0.85rem; }
.feature p { color: var(--muted); max-width: 46ch; margin-bottom: 0.7rem; }
.feature .btn { margin-top: 0.8rem; }
@media (min-width: 860px) {
  .feature .wrap { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; }
  .feature-media { order: 2; }
  .feature-media img { aspect-ratio: 4 / 5; }
}

/* -- trust pillars + quotes ------------------------------------------------ */
.pillars { display: grid; gap: 0; border-top: 1px solid var(--line); margin-bottom: 2.75rem; }
.pillar { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.pillar h3 { color: var(--accent); margin-bottom: 0.35rem; }
.pillar p { color: var(--muted); max-width: 60ch; }
@media (min-width: 800px) {
  .pillars { grid-template-columns: repeat(3, 1fr); border-top: none; gap: 2.25rem; }
  .pillar { border-bottom: none; border-top: 2px solid var(--accent); padding-top: 1.1rem; }
}
.quotes { display: grid; gap: 1.1rem; }
.quote {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.3rem 1.4rem;
}
.quote p { font-size: 1.02rem; }
.quote footer { margin-top: 0.7rem; font-size: 0.85rem; color: var(--muted); font-weight: 500; }
@media (min-width: 800px) { .quotes { grid-template-columns: repeat(3, 1fr); } }

/* -- dove siamo ------------------------------------------------------------ */
.dove .wrap { display: grid; gap: 1.9rem; }
.dove-photo img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line);
}
.hours { width: 100%; border-collapse: collapse; margin: 0.4rem 0 1.25rem; }
.hours td { padding: 0.42rem 0; border-bottom: 1px solid var(--line); }
.hours td:first-child { font-weight: 600; }
.hours td:last-child { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.hours tr.today td { color: var(--accent); }
.contact-lines { line-height: 1.9; margin-bottom: 1.1rem; }
.contact-lines a { font-weight: 600; }
.note { color: var(--muted); font-size: 0.9rem; margin-top: 1rem; }
@media (min-width: 820px) {
  .dove .wrap { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
  .dove-photo { order: 2; }
  .dove-photo img { aspect-ratio: 3 / 4; }
}

/* -- footer ---------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer .wrap { padding-block: 2.5rem 3rem; text-align: center; color: var(--muted); font-size: 0.9rem; }
.footer .brand { justify-content: center; margin-bottom: 0.6rem; }
.demo-note { margin-top: 0.75rem; opacity: 0.75; font-size: 0.82rem; }

/* -- motion (gentle reveal, CSS-only, gated) ------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); animation: reveal .7s cubic-bezier(.16,1,.3,1) forwards; animation-timeline: view(); animation-range: entry 0% cover 22%; }
  @keyframes reveal { to { opacity: 1; transform: none; } }
}
