/* ============================================================
   GELATERIA BIANCANEVE — Universe
   Palette estratta dal brand reale: logo (rosa/verde), divisa
   rossa da hostess, murale fiabesco in negozio.
   ============================================================ */

:root {
  --red: #b3101f;
  --red-deep: #7d0b16;
  --pink: #f0507a;
  --pink-soft: #fbd7e0;
  --sage: #8fae5d;
  --sage-deep: #5f7d3a;
  --cream: #fbf3e6;
  --cream-deep: #f3e6d2;
  --paper: #fffaf2;
  --ink: #2a1e18;
  --ink-soft: rgba(42, 30, 24, 0.62);
  --ink-faint: rgba(42, 30, 24, 0.38);
  --white: #ffffff;
  --line: rgba(42, 30, 24, 0.12);
  --shadow: 0 30px 60px -30px rgba(122, 20, 30, 0.35);
  --radius: 26px;
  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Quicksand", "Trebuchet MS", sans-serif;
  --font-script: "Caveat", cursive;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-script);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  color: var(--red);
  letter-spacing: 0.5px;
  margin: 0 0 6px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--sage);
  display: inline-block;
  border-radius: 2px;
}
.eyebrow-light { color: var(--pink-soft); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 0.5em;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.section {
  padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 64px);
  max-width: 1240px;
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease, background 0.3s ease;
  min-height: 52px;
}
.btn-red { background: var(--red); color: var(--white); box-shadow: 0 16px 30px -14px rgba(179,16,31,0.6); }
.btn-red:hover { transform: translateY(-3px); box-shadow: 0 20px 36px -14px rgba(179,16,31,0.7); }
.btn-outline { border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.14); transform: translateY(-3px); }
.btn-white { background: var(--white); color: var(--red); }
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 18px 32px -16px rgba(0,0,0,0.35); }
.btn-outline-dark { border-color: var(--ink); color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: var(--white); transform: translateY(-3px); }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 14px clamp(16px, 4vw, 40px);
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
.nav::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(251, 243, 230, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}
.nav.scrolled::before { opacity: 1; box-shadow: 0 8px 24px -18px rgba(0,0,0,0.3); }
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--white);
  box-shadow: 0 6px 16px -6px rgba(0,0,0,0.3);
}
.brand span {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--red);
  line-height: 1;
}
.nav-links {
  display: flex;
  gap: clamp(14px, 2vw, 28px);
  font-weight: 700;
  font-size: 0.95rem;
}
.nav-links a { position: relative; padding: 6px 2px; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--red); transition: right 0.3s ease;
}
.nav-links a:hover::after, .nav-links a[aria-current]::after { right: 0; }
.nav-cta {
  background: var(--red); color: var(--white);
  padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: 0.9rem;
  white-space: nowrap;
  box-shadow: 0 10px 22px -12px rgba(179,16,31,0.55);
}
.nav-burger { display: none; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(42,20,16,0.35) 0%, rgba(30,14,12,0.55) 55%, rgba(20,8,7,0.88) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  padding: 0 clamp(20px, 6vw, 64px) clamp(56px, 8vw, 96px);
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(6px);
  padding: 8px 16px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 6rem);
  color: var(--white);
  line-height: 0.98;
  margin-bottom: 0.2em;
}
.hero h1 em {
  font-style: normal;
  font-family: var(--font-script);
  color: var(--pink);
  font-size: 1.15em;
  display: block;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  max-width: 46ch;
  color: rgba(255,255,255,0.88);
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; right: clamp(20px, 5vw, 56px); bottom: 32px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.75);
}
.hero-scroll span {
  width: 1px; height: 46px; background: rgba(255,255,255,0.5);
  position: relative; overflow: hidden;
}
.hero-scroll span::after {
  content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%;
  background: var(--white); animation: scrollDrip 2.2s ease-in-out infinite;
}
@keyframes scrollDrip { 0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; } }

/* ---------- STORIA ---------- */
.storia {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.storia-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/5;
}
.storia-media img { width: 100%; height: 100%; object-fit: cover; }
.storia-media::before {
  content: "";
  position: absolute; inset: 0;
  border: 10px solid var(--paper);
  border-radius: var(--radius);
  pointer-events: none;
}
.storia-text p { font-size: 1.08rem; color: var(--ink-soft); max-width: 52ch; }
.storia-quote {
  font-family: var(--font-script);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  color: var(--red);
  margin: 20px 0 24px;
  line-height: 1.35;
}

/* ---------- STATS ---------- */
.stats {
  background: var(--red);
  color: var(--white);
  padding: clamp(44px, 6vw, 64px) clamp(20px, 5vw, 64px);
  margin: 0;
}
.stats-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  display: block;
  color: var(--white);
}
.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.78);
  font-weight: 700;
}

/* ---------- SAPORI / GALLERY ---------- */
.sapori-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.sapori-head p { color: var(--ink-soft); }

.gallery-feature {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px;
  gap: 14px;
  margin-bottom: 20px;
}
.gallery-feature .g-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-feature .g-item:nth-child(4) { grid-column: span 2; }
.g-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  cursor: default;
}
.g-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
}
.g-item:hover img { transform: scale(1.08); }

