/* ---------------------------------------------------------------------------
   Foglio di stile del sito maketransparent.ai

   È l'estrazione del blocco <style> che tools.html tiene al proprio interno.
   tools.html NON è stato modificato: continua a portarsi dietro la sua copia,
   così resta leggibile anche se caricata da sola. Se si cambia un colore qui,
   va cambiato anche là — sono due copie della stessa cosa, di proposito.

   I colori sono gli stessi dell'intestazione del sito (header.html): lo sfondo
   azzurro #a6d1fc e il blu dei link #004897.
   --------------------------------------------------------------------------- */

:root {
  --azzurro: #a6d1fc;
  --blu: #004897;
  --blu-scuro: #2c4a78;
  --teal: #4fb8c4;
  --sfondo: #f6fafe;
  --testo: #1a2436;
  --testo-tenue: #4a5670;
  --bordo: #dbe6f4;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  margin: 0;
  color: var(--testo);
  background: var(--sfondo);
  line-height: 1.6;
}

.contenuto * { box-sizing: border-box; }
.contenuto { max-width: 860px; margin: 0 auto; padding: 0 20px 40px; }
.contenuto section { margin-top: 64px; }

/* --- apertura di pagina --- */

.hero { margin-top: 48px; }
.hero h1 {
  font-size: 2rem; line-height: 1.25; color: var(--blu);
  margin: 0 0 18px; letter-spacing: -0.01em;
}
.hero p { font-size: 1.12rem; color: var(--testo-tenue); margin: 0 0 14px; max-width: 62ch; }
.hero strong { color: var(--testo); }

.payoff {
  display: inline-block; margin: 0 0 14px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal);
}

.contenuto h2 { color: var(--blu); font-size: 1.35rem; margin: 0 0 8px; letter-spacing: -0.01em; }
.sottotitolo { color: var(--testo-tenue); margin: 0 0 26px; max-width: 64ch; }

/* --- schede e griglie --- */

.scheda {
  background: white; border-radius: 16px; padding: 28px 32px;
  box-shadow: 0 2px 16px rgba(44, 74, 120, 0.08);
}

