/* Base del sito SAIT: font, colori, titoli, pulsanti e blocchi comuni a tutte le pagine. */
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --blu: #0383cb;
  --scuro: #111723;
  --testo: #15202c;
  --chiaro: #fafafa;
  --bianco: #fff;
  --contenitore: 1176px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bianco);
  color: var(--testo);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video, iframe, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }
.salti-contenuto { position: absolute; left: -9999px; }
.salti-contenuto:focus { left: 10px; top: 10px; z-index: 100; background: #fff; padding: 8px 12px; }

.contenitore { width: 100%; max-width: var(--contenitore); margin: 0 auto; }

/* Etichetta tonda sopra i titoli */
.etichetta {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--chiaro);
  border-radius: 100px;
  background: var(--blu);
  color: var(--bianco);
  font-size: 14px;
  line-height: 16.8px;
  font-weight: 600;
  letter-spacing: -0.28px;
  text-transform: uppercase;
}
.etichetta--chiara { background: var(--chiaro); color: var(--scuro); }

/* Titoli di sezione */
.titolo-sezione {
  color: var(--scuro);
  font-size: 40px;
  line-height: 48px;
  font-weight: 600;
  letter-spacing: -1.2px;
}
.titolo-sezione span { color: var(--blu); }
.introduzione { font-size: 18px; line-height: 25.6px; }

.testata-sezione { text-align: center; }
.testata-sezione .titolo-sezione { max-width: 750px; margin: 14px auto 0; }
.testata-sezione .introduzione { max-width: 700px; margin: 15px auto 0; }

/* Pulsanti */
.pulsante {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 16px 22px;
  border: 0;
  border-radius: 10px;
  background: var(--blu);
  color: var(--bianco);
  font-size: 18px;
  line-height: 18px;
  font-weight: 500;
  cursor: pointer;
}
.pulsante--chiaro { background: var(--bianco); color: var(--scuro); }
.pulsante svg { width: 18px; height: 18px; flex: none; }

/* Icone */
.icona { width: 1em; height: 1em; fill: currentColor; flex: none; }
.icona-linea { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 1200px) {
  .contenitore { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 767px) {
  .contenitore { padding-left: 20px; padding-right: 19px; }
  .etichetta { font-size: 12px; line-height: 14.4px; letter-spacing: -0.24px; }
  .titolo-sezione { font-size: 28px; line-height: 33.6px; letter-spacing: -0.84px; }
  .introduzione { font-size: 16px; line-height: 22.4px; }
  .testata-sezione .titolo-sezione { margin-top: 14px; }
  .pulsante { padding: 12px 16px; font-size: 15px; line-height: 15px; }
  .pulsante svg { width: 15px; height: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Blocco «Contatti e recapiti» (in fondo a quasi tutte le pagine) */
.contatti-recapiti { padding: 90px 0; }
.contatti-griglia { display: grid; grid-template-columns: 509px 568px; justify-content: space-between; align-items: center; padding-left: 10px; padding-right: 10px; }
.contatti-testo .titolo-sezione { margin-top: 16px; }
.contatti-testo .introduzione { margin-top: 15px; }
.recapiti { display: grid; gap: 15px; margin-top: 26px; }
.recapiti li { display: flex; align-items: center; gap: 13px; padding-left: 3px; }
.recapiti .icona { width: 24px; height: 24px; color: var(--blu); }
.recapiti a, .recapiti span { padding-left: 0; font-size: 18px; line-height: 25.6px; font-weight: 600; color: var(--scuro); }
.recapiti a:hover { color: var(--blu); }
.mappa { width: 100%; height: 400px; border: 0; }
@media (max-width: 1024px) {
  .contatti-griglia { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 767px) {
  .contatti-recapiti { padding: 70px 0; }
  .contatti-griglia { padding-left: 20px; padding-right: 19px; gap: 41px; }
  .contatti-testo .titolo-sezione { margin-top: 14px; }
  .recapiti { gap: 14px; }
  .recapiti li { gap: 12px; }
  .recapiti .icona { width: 22px; height: 22px; }
  .recapiti a, .recapiti span { font-size: 16px; line-height: 22.4px; }
  .mappa { height: 350px; }
}

/* Colori del blocco recapiti nelle sezioni blu */
.recapiti--chiari .icona { color: var(--bianco); }
.recapiti--chiari a, .recapiti--chiari span { color: var(--bianco); }
.mappa--grande { height: 450px; }

/* Animazioni (comandate da animazioni.js; senza JavaScript o con «riduci movimento» non cambia niente) */
.anima-js .anima:not(.anima--entra) { opacity: 0; }
.anima-js .anima--entra { animation: 1s ease var(--ritardo, 0ms) backwards; }
.anima-js .anima--su.anima--entra { animation-name: anima-su; }
.anima-js .anima--destra.anima--entra { animation-name: anima-destra; }
.anima-js .anima--zoom.anima--entra { animation-name: anima-zoom; }
.anima-js .anima--ruota.anima--entra { animation-name: anima-ruota; animation-duration: 1.2s; }
@keyframes anima-su { from { opacity: 0; transform: translateY(min(100%, 90px)); } }
@keyframes anima-destra { from { opacity: 0; transform: translateX(60px); } }
@keyframes anima-zoom { from { opacity: 0; transform: scale(0.4); } }
@keyframes anima-ruota { from { opacity: 0; transform: rotate(-200deg); } }

/* Effetti al passaggio del mouse, come nel sito di oggi */
.pulsante, .invia { transition: background-color 0.3s ease, color 0.3s ease; }
.pulsante:hover, .pulsante:focus-visible, .invia:hover, .invia:focus-visible { background: #036da9; color: var(--bianco); }
