/* ==========================================================================
   STILI — layout e componenti. Mobile-first: gli stili base sono per telefono,
   i media query (min-width) aggiungono tablet e desktop.
   Il movimento sta in motion.css.
   ========================================================================== */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* spazio per la barra contatti fissa su mobile */
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}

h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-deep); }

:focus-visible {
  outline: 3px solid var(--blue-deep);
  outline-offset: 3px;
  border-radius: 6px;
}
.on-dark :focus-visible, .cta-bar :focus-visible { outline-color: #fff; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  transition: top var(--dur-1);
}
.skip:focus { top: 12px; color: #fff; }

/* ---------- Utilità di tipografia / layout ---------- */
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.stack-md { display: flex; flex-direction: column; gap: 18px; }

.eyebrow {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--blue);
}
.eyebrow--sky { color: var(--sky); }

.h2 {
  font-size: var(--fs-h2);
  letter-spacing: -0.02em;
  font-weight: 500;
  line-height: 1.1;
  text-wrap: balance;
}
.h2--sm { font-size: var(--fs-h2-sm); }
.h2--xl { font-size: clamp(1.875rem, 1.2rem + 3vw, 3.25rem); letter-spacing: -0.03em; line-height: 1.04; }
.h3 { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
.h3--sm { font-size: 1.25rem; }
.h3--xs { font-size: 1.1875rem; }

.prose { font-size: var(--fs-body); line-height: 1.6; color: var(--text); text-wrap: pretty; max-width: 60ch; }

.section { padding-top: var(--section-gap); display: flex; flex-direction: column; gap: 24px; }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 32px; }
.section__head--narrow { max-width: 640px; }
.section__head--center { align-items: center; text-align: center; max-width: 760px; margin-inline: auto; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
}

/* ---------- Segnaposto foto (sostituire con <img>) ---------- */
.ph {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  border-radius: var(--r-md);
  background: repeating-linear-gradient(135deg, var(--mist-3) 0 10px, var(--mist-2) 10px 20px);
  overflow: hidden;
}
.ph__label {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--text);
  background: #fff;
  padding: 5px 9px;
  border-radius: 6px;
}
.ph--wide { aspect-ratio: 16 / 9; }
/* Quando metti una vera foto: <div class="ph"><img ...></div> la riempie */
.ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-deep); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); color: #fff; }
.btn--light { background: rgba(255, 255, 255, 0.88); color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--outline { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn--outline:hover { background: var(--mist); color: var(--ink); }
/* Bottoni contatto: bianchi con testo blu, verdi al passaggio del mouse */
.btn--white { background: #fff; color: var(--ink); border-color: #fff; font-weight: 600; }
.btn--white:hover, .btn--white:focus-visible { background: var(--green); color: #fff; border-color: var(--green); }

.link { align-self: flex-start; font-size: var(--fs-small); font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top);
  background: rgba(244, 248, 251, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); min-height: 44px; }
.brand:hover { color: var(--ink); }
.brand__logo { height: 58px; width: auto; flex: none; }

.nav__cta { display: none; min-height: 44px; }

/* Menu mobile: pannello a tendina sotto l'header */
.nav__links {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: flex;
  flex-direction: column;
  padding: 6px var(--gutter) 14px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 30px -20px rgba(15, 36, 56, 0.35);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
}
.nav__links a {
  display: flex;
  align-items: center;
  min-height: 52px;
  font-size: 1.0625rem;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.nav__links a:last-child { border-bottom: 0; }
.nav__links a:hover { color: var(--blue-deep); }
.site-header.menu-open .nav__links { visibility: visible; opacity: 1; transform: none; }

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: -8px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.nav__bars { position: relative; width: 22px; height: 14px; display: block; }
.nav__bars span { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; }
.nav__bars span:first-child { top: 1px; }
.nav__bars span:last-child { bottom: 1px; }
.site-header.menu-open .nav__bars span:first-child { top: 6px; transform: rotate(45deg); }
.site-header.menu-open .nav__bars span:last-child { bottom: 6px; transform: rotate(-45deg); }

/* Senza JS il menu resta visibile e il toggle sparisce */
html:not(.js) .nav__toggle { display: none; }
html:not(.js) .nav__links { position: static; visibility: visible; opacity: 1; transform: none; flex-direction: row; flex-wrap: wrap; gap: 4px 16px; box-shadow: none; border: 0; padding: 0; }
html:not(.js) .nav__links a { border: 0; min-height: 44px; }
html:not(.js) .nav { flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  margin-top: 8px;
  display: grid;
  gap: 28px;
  padding: clamp(28px, 6vw, 80px) clamp(20px, 5vw, 72px);
  border-radius: var(--r-xl);
  background: linear-gradient(115deg, var(--mist-2) 0%, var(--sky-2) 40%, var(--sky) 75%, var(--sky-3) 100%);
  overflow: hidden;
}
.hero__copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.badge {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.72);
  color: var(--blue-deep);
  border-radius: var(--r-md);
  padding: 7px 14px;
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.35;
}
.hero__title { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -0.03em; font-weight: 500; color: var(--ink); }
.hero__title .line { display: block; }
.hero__title .line__in { display: block; }
.hero__lead { font-size: var(--fs-lead); font-weight: 450; line-height: 1.55; color: var(--ink); max-width: 44ch; text-wrap: pretty; }
.hero__actions { display: flex; flex-direction: column; gap: 10px; }
.hero__actions .btn { width: 100%; min-height: 52px; }
.hero__facts { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-small); font-weight: 500; color: var(--ink); padding-top: 4px; }
.hero__facts li { display: flex; align-items: center; gap: 10px; }
.hero__facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); opacity: 0.55; flex: none; }

