/* =========================================================
   PLUS DIMENSIONE SALUTE — Section components (v2)
   ========================================================= */

/* ---------- Section header ---------- */
.shead { max-width: 680px; }
.shead.center { margin-inline: auto; text-align: center; }
.shead .eyebrow { margin-bottom: 1rem; }
.shead h2 { margin-bottom: .9rem; }

/* ---------- HERO (full-bleed image) ---------- */
.hero { position: relative; min-height: clamp(560px, 82vh, 760px); display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; background-color: var(--azzurro-100); }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(15,32,48,.82) 0%, rgba(15,32,48,.58) 42%, rgba(15,32,48,.18) 70%, rgba(15,32,48,.05) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-block: clamp(40px,7vw,80px); }
.hero-content { max-width: 640px; color: #fff; }
.hero .eyebrow { color: #fff; }
.hero .eyebrow::before { background: var(--arancio); }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 4rem); margin-top: 1.1rem; }
.hero h1 .hl { color: #ffd9b8; }
.hero p { color: rgba(255,255,255,.9); font-size: clamp(1.08rem,1.5vw,1.3rem); margin-top: 1.2rem; max-width: 52ch; }
.hero-cta { display: flex; gap: .9rem; margin-top: 2.1rem; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 2rem; margin-top: 2.6rem; flex-wrap: wrap; }
.hero-trust .ht { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 600; font-size: .95rem; }
.hero-trust .ht svg { width: 22px; height: 22px; color: #ffd9b8; flex: none; }
@media (max-width: 600px){ .hero-bg::after { background: linear-gradient(180deg, rgba(15,32,48,.55), rgba(15,32,48,.82)); } }

/* ---------- Appointment quick bar (overlaps hero bottom) ---------- */
.quickbar { position: relative; z-index: 5; margin-top: -46px; }
.quickbar-inner { background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-md); display: grid; grid-template-columns: repeat(3,1fr); overflow: hidden; }
.qb-item { display: flex; align-items: center; gap: 1rem; padding: 22px 26px; border-right: 1px solid var(--line); }
.qb-item:last-child { border-right: 0; }
.qb-ico { width: 50px; height: 50px; border-radius: 14px; flex: none; display: grid; place-items: center; background: var(--azzurro-50); color: var(--azzurro); }
.qb-ico svg { width: 24px; height: 24px; }
.qb-lbl { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--slate-2); font-weight: 700; }
.qb-val { display: block; font-weight: 800; color: var(--ink); font-size: 1.04rem; margin-top: 6px; }
.qb-val small { display:block; font-weight:600; font-size:.82rem; color:var(--slate); letter-spacing:0; text-transform:none; }
@media (max-width: 820px){ .quickbar-inner { grid-template-columns: 1fr; } .qb-item { border-right: 0; border-bottom: 1px solid var(--line); } .qb-item:last-child { border-bottom: 0; } }

/* ---------- Intro split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.split.rev .split-media { order: -1; }
.split-media { position: relative; }
.split-media .ph { aspect-ratio: 4/3.4; }
.split-media .badge {
  position: absolute; right: -18px; bottom: -18px; background: #fff; border-radius: var(--r-md);
  box-shadow: var(--sh-md); padding: 16px 20px; display: flex; align-items: center; gap: .9rem;
}
.split-media .badge .n { font-size: 1.9rem; font-weight: 800; color: var(--azzurro); line-height: 1; }
.split-media .badge .t { font-size: .82rem; color: var(--slate); font-weight: 600; line-height: 1.25; }
.checklist { display: grid; gap: .9rem; margin-top: 1.8rem; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; list-style: none; }
.checklist .ck { width: 26px; height: 26px; border-radius: 50%; flex: none; background: var(--azzurro-50); color: var(--azzurro); display: grid; place-items: center; margin-top: 1px; }
.checklist .ck svg { width: 15px; height: 15px; }
.checklist b { color: var(--ink); font-weight: 700; }
.checklist span { color: var(--slate); }
.checklist li > div { font-size: .98rem; }
@media (max-width: 820px){ .split { grid-template-columns: 1fr; } .split.rev .split-media { order: 0; } .split-media .ph { aspect-ratio: 16/10; } }

/* ---------- Treatments grid (square photo cards) ---------- */
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%,250px),1fr)); gap: 24px; }
.tcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s; display: flex; flex-direction: column; }
.tcard:hover { transform: translateY(-6px); box-shadow: var(--sh-md); border-color: transparent; }
.tcard-media { position: relative; aspect-ratio: 1/1; overflow: hidden; background: linear-gradient(135deg,var(--azzurro-100),var(--glicine-100)); }
.tcard-media .img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .6s var(--ease-out); }
.tcard:hover .tcard-media .img { transform: scale(1.07); }
.tcard-ico { position: absolute; left: 14px; top: 14px; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.92); color: var(--azzurro); display: grid; place-items: center; box-shadow: var(--sh-xs); }
.tcard-ico svg { width: 22px; height: 22px; }

