/* DSPT · Proposta C «Italia in 3D» */

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../assets/fonts/unbounded-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../assets/fonts/unbounded-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+A720-A7FF;
}
@font-face {
  font-family: "Urbanist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/urbanist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Urbanist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/urbanist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2113, U+A720-A7FF;
}

:root {
  --fondo: #f5f9fc;
  --fondo-0: rgba(245, 249, 252, 0);
  --superficie: #ffffff;
  --inchiostro: #0a1f30;
  --testo-2: #36505f;
  --blu: #0274ae;
  --blu-scuro: #015985;
  --ciano: #02bce3;
  --ciano-tenue: #d8f3fa;
  --linea: #d3e2ec;
  --errore: #b3261e;
  --display: "Unbounded", "Urbanist", system-ui, sans-serif;
  --testo: "Urbanist", system-ui, sans-serif;
  --curva: cubic-bezier(0.16, 1, 0.3, 1);
  --margine: clamp(1rem, 4vw, 4.5rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scrollbar-color: var(--blu) var(--fondo);
  scrollbar-width: thin;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--fondo);
  color: var(--inchiostro);
  font-family: var(--testo);
  font-size: 1.125rem;
  line-height: 1.55;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  caret-color: var(--blu);
}

::selection { background: var(--ciano); color: var(--inchiostro); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--fondo); }
::-webkit-scrollbar-thumb { background: #9fc3d8; border-radius: 10px; border: 2px solid var(--fondo); }
::-webkit-scrollbar-thumb:hover { background: var(--blu); }

img { display: block; max-width: 100%; height: auto; }
a { color: var(--blu-scuro); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2.5px solid var(--blu); outline-offset: 3px; border-radius: 6px; }

.salta {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--inchiostro); color: #fff; padding: 0.7rem 1rem; border-radius: 8px;
}
.salta:focus { top: 1rem; }

/* ---------- Scena ---------- */
.scena {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh; height: 100lvh;
  bottom: auto;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s var(--curva);
}
.scena.pronta { opacity: 1; }
.no-scena .scena { display: none; }

