/* ==========================================================================
   Dolce e Salato di Samuele Elmi — forno notturno & pasticceria, Bologna
   Direction: "notte golosa" — deep night-blue hero zone (the night hook)
   flowing into a warm cream body (the abundant vetrina), with one bright
   Tiffany-turquoise pop accent stolen from their real gift boxes.
   Type: Kaisei Decol (warm display serif) + Albert Sans (humanist body).
   Mobile-first (390px), CSS-only motion.
   ========================================================================== */

:root {
  /* night zone (hero + hook + footer) */
  --night: #0f1c30;
  --night-deep: #0a1523;
  --night-surface: #16273e;

  /* cream body */
  --cream: #f7efe0;
  --card: #fffaf0;
  --band: #f0e5d1;          /* subtle warmer band / text-card fill */

  /* ink & muted */
  --ink: #2a1d12;           /* text on cream, 14.3:1 */
  --muted: #6f5f49;         /* secondary on cream, 5.4:1 */
  --cream-ink: #f4ecdb;     /* text on night, 14.5:1 */
  --muted-night: #9fb0c4;   /* secondary on night, 7.7:1 */

  /* the one accent: turquoise (their gift boxes) */
  --turq: #1fb6ad;          /* solid fills / buttons */
  --turq-bright: #43cfc6;   /* pop on the night zone, 8.9:1 */
  --turq-deep: #0a6b64;     /* links/prices on cream, 5.6:1 */

  --line-cream: rgba(42, 29, 18, 0.14);
  --line-night: rgba(244, 236, 219, 0.16);

  --font-display: "Kaisei Decol", Georgia, "Times New Roman", serif;
  --font-body: "Albert Sans", -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --measure: 66ch;
  --maxw: 1120px;
}

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

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.005em;
}
h2 { font-size: clamp(1.75rem, 5.4vw, 2.6rem); }
h3 { font-size: 1.2rem; }

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

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  text-decoration: none; font-weight: 600; font-size: 0.98rem;
  padding: 0.7rem 1.3rem; border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn-primary { background: var(--turq); color: var(--night-deep); }
.btn-primary:hover { background: var(--turq-bright); }
.btn-ghost { color: var(--cream-ink); border-color: rgba(244, 236, 219, 0.4); }
.btn-ghost:hover { border-color: var(--turq-bright); color: var(--turq-bright); }
.btn-outline { color: var(--ink); border-color: var(--line-cream); background: transparent; }
.btn-outline:hover { border-color: var(--turq-deep); color: var(--turq-deep); }
.btn:active { transform: translateY(1px); }

/* ------------------------------------------------------------------- topbar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--night) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-night);
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 62px;
}
.brand {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.28rem; color: var(--cream-ink);
  letter-spacing: -0.01em;
}
.topbar-cta {
  text-decoration: none; font-weight: 600; font-size: 0.92rem;
  color: var(--night-deep); background: var(--turq);
  padding: 0.45rem 1rem; border-radius: var(--radius-sm);
  transition: background-color 0.18s ease;
}
.topbar-cta:hover { background: var(--turq-bright); }

/* --------------------------------------------------------------- hero (dark) */
.hero {
  position: relative;
  min-height: 88svh;
  display: flex; align-items: flex-end;
  background-color: var(--night);
  background-image:
    linear-gradient(180deg, rgba(10,21,35,0.55) 0%, rgba(10,21,35,0.32) 42%, rgba(10,21,35,0.93) 100%),
    url("images/hero.jpg");
  background-size: cover;
  background-position: 62% 42%;
  overflow: hidden;
}
.hero-inner { padding-block: 2.5rem 3rem; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--turq-bright);
  margin-bottom: 0.9rem;
}
.hero h1 {
  color: #fff;
  font-size: clamp(3rem, 15vw, 6rem);
  line-height: 0.98;
  margin-bottom: 0.9rem;
  text-shadow: 0 2px 30px rgba(0,0,0,0.4);
}
.hero-sub {
  color: var(--cream-ink);
  font-size: clamp(1.05rem, 3.4vw, 1.3rem);
  max-width: 34ch;
  margin-bottom: 1.6rem;
  text-shadow: 0 1px 12px rgba(0,0,0,0.55);
}
.hero-sub strong { color: var(--turq-bright); font-weight: 600; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * { opacity: 0; animation: rise 0.7s cubic-bezier(0.16,1,0.3,1) forwards; }
  .hero-inner > *:nth-child(1) { animation-delay: 0.05s; }
  .hero-inner > *:nth-child(2) { animation-delay: 0.14s; }
  .hero-inner > *:nth-child(3) { animation-delay: 0.23s; }
  .hero-inner > *:nth-child(4) { animation-delay: 0.32s; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}

/* ----------------------------------------------------- night hook (dark band) */
.nightband {
  background: var(--night-deep);
  color: var(--cream-ink);
  padding-block: clamp(3rem, 8vw, 4.75rem);
}
.nightband .wrap { display: grid; gap: 1.75rem; }
.clock {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.6rem, 12vw, 4.4rem);
  line-height: 1; color: #fff;
  letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
}
.clock .arrow { color: var(--turq-bright); font-weight: 400; }
.clock .allday {
  display: block; width: 100%;
  font-family: var(--font-body); font-weight: 500;
  font-size: 0.82rem; color: var(--muted-night);
  text-transform: uppercase; letter-spacing: 0.16em;
  margin-top: 0.6rem;
}
.nightband h2 { color: #fff; max-width: 18ch; }
.nightband p { color: var(--muted-night); max-width: 52ch; font-size: 1.08rem; }
.nightband p b { color: var(--cream-ink); font-weight: 600; }

@media (min-width: 780px) {
  .nightband .wrap {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: center; gap: 3rem;
  }
}

/* ------------------------------------------------------------ sections (cream) */
.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section-head { max-width: var(--measure); margin-bottom: 2rem; }
.section-head p { color: var(--muted); margin-top: 0.75rem; }

/* -------------------------------------------------------------- vetrina grid */
.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.cat {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line-cream);
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cat:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(42,29,18,0.12); }
.cat-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.cat-body { padding: 1.1rem 1.2rem 1.35rem; }
.cat h3 { color: var(--ink); margin-bottom: 0.35rem; }
.cat p { color: var(--muted); font-size: 0.98rem; }