/* Icone-maschera (ereditano il colore del badge: azzurre normali, bianche in hover) */
.ic { display: inline-block; background-color: currentColor;
  -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.tcard-ico .ic { width: 24px; height: 24px; }
.nav-dd-item .dd-ico .ic { width: 19px; height: 19px; }
.tcard-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.tcard-body h3 { font-size: 1.18rem; margin-bottom: .4rem; }
.tcard-body p { font-size: .93rem; color: var(--slate); flex: 1; }
.tcard-link { display: inline-flex; align-items: center; gap: .4em; margin-top: 1rem; font-weight: 700; font-size: .9rem; color: var(--azzurro); }
.tcard-link svg { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.tcard:hover .tcard-link svg { transform: translateX(4px); }

/* ---------- Stats band ---------- */
.statsband { background: linear-gradient(120deg, var(--azzurro), var(--glicine-dark)); color: #fff; border-radius: var(--r-xl); padding: clamp(36px,5vw,56px); }
.statsband-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(1rem,3vw,2rem); text-align: center; }
.statsband .num { font-size: clamp(2.2rem,4vw,3.2rem); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.statsband .lbl { margin-top: .5rem; color: rgba(255,255,255,.86); font-weight: 600; font-size: .95rem; }
@media (max-width: 640px){ .statsband-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; } }

/* ---------- Feature cards (why us / tech / safety) ---------- */
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 22px; }
.fcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; transition: transform .35s var(--ease-out), box-shadow .35s; }
.fcard:hover { transform: translateY(-5px); box-shadow: var(--sh-sm); }
.fcard .f-ico { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 1.1rem; background: var(--azzurro-50); color: var(--azzurro); }
.fcard.alt .f-ico { background: var(--arancio-50); color: var(--arancio-dark); }
.fcard.alt2 .f-ico { background: var(--glicine-50); color: var(--glicine-dark); }
.fcard .f-ico svg { width: 26px; height: 26px; }
.fcard h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.fcard p { font-size: .94rem; color: var(--slate); }

/* ---------- Testimonials ---------- */
.testi { position: relative; }
.testi-track { display: flex; transition: transform .6s var(--ease-out); }
.testi-slide { min-width: 100%; padding: 0 4px; }
.testi-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(28px,4vw,46px); box-shadow: var(--sh-sm); max-width: 800px; margin-inline: auto; text-align: center; }
.testi-stars { color: var(--arancio); font-size: 1.15rem; letter-spacing: 2px; }
.testi-quote { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.2rem,2.2vw,1.6rem); line-height: 1.45; color: var(--ink); margin: 1.1rem 0 1.5rem; }
.testi-author { display: flex; align-items: center; justify-content: center; gap: .8rem; }
.testi-author .av { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg,var(--azzurro),var(--glicine)); color: #fff; display: grid; place-items: center; font-weight: 700; }
.testi-author .nm { font-weight: 700; color: var(--ink); }
.testi-author .ro { font-size: .82rem; color: var(--slate); }
.testi-ctrl { display: flex; align-items: center; justify-content: center; gap: 1.1rem; margin-top: 1.8rem; }
.testi-arrow { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--ink); transition: .25s var(--ease-out); }
.testi-arrow:hover { background: var(--azzurro); color: #fff; border-color: var(--azzurro); }
.testi-arrow svg { width: 20px; height: 20px; }
.testi-dots { display: flex; gap: 8px; }
.testi-dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: var(--line); padding: 0; transition: .3s; }
.testi-dots button.active { background: var(--azzurro); width: 24px; border-radius: 5px; }

