/* Io e mio figlio - foglio di stile pubblico
   Posizionamento: la psicologa del rapporto tra genitori e figli.
   Colori: solo il salvia del logo (#7ba193), le sue tonalità più chiare e più scure, e il bianco.
   "Io" (genitore) = salvia pieno, "Mio figlio" = salvia chiaro, come le due mani del logo.
   Forme: pulsanti a pillola, pannelli 22px, campi 12px. */

@font-face {
  font-family: "Quicksand";
  src: url("../fonts/quicksand.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --brand: #7ba193;         /* colore del logo */
  --brand-light: #a9c6ba;   /* "mio figlio": mano piccola */
  --brand-strong: #476f61;  /* salvia scuro: pulsanti e link, AA sul bianco */
  --brand-ink: #2c463c;     /* salvia molto scuro: titoli */
  --tint: #f1f7f4;          /* fondo salvia chiarissimo */
  --tint-2: #e3eee8;
  --ink: #24342e;
  --ink-soft: #586b63;
  --bg: #ffffff;
  --line: #dbe7e1;
  --danger: #a3402f;
  --shadow: 0 2px 6px rgb(44 70 60 / .05), 0 18px 40px rgb(44 70 60 / .08);
  --r-panel: 22px;
  --r-field: 12px;
  --font-head: "Quicksand", "Trebuchet MS", sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.23, 1, .32, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; overflow-x: clip; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body); -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0 0 .55em; letter-spacing: -.01em; color: var(--brand-ink); }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); max-width: 22ch; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--brand-strong); text-underline-offset: .18em; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(820px, 100% - 2.5rem); }
.section-intro { color: var(--ink-soft); max-width: 58ch; font-size: 1.15rem; margin-bottom: 2.5rem; }
.sec { padding: clamp(4rem, 9vw, 7rem) 0; }
.sec-tint { background: var(--tint); }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .75rem 1.4rem; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-lg { padding: .95rem 1.7rem; font-size: 1.05rem; }
.btn-primary { background: var(--brand-strong); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); color: #fff; }
.btn-quiet { background: #fff; color: var(--brand-ink); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--brand); }
.btn[disabled] { opacity: .55; cursor: progress; }

/* ---------- Testata ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgb(255 255 255 / .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 1.6rem; height: 72px; }
.brand img { width: 128px; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--brand-strong); }
.nav-toggle { display: none; }
.header-cta { padding: .6rem 1.2rem; }
@media (max-width: 980px) {
  .header-cta { display: none; }
  .brand img { width: 108px; }
  .nav-toggle { display: inline-flex; background: #fff; border: 1.5px solid var(--line); color: var(--ink); border-radius: 999px; padding: .45rem 1rem; font: 600 .95rem var(--font-body); cursor: pointer; }
  .nav ul { display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; gap: 0; background: #fff; padding: .5rem 1.25rem 1.2rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav ul.open { display: flex; }
  .nav ul a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); overflow: clip; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-logo { width: clamp(240px, 28vw, 400px); margin: 0 0 2rem -.4rem; }
.hero h1 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.6rem); max-width: 20ch; }
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--ink-soft); max-width: 36ch; margin-bottom: 2.2rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-visual { position: relative; display: grid; place-items: center; }
.hero-walk { width: 100%; max-width: 520px; height: auto; mix-blend-mode: multiply; /* fondo del video = bianco della pagina */ }
@media (prefers-reduced-motion: no-preference) { .hero-walk { animation: rise .9s .1s var(--ease) both; } }
.walk-toggle {
  position: absolute; right: 0; bottom: 0; padding: .4rem .8rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgb(255 255 255 / .9); color: var(--ink-soft);
  font: 600 .8rem var(--font-body); cursor: pointer; opacity: .75; transition: opacity .2s var(--ease);
}
.walk-toggle:hover, .walk-toggle:focus-visible { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { animation: rise .8s var(--ease) both; }
  .hero-text > :nth-child(2) { animation-delay: .06s; }
  .hero-text > :nth-child(3) { animation-delay: .12s; }
  .hero-text > :nth-child(4) { animation-delay: .18s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Due voci ---------- */
.voices h2 { max-width: 18ch; }
.voices-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2.5rem; margin-top: 2.5rem; }
.voice-label { font: 600 clamp(2.2rem, 1.6rem + 2.4vw, 3.6rem)/1 var(--font-head); letter-spacing: -.02em; margin: 0 0 .6rem; }
.voice-label-io { color: var(--brand-strong); }
.voice-label-figlio { color: var(--brand); justify-self: end; }
.bubble { margin: 0; padding: 1.1rem 1.4rem; border-radius: 22px; max-width: 30rem; align-self: start; font: 600 clamp(1.1rem, 1rem + .5vw, 1.45rem)/1.35 var(--font-head); color: var(--brand-ink); }
.bubble p { margin: 0; }
.bubble-io { background: var(--tint-2); border-bottom-left-radius: 6px; }
.bubble-figlio { background: #fff; border: 2px solid var(--brand-light); border-bottom-right-radius: 6px; justify-self: end; text-align: right; }
.voices-claim { margin: 3rem auto 0; text-align: center; font: 500 clamp(1.25rem, 1.05rem + .8vw, 1.75rem)/1.4 var(--font-head); max-width: 32ch; color: var(--brand-ink); }
.voices-claim strong { color: var(--brand-strong); font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .js .bubble { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i) * 90ms); }
  .js .voices-grid.in .bubble { opacity: 1; transform: none; }
}
@media (max-width: 640px) {
  .voices-grid { grid-template-columns: 1fr; gap: .7rem; }
  .voice-label { display: none; }
  .bubble-io { margin-right: 2.5rem; }
  .bubble-figlio { margin-left: 2.5rem; }
}

