/* Dott. Davide Buonanno — foglio di stile pubblico
   Stile: minimal, da professionista medico. Palette verde (salute), tema chiaro/scuro. */

@font-face { font-family: "Newsreader"; src: url("/assets/fonts/newsreader-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/newsreader-latin-wght-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("/assets/fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
/* fallback con metriche vicine, per evitare spostamenti del layout */
@font-face { font-family: "Newsreader Fallback"; src: local("Georgia"); size-adjust: 92%; ascent-override: 96%; descent-override: 26%; line-gap-override: 0%; }
@font-face { font-family: "Atkinson Fallback"; src: local("Arial"); size-adjust: 100%; ascent-override: 95%; descent-override: 24%; line-gap-override: 0%; }

:root {
  color-scheme: light;
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --sage: #E9F0EB;
  --sage-2: #DCEBE2;
  --paper: #F3F1EB;
  --tile: #E4F2EA;
  --icon: #3D7360;
  --arch-1: #D3EADD;
  --motto-bg: #F1EADC;
  --motto-ink: #14302A;
  --arch-2: #EAF5EE;
  --ink: #26332F;
  --heading: #1C3B34;
  --action: #3D7360;
  --action-hover: #2F5E4D;
  --btn: #A8D5BF;
  --btn-hover: #93C9AF;
  --on-btn: #14302A;
  --on-action: #FFFFFF;
  --muted: #56645E;
  --line: #E5E4DE;
  --line-strong: #6F8079;
  --deco: #B9AD92;
  --deep: #14302A;
  --foot: #1E2321;
  --on-deep: #F5F4EE;
  --on-deep-muted: #B9CDBF;
  --deep-btn: #F5F4EE;
  --on-deep-btn: #14302A;
  --sand: #C8B68E;
  --tbc-bg: #F3EBD6;
  --tbc-ink: #7A5A12;
  --mark: rgba(200, 182, 142, .42);
  --shadow: 0 1px 2px rgba(20, 48, 42, .04), 0 8px 24px -12px rgba(20, 48, 42, .14);
  --shadow-lg: 0 2px 4px rgba(20, 48, 42, .04), 0 24px 48px -20px rgba(20, 48, 42, .22);
  --radius: 16px;
  --radius-lg: 28px;
  --serif: "Newsreader", "Newsreader Fallback", Georgia, serif;
  --sans: "Atkinson Hyperlegible Next", "Atkinson Fallback", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --accent: "Newsreader", "Newsreader Fallback", Georgia, serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121614; --surface: #1A1F1D; --sage: #18241F; --sage-2: #20382F; --paper: #171C1A; --tile: #1E2A25; --icon: #9FD0BC; --arch-1: #1F3029; --arch-2: #172420; --btn: #9FD0BC; --btn-hover: #B8DFCF; --on-btn: #0F1D19; --motto-bg: #1F1C17; --motto-ink: #F0F3F0;
  --ink: #DCE3DE; --heading: #F0F3F0; --action: #9FD0BC; --action-hover: #B8DFCF; --on-action: #0F1D19;
  --muted: #A6B2AC; --line: #2A302D; --line-strong: #64746C; --deco: #6E6656;
  --deep: #0E2621; --foot: #0B0E0D; --on-deep: #EEF3EE; --on-deep-muted: #A3B5AC; --deep-btn: #9FD0BC; --on-deep-btn: #0A1513;
  --tbc-bg: #2B2615; --tbc-ink: #E9CF8F; --mark: rgba(200, 182, 142, .26);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .5);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 48px -20px rgba(0, 0, 0, .6);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #121614; --surface: #1A1F1D; --sage: #18241F; --sage-2: #20382F; --paper: #171C1A; --tile: #1E2A25; --icon: #9FD0BC; --arch-1: #1F3029; --arch-2: #172420; --btn: #9FD0BC; --btn-hover: #B8DFCF; --on-btn: #0F1D19; --motto-bg: #1F1C17; --motto-ink: #F0F3F0;
    --ink: #DCE3DE; --heading: #F0F3F0; --action: #9FD0BC; --action-hover: #B8DFCF; --on-action: #0F1D19;
    --muted: #A6B2AC; --line: #2A302D; --line-strong: #64746C; --deco: #6E6656;
    --deep: #0E2621; --foot: #0B0E0D; --on-deep: #EEF3EE; --on-deep-muted: #A3B5AC; --deep-btn: #9FD0BC; --on-deep-btn: #0A1513;
    --tbc-bg: #2B2615; --tbc-ink: #E9CF8F; --mark: rgba(200, 182, 142, .26);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .5);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 48px -20px rgba(0, 0, 0, .6);
  }
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 200ms; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--action); text-decoration-thickness: 1px; text-underline-offset: .2em; transition: color .15s var(--ease); }
a:hover { color: var(--action-hover); }
:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--heading); font-weight: 500; line-height: 1.15; letter-spacing: -.012em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); line-height: 1.05; letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; line-height: 1.25; }
h4 { font-family: var(--sans); font-size: 1rem; font-weight: 650; letter-spacing: 0; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
li { margin: .25em 0; }
strong { font-weight: 650; color: var(--heading); }
small { font-size: .85em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.measure { max-width: 66ch; }
.muted { color: var(--muted); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--btn); color: var(--on-btn); padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

.eyebrow { display: inline-flex; align-items: center; gap: .55em; font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--deco); }
.accent { font-family: var(--accent); font-style: italic; font-weight: 450; letter-spacing: -.005em; color: var(--heading); font-size: 1.1em; line-height: 1; }
.section-sage .accent, .card-sage .accent { color: var(--heading); }
.hl { font-weight: 650; color: var(--heading); background: linear-gradient(to top, var(--mark) 0 .42em, transparent .42em); padding: 0 .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lead { font-size: 1.15em; color: var(--ink); }
@media (min-width: 900px) { .lead { font-size: 1.2em; } }

/* segnaposto da confermare (solo anteprima) */
.tbc { display: inline-flex; align-items: center; gap: .35em; font-family: var(--sans); font-size: .72rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--tbc-ink); background: var(--tbc-bg); border-radius: 999px; padding: .2em .65em; vertical-align: .15em; white-space: nowrap; font-style: normal; }
.tbc::before { content: ""; width: .5em; height: .5em; border-radius: 50%; background: currentColor; opacity: .7; }
.tbc-block { border: 1px dashed var(--tbc-ink); background: var(--tbc-bg); color: var(--tbc-ink); border-radius: var(--radius); padding: 1rem 1.2rem; font-size: .92rem; }
.preview-ribbon { background: var(--tbc-bg); color: var(--tbc-ink); font-size: .82rem; text-align: center; padding: .45rem var(--gutter); }

/* pulsanti */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .75em 1.35em; border-radius: 999px; font-family: var(--sans); font-size: 1rem; font-weight: 600; line-height: 1.2; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--btn); color: var(--on-btn); }
.btn-primary:hover { background: var(--btn-hover); color: var(--on-btn); }
.btn-ghost { background: transparent; color: var(--action); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--action); color: var(--action-hover); background: var(--paper); }
.btn-light { background: var(--deep-btn); color: var(--on-deep-btn); }
.btn-light:hover { filter: brightness(.95); color: var(--on-deep-btn); }
.btn-sm { min-height: 44px; padding: .55em 1.05em; font-size: .95rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .18s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .2s var(--ease); }
/* la sfocatura dietro l'header solo su desktop: sui telefoni rallenta lo scroll */
@media (min-width: 960px) and (hover: hover) { .site-header { background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); } }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--heading); line-height: 1.1; margin-right: auto; }
.brand-name { font-family: var(--serif); font-size: 1.28rem; font-weight: 500; letter-spacing: -.01em; }
.brand-role { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav { display: none; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; padding: .5em .7em; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--heading); background: var(--paper); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--heading); cursor: pointer; transition: border-color .18s var(--ease), background-color .18s var(--ease); }
.icon-btn:hover { border-color: var(--line-strong); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle .sun { display: none; } :root:not([data-theme="light"]) .theme-toggle .moon { display: block; } }
.header-cta { display: none; }
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(320px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .5rem; display: grid; }
.menu-panel a { display: block; padding: .8rem 1rem; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; }
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: var(--paper); color: var(--heading); }
.menu-panel .btn { margin: .4rem .2rem .2rem; }
@media (min-width: 960px) {
  .nav { display: flex; gap: .15rem; }
  .header-cta { display: inline-flex; }
  .menu { display: none; }
}

