/* =========================================================
   Dott. Michele Colicchia — Urologo a Siracusa
   Design system unico del sito.
   Palette: pietra di Ortigia + teal profondo (un solo accento).
   Type: Newsreader (display) + Archivo (testo/UI).
   ========================================================= */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Token: tema chiaro (default) ----------
   Palette derivata dal logo: teal #00827A e oro #C48900. */
:root {
  --ground:       #F7F6F3;
  --surface:      #FFFFFF;
  --surface-alt:  #EFEFEA;
  --sand:         #E5DFD1;   /* superficie calda, richiama l'oro del logo */
  --ink:          #111A19;
  --ink-soft:     #4C5A58;
  --ink-faint:    #7A8785;
  --accent:       #00706A;   /* teal del logo, scurito quanto basta per il testo */
  --accent-brand: #00827A;   /* teal esatto del logo: superfici e marchio */
  --accent-deep:  #00544F;
  --accent-tint:  #E0EDEB;
  --gold:         #C48900;   /* oro esatto del logo */
  --gold-ink:     #8A6100;   /* oro leggibile come testo */
  --gold-tint:    #F6EBD3;
  --line:         #DEDDD6;
  --focus:        #00706A;
  --shadow:       0 1px 2px rgba(13,25,24,.05), 0 8px 24px -12px rgba(13,25,24,.18);
  --todo-bg:      #FFF3C4;
  --todo-ink:     #6B4E00;
  --su-accento:   #FFFFFF;   /* testo sopra i fondi color accento */

  --measure: 66ch;
  --wrap: 1140px;
  --gut: clamp(1.15rem, 4vw, 2.5rem);

  --step--1: clamp(.82rem, .78rem + .18vw, .9rem);
  --step-0:  clamp(1rem, .96rem + .2vw, 1.08rem);
  --step-1:  clamp(1.16rem, 1.08rem + .38vw, 1.35rem);
  --step-2:  clamp(1.4rem, 1.24rem + .74vw, 1.85rem);
  --step-3:  clamp(1.72rem, 1.42rem + 1.4vw, 2.6rem);
  --step-4:  clamp(2.05rem, 1.5rem + 2.6vw, 3.6rem);
}

