/* ===================================================================
   STUDIO MEDICO ECONOMOPOULOS — Foglio stile condiviso
   Azioni applicate:
     #1  CSS estratto e deduplicato da 4 template
     #2  --mute corretto: #8a7e74 → #6b5f56 (WCAG AA 5.1:1 su --cream)
     #3  :focus-visible aggiunto su tutti gli elementi interattivi
     #4  Stili inline estratti dai 3 template → classi/selettori CSS
     #7  Tap target .menu .cta aumentato a 14px padding verticale
     #8  Contrasto footer bottom e rating-meta corretti
     #9  Contrasto .col-label, .num (svc/how/prep/other), .payment-note corretti
         PageSpeed Accessibility 96 → 100 target
    Fase 1 audit (2026-06-18):
     F1  CSS morto rimosso: .prep-grid/item, .cta-section--dark, .section-intro, .btn-whatsapp
     F2  Classi inline: .cta-price--tight, .ist-link, .ist-link__label
     F3  .sr-only aggiunto (stelle recensioni a11y)
   Versione: 1.2.2
=================================================================== */

/* ===== VARIABILI ===== */
:root {
  --ink:    #1a1410;
  --navy:   #1a3a4a;
  --cream:  #faf8f5;
  --sand:   #c8b99a;
  --mute:   #6b5f56;   /* FIX #2: era #8a7e74 — contrasto 3.73:1 → 5.1:1 ✓ WCAG AA */
  --subtle: #5a4a3a;
  --serif:  'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:   'Outfit', system-ui, -apple-system, Segoe UI, sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: 1200px; margin: 0 auto; }

/* ===== FOCUS — WCAG 2.1 criterio 2.4.7 Focus Visible ===== */
/* FIX #3: nessun focus state era definito in nessun template */
:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}
.menu .cta:focus-visible,
.btn-primary:focus-visible,
.slider-btn:focus-visible,
.wa-float:focus-visible {
  outline: 2px solid var(--sand);
  outline-offset: 3px;
}

/* ===== NAV ===== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 56px;
  border-bottom: 1px solid rgba(200, 185, 154, 0.33);
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
}
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand .seal { width: 56px; height: 56px; flex: 0 0 auto; }
.brand .name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
  line-height: 1;
  font-weight: 500;
}
.brand .kicker {
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 3px;
}
.menu { display: flex; gap: 36px; align-items: center; }
.menu a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
}
.menu a:hover { color: var(--ink); }
.menu a.active { border-bottom: 1px solid var(--navy); padding-bottom: 2px; }
.menu .cta {
  color: var(--cream);
  background: var(--navy);
  padding: 14px 18px; /* FIX #7: era 10px — altezza ~31px → ~39px, WCAG 2.5.5 */
  transition: background 0.2s;
}
.menu .cta:hover { background: var(--ink); }
.nav-toggle {
  display: none;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: var(--navy);
  color: var(--cream);
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}

/* ===== HERO ===== */
.hero {
  padding: 90px 56px 80px;
  border-bottom: 1px solid rgba(200, 185, 154, 0.33);
}
.hero .eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 76px;
  color: var(--ink);
  line-height: 1.0;
  letter-spacing: -0.01em;
  max-width: 900px;
  margin: 0;
}
.hero h1 em { font-style: italic; color: var(--navy); }
.hero .lede {
  margin-top: 32px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  color: var(--subtle);
  line-height: 1.5;
  max-width: 680px;
}
.hero .badges {
  margin-top: 40px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
}
.badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sand);
  flex: 0 0 auto;
}

.hero-cta {
  margin-top: 40px;
}

.hero-price {
  margin-top: 24px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--subtle);
}

/* ===== HOMEPAGE — HERO META ===== */
.hero .meta {
  margin-top: 56px;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(200, 185, 154, 0.33);
  padding-top: 24px;
}
.meta .k {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 4px;
}
.meta .v {
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 0.02em;
  text-decoration: none;
}
.meta .v:hover { color: var(--navy); }

/* ===== SEZIONE EVIDENZA (sfondo navy) ===== */
.direct-access {
  padding: 80px 56px;
  border-bottom: 1px solid rgba(200, 185, 154, 0.33);
  background: var(--navy);
}
.direct-access .label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 32px;
}
.direct-access h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 52px;
  color: #fff;
  margin: 0 0 28px;
  line-height: 1.05;
  max-width: 760px;
}
.direct-access h2 em { font-style: italic; color: var(--sand); }
.direct-access p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: rgba(255,255,255,0.82);
  line-height: 1.6;
  max-width: 640px;
  margin: 0;
}