/* ---------- News / blog teasers ---------- */
.ngrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 24px; }
.ncard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .35s var(--ease-out), box-shadow .35s; display: flex; flex-direction: column; }
.ncard:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.ncard-media { aspect-ratio: 16/10; position: relative; overflow: hidden; background: linear-gradient(135deg,var(--azzurro-100),var(--glicine-100)); }
.ncard-media .img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .6s var(--ease-out); }
.ncard:hover .ncard-media .img { transform: scale(1.06); }
.ncard-tag { position: absolute; left: 14px; top: 14px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #fff; background: var(--arancio); padding: .4em .8em; border-radius: var(--r-pill); }
.ncard-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.ncard-body .date { font-size: .8rem; color: var(--slate-2); font-weight: 600; }
.ncard-body h3 { font-size: 1.12rem; margin: .5rem 0 .6rem; line-height: 1.25; }
.ncard-body p { font-size: .92rem; color: var(--slate); flex: 1; }
.ncard-body .more { margin-top: 1rem; font-weight: 700; font-size: .9rem; color: var(--azzurro); display: inline-flex; align-items: center; gap: .4em; }

/* ---------- CTA band ---------- */
.ctaband { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(40px,6vw,72px); color: #fff; }
.ctaband-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
.ctaband-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(31,111,172,.95), rgba(111,92,176,.82)); }
.ctaband-inner { position: relative; z-index: 2; text-align: center; max-width: 640px; margin-inline: auto; }
.ctaband h2 { color: #fff; }
.ctaband p { color: rgba(255,255,255,.92); margin-top: 1rem; font-size: 1.1rem; }
.ctaband .hero-cta { justify-content: center; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(44px,7vw,84px); background: var(--azzurro-50); }
.page-hero::before { content: ''; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, var(--glicine-100), transparent 70%); opacity: .7; }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.1rem,4.5vw,3.4rem); max-width: 20ch; }
.page-hero .lead { margin-top: 1rem; max-width: 56ch; }
.crumbs { font-size: .82rem; font-weight: 600; color: var(--slate); margin-bottom: 1rem; }
.crumbs a:hover { color: var(--azzurro); }
.crumbs .sep { margin: 0 .5em; color: var(--slate-2); }

/* ---------- Service detail rows (servizi page) ---------- */
.srow { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; padding-block: clamp(34px,5vw,56px); border-bottom: 1px solid var(--line-2); scroll-margin-top: 100px; }
.srow:last-child { border-bottom: 0; }
.srow.rev .srow-media { order: -1; }
.srow-media .ph { aspect-ratio: 4/3; }
.srow .num { font-size: .82rem; font-weight: 700; color: var(--arancio); letter-spacing: .04em; }
.srow h2 { margin: .5rem 0 .8rem; }
.srow .tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.3rem; }
.srow .tags span { font-size: .85rem; font-weight: 600; color: var(--azzurro-dark); background: var(--azzurro-50); padding: .45em .9em; border-radius: var(--r-pill); }
@media (max-width: 820px){ .srow { grid-template-columns: 1fr; gap: 1.5rem; } .srow.rev .srow-media { order: 0; } .srow-media .ph { aspect-ratio: 16/10; } }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 24px; }
.team-card { text-align: center; }
.team-card .ph { aspect-ratio: 3/3.4; border-radius: var(--r-lg); margin-bottom: 1rem; }
.team-card h3 { font-size: 1.12rem; }
.team-card .role { color: var(--azzurro); font-weight: 700; font-size: .88rem; }
.team-card p { font-size: .9rem; color: var(--slate); margin-top: .3rem; }

