/* ═══════════════════════════════════════════════════════════════
   Barbieria 88 — Milano Niguarda
   Concept: l'albergo diurno, cent'anni dopo. Due sale, un ventaglio.
   Palette presa dalle FOTO REALI del salone (Treatwell):
   verde petrolio delle pareti, smeraldo delle poltrone, ottone delle
   cornici, antracite dei mobili, avorio, legno del pavimento.
   ═══════════════════════════════════════════════════════════════ */

/* ── plumbing (reset tecnico canonico — PLUMBING_V) ────────────── */
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }

/* stato iniziale dei reveal: SOLO dietro .js — senza JS la pagina è
   completa. Le tre righe che non devono mancare mai (flash-detect). */
.js .reveal { opacity: 0; }
.js .reveal.in-view { opacity: 1; }
html:not(.js) .reveal { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .anta, .hero__title .line, .insegna__testo, .insegna__num { opacity: 1 !important; transform: none !important; }
}

/* ── design system ─────────────────────────────────────────────── */
:root {
  --teal-900: #0E2E33;
  --teal-800: #123F46;
  --teal-700: #17636B;
  --teal-600: #1F7A82;
  --emerald:  #2E6B3E;
  --emerald-l:#3C8850;
  --brass:    #C7A05A;
  --brass-l:  #E0C287;
  --ink:      #23262A;
  --cream:    #F3EFE7;
  --cream-d:  #E4DFD4;
  --wood:     #D9B47F;

  --serif: 'Della Respira', Georgia, 'Times New Roman', serif;
  --sans:  'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1180px;
  --gut: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(16px, 1.05vw, 17.5px);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: .01em; }
p { margin: 0 0 1.1em; }
a { color: inherit; }
::selection { background: var(--brass); color: var(--teal-900); }

.occhiello {
  font-size: .72rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--brass); font-weight: 500; margin-bottom: .9rem;
}
.stelle { color: var(--brass); letter-spacing: .12em; }

.btn {
  display: inline-block; padding: .92em 1.9em; border-radius: 2px;
  font-size: .84rem; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 500; text-decoration: none; transition: background .25s, color .25s, border-color .25s;
}
.btn--brass { background: var(--brass); color: var(--teal-900); }
.btn--brass:hover { background: var(--brass-l); }
.btn--ghost { border: 1px solid currentColor; color: inherit; }
.btn--ghost:hover { background: rgba(199,160,90,.16); }

/* ── intro: il tondo dell'insegna che si apre a ventaglio ──────── */
#intro {
  position: fixed; inset: 0; z-index: 200;
  background: var(--teal-900);
  display: grid; place-items: center;
  transition: opacity .6s ease;
}
#intro.hide { opacity: 0; pointer-events: none; }
.intro__mark { position: relative; width: min(46vw, 230px); aspect-ratio: 1; display: grid; place-items: center; }
.intro__fan { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro__fan .fan-blades path {
  transform-origin: 100px 122px;
  animation: fanOpen 1.5s cubic-bezier(.22,.9,.3,1) forwards;
  opacity: 0;
}
.fan-blades path:nth-child(1) { animation-delay: .05s; }
.fan-blades path:nth-child(2) { animation-delay: .13s; }
.fan-blades path:nth-child(3) { animation-delay: .21s; }
.fan-blades path:nth-child(4) { animation-delay: .09s; }
.fan-blades path:nth-child(5) { animation-delay: .17s; }
.fan-blades path:nth-child(6) { animation-delay: .25s; }
@keyframes fanOpen {
  from { opacity: 0; transform: scaleY(.35); }
  to   { opacity: .85; transform: scaleY(1); }
}
.intro__ring { stroke-dasharray: 290; stroke-dashoffset: 290; animation: ringDraw 1.35s .2s ease forwards; }
@keyframes ringDraw { to { stroke-dashoffset: 0; } }
.intro__num {
  position: relative; font-family: var(--serif); font-size: clamp(2.4rem, 8vw, 3.6rem);
  color: var(--cream); opacity: 0; animation: numIn .8s .75s ease forwards;
}
@keyframes numIn { from { opacity: 0; letter-spacing: .3em; } to { opacity: 1; letter-spacing: .02em; } }

/* ── header ────────────────────────────────────────────────────── */
#site-header {
  position: sticky; top: 0; z-index: 90;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .8rem var(--gut);
  /* NIENTE backdrop-filter su header/nav: rende l'header containing block
     dei figli position:fixed e imprigiona il drawer (3 incidenti noti). */
  background: rgba(14,46,51,.97);
  color: var(--cream);
  border-bottom: 1px solid rgba(199,160,90,.28);
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand__badge {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--brass); color: var(--brass);
  font-family: var(--serif); font-size: 1rem; line-height: 1;
}
.brand__name { font-family: var(--serif); font-size: 1.16rem; letter-spacing: .1em; }
#mainNav { display: flex; gap: 1.7rem; }
#mainNav a {
  text-decoration: none; font-size: .8rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--cream-d); padding: .3rem 0;
  border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
