/* ============================================================
   Ruggeri Medical — Mockup sito (Approccio A: statico)
   Identità: medicale premium. Blu navy + ciano (da cartello brand).
   Mobile-first, CSS custom (nessun build necessario).
   ============================================================ */

:root {
  /* Palette allineata al cartello pubblicitario Ruggeri Medical: navy + ciano */
  --teal-900: #10143a;   /* navy profondo */
  --teal-800: #1e2450;   /* navy */
  --teal-700: #272b5c;   /* navy brand */
  --teal-600: #24a8d8;   /* ciano accento */
  --teal-100: #e3f4fb;   /* ciano chiaro */
  --gold-600: #1483b3;   /* ciano scuro (già "gold-600") */
  --gold-500: #24a8d8;   /* ciano */
  --gold-300: #8ad6ef;   /* ciano chiaro */
  --ink: #1a1f3a;
  --muted: #5b6172;
  --paper: #ffffff;
  --cream: #f2f5fa;
  --line: #e2e6ef;
  --wa: #25d366;
  --wa-dark: #128c4b;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 45px -25px rgba(8, 52, 58, .5);
  --shadow-sm: 0 8px 22px -14px rgba(8, 52, 58, .45);
  --container: 1180px;
  --ff-head: "Fraunces", Georgia, "Times New Roman", serif;
  --ff-body: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* header sticky: le ancore devono fermarsi sotto la barra, non dietro */
section[id], main[id], .legal h2[id] { scroll-margin-top: 114px; }

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

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--ff-head); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }

.section { padding: 84px 0; }
.section--tight { padding: 60px 0; }
.section--cream { background: var(--cream); }
.section--teal { background: var(--teal-800); color: #e6ebf7; }
.section--teal h2, .section--teal h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-body); font-weight: 700; font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-600);
}
.section--teal .eyebrow { color: var(--gold-300); }