/* sezioni */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-tight { padding-block: clamp(40px, 5vw, 64px); }
.section-sage { background: var(--sage); }
.section-paper { background: var(--paper); }
.section-motto { background: var(--motto-bg); }
.section-motto h2 { color: var(--motto-ink); font-weight: 520; }
.section-motto .accent { color: var(--action); font-weight: 500; }
.section-motto .lead { color: var(--ink); }
.section-motto .card { border-color: transparent; box-shadow: var(--shadow); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--muted); }
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* hero */
.hero { padding-top: clamp(28px, 5vw, 64px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.hero-pill { display: inline-flex; align-items: center; gap: .6em; padding: .4em .9em .4em .5em; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .85rem; font-weight: 500; color: var(--muted); margin-bottom: 1.4rem; }
.hero-pill .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--tile); display: grid; place-items: center; }
.hero-pill .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--action); }
.hero h1 { margin-bottom: .35em; }
.hero .subtitle { font-size: 1.12em; color: var(--heading); margin-bottom: .6em; max-width: 34em; }
.hero .desc { color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: 2rem 0 0; padding: 1.4rem 0 0; border-top: 1px solid var(--line); list-style: none; font-size: .92rem; color: var(--muted); }
.hero-trust li { display: flex; align-items: center; gap: .5em; margin: 0; }
.hero-trust svg { width: 18px; height: 18px; color: var(--action); flex: none; }
.portrait { position: relative; max-width: 460px; width: 100%; margin-inline: auto; }
.portrait-frame { position: relative; aspect-ratio: 3 / 4; border-radius: 220px 220px var(--radius-lg) var(--radius-lg); background: linear-gradient(180deg, var(--arch-1), var(--arch-2)); overflow: hidden; }
.portrait-frame picture, .portrait-frame img { position: absolute; inset: auto 0 0 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.portrait-card { text-decoration: none; color: var(--ink); position: absolute; left: -12px; bottom: 22px; display: flex; gap: .75rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .8rem 1rem; max-width: 280px; font-size: .86rem; line-height: 1.35; }
.portrait-card strong { display: block; font-size: .92rem; }
a.portrait-card:hover { color: var(--ink); border-color: var(--line-strong); }
.portrait-card .ico { width: 38px; height: 38px; border-radius: 12px; background: var(--tile); color: var(--icon); display: grid; place-items: center; flex: none; }
.portrait-card .ico svg { width: 20px; height: 20px; }
@media (max-width: 520px) { .portrait { max-width: 340px; } .portrait-card { left: 8px; right: 8px; bottom: 12px; max-width: none; } }

/* barra pratica */
.practical { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr; overflow: hidden; }
.practical > * { display: flex; gap: .8rem; align-items: center; padding: 1rem 1.25rem; text-decoration: none; color: var(--ink); border-top: 1px solid var(--line); min-height: 72px; transition: background-color .15s var(--ease); }
.practical > *:first-child { border-top: 0; }
.practical a:hover { background: var(--paper); }
.practical .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--tile); color: var(--icon); display: grid; place-items: center; flex: none; }
.practical a:hover .ico { background: var(--surface); }
.practical .ico svg { width: 20px; height: 20px; }
.practical .k { display: block; font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.practical .v { display: block; font-weight: 600; color: var(--heading); line-height: 1.3; }
@media (min-width: 640px) { .practical { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; } .practical > * { border-top: 0; border-left: 1px solid var(--line); } .practical > *:first-child { border-left: 0; } }
@media (min-width: 1100px) { .practical { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; } .practical > *, .practical > *:nth-child(n) { border-top: 0; border-left: 1px solid var(--line); flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: .6rem; padding: 1.3rem 1.25rem; } .practical > *:first-child { border-left: 0; } }

/* card */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 2.4vw, 28px); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
a.card { display: block; text-decoration: none; color: var(--ink); transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease); }
a.card:hover { border-color: color-mix(in srgb, var(--action) 45%, var(--line)); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.card .ico { width: 44px; height: 44px; border-radius: 13px; background: var(--tile); color: var(--icon); display: grid; place-items: center; margin-bottom: 1.1rem; }
.card .ico svg { width: 22px; height: 22px; }
.card .more { display: inline-flex; align-items: center; gap: .35em; margin-top: .8rem; font-weight: 600; color: var(--action); font-size: .95rem; }
.card .more svg { width: 15px; height: 15px; transition: transform .18s var(--ease); }
a.card:hover .more svg { transform: translateX(3px); }
.card-sage { background: var(--sage); border-color: transparent; }
.card-paper { background: var(--paper); border-color: transparent; }

/* condizioni (home e indice) */
.topics { display: grid; gap: 14px; }
@media (min-width: 720px) { .topics { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .topics { grid-template-columns: repeat(3, 1fr); } }
.topic { display: flex; flex-direction: column; min-height: 100%; }
.topic p { color: var(--muted); font-size: .97rem; }

/* passi */
.steps { display: grid; gap: 14px; counter-reset: step; list-style: none; padding: 0; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 24px; margin: 0; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--action); font-weight: 650; font-size: .9rem; margin-bottom: 1rem; }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); font-size: .97rem; margin: 0; }
.attrib { font-size: .9rem; color: var(--muted); margin-top: 1.2rem; }