#mainNav a:hover { color: var(--brass-l); border-bottom-color: var(--brass); }
.head-actions { display: flex; align-items: center; gap: .8rem; }
.lang {
  background: none; border: 1px solid rgba(228,223,212,.4); color: var(--cream-d);
  font-family: var(--sans); font-size: .72rem; letter-spacing: .1em;
  padding: .42em .8em; border-radius: 2px; cursor: pointer; transition: border-color .2s, color .2s;
}
.lang:hover { border-color: var(--brass); color: var(--brass-l); }
.cta-head {
  background: var(--brass); color: var(--teal-900); text-decoration: none;
  padding: .6em 1.3em; border-radius: 2px; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  transition: background .25s;
}
.cta-head:hover { background: var(--brass-l); }
#burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; position: relative; z-index: 96; }
#burger span { display: block; width: 24px; height: 1.5px; background: var(--cream); transition: transform .3s, opacity .3s; }
#burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
#burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
#burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── HERO: la facciata a tre ante ──────────────────────────────── */
.vetrina {
  background: var(--teal-900);
  color: var(--cream);
  padding: clamp(2rem, 5vw, 3.4rem) var(--gut) clamp(2.6rem, 6vw, 4rem);
}
.vetrina__insegna {
  max-width: var(--wrap); margin: 0 auto clamp(1.4rem, 3vw, 2.2rem);
  display: flex; align-items: center; justify-content: center; gap: clamp(.9rem, 2.5vw, 2rem);
  padding: .75rem 1.4rem;
  border: 1px solid rgba(199,160,90,.5);
  background: linear-gradient(180deg, rgba(31,122,130,.22), rgba(14,46,51,0));
}
.insegna__rasoio { width: 34px; height: 1px; background: var(--brass); position: relative; }
.insegna__rasoio::after {
  content: ''; position: absolute; right: -3px; top: -3px;
  width: 7px; height: 7px; border: 1px solid var(--brass); transform: rotate(45deg);
}
.insegna__testo {
  font-family: var(--serif); font-size: clamp(1.5rem, 5.2vw, 2.9rem);
  letter-spacing: clamp(.08em, .5vw, .22em); text-transform: uppercase; color: var(--cream);
}
.insegna__num { font-family: var(--serif); font-size: clamp(.95rem, 2vw, 1.25rem); color: var(--brass); }
.insegna__num sup { font-size: .62em; }

.ante {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.32fr 1fr; gap: clamp(10px, 1.4vw, 18px);
  align-items: stretch;
}
.anta { margin: 0; position: relative; }
.anta--sx img, .anta--dx img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  border: 1px solid rgba(199,160,90,.32);
  filter: saturate(.94);
}
.anta--porta {
  background: linear-gradient(180deg, rgba(23,99,107,.30), rgba(14,46,51,.10));
  border: 1px solid rgba(199,160,90,.42);
  padding: clamp(1.5rem, 3.4vw, 2.6rem) clamp(1.2rem, 3vw, 2.2rem);
  display: flex; flex-direction: column; justify-content: center; text-align: center;
}
.kicker {
  font-size: .68rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 1.1rem;
}
.hero__title { font-size: clamp(2.1rem, 6.4vw, 4.1rem); margin-bottom: 1.1rem; }
.hero__title .line { display: block; }
.hero__title .line--em { font-style: italic; color: var(--brass-l); }
.hero__lead { color: var(--cream-d); max-width: 34ch; margin-inline: auto; font-size: .97rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin: 1.4rem 0 1.2rem; }
.hero__nota { font-size: .82rem; color: var(--cream-d); margin: 0; }
.hero__nota strong { color: var(--cream); font-size: 1rem; }
.vetrina__soglia {
  max-width: var(--wrap); margin: clamp(1.2rem, 3vw, 2rem) auto 0; text-align: center;
  font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(228,223,212,.62);
}

