/* ==========================================================================
   SWEET MOMENT — bar-pasticceria, Bologna
   Direction: soft-editorial / pasticceria. Porcelain-rose canvas, one
   strawberry-rose accent (from their pink choux + the golden "rosa" mark),
   delicate high-contrast serif display + humanist sans body. Flat surfaces,
   hairline rules, no heavy shadows. Light theme, mobile-first (390px).
   Shape system: surfaces/images 12px radius, interactive = pill (999px).
   Dials: VARIANCE 6 / MOTION 3 / DENSITY 3.
   ========================================================================== */

:root {
  --bg: #fbf6f5;            /* porcelain with a rose cast */
  --surface: #ffffff;
  --text: #33212b;          /* dark plum (chocolate plaque + magenta tulle) */
  --muted: #7a5d68;         /* mauve-grey secondary */
  --accent: #c0355f;        /* strawberry-rose */
  --accent-strong: #98254a; /* deeper rose for small emphasis */
  --accent-ink: #ffffff;    /* text on accent */
  --line: #eadadd;          /* rose-tinted hairline */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", -apple-system, "Segoe UI", sans-serif;
  --radius: 12px;
  --measure: 64ch;
}

* { 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.65;
  -webkit-font-smoothing: antialiased;
}

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

/* Mobile-image iron rule: no full-width content photo may tower at phone width.
   Every content <img> gets a landscape-or-square crop; taller crops (portrait
   split columns) are restored only inside min-width queries below. */
figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.005em; font-weight: 600; }
h2 { font-size: clamp(2rem, 6vw, 2.9rem); margin-bottom: 0.6rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.4rem; }

p { max-width: var(--measure); }

/* -- 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) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.01em; }
.topbar-cta {
  text-decoration: none; font-weight: 600; font-size: 0.9rem;
  color: var(--accent-ink); background: var(--accent);
  padding: 0.45rem 1.05rem; border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.topbar-cta:active { transform: translateY(1px); }

/* -- hero (asymmetric split) ----------------------------------------------- */
.hero {
  display: grid; gap: 2rem;
  padding: clamp(2.5rem, 7vh, 4rem) 1.25rem 3rem;
  max-width: 1180px; margin: 0 auto;
}
.hero-copy { align-self: center; }
.hero-kicker {
  color: var(--accent-strong); font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 0.9rem;
}
.hero h1 { font-size: clamp(3.2rem, 15vw, 5.5rem); line-height: 0.98; margin-bottom: 1rem; }
.hero-sub { color: var(--muted); font-size: 1.15rem; max-width: 34ch; margin-bottom: 1.75rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-photo {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
}
.hero-photo img { aspect-ratio: 4 / 3; }

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

/* -- sections -------------------------------------------------------------- */
.section { padding: 3.25rem 1.25rem; max-width: var(--measure); margin: 0 auto; }
.gallery-section { max-width: 1180px; }
.menu { max-width: 1180px; }
.intro p { font-size: 1.2rem; color: var(--text); }

/* -- menu: signature feature + grouped lists ------------------------------- */
.signature {
  display: grid; gap: 1.25rem;
  margin: 1.75rem 0 2.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.signature-photo img { aspect-ratio: 4 / 3; }
.signature-copy { padding: 0 1.5rem 1.75rem; }
.signature-copy h3 { color: var(--accent-strong); }
.signature-copy p { color: var(--text); }

.menu-groups {
  display: grid; gap: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}
.menu-group h3 { color: var(--text); margin-bottom: 0.75rem; }
.menu-group ul { list-style: none; padding: 0; }
.menu-group li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.menu-group li:last-child { border-bottom: 0; }
.menu-note { margin-top: 1.75rem; color: var(--muted); font-size: 0.9rem; }

/* -- gallery --------------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: 1fr; gap: 0.75rem; margin-top: 1.5rem; }
.gallery figure { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gallery img { aspect-ratio: 4 / 3; transition: transform 0.4s ease; }
.gallery figure:hover img { transform: scale(1.03); }

/* -- hours & contact ------------------------------------------------------- */
.info-grid { display: grid; gap: 2.25rem; margin-top: 1.5rem; }
.hours { border-collapse: collapse; }
.hours td { padding: 0.4rem 1.5rem 0.4rem 0; color: var(--muted); }
.hours td:first-child { color: var(--text); font-weight: 600; }
.contact-lines { margin-bottom: 1.5rem; }

/* -- footer ---------------------------------------------------------------- */
.footer {
  padding: 2.75rem 1.25rem 3.25rem; text-align: center;
  color: var(--muted); font-size: 0.9rem;
  border-top: 1px solid var(--line);
}
.footer .insegna { font-family: var(--font-display); font-size: 1.05rem; margin-top: 0.35rem; color: var(--accent-strong); }
.demo-note { margin-top: 0.75rem; opacity: 0.7; }

/* -- motion (MOTION 3): gentle load-in, disabled under reduced-motion ------ */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .hero-photo { animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ==========================================================================
   DESKTOP / TABLET
   ========================================================================== */
@media (min-width: 720px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .menu-groups { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .info-grid { grid-template-columns: 1fr 1fr; }

  /* signature feature becomes a 2-col split; portrait photo allowed here */
  .signature { grid-template-columns: 0.85fr 1fr; align-items: stretch; gap: 0; }
  .signature-photo { height: 100%; }
  .signature-photo img { aspect-ratio: auto; height: 100%; }
  .signature-copy { padding: 2.25rem 2.25rem; align-self: center; }
}

@media (min-width: 860px) {
  .hero {
    grid-template-columns: 1fr 0.82fr;
    gap: 3.5rem;
    padding-top: clamp(3rem, 8vh, 5rem);
    align-items: center;
  }
  /* portrait hero photo restored on desktop (mobile default stays landscape) */
  .hero-photo img { aspect-ratio: 3 / 4; }
}