.servizi { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.servizio {
  background: white; border-radius: 16px; padding: 24px;
  box-shadow: 0 2px 16px rgba(44, 74, 120, 0.08);
  border-top: 4px solid var(--teal);
  display: flex; flex-direction: column;
}
.servizio.futuro { border-top-color: #c7d6ea; }
.servizio h3 { margin: 0 0 6px; color: var(--blu); font-size: 1.05rem; }
.servizio p { margin: 0 0 16px; font-size: 0.95rem; color: var(--testo-tenue); }
.servizio .stato {
  margin-top: auto; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.stato.attivo { color: #1f7a52; }
.stato.preparazione { color: #8a6d1f; }

.stato.test { color: #2c5f9e; }

.passi { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.passo { background: white; border: 1px solid var(--bordo); border-radius: 12px; padding: 20px; }
.passo .numero {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--blu); color: white;
  font-size: 0.82rem; font-weight: 700; margin-bottom: 10px;
}
.passo h4 { margin: 0 0 6px; font-size: 0.98rem; color: var(--blu); }
.passo p { margin: 0; font-size: 0.92rem; color: var(--testo-tenue); }

/* --- elenchi --- */

ul.pulita { list-style: none; padding: 0; margin: 0; }
ul.pulita li { padding: 12px 0 12px 26px; border-bottom: 1px solid #eef3fa; position: relative; }
ul.pulita li:last-child { border-bottom: none; }
ul.pulita li::before {
  content: ""; position: absolute; left: 4px; top: 21px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal);
}
ul.limiti li::before { background: #d99a3c; }
ul.pulita strong { color: var(--testo); }

.evidenze { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 18px; }
.evidenza { border: 1px solid var(--bordo); border-radius: 12px; padding: 16px 18px; background: #fbfdff; }
.evidenza .etichetta { font-weight: 700; color: var(--blu); font-size: 0.95rem; }
.evidenza p { margin: 6px 0 0; font-size: 0.9rem; color: var(--testo-tenue); }

.nota {
  border-left: 3px solid var(--teal); padding: 4px 0 4px 18px;
  margin: 24px 0 0; color: var(--testo-tenue); font-size: 0.95rem;
}

/* --- chiusura in fondo alla pagina --- */

.chiusura {
  background: var(--blu-scuro); color: white;
  border-radius: 16px; padding: 36px 32px; text-align: center;
}
.chiusura h2 { color: white; }
.chiusura p { color: #cfe0f5; max-width: 52ch; margin: 0 auto 22px; }
.chiusura a.bottone {
  display: inline-block; background: white; color: var(--blu);
  padding: 12px 28px; border-radius: 8px; text-decoration: none; font-weight: 700;
}
.chiusura a.bottone:hover { background: #eaf3ff; }
.chiusura .piccolo { font-size: 0.85rem; color: #a9c4e4; margin-top: 18px; }
.chiusura .piccolo a { color: #cfe0f5; }

/* ---------------------------------------------------------------------------
   Aggiunte rispetto a tools.html — servono alle pagine nuove
   --------------------------------------------------------------------------- */

/* Cifre con la fonte attaccata. La fonte non è un dettaglio tipografico:
   è la ragione per cui il numero si può scrivere. */
.cifre { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.cifra {
  background: white; border-radius: 14px; padding: 22px 24px;
  box-shadow: 0 2px 16px rgba(44, 74, 120, 0.08);
  border-left: 4px solid var(--teal);
}
.cifra .numero-grande {
  display: block; font-size: 2rem; font-weight: 700;
  color: var(--blu); line-height: 1.1; letter-spacing: -0.02em;
}
.cifra p { margin: 8px 0 0; font-size: 0.94rem; color: var(--testo-tenue); }
.cifra .fonte { display: block; margin-top: 10px; font-size: 0.78rem; color: #7c879b; }

/* Cronologia verticale — la usa timing.html per l'AI Act */
.cronologia { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; }
.cronologia::before {
  content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px;
  width: 2px; background: var(--bordo);
}
.cronologia li { position: relative; padding: 0 0 22px 0; }
.cronologia li:last-child { padding-bottom: 0; }
.cronologia li::before {
  content: ""; position: absolute; left: -25px; top: 7px;
  width: 12px; height: 12px; border-radius: 50%;
  background: white; border: 3px solid var(--teal);
}
.cronologia li.passata::before { border-color: var(--bordo); }
.cronologia .quando { font-weight: 700; color: var(--blu); display: block; }
.cronologia .cosa { color: var(--testo-tenue); font-size: 0.95rem; }

/* Persone — la usa enterprise.html */
.persone { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.persona {
  background: white; border-radius: 16px; padding: 24px 26px;
  box-shadow: 0 2px 16px rgba(44, 74, 120, 0.08);
}
.persona h3 { margin: 0; color: var(--blu); font-size: 1.08rem; }
.persona .ruolo {
  display: block; margin: 2px 0 12px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--teal);
}
.persona p { margin: 0; font-size: 0.93rem; color: var(--testo-tenue); }

/* Due colonne a confronto — la usa governance.html */
.confronto { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.colonna { border-radius: 16px; padding: 24px 26px; }
.colonna.tenue { background: white; border: 1px solid var(--bordo); }
.colonna.forte { background: var(--blu-scuro); color: white; }
.colonna h3 { margin: 0 0 12px; font-size: 1.05rem; color: var(--blu); }
.colonna.forte h3 { color: white; }
.colonna.forte ul.pulita li { border-bottom-color: rgba(255,255,255,0.14); color: #dce8f8; }
.colonna.forte ul.pulita li::before { background: var(--azzurro); }

/* Citazione a tutta larghezza */
.citazione {
  border-left: 4px solid var(--teal); padding: 6px 0 6px 24px; margin: 0;
  font-size: 1.15rem; line-height: 1.5; color: var(--testo);
}
.citazione footer { margin-top: 10px; font-size: 0.9rem; color: var(--testo-tenue); }

/* Elenco delle fonti in fondo alla pagina */
.fonti { font-size: 0.85rem; color: #7c879b; }
.fonti h3 { font-size: 0.85rem; color: var(--testo-tenue); margin: 0 0 8px; text-transform: uppercase; letter-spacing: 0.06em; }
.fonti ul { margin: 0; padding-left: 18px; }
.fonti li { margin-bottom: 4px; }

@media (max-width: 560px) {
  .hero h1 { font-size: 1.55rem; }
  .scheda { padding: 22px; }
  .cifra .numero-grande { font-size: 1.7rem; }

  /* Gli a-capo dei titoli sono decisi per la riga lunga del desktop. Su uno
     schermo stretto spezzano la frase nel punto sbagliato: lì lasciamo che
     vada a capo da sola. */
  .hero h1 br { display: none; }
}