.section-head { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin: 12px 0 14px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section--teal .section-head p { color: #b9c3e0; }
#services .section-head p { font-size: 1.28rem; line-height: 1.55; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--ff-body); font-weight: 700; font-size: 1rem;
  padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; }
.btn--wa { background: var(--wa); color: #06331c; box-shadow: 0 12px 26px -12px rgba(18,140,75,.8); }
.btn--wa:hover { background: #23c15f; }
.btn--gold { background: linear-gradient(135deg, var(--gold-500), var(--gold-600)); color: #0a1030; }
.btn--ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--dark { background: var(--teal-800); color: #fff; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__bar { display: flex; align-items: center; gap: 18px; height: 106px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--ff-head); font-weight: 600; }
.brand__logo { height: 80px; width: auto; display: block; }
.footer__brand .brand__chip { display: inline-block; background: #fff; padding: 12px 16px; border-radius: 14px; margin-bottom: 16px; }
.footer__brand .brand__chip img { height: 40px; width: auto; display: block; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  background: radial-gradient(circle at 30% 30%, var(--teal-600), var(--teal-900));
  color: var(--gold-300); font-family: var(--ff-head); font-weight: 700; font-size: 1.05rem;
  border: 1.5px solid var(--gold-500);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.06);
}
.brand__name { font-size: 1.14rem; line-height: 1; color: var(--teal-900); }
.brand__name small { display: block; font-family: var(--ff-body); font-weight: 600; font-size: .62rem; letter-spacing: .34em; color: var(--gold-600); margin-top: 4px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a { font-weight: 600; font-size: .96rem; color: var(--teal-900); }
.nav a:hover { color: var(--gold-600); }
.header__actions { display: flex; align-items: center; gap: 12px; }

.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.lang button {
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--ff-body); font-weight: 700; font-size: .82rem;
  padding: 8px 12px; color: var(--muted);
}
.lang button.is-active { background: var(--teal-800); color: #fff; }

.header__cta { padding: 11px 18px; font-size: .92rem; }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--teal-900); margin: 5px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(160deg, var(--teal-900), var(--teal-700)); color: #eef1fa; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 500px at 85% -10%, rgba(36,168,216,.28), transparent 60%);
  pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 74px 0 84px; position: relative; z-index: 2; }
.hero__badge {
  display: inline-flex; align-items: baseline; gap: 8px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: #0a1030; font-weight: 800; border-radius: 999px;
  padding: 8px 18px 8px 14px; font-size: .95rem; letter-spacing: .02em;
  box-shadow: 0 14px 30px -12px rgba(36,168,216,.7);
}
.hero__badge b { font-family: var(--ff-head); font-size: 1.35rem; line-height: 1; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.8rem); margin: 22px 0 18px; color: #fff; }
.hero h1 em { font-style: normal; color: var(--gold-300); }
.hero__lead { font-size: 1.16rem; color: #c4cfe8; max-width: 520px; margin: 0 0 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.hero__chips span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; color: #cdd6ee; }
.hero__chips svg { width: 18px; height: 18px; color: var(--gold-300); flex: none; }

.hero__media { position: relative; }
.hero__media img { border-radius: 22px; box-shadow: 0 40px 70px -30px rgba(0,0,0,.65); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
/* Locandina intera: proporzione naturale, nessun taglio */
.hero__media--poster img { aspect-ratio: auto; object-fit: initial; height: auto; box-shadow: 0 40px 80px -28px rgba(0,0,0,.7); }
.hero__float {
  position: absolute; left: -18px; bottom: 26px;
  background: #fff; color: var(--ink); border-radius: 16px; padding: 14px 18px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px;
}
.hero__float b { font-family: var(--ff-head); font-size: 1.5rem; color: var(--teal-700); display: block; line-height: 1; }
.hero__float small { color: var(--muted); font-size: .8rem; }
.hero__float .dot { width: 40px; height: 40px; border-radius: 50%; background: var(--teal-100); color: var(--teal-700); display: grid; place-items: center; }

/* ---------- Trust strip ---------- */
.trust { background: var(--teal-900); color: #c4cfe8; }
.trust__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding: 22px 0; text-align: center; }
.trust__item { flex: 1 1 160px; }
.trust__item b { font-family: var(--ff-head); font-size: 1.7rem; color: #fff; display: block; }
.trust__item span { font-size: .82rem; letter-spacing: .04em; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; position: relative; box-shadow: var(--shadow-sm); }
.step__n { font-family: var(--ff-head); font-size: 1rem; font-weight: 700; color: var(--gold-600); border: 1.5px solid var(--gold-300); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 16px; }
/* Variante della pallina numerata: al posto della cifra, un'icona. */
.step__n--ico svg { width: 20px; height: 20px; }
.step h3 { font-size: 1.18rem; margin: 0 0 8px; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service__img { aspect-ratio: 16/11; object-fit: cover; width: 100%; }
.service__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.service__icon { font-size: 1.5rem; margin-bottom: 6px; }
.service h3 { font-size: 1.35rem; margin: 0 0 10px; color: var(--teal-900); }
.service ul { list-style: none; margin: 0 0 20px; padding: 0; }
.service li { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; color: var(--muted); font-size: .96rem; }
.service li svg { width: 18px; height: 18px; color: var(--teal-600); flex: none; margin-top: 3px; }
.service .btn { margin-top: auto; }

/* ---------- Trapianto capelli: slider + pacchetto affiancati ---------- */
.hair { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
/* senza questo la striscia di miniature allarga la sua colonna e rompe il 50/50 */
.hair > * { min-width: 0; }
.hair__pkg h3 { font-size: 1.5rem; margin: 10px 0 18px; color: var(--teal-900); }
.pkg__list { list-style: none; margin: 0 0 26px; padding: 0; }
.pkg__list li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; color: var(--muted); font-size: .98rem; }
.pkg__list li svg { width: 18px; height: 18px; color: var(--teal-600); flex: none; margin-top: 4px; }

/* ---------- Approfondimento metodo DHI ---------- */
.dhi { margin-top: 56px; padding: 38px 40px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); }
.dhi__intro { max-width: 780px; }
.dhi__intro h3 { font-size: 1.5rem; margin: 10px 0 12px; color: var(--teal-900); }
.dhi__intro p { margin: 0; color: var(--muted); }
.dhi__intro .btn { margin-top: 22px; }
.dhi--media { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 36px; align-items: center; }
.dhi__img { margin: 0; border-radius: var(--radius-sm); overflow: hidden; }
.dhi__img img { width: 100%; height: auto; display: block; }
.dhi__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 32px; }
.dhi__col h4 { font-family: var(--ff-head); font-weight: 600; font-size: 1.14rem; margin: 0 0 16px; color: var(--teal-900); }
.dhi__col b { color: var(--ink); }
.dhi__steps, .dhi__pros { list-style: none; margin: 0; padding: 0; }
.dhi__steps { counter-reset: dhi; }
.dhi__steps li {
  counter-increment: dhi; position: relative; padding-left: 40px; margin-bottom: 16px;
  color: var(--muted); font-size: .96rem;
}
.dhi__steps li::before {
  content: counter(dhi); position: absolute; left: 0; top: 1px;
  width: 27px; height: 27px; border-radius: 50%; background: var(--teal-600); color: #fff;
  font-family: var(--ff-body); font-weight: 800; font-size: .8rem; display: grid; place-items: center;
}
.dhi__pros li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; color: var(--muted); font-size: .96rem; }
.dhi__pros li svg { width: 18px; height: 18px; color: var(--teal-600); flex: none; margin-top: 4px; }
.dhi__steps li:last-child, .dhi__pros li:last-child { margin-bottom: 0; }

/* ---------- Before / After (immagini composite) ---------- */
.ba-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 760px; margin: 0 auto; }
.ba-shot { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #0b1416; }
.ba-shot img { width: 100%; height: auto; display: block; }
.ba-shot__tags { position: absolute; inset: 0; pointer-events: none; }
.ba-shot__tags span { position: absolute; left: 12px; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: rgba(8,52,58,.78); padding: 5px 11px; border-radius: 999px; }
.ba-shot__tags span:first-child { top: 12px; }
.ba-shot__tags span:last-child { bottom: 12px; background: var(--teal-600); }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why__card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 26px 22px; }
.why__card .ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(36,168,216,.18); color: var(--gold-300); display: grid; place-items: center; margin-bottom: 14px; }
.why__card .ic svg { width: 24px; height: 24px; }
.why__card h3 { font-size: 1.16rem; margin: 0 0 8px; }
.why__card p { margin: 0; color: #b9c3e0; font-size: .94rem; }
/* Foto del paziente a sinistra, le quattro schede in 2x2 a destra. */
.why-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 22px; }
/* La foto si adatta all'altezza delle schede, non il contrario. */
.why-split__img { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; }
.why-split__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.why-split .why { grid-template-columns: repeat(2, 1fr); }

/* ---------- Gallery ---------- */
/* Le foto del cliente sono tutte verticali (scatti da telefono): celle in
   formato ritratto, così restano intere invece di essere tagliate a metà. */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; position: relative; aspect-ratio: 3 / 4; }
.gallery img, .gallery video { width: 100%; height: 100%; object-fit: cover; }
.gallery .wide { grid-column: span 2; }
.gallery .tall { grid-row: span 2; }
/* Sezione Denti: le due foto dello studio, intere e affiancate sotto il prima/dopo. */
.subhead { text-align: center; font-size: 1.4rem; margin: 46px 0 22px; color: var(--teal-900); }
.gallery--duo { grid-template-columns: 1fr 1fr; max-width: 560px; margin: 0 auto; align-items: start; gap: 22px; }
.gallery--duo figure { aspect-ratio: auto; box-shadow: var(--shadow); }
.gallery--duo img { height: auto; display: block; }

/* ---------- Slider trapianto capelli ---------- */
.slider { --slide-w: 400px; }
.slider__stage { display: flex; align-items: center; justify-content: center; gap: 14px; }
.slider__viewport { width: 100%; max-width: var(--slide-w); overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: #0b1023; }
.slider__track { display: flex; list-style: none; margin: 0; padding: 0; transition: transform .55s cubic-bezier(.4,.02,.2,1); }
.slider__slide { flex: 0 0 100%; margin: 0; }
.slider__zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.slider__zoom img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; }
.slider__nav {
  flex: none; width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--teal-800);
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.slider__nav:hover { background: var(--teal-800); color: #fff; transform: translateY(-2px); }
.slider__nav svg { width: 22px; height: 22px; }
.slider__thumbs {
  /* position:relative serve: senza, offsetLeft delle miniature e' calcolato
     rispetto a un antenato piu' in alto e lo scorrimento automatico sbaglia. */
  position: relative;
  display: flex; gap: 10px; justify-content: flex-start; margin: 22px auto 0;
  max-width: 100%; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin;
}
.slider__thumb {
  flex: none; width: 62px; padding: 0; border: 2px solid transparent; border-radius: 10px;
  overflow: hidden; cursor: pointer; background: none; opacity: .55;
  transition: opacity .18s ease, border-color .18s ease;
}
.slider__thumb img { width: 100%; height: 82px; object-fit: cover; }
.slider__thumb:hover { opacity: .85; }
.slider__thumb.is-active { opacity: 1; border-color: var(--teal-600); }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 20px; }
.lb[hidden] { display: none; }
.lb__backdrop { position: absolute; inset: 0; background: rgba(8, 12, 32, .97); }
.lb__figure { position: relative; margin: 0; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lb__figure img { max-width: min(92vw, 640px); max-height: 82vh; width: auto; height: auto; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.lb__counter { color: #c4cfe8; font-size: .86rem; letter-spacing: .06em; }
.lb__nav, .lb__close {
  position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.1); color: #fff;
  display: grid; place-items: center; transition: background .18s ease;
}
.lb__nav:hover, .lb__close:hover { background: rgba(255,255,255,.24); }
.lb__nav svg, .lb__close svg { width: 22px; height: 22px; }
.lb__close { position: absolute; top: 18px; right: 18px; }

@media (prefers-reduced-motion: reduce) {
  .slider__track { transition: none; }
}

/* ---------- Testimonials ---------- */
.testi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.testi__stars { color: var(--gold-500); letter-spacing: 2px; margin-bottom: 10px; }
.testi__card p { margin: 0 0 16px; font-size: 1.02rem; }
.testi__who { display: flex; align-items: center; gap: 12px; }
.testi__who .av { width: 42px; height: 42px; border-radius: 50%; background: var(--teal-100); color: var(--teal-700); display: grid; place-items: center; font-weight: 700; }
.testi__who b { display: block; font-size: .95rem; }
.testi__who small { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 22px 44px 22px 0; font-family: var(--ff-head); font-size: 1.15rem; color: var(--teal-900); position: relative; }
.faq__q::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--gold-600); transition: transform .2s; }
.faq__item.is-open .faq__q::after { content: "−"; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a p { margin: 0 0 22px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact__box { background: var(--teal-800); color: #eef1fa; border-radius: var(--radius); padding: 36px; }
.contact__box h3 { color: #fff; font-size: 1.5rem; margin: 0 0 8px; }
.contact__box p { color: #b9c3e0; }
.contact__list { list-style: none; padding: 0; margin: 22px 0; }
.contact__list li { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.contact__list .ic { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.1); display: grid; place-items: center; color: var(--gold-300); flex: none; }
.socials { display: flex; gap: 12px; margin-top: 8px; }
.socials a { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.1); display: grid; place-items: center; color: #fff; transition: background .2s; }
.socials a:hover { background: var(--gold-500); color: #0a1030; }
.socials svg { width: 22px; height: 22px; }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.form label { display: block; font-weight: 600; font-size: .9rem; margin: 14px 0 6px; }
.form input, .form select, .form textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; font-family: inherit; font-size: 1rem; background: #fbfaf6; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--teal-600); border-color: transparent; }
.form .btn { margin-top: 22px; }
.form__note { font-size: .8rem; color: var(--muted); margin-top: 12px; }

/* ---------- Footer ---------- */
.footer { background: var(--teal-900); color: #9aa6c8; padding: 54px 0 26px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer h4 { color: #fff; font-family: var(--ff-body); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.footer a { display: block; padding: 5px 0; color: #9aa6c8; }
.footer a:hover { color: var(--gold-300); }
.footer__brand p { max-width: 320px; font-size: .92rem; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; padding-top: 20px; font-size: .82rem; color: #8390b5; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--wa); color: #06331c; font-weight: 800;
  padding: 14px 20px 14px 16px; border-radius: 999px;
  box-shadow: 0 18px 40px -14px rgba(18,140,75,.9);
  transition: transform .18s ease;
}
.wa-float:hover { transform: translateY(-2px) scale(1.02); }
.wa-float svg { width: 26px; height: 26px; }
.wa-float span { font-size: .95rem; }

/* Ritorno alla home, speculare al pulsante WhatsApp. Sta solo sulle pagine
   di servizio: sulla home non avrebbe senso. Stesso z-index del WhatsApp,
   così lightbox (90) e banner cookie (95) restano comunque sopra. */
.home-float {
  position: fixed; left: 20px; bottom: 20px; z-index: 80;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--teal-800); color: #fff; font-weight: 700;
  padding: 14px 20px 14px 16px; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.18);
  box-shadow: 0 18px 40px -14px rgba(8,12,40,.85);
  transition: transform .18s ease, background .18s ease;
}
.home-float:hover { transform: translateY(-2px) scale(1.02); background: var(--teal-700); }
.home-float svg { width: 20px; height: 20px; flex: none; }
.home-float span { font-size: .95rem; }

/* ---------- Consenso nel modulo ---------- */
.form__consent { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 14px; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.form__consent input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--teal-600); }
.form__consent a { text-decoration: underline; color: var(--teal-700); }

/* ---------- Avviso privacy in basso ---------- */
.cbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; background: var(--teal-900); color: #dbe3f5; border-top: 2px solid var(--teal-600); box-shadow: 0 -18px 40px -22px rgba(0,0,0,.8); }
.cbar[hidden] { display: none; }
.cbar__inner { max-width: var(--container); margin: 0 auto; padding: 18px 22px; display: flex; align-items: center; gap: 26px; }
.cbar__text { margin: 0; font-size: .92rem; line-height: 1.55; }
.cbar__text b { color: #fff; }
.cbar__text a { color: var(--gold-300); text-decoration: underline; }
.cbar__actions { margin-left: auto; display: flex; gap: 10px; flex: none; }
.cbar__btn { padding: 11px 22px; font-size: .92rem; }

/* ---------- Pagine legali ---------- */
.legal__wrap { max-width: 800px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 12px 0 10px; }
.legal h2 { font-size: 1.38rem; margin: 40px 0 12px; color: var(--teal-900); }
.legal h3 { font-size: 1.08rem; margin: 26px 0 8px; color: var(--teal-900); }
.legal p, .legal li { color: var(--muted); line-height: 1.7; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal a:not(.btn) { color: var(--teal-700); text-decoration: underline; }
.legal__meta { font-size: .92rem; }
.legal code, .legal .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; background: var(--teal-100); color: var(--teal-900); padding: 2px 7px; border-radius: 6px; }
.legal__todo { background: #fff6e5; border: 1px solid #f0d9a8; border-left: 4px solid #d9a441; border-radius: var(--radius-sm); padding: 18px 20px; margin: 26px 0; font-size: .94rem; color: #6b5220; line-height: 1.65; }
.legal__todo code { background: #f6e6c4; color: #6b5220; }
.legal__box { background: var(--cream); border: 1px solid var(--line); border-left: 4px solid var(--teal-600); border-radius: var(--radius-sm); padding: 18px 20px; margin: 18px 0; font-size: .95rem; line-height: 1.65; }
.legal__highlight { background: var(--teal-100); border-radius: var(--radius-sm); padding: 16px 20px; color: var(--teal-900) !important; }
.legal__tablewrap { overflow-x: auto; margin: 16px 0 22px; }
.legal__table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 520px; }
.legal__table th, .legal__table td { border: 1px solid var(--line); padding: 11px 13px; text-align: left; vertical-align: top; color: var(--muted); }
.legal__table th { background: var(--cream); color: var(--teal-900); font-weight: 700; }
.legal__reset { padding: 9px 16px; font-size: .86rem; margin-top: 6px; }
.legal__back { margin-top: 44px; }
.footer__bottom code.todo { background: rgba(255,255,255,.12); color: #f0d9a8; }

/* ---------- Disclaimer bar ---------- */
.mock-banner { background: var(--gold-500); color: #0a1030; text-align: center; font-size: .82rem; font-weight: 700; padding: 7px 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 420px; }
  .steps, .why { grid-template-columns: repeat(2, 1fr); }
  .services, .testi { grid-template-columns: 1fr; }
  .ba-wrap { grid-template-columns: 1fr; }
  .contact__grid, .footer__grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hair { grid-template-columns: 1fr; gap: 34px; }
  .dhi__cols { grid-template-columns: 1fr; gap: 28px; }
  .why-split { grid-template-columns: 1fr; }
  .why-split__img { aspect-ratio: 4 / 3; }
  .hair__pkg { max-width: 560px; margin: 0 auto; }
  .slider { --slide-w: 340px; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .nav.is-open { display: flex; position: absolute; top: 78px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 6px; background: #fff; padding: 18px 22px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.is-open a { padding: 8px 0; width: 100%; }
  .burger { display: block; margin-left: auto; }
  .header__cta { display: none; }
  .header__bar { height: 78px; }
  .brand__logo { height: 56px; }
  section[id], main[id], .legal h2[id] { scroll-margin-top: 86px; }
  .section { padding: 60px 0; }
  .steps, .why, .gallery { grid-template-columns: 1fr; }
  .pkg__list { grid-template-columns: 1fr; }
  .slider { --slide-w: 100%; }
  .dhi { padding: 28px 22px; margin-top: 40px; }
  .dhi--media { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .dhi__intro .btn { white-space: normal; text-align: center; }
  .dhi__img { max-width: 320px; }
  .why-split .why { grid-template-columns: 1fr; }
  .why-split__img { aspect-ratio: 3 / 4; }
  .gallery--duo { grid-template-columns: 1fr 1fr; gap: 12px; }
  .subhead { font-size: 1.2rem; margin-top: 36px; }
  /* Su telefono le frecce vanno sopra la foto, altrimenti le rubano larghezza. */
  .slider__stage { position: relative; gap: 0; }
  .slider__nav {
    position: absolute; top: 50%; z-index: 2; width: 40px; height: 40px;
    transform: translateY(-50%); background: rgba(255,255,255,.92);
  }
  .slider__nav:hover { transform: translateY(-50%); }
  .slider__nav--prev { left: 10px; }
  .slider__nav--next { right: 10px; }
  .lb { padding: 12px; }
  .lb__nav { width: 40px; height: 40px; }
  .cbar__inner { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px 18px; }
  .cbar__actions { margin-left: 0; }
  .cbar__btn { flex: 1; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; }
  /* Su telefono restano due sole pastiglie tonde, una per lato. */
  .home-float span { display: none; }
  .home-float { padding: 13px; left: 16px; bottom: 16px; }
}

/* ============================================================
   Pagine di servizio (es. /trapianto-capelli-albania/)
   Testata scura, briciole di pane e tabella comparativa.
   ============================================================ */
.page-hero { background: var(--teal-900); color: #fff; padding: 44px 0 56px; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); color: #fff; margin: 12px 0 16px; }
.page-hero p { color: #c4cfe8; font-size: 1.08rem; max-width: 640px; margin: 0 0 26px; }
.page-hero .btn { margin-right: 10px; }

.crumbs { font-size: .85rem; color: var(--muted); }
.crumbs a { color: var(--gold-600); }
.crumbs i { font-style: normal; margin: 0 7px; opacity: .45; }
/* Sul fondo scuro il link va distinto dal testo della pagina corrente,
   altrimenti "Home" non sembra cliccabile e la via di ritorno sparisce. */
.page-hero .crumbs { color: #9aa6c8; }
.page-hero .crumbs a { color: var(--gold-300); }
.page-hero .crumbs a:hover { text-decoration: underline; }

/* La tabella scorre da sola su telefono invece di allargare la pagina. */
.tabella-wrap { overflow-x: auto; }
.tabella { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tabella th, .tabella td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabella thead th { font-family: var(--ff-body); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tabella tbody th { font-weight: 700; color: var(--teal-900); white-space: nowrap; }
.tabella tr:last-child th, .tabella tr:last-child td { border-bottom: 0; }

/* Blocco di testo lungo, largo come la colonna leggibile. */
.prosa { max-width: 760px; margin: 0 auto; }
.prosa p { color: var(--muted); line-height: 1.75; }
.prosa ul { padding-left: 22px; color: var(--muted); line-height: 1.75; }
.prosa li { margin-bottom: 8px; }
.prosa h3 { margin: 34px 0 10px; }