/* ===== SEZIONI CONTENUTO ===== */
.section {
  padding: 80px 56px;
  border-bottom: 1px solid rgba(200, 185, 154, 0.33);
}
.section-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 48px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.col-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mute);   /* FIX #9: era --sand 1.9:1 → --mute 5.1:1 ✓ WCAG AA */
  margin-bottom: 16px;
}
.col h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 38px;
  color: var(--ink);
  margin: 0 0 24px;
  line-height: 1.05;
}
.col h3 em { font-style: italic; color: var(--navy); }
.col p {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--subtle);
  line-height: 1.65;
  margin: 0 0 20px;
}
.col h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 14px;
  line-height: 1.2;
}
/* Paragrafi diretti dentro .section ma fuori da .col — allineati a .col p */
.section > p {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--subtle);
  line-height: 1.65;
  margin: 0 0 20px;
}

/* Byline autore (template-cistite) */
.author-note {
  border-top: 1px solid var(--sand);
  padding: 28px 0 0;
  margin-top: 56px;
}
.author-note__name {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
}
.author-note__meta {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--mute);
  margin: 0;
}
/* Byline su piu righe (credenziali + esperienza + data) */
.author-note__meta + .author-note__meta {
  margin-top: 6px;
}
/* Link alla pagina autore: segnale E-E-A-T, deve restare leggibile */
.author-note__name a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--mute);
}
.author-note__name a:hover,
.author-note__name a:focus-visible {
  text-decoration-color: var(--ink);
}

/* Fonti scientifiche (template-cistite) */
.fonti {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--sand);
  margin-bottom: 8px;
}
.fonti__title {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 12px;
}
.fonti__list {
  list-style: decimal;
  padding-left: 18px;
  margin: 0;
}
.fonti__list li {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--mute);
  line-height: 1.55;
  margin: 0 0 8px;
}
.fonti__list a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.fonti__list a:hover { color: var(--ink); }
.col ul { list-style: none; padding: 0; margin: 0; }
.col ul li {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--subtle);
  line-height: 1.6;
  padding: 10px 0;
  border-bottom: 1px solid rgba(200, 185, 154, 0.25);
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.col ul li::before {
  content: '—';
  color: var(--sand);
  flex: 0 0 auto;
  font-family: var(--serif);
}

/* ===== GRIGLIA "COME FUNZIONA" ===== */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.how-item {
  border-top: 1px solid var(--navy);
  padding-top: 22px;
}
.how-item .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--mute);   /* FIX #9: era --sand 1.9:1 → --mute 5.1:1 ✓ WCAG AA */
  margin-bottom: 14px;
}
.how-item h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 10px;
  line-height: 1.2;
}
.how-item p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--subtle);
  line-height: 1.55;
  margin: 0;
}

/* ===== CTA — variante chiara (default) ===== */
.cta-section {
  padding: 80px 56px;
  border-bottom: 1px solid rgba(200, 185, 154, 0.33);
}
.cta-section .eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 24px;
}
.cta-section h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 52px;
  color: var(--ink);
  margin: 0 0 40px;
  line-height: 1.05;
  max-width: 700px;
}
.cta-section h2 em { font-style: italic; color: var(--navy); }
.cta-price {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--subtle);
  margin-bottom: 40px;
}
.cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.btn-primary {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--navy);
  padding: 14px 28px;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--ink); }
.btn-secondary {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid rgba(26,58,74,0.3);
}
.btn-secondary:hover { color: var(--ink); border-color: var(--ink); }

/* ===== ALTRI SERVIZI ===== */
.other-services {
  padding: 80px 56px;
  border-bottom: 1px solid rgba(200, 185, 154, 0.33);
}
.other-services .label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 32px;
}
.other-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.other-card {
  border-top: 1px solid var(--navy);
  padding-top: 22px;
  text-decoration: none;
  display: block;
}
.other-card .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--mute);   /* FIX #9: era --sand 1.9:1 → --mute 5.1:1 ✓ WCAG AA */
  margin-bottom: 12px;
}
.other-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  color: var(--ink);
  margin: 0 0 10px;
  line-height: 1.1;
}
.other-card h3 em { font-style: italic; color: var(--navy); }
.other-card p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--subtle);
  line-height: 1.5;
  margin: 0 0 14px;
}
.other-card .link {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
}
.other-card:hover .link { color: var(--ink); }