/* ── STORIA ────────────────────────────────────────────────────── */
.storia {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(3.4rem, 8vw, 6rem) var(--gut);
  display: grid; grid-template-columns: 62px 1fr; gap: clamp(1.2rem, 3vw, 2.6rem);
}
.storia__filo { position: relative; }
.storia__filo svg { position: sticky; top: 96px; width: 40px; height: min(420px, 46vh); }
.filo-draw { stroke-dasharray: 460; stroke-dashoffset: 460; }
.storia__testo h2 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); margin-bottom: 1.3rem; color: var(--teal-800); }
.storia__testo p { max-width: 62ch; }
.storia__segni { list-style: none; padding: 0; margin: 2.2rem 0 0; display: flex; flex-wrap: wrap; gap: clamp(1.4rem, 4vw, 3.4rem); }
.storia__segni li { display: flex; flex-direction: column; gap: .3rem; max-width: 21ch; }
.storia__segni span:first-child {
  font-family: var(--serif); font-size: 2.1rem; color: var(--brass);
  line-height: 1; padding-bottom: .35rem; border-bottom: 1px solid rgba(199,160,90,.4);
}
.storia__segni span:last-child { font-size: .8rem; letter-spacing: .04em; color: #5B6166; }

/* ── LE DUE SALE ───────────────────────────────────────────────── */
.sale { background: var(--cream-d); padding: clamp(3.4rem, 8vw, 6rem) var(--gut); }
.sale__head { max-width: var(--wrap); margin: 0 auto clamp(2rem, 4vw, 3rem); }
.sale__head h2 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); color: var(--teal-800); }
.sale__grid {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(1.2rem, 3vw, 2.6rem);
}
.sala { background: var(--cream); padding: clamp(1.5rem, 3vw, 2.4rem); position: relative; border-top: 2px solid var(--brass); }
.sala--cura { background: var(--teal-800); color: var(--cream); margin-top: clamp(0px, 4vw, 54px); }
.sala__n { font-family: var(--serif); font-size: 1rem; color: var(--brass); letter-spacing: .2em; margin-bottom: .6rem; }
.sala h3 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: .9rem; }
.sala--taglio h3 { color: var(--teal-800); }
.sala p { font-size: .95rem; }
.sala--cura p { color: var(--cream-d); }
.sala__chi { font-size: .8rem; letter-spacing: .06em; color: #5B6166; margin-bottom: 1.3rem; }
.sala--cura .sala__chi { color: rgba(228,223,212,.8); }
.sala__foto, .dove__foto {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; line-height: 0;
}
.sala__foto img, .dove__foto img {
  width: 100%; display: block; border: 1px solid rgba(199,160,90,.34);
  transition: filter .3s;
}
.sala__foto:hover img, .dove__foto:hover img { filter: brightness(1.06); }

/* ── IL MURO: il motivo a ventagli della loro parete ───────────── */
.muro { position: relative; background: var(--teal-900); color: var(--cream); overflow: hidden; }
.muro__pattern {
  position: absolute; inset: 0; opacity: .3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='90' viewBox='0 0 120 90'%3E%3Cg fill='none' stroke='%23C7A05A' stroke-width='1'%3E%3Cpath d='M60 88 A28 28 0 0 1 60 32 A28 28 0 0 1 60 88 Z'/%3E%3Cpath d='M60 88 A19 19 0 0 1 60 50 A19 19 0 0 1 60 88 Z'/%3E%3Cpath d='M60 88 A10 10 0 0 1 60 68 A10 10 0 0 1 60 88 Z'/%3E%3Cpath d='M0 43 A28 28 0 0 1 0 -13'/%3E%3Cpath d='M120 43 A28 28 0 0 0 120 -13'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 90px;
}
.muro__contenuto {
  position: relative; max-width: 660px; margin: 0 auto; text-align: center;
  padding: clamp(3.4rem, 8vw, 6rem) var(--gut);
}
.muro__voto { display: flex; align-items: center; justify-content: center; gap: .8rem; margin-bottom: 1rem; }
.muro__voto strong { font-family: var(--serif); font-size: clamp(2.6rem, 7vw, 4rem); font-weight: 400; color: var(--brass-l); }
.muro__voto .stelle { font-size: 1.1rem; }
.muro h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); margin-bottom: 1rem; }
.muro p { color: var(--cream-d); margin: 0; }