/* ---------- Gallery ---------- */
.gallery { columns: 3; column-gap: 18px; }
.gallery .g-item { break-inside: avoid; margin-bottom: 18px; border-radius: var(--r-md); overflow: hidden; position: relative; }
.gallery .ph { border-radius: var(--r-md); }
.gallery .g-item:nth-child(3n+1) .ph { aspect-ratio: 3/4; }
.gallery .g-item:nth-child(3n+2) .ph { aspect-ratio: 1/1; }
.gallery .g-item:nth-child(3n+3) .ph { aspect-ratio: 4/5; }
@media (max-width: 820px){ .gallery { columns: 2; } }
@media (max-width: 520px){ .gallery { columns: 1; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 12px; overflow: hidden; background: #fff; transition: box-shadow .3s, border-color .3s; }
.faq-item.open { box-shadow: var(--sh-sm); border-color: var(--azzurro-100); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.faq-q .pm { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--azzurro-50); color: var(--azzurro); transition: .3s var(--ease); }
.faq-item.open .pm { transform: rotate(45deg); background: var(--azzurro); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a p { padding: 0 22px 20px; color: var(--slate); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,4vw,3.5rem); align-items: start; }
@media (max-width: 880px){ .contact-grid { grid-template-columns: 1fr; } }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(24px,3vw,38px); box-shadow: var(--sh-sm); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .82rem; font-weight: 700; color: var(--ink-2); margin-bottom: .45rem; }
.field input, .field textarea { width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink); padding: .82em 1em; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--paper-2); transition: border-color .25s, box-shadow .25s, background .25s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--azzurro); box-shadow: 0 0 0 4px var(--azzurro-50); background: #fff; }
.field textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px){ .form-row { grid-template-columns: 1fr; } }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .85rem; color: var(--slate); margin: 4px 0 16px; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--azzurro); flex: none; }
.form-ok { display: none; text-align: center; padding: 26px; flex-direction: column; align-items: center; gap: 12px; }
.form-ok.show { display: flex; animation: okpop .5s var(--ease-out); }
.form-ok .ok-ring { width: 70px; height: 70px; border-radius: 50%; background: var(--azzurro); display: grid; place-items: center; color: #fff; }
.form-ok .ok-ring svg { width: 34px; height: 34px; }
@keyframes okpop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
.info-card { display: flex; gap: 1rem; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.info-card .i-ico { width: 48px; height: 48px; border-radius: 13px; flex: none; display: grid; place-items: center; background: var(--azzurro-50); color: var(--azzurro); }
.info-card .i-ico svg { width: 22px; height: 22px; }
.info-card .lbl { font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--slate-2); font-weight: 700; }
.info-card .val { font-weight: 700; color: var(--ink); margin-top: 2px; }
.map-wrap { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); margin-top: 1.4rem; }
.map-wrap iframe { display: block; width: 100%; height: 300px; border: 0; }


/* ---------- Reasons list (perché) ---------- */
.reasons { display: grid; gap: 1.3rem; margin: 1.8rem 0 2rem; }
.reason { display: flex; gap: 1rem; align-items: flex-start; }
.reason .r-ico { width: 50px; height: 50px; border-radius: 14px; flex: none; display: grid; place-items: center; background: var(--azzurro-50); color: var(--azzurro); }
.reason.alt .r-ico { background: var(--arancio-50); color: var(--arancio-dark); }
.reason.alt2 .r-ico { background: var(--glicine-50); color: var(--glicine-dark); }
.reason .r-ico svg { width: 24px; height: 24px; }
.reason h4 { font-size: 1.08rem; margin-bottom: .2rem; }
.reason p { font-size: .94rem; color: var(--slate); }