.hero__media {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 3;
  max-height: 340px;
  border-radius: var(--r-lg);
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0 10px, rgba(255, 255, 255, 0.15) 10px 20px);
  color: var(--ink);
}
.hero__media .ph__label { background: rgba(255, 255, 255, 0.82); color: var(--ink); }

/* Fibre (SVG disegnato da js/hero-fibers.js) */
.fibers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; color: #fff; opacity: var(--fo, 1); }
.fibers path { fill: none; stroke: currentColor; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* Su telefono le fibre della hero passano dietro al testo: più leggere per non disturbare la lettura */
@media (max-width: 899px) { .hero .fibers { --fo: 0.3; } }
@media (min-width: 900px) { .hero .fibers { -webkit-mask-image: linear-gradient(90deg, transparent 0 35%, #000 70%); mask-image: linear-gradient(90deg, transparent 0 35%, #000 70%); } }

/* ---------- Servizi ---------- */
.services { display: grid; gap: 16px; }
.services > li { display: flex; }
.service { display: flex; flex-direction: column; gap: 14px; width: 100%; padding: 22px; }
.service .ph { border-radius: 14px; }
.service__desc { flex: 1; font-size: var(--fs-small); line-height: 1.55; color: var(--text); text-wrap: pretty; }
.service__foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 14px; font-size: var(--fs-small); color: var(--text-soft); }
.service__foot strong { font-size: 1.25rem; font-weight: 600; color: var(--ink); }

/* Mobile: carosello con scroll-snap, la card seguente "spunta" per invitare a scorrere */
@media (max-width: 679px) {
  .services {
    grid-auto-flow: column;
    grid-auto-columns: min(84%, 340px);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding: 2px var(--gutter) 10px;
    scroll-padding-inline: var(--gutter);
  }
  .services::-webkit-scrollbar { display: none; }
  .services > li { scroll-snap-align: start; }
}
/* 4 card: 2x2 su tablet, 4 in fila su desktop largo (evita la card orfana a 3 colonne) */
@media (min-width: 680px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .services { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Quinta card (domicilio): a tutta larghezza da tablet in su, foto a sinistra */
@media (min-width: 680px) {
  .services__home { grid-column: 1 / -1; }
  .services__home .service { display: grid; grid-template-columns: min(42%, 420px) 1fr; column-gap: 28px; align-items: center; }
}
.service__body { display: flex; flex-direction: column; gap: 14px; }
.cards-stage { display: flex; flex-direction: column; gap: 24px; }

/* ---------- Prezzi ---------- */
.card--home p { margin-top: 8px; font-size: var(--fs-small); line-height: 1.5; color: var(--text); }
.card--home strong { color: var(--ink); font-weight: 600; }
.prices { display: grid; gap: 14px; align-items: start; }
.price-list { margin-top: 10px; }
.price-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 8px 16px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--text); }
.price-list li:first-child { border-top: 0; }
.price-list s { color: var(--text-soft); }
.price-list .price { display: inline-flex; gap: 10px; align-items: baseline; justify-content: flex-end; min-width: 7.5rem; }
.price-list--desc li { grid-template-columns: 1fr auto; }
.price-name { color: var(--ink); font-weight: 500; }
.price-name small { display: block; margin-top: 2px; font-size: var(--fs-label); font-weight: 400; color: var(--text-soft); }
.tags { grid-column: 1 / -1; grid-row: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { padding: 4px 10px; border-radius: var(--r-pill); background: var(--mist); color: var(--blue); font-size: 0.8125rem; font-weight: 500; white-space: nowrap; }
@media (min-width: 680px) {
  .price-list--desc li { grid-template-columns: 15rem 1fr auto; gap: 8px 24px; align-items: center; }
  .tags { grid-column: auto; grid-row: auto; }
}
.price-list--desc .price { min-width: 0; }
.price-list--cols li { grid-template-columns: 1fr auto; }
@media (min-width: 860px) {
  .price-list--cols { display: grid; grid-template-rows: repeat(2, auto); grid-auto-flow: column; column-gap: 56px; }
  .price-list--cols li:nth-child(3) { border-top: 0; }
}
.price-list strong { min-width: 4ch; text-align: right; font-size: 1.125rem; font-weight: 600; color: var(--ink); }


/* ---------- A chi si rivolge ---------- */
/* Un unico pannello scuro, divisori sottili: si distingue dalle card bianche dei trattamenti */
.audience { display: grid; gap: 0; margin-top: var(--section-gap); padding: 28px; background: var(--ink); color: #fff; border-radius: var(--r-xl); }
.audience__lead { display: flex; flex-direction: column; gap: 12px; justify-content: flex-start; padding-bottom: 24px; }
.audience__item { display: flex; flex-direction: column; gap: 8px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.audience__item p { font-size: var(--fs-small); line-height: 1.5; color: var(--on-dark-soft); text-wrap: pretty; }
.audience .icon { background: rgba(255, 255, 255, 0.08); color: var(--sky); }
.icon { width: 40px; height: 40px; border-radius: 12px; background: var(--mist); color: var(--blue); display: grid; place-items: center; margin-bottom: 6px; }
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 960px) {
  .audience { grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr)); padding: 44px; }
  .audience__lead { padding: 0 32px 0 0; }
  .audience__item { padding: 0 28px; border-top: 0; border-left: 1px solid rgba(255, 255, 255, 0.14); }
}

/* ---------- La seduta (timeline) ---------- */
.steps-wrap { position: relative; }
.steps { display: grid; gap: 14px; }
.step { position: relative; padding-left: 44px; }
.step__card { background: var(--mist); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 10px; height: 100%; }
.step__card p { font-size: var(--fs-small); line-height: 1.5; color: var(--text); text-wrap: pretty; }
.step__n { font-size: var(--fs-label); font-weight: 600; color: var(--blue); }

.steps__track { position: absolute; background: var(--line-2); border-radius: 2px; overflow: hidden; left: 12px; top: 28px; bottom: 28px; width: 2px; }
.steps__fill { position: absolute; inset: 0; background: var(--blue); transform-origin: top; transform: scaleY(var(--p, 1)); }

.step__dot { position: absolute; left: 0; top: 22px; width: 26px; height: 26px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); display: grid; place-items: center; }
.step__dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; transform: scale(0); }
.step.is-on .step__dot { background: var(--blue); border-color: var(--blue); }
.step.is-on .step__dot::after { transform: scale(1); }
/* Senza JS: tutto acceso */
html:not(.js) .step__dot { background: var(--blue); border-color: var(--blue); }
html:not(.js) .step__dot::after { transform: scale(1); }

@media (min-width: 900px) {
  .steps-wrap { padding-top: 40px; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .step { padding-left: 0; }
  .step__dot { top: -40px; }
  .steps__track { left: 12px; right: 0; top: 11px; bottom: auto; width: auto; height: 2px; }
  .steps__fill { transform-origin: left; transform: scaleX(var(--p, 1)); }
}

/* ---------- Chi sono ---------- */
.about { display: grid; gap: 28px; align-items: center; }
.about__media { aspect-ratio: 1 / 1; max-width: 520px; width: 100%; border-radius: var(--r-lg); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.chips li { border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 8px 15px; font-size: var(--fs-label); color: var(--ink-2); white-space: nowrap; }
@media (min-width: 860px) { .about { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 24px; }
.faq__list { display: flex; flex-direction: column; gap: 10px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.faq__item h3 { font-size: inherit; font-weight: inherit; }
.faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 56px;
  padding: 12px 20px;
  background: transparent;
  border: 0;
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.faq__icon { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--mist); color: var(--blue); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: currentColor; }
.faq__icon::after { transform: rotate(90deg); }
.faq__item.is-open .faq__icon::after { transform: rotate(0deg); }

.faq__a { display: grid; grid-template-rows: 0fr; }
.faq__a-in { overflow: hidden; min-height: 0; visibility: hidden; }
.faq__a p { max-width: 78ch; padding: 0 20px 18px; font-size: var(--fs-small); line-height: 1.55; color: var(--text); text-wrap: pretty; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__item.is-open .faq__a-in { visibility: visible; }
/* Senza JS: tutte aperte */
html:not(.js) .faq__a { grid-template-rows: 1fr; }
html:not(.js) .faq__a-in { visibility: visible; }
html:not(.js) .faq__icon { display: none; }


/* ---------- Contatti ---------- */
.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: var(--section-gap);
  display: grid;
  gap: 28px;
  align-items: center;
  padding: clamp(32px, 5vw, 64px) clamp(22px, 5vw, 64px);
  border-radius: var(--r-xl);
  background: var(--ink);
  color: #fff;
}
.contact .fibers { --fo: 0.35; color: var(--sky); }
.contact__copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; }
.contact__copy p { font-size: var(--fs-body); line-height: 1.5; color: var(--on-dark-soft); }
.contact__place { font-style: normal; line-height: 1.6; color: var(--on-dark-soft); padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.contact__place strong { color: #fff; font-weight: 500; }
.contact__map { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; color: var(--sky); font-weight: 500; }
.contact__map:hover { color: #fff; }
.contact__links { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; }
.contact__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 78px;
  padding: 14px 20px;
  border-radius: var(--r-md);
  background: #fff;
  color: var(--blue);
  font-weight: 500;
}
.contact__row:hover, .contact__row:focus-visible { background: var(--green); color: #fff; }
.contact__label { display: flex; flex-direction: column; gap: 2px; font-size: 1.0625rem; }
.contact__label small { font-size: var(--fs-small); font-weight: 400; overflow-wrap: anywhere; }
.contact__go { font-size: 1.25rem; flex: none; }
@media (min-width: 860px) { .contact { grid-template-columns: 1.1fr 1fr; gap: 48px; } }

/* ---------- Footer ---------- */
.footer { display: flex; flex-direction: column; gap: 32px; margin-top: var(--section-gap); padding-top: 44px; padding-bottom: 28px; border-top: 1px solid var(--line); font-size: var(--fs-small); line-height: 1.6; color: var(--text-soft); }
.footer__top { display: grid; gap: 32px; }
.footer__logo { display: block; height: 80px; width: auto; }
.footer__tag { margin-top: 14px; max-width: 30ch; color: var(--text); }
.footer__h { margin-bottom: 8px; font-size: var(--fs-label); font-weight: 600; color: var(--ink); }
.footer__col p + p { margin-top: 12px; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); }
.footer__links a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-soft); text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom a:hover { color: var(--ink); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding-top: 20px; border-top: 1px solid var(--line); font-size: var(--fs-label); }
@media (min-width: 760px) { .footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; } }

/* ---------- Barra contatti mobile ---------- */
.cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--ink);
  visibility: hidden;
  transform: translateY(105%);
}
.cta-bar.is-visible { visibility: visible; transform: none; }
.cta-bar .btn { min-height: 52px; }
html:not(.js) .cta-bar { visibility: visible; transform: none; }

/* ---------- Tablet / desktop ---------- */
@media (min-width: 600px) {
  .hero__actions { flex-direction: row; flex-wrap: wrap; }
  .hero__actions .btn { width: auto; }
  .hero__facts { flex-direction: row; flex-wrap: wrap; gap: 8px 28px; }
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .cta-bar { display: none; }
  .nav__toggle { display: none; }
  .nav__cta { display: inline-flex; }
  .nav__links {
    position: static;
    flex-direction: row;
    gap: 4px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    visibility: visible;
    opacity: 1;
    transform: none;
  }
  .nav__links a { min-height: 44px; padding: 0 14px; border: 0; border-radius: var(--r-pill); font-size: var(--fs-small); color: var(--text); white-space: nowrap; }
  .nav__links a:hover { background: var(--mist); color: var(--ink); }
  .nav__links a[aria-current="true"] { background: var(--mist); color: var(--ink); }
  .nav { gap: 24px; }

  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 40px; align-items: center; }
  .hero__media { aspect-ratio: 4 / 5; max-height: 520px; }
}

