/* MENTHORAI — stile pagine aziendali
   Palette derivata dal logo esistente. Inter per l'informazione, Source Serif per la voce. */

:root {
  --blu: #2B5FA5;
  --blu-scuro: #14243B;
  --verde: #4CAF50;
  --verde-testo: #2E7D32;
  --arancio: #FF9800;
  --testo: #1F2937;
  --testo-tenue: #5B6572;
  --fondo: #FFFFFF;
  --fondo-tenue: #F4F7FB;
  --linea: #DFE6EF;
  --misura: 68ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--testo);
  background: var(--fondo);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blu); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--arancio);
  outline-offset: 3px;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }
.misura { max-width: var(--misura); }

/* ---------- Testata ---------- */

.testata {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linea);
}
.testata .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 68px;
}
.marchio {
  font-weight: 700; letter-spacing: .14em; font-size: .9rem;
  color: var(--blu-scuro); text-decoration: none;
}
.menu { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.menu a {
  text-decoration: none; color: var(--testo-tenue);
  font-size: .875rem; font-weight: 500; padding: .25rem 0;
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.menu a:hover, .menu a[aria-current="page"] {
  color: var(--blu-scuro); border-bottom-color: var(--arancio);
}
.menu .piattaforma {
  background: var(--arancio); color: var(--blu-scuro); border-radius: 999px;
  padding: .5rem 1.1rem; border-bottom: none; font-weight: 700;
}
.menu .piattaforma:hover { background: #FFAD33; color: var(--blu-scuro); border-bottom-color: transparent; }

/* ---------- Apertura ---------- */

.apertura .colonne { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 3rem; align-items: center; }

.lato-video { position: relative; }
.video-apertura { width: 100%; border-radius: 16px; display: block; box-shadow: 0 14px 44px rgba(0,0,0,.35); }
.salta {
  margin-top: .7rem; background: none; border: none; cursor: pointer;
  color: #A9C4E6; font-size: .8125rem; text-decoration: underline; padding: 0;
}
.lato-video .testo-apertura { display: none; }
.lato-video.finito .video-apertura, .lato-video.finito .salta { display: none; }
.lato-video.finito .testo-apertura { display: block; animation: apparire .9s ease both; }
@keyframes apparire { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lato-video.finito .testo-apertura { animation: none; } }
.scheda-piattaforma {
  display: block; text-decoration: none; text-align: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px; padding: 1.5rem; transition: transform .15s ease;
}
.scheda-piattaforma .bottone { font-size: 1.0625rem; padding: 1rem 2.2rem; }
.scheda-piattaforma .dove { display: block; margin-top: .7rem; font-size: .8125rem; color: #A9C4E6; }
.sotto-scheda { text-align: center; margin: .9rem 0 0; font-size: .875rem; }
.sotto-scheda a { color: #A9C4E6; }
.sotto-scheda a:hover { color: #fff; }
.scheda-piattaforma:hover { transform: translateY(-3px); background: rgba(255,255,255,.1); }
.scheda-piattaforma img {
  width: 100%; border-radius: 12px; display: block; margin-bottom: 1rem;
}
.video-metodo {
  width: 100%; max-width: 760px; border-radius: 16px; display: block;
  margin: 2rem 0 0; box-shadow: 0 10px 34px rgba(20,36,59,.18);
}
@media (max-width: 860px) { .apertura .colonne { grid-template-columns: 1fr; } }

.apertura {
  background: linear-gradient(160deg, #14243B 0%, #1E3A63 55%, #2B5FA5 100%);
  color: #fff; padding: 5.5rem 0 4.5rem;
}
.apertura .citazione {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.75rem, 4.2vw, 2.9rem);
  line-height: 1.28; font-weight: 400; margin: 0 0 1.5rem;
}
.apertura .firma {
  font-size: .9375rem; color: #A9C4E6; margin: 0 0 2.5rem;
}
.apertura .sommario {
  font-size: 1.1875rem; line-height: 1.6; color: #DCE7F5;
  max-width: 56ch; margin: 0 0 2.25rem;
}
.filo { height: 3px; width: 96px; margin-bottom: 2rem;
  background: linear-gradient(90deg, var(--blu), var(--verde), var(--arancio)); }

.azioni { display: flex; gap: .875rem; flex-wrap: wrap; }
.bottone {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: .8rem 1.5rem; border-radius: 999px; font-size: .9375rem;
}
.bottone.pieno { background: var(--arancio); color: var(--blu-scuro); font-weight: 700; }
.bottone.pieno:hover { background: #FFAD33; }
.bottone.vuoto { border: 1.5px solid rgba(255,255,255,.5); color: #fff; }
.bottone.vuoto:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.bottone.scuro { background: var(--blu); color: #fff; }
.bottone.scuro:hover { background: #21497F; }

/* ---------- Sezioni ---------- */

.sezione { padding: 4.5rem 0; border-top: 1px solid var(--linea); }
.sezione.tenue { background: var(--fondo-tenue); }
.sezione > .wrap > h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.25;
  color: var(--blu-scuro); margin: 0 0 1.25rem; font-weight: 700;
  max-width: 26ch;
}
.sezione p { max-width: var(--misura); margin: 0 0 1.25rem; }
.sezione p:last-child { margin-bottom: 0; }

.richiamo {
  border-left: 4px solid var(--arancio);
  background: var(--fondo-tenue);
  border-radius: 0 12px 12px 0;
  padding: 1.1rem 1.4rem;
  max-width: var(--misura);
  margin: 1.75rem 0;
}
.richiamo p {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.125rem; line-height: 1.6; font-style: italic;
  color: var(--blu-scuro); margin: 0;
}
.occhiello {
  font-size: .875rem; color: var(--testo-tenue); margin: 0 0 .5rem;
}

/* ---------- Affermazione + riscontro ---------- */

.riscontri { display: grid; gap: 0; margin-top: 2rem; }
.riscontro {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2rem; padding: 1.75rem 0; border-top: 1px solid var(--linea);
}
.riscontro:last-child { border-bottom: 1px solid var(--linea); }
.riscontro h3 {
  margin: 0; font-size: 1.0625rem; font-weight: 650; color: var(--blu-scuro);
  line-height: 1.4;
}
.riscontro p { margin: 0; color: var(--testo-tenue); max-width: 58ch; }
.riscontro p + p { margin-top: .75rem; }

/* ---------- Dati ---------- */

.dati { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem; margin: 2rem 0 1rem; }
.dato .numero {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 2.5rem; line-height: 1; color: var(--blu); display: block;
}
.dato p { margin: .5rem 0 0; font-size: .9375rem; color: var(--testo-tenue); }
.fonte { font-size: .8125rem; color: var(--testo-tenue); margin-top: 1rem; }

/* ---------- Credo ---------- */

.credo { background: var(--blu-scuro); color: #fff; }
.credo h2 { color: #fff; }
.credo .versi {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.1875rem, 2.2vw, 1.4375rem); line-height: 1.7;
  color: #E4EDF8; max-width: 60ch; margin: 1.5rem 0 2rem;
}
.credo .versi em { color: #FFC46B; font-style: italic; }

/* ---------- Persone ---------- */

.persone { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem 2.5rem; margin-top: 2rem; }
.persona h3 { margin: 0 0 .2rem; font-size: 1.0625rem; color: var(--blu-scuro); }
.persona .ruolo { margin: 0 0 .6rem; font-size: .875rem; color: var(--verde-testo); font-weight: 600; }
.persona p { margin: 0; font-size: .9375rem; color: var(--testo-tenue); }

/* ---------- Elenco semplice ---------- */

.elenco { padding-left: 1.1rem; max-width: var(--misura); color: var(--testo-tenue); }
.elenco li { margin-bottom: .6rem; }

/* ---------- Piede ---------- */

.piede { background: var(--blu-scuro); color: #B9C7D9; padding: 3.5rem 0 2.5rem; font-size: .875rem; }
.piede a { color: #DCE7F5; }
.piede .righe { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.piede h4 { color: #fff; font-size: .875rem; margin: 0 0 .75rem; font-weight: 600; }
.piede ul { list-style: none; padding: 0; margin: 0; }
.piede li { margin-bottom: .4rem; }
.piede .legale {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14);
  line-height: 1.7; font-size: .8125rem; color: #93A5BC;
}

@media (max-width: 720px) {
  .riscontro { grid-template-columns: 1fr; gap: .75rem; }
  .apertura { padding: 3.5rem 0 3rem; }
  .sezione { padding: 3.25rem 0; }
  .testata .wrap { flex-wrap: wrap; padding-top: .75rem; padding-bottom: .75rem; }
  .menu { gap: 1rem; }
}


/* ---------- Preferenze di lettura ---------- */

:root {
  --scala: 1;
  --interlinea: 1.65;
  --spazio-lettere: 0;
  --spazio-parole: 0;
  --fam: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
body { font-family: var(--fam); font-size: calc(1.125rem * var(--scala));
  line-height: var(--interlinea); letter-spacing: var(--spazio-lettere); word-spacing: var(--spazio-parole); }

html[data-dimensione="grande"]  { --scala: 1.125; }
html[data-dimensione="massima"] { --scala: 1.3; }
html[data-spaziatura="ampia"] { --interlinea: 1.95; --spazio-lettere: .03em; --spazio-parole: .1em; }
html[data-carattere="leggibile"] { --fam: 'Atkinson Hyperlegible', Verdana, sans-serif; }
html[data-carattere="leggibile"] .apertura .citazione,
html[data-carattere="leggibile"] .credo .versi,
html[data-carattere="leggibile"] .dato .numero { font-family: 'Atkinson Hyperlegible', Verdana, sans-serif; }

.lettura-apri {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  background: var(--blu-scuro); color: #fff; border: none; cursor: pointer;
  border-radius: 999px; padding: .7rem 1.2rem; font: 600 .9375rem/1 var(--fam);
  box-shadow: 0 4px 18px rgba(20,36,59,.28);
}
.lettura-apri:hover { background: #21497F; }
.lettura {
  position: fixed; right: 1.25rem; bottom: 4.5rem; z-index: 91;
  background: #fff; border: 1px solid var(--linea); border-radius: 14px;
  box-shadow: 0 10px 34px rgba(20,36,59,.22);
  padding: 1.1rem 1.25rem; width: min(320px, calc(100vw - 2.5rem));
}
.lettura[hidden] { display: none; }
.lettura h2 { font-size: 1rem; margin: 0 0 .9rem; color: var(--blu-scuro); }
.lettura fieldset { border: none; margin: 0 0 .9rem; padding: 0; }
.lettura legend { font-size: .8125rem; color: var(--testo-tenue); margin-bottom: .35rem; padding: 0; }
.lettura .scelte { display: flex; gap: .4rem; flex-wrap: wrap; }
.lettura button.scelta {
  border: 1.5px solid var(--linea); background: #fff; color: var(--testo);
  border-radius: 999px; padding: .4rem .85rem; cursor: pointer; font: 500 .875rem/1 var(--fam);
}
.lettura button.scelta[aria-pressed="true"] {
  background: var(--blu); border-color: var(--blu); color: #fff; font-weight: 600;
}
.lettura .chiudi {
  border: none; background: none; color: var(--testo-tenue); cursor: pointer;
  font-size: .8125rem; padding: 0; text-decoration: underline;
}


/* ---------- Logo e foto ---------- */

.marchio { display: inline-flex; align-items: center; gap: .6rem; }
.marchio img { height: 36px; width: auto; display: block; }
.persona img {
  width: 96px; height: 96px; object-fit: cover; border-radius: 50%;
  display: block; margin-bottom: .8rem; border: 3px solid var(--fondo-tenue);
}

/* ---------- Collaborazioni ---------- */

.collab { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem; margin-top: 2rem; align-items: start; }
.collab .voce { border-top: 3px solid var(--linea); padding-top: 1rem; }
.collab img { height: 44px; width: auto; max-width: 260px; object-fit: contain; display: block; margin-bottom: .8rem; }
.collab h3 { margin: 0 0 .3rem; font-size: 1.0625rem; color: var(--blu-scuro); }
.collab p { margin: 0; font-size: .9375rem; color: var(--testo-tenue); }

/* ---------- Pagine documentali ---------- */

.doc h2 { margin-top: 2.5rem; }
.doc h3 { color: var(--blu-scuro); font-size: 1.125rem; margin: 1.75rem 0 .5rem; max-width: var(--misura); }
.doc .aggiornamento { font-size: .8125rem; color: var(--testo-tenue); }

/* ---------- Pagina Credo ---------- */

.credo-pagina { background: var(--blu-scuro); color: #E4EDF8; padding: 4.5rem 0; }
.credo-pagina .principio { max-width: 84ch; margin: 0 0 2.25rem; }
.credo-pagina .principio h2 {
  color: #fff; font-size: 1.1875rem; letter-spacing: .08em; margin: 0 0 .4rem; font-weight: 700;
}
.credo-pagina .principio p {
  font-family: 'Source Serif 4', Georgia, serif; font-size: 1.1875rem;
  font-style: italic; margin: 0; color: #CBDCF0;
}
.credo-pagina .chiusa {
  font-family: 'Source Serif 4', Georgia, serif; font-size: clamp(1.25rem, 2.4vw, 1.5625rem);
  font-style: italic; color: #FFC46B; max-width: 72ch; margin: 3rem 0 .5rem; line-height: 1.5;
}


/* ---------- Flusso della lezione ---------- */

.flusso { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem; margin: 2rem 0 .5rem; counter-reset: passo; }
.flusso .passo {
  background: var(--fondo); border: 1px solid var(--linea); border-radius: 14px;
  padding: 1.1rem 1.2rem; counter-increment: passo; position: relative;
}
.flusso .passo::before {
  content: counter(passo);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.75rem; color: var(--arancio); display: block; line-height: 1;
  margin-bottom: .5rem;
}
.flusso h3 { margin: 0 0 .3rem; font-size: 1rem; color: var(--blu-scuro); }
.flusso p { margin: 0; font-size: .875rem; color: var(--testo-tenue); }

/* ---------- Icone nei riscontri ---------- */

.riscontro h3 .icona {
  width: 24px; height: 24px; color: var(--blu);
  vertical-align: -5px; margin-right: .55rem;
}


/* ---------- Annuncio ---------- */

.annuncio {
  background: var(--blu-scuro); color: #E4EDF8;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--blu), var(--verde), var(--arancio)) 1;
  font-size: .9375rem;
}
.annuncio .wrap { display: flex; align-items: center; gap: 1rem; padding-top: .6rem; padding-bottom: .6rem; }
.annuncio strong { color: #FFC46B; }
.annuncio a { color: #fff; }
.annuncio .chiudi-annuncio {
  margin-left: auto; background: none; border: none; color: #A9C4E6;
  font-size: 1.25rem; line-height: 1; cursor: pointer; padding: .25rem;
}
.annuncio[hidden] { display: none; }

/* ---------- Prezzi ---------- */

.prezzi { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem; margin: 2rem 0 1rem; max-width: 640px; }
.prezzo {
  border: 1.5px solid var(--linea); border-radius: 16px; padding: 1.6rem;
  background: var(--fondo);
}
.prezzo.evidenza { border-color: var(--blu); box-shadow: 0 8px 28px rgba(43,95,165,.12); }
.prezzo h3 { margin: 0 0 .4rem; font-size: 1rem; color: var(--testo-tenue); font-weight: 600; }
.prezzo .cifra {
  font-family: 'Source Serif 4', Georgia, serif; font-size: 2.4rem; line-height: 1;
  color: var(--blu-scuro); display: block; margin-bottom: .35rem;
}
.prezzo .cifra small { font-size: 1rem; color: var(--testo-tenue); font-family: 'Inter', sans-serif; }
.prezzo p { margin: 0; font-size: .9375rem; color: var(--testo-tenue); }


/* ---------- Domande e risposte ---------- */

.domanda {
  border: 1px solid var(--linea); border-radius: 12px;
  margin-bottom: .75rem; background: var(--fondo);
  max-width: 76ch;
}
.domanda summary {
  cursor: pointer; padding: 1rem 1.25rem; font-weight: 600;
  color: var(--blu-scuro); list-style: none; position: relative;
  padding-right: 3rem; line-height: 1.45;
}
.domanda summary::-webkit-details-marker { display: none; }
.domanda summary::after {
  content: "+"; position: absolute; right: 1.25rem; top: 50%;
  transform: translateY(-50%); font-size: 1.4rem; color: var(--arancio);
  font-weight: 400; line-height: 1;
}
.domanda[open] summary::after { content: "–"; }
.domanda[open] summary { border-bottom: 1px solid var(--linea); }
.domanda .risposta { padding: 1rem 1.25rem 1.25rem; }
.domanda .risposta p { margin: 0 0 .9rem; color: var(--testo); }
.domanda .risposta p:last-child { margin-bottom: 0; }
.faq-sezione h2 { margin-top: 2.5rem; }
.faq-sezione h2:first-of-type { margin-top: 0; }