/* ── SERVIZI ───────────────────────────────────────────────────── */
.servizi { max-width: var(--wrap); margin: 0 auto; padding: clamp(3.4rem, 8vw, 6rem) var(--gut); }
.servizi__head { margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.servizi__head h2 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); color: var(--teal-800); }
.servizi__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3.4rem); }
.col h3 {
  font-size: 1.25rem; color: var(--teal-700); padding-bottom: .7rem;
  border-bottom: 1px solid rgba(199,160,90,.5); margin-bottom: 1.1rem;
}
.col ul { list-style: none; padding: 0; margin: 0; }
.col li { padding: .62em 0; border-bottom: 1px dotted rgba(35,38,42,.18); font-size: .95rem; }
.col li:last-child { border-bottom: 0; }
.servizi__nota { margin-top: 2rem; font-size: .86rem; color: #5B6166; max-width: 66ch; font-style: italic; }

/* ── RECENSIONI ────────────────────────────────────────────────── */
.voci { background: var(--teal-800); color: var(--cream); padding: clamp(3.4rem, 8vw, 6rem) var(--gut); }
.voci__head { max-width: var(--wrap); margin: 0 auto clamp(1.8rem, 4vw, 2.8rem); }
.voci__head h2 { font-size: clamp(1.7rem, 4.2vw, 2.7rem); }
.voci__grid {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: clamp(1rem, 2.4vw, 1.7rem);
}
.voce { margin: 0; padding: 1.5rem; background: rgba(243,239,231,.055); border-left: 2px solid var(--brass); }
.voce p { font-family: var(--serif); font-size: 1.02rem; line-height: 1.6; color: var(--cream); }
.voce cite { font-style: normal; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }

/* ── PRENOTA ───────────────────────────────────────────────────── */
.prenota { padding: clamp(3rem, 7vw, 5rem) var(--gut); background: var(--cream-d); }
.prenota__box {
  max-width: 700px; margin: 0 auto; text-align: center;
  border: 1px solid rgba(199,160,90,.6); padding: clamp(1.8rem, 4vw, 3rem);
  background: var(--cream);
}
.prenota__box h2 { font-size: clamp(1.5rem, 3.6vw, 2.3rem); color: var(--teal-800); margin-bottom: .9rem; }
.prenota__box p { color: #5B6166; max-width: 46ch; margin-inline: auto; }
.prenota__cta { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-top: 1.4rem; }
.prenota .btn--ghost { color: var(--teal-800); }

/* ── DOVE ──────────────────────────────────────────────────────── */
.dove {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(3.4rem, 8vw, 6rem) var(--gut);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3.4rem); align-items: start;
}
.dove__info h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); color: var(--teal-800); margin-bottom: .9rem; }
.stato { font-size: .88rem; font-weight: 500; color: var(--emerald); letter-spacing: .04em; }
.orari { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.orari li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .5em .6em; font-size: .9rem; border-bottom: 1px dotted rgba(35,38,42,.16);
}
.orari li span:first-child { text-transform: capitalize; }
.orari li.is-today { background: rgba(199,160,90,.16); font-weight: 500; }
.dove__mappa iframe { width: 100%; height: clamp(300px, 44vh, 430px); display: block; border: 1px solid rgba(199,160,90,.4); }