/* ---------- Token: tema scuro ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:      #0B1413;
    --surface:     #111D1C;
    --surface-alt: #162321;
    --sand:        #2C2A22;
    --ink:         #E9EEEC;
    --ink-soft:    #A3B2AF;
    --ink-faint:   #7C8B88;
    --accent:      #4FBDB1;
    --accent-brand:#00A296;
    --accent-deep: #8FD6CC;
    --accent-tint: #12302D;
    --gold:        #E0A72E;
    --gold-ink:    #E8B958;
    --gold-tint:   #2E2513;
    --line:        #22322F;
    --focus:       #4FBDB1;
    --shadow:      0 1px 2px rgba(0,0,0,.4), 0 10px 30px -14px rgba(0,0,0,.7);
    --todo-bg:     #4A3B00;
    --todo-ink:    #FFE79A;
    --su-accento:  #06201F;
  }
}
:root[data-theme="dark"] {
  --ground:      #0B1413;
  --surface:     #111D1C;
  --surface-alt: #162321;
  --sand:        #2C2A22;
  --ink:         #E9EEEC;
  --ink-soft:    #A3B2AF;
  --ink-faint:   #7C8B88;
  --accent:      #4FBDB1;
  --accent-brand:#00A296;
  --accent-deep: #8FD6CC;
  --accent-tint: #12302D;
  --gold:        #E0A72E;
  --gold-ink:    #E8B958;
  --gold-tint:   #2E2513;
  --line:        #22322F;
  --focus:       #4FBDB1;
  --shadow:      0 1px 2px rgba(0,0,0,.4), 0 10px 30px -14px rgba(0,0,0,.7);
  --todo-bg:     #4A3B00;
  --todo-ink:    #FFE79A;
  --su-accento:  #06201F;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}

h1, h2, h3, h4 {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.011em;
  text-wrap: balance;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p  { margin: 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding-left: 1.2em; }
strong { font-weight: 600; }

/* ---------- Layout ---------- */
.wrap { width: min(var(--wrap), 100%); margin-inline: auto; padding-inline: var(--gut); }
.stack { display: flex; flex-direction: column; }
.section { padding-block: clamp(3rem, 7vw, 5.75rem); }
.section + .section { border-top: 1px solid var(--line); }
.section--tint { background: var(--surface-alt); }
.prose { max-width: var(--measure); display: flex; flex-direction: column; gap: 1.15rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose h2 { margin-top: 1.4rem; }
.prose h3 { margin-top: .9rem; font-family: "Archivo", sans-serif; font-weight: 600; font-size: var(--step-1); letter-spacing: -.01em; }

/* ---------- Eyebrow / etichette ---------- */
.eyebrow {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0;
  display: flex; align-items: center; gap: .6rem;
}
.eyebrow::before {
  content: ""; width: 1.6rem; height: 2px; background: var(--gold); flex: none;
}
.section-head { display: flex; flex-direction: column; gap: .7rem; max-width: 62ch; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.section-head p.lede { color: var(--ink-soft); font-size: var(--step-1); line-height: 1.5; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  border-top: 3px solid var(--gold);   /* filetto oro del logo */
}
.header-in { display: flex; align-items: center; gap: 1.1rem; min-height: 66px; }

/* Logo: nell'header il marchio dei reni con il nome; la firma completa
   resta per il footer e la pagina Chi sono, dove ha lo spazio per leggersi. */
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.brand__mark { height: 42px; width: auto; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__name {
  font-family: "Newsreader", serif; font-size: 1.22rem; letter-spacing: -.005em;
  white-space: nowrap;
}
.brand__role {
  font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink);
  font-weight: 600;
}
@media (max-width: 420px) {
  .brand__name { font-size: 1.02rem; }
  .brand__mark { height: 34px; }
  .header-in { min-height: 58px; }
}

/* Firma autografa, usata in grande */
.signature { display: block; height: auto; width: min(340px, 72%); }
.signature--dark { display: none; }
:root[data-theme="dark"] .signature--light { display: none; }
:root[data-theme="dark"] .signature--dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .signature--light { display: none; }
  :root:not([data-theme="light"]) .signature--dark { display: block; }
}

.nav { display: flex; align-items: center; gap: .15rem; }
.nav > a, .nav__trigger {
  color: var(--ink-soft); text-decoration: none; font-size: .92rem;
  padding: .45rem .6rem; border-radius: 3px; white-space: nowrap;
}
.nav > a:hover, .nav > a[aria-current="page"] { color: var(--ink); background: var(--accent-tint); }
@media (max-width: 1000px) { .nav { display: none; } }

/* Tendina "Diagnosi e trattamenti" */
.nav__drop { position: relative; }
.nav__trigger {
  font: inherit; font-size: .92rem; background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: .35rem; font-family: inherit;
}
.nav__trigger svg { width: 11px; height: 11px; transition: transform .18s ease; }
.nav__drop:hover .nav__trigger, .nav__trigger[aria-expanded="true"], .nav__trigger.is-attiva {
  color: var(--ink); background: var(--accent-tint);
}
.nav__drop:hover .nav__trigger svg, .nav__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav__panel {
  position: absolute; top: calc(100% + .5rem); left: -.4rem; z-index: 70;
  min-width: 280px; padding: 1rem .4rem .6rem;
  background: var(--surface); border: 1px solid var(--line);
  border-top: 3px solid var(--gold); border-radius: 3px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav__drop:hover .nav__panel,
.nav__drop:focus-within .nav__panel,
.nav__trigger[aria-expanded="true"] + .nav__panel {
  opacity: 1; visibility: visible; transform: translateY(0);
}
/* zona cuscinetto: il puntatore non perde la tendina passando dal pulsante al pannello */
.nav__drop::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: .6rem; }

.nav__gruppo {
  font-size: .66rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold-ink); padding: .5rem .9rem .3rem; display: block;
}
.nav__gruppo + .nav__gruppo, .nav__panel a + .nav__gruppo { margin-top: .5rem; border-top: 1px solid var(--line); padding-top: .9rem; }
.nav__panel a {
  display: block; padding: .5rem .9rem; font-size: .93rem; color: var(--ink);
  text-decoration: none; border-radius: 2px; white-space: normal; line-height: 1.35;
}
.nav__panel a:hover, .nav__panel a[aria-current="page"] { background: var(--accent-tint); color: var(--accent-deep); }
.nav__panel a small { display: block; font-size: .78rem; color: var(--ink-faint); margin-top: .1rem; }

