/* ═══════════════════════════════════════════════════════════════════
   Beauty Élite di Lilia — Via Fratelli Bressan 30, Milano
   Concept: «cosa deve fare» — i 21 massaggi ordinati per EFFETTO
   (sciogliere · drenare · tonificare · riposare · accompagnare)
   invece che per nome tecnico, perché è l'unico modo in cui un
   cliente sa scegliere fra «metabolico» e «linfodrenante».
   Palette dal reale: il blu dell'insegna e della parete della loro
   reception, su bianco. Niente a che vedere col nero/fucsia di
   Benessere Futuro (#159) — stesso blocco, stesso mestiere.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --blu: #2F4E7E;
  --blu-scuro: #12233D;
  --blu-chiaro: #A9C3E4;
  --blu-velo: #EDF2F9;
  --bianco: #ffffff;
  --grigio: #F4F5F7;
  --testo: #1E2733;
  --testo-soft: #5E6B7C;
  --bordo: #DDE3EC;

  --display: 'Alegreya', Georgia, serif;
  --corpo: 'Alegreya Sans', system-ui, -apple-system, sans-serif;

  --max: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--corpo);
  font-size: clamp(1rem, 0.97rem + 0.18vw, 1.11rem);
  line-height: 1.62;
  color: var(--testo);
  background: var(--bianco);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.12; margin: 0; }
p { margin: 0 0 1rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--blu); color: #fff; padding: .8rem 1.2rem; }
.skip:focus { left: 0; }

/* ---------- reveal (anti-FOUC canonico) ---------- */
.js .reveal { opacity: 0; }
.js .reveal.in-view { opacity: 1; }
html:not(.js) .reveal { opacity: 1; }

/* ---------- intro ---------- */
#intro {
  position: fixed; inset: 0; z-index: 120;
  background: var(--blu-scuro);
  display: grid; place-items: center;
  transition: opacity .6s ease;
}
#intro.hide { opacity: 0; pointer-events: none; }
.intro-mono {
  font-family: var(--display); font-size: clamp(3rem, 12vw, 6rem);
  color: #fff; letter-spacing: .1em;
  animation: monoIn 1.1s ease forwards;
}
@keyframes monoIn { from { opacity: 0; letter-spacing: .5em; } to { opacity: 1; letter-spacing: .1em; } }
@media (prefers-reduced-motion: reduce) { .intro-mono { animation: none; } }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 1rem;
  padding: .8rem var(--gutter);
  background: var(--blu);
  color: #fff;
}
.marchio { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.marchio-be {
  font-family: var(--display); font-size: 1.2rem; font-weight: 700;
  border: 1.5px solid rgba(255,255,255,.6); border-radius: 3px;
  padding: .1rem .4rem; letter-spacing: .04em;
}
.marchio-testo { display: flex; flex-direction: column; line-height: 1.1; }
.marchio-nome { font-family: var(--display); font-size: 1.16rem; font-weight: 500; letter-spacing: .04em; }
.marchio-sub { font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--blu-chiaro); }

.top nav { display: flex; align-items: center; gap: 1.5rem; }
.top nav a {
  text-decoration: none; font-size: .88rem; font-weight: 500;
  padding: .3rem 0; border-bottom: 1px solid transparent;
}
.top nav a:hover, .top nav a:focus-visible { border-bottom-color: #fff; }

#langToggle {
  background: none; border: 1px solid rgba(255,255,255,.4); color: inherit;
  font: inherit; font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  padding: .38rem .58rem; cursor: pointer; border-radius: 2px;
}
#langToggle:hover { background: rgba(255,255,255,.12); }

#burger { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
#burger span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; }

/* ---------- hero ---------- */
#hero {
  display: grid; grid-template-columns: 1.05fr .95fr;
  align-items: stretch;
  background: var(--blu-velo);
}
.hero-foto { overflow: hidden; }
/* object-position alto: la foto della facciata ha molto asfalto in basso e
   centrandola il soggetto (l'insegna) finiva schiacciato in alto */
.hero-foto img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; min-height: 420px; }
.hero-testo {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter);
}
.occhiello {
  font-size: .73rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--blu); margin-bottom: 1.4rem;
}
#heroTitolo { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 400; margin-bottom: 1.3rem; }
#heroTitolo .riga { display: block; }
#heroTitolo .corsivo { font-style: italic; color: var(--blu); }
.hero-p { max-width: 46ch; color: var(--testo-soft); }
.hero-cta { margin: 1.5rem 0 1.6rem; }
.hero-nota { font-size: .92rem; color: var(--testo-soft); margin: 0; }
.hero-nota strong { font-family: var(--display); font-size: 1.3rem; color: var(--blu); }