/* ===== FOOTER ===== */
.foot {
  padding: 56px;
  border-top: 1px solid rgba(200, 185, 154, 0.33);
  background: var(--navy);
  color: rgba(255,255,255,0.88);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.foot .brand .name { color: #fff; }
.foot .brand .kicker { color: var(--sand); }
.foot .k {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 6px;
}
.foot .v, .foot a {
  font-size: 12.5px;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}
.foot a:hover { color: var(--sand); }
.foot .payment-note {
  margin-top: 10px;
  font-size: 11px;
  color: var(--sand);   /* FIX #9: era rgba(200,185,154,0.7) → 3.98:1 — sand pieno → 6.37:1 ✓ */
  line-height: 1.6;
}
.foot .bottom {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid rgba(200,185,154,0.18);
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand); /* FIX #8: era rgba(200,185,154,0.7) — contrasto 3.75:1 → 6.17:1 ✓ */
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
/* FIX L2: rimossi 14 stili inline da tutti i template */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  background: var(--navy);
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  text-decoration: none;
  transition: background 0.2s;
}
.wa-float:hover { background: var(--ink); }
/* ===== HOMEPAGE — SERVIZI ===== */
.services {
  padding: 90px 56px;
  border-top: 1px solid rgba(200, 185, 154, 0.33);
}
.services .label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 32px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.svc { border-top: 1px solid var(--navy); padding-top: 22px; }
.svc .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--mute);   /* FIX #9: era --sand 1.9:1 → --mute 5.1:1 ✓ WCAG AA */
  margin-bottom: 14px;
}
.svc h2,
.svc h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.1;
  letter-spacing: -0.005em;
}
.svc h2 .it,
.svc h3 .it { font-style: italic; }
.svc p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--subtle);
  line-height: 1.5;
  margin: 0 0 14px;
}
.svc .svc-link {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  display: inline-block;
}
.svc .svc-link:hover { color: var(--ink); }

/* ===== HOMEPAGE — CHI SONO ===== */
.about {
  padding: 90px 56px;
  border-top: 1px solid rgba(200, 185, 154, 0.33);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about .label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 32px;
  grid-column: 1 / -1;
}
.about-text h2,
.about-text h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 42px;
  color: var(--ink);
  margin: 0 0 28px;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.about-text h2 em,
.about-text h3 em { font-style: italic; color: var(--navy); }
.about-text p {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--subtle);
  line-height: 1.7;
  margin: 0 0 20px;
}
.about-credentials { padding-top: 8px; }
.credential {
  border-top: 1px solid rgba(200, 185, 154, 0.33);
  padding: 18px 0;
  display: flex;
  gap: 20px;
  align-items: baseline;
}
.credential .c-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mute);
  flex: 0 0 80px;
}
.credential .c-val {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  line-height: 1.4;
}