/* ---------- Nav dropdown (Trattamenti) ---------- */
.nav-dd { position: relative; display: flex; align-items: center; }
.nav-dd-trigger {
  display: inline-flex; align-items: center; gap: .3em;
  font-weight: 600; font-size: .96rem; color: var(--ink-2);
  padding: .6em .95em; border-radius: var(--r-sm); cursor: pointer;
  transition: color .2s, background .2s;
}
.nav-dd-trigger .chev { width: 15px; height: 15px; transition: transform .28s var(--ease); }
.nav-dd:hover .nav-dd-trigger, .nav-dd.open .nav-dd-trigger { color: var(--azzurro); }
.nav-dd:hover .nav-dd-trigger .chev, .nav-dd.open .nav-dd-trigger .chev { transform: rotate(180deg); }
/* invisible bridge so hover survives the gap */
.nav-dd::after { content: ''; position: absolute; top: 100%; left: -10px; right: -10px; height: 18px; }
.nav-dd-menu {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); padding: 12px;
  width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  opacity: 0; visibility: hidden; pointer-events: none; z-index: 130;
  transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s;
}
.nav-dd:hover .nav-dd-menu, .nav-dd.open .nav-dd-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dd-menu::before {
  content: ''; position: absolute; top: -7px; left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 14px; height: 14px; background: #fff; border-left: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: 3px 0 0 0;
}
.nav-dd-item { display: flex; align-items: center; gap: .7rem; padding: .62em .7em; border-radius: var(--r-sm); transition: background .2s; }
.nav-dd-item:hover { background: var(--azzurro-50); }
.nav-dd-item .dd-ico { width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--azzurro-50); color: var(--azzurro); transition: background .2s, color .2s; }
.nav-dd-item:hover .dd-ico { background: var(--azzurro); color: #fff; }
.nav-dd-item .dd-ico svg { width: 18px; height: 18px; }
.nav-dd-item .dd-t { font-weight: 700; font-size: .9rem; color: var(--ink); line-height: 1.2; }
.nav-dd-all { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: .5em; margin-top: 6px; padding: .85em; border-radius: var(--r-sm); background: var(--azzurro); color: #fff; font-weight: 700; font-size: .9rem; transition: background .2s; }
.nav-dd-all:hover { background: var(--azzurro-dark); }
.nav-dd-all svg { width: 17px; height: 17px; }

/* ---------- Mobile menu accordion ---------- */
.mm-acc { border-bottom: 1px solid var(--line-2); }
.mm-acc-trigger { width: 100%; text-align: left; background: none; border: none; display: flex; justify-content: space-between; align-items: center; font-size: 1.3rem; font-weight: 700; color: var(--ink); padding: .7em 0; }
.mm-acc-trigger .chev { width: 22px; height: 22px; color: var(--slate); transition: transform .3s var(--ease); }
.mm-acc.open .mm-acc-trigger { color: var(--azzurro); }
.mm-acc.open .mm-acc-trigger .chev { transform: rotate(180deg); color: var(--azzurro); }
.mm-acc-panel { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); display: flex; flex-direction: column; }
.mm-acc-panel a { font-size: 1.02rem; font-weight: 600; color: var(--slate); padding: .5em 0 .5em 1rem; border-bottom: none; }
.mm-acc-panel a:hover { color: var(--azzurro); }
.mm-acc-panel .mm-acc-all { color: var(--azzurro); font-weight: 700; padding-bottom: .9em; }

/* ---------- Tech tags (perché) ---------- */
.tech-tags { display: flex; flex-wrap: wrap; gap: .6rem; margin: .4rem 0 2rem; }
.tech-tag { display: inline-flex; align-items: center; gap: .5em; font-size: .86rem; font-weight: 700; color: var(--azzurro-dark); background: #fff; border: 1px solid var(--azzurro-100); padding: .55em 1em; border-radius: var(--r-pill); box-shadow: var(--sh-xs); }
.tech-tag svg { width: 17px; height: 17px; color: var(--azzurro); }

/* ---------- Perché sceglierci (premium grid) ---------- */
.why2-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.4rem,4vw,3.5rem); align-items: end; margin-bottom: clamp(2rem,4vw,3rem); }
.why2-head .h2 { letter-spacing: -.025em; }
.why2-intro { padding-bottom: .3rem; }
.why2-intro b { color: var(--ink); font-weight: 700; }
@media (max-width: 820px){ .why2-head { grid-template-columns: 1fr; gap: 1rem; align-items: start; } }

.why2-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 1.6vw, 22px); }
.why2-card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(26px, 2.6vw, 38px);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s;
}
.why2-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: transparent; }
.why2-card.feature { grid-row: span 1; }
.why2-card.feature::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--azzurro), var(--glicine)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.why2-card.feature:hover::before { transform: scaleX(1); }
.why2-card.feature.alt::before { background: linear-gradient(90deg, var(--arancio), var(--glicine)); }

.why2-num { position: absolute; top: clamp(18px,2vw,26px); right: clamp(20px,2.4vw,30px); font-family: var(--font-serif); font-size: clamp(2.4rem,4vw,3.4rem); font-weight: 600; font-style: italic; color: var(--azzurro-100); line-height: 1; letter-spacing: -.02em; pointer-events: none; }
.why2-card.feature.alt .why2-num { color: var(--arancio-100); }

.why2-ico { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: var(--azzurro-50); color: var(--azzurro); margin-bottom: 1.2rem; transition: transform .4s var(--ease-out); }
.why2-card:hover .why2-ico { transform: scale(1.06) rotate(-3deg); }
.why2-ico svg { width: 28px; height: 28px; }
.why2-card.alt .why2-ico { background: var(--arancio-50); color: var(--arancio-dark); }
.why2-ico.sm { width: 50px; height: 50px; border-radius: 14px; }
.why2-ico.sm svg { width: 24px; height: 24px; }
.why2-ico.glic { background: var(--glicine-50); color: var(--glicine-dark); }