/* presentazione */
.intro { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 860px) { .intro { grid-template-columns: 320px 1fr; } }
.intro-photo { width: 100%; max-width: 320px; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(180deg, var(--arch-1), var(--arch-2)); overflow: hidden; margin-inline: auto; }
.intro-photo picture { display: block; width: 100%; height: 100%; }
.intro-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* blocco scuro finale */
.cta-deep { background: var(--deep); color: var(--on-deep); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 64px); position: relative; overflow: hidden; }
.cta-deep::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; border: 1px solid rgba(185, 205, 191, .18); box-shadow: 0 0 0 40px rgba(185, 205, 191, .04), 0 0 0 80px rgba(185, 205, 191, .03); pointer-events: none; }
.cta-deep h2 { color: var(--on-deep); }
.cta-deep p { color: var(--on-deep-muted); }
.cta-deep a:not(.btn) { color: var(--on-deep); }
.cta-options { display: grid; gap: 12px; margin: 1.8rem 0; position: relative; z-index: 1; }
@media (min-width: 860px) { .cta-options { grid-template-columns: repeat(3, 1fr); } }
.cta-opt { border: 1px solid rgba(185, 205, 191, .22); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.cta-opt .k { font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--on-deep-muted); }
.cta-opt .v { display: block; font-family: var(--serif); font-size: 1.3rem; color: var(--on-deep); margin: .2rem 0; }
.cta-opt a.v { text-decoration: none; }
.cta-opt a.v:hover { text-decoration: underline; }
.cta-opt small { color: var(--on-deep-muted); }

