/* ============================================================
   LATTENEVE — Gelateria tradizionale, Milano Navigli
   Palette: bianco latte + azzurro dei cartelli
   ============================================================ */

:root {
  --latte:    #FAF7F2;   /* fondo principale */
  --bianco:   #FFFFFF;
  --azzurrino:#EAF2F9;   /* sezioni alternate */
  --blu:      #1D6FB8;   /* il blu dei cartelli LatteNeve */
  --blu-scuro:#14476F;
  --notte:    #1A2B38;   /* testo */
  --grigio:   #53656F;   /* testo secondario */

  --pistacchio:#9FB37A;
  --nocciola: #B98A5E;
  --cioccolato:#5B3A29;
  --limone:   #E3C95F;
  --mandorla: #E8D9BD;
  --cocco:    #EFEFEA;

  --f-body: "Manrope", "Segoe UI", Arial, sans-serif;

  --maxw: 1120px;
  --pad: clamp(20px, 5vw, 64px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-padding-top: 70px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  background: var(--latte);
  color: var(--notte);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--blu); color: #fff; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--blu-scuro);
  outline-offset: 3px;
  border-radius: 2px;
}
.footer :focus-visible { outline-color: var(--latte); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -60px; left: 16px;
  z-index: 200;
  background: var(--notte);
  color: var(--latte);
  padding: 10px 18px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ============ INTRO "LA NEVICATA" ============ */

.intro {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--blu);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
}

body.intro-lock { overflow: hidden; }

.intro--fonde {
  opacity: 0;
  transform: translateY(38px);
  transition: transform 0.75s cubic-bezier(0.5, 0, 0.6, 1), opacity 0.65s ease 0.05s;
  pointer-events: none;
}

.intro-logo {
  font-size: clamp(52px, 11vw, 120px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}
.intro-logo b {
  font-weight: 800;
  display: inline-block;
  opacity: 0;
  transform: scale(0.92);
  animation: latte-in 0.55s cubic-bezier(0.3, 1.1, 0.4, 1) 0.25s forwards;
}
@keyframes latte-in {
  to { opacity: 1; transform: scale(1); }
}

.il-neve i {
  font-style: normal;
  display: inline-block;
  opacity: 0;
  transform: translateY(-52px) rotate(-9deg);
  animation: neve-cade 0.65s cubic-bezier(0.25, 1.2, 0.4, 1) forwards;
}
.il-neve i:nth-child(1) { animation-delay: 0.70s; }
.il-neve i:nth-child(2) { animation-delay: 0.86s; }
.il-neve i:nth-child(3) { animation-delay: 1.02s; }
.il-neve i:nth-child(4) { animation-delay: 1.18s; }
@keyframes neve-cade {
  60%  { opacity: 1; transform: translateY(4px) rotate(2deg); }
  100% { opacity: 1; transform: translateY(0) rotate(0); }
}

.intro-riga {
  font-size: clamp(11px, 1.6vw, 13.5px);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  opacity: 0;
  animation: riga-in 0.6s ease 1.55s forwards;
}
@keyframes riga-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.intro-parola {
  position: absolute;
  font-size: clamp(13px, 1.9vw, 17px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  opacity: 0;
  animation: parola-in 0.7s ease forwards;
}
.pw1 { top: 16%; left: 10%;  animation-delay: 1.30s; }
.pw2 { top: 24%; right: 12%; animation-delay: 1.42s; }
.pw3 { bottom: 26%; left: 13%; animation-delay: 1.54s; }
.pw4 { bottom: 17%; right: 15%; animation-delay: 1.66s; }
.pw5 { top: 44%; left: 5%;  animation-delay: 1.78s; }
.pw6 { top: 58%; right: 6%; animation-delay: 1.90s; }
@keyframes parola-in {
  to { opacity: 1; }
}

/* ingresso hero orchestrato con la fine dell'intro */
.has-intro .hero-inner {
  opacity: 0;
  transform: translateY(16px);
}
.intro-done .hero-inner {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease 0.25s, transform 0.7s ease 0.25s;
}

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  .has-intro .hero-inner { opacity: 1; transform: none; }
}

@media (max-width: 700px) {
  .pw5, .pw6 { display: none; }
}

/* ============ TOPBAR ============ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px var(--pad);
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26, 43, 56, 0.1);
}

.wordmark {
  font-size: 23px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--blu);
  white-space: nowrap;
}
.wordmark b { font-weight: 800; }

.nav { margin-right: auto; }
.nav-toggle { display: none; }

.nav-menu {
  display: flex;
  gap: 26px;
  list-style: none;
}
.nav-menu a {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--grigio);
  transition: color 0.15s;
}
.nav-menu a:hover { color: var(--notte); }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  background: none;
  border: none;
  color: var(--grigio);
  font: inherit;
  cursor: pointer;
  padding: 6px 8px;
}
.lang-btn.is-active { color: var(--blu); }
.lang-btn:hover { color: var(--notte); }
.lang-sep { color: rgba(26, 43, 56, 0.25); }

/* ============ BOTTONI ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 15px 28px;
  font-family: var(--f-body);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.15s, background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--blu);
  color: #FFFFFF;
}
.btn-primary:hover { background: var(--blu-scuro); }

.btn-ghost {
  border: 1.5px solid rgba(26, 43, 56, 0.3);
  color: var(--notte);
}
.btn-ghost:hover { border-color: var(--notte); }
.btn-on-blu { border-color: rgba(26, 43, 56, 0.3); }

.btn-small { padding: 9px 18px; font-size: 14px; }

/* ============ HERO ============ */

.hero {
  position: relative;
  min-height: calc(100vh - 52px);
  min-height: calc(100svh - 52px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px var(--pad) 0;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  padding-bottom: 170px;
}

.eyebrow {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blu);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(64px, 12vw, 164px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--blu);
}
.hero-title b { font-weight: 800; }

.hero-lead {
  max-width: 560px;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--grigio);
  margin: 26px 0 38px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}