.why2-kicker { display: block; font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-2); margin-bottom: .5rem; }
.why2-card h3 { font-size: clamp(1.32rem, 2vw, 1.72rem); line-height: 1.14; margin-bottom: .75rem; }
.why2-card h4 { font-size: 1.18rem; margin-bottom: .5rem; }
.why2-card p { color: var(--slate); font-size: 1rem; line-height: 1.62; }
.why2-card p b { color: var(--ink); font-weight: 700; }
.why2-tagline { margin-top: 1.1rem !important; font-family: var(--font-serif); font-style: italic; font-size: clamp(1.1rem,1.5vw,1.28rem) !important; color: var(--azzurro-dark) !important; }
.why2-card .tech-tags { margin: 1.3rem 0 0; }

@media (max-width: 820px){ .why2-grid { grid-template-columns: 1fr; } }

.why2-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; flex-wrap: wrap; margin-top: clamp(2rem,3.5vw,2.8rem); padding-top: clamp(1.6rem,2.5vw,2rem); border-top: 1px solid var(--azzurro-100); }
.why2-rating { display: flex; align-items: baseline; gap: .55rem; flex-wrap: wrap; }
.why2-rating b { font-size: 1.8rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1; }
.why2-rating .stars { color: var(--arancio); letter-spacing: 1px; font-size: 1.05rem; }
.why2-rating small { width: 100%; color: var(--slate); font-size: .9rem; font-weight: 600; }