/* Nel menu di smartphone la stessa gerarchia diventa un elenco con etichette */
.mobile-nav .m-gruppo {
  font-size: .66rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold-ink); padding: 1rem var(--gut) .3rem; display: block; background: var(--surface-alt);
}
.mobile-nav .m-sub a { padding-left: calc(var(--gut) + 1rem); }

.nav-toggle {
  display: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 3px; padding: .5rem .7rem; font: inherit; font-size: .85rem; cursor: pointer;
}
@media (max-width: 1000px) { .nav-toggle { display: inline-flex; align-items: center; gap: .45rem; } }

.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--surface); }
.mobile-nav[data-open="true"] { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: .5rem 0; }
.mobile-nav a { display: block; padding: .8rem var(--gut); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .78rem 1.25rem; border-radius: 3px;
  font-size: .95rem; font-weight: 600; letter-spacing: .005em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
  font-family: inherit;
}
.btn--primary { background: var(--accent); color: var(--su-accento); border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--su-accento); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { padding: .55rem .9rem; font-size: .87rem; }
.header-cta { flex: none; }
@media (max-width: 560px) { .header-cta { display: none; } }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 880px) { .hero__grid { grid-template-columns: 1fr; } }
.hero__title { font-size: var(--step-4); }
.hero__sub {
  font-family: "Newsreader", serif; font-size: var(--step-2); line-height: 1.3;
  color: var(--ink-soft); max-width: 34ch;
  text-wrap: pretty;   /* evita le parole isolate sull'ultima riga */
}
.hero__sub strong { color: var(--ink); font-weight: 500; }
.hero__lede { color: var(--ink-soft); max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero__body { display: flex; flex-direction: column; gap: 1.35rem; }

.portrait {
  position: relative; aspect-ratio: 4 / 5; background: var(--sand);
  border-radius: 3px; overflow: hidden; box-shadow: var(--shadow);
}
.portrait picture, .portrait picture img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 880px) {
  .portrait { aspect-ratio: 3 / 2; max-height: 340px; }
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait__ph {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .5rem; text-align: center;
  color: var(--ink-faint); font-size: .85rem; padding: 1.5rem;
}
.portrait__ph svg { width: 46px; height: 46px; opacity: .5; }

/* Barra competenze sotto l'hero */
.creds { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; padding-top: 1.35rem; border-top: 1px solid var(--line); }
.creds li { list-style: none; font-size: .88rem; color: var(--ink-soft); display: flex; align-items: center; gap: .5rem; }
.creds li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; }
.creds ul { display: contents; }

/* ---------- Griglia cluster clinici ---------- */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid--3 { grid-template-columns: 1fr; } .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); padding: clamp(1.5rem, 3vw, 2.1rem);
  display: flex; flex-direction: column; gap: .85rem;
  text-decoration: none; color: inherit;
  transition: background-color .18s ease;
}
a.card:hover { background: var(--accent-tint); }
.card h3 { font-family: "Newsreader", serif; font-size: var(--step-2); font-weight: 500; }
.card p { color: var(--ink-soft); font-size: .95rem; }
.card__links { list-style: none; padding: 0; margin: .25rem 0 0; display: flex; flex-direction: column; gap: .4rem; }
.card__links a { font-size: .92rem; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: .4rem; display: block; }
.card__links a:hover { border-color: var(--accent); }
.card__more { margin-top: auto; font-size: .88rem; font-weight: 600; color: var(--accent); }