/* text-only category cards: warm band fill + turquoise rule (bento diversity) */
.cat--text { background: var(--band); }
.cat--text .cat-body {
  border-top: 3px solid var(--turq);
  padding-top: 1.2rem;
}
.cat--text .tag {
  display: block;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--turq-deep); margin-bottom: 0.6rem;
}

.vetrina-note {
  margin-top: 1.5rem; color: var(--muted); font-size: 0.94rem;
  max-width: var(--measure);
}

/* -------------------------------------------------------------- box feature */
.feature { background: var(--band); }
.feature .wrap { display: grid; gap: 1.75rem; align-items: center; }
.feature-media {
  width: 100%; height: auto;
  aspect-ratio: 4 / 3; object-fit: cover; object-position: center top;
  border-radius: var(--radius);
}
.feature-text .kicker {
  color: var(--turq-deep); font-weight: 700; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 0.7rem;
}
.feature-text h2 { margin-bottom: 0.9rem; }
.feature-text p { color: var(--muted); max-width: 46ch; }
@media (min-width: 820px) {
  .feature .wrap { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .feature-media { aspect-ratio: 3 / 4; max-height: 560px; }
}

/* ------------------------------------------------------------- people/reviews */
.people .wrap { display: grid; gap: 2.5rem; }
.people-text p { color: var(--muted); max-width: 48ch; margin-top: 0.9rem; }
.rating { display: flex; align-items: baseline; gap: 0.6rem; margin-bottom: 1.4rem; }
.rating .stars { color: var(--turq-deep); font-size: 1.15rem; letter-spacing: 0.08em; }
.rating .score { font-weight: 700; color: var(--ink); }
.rating .count { color: var(--muted); font-size: 0.92rem; }
.quotes { display: grid; gap: 1rem; }
.quote {
  background: var(--card); border: 1px solid var(--line-cream);
  border-left: 3px solid var(--turq); border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
}
.quote p { font-family: var(--font-display); font-size: 1.12rem; color: var(--ink); line-height: 1.32; }
.quote cite { display: block; margin-top: 0.6rem; font-style: normal; font-size: 0.86rem; color: var(--muted); }
@media (min-width: 820px) {
  .people .wrap { grid-template-columns: 0.9fr 1.1fr; gap: 3.5rem; align-items: start; }
}

/* -------------------------------------------------------------- dove / orari */
.dove { background: var(--band); }
.info-grid { display: grid; gap: 2rem; }
@media (min-width: 720px) { .info-grid { grid-template-columns: 1fr 1fr; } }
.info-grid h3 {
  color: var(--turq-deep); font-family: var(--font-body);
  font-weight: 700; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 0.85rem;
}
.hours-line { font-family: var(--font-display); font-size: 1.55rem; color: var(--ink); line-height: 1.2; }
.hours-line .arrow { color: var(--turq-deep); }
.hours-sub { color: var(--muted); font-size: 0.95rem; margin-top: 0.6rem; max-width: 42ch; }
.contact-lines { margin-bottom: 1.25rem; line-height: 1.95; }
.contact-lines a { font-weight: 600; }
.contact-lines .addr { color: var(--ink); }

/* ------------------------------------------------------------------- footer */
.footer {
  background: var(--night-deep); color: var(--muted-night);
  padding-block: 2.75rem 3rem; font-size: 0.92rem;
}
.footer .brand { display: block; margin-bottom: 0.6rem; }
.footer a { color: var(--turq-bright); }
.footer p { margin-bottom: 0.3rem; }
.footer .demo-note { margin-top: 1rem; opacity: 0.8; font-size: 0.85rem; }