.btn {
  display: inline-block; text-decoration: none;
  font-weight: 700; font-size: .86rem; letter-spacing: .07em;
  text-transform: uppercase; padding: .95rem 1.8rem;
  transition: background-color .25s ease, color .25s ease;
}
.btn-pieno { background: var(--blu); color: #fff; }
.btn-pieno:hover, .btn-pieno:focus-visible { background: var(--blu-scuro); }

/* ══════ I CINQUE VERBI — sezione-firma ══════ */
#massaggi {
  background: var(--blu-scuro); color: #fff;
  padding: clamp(3.5rem, 8vw, 6rem) var(--gutter);
}
.mass-intro { max-width: var(--max); margin: 0 auto clamp(2rem, 5vw, 3.2rem); text-align: center; }
.mass-intro h2 {
  font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 400;
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: 1rem;
}
.mass-intro p { color: rgba(255,255,255,.7); max-width: 62ch; margin: 0 auto; }

.verbi {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(1rem, 3vw, 2.6rem);
  max-width: var(--max); margin: 0 auto clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(255,255,255,.18);
  padding-bottom: .2rem;
}
.verbo {
  background: none; border: 0; cursor: pointer;
  font-family: var(--display); font-size: clamp(1.15rem, 2.4vw, 1.75rem);
  font-weight: 400; color: rgba(255,255,255,.42);
  padding: .5rem 0 .9rem; position: relative;
  transition: color .3s ease;
}
.verbo:hover { color: rgba(255,255,255,.75); }
.verbo::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: #fff; transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
.verbo.is-attivo { color: #fff; }
.verbo.is-attivo::after { transform: scaleX(1); }

.pannelli { max-width: 820px; margin: 0 auto; }
.pannello[hidden] { display: none !important; }
.pannello-nota {
  color: var(--blu-chiaro); font-style: italic;
  font-family: var(--display); font-size: 1.1rem; margin-bottom: 1.4rem;
}
.pannello-coda { color: rgba(255,255,255,.62); font-size: .95rem; margin: 1.2rem 0 0; }
.pannello-solo .voci li { border-bottom: 0; }

.voci { list-style: none; margin: 0; padding: 0; }
.voci li {
  display: grid; grid-template-columns: 1fr auto auto;
  gap: 1rem; align-items: baseline;
  padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.13);
}
.voci li:last-child { border-bottom: 0; }
.v-nome { color: rgba(255,255,255,.94); }
.v-dur {
  font-size: .8rem; font-weight: 600; letter-spacing: .06em;
  color: var(--blu-chiaro); font-variant-numeric: tabular-nums;
}
.v-prezzo {
  font-family: var(--display); font-size: 1.22rem; font-weight: 700;
  color: #fff; min-width: 4.3rem; text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ---------- il resto del listino ---------- */
#listino {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
  max-width: var(--max); margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) var(--gutter);
}
.listino-testo h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.listino-testo > p { color: var(--testo-soft); max-width: 52ch; }

.conteggi {
  list-style: none; display: flex; flex-wrap: wrap; gap: 1.4rem 2.2rem;
  margin: 1.8rem 0 2rem; padding: 0;
}
.conteggi li { display: flex; flex-direction: column; line-height: 1.15; }
.c-num { font-family: var(--display); font-size: 2rem; font-weight: 700; color: var(--blu); }
.c-lab { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--testo-soft); }

.voci-chiaro li { border-bottom-color: var(--bordo); }
.voci-chiaro .v-nome { color: var(--testo); }
.voci-chiaro .v-dur { color: var(--testo-soft); }
.voci-chiaro .v-prezzo { color: var(--blu); }

.listino-foto button { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; width: 100%; }

/* ---------- team ---------- */
#team {
  display: grid; grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
  background: var(--grigio);
  padding: clamp(3.5rem, 8vw, 6rem) var(--gutter);
}
#team > * { max-width: 100%; }
.team-testo h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: .6rem; }
.team-testo > p { color: var(--testo-soft); margin-bottom: 1.8rem; }
.persone { list-style: none; margin: 0; padding: 0; }
.persone li {
  display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem;
  padding: .95rem 0; border-bottom: 1px solid var(--bordo);
}
.persone li:last-child { border-bottom: 0; }
.p-nome { font-family: var(--display); font-size: 1.32rem; font-weight: 700; grid-column: 1; }
.p-ruolo {
  grid-column: 1; grid-row: 2; font-size: .74rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--testo-soft);
}
.p-rating {
  grid-column: 2; grid-row: 1 / span 2; align-self: center;
  font-family: var(--display); font-weight: 700; color: var(--blu); font-size: 1.05rem;
}
.p-rating span { font-family: var(--corpo); font-weight: 400; font-size: .78rem; color: var(--testo-soft); }

