/* ==========================================================================
   Monicabontà — forno e gastronomia, San Lazzaro di Savena
   Direction: hand-painted storybook / fiaba, warm illustrated-craft.
   Palette from the storefront mural: pale lilac-cream canvas, grape-lilac
   accent (the painted hill), gingerbread-espresso ink (the candy house).
   One accent (lilac). One radius idea: pill buttons, 16px cards.
   Mobile-first (390px), light theme locked.
   ========================================================================== */

:root {
  --bg: #f7f2f5;            /* pale warm lilac-cream (the painted sky/hill, washed out) */
  --surface: #fffdfe;       /* cards */
  --surface-tint: #efe6f0;  /* alternating band */
  --ink: #3b2b28;           /* gingerbread-espresso text */
  --muted: #6e5f64;         /* secondary text (AA on cream) */
  --accent: #7a4f9e;        /* grape-lilac, the hill — the ONE accent */
  --accent-deep: #613e80;   /* hover */
  --on-accent: #ffffff;
  --line: #e3d6e2;          /* hairlines / borders */

  --font-display: "Yeseva One", Georgia, serif;
  --font-body: "Nunito Sans", -apple-system, "Segoe UI", sans-serif;

  --radius-card: 16px;
  --measure: 60ch;
  --shadow: 0 14px 34px -18px rgba(92, 58, 110, 0.45); /* lilac-tinted, never black */
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  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(--accent); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; letter-spacing: 0.005em; }
h2 { font-size: clamp(1.85rem, 6.5vw, 2.5rem); color: var(--ink); margin-bottom: 1rem; }
h3 { font-size: 1.3rem; color: var(--ink); margin-bottom: 0.4rem; }
p { max-width: var(--measure); }

/* -- top bar (solid cream, sits above the photo hero) --------------------- */
.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(--bg) 90%, white);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.brand { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); }
.topbar-cta {
  text-decoration: none; font-weight: 700; font-size: 0.9rem;
  color: var(--on-accent); background: var(--accent);
  padding: 0.42rem 1.05rem; border-radius: 999px;
  transition: background 0.25s ease, transform 0.2s ease;
}
.topbar-cta:hover { background: var(--accent-deep); }

/* -- buttons --------------------------------------------------------------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 0.72rem 1.5rem; border-radius: 999px;
  border: 1.5px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--on-accent); border-color: rgba(255,255,255,0.75); }
.btn-ghost:hover { background: rgba(255,255,255,0.16); }

/* -- hero: full-bleed mural photo, warm bottom scrim --------------------- */
.hero {
  position: relative;
  min-height: min(84svh, 640px);
  display: flex; align-items: flex-end;
  padding: 2rem 1.25rem 2.5rem;
  background-image: url("images/vetrina.jpg");
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(28, 16, 26, 0.92) 0%, rgba(28, 16, 26, 0.45) 42%, rgba(28, 16, 26, 0.12) 72%, rgba(28, 16, 26, 0.28) 100%);
}
.hero-inner {
  max-width: 21rem;
  animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-kicker {
  color: #e9d7f2; font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.6rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.hero h1 {
  font-size: clamp(2.4rem, 12.5vw, 4.6rem); color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 0.7rem; text-shadow: 0 2px 18px rgba(0,0,0,0.5);
}
.hero-sub {
  color: rgba(255,255,255,0.94); max-width: 32ch; margin-bottom: 1.6rem;
  font-size: 1.08rem; text-shadow: 0 1px 10px rgba(0,0,0,0.55);
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* -- sections --------------------------------------------------------------- */
.section { padding: 3.5rem 1.25rem; max-width: calc(var(--measure) + 6rem); margin: 0 auto; }

/* La bottega — centered editorial block */
.story { text-align: center; }
.story p { margin-left: auto; margin-right: auto; }
.story .lead { font-size: 1.2rem; color: var(--ink); margin-bottom: 1rem; }
.story p:not(.lead) { color: var(--muted); }

/* Cosa trovi — tinted band + scalloped icing edge + card grid */
.offer {
  position: relative;
  background: var(--surface-tint);
  max-width: none;
  padding-top: 4.25rem;
  margin-top: 1.5rem;
}
.offer > * { max-width: calc(var(--measure) + 6rem); margin-left: auto; margin-right: auto; }
/* scalloped "icing" top edge, pure CSS radial-gradient (a craft touch, not clip-art) */
.scallop {
  position: absolute; top: 0; left: 0; right: 0; height: 22px;
  background: radial-gradient(circle at 11px -3px, var(--bg) 12px, transparent 13px) repeat-x;
  background-size: 22px 22px;
}
.offer h2 { text-align: center; margin-bottom: 1.75rem; }
.offer-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
.offer-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.offer-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -18px rgba(92, 58, 110, 0.5); }
.offer-card h3 { color: var(--accent); }
.offer-card p { color: var(--muted); max-width: none; margin: 0; }
.offer-note { text-align: center; color: var(--muted); font-size: 0.95rem; margin: 1.75rem auto 0; }

/* Recensioni — rating badge + quote cards */
.reviews { text-align: center; }
.rating {
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.15rem;
  margin-bottom: 2rem;
}
.rating-score { font-family: var(--font-display); font-size: 3.4rem; color: var(--ink); line-height: 1; }
.rating-stars { color: var(--accent); font-size: 1.4rem; letter-spacing: 0.15em; }
.rating-meta { color: var(--muted); font-size: 0.95rem; }
.quotes { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-card);
  padding: 1.4rem 1.5rem; text-align: left;
}
.quote p { font-size: 1.1rem; color: var(--ink); margin: 0 0 0.6rem; max-width: none; }
.quote cite { color: var(--muted); font-style: normal; font-size: 0.88rem; font-weight: 700; letter-spacing: 0.02em; }

/* Orari & dove */
.find .info-grid { display: grid; gap: 2.25rem; margin-top: 0.5rem; }
.hours { border-collapse: collapse; width: 100%; max-width: 30rem; }
.hours td { padding: 0.5rem 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.hours td:first-child { color: var(--ink); font-weight: 700; }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.contact-lines { margin-bottom: 1.4rem; line-height: 1.9; }
.contact-lines a { font-weight: 700; }

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

/* ==========================================================================
   Desktop / larger screens
   ========================================================================== */
@media (min-width: 720px) {
  .hero { min-height: min(78vh, 660px); padding: 3rem 2.5rem 3rem; }
  .hero-inner { max-width: 40ch; }
  .section { padding: 5rem 2rem; }
  .offer { padding-top: 5.5rem; }
  .offer-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .quotes { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .find .info-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

/* ==========================================================================
   Reduced motion — collapse all movement to static
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-inner { opacity: 1; transform: none; }
}