/* ---------- Convenzioni ---------- */
.conv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.conv-tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7rem;
  text-align: center; min-height: 108px; padding: 1.3rem 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; color: var(--ink);
  box-shadow: var(--sh-xs);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s, background .3s;
}
/* spunta "convenzionato" */
.conv-tile::before {
  content: ''; width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: var(--azzurro-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e8fd6' stroke-width='3'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/15px no-repeat;
  transition: background .3s;
}
.conv-tile:hover {
  transform: translateY(-4px); box-shadow: var(--sh-md);
  border-color: var(--azzurro-100); background: var(--azzurro-50);
}
.conv-tile:hover::before {
  background: var(--azzurro) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/15px no-repeat;
}
@media (max-width: 900px){ .conv-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px){ .conv-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .conv-tile { font-size: .95rem; min-height: 96px; padding: 1.1rem .8rem; } }

.conv-foot { margin-top: 2.6rem; }
.conv-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.conv-mode { display: flex; gap: 1rem; align-items: flex-start; background: var(--azzurro-50); border-radius: var(--r-lg); padding: 1.4rem 1.6rem; }
.conv-mode .cm-ico { width: 46px; height: 46px; border-radius: 13px; flex: none; display: grid; place-items: center; background: #fff; color: var(--azzurro); box-shadow: var(--sh-xs); }
.conv-mode .cm-ico svg { width: 24px; height: 24px; }
.conv-mode h4 { font-size: 1.08rem; margin-bottom: .25rem; }
.conv-mode p { font-size: .92rem; color: var(--slate); }
.conv-note { text-align: center; margin-top: 1.8rem; color: var(--slate); font-size: .98rem; }
.conv-note a { color: var(--azzurro); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px){ .conv-modes { grid-template-columns: 1fr; gap: 1rem; } }

/* ---------- Treatments carousel ---------- */
.tcaro { position: relative; }
.tcaro-view { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none; cursor: grab; scroll-snap-type: x mandatory; padding-block: 6px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.tcaro-view::-webkit-scrollbar { display: none; }
.tcaro-view.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.tcaro-track { display: flex; gap: 24px; width: max-content; }
.tcaro .tcard { flex: 0 0 auto; width: clamp(258px, 74vw, 288px); scroll-snap-align: start; }
.tcaro-ctrl { display: flex; align-items: center; gap: 1rem; margin-top: 1.8rem; flex-wrap: wrap; }
.tcaro-arrows { display: flex; gap: 10px; }
.tcaro-arrow { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--ink); transition: .25s var(--ease-out); box-shadow: var(--sh-xs); }
.tcaro-arrow:hover { background: var(--azzurro); color: #fff; border-color: var(--azzurro); }
.tcaro-arrow svg { width: 20px; height: 20px; }
.tcaro-hint { font-size: .82rem; font-weight: 600; color: var(--slate-2); }

/* =========================================================
   RESPONSIVE — rifiniture adattabilità mobile/tablet (home)
   ========================================================= */

/* Hero: su mobile niente altezza eccessiva, contenuto ancorato in basso
   (sopra la zona più scura del gradiente → testo più leggibile) */
@media (max-width: 820px){
  .hero { min-height: clamp(470px, 76vh, 600px); align-items: flex-end; }
  .hero-inner { padding-block: clamp(60px, 17vw, 96px) clamp(26px, 8vw, 48px); }
  .hero-content { max-width: 100%; }
  .hero h1 { font-size: clamp(2.05rem, 7.6vw, 3rem); }
  .hero p { font-size: clamp(1rem, 4vw, 1.15rem); margin-top: 1rem; }
  .hero-cta { margin-top: 1.7rem; }
  .hero-trust { gap: .7rem 1.5rem; margin-top: 1.6rem; }
}

/* Quick bar: quando le 3 colonne si impilano (≤820px) NON deve più
   accavallarsi sull'hero → la appoggiamo sotto con un margine positivo.
   Questo è il fix della sovrapposizione vista nello screenshot. */
@media (max-width: 820px){
  .quickbar { margin-top: 20px; }
}

/* Schermi molto piccoli (telefoni stretti) */
@media (max-width: 430px){
  .hero-cta .btn { width: 100%; }          /* bottoni a tutta larghezza, niente testo schiacciato */
  .hero-trust .ht { font-size: .92rem; }
  .qb-item { padding: 18px 20px; }
}

/* -----------------------------------------------------------
   Centratura mobile: quando le sezioni si impilano, testi e
   bottoni al centro danno un layout più equilibrato.
   (gli elenchi puntati restano a sinistra: più leggibili)
   ----------------------------------------------------------- */
@media (max-width: 820px){
  /* Sezioni "split": Chi siamo / Sicurezza & igiene
     → eyebrow, titolo, testo e bottone centrati */
  .split > div:not(.split-media){ text-align: center; }
  .split > div:not(.split-media) .eyebrow{ justify-content: center; }
  .split .checklist{ text-align: left; }          /* elenco resta leggibile a sx */

  /* Perché sceglierci: intestazione + recensioni + bottone al centro */
  .why2-head{ text-align: center; }
  .why2-head .eyebrow{ justify-content: center; }
  .why2-cta{ justify-content: center; text-align: center; }
  .why2-rating{ justify-content: center; }

  /* Carosello trattamenti: frecce, hint e "Vedi tutti" centrati */
  .tcaro-ctrl{ justify-content: center; }
  .tcaro-ctrl .btn{ margin-left: 0 !important; }   /* toglie l'allineamento a destra */
}

/* ---------- Invisalign (home) ---------- */
.inv-chip {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .78rem; font-weight: 700; letter-spacing: .02em; color: var(--azzurro-dark);
  background: var(--azzurro-50); border: 1px solid var(--azzurro-100);
  padding: .5em 1em; border-radius: var(--r-pill);
}
.inv-chip svg { width: 16px; height: 16px; }
/* striscia orizzontale "come cambia il sorriso" */
.inv-flow {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(165deg, var(--azzurro-50) 0%, #fff 55%);
  border: 1px solid var(--azzurro-100); border-radius: var(--r-xl);
  padding: clamp(26px, 3.4vw, 44px); box-shadow: var(--sh-md);
}
.inv-flow-head { text-align: center; margin-bottom: clamp(1.8rem, 3vw, 2.6rem); }
.inv-flow-head h3 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); margin-top: .9rem; }
.inv-flow-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; position: relative; margin-bottom: 2rem; }
.inv-flow-steps::before { content: ''; position: absolute; left: 12.5%; right: 12.5%; top: 19px; height: 2px; background: var(--azzurro-100); z-index: 0; }
.inv-fstep { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .55rem; }
.inv-n {
  width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 1rem; color: #fff;
  background: linear-gradient(135deg, var(--azzurro), var(--glicine)); box-shadow: var(--sh-sm);
}
.inv-n.inv-done { background: linear-gradient(135deg, var(--arancio), var(--arancio-dark)); }
.inv-n svg { width: 20px; height: 20px; }
.inv-fstep b { color: var(--ink); font-size: 1rem; }
.inv-fstep small { color: var(--slate); font-size: .87rem; line-height: 1.45; max-width: 24ch; }
.inv-bar { height: 9px; border-radius: 99px; background: var(--azzurro-100); overflow: hidden; }
.inv-bar span { display: block; height: 100%; width: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--azzurro), var(--glicine) 55%, var(--arancio)); }
.inv-bar-lbls { display: flex; justify-content: space-between; margin-top: .55rem; font-size: .82rem; font-weight: 700; color: var(--slate-2); }
@media (max-width: 760px){
  .inv-flow-steps { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  .inv-flow-steps::before { display: none; }
}
@media (max-width: 440px){ .inv-flow-steps { grid-template-columns: 1fr; } }

/* ---------- Hero: vetrina (tour video + trattamenti in evidenza) ---------- */
.hs-video {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 22px; background: #0f2030;
  border: 1px solid rgba(255,255,255,.22); box-shadow: 0 28px 60px -24px rgba(0,0,0,.6);
}
/* niente controlli, niente click: il video non si può aprire a schermo intero */
.hs-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.hs-video::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(10,22,34,.8) 0%, rgba(10,22,34,0) 46%),
              linear-gradient(to bottom, rgba(10,22,34,.35) 0%, transparent 28%);
}
.hs-live {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: .45em;
  font-size: .72rem; font-weight: 700; letter-spacing: .03em; color: #fff;
  padding: .42em .8em; border-radius: var(--r-pill);
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hs-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--arancio); animation: hsPulse 1.8s ease-out infinite; }
@keyframes hsPulse { 0% { box-shadow: 0 0 0 0 rgba(240,138,60,.75); } 100% { box-shadow: 0 0 0 8px rgba(240,138,60,0); } }
.hs-cap { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; color: rgba(255,255,255,.85); font-size: .78rem; line-height: 1.35; }
.hs-cap b { display: block; color: #fff; font-size: .98rem; font-weight: 800; }

.hs-cards { display: grid; gap: 14px; }
.hs-card {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 20px; background: rgba(255,255,255,.97); color: var(--ink);
  box-shadow: 0 22px 48px -22px rgba(0,0,0,.55);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.hs-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -24px rgba(0,0,0,.6); }
.hs-thumb { display: block; height: 84px; flex: none; background-size: cover; background-position: center; background-color: var(--azzurro-100); }
.hs-body { display: flex; flex-direction: column; gap: 3px; padding: 12px 15px 14px; flex: 1; }
.hs-kick { font-size: .66rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--azzurro); }
.hs-card b { font-size: 1rem; font-weight: 800; line-height: 1.2; color: var(--ink); }
.hs-txt { font-size: .8rem; line-height: 1.38; color: var(--slate); }
.hs-go { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: .3em; font-size: .8rem; font-weight: 800; color: var(--arancio-dark); }
.hs-go svg { width: 14px; height: 14px; transition: transform .3s var(--ease-out); }
.hs-card:hover .hs-go svg { transform: translateX(3px); }