.hero-proof {
  font-size: 14px;
  font-weight: 600;
  color: var(--grigio);
}

/* ============ LA PARETE (firma visiva) ============ */

.wall {
  background: var(--azzurrino);
  border-top: 1px solid rgba(29, 111, 184, 0.15);
}

.wall p {
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 300;
  line-height: 1.5;
  color: rgba(26, 43, 56, 0.45);
  letter-spacing: 0.01em;
}
.wall span {
  font-weight: 800;
  color: var(--blu);
  white-space: nowrap;
}

.wall-hero {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px var(--pad);
  max-height: 150px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
}

/* ============ SEZIONI ============ */

.section { padding: clamp(72px, 10vw, 130px) var(--pad); }

.section-blu { background: var(--azzurrino); }

.section > * {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section-no {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--blu);
  border: 1.5px solid currentColor;
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}

.section-head h2 {
  font-size: clamp(32px, 4.6vw, 50px);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.08;
}

/* split */

.split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}
.split-even { grid-template-columns: 1fr 1fr; }

.split-main p + p { margin-top: 1.2em; }

.pull {
  font-size: clamp(23px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--notte);
  margin-bottom: 1.1em;
}
.split-main > p:not(.pull) { color: var(--grigio); }

/* chips gusti */

.chips-gusti {
  background: var(--bianco);
  border: 1px solid rgba(26, 43, 56, 0.1);
  border-radius: 10px;
  padding: 26px 24px;
}

.chips-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blu);
  margin-bottom: 16px;
}

.chips-list { list-style: none; }
.chips-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  font-size: 15.5px;
  font-weight: 600;
  border-bottom: 1px solid rgba(26, 43, 56, 0.07);
}
.chips-list li:last-child { border-bottom: none; }

.chip-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  flex: none;
  border: 1px solid rgba(26, 43, 56, 0.12);
}
.d-pistacchio { background: var(--pistacchio); }
.d-nocciola   { background: var(--nocciola); }
.d-cioccolato { background: var(--cioccolato); }
.d-limone     { background: var(--limone); }
.d-mandorla   { background: var(--mandorla); }
.d-cocco      { background: var(--cocco); }

.chips-note {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--grigio);
}

.badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.badges li {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blu-scuro);
  background: rgba(29, 111, 184, 0.1);
  border-radius: 999px;
  padding: 7px 16px;
}

/* ============ INGREDIENTI ============ */