/* pagina interna */
.page-head { padding-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(24px, 4vw, 40px); }
.page-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
.page-head .lead { color: var(--muted); max-width: 44em; }
.crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 1.2rem; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35em; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: .35em; color: var(--deco); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--action); }
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.5rem, 2.5vw, 1.9rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul li::marker { color: var(--deco); }
.prose blockquote { margin: 1.5em 0; padding: .2em 0 .2em 1.2em; border-left: 2px solid var(--deco); color: var(--muted); }
.layout-aside { display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 1000px) { .layout-aside { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } .aside-sticky { position: sticky; top: 96px; } }
.note { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 2rem; }
.disclaimer { display: flex; gap: .7rem; font-size: .9rem; color: var(--muted); background: var(--paper); border-radius: var(--radius); padding: 1rem 1.2rem; margin-top: 2rem; }
.disclaimer svg { width: 20px; height: 20px; flex: none; color: var(--action); margin-top: 2px; }
.two-level { display: grid; gap: 16px; }
@media (min-width: 900px) { .two-level { grid-template-columns: 1fr 1fr; } }
.check { list-style: none; padding: 0; }
.check li { position: relative; padding-left: 1.9em; margin: .55em 0; }
.check li::before { content: ""; position: absolute; left: 0; top: .32em; width: 1.15em; height: 1.15em; border-radius: 50%; background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E5B4F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 62% no-repeat; }
.toc { font-size: .95rem; }
.toc h2 { font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: .35rem 0 .35rem 1rem; color: var(--ink); text-decoration: none; margin-left: -1px; border-left: 1px solid transparent; }
.toc a:hover { color: var(--action); border-left-color: var(--action); }

/* bio */
.bio-text p { font-size: 1.08em; }
.bio-text > p:first-child { font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 1.7rem); line-height: 1.35; color: var(--heading); }
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.fact { display: grid; gap: .3rem 1.5rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .fact { grid-template-columns: 220px 1fr; } }
.fact dt { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: .2em; }
.fact dd { margin: 0; }
.fact dd ul { margin: 0; padding-left: 1.1em; }
.robot { display: grid; gap: 1.2rem; align-items: center; }
@media (min-width: 760px) { .robot { grid-template-columns: auto 1fr; } }
.robot .ico { width: 56px; height: 56px; border-radius: 16px; background: var(--surface); color: var(--action); display: grid; place-items: center; }
.robot .ico svg { width: 28px; height: 28px; }