/* ---------- Percorso numerato (sequenza reale) ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 3.2rem 1fr; gap: 1.25rem;
  padding: 1.4rem 0; border-top: 1px solid var(--line); align-items: baseline;
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: "Newsreader", serif; font-size: 1.4rem; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.steps h3 { font-family: "Archivo", sans-serif; font-size: 1.02rem; font-weight: 600; margin-bottom: .3rem; }
.steps p { color: var(--ink-soft); font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); max-width: var(--measure); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0; position: relative;
  font-weight: 600; font-size: 1rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .35rem; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400; color: var(--accent); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 1.3rem; color: var(--ink-soft); max-width: 60ch; }
.faq details > div p + p { margin-top: .8rem; }

/* ---------- Riquadro dati / sedi ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: clamp(1.4rem, 3vw, 2rem); display: flex; flex-direction: column; gap: 1rem; }
.panel h3 { font-family: "Archivo", sans-serif; font-size: 1.05rem; font-weight: 600; }
.datalist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .7rem; font-size: .95rem; }
.datalist li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; color: var(--ink-soft); }
.datalist strong { color: var(--ink); font-weight: 600; font-size: .8rem; letter-spacing: .07em; text-transform: uppercase; padding-top: .15rem; }
@media (max-width: 520px) { .datalist li { grid-template-columns: 1fr; gap: .15rem; } }

/* ---------- Mappa segnaposto ---------- */
.map {
  position: relative; aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: 3px;
  overflow: hidden; background:
    repeating-linear-gradient(0deg, transparent 0 27px, var(--line) 27px 28px),
    repeating-linear-gradient(90deg, transparent 0 27px, var(--line) 27px 28px),
    var(--surface-alt);
}
.map__pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); color: var(--accent); }
.map__pin svg { width: 34px; height: 34px; }
.map__cta { position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Modulo ---------- */
.form { display: grid; gap: 1.1rem; max-width: 640px; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 3px; padding: .7rem .8rem; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-tint); }
.field textarea { min-height: 130px; resize: vertical; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .field--row { grid-template-columns: 1fr; } }
.form__note { font-size: .82rem; color: var(--ink-faint); max-width: 60ch; }
.form__status { font-size: .92rem; padding: .8rem 1rem; border-radius: 3px; background: var(--accent-tint); color: var(--ink); display: none; }
.form__status[data-visible="true"] { display: block; }