/* Desktop: testo a sinistra, vetrina a destra (dove prima si vedeva solo la foto) */
@media (min-width: 1100px){
  .hero-inner { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,520px); gap: clamp(2.5rem,4vw,4.5rem); align-items: center; }
  .hero h1 { font-size: clamp(2.3rem, 3.4vw, 3.2rem); }
  .hero-trust { gap: .8rem 1.6rem; }
  .hero-showcase { display: grid; grid-template-columns: 1.05fr 1fr; gap: 14px; }
  .hs-video { min-height: 380px; }
  .hero-bg::after { background: linear-gradient(100deg, rgba(15,32,48,.86) 0%, rgba(15,32,48,.66) 45%, rgba(15,32,48,.42) 100%); }
}
/* Tablet: vetrina sotto il testo, tre card affiancate */
@media (max-width: 1099px){
  .hero-showcase { margin-top: 2rem; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; max-width: 760px; }
  .hs-cards { display: contents; }
  .hs-video { min-height: 230px; }
}
/* Telefono: riga da scorrere col dito (la card successiva "sbuca" e invita a scorrere) */
@media (max-width: 680px){
  .hero-showcase {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 6px; scroll-padding-inline: var(--gutter);
    scrollbar-width: none; max-width: none;
  }
  .hero-showcase::-webkit-scrollbar { display: none; }
  .hs-video, .hs-card { flex: 0 0 78%; max-width: 300px; scroll-snap-align: start; }
  .hs-video { min-height: 210px; }
}
@media (prefers-reduced-motion: reduce){ .hs-live i { animation: none; } }

/* ancore interne: compensano la navbar sticky */
section[id] { scroll-margin-top: 90px; }

/* crediti immagini (licenze Creative Commons) */
.foot-credits { margin-top: 1rem; font-size: .74rem; color: var(--slate-2); }
.foot-credits a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