/* ---------- Metodo ---------- */
.method-lines { width: 100%; height: 120px; display: block; margin-bottom: 1rem; overflow: visible; }
.method-lines path { fill: none; stroke-width: 6; stroke-linecap: round; }
.line-io { stroke: var(--brand-strong); }
.line-figlio { stroke: var(--brand-light); }
.line-insieme { stroke: var(--brand); stroke-width: 11 !important; }
.method-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; counter-reset: s; }
.method-steps li { counter-increment: s; }
.method-steps h3 { font-size: 1.35rem; display: flex; align-items: baseline; gap: .6rem; }
.method-steps h3::before { content: counter(s); font: 700 .95rem var(--font-body); color: var(--brand-ink); background: var(--tint-2); width: 1.9rem; height: 1.9rem; border-radius: 50%; display: inline-grid; place-items: center; flex: none; }
.method-steps li:last-child h3::before { background: var(--brand); color: #fff; }
.method-steps p { color: var(--ink-soft); }
@media (prefers-reduced-motion: no-preference) {
  .js .method-lines path { stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 1.6s var(--ease); }
  .js .method-track.in .method-lines path { stroke-dashoffset: 0; }
}
@media (max-width: 760px) { .method-lines { display: none; } .method-steps { grid-template-columns: 1fr; gap: 1.6rem; } }

/* ---------- Due porte ---------- */
.doors-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.door {
  display: grid; gap: .6rem; padding: clamp(1.8rem, 3vw, 2.6rem); border-radius: var(--r-panel);
  text-decoration: none; color: var(--ink); align-content: start;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .door:hover { transform: translateY(-4px); box-shadow: var(--shadow); } }
.door-io { background: var(--tint-2); }
.door-figlio { background: #fff; border: 2px solid var(--brand-light); }
.door-word { font: 600 clamp(3rem, 2rem + 4vw, 5.2rem)/1.05 var(--font-head); letter-spacing: -.02em; margin-bottom: 1.6rem; }
.door-io .door-word { color: var(--brand-strong); }
.door-figlio .door-word { color: var(--brand); }
.door-title { font: 600 1.4rem var(--font-head); color: var(--brand-ink); }
.door-text { color: var(--ink-soft); max-width: 38ch; }
.door-cta { font-weight: 700; color: var(--brand-strong); }
.door-cta::after { content: ""; display: inline-block; width: 1.4rem; height: 2px; background: currentColor; vertical-align: middle; margin-left: .6rem; transition: transform .3s var(--ease); transform-origin: left; }
.door:hover .door-cta::after { transform: scaleX(1.6); }
@media (max-width: 760px) { .doors-grid { grid-template-columns: 1fr; } }

/* ---------- Temi ---------- */
/* Indice tipografico a sinistra, pannello con le due linee che si incrinano e si ritrovano a destra.
   Senza JS: niente indice, tutti i temi visibili uno sotto l'altro. */
.topics-explorer { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.topics-head .section-intro { margin-bottom: 2rem; }
.topics-index { display: none; }
.js .topics-index { display: grid; border-top: 1px solid var(--line); }
.topics-index [role="tab"] {
  display: flex; align-items: center; gap: 0; width: 100%; text-align: left; cursor: pointer;
  background: none; border: 0; border-bottom: 1px solid var(--line); padding: .8rem 0; border-radius: 0;
  font: 600 clamp(1.2rem, 1rem + .8vw, 1.6rem)/1.25 var(--font-head); letter-spacing: -.01em; color: var(--ink-soft);
  transition: color .25s var(--ease);
}
.topics-index [role="tab"]:hover { color: var(--brand-ink); }
.topics-index [aria-selected="true"] { color: var(--brand-ink); }
.ti-mark { display: inline-grid; gap: 4px; width: 0; flex: none; overflow: hidden; transition: width .35s var(--ease), margin .35s var(--ease); }
.ti-mark::before, .ti-mark::after { content: ""; height: 4px; border-radius: 4px; width: 2rem; }
.ti-mark::before { background: var(--brand-strong); }
.ti-mark::after { background: var(--brand-light); }
[aria-selected="true"] .ti-mark { width: 2rem; margin-right: .9rem; }

.topics-panel { background: var(--tint); border-radius: var(--r-panel); padding: clamp(1.6rem, 3.5vw, 3rem); align-self: stretch; display: flex; flex-direction: column; }
.crack { display: block; width: 100%; height: 70px; margin-bottom: 1.6rem; overflow: visible; }
.crack path { fill: none; stroke-width: 6; stroke-linecap: round; }
.crack .line-insieme { stroke-width: 11 !important; }
.tp + .tp { margin-top: 2rem; }
.tp h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); letter-spacing: -.02em; margin-bottom: .8rem; }
.tp ul { list-style: none; margin: 0; padding: 0; }
.tp li { font: 500 clamp(1.1rem, 1rem + .45vw, 1.35rem)/1.4 var(--font-head); color: var(--ink); padding: 1rem 0 1rem 1.8rem; border-top: 1px solid var(--tint-2); position: relative; }
.tp li::before { content: ""; position: absolute; left: 0; top: 1.65rem; width: 1rem; height: 3px; border-radius: 3px; background: var(--brand); }
.js .topics-panels { display: grid; }
.js .tp { grid-area: 1 / 1; margin: 0; }
.js .tp[hidden] { display: block !important; visibility: hidden; opacity: 0; }
.topics-cta { margin-top: auto; padding-top: 1.6rem; border-top: 1px solid var(--tint-2); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; }
.topics-panels { margin-bottom: 2.5rem; }
.topics-cta p { margin: 0; color: var(--ink-soft); max-width: 40ch; }
@media (prefers-reduced-motion: no-preference) {
  .js .tp { transition: opacity .35s var(--ease); }
  .js .crack path { stroke-dasharray: 700; stroke-dashoffset: 700; }
  .js .topics-explorer.in .crack path { animation: crack-draw 1.1s var(--ease) both; }
}
@keyframes crack-draw { from { stroke-dashoffset: 700; } to { stroke-dashoffset: 0; } }
@media (max-width: 860px) {
  .topics-explorer { grid-template-columns: 1fr; gap: 1.5rem; }
  .js .topics-index { display: flex; flex-wrap: wrap; gap: .5rem; border-top: 0; }
  .topics-index [role="tab"] { width: auto; font-size: 1rem; padding: .5rem 1rem; border: 1.5px solid var(--line); border-radius: 999px; }
  .topics-index [role="tab"][aria-selected="true"] { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; }
  .js .tp[hidden] { display: none !important; }
  [aria-selected="true"] .ti-mark { width: 0; margin: 0; }
  .crack { height: 50px; }
  .topics-cta .btn { width: 100%; justify-content: center; }
}

/* ---------- Chi sono: foto su bianco, senza bordi ---------- */
.about { background: #fff; }
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.about-photo { margin: 0; }
.about-photo img {
  width: 100%;
  mix-blend-mode: multiply; /* il fondo quasi bianco della foto si fonde nel bianco della pagina */
}
.about-lead { font: 500 clamp(1.2rem, 1.05rem + .5vw, 1.45rem)/1.45 var(--font-head); color: var(--brand-ink); }
.credentials { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .6rem; }
.credentials li { padding-left: 1.6rem; position: relative; color: var(--ink-soft); }
.credentials li::before { content: ""; position: absolute; left: 0; top: .55em; width: .65rem; height: .65rem; border-radius: 50%; background: var(--brand); }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } .about-photo { max-width: 380px; } }