/* ---------- CTA finale ---------- */
.cta-band { background: var(--accent); color: var(--su-accento); }
.cta-band h2, .cta-band p { color: inherit; }
.cta-band .btn--ghost { border-color: currentColor; color: var(--su-accento); }
.cta-band .btn--ghost:hover { background: color-mix(in srgb, var(--su-accento) 12%, transparent); color: var(--su-accento); border-color: currentColor; }
.cta-band .btn--primary { background: var(--surface); color: var(--accent); border-color: var(--surface); }
.cta-band .btn--primary:hover { background: var(--ground); color: var(--accent-deep); border-color: var(--ground); }
.cta-band__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: 3rem 2rem; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 2rem; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-qualifica {
  font-size: 1rem; font-weight: 600; color: var(--ink);
  margin-bottom: .35rem; white-space: nowrap;
}
@media (max-width: 400px) { .footer-qualifica { white-space: normal; } }
.footer-ambiti {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: .35rem;
  color: var(--ink-soft); font-size: .92rem;
}
.footer-ambiti li { display: flex; align-items: baseline; gap: .55rem; }
.footer-ambiti li::before { content: ""; width: .55rem; height: 1px; background: var(--gold); flex: none; position: relative; top: -.25rem; }
.site-footer h4 { font-family: "Archivo", sans-serif; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: .8rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

/* ---------- CTA fissa su mobile ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: none; grid-template-columns: 1fr 1fr 1fr;
  background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -6px 24px -12px rgba(0,0,0,.35);
}
.sticky-cta a {
  padding: .85rem .4rem; text-align: center; font-size: .82rem; font-weight: 600;
  text-decoration: none; color: var(--ink); border-left: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: .2rem;
}
.sticky-cta a:first-child { border-left: 0; }
.sticky-cta a.is-primary { background: var(--accent); color: var(--su-accento); }
.sticky-cta svg { width: 18px; height: 18px; }
@media (max-width: 780px) {
  .sticky-cta { display: grid; }
  body { padding-bottom: 4.6rem; }
}

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: .85rem; color: var(--ink-faint); padding-block: 1.1rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.crumbs a { color: var(--ink-faint); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* ---------- Segnaposto da compilare ---------- */
.todo {
  background: var(--todo-bg); color: var(--todo-ink);
  padding: .05em .4em; border-radius: 2px; font-size: .93em;
  font-weight: 600; white-space: nowrap;
}

/* ---------- Marchio come elemento grafico ---------- */
.hero { position: relative; overflow: hidden; }
.hero__mark {
  position: absolute; right: -6%; top: 50%; transform: translateY(-50%);
  width: min(52vw, 620px); opacity: .05; pointer-events: none; z-index: 0;
}
.hero > .wrap { position: relative; z-index: 1; }
@media (max-width: 880px) { .hero__mark { right: -22%; width: 90vw; opacity: .04; } }

.mark-rule {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem;
}
.mark-rule::before, .mark-rule::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.mark-rule img { width: 34px; height: auto; opacity: .85; flex: none; }

/* ---------- Sedi ---------- */
.sedi { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.sede {
  background: var(--surface); padding: 1.5rem 1.4rem;
  display: flex; flex-direction: column; gap: .55rem;
  border-top: 3px solid transparent; transition: border-color .18s ease;
}
.sede:hover { border-top-color: var(--gold); }
.sede__prov {
  font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-ink);
}
.sede__nome { font-family: "Newsreader", serif; font-size: 1.22rem; line-height: 1.15; }
.sede__ind { font-size: .93rem; color: var(--ink-soft); line-height: 1.5; }
.sede__tel { font-size: .93rem; margin-top: auto; padding-top: .5rem; }
.sede__tel a { text-decoration: none; font-weight: 600; }
.sede__tel a:hover { text-decoration: underline; }

/* ---------- Numeri / dati salienti ---------- */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem 1.5rem; }
.figure { display: flex; flex-direction: column; gap: .3rem; border-top: 2px solid var(--gold); padding-top: .9rem; }
.figure b { font-family: "Newsreader", serif; font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 500; line-height: 1; color: var(--ink); }
.figure span { font-size: .9rem; color: var(--ink-soft); }

/* ---------- Confronto fra due tecniche ---------- */
.confronto { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line);
             border: 1px solid var(--line); border-radius: 3px; overflow: hidden; margin-top: 2rem; }
@media (max-width: 820px) { .confronto { grid-template-columns: 1fr; } }
.tecnica { background: var(--surface); padding: clamp(1.5rem, 3vw, 2.1rem); display: flex; flex-direction: column; gap: 1rem; }
.tecnica__testa { display: flex; flex-direction: column; gap: .3rem; }
.tecnica__nome { font-family: "Newsreader", serif; font-size: var(--step-2); font-weight: 500; color: var(--ink); }
.tecnica__sub { font-size: .88rem; color: var(--gold-ink); font-weight: 600; letter-spacing: .04em; }
.tecnica__voci { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .7rem; }
.tecnica__voci li { display: grid; grid-template-columns: 6.6rem 1fr; gap: .9rem; font-size: .93rem; color: var(--ink-soft); align-items: start; }
.tecnica__voci strong { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; padding-top: .15rem; }
@media (max-width: 520px) { .tecnica__voci li { grid-template-columns: 1fr; gap: .1rem; } }
.tecnica .btn { margin-top: auto; align-self: flex-start; }
.tecnica--principale { border-top: 3px solid var(--accent); }
.tecnica--alternativa { border-top: 3px solid var(--gold); }

/* ---------- Schede delle aree di attività ---------- */
.aree { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line);
        border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