/* ===== HOMEPAGE — RECENSIONI ===== */
.reviews {
  padding: 90px 56px;
  border-top: 1px solid rgba(200, 185, 154, 0.33);
  background: var(--navy);
}
.reviews .label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 16px;
}
.reviews .rating-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}
.stars { font-size: 20px; color: var(--sand); letter-spacing: 2px; }
.rating-meta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62); /* FIX #8: era 0.5 — contrasto 4.49:1 → ~5.4:1 ✓ */
}
.reviews-slider { position: relative; overflow: hidden; }
.reviews-track { display: flex; transition: transform 0.5s ease; }
.review-card { min-width: 100%; padding-right: 80px; }
.review-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: rgba(255,255,255,0.92);
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 780px;
}
.review-author {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sand);
}
.slider-controls { display: flex; gap: 12px; margin-top: 40px; }
.slider-btn {
  width: 44px;  /* FIX #7: era 40px — sotto soglia WCAG 2.5.5 */
  height: 44px;
  border: 1px solid rgba(200,185,154,0.4);
  background: transparent;
  color: var(--sand);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.slider-btn:hover { border-color: var(--sand); background: rgba(200,185,154,0.1); }
.slider-dots { display: flex; gap: 8px; align-items: center; margin-left: 16px; }
.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(200,185,154,0.3);
  cursor: pointer;
  transition: background 0.2s;
}
.dot.active { background: var(--sand); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav { padding: 18px 24px; flex-wrap: wrap; gap: 16px; }
  .menu { gap: 20px; flex-wrap: wrap; }
  /* <br> forzati nei titoli hero servono solo su desktop (controllo tipografico a 76px).
     Su mobile il testo si wrappa naturalmente: nascondere evita spazi bianchi inattesi. */
  .hero h1 br { display: none; }
  .hero { padding: 56px 24px 48px; }
  .hero h1 { font-size: 44px; }
  .hero .lede { font-size: 18px; }
  .direct-access { padding: 56px 24px; }
  .direct-access h2 { font-size: 36px; }
  .direct-access p { font-size: 17px; }
  .section { padding: 56px 24px; }
  .two-col { grid-template-columns: 1fr; gap: 48px; }
  .col h3 { font-size: 30px; }
  .how-grid,
  .prep-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-section { padding: 56px 24px; }
  .cta-section h2 { font-size: 36px; }
  .other-services { padding: 56px 24px; }
  .other-grid { grid-template-columns: 1fr; gap: 32px; }
  .foot { padding: 40px 24px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .foot .bottom { flex-direction: column; gap: 8px; }
  /* Homepage */
  .services { padding: 56px 24px; }
  .services-grid { grid-template-columns: 1fr; gap: 28px; }
  .about { padding: 56px 24px; grid-template-columns: 1fr; gap: 40px; }
  .about-text h2,
  .about-text h3 { font-size: 34px; }
  .reviews { padding: 56px 24px; }
  .review-text { font-size: 18px; }
  .review-card { padding-right: 0; }
}

@media (max-width: 520px) {
  .hero h1 { font-size: 34px; }

  .nav {
    align-items: center;
  }

  .brand {
    order: 1;
  }

  .nav-toggle {
    display: flex;
    order: 2;
    flex: 0 0 auto;
  }

  .menu {
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .menu a:not(.cta) {
    display: none;
    width: 100%;
    padding: 16px 0;
    border-top: 1px solid rgba(200, 185, 154, 0.35);
  }

  .nav.nav-open .menu a:not(.cta) {
    display: block;
  }

  .menu .cta {
    display: none;
    margin-top: 8px;
  }

  .nav.nav-open .menu .cta {
    display: block;
    margin-top: 16px;
  }

  .foot-grid { grid-template-columns: 1fr; }
}
/* ===================================================================
   FIX 4 — STILI INLINE ESTRATTI E SOSTITUITI CON CLASSI CSS
   Ogni blocco <style> rimosso dai template. Approccio:
     4a  Classe modificatrice sull'elemento (homepage hero)
     4b  Selettore body-class WordPress (ecografia — tutti i .col h2)
     4c  Selettore body-class WordPress (medicina dei viaggi — .cta-section h2)
   WordPress genera automaticamente le classi page-template-* sul <body>
   tramite body_class() in base al template file assegnato alla pagina.
=================================================================== */

/* FIX 4a — Homepage hero: nessun border-bottom
   (la separazione visiva è garantita dal border-top della sezione .services seguente)
   Applicato via classe .hero--borderless in template-home.php */
.hero--borderless {
  border-bottom: none;
}

/* FIX 4b — Ecografia: .col h3 leggermente più grande (42px vs 38px base)
   WordPress assegna automaticamente .page-template-template-ecografia-php al <body>
   quando la pagina usa il template "template-ecografia.php". */
.page-template-template-ecografia-php .col h3,
.page-template-template-ecografia-domicilio-php .col h3 {
  font-size: 42px;
  letter-spacing: -0.01em;
}
@media (max-width: 900px) {
  .page-template-template-ecografia-php .col h3,
  .page-template-template-ecografia-domicilio-php .col h3 { font-size: 34px; }
}

/* FIX 4c — Medicina dei viaggi: h2 CTA con margine inferiore ridotto
   (il .cta-price che segue immediatamente riduce lo spazio necessario)
   WordPress assegna .page-template-template-medicina-dei-viaggi-php al <body>. */
.page-template-template-medicina-dei-viaggi-php .cta-section h2 {
  margin-bottom: 16px;
}

/* FIX mobile overflow recensioni/footer — aggiunto manualmente */
@media (max-width: 520px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .reviews,
  .foot {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .reviews .wrap,
  .foot .wrap {
    width: 100%;
    max-width: 100%;
  }

  .review-card {
    max-width: 100%;
    padding-right: 0;
  }

  .slider-controls {
    flex-wrap: wrap;
    max-width: 100%;
    overflow-x: hidden;
  }

  .slider-dots {
    flex-wrap: wrap;
    max-width: 100%;
    margin-left: 0;
    min-width: 0;
  }

  .dot {
    flex: 0 0 4px;
  }
}

/* ===== COMPLIANZ — Sposta "Gestisci consenso" a sinistra ===== */
#cmplz-manage-consent {
  left: 28px !important;
  right: auto !important;
}

/* ===================================================================
   FIX AUDIT — Definizioni mancanti per classi già usate nei template
   (erano referenziate in HTML ma senza alcuna regola CSS: no-op visivo).
=================================================================== */

/* Skip link "Salta al contenuto" — visibile solo al focus da tastiera.
   Target: <main id="main-content"> presente in tutti i template. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* medicina-dei-viaggi: la seconda colonna "Come funziona" usa una sola
   colonna di .how-item invece della griglia a 3. */
.how-grid--single {
  grid-template-columns: 1fr;
  gap: 28px;
}
/* spaziatura tra gli step impilati nella colonna singola */
.how-item--gap {
  margin-top: 8px;
}

/* utility margine usata in medicina-dei-viaggi (<p class="mt-20">) */
.mt-20 { margin-top: 20px; }

/* Slider recensioni: rispetta prefers-reduced-motion.
   (L'autoplay è già disattivato via JS; qui togliamo anche la transizione.) */
@media (prefers-reduced-motion: reduce) {
  .reviews-track { transition: none; }
}

/* AUDIT a11y: i label di sezione sono ora <h2> (era <div>).
   Azzera il margine superiore di default di h2 (UA/Astra) per non
   alterare la spaziatura preesistente. Nessun'altra modifica visiva. */
.label,
.section-label {
  margin-top: 0;
}

/* ===== VISUAL BREAK — immagine full-bleed tra sezioni ===== */
.page-visual {
  line-height: 0;
  border-bottom: 1px solid rgba(200, 185, 154, 0.33);
}
.page-visual img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 440px;
  object-fit: cover;
  object-position: center 42%;
}
@media (max-width: 900px) {
  .page-visual img { max-height: 220px; }
}

/* ===== GRIGLIA 2×2 "Perché scegliere" ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}
@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ===== FAQ — fisarmonica (<details>/<summary>) ===== */
.faq-list { margin: 0; padding: 0; }
.faq-item {
  border-top: 1px solid rgba(200, 185, 154, 0.33);
}
.faq-item:last-child {
  border-bottom: 1px solid rgba(200, 185, 154, 0.33);
}
/* rimuove marker/triangolo browser */
.faq-item summary { list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 28px 0;
  cursor: pointer;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.005em;
  user-select: none;
}
.faq-q::after {
  content: '+';
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 300;
  color: var(--sand);
  flex: 0 0 auto;
  transition: transform 0.22s ease;
}
.faq-item[open] > .faq-q::after {
  transform: rotate(45deg);
}
.faq-a {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--subtle);
  line-height: 1.65;
  margin: 0;
  padding-bottom: 28px;
  max-width: 800px;
  animation: faq-reveal 0.2s ease;
}
@keyframes faq-reveal {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .faq-a { animation: none; }
}
@media (max-width: 900px) {
  .faq-q { font-size: 20px; padding: 20px 0; }
  .faq-a { font-size: 17px; padding-bottom: 20px; }
}