.ingr-lead {
  max-width: 640px;
  font-size: clamp(17px, 2vw, 19px);
  color: var(--grigio);
  margin-bottom: 36px;
}

.ingr-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.ingr-grid li {
  background: var(--bianco);
  border: 1px solid rgba(29, 111, 184, 0.15);
  border-radius: 10px;
  padding: 20px 18px;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--notte);
}

.ingr-award {
  margin-top: 32px;
  font-size: 16px;
  font-weight: 600;
  color: var(--blu-scuro);
}

/* ============ GALLERY ============ */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
}
.g-wide {
  grid-column: span 2;
  aspect-ratio: 3 / 2;
}
.gallery-note {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--grigio);
}

/* ============ ORARI E DOVE ============ */

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16.5px;
}
.hours-table th,
.hours-table td {
  text-align: left;
  padding: 16px 0;
  border-bottom: 1px solid rgba(26, 43, 56, 0.14);
  font-weight: 600;
}
.hours-table tr:first-child th,
.hours-table tr:first-child td { border-top: 1px solid rgba(26, 43, 56, 0.14); }
.hours-table td { text-align: right; font-weight: 800; color: var(--blu-scuro); }

.hours-note {
  margin-top: 18px;
  font-size: 14.5px;
  color: var(--grigio);
}

.where-address {
  font-style: normal;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 18px;
}

.where-metro {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 28px;
  color: var(--grigio);
}
.metro-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #1E7A3C; /* verde della M2 */
  flex: none;
}

/* ============ FOOTER ============ */

.footer {
  background: var(--notte);
  color: var(--latte);
  padding: clamp(60px, 8vw, 100px) var(--pad) 40px;
}

.footer > * {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}

.footer-wordmark {
  font-size: clamp(52px, 9vw, 110px);
  font-weight: 300;
  line-height: 1;
  color: rgba(250, 247, 242, 0.16);
  margin-bottom: clamp(40px, 6vw, 70px);
  user-select: none;
}
.footer-wordmark b { font-weight: 800; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 56px;
}

.footer-cols h3 {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7FB2DE;
  margin-bottom: 14px;
}

.footer-cols p {
  font-size: 15.5px;
  color: rgba(250, 247, 242, 0.78);
}
.footer-cols a {
  color: var(--latte);
  text-decoration: none;
  border-bottom: 1px solid rgba(250, 247, 242, 0.3);
  transition: border-color 0.15s;
}
.footer-cols a:hover { border-color: #7FB2DE; }

.footer-legal {
  font-size: 12.5px;
  color: rgba(250, 247, 242, 0.72);
  border-top: 1px solid rgba(250, 247, 242, 0.12);
  padding-top: 22px;
}

/* ============ REVEAL ============ */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ============ RESPONSIVE ============ */

@media (max-width: 900px) {
  .topbar { gap: 18px; }
  .nav-menu { gap: 16px; }
  .nav-menu a { font-size: 13.5px; }

  .split,
  .split-even { grid-template-columns: 1fr; }
  .ingr-grid { grid-template-columns: repeat(2, 1fr); }
  .where { margin-top: 8px; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 130px; }

  .topbar { gap: 16px; flex-wrap: wrap; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1.5px solid rgba(26, 43, 56, 0.3);
    border-radius: 999px;
    color: var(--notte);
    font: 600 13.5px var(--f-body);
    letter-spacing: 0.02em;
    padding: 8px 14px;
    cursor: pointer;
  }
  .nav-toggle-bar {
    width: 14px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 -4px 0 currentColor, 0 4px 0 currentColor;
  }

  .nav { order: 3; width: 100%; margin: 0; }
  .nav-menu {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 6px 0 10px;
  }
  .nav.is-open .nav-menu { display: flex; }
  .nav-menu a {
    display: block;
    padding: 12px 2px;
    font-size: 16px;
    border-bottom: 1px solid rgba(26, 43, 56, 0.08);
  }

  .topbar-actions { margin-left: auto; }

  .hero { padding-top: 40px; }
  .hero-inner { padding-bottom: 140px; }
  .hero-cta .btn { width: 100%; }

  .section-head { flex-direction: column; gap: 12px; align-items: flex-start; }

  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .footer-cols { grid-template-columns: 1fr; }
}