/* ---------- Gruppi ---------- */
.groups-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.group { grid-column: span 2; border-radius: var(--r-panel); padding: 1.6rem; background: #fff; border: 1px solid var(--line); }
.group:nth-child(4), .group:nth-child(5) { grid-column: span 3; }
.group p { color: var(--ink-soft); margin: 0; }
.group .group-who { font-weight: 700; font-size: .9rem; margin-bottom: .6rem; color: var(--brand-strong); }
.group-insieme { background: var(--brand); border-color: var(--brand); }
.group-insieme h3, .group-insieme p, .group-insieme .group-who { color: #fff; }
@media (max-width: 900px) { .groups-grid { grid-template-columns: 1fr 1fr; } .group, .group:nth-child(4) { grid-column: span 1; } .group:nth-child(5) { grid-column: span 2; } }
@media (max-width: 560px) { .groups-grid { grid-template-columns: 1fr; } .group:nth-child(5) { grid-column: span 1; } }

/* ---------- Agenda ---------- */
.booking {
  display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: clamp(1.5rem, 4vw, 3rem);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-panel);
  padding: clamp(1.25rem, 3vw, 2.4rem); box-shadow: var(--shadow);
}
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cal-month { margin: 0; font-size: 1.25rem; text-transform: capitalize; }
.cal-nav { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.cal-nav:hover:not([disabled]) { border-color: var(--brand); }
.cal-nav[disabled] { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .3rem; }
.cal-dow { text-align: center; font-size: .8rem; font-weight: 700; color: var(--ink-soft); padding-bottom: .3rem; }
.cal-day { aspect-ratio: 1; border-radius: 50%; border: 0; background: none; color: var(--ink-soft); font: 500 .98rem var(--font-body); display: grid; place-items: center; }
.cal-day:disabled { opacity: .4; }
.cal-day[data-free] { color: var(--brand-ink); background: var(--tint-2); cursor: pointer; font-weight: 700; transition: background-color .15s var(--ease), transform .15s var(--ease); }
.cal-day[data-free]:hover { background: color-mix(in srgb, var(--brand) 40%, var(--tint-2)); }
.cal-day[data-free][aria-pressed="true"] { background: var(--brand-strong); color: #fff; }
.cal-legend { display: flex; align-items: center; gap: .5rem; margin: 1rem 0 0; font-size: .9rem; color: var(--ink-soft); }
.dot-free { width: .9rem; height: .9rem; border-radius: 50%; background: var(--tint-2); border: 1px solid var(--brand); }
.cal-skeleton { grid-column: 1 / -1; height: 260px; border-radius: var(--r-field); background: linear-gradient(90deg, var(--tint), #fff, var(--tint)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .cal-skeleton { animation: none; } }
.booking-times h3 { font-size: 1.15rem; }
.booking-hint { color: var(--ink-soft); }
.times { display: flex; flex-wrap: wrap; gap: .6rem; }
.time { min-width: 5.4rem; min-height: 44px; padding: .7rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: 700 1rem var(--font-body); color: var(--ink); cursor: pointer; transition: border-color .15s, background-color .15s; }
.time:hover { border-color: var(--brand-strong); background: var(--tint); }
.empty-month { background: var(--tint); border-radius: var(--r-field); padding: 1.2rem 1.4rem; }
.empty-month p { margin: 0; }
.booking-form { display: grid; gap: 1.1rem; }
.booking-summary { background: var(--tint-2); color: var(--brand-ink); border-radius: var(--r-field); padding: .95rem 1.2rem; margin: 0; font-weight: 700; }
.booking-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: .45rem; }
.booking-form legend, .field label { font-weight: 700; margin-bottom: .35rem; display: block; }
.opt { font-weight: 400; color: var(--ink-soft); }
.field { display: grid; align-content: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.booking-form input:not([type=radio]):not([type=checkbox]), .booking-form select, .booking-form textarea {
  width: 100%; padding: .8rem .95rem; border-radius: var(--r-field); border: 1.5px solid var(--line);
  background: #fff; color: var(--ink); font: 400 1rem var(--font-body);
}
.booking-form input:focus, .booking-form select:focus, .booking-form textarea:focus { border-color: var(--brand-strong); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 35%, transparent); }
.booking-form [aria-invalid="true"] { border-color: var(--danger) !important; }
.radio, .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; cursor: pointer; }
.radio input, .check input { margin-top: .3rem; accent-color: var(--brand-strong); width: 1.05rem; height: 1.05rem; flex: none; }
.help { font-size: .9rem; color: var(--ink-soft); margin: .35rem 0 0; }
.field-error, .form-error { color: var(--danger); font-size: .92rem; margin: .3rem 0 0; }
.field-error:empty, .form-error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; }
.booking-done h3 { color: var(--brand-strong); }
@media (max-width: 860px) { .booking { grid-template-columns: 1fr; } }

/* ---------- Domande ---------- */
.faq { display: grid; gap: .8rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-panel); padding: 0 1.5rem; }
.faq summary { cursor: pointer; list-style: none; padding: 1.2rem 2.2rem 1.2rem 0; position: relative; font: 600 1.12rem var(--font-head); color: var(--brand-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font: 400 1.7rem var(--font-body); color: var(--brand-strong); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-soft); padding-bottom: 1.3rem; margin: 0; max-width: 68ch; }

/* ---------- Chiusura ---------- */
.site-footer { background: var(--tint); padding: clamp(4rem, 8vw, 6rem) 0 1.5rem; border-top: 1px solid var(--line); }
.footer-brand { display: grid; justify-items: start; gap: 1.2rem; padding-bottom: 3.5rem; border-bottom: 1px solid var(--line); }
.footer-logo { width: clamp(260px, 36vw, 460px); }
.site-footer .footer-claim { font: 500 clamp(1.2rem, 1rem + .8vw, 1.7rem) var(--font-head); color: var(--brand-ink); margin: 0 0 .6rem; max-width: 30ch; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding-top: 2.5rem; }
.site-footer h2 { font-size: 1rem; margin-bottom: .4rem; }
.site-footer p { color: var(--ink-soft); font-size: .97rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1.2rem; }
.footer-bottom p { margin: 0; font-size: .9rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Pagine di testo ---------- */
.page { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.page h1 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.7rem); }
.page h2 { font-size: 1.35rem; margin-top: 2rem; }
.page p, .page li { max-width: 70ch; }
.notice { background: #fff; border: 1px solid var(--line); border-radius: var(--r-panel); padding: 1.6rem; max-width: 640px; }

/* ---------- Blog ---------- */
.blog-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 1rem; }
.blog-head h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); max-width: 20ch; }
.crumbs { font-size: .92rem; color: var(--ink-soft); margin-bottom: 1.2rem; }
.crumbs a { color: var(--ink-soft); }
.cat-nav { display: flex; flex-wrap: wrap; gap: .5rem; }
.cat-nav a { padding: .5rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.cat-nav a:hover { border-color: var(--brand); }
.cat-nav a[aria-current="page"] { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; }
.blog-list { padding-top: 2rem; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-panel); padding: 1.6rem; display: grid; align-content: start; gap: .3rem; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
@media (hover: hover) and (pointer: fine) { .post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); } }
.post-card h3 { font-size: 1.3rem; margin: 0 0 .3rem; }
.post-card h3 a { color: var(--brand-ink); text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card { position: relative; }
.post-card p { color: var(--ink-soft); margin: 0; }
.post-card-cat { font-weight: 700; font-size: .88rem; color: var(--brand-strong) !important; }
.post-card-meta { font-size: .88rem; margin-top: .6rem !important; }

.post-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 1.5rem; background: var(--tint); }
.post-head h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); max-width: 24ch; }
.post-meta { display: flex; align-items: center; gap: .8rem; color: var(--ink-soft); font-size: .95rem; margin: 1.2rem 0 0; }
.post-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.post-body { padding: 2.5rem 0 4rem; }
.post-answer { background: var(--tint-2); border-radius: var(--r-panel); padding: 1.3rem 1.5rem; font-size: 1.12rem; margin-bottom: 2rem; }
.post-answer p { margin: 0; }
.post-toc { border: 1px solid var(--line); border-radius: var(--r-panel); padding: 1.2rem 1.5rem; margin-bottom: 2.5rem; }
.post-toc-title { font: 700 1rem var(--font-head); margin: 0 0 .5rem; color: var(--brand-ink); }
.post-toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .3rem; }
.prose { font-size: 1.12rem; line-height: 1.75; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.95rem); margin: 2.4rem 0 .8rem; max-width: none; scroll-margin-top: 90px; }
.prose h3 { font-size: 1.3rem; margin: 1.8rem 0 .6rem; }
.prose p, .prose li { max-width: 68ch; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2em; display: grid; gap: .4rem; }
.prose li::marker { color: var(--brand); }
.prose blockquote { margin: 1.5rem 0; padding: .4rem 0 .4rem 1.3rem; border-left: 4px solid var(--brand); font: 500 1.25rem/1.5 var(--font-head); color: var(--brand-ink); }
.prose blockquote p { margin: 0; }
.post-faq { margin-top: 3rem; }
.post-faq h2 { font-size: 1.6rem; }
.post-cta { margin-top: 3rem; background: var(--tint); border-radius: var(--r-panel); padding: clamp(1.5rem, 3vw, 2.2rem); }
.post-cta-title { font: 600 1.4rem var(--font-head); color: var(--brand-ink); margin-bottom: .4rem; }
.author-box { display: flex; gap: 1.2rem; align-items: center; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.author-box img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; flex: none; }
.author-box p { margin: 0; color: var(--ink-soft); }
.author-name { font: 700 1.1rem var(--font-head); color: var(--brand-ink) !important; margin-bottom: .2rem !important; }
.home-blog .post-grid { margin-top: 1rem; }
.home-blog .more { margin-top: 2rem; }
