/* ==========================================================================
   FORNO PASTICCERIA PALLOTTI — Borgo San Pietro, Bologna
   Direction: soft-premium caffetteria. Light neutral canvas, one slate-blue
   accent from the "FP" monogram, soft diffused shadows, generous whitespace.
   Schibsted Grotesk. Mobile-first (390px).
   ========================================================================== */

:root {
  --bg: #f2f2f0;            /* soft neutral off-white (not warm-cream) */
  --surface: #ffffff;
  --text: #23282e;          /* cool near-black */
  --muted: #6a7078;
  --accent: #45596b;        /* slate blue-grey — the FP monogram colour */
  --accent-hover: #34495c;
  --accent-ink: #ffffff;
  --line: #e4e3df;
  --shadow: 0 14px 38px rgba(40, 52, 66, 0.10);
  --shadow-sm: 0 4px 16px rgba(40, 52, 66, 0.06);
  --font: "Schibsted Grotesk", -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --measure: 64ch;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  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); line-height: 1.12; letter-spacing: -0.02em; }
h1 { font-weight: 700; }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); font-weight: 700; margin-bottom: 0.9rem; }
h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.6rem; color: var(--accent); letter-spacing: -0.01em; }

/* -- top bar --------------------------------------------------------------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.85rem 1.25rem;
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.brand-mark {
  display: inline-grid; place-items: center; width: 2rem; height: 2rem;
  background: var(--accent); color: #fff; border-radius: 50%;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em;
}
.topbar-cta {
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  color: var(--accent-ink); background: var(--accent);
  padding: 0.5rem 1.15rem; border-radius: 999px;
  transition: background 0.25s ease;
}
.topbar-cta:hover { background: var(--accent-hover); }

/* -- buttons --------------------------------------------------------------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: 0.75rem 1.6rem; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-outline { background: transparent; color: var(--accent); border-color: #c4ccd4; }
.btn-outline:hover { border-color: var(--accent); background: rgba(69, 89, 107, 0.06); }

/* -- hero (asymmetric split) ----------------------------------------------- */
.hero {
  display: grid; gap: 2rem;
  padding: 3rem 1.25rem 3.5rem;
  max-width: 1180px; margin: 0 auto;
}
.hero-text { align-self: center; }
.hero-kicker { color: var(--accent); font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.13em; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.3rem, 8vw, 3.6rem); margin-bottom: 1rem; }
.hero-sub { color: var(--muted); font-size: 1.15rem; max-width: 40ch; margin-bottom: 1.9rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

/* -- intro ----------------------------------------------------------------- */
.intro { max-width: 46ch; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; text-align: center; }
.intro p { font-size: 1.2rem; color: var(--text); }

/* -- sections -------------------------------------------------------------- */
.section { padding: 3.5rem 1.25rem; max-width: var(--measure); margin: 0 auto; }
.section--wide { max-width: 1100px; }

/* -- menu cards (soft-premium, double-bezel) ------------------------------- */
.menu-grid { display: grid; gap: 1.25rem; margin-top: 0.5rem; }
.menu-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.4rem; box-shadow: var(--shadow-sm);
  position: relative; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.menu-card::before {
  content: ""; position: absolute; inset: 6px; border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 5px); pointer-events: none; opacity: 0.7;
}
.menu-card ul { list-style: none; padding: 0; margin: 0; position: relative; }
.menu-card li { padding: 0.4rem 0; border-bottom: 1px solid var(--line); color: var(--text); }
.menu-card li:last-child { border-bottom: none; }
.menu-note { margin-top: 1.75rem; color: var(--muted); font-size: 0.92rem; text-align: center; }

/* -- feature: torte -------------------------------------------------------- */
.feature { background: var(--surface); border-block: 1px solid var(--line); padding: 3.5rem 1.25rem; }
.feature { display: grid; gap: 2rem; }
.feature > * { max-width: 1000px; }
.feature-photo { margin: 0; justify-self: center; width: 100%; max-width: 460px; }
.feature-photo img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: center; border-radius: var(--radius); box-shadow: var(--shadow); }
.feature-text { align-self: center; justify-self: center; max-width: 46ch; }
.feature-text p { color: var(--muted); margin-bottom: 1.5rem; }

/* -- gallery --------------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: 1fr; gap: 0.9rem; margin-top: 0.5rem; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* -- orari & contatti ------------------------------------------------------ */
.info-grid { display: grid; gap: 2.25rem; margin-top: 0.5rem; }
.hours { border-collapse: collapse; width: 100%; }
.hours td { padding: 0.55rem 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.hours td:first-child { color: var(--text); font-weight: 600; padding-right: 1.5rem; }
.contact-lines { margin-bottom: 1.5rem; line-height: 1.9; }

/* -- footer ---------------------------------------------------------------- */
.footer { padding: 3rem 1.25rem 3.5rem; 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: 860px) {
  .hero { grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; padding-block: 5rem 5.5rem; }
  .hero-photo img { aspect-ratio: 5 / 6; height: 100%; }
  .menu-grid { grid-template-columns: repeat(3, 1fr); }
  .feature { grid-template-columns: 0.9fr 1.1fr; align-items: center; max-width: 1080px; margin: 0 auto; gap: 3.5rem; }
  .feature-photo { justify-self: start; }
  .feature-photo img { aspect-ratio: 4 / 5; max-height: 520px; }
  .feature-text { justify-self: start; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .info-grid { grid-template-columns: 1fr 1fr; }
}

/* -- motion (MOTION 3: subtle, honors reduced-motion) ---------------------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-text > *, .hero-photo { opacity: 0; transform: translateY(14px); animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
  .hero-kicker { animation-delay: 0.05s; }
  .hero h1 { animation-delay: 0.13s; }
  .hero-sub { animation-delay: 0.22s; }
  .hero-actions { animation-delay: 0.3s; }
  .hero-photo { animation-delay: 0.2s; }
  .menu-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
  .gallery img { transition: transform 0.4s ease; }
  .gallery figure:hover img { transform: scale(1.03); }
}
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