/* ---------- recensioni ---------- */
#voci { max-width: var(--max); margin: 0 auto; padding: clamp(3.5rem, 8vw, 6rem) var(--gutter); }
#voci h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: .5rem; }
.voci-sub { color: var(--testo-soft); margin-bottom: 2.4rem; }
.voci-sub strong { font-family: var(--display); font-size: 1.3rem; color: var(--blu); }
.voci-griglia { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 1.2rem; }
.voci-griglia blockquote {
  margin: 0; padding: 1.6rem 1.5rem;
  background: var(--blu-velo); border-left: 3px solid var(--blu);
}
.voci-griglia p { margin-bottom: .9rem; }
.voci-griglia cite {
  font-style: normal; font-size: .75rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase; color: var(--testo-soft);
}

/* ---------- dove ---------- */
#dove { display: grid; grid-template-columns: .9fr 1.1fr; background: var(--blu-velo); }
.dove-info { padding: clamp(3rem, 7vw, 5rem) var(--gutter); }
.dove-info h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1.1rem; }
.indirizzo { font-family: var(--display); font-size: 1.28rem; line-height: 1.4; }
.mezzi { color: var(--testo-soft); font-size: .95rem; }
.stato {
  display: inline-block; font-weight: 700; font-size: .8rem;
  letter-spacing: .1em; text-transform: uppercase;
  background: var(--blu); color: #fff; padding: .45rem .9rem;
  margin: .4rem 0 1.3rem;
}
.orari { list-style: none; margin: 0 0 1.7rem; padding: 0; max-width: 330px; }
.orari li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .46rem 0; border-bottom: 1px solid var(--bordo); font-size: .95rem;
}
.orari li.is-today { font-weight: 700; color: var(--blu); }
.dove-mappa iframe { width: 100%; height: 100%; min-height: 380px; display: block; }

/* ---------- footer ---------- */
footer {
  background: var(--blu-scuro); color: rgba(255,255,255,.72);
  padding: clamp(2.4rem, 5vw, 3.4rem) var(--gutter);
  text-align: center; font-size: .92rem;
}
footer p { margin: 0 0 .5rem; }
.foot-marchio { font-family: var(--display); font-size: 1.3rem; color: #fff; margin-bottom: .7rem; }
.foot-sub { font-family: var(--corpo); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--blu-chiaro); }
.foot-nota { font-size: .8rem; color: rgba(255,255,255,.4); margin-top: 1.2rem; }

/* ---------- action bar ---------- */
#actionBar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; transform: translateY(100%); transition: transform .3s ease;
}
#actionBar.is-visible { transform: translateY(0); }
#actionBar a {
  flex: 1; text-align: center; text-decoration: none;
  padding: .95rem .5rem; font-size: .8rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}
#actionBar a:first-child { background: var(--blu); color: #fff; }
#actionBar a:last-child { background: var(--blu-scuro); color: #fff; }

/* ---------- lightbox ---------- */
#lightbox {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(18,35,61,.95);
  display: flex; align-items: center; justify-content: center; padding: 2rem;
}
#lightbox[hidden] { display: none !important; }
#lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
#lightboxClose {
  position: absolute; top: 1.2rem; right: 1.4rem;
  background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  #hero, #listino, #team, #dove { grid-template-columns: 1fr; }
  .hero-foto img { min-height: 300px; max-height: 44vh; }
  .listino-foto, .team-foto { max-width: 540px; }
  .dove-mappa iframe { min-height: 300px; }
}

@media (max-width: 760px) {
  .top nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--blu-scuro); padding: 0 var(--gutter);
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
  }
  .top nav.nav-open { max-height: 320px; padding: 1rem var(--gutter) 1.4rem; }
  .top nav a { width: 100%; padding: .7rem 0; }
  #burger { display: block; }
  #actionBar { display: flex; }

  .verbi { gap: .9rem 1.4rem; }
  /* prezzo in seconda colonna su due righe: senza grid-column esplicita
     l'auto-placement lo manda a sinistra del nome (bug visto su #159) */
  .voci li { grid-template-columns: 1fr auto; row-gap: .12rem; }
  .v-nome { grid-column: 1; grid-row: 1; }
  .v-dur { grid-column: 1; grid-row: 2; font-size: .74rem; }
  .v-prezzo { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}