/* ---------- Testata ---------- */
.testata {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; gap: 2rem;
  padding: 1rem var(--margine);
  /* velo leggero: il menu resta leggibile anche con le particelle dietro */
  background: color-mix(in srgb, var(--fondo) 80%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color .4s var(--curva), box-shadow .4s var(--curva), padding .4s var(--curva);
}
.testata.scorsa {
  background: rgba(245, 249, 252, 0.94);
  box-shadow: 0 1px 0 var(--linea), 0 8px 24px -16px rgba(2, 60, 95, 0.25);
  padding-block: 0.65rem;
}
.testata__logo img { height: 34px; width: auto; }
.testata__nav { display: flex; gap: 1.75rem; margin-left: auto; }
.testata__nav a {
  color: var(--inchiostro); text-decoration: none; font-weight: 600; font-size: 0.98rem;
  padding-block: 0.3rem; background: linear-gradient(var(--blu), var(--blu)) left bottom / 0 2px no-repeat;
  transition: background-size .45s var(--curva);
}
.testata__nav a:hover { background-size: 100% 2px; }

/* ---------- Bottoni ---------- */
.bottone {
  display: inline-flex; align-items: center; gap: 0.7rem;
  background: var(--blu); color: #fff;
  font: 650 1.05rem/1 var(--testo); letter-spacing: 0.01em;
  padding: 1.05rem 1.5rem; border-radius: 999px; border: 0; cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 24px -10px rgba(2, 116, 174, 0.65);
  transition: background-color .35s var(--curva), transform .35s var(--curva), box-shadow .35s var(--curva);
}
.bottone svg { width: 1.15em; height: 1.15em; transition: transform .45s var(--curva); }
.bottone:hover { background: var(--blu-scuro); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(2, 89, 133, 0.7); }
.bottone:hover svg { transform: translateX(4px); }
.bottone:active { transform: translateY(0); }
.bottone[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.bottone--piccolo { padding: 0.7rem 1.15rem; font-size: 0.95rem; box-shadow: none; }
.bottone--pieno { width: 100%; justify-content: center; }

.collegamento {
  background: none; border: 0; padding: 0.3rem 0; cursor: pointer;
  font: 600 1.05rem var(--testo); color: var(--blu-scuro);
  text-decoration: underline; text-decoration-color: rgba(2, 116, 174, 0.35);
  transition: text-decoration-color .3s;
}
.collegamento:hover { text-decoration-color: currentColor; }

/* ---------- Sezioni ---------- */
main { position: relative; z-index: 1; }

.sezione {
  position: relative;
  min-height: 130vh;
  display: flex; align-items: center;
  padding: 7rem var(--margine);
}
.sezione--apertura { min-height: 100vh; min-height: 100svh; }
.sezione--corta { min-height: 115vh; }
.sezione--dx { justify-content: flex-end; }

.velo { position: relative; max-width: 40rem; }
.velo::before {
  content: ""; position: absolute; z-index: -1; inset: -5rem -6rem;
  background: radial-gradient(closest-side, rgba(245, 249, 252, 0.92) 0%, rgba(245, 249, 252, 0.78) 55%, var(--fondo-0) 100%);
  pointer-events: none;
}

.titolo {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0 0 1.5rem;
  text-wrap: balance;
  color: var(--inchiostro);
}
.titolo--mega { font-size: clamp(2.5rem, 6.2vw, 6rem); }
.titolo--grande { font-size: clamp(2.2rem, 5vw, 4.75rem); }
.titolo--medio { font-size: clamp(1.9rem, 3.6vw, 3.25rem); }

.riga {
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  line-height: 1.45;
  color: var(--testo-2);
  max-width: 34ch;
  margin: 0;
  text-wrap: pretty;
}

.azioni { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: 2.5rem; }

.scorri {
  position: absolute; left: 50%; bottom: 2rem; width: 1px; height: 3.5rem;
  background: var(--linea); overflow: hidden;
}
.scorri span { position: absolute; inset: 0; background: var(--blu); transform-origin: top; animation: scorri 2.4s var(--curva) infinite; }
@keyframes scorri {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Elenco servizi */
.elenco { margin: 2.5rem 0 0; display: grid; gap: 0; max-width: 34rem; }
.elenco > div { padding: 1.1rem 0; border-top: 1px solid var(--linea); display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; }
.elenco > div:last-child { border-bottom: 1px solid var(--linea); }
.elenco dt { font-weight: 750; color: var(--blu-scuro); }
.elenco dd { margin: 0; color: var(--testo-2); }

/* Sigle piattaforme */
.sigle { list-style: none; padding: 0; margin: 2.25rem 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem; max-width: 32rem; }
.sigle li {
  font-weight: 650; font-size: 1rem;
  padding: 0.5rem 1rem; border-radius: 999px;
  background: var(--superficie); border: 1px solid var(--linea); color: var(--inchiostro);
  transition: border-color .3s, color .3s, transform .4s var(--curva);
}
.sigle li:hover { border-color: var(--blu); color: var(--blu-scuro); transform: translateY(-2px); }

.astra { margin: 2rem 0 0; font-size: 1.1rem; color: var(--testo-2); }
.astra strong { font-family: var(--display); font-weight: 600; color: var(--blu-scuro); letter-spacing: -0.01em; }

/* ---------- Chi siamo ---------- */
.sezione--chi { min-height: 120vh; }
.chi {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(2rem, 4vw, 4rem);
  align-items: center; max-width: 52rem; position: relative;
}
.chi::before {
  content: ""; position: absolute; z-index: -1; inset: -5rem -6rem;
  background: radial-gradient(closest-side, rgba(245, 249, 252, 0.94), rgba(245, 249, 252, 0.8) 60%, var(--fondo-0));
}
.ritratto { margin: 0; width: clamp(11rem, 16vw, 14rem); }
.ritratto img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 46% 34%;
  border-radius: 18px;
  filter: saturate(0.85) contrast(1.04);
  box-shadow: 0 18px 40px -18px rgba(2, 50, 80, 0.45);
}
.ritratto figcaption { margin-top: 0.8rem; font-size: 0.95rem; font-weight: 600; color: var(--testo-2); }
.motto {
  margin: 0 0 1.25rem;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 3.4rem); line-height: 1.06; letter-spacing: -0.035em;
  text-wrap: balance;
}
.iso { margin: 1.5rem 0 0; font-size: 1rem; color: var(--testo-2); max-width: 40ch; }

/* ---------- Preventivo ---------- */
.sezione--preventivo { min-height: 110vh; }
.chiusura {
  width: 100%; max-width: 76rem; margin-inline: auto;
  display: grid; grid-template-columns: 1fr minmax(20rem, 30rem); gap: clamp(2rem, 6vw, 6rem); align-items: center;
}
.chiusura__testo { position: relative; }
.chiusura__testo::before {
  content: ""; position: absolute; z-index: -1; inset: -5rem -6rem;
  background: radial-gradient(closest-side, rgba(245, 249, 252, 0.97), rgba(245, 249, 252, 0.9) 62%, var(--fondo-0));
}
.contatti { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 0.9rem; }
.contatti a {
  display: inline-flex; align-items: center; gap: 0.8rem;
  font-weight: 650; font-size: 1.15rem; color: var(--inchiostro); text-decoration: none;
}
.contatti a:hover { color: var(--blu-scuro); }
.contatti svg { width: 1.35rem; height: 1.35rem; color: var(--blu); flex: none; }

.modulo {
  background: var(--superficie);
  border: 1px solid var(--linea);
  border-radius: 24px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: 0 30px 60px -30px rgba(2, 60, 95, 0.35), 0 2px 6px -2px rgba(2, 60, 95, 0.08);
}
.modulo__corpo { display: grid; gap: 1.1rem; }
.campo label { display: block; font-weight: 700; font-size: 0.98rem; margin-bottom: 0.4rem; }
.facoltativo { font-weight: 500; color: var(--testo-2); }
.campo input, .campo select, .campo textarea {
  width: 100%; font: 500 1.05rem/1.4 var(--testo); color: var(--inchiostro);
  background: var(--fondo); border: 1.5px solid var(--linea); border-radius: 12px;
  padding: 0.8rem 0.95rem; appearance: none;
  transition: border-color .25s, background-color .25s, box-shadow .25s;
}
.campo textarea { resize: vertical; min-height: 5.5rem; }
.campo ::placeholder { color: #5b7282; opacity: 1; }
.campo input:hover, .campo select:hover, .campo textarea:hover { border-color: #a9c6d8; }
.campo input:focus, .campo select:focus, .campo textarea:focus {
  outline: none; border-color: var(--blu); background: #fff; box-shadow: 0 0 0 4px rgba(2, 116, 174, 0.14);
}
.campo [aria-invalid="true"] { border-color: var(--errore); background: #fff8f7; }
.seleziona { position: relative; }
.seleziona::after {
  content: ""; position: absolute; right: 1rem; top: 50%; width: 0.55rem; height: 0.55rem;
  border-right: 2px solid var(--blu); border-bottom: 2px solid var(--blu);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.errore { margin: 0.35rem 0 0; min-height: 0; font-size: 0.92rem; font-weight: 600; color: var(--errore); }
.errore:empty { display: none; }

.conferma { text-align: left; padding: 1rem 0.25rem; }
.conferma svg { width: 3rem; height: 3rem; color: var(--blu); margin-bottom: 1rem; }
.conferma__titolo { font-family: var(--display); font-weight: 600; font-size: 1.6rem; letter-spacing: -0.03em; margin: 0 0 0.5rem; }
.conferma p { margin: 0 0 1.25rem; color: var(--testo-2); }
.conferma:focus { outline: none; }

/* ---------- Piede ---------- */
.piede {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 2rem;
  padding: 2.5rem var(--margine) 3rem;
  border-top: 1px solid var(--linea);
  background: var(--fondo);
  font-size: 0.98rem; color: var(--testo-2);
}
.piede img { height: 30px; width: auto; margin-right: 0.5rem; }
.piede p { margin: 0; }
.piede a { color: var(--testo-2); }

/* ---------- Parole che si compongono ---------- */
.parola { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.parola > span { display: inline-block; will-change: transform; }

/* ---------- Telefono ---------- */
@media (max-width: 860px) {
  .testata { gap: 1rem; }
  .testata__nav { display: none; }
  .testata .bottone--piccolo { margin-left: auto; }
  .testata__logo img { height: 28px; }

  .sezione {
    min-height: 115svh;
    align-items: flex-end;
    padding: 6rem 1rem 4.5rem;
  }
  .sezione--apertura { min-height: 100svh; padding-bottom: 6rem; }
  .sezione--dx { justify-content: flex-start; }
  .velo::before, .chi::before, .chiusura__testo::before {
    inset: -3rem -1rem;
    background: radial-gradient(closest-side, rgba(245, 249, 252, 0.95), rgba(245, 249, 252, 0.88) 65%, var(--fondo-0));
  }
  .elenco > div { grid-template-columns: 1fr; gap: 0.25rem; }
  .chi { grid-template-columns: 1fr; gap: 1.75rem; }
  .ritratto { width: 9.5rem; }
  .chiusura { grid-template-columns: 1fr; }
  .sezione--preventivo { min-height: auto; padding-top: 7rem; }
  .sezione--chi { min-height: 105svh; }
  .scorri { display: none; }
  /* La forma occupa la metà alta dello schermo: il testo arriva subito sotto, senza vuoti */
  .sezione[data-forma]:not([data-opacita]):not(.sezione--apertura):not(.sezione--preventivo):not(.sezione--chi) {
    min-height: auto; padding-top: 56svh;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .scena { transition: none; }
}

/* =================================================================== */
/* Sito completo: tema ASTRA, menu, pagine interne                      */
/* =================================================================== */

/* Tema ASTRA (guida di marca: #8F38F6, #36056C, #4B28C3, #F8F4FF) */
.tema-astra {
  --fondo: #f8f4ff;
  --fondo-0: rgba(248, 244, 255, 0);
  --inchiostro: #24043f;
  --testo-2: #4d3a66;
  --blu: #4b28c3;
  --blu-scuro: #36056c;
  --ciano: #8f38f6;
  --ciano-tenue: #ece0ff;
  --linea: #e2d6f5;
}
.tema-astra .velo::before, .tema-astra .chiusura__testo::before {
  background: radial-gradient(closest-side, rgba(248, 244, 255, 0.94) 0%, rgba(248, 244, 255, 0.8) 55%, var(--fondo-0) 100%);
}
.tema-astra .testata.scorsa { background: rgba(248, 244, 255, 0.94); }
.tema-astra .bottone { box-shadow: 0 10px 24px -10px rgba(75, 40, 195, 0.6); }
.marchio-astra { width: clamp(9rem, 14vw, 12rem); height: auto; margin: 0 0 1.75rem; }

/* Sezione della home dedicata ad ASTRA: i colori passano al viola */
.sezione--astra .titolo { color: #24043f; }
.sezione--astra .riga { color: #4d3a66; }
.sezione--astra .velo::before { background: radial-gradient(closest-side, rgba(248, 244, 255, 0.94), rgba(248, 244, 255, 0.8) 55%, rgba(248, 244, 255, 0) 100%); }
.sezione--astra .elenco dt a { color: #4b28c3; }
.sezione--astra .elenco > div { border-color: #e2d6f5; }
.sezione--astra .bottone { background: #4b28c3; box-shadow: 0 10px 24px -10px rgba(75, 40, 195, 0.6); }
.sezione--astra .bottone:hover { background: #36056c; }

/* Elenchi con collegamenti */
.elenco dt a { color: var(--blu-scuro); text-decoration: none; }
.elenco dt a:hover { text-decoration: underline; }
.elenco--largo { max-width: 40rem; }
.elenco--largo > div { grid-template-columns: 15rem 1fr; }

/* Testata con pagine */
.testata__nav a[aria-current="page"] { background-size: 100% 2px; color: var(--blu-scuro); }
.apri-menu { display: none; }
@media (max-width: 860px) {
  .apri-menu {
    display: inline-flex; align-items: center; gap: .5rem; margin-left: .25rem;
    font: 650 .95rem var(--testo); color: var(--inchiostro); background: var(--superficie);
    border: 1.5px solid var(--linea); border-radius: 999px; padding: .6rem 1rem; cursor: pointer;
  }
  .testata.aperta { background: var(--fondo); flex-wrap: wrap; box-shadow: 0 12px 30px -18px rgba(2, 60, 95, .35); }
  .testata.aperta .testata__nav { display: grid; order: 5; width: 100%; gap: 0; margin: .5rem 0 .25rem; }
  .testata.aperta .testata__nav a { padding: .9rem 0; border-bottom: 1px solid var(--linea); background: none; font-size: 1.05rem; }
}

/* Pagine interne */
.sezione--pagina { min-height: 100vh; min-height: 100svh; }
.indietro { display: inline-flex; gap: .5rem; align-items: center; font-weight: 650; color: var(--testo-2); text-decoration: none; }
.indietro:hover { color: var(--blu-scuro); }
.numero-scheda { font-family: var(--display); font-weight: 600; color: var(--blu); }

.contenuto { position: relative; z-index: 1; background: var(--fondo); }
.blocco { max-width: 76rem; margin: 0 auto; padding: clamp(4rem, 9vw, 8rem) var(--margine); }
.blocco + .blocco { padding-top: 0; }
.blocco__testa { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 4rem; align-items: end; margin-bottom: 3rem; }
.blocco__testa p { color: var(--testo-2); font-size: 1.2rem; max-width: 40ch; margin: 0; }
.introduzione { font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2.35rem); line-height: 1.2; letter-spacing: -0.025em; max-width: 30ch; margin: 0; text-wrap: balance; }

.comprende { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 4rem; counter-reset: voce; }
.comprende li { counter-increment: voce; display: grid; grid-template-columns: 3.25rem 1fr; gap: .25rem 1rem; padding: 1.6rem 0; border-top: 1px solid var(--linea); }
.comprende li::before { content: counter(voce, decimal-leading-zero); grid-row: span 2; font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--blu); }
.comprende b { font-size: 1.25rem; font-weight: 750; }
.comprende span { color: var(--testo-2); }

.due-colonne { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.vantaggi { list-style: none; margin: 0; padding: 0; }
.vantaggi li { display: flex; align-items: baseline; gap: 1rem; padding: 1.15rem 0; border-top: 1px solid var(--linea); font-family: var(--display); font-weight: 500; font-size: clamp(1.25rem, 2vw, 1.75rem); letter-spacing: -0.02em; line-height: 1.2; }
.vantaggi li:last-child { border-bottom: 1px solid var(--linea); }
.vantaggi svg { width: 1.3rem; height: 1.3rem; color: var(--blu); flex: none; transform: translateY(.15rem); }
.sottotitolo { font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 2.8vw, 2.4rem); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 1.5rem; }

.righe { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linea); }
.righe li { border-bottom: 1px solid var(--linea); }
.righe a { display: grid; grid-template-columns: 4rem minmax(0, 1.1fr) minmax(0, 1fr) 2rem; gap: 1.5rem; align-items: center; padding: 1.5rem 0; text-decoration: none; color: var(--inchiostro); transition: padding .5s var(--curva), background-color .3s; }
.righe .n { font-family: var(--display); font-weight: 600; color: var(--blu); }
.righe strong { font-family: var(--display); font-weight: 600; font-size: clamp(1.2rem, 2vw, 1.6rem); letter-spacing: -0.02em; line-height: 1.15; }
.righe span.d { color: var(--testo-2); }
.righe svg { width: 1.4rem; height: 1.4rem; color: var(--blu); transition: transform .45s var(--curva); }
.righe a:hover { padding-left: 1rem; background: var(--superficie); }
.righe a:hover svg { transform: translateX(5px); }
.righe .astra-voce .n, .righe .astra-voce svg { color: #4b28c3; }

.filtri { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.filtri button { font: 650 1rem var(--testo); color: var(--inchiostro); background: var(--superficie); border: 1.5px solid var(--linea); border-radius: 999px; padding: .6rem 1.1rem; cursor: pointer; transition: border-color .3s, background-color .3s, color .3s; }
.filtri button:hover { border-color: var(--blu); }
.filtri button[aria-pressed="true"] { background: var(--inchiostro); border-color: var(--inchiostro); color: #fff; }
.conteggio { color: var(--testo-2); margin: 0 0 1rem; }

.fascia { position: relative; z-index: 1; background: var(--inchiostro); color: #fff; }
.fascia .blocco { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 2rem; align-items: center; }
.fascia .titolo { color: #fff; margin: 0; }
.fascia p { color: #c7d8e5; margin: 1rem 0 0; font-size: 1.2rem; }
.fascia .bottone { background: #fff; color: var(--inchiostro); box-shadow: none; }
.fascia .bottone:hover { background: var(--ciano-tenue); }
.tema-astra .fascia { background: #36056c; }
.tema-astra .fascia p { color: #dccbf7; }

.scheda-dati { background: var(--superficie); border: 1px solid var(--linea); border-radius: 24px; padding: clamp(1.5rem, 3vw, 2.5rem); }
.scheda-dati h3 { font-family: var(--display); font-weight: 600; font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -0.03em; margin: 0 0 .5rem; }
.scheda-dati dl { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.5rem; margin: 1.5rem 0; }
.scheda-dati dt { color: var(--testo-2); }
.scheda-dati dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.griglia-due { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }

.piede { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; align-items: start; padding: 3.5rem var(--margine) 2.5rem; }
.piede h2 { font-family: var(--testo); font-size: 1rem; font-weight: 750; color: var(--inchiostro); margin: 0 0 .8rem; }
.piede ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.piede .fondo { grid-column: 1 / -1; border-top: 1px solid var(--linea); padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .92rem; }
.piede img { margin-bottom: 1rem; }

@media (max-width: 860px) {
  .blocco__testa, .due-colonne, .griglia-due, .fascia .blocco { grid-template-columns: 1fr; }
  .comprende { grid-template-columns: 1fr; }
  .righe a { grid-template-columns: 2.5rem minmax(0, 1fr) 1.5rem; gap: .75rem; }
  .righe span.d { grid-column: 2; }
  .righe svg { grid-row: 1; grid-column: 3; }
  .elenco--largo > div { grid-template-columns: 1fr; }
  .piede { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .piede { grid-template-columns: 1fr; } }

/* Tipografia: niente parole sole a fine riga */
p, dd, li, .righe span.d { text-wrap: pretty; }
.introduzione { line-height: 1.3; }
.sottotitolo, .titolo { text-wrap: balance; }

/* =================================================================== */
/* Contrasto: blocchi di colore (variante C scelta da Jacopo, 27/11/2026) */
/* =================================================================== */
:root { --banda: #0274ae; }
.tema-astra { --banda: #4b28c3; }
/* Fascia a tutta larghezza anche dentro un blocco centrato */
.contenuto > .blocco:nth-of-type(2), .home-banda {
  box-shadow: 0 0 0 100vmax var(--banda); clip-path: inset(0 -100vmax); background: var(--banda);
  --inchiostro: #ffffff; --testo-2: #e4f3fb; --linea: rgba(255, 255, 255, .28); --blu: #bdf0fb; --blu-scuro: #ffffff; --superficie: rgba(4, 20, 35, .16);
  color: var(--inchiostro);
}
.contenuto > .blocco:nth-of-type(2) { padding-top: clamp(4rem, 9vw, 8rem); }
.fascia { background: #02bce3; }
.fascia .titolo, .fascia p { color: #0a1f30; }
.fascia .bottone { background: #0a1f30; color: #fff; }
.tema-astra .fascia { background: #8f38f6; }
.tema-astra .fascia .titolo, .tema-astra .fascia p { color: #fff; }
.piede { border-top: 6px solid #02bce3; }
.tema-astra .piede { border-top-color: #8f38f6; }

/* Home: la sezione «Chi siamo» è la fascia di colore */
.home-banda .chi::before { display: none; }
.home-banda .motto { color: #fff; }
.home-banda .ritratto figcaption { color: var(--testo-2); }
.home-banda a { color: #fff; }

/* Approfondimento accanto all'introduzione delle schede */
.blocco__testa { align-items: start; }
.approfondimento { display: grid; gap: .9rem; }
.approfondimento p { color: var(--testo-2); font-size: 1.1rem; max-width: 46ch; margin: 0; }
.approfondimento .scheda-n { font-size: .95rem; font-weight: 650; color: var(--blu-scuro); }

/* =================================================================== */
/* Effetti blu su titoli e schede                                       */
/* =================================================================== */
/* Evidenziatore: il blu del pulsante si stende sotto la parola e il testo diventa bianco */
mark.evidenza {
  color: inherit; background: linear-gradient(var(--blu), var(--blu)) left center / 0% 100% no-repeat;
  padding: 0 .12em; margin: 0 -.04em; border-radius: .14em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size .8s var(--curva) .3s, color .2s linear .9s;
}
mark.evidenza.acceso { background-size: 100% 100%; color: #fff; }
.parola:has(mark) { overflow: visible; }
.sezione--astra mark.evidenza, .tema-astra mark.evidenza { background-image: linear-gradient(#4b28c3, #4b28c3); }
@media (prefers-reduced-motion: reduce) { mark.evidenza { background-size: 100% 100%; color: #fff; transition: none; } }

/* Titoli di sezione in blu */
.sottotitolo { color: var(--blu-scuro); }

/* «Cosa comprende»: il numero in un tondo blu, la voce si accende al passaggio */
.comprende li { padding: 1.6rem 1rem; margin-inline: -1rem; border-radius: 16px; transition: background-color .35s var(--curva), color .35s; }
.comprende li::before {
  width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--blu); color: #fff; font-size: .95rem;
}
.comprende li:hover { background: var(--blu); color: #fff; border-top-color: transparent; }
.comprende li:hover span { color: #e4f3fb; }
.comprende li:hover::before { background: #fff; color: var(--blu); }

/* Righe dei servizi: al passaggio si riempiono di blu */
.righe a:hover { background: var(--blu); color: #fff; }
.righe a:hover .n, .righe a:hover strong, .righe a:hover svg { color: #fff; }
.righe a:hover span.d { color: #e4f3fb; }
.righe .astra-voce a:hover { background: #4b28c3; }

/* Elenchi della home */
.elenco > div { padding-inline: .75rem; margin-inline: -.75rem; border-radius: 12px; transition: background-color .3s var(--curva); }
.elenco > div:hover { background: var(--blu); }
.elenco > div:hover dt a, .elenco > div:hover dd { color: #fff; }
.sezione--astra .elenco > div:hover { background: #4b28c3; }

/* Schede dati: testata blu */
.scheda-dati { border: 1.5px solid var(--blu); }
.scheda-dati h3 { color: var(--blu-scuro); }

/* Modulo: bordo superiore blu */
.modulo { border: 1.5px solid var(--blu); }

/* Problemi nella home */
.problemi-home { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: .6rem; max-width: 36rem; }
.problemi-home a {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem; border-radius: 16px; background: var(--superficie); border: 1.5px solid var(--linea);
  font: 600 1.1rem/1.3 var(--display); letter-spacing: -.015em; color: var(--inchiostro); text-decoration: none;
  transition: background-color .35s var(--curva), color .35s, border-color .35s, transform .45s var(--curva);
}
.problemi-home svg { width: 1.2rem; height: 1.2rem; flex: none; color: var(--blu); transition: transform .45s var(--curva), color .3s; }
.problemi-home a:hover { background: var(--blu); border-color: var(--blu); color: #fff; transform: translateX(6px); }
.problemi-home a:hover svg { color: #fff; transform: translateX(4px); }

/* Pulsante «Avanti»: cosa viene dopo, con scorrimento animato */
.avanti {
  position: fixed; right: clamp(1rem, 2.5vw, 2rem); bottom: clamp(1rem, 2.5vw, 2rem); z-index: 30;
  display: flex; align-items: center; gap: .9rem; max-width: min(24rem, calc(100vw - 2rem));
  padding: .7rem .7rem .7rem 1.2rem; border-radius: 999px;
  background: var(--blu); color: #fff; text-decoration: none;
  box-shadow: 0 14px 30px -12px rgba(2, 60, 95, .55);
  transition: opacity .4s ease, transform .5s var(--curva), background-color .3s;
}
.avanti:hover { background: var(--blu-scuro); }
.avanti.nascosto { opacity: 0; transform: translateY(1rem); pointer-events: none; }
.avanti--sopra-indice { bottom: 6.5rem; }
.avanti__testo { display: grid; line-height: 1.15; min-width: 0; }
.avanti__testo small { font-size: .78rem; font-weight: 600; color: #f0f8fc; }
.avanti__testo strong { font-family: var(--display); font-weight: 600; font-size: .98rem; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avanti__freccia { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: #fff; color: var(--blu); display: grid; place-items: center; }
.avanti__freccia svg { width: 1.25rem; height: 1.25rem; animation: avanti-giu 1.8s var(--curva) infinite; }
@keyframes avanti-giu { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }
.avanti.bussa { animation: avanti-bussa .9s var(--curva); }
@keyframes avanti-bussa { 0% { transform: scale(.9); } 45% { transform: scale(1.06); } 100% { transform: scale(1); } }
.tema-astra .avanti, .sezione--astra ~ .avanti { background: #4b28c3; }
@media (max-width: 560px) {
  .avanti { right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom, 0px)); gap: .6rem; max-width: min(15rem, calc(100vw - 1.5rem)); padding: .4rem .4rem .4rem .95rem; box-shadow: 0 10px 22px -12px rgba(2, 60, 95, .6); }
  .avanti__testo small { display: none; }
  .avanti__testo strong { font-size: .82rem; }
  .avanti__freccia { width: 2.1rem; height: 2.1rem; }
  .avanti__freccia svg { width: 1.05rem; height: 1.05rem; }
  .avanti--sopra-indice { bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .avanti__freccia svg, .avanti.bussa { animation: none; } }
html.astra-attivo .avanti { background: #4b28c3; }
html.astra-attivo .avanti .avanti__freccia { color: #4b28c3; }

/* =================================================================== */
/* 28/11: correzioni, piede scuro, In evidenza, pareri, notizie         */
/* =================================================================== */

/* Dopo la fascia blu il blocco successivo riprende il suo respiro */
.contenuto > .blocco:nth-of-type(2) + .blocco { padding-top: clamp(4rem, 9vw, 8rem); }
/* Dentro la fascia blu niente aloni chiari e niente sovrapposizioni */
.contenuto > .blocco:nth-of-type(2) .chi::before { display: none; }
.contenuto > .blocco:nth-of-type(2) .chi { grid-template-columns: auto 1fr; align-items: center; max-width: none; }
.contenuto > .blocco:nth-of-type(2) .motto { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
.contenuto > .blocco:nth-of-type(2) .collegamento, .contenuto > .blocco:nth-of-type(2) a { color: #fff; }
.contenuto > .blocco:nth-of-type(2) .ritratto figcaption { color: var(--testo-2); }
.contenuto > .blocco:nth-of-type(2) .due-colonne { align-items: center; }

/* Piede scuro, logo bianco */
.piede { background: #0a1f30; color: #c3d6e4; border-top: 6px solid #02bce3; }
.piede h2 { color: #fff; }
.piede a { color: #e4f0f7; }
.piede a:hover { color: #fff; }
.piede .fondo { border-top-color: rgba(255, 255, 255, .16); }
.piede img { height: 46px; width: auto; }
.tema-astra .piede { background: #1c0636; border-top-color: #8f38f6; }

/* In evidenza (home) */
.sezione--evidenza { min-height: auto; padding-block: 5rem; }
.evidenza { width: 100%; max-width: 76rem; margin: 0 auto; }
.evidenza__griglia { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1.25rem; margin-top: 2rem; }
.evidenza__voce {
  position: relative; display: flex; flex-direction: column; gap: .8rem; min-height: 17rem;
  padding: clamp(1.5rem, 2.5vw, 2.25rem); border-radius: 24px; text-decoration: none;
  background: var(--superficie); border: 1.5px solid var(--linea); color: var(--inchiostro);
  transition: transform .5s var(--curva), box-shadow .5s var(--curva), background-color .35s;
}
.evidenza__voce strong { font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 1.9vw, 1.7rem); line-height: 1.15; letter-spacing: -.02em; }
.evidenza__voce span { color: var(--testo-2); }
.evidenza__voce time { font-weight: 700; color: var(--blu); }
.evidenza__voce em { margin-top: auto; font-style: normal; font-weight: 700; display: inline-flex; gap: .5rem; align-items: center; color: var(--blu-scuro); }
.evidenza__voce em svg { width: 1.1rem; height: 1.1rem; transition: transform .45s var(--curva); }
.evidenza__voce:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -30px rgba(2, 60, 95, .5); }
.evidenza__voce:hover em svg { transform: translateX(5px); }
.evidenza__voce--astra { background: #4b28c3; border-color: #4b28c3; color: #fff; }
.evidenza__voce--astra img { width: 4.5rem; height: auto; }
.evidenza__voce--astra span { color: #ece0ff; }
.evidenza__voce--astra em { color: #fff; }
.evidenza__voce--blu { background: var(--blu); border-color: var(--blu); color: #fff; }
.evidenza__voce--blu span { color: #f0f8fc; }
.evidenza__voce--blu em { color: #fff; }

/* Pareri dei Comuni (home) */
.sezione--pareri { min-height: auto; padding-block: 7rem; }
.pareri-sezione { width: 100%; max-width: 76rem; margin: 0 auto; position: relative; }
.pareri { margin-top: 2rem; background: var(--superficie); border: 1.5px solid var(--blu); border-radius: 28px; padding: clamp(1.75rem, 4vw, 3.5rem); }
.parere { margin: 0; }
.parere blockquote { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(1.25rem, 2.1vw, 1.9rem); line-height: 1.3; letter-spacing: -.02em; max-width: 46ch; text-wrap: pretty; }
.parere figcaption { display: flex; align-items: center; gap: 1rem; margin-top: 1.75rem; color: var(--testo-2); }
.parere figcaption img { width: 2.75rem; height: auto; }
.parere figcaption b { color: var(--inchiostro); font-weight: 750; }
.parere.entra-parere { animation: parere-entra .7s var(--curva); }
@keyframes parere-entra { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.pareri__comandi { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; }
.pareri__freccia { width: 3rem; height: 3rem; border-radius: 50%; border: 1.5px solid var(--linea); background: var(--fondo); color: var(--blu); cursor: pointer; display: grid; place-items: center; transition: background-color .3s, color .3s, border-color .3s; }
.pareri__freccia svg { width: 1.2rem; height: 1.2rem; }
.pareri__freccia:hover { background: var(--blu); border-color: var(--blu); color: #fff; }
.pareri__punti { display: flex; gap: .45rem; }
.pareri__punti button { width: .7rem; height: .7rem; border-radius: 999px; border: 0; background: var(--linea); cursor: pointer; padding: 0; transition: width .4s var(--curva), background-color .3s; }
.pareri__punti button[aria-current="true"] { width: 2rem; background: var(--blu); }
.clienti { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; }
.clienti li { display: flex; align-items: center; gap: .75rem; padding: .8rem 1rem; border-radius: 16px; background: var(--superficie); border: 1px solid var(--linea); font-weight: 650; font-size: .98rem; line-height: 1.2; }
.clienti img { width: 2rem; height: auto; flex: none; }
.clienti small { display: block; font-weight: 500; color: var(--testo-2); }

/* Notizie */
.sezione--notizie-home { min-height: auto; padding-block: 6rem; }
.notizie-home { width: 100%; max-width: 76rem; margin: 0 auto; background: var(--fondo); border-radius: 28px; padding: clamp(1.5rem, 3vw, 2.5rem); }
.righe--notizie a { grid-template-columns: 11rem minmax(0, 1.1fr) minmax(0, 1fr) 2rem; }
.righe--notizie .n { font-family: var(--testo); font-weight: 700; font-size: .98rem; }
.sezione--articolo { min-height: 70vh; min-height: 70svh; }
.data-articolo { margin: 0 0 1rem; font-weight: 700; color: var(--blu); }
.articolo { max-width: 46rem; }
.articolo p { font-size: 1.15rem; line-height: 1.65; color: var(--inchiostro); margin: 0 0 1.25rem; }
.articolo__sezione { font-family: var(--display); font-weight: 600; font-size: 1.45rem; letter-spacing: -.02em; color: var(--blu-scuro); margin: 2.5rem 0 1rem; }
.articolo__voce { display: flex; gap: .75rem; align-items: baseline; }
.articolo__voce svg { width: 1.1rem; height: 1.1rem; color: var(--blu); flex: none; transform: translateY(.15rem); }
.articolo__fonte { color: var(--testo-2) !important; font-size: 1rem !important; border-top: 1px solid var(--linea); padding-top: 1.25rem; margin-top: 2.5rem !important; }

@media (max-width: 860px) {
  .evidenza__griglia { grid-template-columns: 1fr; }
  .evidenza__voce { min-height: 0; }
  .clienti { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .righe--notizie a { grid-template-columns: minmax(0, 1fr) 1.5rem; }
  .righe--notizie .n { grid-column: 1; }
  .righe--notizie strong { grid-column: 1; }
  .righe--notizie span.d { grid-column: 1; }
  .righe--notizie svg { grid-row: 1 / span 3; grid-column: 2; }
  .contenuto > .blocco:nth-of-type(2) .chi { grid-template-columns: 1fr; }
}
.articolo__sezione { text-wrap: balance; }

/* Immagini delle notizie (quelle pubblicate sul sito attuale) */
.righe--notizie a { grid-template-columns: 13rem minmax(0, 1fr) 2rem; gap: 1.75rem; }
.miniatura { display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--blu); }
.miniatura img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--curva); }
.miniatura--vuota { display: grid; place-items: center; background: var(--blu); }
.miniatura--vuota img { width: 2.6rem; height: 2.6rem; object-fit: contain; filter: brightness(0) invert(1); opacity: .9; }
.righe--notizie a:hover .miniatura img { transform: scale(1.05); }
.testo-notizia { display: grid; gap: .35rem; }
.righe--notizie .n { font-family: var(--testo); font-weight: 700; font-size: .95rem; color: var(--blu); }
.articolo__immagine { margin: 0 0 2.5rem; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 50px -30px rgba(2, 60, 95, .45); }
.articolo__immagine img { width: 100%; height: auto; }
.evidenza__immagine { display: block; aspect-ratio: 16 / 9; margin: -.5rem -.5rem .4rem; border-radius: 14px; overflow: hidden; }
.evidenza__immagine img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--curva); }
.evidenza__voce--notizia:hover .evidenza__immagine img { transform: scale(1.05); }
@media (max-width: 860px) {
  .righe--notizie a { grid-template-columns: minmax(0, 1fr) 1.5rem; }
  .righe--notizie .miniatura { grid-column: 1 / -1; }
  .righe--notizie .testo-notizia { grid-column: 1; }
  .righe--notizie svg { grid-row: 2; grid-column: 2; }
}

/* Pagine dei webinar, delle richieste e dei ringraziamenti */
.chiusura--modulo { align-items: start; }
.chiusura--modulo .chiusura__testo { padding-top: 2rem; }
.richiesta-per { margin: 1.5rem 0 0; font-size: 1.1rem; color: var(--testo-2); }
.richiesta-per strong { color: var(--blu-scuro); }
.dettagli-evento { margin-top: 1.75rem; display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.5rem; }
.dettagli-evento dt { color: var(--testo-2); }
.dettagli-evento dd { margin: 0; font-weight: 700; }
.riquadro-vantaggio { margin: 1.75rem 0 0; padding: 1.1rem 1.3rem; border-radius: 16px; background: var(--blu); color: #fff; font-weight: 600; max-width: 34rem; }
.scelte, .valutazione { border: 0; margin: 0; padding: 0; display: grid; gap: .6rem; }
.scelte legend, .valutazione legend { font-weight: 700; font-size: .98rem; margin-bottom: .5rem; padding: 0; }
.scelte label { display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 1rem; border: 1.5px solid var(--linea); border-radius: 14px; cursor: pointer; transition: border-color .25s, background-color .25s; }
.scelte label span { display: grid; gap: .15rem; font-size: .95rem; color: var(--testo-2); }
.scelte label b { color: var(--inchiostro); font-size: 1rem; }
.scelte input, .consenso input { width: 1.2rem; height: 1.2rem; margin-top: .15rem; accent-color: var(--blu); flex: none; }
.scelte label:has(input:checked) { border-color: var(--blu); background: var(--ciano-tenue); }
.consenso { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; color: var(--testo-2); cursor: pointer; }
.valutazione { padding: 1rem 0 .4rem; border-top: 1px solid var(--linea); }
.valutazione__scala { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .4rem; }
.valutazione__scala label { cursor: pointer; }
.valutazione__scala input { position: absolute; opacity: 0; }
.valutazione__scala span { display: grid; gap: .1rem; text-align: center; padding: .55rem .2rem; border: 1.5px solid var(--linea); border-radius: 12px; font-size: .72rem; line-height: 1.2; color: var(--testo-2); transition: background-color .25s, color .25s, border-color .25s; }
.valutazione__scala b { font-size: 1.1rem; color: var(--inchiostro); }
.valutazione__scala input:checked + span { background: var(--blu); border-color: var(--blu); color: #fff; }
.valutazione__scala input:checked + span b { color: #fff; }
.valutazione__scala input:focus-visible + span { outline: 2.5px solid var(--blu); outline-offset: 2px; }
.nota-privacy { font-size: .88rem; color: var(--testo-2); margin: 0; }
.modulo.controllato :invalid { border-color: var(--errore); }
.sezione--grazie { min-height: 80vh; min-height: 80svh; }
.blocco--grazie .introduzione { margin-top: 2.5rem; font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
.attesa { margin-top: 2.5rem; width: min(24rem, 100%); height: 6px; border-radius: 6px; background: var(--linea); overflow: hidden; }
.attesa span { display: block; height: 100%; width: 100%; background: var(--blu); transform-origin: left; animation: attesa 2.8s var(--curva) forwards; }
@keyframes attesa { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.calendario-incontri { border-radius: 20px; overflow: hidden; border: 1.5px solid var(--blu); background: #fff; }
.calendario-incontri iframe { display: block; width: 100%; height: 760px; border: 0; }
@media (max-width: 560px) { .valutazione__scala span { font-size: .62rem; } }
@media (min-width: 861px) { .chiusura--modulo .chiusura__testo { position: sticky; top: 7rem; } }

/* Video di Rossana: copertina nello stile del sito, il video parte al clic */
.ritratto--video { width: 100%; }
/* Il video è l'elemento principale: più largo del testo accanto */
.chi:has(.ritratto--video) { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); max-width: 78rem; }
.video-rossana { position: relative; aspect-ratio: 2 / 1; border-radius: 18px; overflow: hidden; background: #0a1f30; box-shadow: 0 18px 40px -18px rgba(2, 50, 80, 0.45); }
.video-rossana::before { content: ""; position: absolute; inset: 0; background: url("../assets/simbolo-dspt.svg") right -12% center / 62% no-repeat; opacity: .12; filter: brightness(0) invert(1); }
.video-rossana__avvia { position: absolute; inset: 0; display: flex; align-items: center; gap: 1rem; padding: 0 1.5rem; border: 0; background: none; color: #fff; text-align: left; cursor: pointer; font: inherit; }
.video-rossana__play { flex: none; display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; background: var(--ciano); color: #0a1f30; transition: transform .5s var(--curva), background-color .3s; }
.video-rossana__play svg { width: 1.6rem; height: 1.6rem; margin-left: .2rem; }
.video-rossana__avvia:hover .video-rossana__play, .video-rossana__avvia:focus-visible .video-rossana__play { transform: scale(1.08); background: #fff; }
.video-rossana__avvia:focus-visible { outline: 3px solid var(--ciano); outline-offset: -3px; }
.video-rossana__testo { display: grid; gap: .2rem; }
.video-rossana__testo strong { font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: -.02em; }
.video-rossana__testo small { font-size: .9rem; color: #c9e7f3; }
.video-rossana iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 860px) {
  .ritratto--video { width: 100%; }
  .testata .apri-menu { margin-left: auto; }
}
/* Chi siamo: nella colonna il video prende tutta la larghezza e la frase va sotto */
.contenuto > .blocco:nth-of-type(2) .chi:has(.ritratto--video), .due-colonne .chi:has(.ritratto--video) { grid-template-columns: 1fr; gap: 1.5rem; max-width: none; }
@media (max-width: 860px) { .chi:has(.ritratto--video) { grid-template-columns: 1fr; } }

/* ================================================================ Reel ASTRA */
.reel, .reel-scorre__palco { position: relative; overflow: hidden; background: #f8f4ff; container-type: inline-size; }
.reel video, .reel-scorre__palco video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s ease; }
.reel video.visibile, .reel-scorre__palco video.visibile { opacity: 1; }
.reel__fondo { position: absolute; inset: 0; background: #f8f4ff; opacity: 0; transition: opacity 1s ease; }
.reel__fondo.on { opacity: 1; }
.reel__strato { position: absolute; inset: 0; pointer-events: none; }
.reel__tx { position: absolute; opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .8s var(--curva); }
.reel__tx.on { opacity: 1; transform: none; }
.reel__ora { left: 5%; bottom: 8%; font-family: var(--display); font-weight: 500; font-size: clamp(1.4rem, 3.2cqw, 3rem); color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.55); }
.reel__domanda { font-weight: 650; font-size: clamp(.95rem, 2.1cqw, 1.6rem); color: #24043f; background: rgba(248,244,255,.93); border: 1px solid #e2d6f5; padding: .55em .9em; border-radius: 1em 1em 1em .25em; box-shadow: 0 10px 30px -14px rgba(54,5,108,.5); max-width: 80%; }
.reel__d1 { left: 8%; top: 20%; } .reel__d2 { right: 8%; top: 34%; } .reel__d3 { left: 12%; top: 54%; } .reel__d4 { right: 6%; top: 70%; }
.reel__frase { inset: 0; display: grid; place-items: center; padding: 0 8%; text-align: center; }
.reel__frase span { font-family: var(--display); font-weight: 600; letter-spacing: -.03em; line-height: 1.12; font-size: clamp(1.6rem, 4.6cqw, 4.2rem); color: #24043f; background: rgba(248,244,255,.9); padding: .45em .7em; border-radius: .4em; box-shadow: 0 20px 50px -24px rgba(54,5,108,.55); }
.reel__logo { left: 50%; top: 40%; width: clamp(9rem, 22cqw, 18rem); translate: -50% -50%; }
.reel__sotto { left: 0; right: 0; top: 62%; text-align: center; font-weight: 650; font-size: clamp(.9rem, 1.9cqw, 1.4rem); color: #36056c; padding: 0 6%; }
.reel__chiusura { left: 0; right: 0; top: 71%; text-align: center; }
.reel__chiusura strong { display: block; font-family: var(--display); font-weight: 600; letter-spacing: -.03em; font-size: clamp(1.4rem, 3.4cqw, 2.8rem); color: #4b28c3; }
.reel__chiusura small { display: block; margin-top: .5em; font-weight: 650; font-size: clamp(.85rem, 1.7cqw, 1.2rem); color: #24043f; }
.reel__sottotitolo { left: 8%; right: 8%; bottom: 4%; text-align: center; font-weight: 650; font-size: clamp(.85rem, 1.6cqw, 1.2rem); color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.85); }
.reel--finale .reel__sottotitolo { color: #36056c; text-shadow: none; }
.reel--v .reel__d1, .reel--v .reel__d3 { left: 6%; } .reel--v .reel__d2, .reel--v .reel__d4 { right: 6%; }
.reel--v .reel__frase span { font-size: clamp(1.5rem, 7.4cqw, 3rem); }
.reel--v .reel__domanda { font-size: clamp(.95rem, 4.4cqw, 1.4rem); }
.reel--v .reel__logo { width: 46cqw; top: 36%; }
.reel--v .reel__sotto { top: 56%; font-size: 3.8cqw; }
.reel--v .reel__chiusura { top: 66%; }
.reel--v .reel__sottotitolo { bottom: 10%; font-size: 3.6cqw; }

/* Reel da scorrere: la sezione è alta, il palco resta fermo mentre si scorre */
.reel-scorre { position: relative; height: 640vh; height: 640svh; padding: 0 !important; display: block !important; min-height: 0 !important; }
.reel-scorre__palco { position: sticky; top: 0; height: 100vh; height: 100svh; }
.reel-scorre__intro { position: absolute; inset: 0; z-index: 2; display: grid; align-content: end; gap: 1rem; padding: 0 var(--margine) 12vh; background: linear-gradient(to top, rgba(36,4,63,.78), rgba(36,4,63,.15) 70%); color: #fff; transition: opacity .6s ease, transform .8s var(--curva); }
.reel-scorre__intro.via { opacity: 0; transform: translateY(-20px); pointer-events: none; }
.reel-scorre__intro .marchio-astra { width: clamp(7rem, 10vw, 9rem); margin: 0; filter: brightness(0) invert(1); }
.reel-scorre__intro h1 { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(2.2rem, 6vw, 5.2rem); line-height: 1.02; letter-spacing: -.04em; max-width: 14ch; }
.reel-scorre__intro p { margin: 0; font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 40ch; color: #eadcff; }
.reel-scorre__azioni { position: absolute; z-index: 3; right: var(--margine); bottom: 1.5rem; display: flex; gap: .75rem; align-items: center; }
.reel-scorre__barra { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.25); }
.reel-scorre__barra i { display: block; height: 100%; width: 0; background: #8f38f6; }
.bottone--reel { background: #fff; color: #4b28c3; box-shadow: 0 12px 30px -12px rgba(36,4,63,.6); }
.bottone--reel:hover { background: #f8f4ff; color: #36056c; }
.bottone--reel .play { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #8f38f6; color: #fff; font-size: .7rem; padding-left: .12rem; }
@media (prefers-reduced-motion: reduce) { .reel-scorre { height: auto; } .reel-scorre__palco { position: relative; } }

/* Reel completo a schermo intero */
.reel-aperto, .reel-aperto body { overflow: hidden; }
.reel-finestra { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(20,5,31,.92); padding: 1rem; }
.reel-finestra__palco { width: min(100%, calc((100vh - 2rem) * 16 / 9)); aspect-ratio: 16 / 9; border-radius: 16px; box-shadow: 0 40px 90px -30px #000; }
.reel-finestra__palco.reel--v { width: min(100%, calc((100vh - 2rem) * 9 / 16)); aspect-ratio: 9 / 16; }
.reel-finestra__chiudi { position: fixed; top: 1rem; right: 1rem; width: 2.8rem; height: 2.8rem; border-radius: 50%; border: 0; background: #fff; color: #24043f; font-size: 1.6rem; cursor: pointer; }
.reel-finestra__ancora { position: absolute; left: 50%; bottom: 18%; translate: -50% 0; z-index: 3; font: 700 1rem var(--testo); color: #fff; background: #8f38f6; border: 0; border-radius: 999px; padding: .8rem 1.4rem; cursor: pointer; }

/* ================================================================ Moduli ASTRA: fuori e dentro */
.porta__testa { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 4rem; align-items: end; margin-bottom: 2.5rem; }
.porta__testa p { margin: 0; color: var(--testo-2); font-size: 1.2rem; max-width: 42ch; }
.porta__etichetta { display: block; font-family: var(--display); font-weight: 600; color: #8f38f6; font-size: 1rem; margin-bottom: .5rem; }
.moduli-astra { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.modulo-astra { position: relative; display: flex; flex-direction: column; min-height: 22rem; border-radius: 22px; overflow: hidden; background: #24043f; color: #fff; isolation: isolate; }
.modulo-astra video, .modulo-astra .modulo-astra__fondo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.modulo-astra .modulo-astra__fondo { background: radial-gradient(circle at 70% 20%, #8f38f6 0, #4b28c3 45%, #24043f 100%); }
.modulo-astra::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(36,4,63,.92) 30%, rgba(36,4,63,.25)); }
.modulo-astra__corpo { margin-top: auto; padding: 1.5rem; display: grid; gap: .6rem; }
.modulo-astra h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.35rem; letter-spacing: -.02em; }
.modulo-astra p { margin: 0; color: #eadcff; line-height: 1.45; }
.modulo-astra a { color: #fff; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; margin-top: .3rem; }
.modulo-astra a svg { width: 1.1rem; height: 1.1rem; transition: transform .4s var(--curva); }
.modulo-astra a:hover svg { transform: translateX(4px); }
.modulo-astra--velato .modulo-astra__fondo { filter: blur(2px) saturate(.8); }
.modulo-astra__lucchetto { position: absolute; top: 1.25rem; right: 1.25rem; display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 700; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); padding: .35rem .7rem; border-radius: 999px; backdrop-filter: blur(6px); }
.modulo-astra__lucchetto svg { width: .95rem; height: .95rem; }
.dentro { margin-top: clamp(3rem, 7vw, 6rem); }

/* Prova di ASTRA Informazioni */
.prova { margin-top: 1.5rem; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; background: var(--superficie); border: 1px solid var(--linea); border-radius: 22px; padding: clamp(1.25rem, 3vw, 2rem); }
.prova h3 { margin: 0 0 .5rem; font-family: var(--display); font-weight: 600; font-size: 1.4rem; letter-spacing: -.02em; }
.prova__nota { margin: 0 0 1rem; color: var(--testo-2); }
.prova__domande { display: grid; gap: .5rem; }
.prova__domande button { text-align: left; font: 600 1rem var(--testo); color: #36056c; background: #f3ecff; border: 1px solid #e2d6f5; border-radius: 14px; padding: .75rem 1rem; cursor: pointer; transition: background-color .3s; }
.prova__domande button:hover:not(:disabled) { background: #ece0ff; }
.prova__domande button:disabled { opacity: .55; cursor: default; }
.prova__chat { display: grid; gap: .6rem; align-content: start; min-height: 14rem; max-height: 22rem; overflow: auto; padding: 1rem; border-radius: 16px; background: #f8f4ff; }
.prova__vuota { margin: auto; color: var(--testo-2); text-align: center; }
.prova__msg { max-width: 88%; padding: .7rem .95rem; border-radius: 16px; line-height: 1.45; }
.prova__msg--io { justify-self: end; background: #4b28c3; color: #fff; border-bottom-right-radius: 4px; }
.prova__msg--astra { justify-self: start; background: #fff; border: 1px solid #e2d6f5; border-bottom-left-radius: 4px; }
.prova__msg--scrive { display: flex; gap: .3rem; }
.prova__msg--scrive i { width: .45rem; height: .45rem; border-radius: 50%; background: #8f38f6; animation: scrive 1s infinite ease-in-out; }
.prova__msg--scrive i:nth-child(2) { animation-delay: .15s; } .prova__msg--scrive i:nth-child(3) { animation-delay: .3s; }
@keyframes scrive { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }

/* Pagina di un modulo velato */
.velato-modulo { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--linea); background: var(--superficie); }
.velato-modulo__sagome { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 3rem; padding: 2rem; filter: blur(6px); opacity: .7; user-select: none; }
.velato-modulo__sagome span { height: 1rem; border-radius: 6px; background: #e2d6f5; }
.velato-modulo__sagome span:nth-child(3n) { width: 60%; }
.velato-modulo__testo { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .9rem; text-align: center; padding: 1.5rem; background: rgba(248,244,255,.72); }
.velato-modulo__testo p { margin: 0; max-width: 44ch; font-size: 1.1rem; color: var(--inchiostro); }
.velato-modulo__testo svg { width: 2rem; height: 2rem; color: #4b28c3; }

/* Home: anteprima del reel nella sezione ASTRA */
.anteprima-reel { position: relative; display: block; width: min(100%, 30rem); aspect-ratio: 16 / 9; margin-top: 1.5rem; border-radius: 18px; overflow: hidden; border: 0; padding: 0; cursor: pointer; background: #24043f; box-shadow: 0 20px 50px -24px rgba(54,5,108,.6); }
.anteprima-reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.anteprima-reel span { position: absolute; left: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: .6rem; font: 700 1rem var(--testo); color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.anteprima-reel span i { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: #8f38f6; font-style: normal; padding-left: .15rem; }

@media (max-width: 860px) {
  .porta__testa, .prova { grid-template-columns: 1fr; }
  .moduli-astra { grid-template-columns: 1fr; }
  .modulo-astra { min-height: 18rem; }
  .velato-modulo__sagome { grid-template-columns: 1fr; }
  .reel-scorre__azioni { left: var(--margine); right: var(--margine); bottom: 1.25rem; }
}

.dentro .moduli-astra { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contenuto > .blocco:nth-of-type(2) .porta__etichetta { color: #e3d2ff; }
.contenuto > .blocco:nth-of-type(2) .porta__testa p { color: #eadcff; }
@media (max-width: 860px) { .dentro .moduli-astra { grid-template-columns: 1fr; } }
.contenuto > .blocco:nth-of-type(2) .porta__testa .sottotitolo { color: #fff; }
.anteprima-reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(36,4,63,.8), rgba(36,4,63,0) 65%); }
.anteprima-reel span { z-index: 1; }
/* Reel di sezione (Fuori dal Comune) */
.reel-sezione { position: relative; display: block; width: 100%; aspect-ratio: 21 / 8; margin: 0 0 1.25rem; border: 0; padding: 0; border-radius: 22px; overflow: hidden; cursor: pointer; background: #24043f; }
.reel-sezione video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--curva); }
.reel-sezione:hover video { transform: scale(1.03); }
.reel-sezione::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(36,4,63,.82), rgba(36,4,63,.1) 60%); }
.reel-sezione span { position: absolute; z-index: 1; left: clamp(1.25rem, 3vw, 2.5rem); top: 50%; translate: 0 -50%; display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; align-items: center; text-align: left; color: #fff; }
.reel-sezione i { grid-row: span 2; display: grid; place-items: center; width: 3.6rem; height: 3.6rem; border-radius: 50%; background: #8f38f6; font-style: normal; font-size: 1.1rem; padding-left: .2rem; transition: transform .5s var(--curva); }
.reel-sezione:hover i { transform: scale(1.08); }
.reel-sezione b { font-family: var(--display); font-weight: 600; font-size: clamp(1.15rem, 2vw, 1.6rem); letter-spacing: -.02em; }
.reel-sezione small { font-size: .95rem; color: #eadcff; }
@media (max-width: 860px) { .reel-sezione { aspect-ratio: 16 / 9; } }
.reel__effetto { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.reel__frase-bassa { align-items: end; padding-bottom: 12%; }

/* Reel Dentro: la risposta di ASTRA sotto la domanda */
.reel__risposta { left: 8%; top: 32%; width: 32%; background: rgba(255,255,255,.96); border-radius: .25em 1em 1em 1em; padding: 1.4cqw 1.6cqw; box-shadow: 0 18px 40px -18px rgba(20,2,31,.7); border-left: .45cqw solid #8f38f6; }
.reel__risposta small { display: block; font-weight: 700; font-size: 1.05cqw; letter-spacing: .08em; text-transform: uppercase; color: #8f38f6; }
.reel__risposta strong { display: block; font-family: var(--display); font-weight: 600; font-size: 2.2cqw; letter-spacing: -.02em; line-height: 1.15; color: #24043f; margin: .25em 0 .5em; }
.reel__risposta span { display: block; height: .75cqw; border-radius: 1cqw; background: #d8cdea; margin-top: .6cqw; filter: blur(.12cqw); }
.reel__risposta span:nth-of-type(2) { width: 86%; } .reel__risposta span:nth-of-type(3) { width: 64%; }
.reel--v .reel__risposta { left: 6%; top: 30%; width: 70%; padding: 3cqw 3.4cqw; border-left-width: 1cqw; }
.reel--v .reel__risposta small { font-size: 2.6cqw; } .reel--v .reel__risposta strong { font-size: 5cqw; } .reel--v .reel__risposta span { height: 1.6cqw; margin-top: 1.3cqw; }
.reel__frase-bassa { padding-bottom: 9%; }
.reel__frase-bassa span { font-size: clamp(1.1rem, 3.1cqw, 2.8rem); }
.reel--v .reel__frase-bassa span { font-size: clamp(1.2rem, 6cqw, 2.4rem); }

/* ---------------------------------------------------------------- Pagine legali (privacy, cookie, accessibilità) */
.legale__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.6rem 0 0; }
.legale__meta div { display: flex; gap: .45em; align-items: baseline; padding: .45em .85em; border-radius: 999px; background: rgba(255,255,255,.75); border: 1px solid var(--linea); font-size: .9rem; }
.legale__meta dt { color: var(--testo-2); font-weight: 600; }
.legale__meta dd { margin: 0; font-weight: 700; color: var(--inchiostro); }
.legale { display: grid; grid-template-columns: 15rem minmax(0, 46rem); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.legale__indice { position: sticky; top: 6.5rem; padding: 1.25rem 1.1rem; border-radius: 1rem; background: var(--superficie); border: 1px solid var(--linea); }
.legale__indice > p { margin: 0 0 .8rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--testo-2); }
.legale__indice ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.legale__indice a { display: flex; gap: .6em; padding: .35em .5em; border-radius: .5rem; color: var(--inchiostro); text-decoration: none; font-size: .95rem; line-height: 1.3; }
.legale__indice a span { font-variant-numeric: tabular-nums; color: var(--blu); font-weight: 700; }
.legale__indice a:hover, .legale__indice a:focus-visible { background: var(--ciano-tenue); }
.legale__testo p { font-size: 1.08rem; line-height: 1.7; color: var(--inchiostro); margin: 0 0 1.1rem; }
.legale__testo a { color: var(--blu-scuro); text-underline-offset: .18em; }
.legale__intro { font-size: 1.2rem !important; padding: 1.4rem 1.6rem; border-radius: 1rem; background: var(--ciano-tenue); }
.legale__sezione { padding-top: 2.4rem; scroll-margin-top: 6rem; }
.legale__titolo { display: flex; gap: .7em; align-items: baseline; margin: 0 0 1.1rem; font-family: var(--display); font-weight: 600; letter-spacing: -.02em; font-size: clamp(1.35rem, 2.4vw, 1.75rem); color: var(--inchiostro); }
.legale__titolo span { font-size: .7em; color: var(--blu); font-variant-numeric: tabular-nums; }
.legale__sotto { margin: 1.6rem 0 .6rem; font-size: 1.12rem; font-weight: 700; color: var(--inchiostro); }
.legale__lista { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .55rem; }
.legale__lista li { display: flex; gap: .7em; font-size: 1.05rem; line-height: 1.55; color: var(--inchiostro); }
.legale__lista svg { flex: none; width: 1.15em; height: 1.15em; margin-top: .2em; color: var(--blu); }
.legale__dati { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .1rem 1.5rem; margin: 0 0 1.3rem; padding: 1.1rem 1.4rem; border-radius: 1rem; background: var(--superficie); border: 1px solid var(--linea); }
.legale__dati div { padding: .55rem 0; border-bottom: 1px solid var(--linea); }
.legale__dati dt { font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--testo-2); }
.legale__dati dd { margin: .2rem 0 0; font-size: 1.02rem; color: var(--inchiostro); }
.legale__tabella { margin: 0 0 1.3rem; border-radius: 1rem; border: 1px solid var(--linea); overflow: hidden; background: var(--superficie); }
.legale__tabella table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.legale__tabella th { text-align: left; padding: .8rem 1rem; background: var(--fondo); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--testo-2); }
.legale__tabella td { padding: .85rem 1rem; border-top: 1px solid var(--linea); vertical-align: top; color: var(--inchiostro); line-height: 1.5; }
.legale__nota { padding: 1rem 1.25rem; border-left: 4px solid var(--blu); border-radius: .25rem .8rem .8rem .25rem; background: var(--ciano-tenue); }
@media (max-width: 900px) {
  .legale { grid-template-columns: 1fr; }
  .legale__indice { position: static; }
  .legale__tabella table, .legale__tabella tbody, .legale__tabella tr, .legale__tabella td { display: block; }
  .legale__tabella thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legale__tabella tr { padding: .4rem 0; border-top: 1px solid var(--linea); }
  .legale__tabella tr:first-child { border-top: 0; }
  .legale__tabella td { border: 0; padding: .35rem 1rem; }
  .legale__tabella td::before { content: attr(data-etichetta); display: block; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--testo-2); }
}

/* Menu con nove voci: non va mai a capo, e tra 861 e 1200 px si stringe */
.testata__nav a { white-space: nowrap; }
@media (min-width: 861px) and (max-width: 1200px) {
  .testata__nav { gap: clamp(.75rem, 1.4vw, 1.25rem); }
  .testata__nav a { font-size: clamp(.86rem, .55rem + .5vw, .95rem); }
}

/* Articoli: il servizio collegato (WordPress) */
.collegati__elenco { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.collegati__elenco a { display: grid; gap: .4rem; height: 100%; padding: 1.3rem 1.4rem; border-radius: 1rem; background: var(--superficie); border: 1px solid var(--linea); text-decoration: none; color: var(--inchiostro); box-shadow: 0 24px 50px -40px rgba(10, 31, 48, .45); transition: border-color .3s, transform .45s var(--curva); }
.collegati__elenco a:hover, .collegati__elenco a:focus-visible { border-color: var(--blu); transform: translateY(-2px); }
.collegati__elenco strong { font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: -.02em; line-height: 1.2; color: var(--blu-scuro); }
.collegati__elenco span { color: var(--testo-2); line-height: 1.45; }
.righe--collegate a { grid-template-columns: minmax(0, 1fr) 2rem; }
.pagina-wp__titolo { max-width: 46rem; margin: 0 auto 1.5rem; padding: 0 var(--margine); }