/* contatti / prenotazione */
.situations { display: grid; gap: 10px; }
@media (min-width: 760px) { .situations { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .situations { grid-template-columns: repeat(3, 1fr); } }
.situation { display: flex; gap: .9rem; align-items: flex-start; width: 100%; text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; cursor: pointer; text-decoration: none; transition: border-color .15s var(--ease), background-color .15s var(--ease), box-shadow .15s var(--ease); }
.situation:hover { border-color: var(--line-strong); color: var(--ink); }
.situation[aria-pressed="true"] { border-color: var(--action); box-shadow: 0 0 0 1px var(--action) inset; background: var(--surface); }
.situation .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--tile); color: var(--icon); display: grid; place-items: center; flex: none; }
.situation .ico svg { width: 20px; height: 20px; }
.situation strong { display: block; font-size: 1rem; line-height: 1.3; margin-bottom: .15rem; }
.situation span.s { display: block; font-size: .9rem; color: var(--muted); line-height: 1.4; }
.advice { margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--action); border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.advice[hidden] { display: none; }
.advice h3 { font-size: 1.15rem; }
.advice p:last-child { margin-bottom: 0; }
.paths { display: grid; gap: 16px; }
@media (min-width: 1000px) { .paths { grid-template-columns: repeat(3, 1fr); } }
.path { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 2.4vw, 30px); scroll-margin-top: 100px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.path.is-active { border-color: var(--action); box-shadow: 0 0 0 1px var(--action) inset, var(--shadow); }
.path .tag { align-self: flex-start; font-size: .74rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--heading); background: var(--tile); border-radius: 999px; padding: .3em .8em; margin-bottom: 1rem; }
.path h3 { font-size: 1.4rem; }
.path dl { margin: 1rem 0; display: grid; gap: .8rem; }
.path dt { font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.path dd { margin: .1rem 0 0; }
.path .phone { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--serif); font-size: 1.55rem; font-weight: 500; color: var(--heading); text-decoration: none; letter-spacing: -.01em; }
.path .phone:hover { color: var(--action); }
.path .phone svg { width: 20px; height: 20px; color: var(--action); }
.path .actions { margin-top: auto; padding-top: 1rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.status { display: inline-flex; align-items: center; gap: .5em; font-size: .88rem; font-weight: 600; border-radius: 999px; padding: .25em .75em; margin-top: .4rem; }
.status::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: currentColor; }
.status.open { color: var(--action); background: var(--sage); }
.status.closed { color: var(--muted); background: color-mix(in srgb, var(--line) 60%, transparent); }
.status[hidden] { display: none; }
.say { font-size: .93rem; color: var(--muted); background: var(--paper); border-radius: 12px; padding: .75rem .9rem; }
.urgent { display: flex; gap: .7rem; align-items: center; font-weight: 600; color: var(--heading); margin-top: 1.4rem; }
.urgent svg { width: 22px; height: 22px; color: var(--action); flex: none; }
.where { display: grid; gap: 16px; }
@media (min-width: 900px) { .where { grid-template-columns: 1fr 1fr; } }
.floors { display: grid; gap: 8px; margin-top: 1rem; }
.floor { display: grid; grid-template-columns: 64px 1fr; gap: 1rem; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: .8rem 1rem; background: var(--surface); }
.floor.on { border-color: var(--action); background: var(--surface); box-shadow: 0 0 0 1px var(--action) inset; }
.floor .lvl { font-family: var(--serif); font-size: 1.5rem; color: var(--action); text-align: center; line-height: 1; }
.floor .lvl small { display: block; font-family: var(--sans); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: .3rem; }
.floor p { margin: 0; font-size: .95rem; }
.map { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.map svg { width: 100%; height: auto; }
.map iframe { display: block; width: 100%; height: 420px; border: 0; }
.map-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.verified { display: inline-flex; gap: .5em; align-items: center; font-size: .85rem; color: var(--muted); }
.verified svg { width: 16px; height: 16px; color: var(--action); }

/* articoli */
.articles { display: grid; gap: 14px; }
@media (min-width: 900px) { .articles { grid-template-columns: repeat(3, 1fr); } }
.article-card .meta { font-size: .84rem; color: var(--muted); margin-bottom: .6rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .9rem; color: var(--muted); padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 1.4rem 0 2rem; }
.sources { font-size: .92rem; }
.sources ol { padding-left: 1.2em; }
.sources li { margin: .4em 0; }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; font-weight: 600; color: var(--heading); min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; border-right: 1.5px solid var(--action); border-bottom: 1.5px solid var(--action); transform: rotate(45deg); transition: transform .2s var(--ease); flex: none; margin-right: 4px; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .a { padding: 0 0 1.2rem; color: var(--ink); max-width: 66ch; }

/* footer */
.site-footer { background: var(--foot); color: var(--on-deep-muted); margin-top: clamp(56px, 8vw, 96px); padding: clamp(48px, 6vw, 72px) 0 calc(28px + env(safe-area-inset-bottom)); font-size: .93rem; }
.site-footer a { color: var(--on-deep); }
.site-footer h2 { font-family: var(--sans); font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--on-deep-muted); margin-bottom: .9rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-name { font-family: var(--serif); font-size: 1.5rem; color: var(--on-deep); margin-bottom: .3rem; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin: .45em 0; }
.footer-bottom { border-top: 1px solid rgba(185, 205, 191, .18); margin-top: 2.5rem; padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; font-size: .85rem; }
.footer-bottom .tbc { vertical-align: 0; }

/* barra mobile */
.mobile-bar { position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 6px 20px -8px rgba(10, 21, 19, .28); transform: translateZ(0); }
.mobile-bar .btn { min-height: 48px; width: 100%; }
@media (min-width: 960px) { .mobile-bar { display: none; } }
@media (max-width: 959px) { body { padding-bottom: 88px; } }

/* pannello chiama */
dialog.call { border: 0; padding: 0; background: transparent; max-width: 520px; width: calc(100% - 24px); margin: auto auto 12px; color: var(--ink); }
@media (min-width: 640px) { dialog.call { margin: auto; } }
dialog.call::backdrop { background: rgba(10, 21, 19, .55); backdrop-filter: blur(2px); }
.call-inner { background: var(--surface); border-radius: var(--radius-lg); padding: 1.4rem; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.call-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .4rem; }
.call-head h2 { font-size: 1.45rem; margin: 0; }
.call-opt { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-radius: var(--radius); border: 1px solid var(--line); margin-top: .7rem; text-decoration: none; color: var(--ink); min-height: 72px; transition: border-color .15s var(--ease), background-color .15s var(--ease); }
.call-opt:hover { border-color: var(--action); background: var(--paper); color: var(--ink); }
.call-opt .ico { width: 42px; height: 42px; border-radius: 50%; background: var(--btn); color: var(--on-btn); display: grid; place-items: center; flex: none; }
.call-opt .ico svg { width: 19px; height: 19px; }
.call-opt strong { display: block; }
.call-opt .num { font-family: var(--serif); font-size: 1.3rem; color: var(--heading); }
.call-opt small { display: block; color: var(--muted); }
.call-foot { font-size: .86rem; color: var(--muted); margin: 1rem 0 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
}
@media print {
  .site-header, .site-footer, .mobile-bar, .no-print, .preview-ribbon { display: none !important; }
  body { background: #fff; color: #000; padding: 0; font-size: 12pt; }
  .card, .path { border-color: #bbb; box-shadow: none; }
  a { color: #000; }
}

/* animazioni minime, solo desktop e solo se l'utente non chiede movimento ridotto */
@media (min-width: 960px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  @keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  .hero-copy > * { animation: rise .5s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-copy > :nth-child(4) { animation-delay: .18s; }
  .hero-copy > :nth-child(n+5) { animation-delay: .24s; }
  .portrait { animation: rise .6s .2s var(--ease) both; }
  .portrait-card { animation: rise .5s .55s var(--ease) both; }
  .portrait-ring circle { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .9s .3s var(--ease) forwards; }
}
.portrait-ring { position: absolute; inset: 22px 22px auto; aspect-ratio: 1; width: calc(100% - 44px); color: var(--action); opacity: .45; pointer-events: none; }

/* percorso verticale */
.timeline { list-style: none; padding: 0; margin: 0; counter-reset: tl; position: relative; }
.timeline li { position: relative; padding: 0 0 1.6rem 3.6rem; margin: 0; counter-increment: tl; }
.timeline li::before { content: counter(tl); position: absolute; left: 0; top: -.1rem; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-strong); color: var(--action); font-weight: 650; font-size: .95rem; display: grid; place-items: center; z-index: 1; }
.timeline li::after { content: ""; position: absolute; left: 19.5px; top: 40px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline h3 { font-size: 1.15rem; margin: .35rem 0 .2rem; }
.timeline p { color: var(--muted); margin: 0; font-size: .98rem; }
.split { display: grid; gap: clamp(28px, 4vw, 64px); }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; align-items: start; } }
.bio-layout { display: grid; gap: clamp(28px, 4vw, 64px); }
@media (min-width: 960px) { .bio-layout { grid-template-columns: 360px minmax(0, 1fr); align-items: start; } .bio-layout .portrait { position: sticky; top: 100px; } }
.pill-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.pill-list li { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .35em .9em; font-size: .9rem; }
.prev-strip { display: grid; gap: 14px; }
@media (min-width: 900px) { .prev-strip { grid-template-columns: 1fr 1fr 1fr; } }

/* utility (al posto degli stili inline, per una CSP restrittiva) */
.u-ondeep { color: var(--on-deep-muted); } .u-block { display: block; } .u-small { font-size: .85rem; } .u-credit { font-size: .8rem; margin-top: .4rem; }
.u-h-sm { font-size: 1.35rem; } .u-h-robot { font-size: 1.3rem; margin-bottom: .3em; } .u-h-gate { font-size: 2.2rem; }
.u-motto { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.12; }
.u-mb-s { margin-bottom: .5rem; } .u-mb-l { margin-bottom: 2rem; } .u-m0t { margin-top: 0; } .u-m0 { margin: 0; }
.u-mt { margin-top: 1.5rem; } .u-mt-s { margin-top: 1rem; } .u-mt-l { margin-top: 2rem; } .u-mt-xl { margin-top: 2.5rem; }
.u-my-l { margin: 2rem 0; } .u-my-xl { margin: 2.5rem 0; }
.u-direct { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
.u-mw-title { max-width: 22ch; } .u-mw-portrait { max-width: 360px; } .u-mw-text { max-width: 40em; }
.u-pt0 { padding-top: 0; } .u-center { text-align: center; } .u-full { width: 100%; }
.footer-mail { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.footer-mail svg { width: 18px; height: 18px; color: var(--on-deep-muted); flex: none; }
/* WhatsApp: colore del marchio solo sull'icona, pulsante neutro */
.btn-wa { background: var(--surface); color: var(--heading); border-color: var(--line-strong); }
.btn-wa svg { color: #1DA851; width: 20px; height: 20px; }
.btn-wa:hover { border-color: var(--heading); color: var(--heading); background: var(--paper); }
.btn-wa.is-placeholder { cursor: default; opacity: .9; }
.call-wa { display: grid; gap: .4rem; margin-top: .9rem; }
.footer-wa { display: inline-flex; align-items: center; gap: .5rem; color: var(--on-deep); }
.footer-wa svg { width: 18px; height: 18px; color: #4FCB7A; flex: none; }

/* percorso di prevenzione in 5 tappe */
.ppath { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 12px; }
@media (min-width: 1100px) { .ppath { grid-template-columns: repeat(5, 1fr); } }
.ppath-step { position: relative; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px 20px; }
.ppath-step .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--tile); color: var(--icon); display: grid; place-items: center; margin-bottom: 1rem; }
.ppath-step .ico svg { width: 21px; height: 21px; }
.ppath-n { position: absolute; top: 18px; right: 18px; font-family: var(--serif); font-size: 1.6rem; line-height: 1; color: var(--deco); }
.ppath-step h3 { font-size: 1.12rem; margin-bottom: .35em; }
.ppath-step p { font-size: .94rem; color: var(--muted); margin: 0; }
.ppath-step:nth-child(2) { border-color: var(--action); box-shadow: 0 0 0 1px var(--action) inset; }

/* riquadro prenotazione */
.book { display: grid; gap: clamp(20px, 3vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3.5vw, 44px); box-shadow: var(--shadow); }
@media (min-width: 960px) { .book { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.book .tag { display: inline-block; font-size: .74rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--heading); background: var(--tile); border-radius: 999px; padding: .3em .8em; margin-bottom: 1rem; }
.book h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.book-facts { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.book-facts > div { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.book-facts dt { font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.book-facts dd { margin: .2rem 0 0; }
.btn-ghost-light { color: var(--on-deep); border-color: rgba(245, 244, 238, .45); background: transparent; }
.btn-ghost-light:hover { color: var(--on-deep); border-color: var(--on-deep); background: rgba(245, 244, 238, .06); }
.cta-deep .hero-actions { position: relative; z-index: 1; }

/* frase d'approccio */
.statement { background: var(--motto-bg); padding-block: clamp(56px, 8vw, 104px); text-align: center; }
.statement-text { font-family: var(--serif); font-weight: 450; font-size: clamp(1.7rem, 3.6vw, 2.8rem); line-height: 1.2; letter-spacing: -.015em; color: var(--motto-ink); max-width: 24ch; margin: 0 auto; text-wrap: balance; }
.statement-text .accent { color: var(--action); }
.statement-sign { margin: 1.4rem 0 0; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.statement-sign::before { content: ""; display: inline-block; width: 22px; height: 1px; background: var(--deco); vertical-align: middle; margin-right: .7em; }

/* percorso: linea di avanzamento (orizzontale da 1100px, verticale sotto) */
.ppath-wrap { position: relative; margin-bottom: 2rem; }
.ppath-wrap .ppath { margin-bottom: 0; }
.ppath-track { position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.ppath-fill { position: absolute; inset: 0; background: var(--action); transform-origin: top; transform: scaleY(var(--p, 1)); transition: transform .45s cubic-bezier(.4, 0, .2, 1); }
.ppath-wrap .ppath { padding-left: 34px; }
.ppath-step::before { content: ""; position: absolute; left: -29px; top: 30px; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); border: 2px solid var(--action); }
@media (min-width: 1100px) {
  .ppath-track { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 2px; }
  .ppath-fill { transform-origin: left; transform: scaleX(var(--p, 1)); }
  .ppath-wrap .ppath { padding-left: 0; padding-top: 22px; }
  .ppath-step::before { left: 18px; top: -27px; }
}

/* animazioni: solo opacità e posizione, guidate dallo scroll in CSS; nessun effetto se il browser non le supporta */
@media (prefers-reduced-motion: no-preference) {
  /* consiglio della situazione: compare con dissolvenza morbida */
  @keyframes soft-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  .situations ~ div .advice:not([hidden]) { animation: soft-in .26s var(--ease) both; }
  .situation { transition: border-color .15s var(--ease), box-shadow .15s var(--ease), transform .12s var(--ease); }
  .situation:active { transform: scale(.985); }
  /* pannello Prenota: sale dal basso */
  @keyframes sheet-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
  @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
  dialog.call[open] .call-inner { animation: sheet-up .3s cubic-bezier(.2, .8, .2, 1) both; }
  dialog.call[open]::backdrop { animation: fade-in .25s ease both; }
}

/* nessun elemento può allargare la pagina su telefono */
.tbc { white-space: normal; max-width: 100%; line-height: 1.35; }
.bio-layout, .layout-aside, .split, .hero-grid, .intro { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .bio-layout { grid-template-columns: 360px minmax(0, 1fr); } .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
@media (min-width: 860px) { .intro { grid-template-columns: 320px minmax(0, 1fr); } }
@media (min-width: 1000px) { .layout-aside { grid-template-columns: minmax(0, 1fr) 320px; } }

/* percorso: le tappe si accendono in sequenza (JS con IntersectionObserver, compatibile con tutti i browser) */
@media (prefers-reduced-motion: no-preference) {
  /* tappa "spenta": il testo resta leggibile (contrasto AA), si attenuano solo icona, numero e pallino */
  .pp-js .ppath-step { transform: translateY(10px); transition: transform .5s cubic-bezier(.2, .7, .2, 1), border-color .3s ease, box-shadow .3s ease; }
  .pp-js .ppath-step h3 { color: var(--muted); transition: color .45s ease; }
  .pp-js .ppath-step .ico, .pp-js .ppath-step .ppath-n, .pp-js .ppath-step::before { opacity: .3; transition: opacity .45s ease; }
  .pp-js .ppath-step.on { transform: none; }
  .pp-js .ppath-step.on h3 { color: var(--heading); }
  .pp-js .ppath-step.on .ico, .pp-js .ppath-step.on .ppath-n, .pp-js .ppath-step.on::before { opacity: 1; }
}

/* schede che compaiono scorrendo (solo desktop, JS con IntersectionObserver) */
@media (prefers-reduced-motion: no-preference) {
  .rv-js .reveal > * { opacity: 0; transform: translateY(12px); transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .2, 1), border-color .18s ease, box-shadow .18s ease; }
  .rv-js .reveal > .in { opacity: 1; transform: none; }
  .rv-js .reveal > a.card.in:hover { transform: translateY(-2px); }
}

/* pagina Chi sono: formattazione del testo lungo */
.bio-role { font-size: 1.02rem; color: var(--muted); margin: -.2rem 0 2rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.bio-full { max-width: 64ch; }
.bio-full > p { font-size: 1.06em; line-height: 1.7; }
.bio-full > p:first-child { margin-bottom: .9em; }
.bio-full > p:nth-child(2) { font-size: 1.12em; color: var(--ink); }
.bio-full h2 { font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 1.65rem); font-weight: 500; margin: 2.4rem 0 .8rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.bio-h { font-size: clamp(1.35rem, 2.2vw, 1.65rem); margin-top: .5rem; }
@media (min-width: 960px) { .bio-layout .portrait { top: 110px; } }

/* telefono: foto della hero larga quanto la colonna del testo */
@media (max-width: 520px) { .hero .portrait { max-width: none; } }

/* link "Approfondisci" allineati in fondo alle schede */
.topic .more { margin-top: auto; padding-top: .9rem; }
.topic p { margin-bottom: 0; }
a.card.topic { display: flex; flex-direction: column; }

/* blocco finale: ingresso leggero (JS con IntersectionObserver) */
@media (prefers-reduced-motion: no-preference) {
  .cta-js > * { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
  .cta-js > :nth-child(2) { transition-delay: .1s; }
  .cta-js > :nth-child(3) { transition-delay: .2s; }
  .cta-js > :nth-child(n+4) { transition-delay: .3s; }
  .cta-js.in > * { opacity: 1; transform: none; }
  .cta-js::after { opacity: 0; transform: scale(.82); transition: opacity 1.4s ease .15s, transform 1.6s cubic-bezier(.2, .7, .2, 1) .15s; }
  .cta-js.in::after { opacity: 1; transform: none; }
  .cta-deep .btn { transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease; }
  .cta-deep .btn:hover { transform: translateY(-1px); }
}

/* numeri di telefono compatti nelle schede */
.tel-sm { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; }
.tel-sm svg { width: 16px; height: 16px; flex: none; }
.tel-sm:hover { text-decoration: underline; }

/* WhatsApp come canale principale di prenotazione */
.btn-wa-main { background: var(--btn); color: var(--on-btn); border-color: transparent; }
.btn-wa-main svg { color: var(--on-btn); }
.btn-wa-main:hover { background: var(--btn-hover); color: var(--on-btn); border-color: transparent; }
.book-title { font-size: 1.2rem; margin-bottom: .8rem; }
.book-facts .check { margin: 0; }
.book-facts .check li { font-size: .97rem; }