@media (max-width: 900px) { .aree { grid-template-columns: 1fr; } }
.area { background: var(--surface); padding: clamp(1.5rem, 3vw, 2.1rem); display: flex; flex-direction: column; gap: .9rem; }
.area > h3 { font-family: "Newsreader", serif; font-size: var(--step-2); font-weight: 500; }
.area__intro { font-size: .93rem; color: var(--ink-soft); }
.area ul { list-style: none; padding: 0; margin: .2rem 0 0; display: flex; flex-direction: column; gap: .55rem; }
.area li { font-size: .95rem; color: var(--ink); display: flex; gap: .6rem; line-height: 1.4; }
.area li::before { content: ""; flex: none; width: .7rem; height: 2px; background: var(--accent); margin-top: .65rem; }
.area li a { text-decoration: none; }
.area li a:hover { text-decoration: underline; }
.area li small { display: block; color: var(--ink-faint); font-size: .82rem; }
.area__nota { margin-top: auto; padding-top: .9rem; font-size: .82rem; color: var(--ink-faint); }

/* ---------- Firma come titolo dell'apertura ---------- */
.hero__firma { width: min(460px, 100%); height: auto; display: block; margin-bottom: .2rem; }
.hero__firma--dark { display: none; }
:root[data-theme="dark"] .hero__firma--light { display: none; }
:root[data-theme="dark"] .hero__firma--dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero__firma--light { display: none; }
  :root:not([data-theme="light"]) .hero__firma--dark { display: block; }
}
h1.hero__title--logo { margin: 0; line-height: 1; }

/* ---------- Valutazione dei pazienti ---------- */
.rating {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem 2.4rem;
  border: 1px solid var(--line); border-top: 3px solid var(--gold);
  background: var(--surface); border-radius: 3px;
  padding: clamp(1.4rem, 3vw, 2rem);
}
.rating__score { display: flex; flex-direction: column; gap: .35rem; }
.rating__num {
  font-family: "Newsreader", serif; font-size: clamp(2.4rem, 5vw, 3.2rem);
  line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums;
}
.rating__num span { font-size: .42em; color: var(--ink-faint); }
.rating__stars { display: flex; gap: .18rem; }
.rating__stars svg { width: 19px; height: 19px; fill: var(--gold); }
.rating__meta { flex: 1; min-width: 230px; display: flex; flex-direction: column; gap: .5rem; }
.rating__meta p { color: var(--ink-soft); font-size: .95rem; }
.rating__fonte { font-size: .82rem; color: var(--ink-faint); }
.rating__cta { flex: none; }
@media (max-width: 620px) { .rating { gap: 1.1rem; } .rating__cta .btn { width: 100%; } }

/* ---------- Figure cliniche (diagrammi SVG) ---------- */
.figura { margin: 2.2rem 0 0; max-width: none; }
.figura__griglia {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 3px; overflow: hidden;
}
@media (max-width: 560px) { .figura__griglia { grid-template-columns: 1fr; } }

.fase {
  background: var(--surface); padding: 1.5rem 1.4rem 1.6rem;
  display: grid; grid-template-columns: 150px 1fr; grid-template-rows: auto auto auto;
  column-gap: 1.5rem; row-gap: .45rem; align-content: start;
}
.fase svg { grid-row: 1 / span 3; align-self: start; }
@media (max-width: 700px) {
  .fase { grid-template-columns: 110px 1fr; column-gap: 1.1rem; }
}
.fase svg { width: 100%; height: auto; display: block; }
.fase__n {
  font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-ink); display: flex; align-items: center; gap: .45rem;
}
.fase__n::before { content: ""; width: 1rem; height: 2px; background: var(--gold); }
.fase__t { font-weight: 600; font-size: .95rem; color: var(--ink); line-height: 1.3; }
.fase__d { font-size: .84rem; color: var(--ink-soft); line-height: 1.5; }
.figura figcaption { font-size: .82rem; color: var(--ink-faint); margin-top: .9rem; line-height: 1.5; }