/* Testo solo per lettori di schermo */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Intestazione: la qualifica lunga sta accanto al nome solo su schermi larghi; menu più compatto fino a 1180px */
@media (min-width: 900px) and (max-width: 1179px) { .nav__links a { padding: 0 10px; } .nav { gap: 16px; } }
@media (min-width: 900px) and (max-width: 999px) { .nav__links { gap: 0; } .nav__links a { padding: 0 8px; } .nav { gap: 10px; } .nav__cta { padding-inline: 16px; } }

/* Avviso «indirizzo copiato» (fallback del link email, vedi main.js) */
.copied-note { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: var(--fs-small); }

/* ---------- Accessibilità (pannello: js/a11y.js) ---------- */
.a11y { position: fixed; left: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 45; }
@media (min-width: 900px) { .a11y { bottom: 20px; } }
.a11y__toggle { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 2px solid #fff; background: var(--blue); color: #fff; cursor: pointer; box-shadow: 0 6px 20px rgba(15, 36, 56, 0.28); }
.a11y__toggle:hover, .a11y__toggle[aria-expanded="true"] { background: var(--blue-deep); }
.a11y__toggle svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.a11y__toggle circle { fill: currentColor; stroke: none; }
.a11y__panel { position: absolute; left: 0; bottom: 58px; width: 240px; display: grid; gap: 6px; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 12px 40px rgba(15, 36, 56, 0.22); max-height: calc(100dvh - 160px); overflow-y: auto; }
.a11y__panel[hidden] { display: none; }
.a11y__title { margin: 0 0 4px; font-weight: 600; color: var(--ink); }
.a11y__opt, .a11y__reset { min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font: inherit; font-size: var(--fs-small); text-align: left; cursor: pointer; }
.a11y__opt[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.a11y__opt[aria-pressed="true"]::after { content: " ✓" / ""; }
.a11y__reset { border: 0; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

html.a11y-big { font-size: 118.75%; }
html.a11y-contrast { --text: var(--ink); --text-soft: var(--ink); --line: #7d97ad; --line-2: #5f7c95; --blue: #0f3a5a; --blue-deep: #0a2a42; --on-dark-soft: #ffffff; --mist: #d3e6f3; }
html.a11y-links a:not(.btn):not(.brand) { text-decoration: underline; text-underline-offset: 3px; }
html.a11y-still, html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-still .pin { height: auto; }
html.a11y-still .pin__stage { position: static; }