.ig-strip-wrap { margin-top: 44px; }
.ig-strip-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 12px;
}
.ig-strip-head h3 { margin: 0; font-size: 1.4rem; }
.ig-link {
  font-weight: 700; color: var(--red); display: inline-flex; align-items: center; gap: 6px;
}
.ig-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.ig-strip::-webkit-scrollbar { height: 6px; }
.ig-strip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
.ig-card {
  flex: 0 0 auto;
  width: 210px;
  scroll-snap-align: start;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 34px -22px rgba(42,30,24,0.35);
}
.ig-card-media { aspect-ratio: 4/5; overflow: hidden; position: relative; }
.ig-card-media img { width: 100%; height: 100%; object-fit: cover; }
.ig-card-badge {
  position: absolute; top: 10px; right: 10px;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
}
.ig-card p {
  margin: 0; padding: 12px 14px;
  font-size: 0.85rem; color: var(--ink-soft); font-weight: 600;
}

/* ---------- RECENSIONI ---------- */
.recensioni {
  background: var(--sage);
  border-radius: var(--radius);
  color: var(--white);
  padding: clamp(40px, 6vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.recensioni-score { display: flex; align-items: baseline; gap: 14px; }
.recensioni-score .num { font-family: var(--font-display); font-size: clamp(3rem, 6vw, 4.4rem); }
.recensioni-stars { color: #ffe27a; font-size: 1.4rem; letter-spacing: 2px; }
.recensioni-text { max-width: 40ch; font-weight: 600; }
.recensioni-text small { display: block; font-weight: 500; opacity: 0.85; margin-top: 6px; }

/* ---------- DOVE SIAMO ---------- */
.dove {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}
.dove-card {
  background: var(--white);
  border-radius: 22px;
  padding: 28px 30px;
  box-shadow: 0 20px 40px -28px rgba(42,30,24,0.35);
  margin-bottom: 18px;
}
.dove-card h3 { margin-bottom: 8px; font-size: 1.2rem; }
.dove-card p { margin: 0; color: var(--ink-soft); }
.dove-flag { color: var(--red); font-weight: 700; }
.dove-towns {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px;
}
.dove-towns span {
  background: var(--pink-soft); color: var(--red-deep);
  padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 0.88rem;
}
.dove-map-note {
  font-size: 0.85rem; color: var(--ink-faint); margin-top: 10px;
}

/* ---------- CONTATTI ---------- */
.contatti {
  background: linear-gradient(160deg, var(--red) 0%, var(--red-deep) 100%);
  border-radius: var(--radius);
  padding: clamp(48px, 8vw, 84px);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contatti::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.12), transparent 55%);
}
.contatti-card { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.contatti h2 { color: var(--white); }
.lead-light { color: rgba(255,255,255,0.85); font-size: 1.08rem; margin-bottom: 30px; }
.contatti-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- FOOTER ---------- */
.footer {
  padding: 34px clamp(20px, 5vw, 64px) 40px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 0.85rem;
  color: var(--ink-faint);
}
.footer-badge {
  font-weight: 700; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 6px;
}
.footer-badge strong { color: var(--red); }

/* ---------- REVEAL ANIMATION ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s cubic-bezier(.2,.8,.2,1), transform 0.9s cubic-bezier(.2,.8,.2,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- MENU PAGE ---------- */
.menu-header {
  padding: clamp(140px, 18vw, 190px) clamp(20px, 5vw, 64px) 40px;
  text-align: center;
  background: linear-gradient(180deg, var(--red) 0%, var(--red-deep) 120%);
  color: var(--white);
}
.menu-header h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.4rem); }
.menu-header-sub { max-width: 52ch; margin: 0 auto; color: rgba(255,255,255,0.85); }

.menu-category { margin-bottom: 44px; }
.menu-category__head { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; }
.menu-category__head h2 { font-size: 1.6rem; white-space: nowrap; }
.menu-category__line { flex: 1; height: 2px; background: var(--line); }
.menu-category__note { color: var(--ink-faint); font-size: 0.92rem; margin-bottom: 18px; max-width: 70ch; }

.menu-dish-list { display: grid; gap: 14px; }
.menu-dish {
  display: flex; align-items: center; gap: 16px;
  background: var(--white);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 14px 28px -24px rgba(42,30,24,0.4);
}
.menu-dish__info { flex: 1; }
.menu-dish__info h4 { margin: 0 0 2px; font-size: 1.05rem; }
.menu-dish__info p { margin: 0; font-size: 0.88rem; color: var(--ink-soft); }
.menu-dish__allergens { color: var(--sage-deep) !important; font-weight: 700; font-size: 0.78rem !important; margin-top: 4px !important; }
.menu-dish__price { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--red); white-space: nowrap; }
.menu-dish__price--tbd { font-family: var(--font-body); font-size: 0.85rem; color: var(--ink-faint); font-weight: 700; }

.menu-fineprint { text-align: center; color: var(--ink-faint); font-size: 0.85rem; max-width: 70ch; margin: 40px auto 0; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .storia { grid-template-columns: 1fr; }
  .storia-media { aspect-ratio: 16/11; }
  .dove { grid-template-columns: 1fr; }
  .gallery-feature { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery-feature .g-item:nth-child(1) { grid-column: span 2; }
  .gallery-feature .g-item:nth-child(4) { grid-column: span 1; }
  .recensioni { flex-direction: column; text-align: center; justify-content: center; }
}

@media (max-width: 600px) {
  .hero { align-items: flex-end; }
  .hero-inner { padding-bottom: 44px; }
  .hero-scroll { display: none; }
  .nav-cta { padding: 9px 14px; font-size: 0.82rem; }
  .brand span { font-size: 1.3rem; }
  .section { padding: 56px 18px; }
  .contatti-actions .btn, .hero-actions .btn { width: 100%; }
  .hero-actions, .contatti-actions { flex-direction: column; }
}