/* Colori del disegno anatomico, dichiarati come token per reggere entrambi i temi */
.anat {
  --a-vescica: color-mix(in srgb, var(--accent) 12%, var(--surface));
  --a-organo:  color-mix(in srgb, var(--sand) 75%, var(--surface));
  --a-adenoma: color-mix(in srgb, var(--gold) 32%, var(--surface));
  --a-tratto:  var(--ink-soft);
  --a-lume:    var(--surface);
  --a-laser:   var(--accent-brand);
  --a-guida:   var(--gold);
}
.anat .tratto { fill: none; stroke: var(--a-tratto); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.anat .vescica, .anat .organo, .anat .adenoma, .anat .lume {
  stroke: var(--a-tratto); stroke-width: 1.6; stroke-linejoin: round;
}
.anat .vescica { fill: var(--a-vescica); }
.anat .organo  { fill: var(--a-organo); }
.anat .adenoma { fill: var(--a-adenoma); stroke-dasharray: 0; }
.anat .lume    { fill: var(--a-lume); }
.anat .strumento { fill: none; stroke: var(--a-laser); stroke-width: 4.5; stroke-linecap: round; }
.anat .laser   { stroke: var(--a-laser); stroke-width: 2; stroke-linecap: round; }
.anat .piano   { fill: none; stroke: var(--a-guida); stroke-width: 2.2; stroke-dasharray: 5 4; stroke-linecap: round; }
.anat .freccia { fill: var(--a-guida); }
.anat text { font-family: "Archivo", sans-serif; font-size: 11px; fill: var(--ink-faint); }

@media (prefers-reduced-motion: no-preference) {
  .anat .pulsa { animation: pulsa 2.4s ease-in-out infinite; }
  @keyframes pulsa { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
}

.schema { margin: 2.4rem 0 .6rem; }
/* lo schema esce dalla misura di lettura: dentro c'è testo che deve restare leggibile */
.prose .schema { width: min(1040px, calc(100vw - 2 * var(--gut))); max-width: none; }
@media (max-width: 700px) { .prose .schema { width: 100%; } }
.schema a { display: block; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: #fff; }
.schema img { width: 100%; height: auto; display: block; }
.schema figcaption { font-size: .82rem; color: var(--ink-faint); margin-top: .8rem; line-height: 1.5; }
.schema figcaption b { color: var(--ink-soft); font-weight: 600; }
@media (hover: hover) { .schema a:hover { border-color: var(--accent); } }

/* ---------- Recensioni citate ---------- */
/* Due colonne: la citazione più lunga a sinistra, le due brevi impilate a destra.
   Così le altezze si compensano invece di lasciare un buco. */
.recensioni {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem; align-items: start; margin-top: 1.8rem;
}
.recensioni .rec:first-child { grid-row: span 2; }
@media (max-width: 780px) {
  .recensioni { grid-template-columns: 1fr; }
  .recensioni .rec:first-child { grid-row: auto; }
}
.rec {
  background: var(--surface); border: 1px solid var(--line); border-radius: 3px;
  padding: 1.5rem 1.4rem 1.3rem; display: flex; flex-direction: column; gap: .9rem;
  position: relative;
}
.rec::before {
  content: "\201C"; font-family: "Newsreader", serif; font-size: 3.4rem; line-height: .8;
  color: var(--gold); opacity: .55; display: block; height: 1.1rem;
}
.rec__testo { font-size: .95rem; line-height: 1.6; color: var(--ink-soft); }
.rec__firma { margin-top: auto; padding-top: .5rem; border-top: 1px solid var(--line); font-size: .84rem; color: var(--ink-faint); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.rec__firma strong { color: var(--ink); font-weight: 600; }

/* ---------- Elenco pubblicazioni ---------- */
.pub-lista { display: flex; flex-direction: column; max-width: 80ch; }
.pub-anno {
  font-family: "Newsreader", serif; font-size: 1.5rem; color: var(--accent);
  margin: 2.2rem 0 .4rem; padding-bottom: .4rem; border-bottom: 2px solid var(--gold);
  font-variant-numeric: tabular-nums;
}
.pub-anno:first-child { margin-top: 0; }
.pub { padding: 1.1rem 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: .3rem; }
.pub__titolo { font-size: 1rem; font-weight: 600; color: var(--ink); line-height: 1.4; }
.pub__autori { font-size: .88rem; color: var(--ink-soft); line-height: 1.5; }
.pub__autori strong { color: var(--ink); }
.pub__rivista { font-size: .85rem; color: var(--ink-faint); }
.pub__rivista a { text-decoration: none; }
.pub__rivista a:hover { text-decoration: underline; }

/* ---------- Logo nel footer ---------- */
.footer-logo { width: min(260px, 80%); height: auto; margin-bottom: 1.1rem; }
.footer-logo--dark { display: none; }
:root[data-theme="dark"] .footer-logo--light { display: none; }
:root[data-theme="dark"] .footer-logo--dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .footer-logo--light { display: none; }
  :root:not([data-theme="light"]) .footer-logo--dark { display: block; }
}

/* ---------- Stampa e PDF ---------- */
@media print {
  :root {
    --ground: #fff; --surface: #fff; --surface-alt: #fff;
    --ink: #000; --ink-soft: #333; --ink-faint: #555; --line: #bbb;
  }
  .site-header { position: static; border-top-width: 2px; }
  .sticky-cta, .nav-toggle, .mobile-nav, .skip, .header-cta { display: none !important; }
  body { padding-bottom: 0; font-size: 10.5pt; }
  .section { padding-block: 1.1rem; break-inside: auto; }
  .hero { padding-block: 1rem; }
  .hero__mark { display: none; }
  .grid, .sedi { border-color: #bbb; }
  .card, .sede, .panel, .figure, .pub { break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; }
  .faq details { break-inside: avoid; }
  .faq details > div { display: block !important; }
  .cta-band { background: #fff !important; color: #000 !important; border-top: 2px solid var(--gold); }
  .cta-band .btn { display: none; }
  a { color: #000; text-decoration: underline; }
  .btn { border: 1px solid #666 !important; background: #fff !important; color: #000 !important; }
  .todo { background: #ffe9a8; color: #000; }
  @page { margin: 14mm 12mm; }
}

/* ---------- Banner di consenso ---------- */
.consenso {
  position: fixed; left: var(--gut); right: var(--gut); bottom: var(--gut); z-index: 90;
  max-width: 620px; margin-inline: auto;
  background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--gold);
  border-radius: 3px; box-shadow: 0 10px 40px -12px rgba(0,0,0,.35);
  padding: 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 1rem;
  opacity: 0; transform: translateY(10px); transition: opacity .25s ease, transform .25s ease;
}
.consenso[data-visibile="true"] { opacity: 1; transform: translateY(0); }
.consenso__testo strong { display: block; font-size: .95rem; margin-bottom: .3rem; color: var(--ink); }
.consenso__testo p { font-size: .87rem; color: var(--ink-soft); line-height: 1.55; }
/* le due scelte hanno lo stesso peso: nessun pulsante nascosto o sbiadito */
.consenso__scelte { display: flex; gap: .6rem; justify-content: flex-end; }
.consenso__scelte .btn { min-width: 118px; justify-content: center; }
@media (max-width: 560px) {
  .consenso { left: .8rem; right: .8rem; bottom: 5.2rem; }
  .consenso__scelte .btn { flex: 1; }
}
@media print { .consenso { display: none !important; } }

/* ---------- Utility ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff;
  padding: .7rem 1rem; z-index: 100; border-radius: 0 0 3px 0;
}
.skip:focus { left: 0; }
.muted { color: var(--ink-soft); }
.small { font-size: var(--step--1); }
.pill { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); background: var(--accent-tint); padding: .3rem .65rem; border-radius: 2px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.tworow { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.8fr); gap: clamp(2rem,5vw,3.5rem); align-items: start; }
@media (max-width: 880px) { .tworow { grid-template-columns: 1fr; } }
.gap-sm { gap: .6rem; } .gap-md { gap: 1.1rem; } .gap-lg { gap: 2rem; }