/* ===== VISITA + ECOGRAFIA — layout callout ===== */
.eco-callout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  border-top: 1px solid var(--navy);
  padding-top: 40px;
}
@media (max-width: 900px) {
  .eco-callout { grid-template-columns: 1fr; gap: 48px; }
}

/* ===== ALTRI SERVIZI — variante 3 colonne ===== */
.other-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  .other-grid--3col { grid-template-columns: 1fr; }
}

/* IST — paragrafo introduttivo sotto "Cosa trattiamo".
   Serif coerente con .col p, leggermente più piccolo (17px vs 19px). */
.ist-section-lead {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--subtle);
  line-height: 1.65;
  margin: 0 0 40px;
  max-width: 720px;
}

/* ===== CONTATTI — classi estratte da inline styles ===== */
.ct-address { margin-bottom: 10px; }
.ct-orari {
  font-family: var(--serif);
  font-style: italic;
  color: var(--subtle);
  font-size: 17px;
  margin-bottom: 20px;
}
.ct-intro {
  font-family: var(--serif);
  font-style: italic;
  color: var(--subtle);
  font-size: 17px;
  margin-bottom: 28px;
}
.ct-field-label {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 6px;
}
.ct-field-link {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--navy);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 24px;
}
.ct-field-link:hover { color: var(--ink); }

/* IST — nota riservatezza nella sezione evidence (sfondo navy).
   Sovrascrive dimensione e margine di .direct-access p con specificità (0,2,0). */
.direct-access .ist-privacy-note {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 24px;
  max-width: 600px;
}

/* ===================================================================
   FASE 1 AUDIT — classi estratte da inline style residui (F2)
=================================================================== */

/* template-infettivologia.php hero: .cta-price con margine ridotto */
.cta-price--tight { margin-bottom: 16px; }

/* template-infettivologia.php: link IST nella lista patologie */
.ist-link { color: inherit; }
.ist-link__label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ===================================================================
   ACCESSIBILITÀ — utilità screen reader
=================================================================== */

/* .sr-only: testo visibile solo agli screen reader (es. stelle recensioni) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}