/* ── FAQ ───────────────────────────────────────────────────────── */
.faq { max-width: 860px; margin: 0 auto; padding: 0 var(--gut) clamp(3.4rem, 8vw, 6rem); }
.faq h2 { font-size: clamp(1.6rem, 3.8vw, 2.4rem); color: var(--teal-800); margin-bottom: 1.6rem; }
.faq details { border-top: 1px solid rgba(35,38,42,.16); padding: .3rem 0; }
.faq details:last-child { border-bottom: 1px solid rgba(35,38,42,.16); }
.faq summary {
  cursor: pointer; padding: 1em 2em 1em 0; font-weight: 500; font-size: .98rem;
  list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: .2em; top: 50%; transform: translateY(-50%);
  font-family: var(--serif); font-size: 1.4rem; color: var(--brass); transition: transform .25s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 1.5rem 1.2em 0; color: #5B6166; font-size: .94rem; margin: 0; }

/* ── footer ────────────────────────────────────────────────────── */
footer { background: var(--teal-900); color: var(--cream-d); text-align: center; padding: clamp(2.6rem, 6vw, 4rem) var(--gut) 5.5rem; }
.foot__mark { margin-bottom: 1.1rem; display: flex; justify-content: center; }
.foot__nome { font-family: var(--serif); font-size: 1.2rem; color: var(--cream); margin-bottom: .5rem; }
.foot__riga { font-size: .88rem; margin: 0 0 .35rem; }
.foot__riga a { color: var(--brass-l); }
.foot__nota { font-size: .74rem; color: rgba(228,223,212,.5); margin-top: 1.4rem; }

/* ── action bar mobile ─────────────────────────────────────────── */
#actionBar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: none; background: rgba(14,46,51,.98);
  border-top: 1px solid rgba(199,160,90,.4);
  transform: translateY(102%); transition: transform .3s;
}
#actionBar.is-visible { transform: translateY(0); }
#actionBar a {
  flex: 1; text-align: center; padding: .95rem .4rem; text-decoration: none;
  color: var(--cream); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
}
#actionBar a + a { border-left: 1px solid rgba(199,160,90,.28); }

/* ── lightbox ──────────────────────────────────────────────────── */
#lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(14,46,51,.94);
  display: flex; align-items: center; justify-content: center; padding: 4vw;
}
#lightbox img { max-width: 100%; max-height: 88vh; border: 1px solid rgba(199,160,90,.5); }
#lightboxClose {
  position: absolute; top: 1.2rem; right: 1.6rem; background: none; border: 0;
  color: var(--cream); font-size: 2.4rem; line-height: 1; cursor: pointer;
}

/* ── responsive ────────────────────────────────────────────────── */
@media (max-width: 960px) {
  #burger { display: flex; }
  #mainNav {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    background: rgba(14,46,51,.99);
    flex-direction: column; justify-content: center; gap: 1.6rem;
    padding: 2rem; transform: translateX(100%); transition: transform .32s ease;
    border-left: 1px solid rgba(199,160,90,.35);
  }
  #mainNav.nav-open { transform: translateX(0); }
  #mainNav a { font-size: 1rem; }
  .cta-head { display: none; }

  .ante { grid-template-columns: 1fr; }
  .anta--sx, .anta--dx { max-height: 34vh; overflow: hidden; }
  .anta--porta { order: -1; }

  .storia { grid-template-columns: 1fr; }
  .storia__filo { display: none; }
  .sale__grid, .servizi__cols, .dove { grid-template-columns: 1fr; }
  .sala--cura { margin-top: 0; }
  #actionBar { display: flex; }
  footer { padding-bottom: 5.5rem; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .vetrina__insegna { flex-wrap: wrap; justify-content: center; gap: .5rem .9rem; padding: .7rem 1rem; }
  .insegna__rasoio { display: none; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; text-align: center; }
  .storia__segni { gap: 1.4rem; }
  .storia__segni li { max-width: none; flex-direction: row; align-items: baseline; gap: .8rem; }
  .storia__segni span:first-child { border-bottom: 0; font-size: 1.7rem; }
  .voce p { font-size: .97rem; }
}
