:root {
    --ink: #172b40;
    --ink-2: #273d52;
    --orange: #f57c00;
    --orange-dark: #d96300;
    --paper: #fff;
    --mist: #f5f7f9;
    --line: #dce3e8;
    --text: #44515e;
    --shadow: 0 18px 50px rgba(23, 43, 64, .10);
    --radius: 18px;
    --max: 1180px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    color: var(--text);
    line-height: 1.65;
    background: var(--paper)
}

img {
    max-width: 100%;
    height: auto
}

a {
    color: inherit
}

.skip {
    position: absolute;
    left: -9999px
}

.skip:focus {
    left: 1rem;
    top: 1rem;
    z-index: 100;
    background: #fff;
    padding: .75rem 1rem;
    border: 2px solid var(--orange)
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(220, 227, 232, .9)
}

.nav-wrap {
    max-width: var(--max);
    margin: auto;
    padding: .82rem 1.3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem
}

.brand {
    text-decoration: none;
    font-weight: 800;
    letter-spacing: .02em;
    color: var(--ink);
    font-size: 1.25rem
}

.brand-dot {
    color: var(--orange)
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.25rem
}

.nav a {
    text-decoration: none;
    font-weight: 600;
    font-size: .94rem
}

.nav a:hover,
.nav a:focus {
    color: var(--orange)
}

.lang {
    display: flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden
}

.lang a {
    padding: .28rem .55rem;
    font-size: .8rem
}

.lang .active {
    background: var(--ink);
    color: #fff
}

.menu-toggle {
    display: none;
    border: 0;
    background: none;
    font-size: 1.45rem;
    color: var(--ink)
}

.hero {
    background: #e7eef3
}

/*MS .hero picture,
.hero img {
    display: block;
    width: 100%
}

.hero img {
    aspect-ratio: 16/9;
    object-fit: cover
}*/

.hero picture {
    display: block;
    width: 90%;          /* RIDUCI QUESTO VALORE per stringere l'immagine (es. 85%, 80%) */
    max-width: var(--max); /* Non farla diventare più larga del contenuto del sito */
    margin: 0 auto;       /* Centratura aggiuntiva */
    
    /* Aggiunge una leggera ombra per staccare l'immagine dallo sfondo sfumato */
    box-shadow: 0 10px 40px rgba(23, 43, 64, 0.08); 
    border-radius: 8px; /* Opzionale: arrotonda leggermente gli angoli dell'immagine */
    overflow: hidden;
}

.hero img {
    display: block;
    width: 100%; /* L'immagine occupa tutto il suo contenitore 'picture' */
    aspect-ratio: 16/9; /* Mantiene la proporzione */
    object-fit: cover;
}

.hero-title {
      font-family: system-ui, -apple-system, sans-serif;
      font-size: 2.2rem;
      font-weight: 700;
      color: #111827;
      line-height: 2.2;
      padding-top: 2rem; /* Spazio in alto per far respirare la parola fluttuante */
      overflow: visible;
  }
  
  /* Punto di ancoraggio a larghezza zero esattamente nello spazio tra le parole */
  .insertion-anchor {
      position: relative;
      display: inline-block;
      width: 0;
  }

  /* La parola fluttuante che sale sopra la riga */
  .floating-insertion {
      position: absolute;
      bottom: 1.5em; /* Altezza sopra la linea di testo */
      left: 50%;
      transform: translateX(-50%) rotate(-5deg);
      
      font-family: 'Caveat', cursive, sans-serif;
      font-size: 1.8rem;
      font-weight: 700;
      color: #1d4ed8; /* Blu inchiostro */
      white-space: nowrap;
      pointer-events: none;
      
      display: flex;
      flex-direction: column;
      align-items: center;
      line-height: 1;
  }

  /* Il simbolo che punta verso il basso nello spazio corretto */
  .floating-insertion .caret-down {
      font-family: monospace;
      font-size: 0.85rem;
      font-weight: bold;
      margin-top: -2px;
  }

.hero-action {
    display: flex;
    justify-content: center;
    padding: 0 1rem;
    transform: translateY(-50%)
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    border: 0;
    border-radius: 999px;
    background: var(--orange);
    color: #fff;
    text-decoration: none;
    font-weight: 750;
    padding: .92rem 1.4rem;
    box-shadow: 0 12px 30px rgba(245, 124, 0, .3);
    cursor: pointer
}

.button:hover,
.button:focus {
    background: var(--orange-dark);
    transform: translateY(-1px)
}

.button.secondary {
    background: #fff;
    color: var(--ink);
    box-shadow: none;
    border: 1px solid var(--line)
}

.section {
    padding: 5.25rem 1.3rem
}

.section.alt {
    background: var(--mist)
}

.container {
    max-width: var(--max);
    margin: auto
}

.eyebrow {
    color: var(--orange-dark);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: .14em;
    font-size: .76rem
}

.section h1,
.section h2,
.section h3 {
    color: var(--ink);
    line-height: 1.18
}

.section h1 {
    font-size: clamp(2rem, 5vw, 3.5rem)
}

.section h2 {
    font-size: clamp(1.8rem, 4vw, 2.65rem);
    margin: .35rem 0 1rem
}

.lead {
    font-size: clamp(1.05rem, 2vw, 1.24rem);
    max-width: 820px
}


.about-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 3.4rem;
    align-items: start
}

.principles {
    background: var(--ink);
    color: #eaf0f4;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow)
}

.principles h3 {
    color: #fff;
    margin-top: 0
}

.principles ul {
    padding-left: 1.2rem;
    margin-bottom: 0
}

.principles li::marker {
    color: var(--orange)
}

.training-box {
    margin-top: 3rem;
    max-width: 900px;
}

.training-lead {
    font-size: clamp(1.05rem, 2vw, 1.24rem);
    max-width: fit-content;
}

.training-action {
    margin-top: 1.5rem; /* Crea spazio tra il testo e il pulsante */
    display: flex;
    justify-content: center; /* Oppure center se preferisci il pulsante centrato */
}


.quote {
    border-left: 4px solid var(--orange);
    padding: .25rem 0 .25rem 1.2rem;
    color: var(--ink);
    font-weight: 650;
    font-size: 1.1rem;
    margin-top: 1.8rem
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2.3rem
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.7rem;
    box-shadow: 0 8px 25px rgba(23, 43, 64, .05)
}

.card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px)
}

.card h3 {
    margin: .45rem 0 .75rem
}

.icon {
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 12px;
    background: #fff0e3;
    color: var(--orange-dark);
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 1.2rem
}

.card ul {
    padding-left: 1.15rem;
    margin-bottom: 0
}

.card li::marker {
    color: var(--orange)
}



.card {
    display: flex;
    flex-direction: column;
}

.card-footer-link {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08); /* linea sottile divisoria, opzionale */
    font-size: 0.9rem;
}

.card-footer-link a {
    font-weight: 600;
    text-decoration: none;
}

.card-footer-link a:hover {
    text-decoration: underline;
}







.method {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    counter-reset: step;
    margin-top: 2rem
}

.step {
    counter-increment: step;
    border-top: 3px solid var(--orange);
    padding: 1.2rem 1rem;
    background: #fff
}

.step:before {
    content: "0" counter(step);
    color: var(--orange-dark);
    font-weight: 850
}

.step h3 {
    margin: .35rem 0
}

.cta {
    padding: 5rem 1.3rem;
    background: linear-gradient(135deg, var(--ink), #28445f);
    color: #fff;
    text-align: center
}

.cta h2 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
    margin: .2rem auto 1rem
}

.cta p {
    max-width: 720px;
    margin: 0 auto 1.8rem;
    color: #dbe6ee
}

.cta .button {
    box-shadow: none
}

.legal {
    max-width: 900px
}

.legal h1,
.legal h2 {
    color: var(--ink)
}

.notice {
    background: #fff6ed;
    border-left: 4px solid var(--orange);
    padding: 1rem 1.2rem;
    border-radius: 8px
}

.site-footer {
    background: #0f1e2c;
    color: #cad5de;
    padding: 2.3rem 1.3rem
}

.footer-row {
    max-width: var(--max);
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap
}

.footer-links {
    display: flex;
    gap: 1.1rem;
    flex-wrap: wrap
}

.footer-links a:hover {
    color: #fff
}

.small {
    font-size: .88rem
}

.noscript {
    padding: 1rem;
    background: #fff3cd;
    color: #5f4500;
    text-align: center
}

@media(max-width:900px) {
    .cards {
        grid-template-columns: repeat(2, 1fr)
    }

    .about-grid {
        grid-template-columns: 1fr
    }

    .method {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:680px) {
    .menu-toggle {
        display: block
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 1rem 1.3rem;
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: flex-start
    }

    .nav.open {
        display: flex
    }

    .cards,
    .method {
        grid-template-columns: 1fr
    }

    .section {
        padding: 4rem 1.1rem
    }

    .hero img {
        aspect-ratio: 4/3
    }

    .hero-action {
        transform: none;
        padding: 1.25rem
    }

    .button {
        width: 100%
    }
}

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

/* Mantova: foschia localizzata sulla skyline, senza alterare logo e testi */
/*MS .hero {
    position: relative;
    overflow: hidden
}*/

/* --- Aggiornamento per Hero più piccolo con bande sfumate --- */

.hero {
    position: relative;
    overflow: hidden;
    /* Sfondo principale dell'hero (leggero azzurro per la transizione) */
    background: #e7eef3; 
    
    /* Crea un gradiente di sfondo per le bande laterali che sfuma */
    /* Verso il bianco della pagina ai bordi e verso l'azzurro al centro */
    background: radial-gradient(circle, #e7eef3 0%, #fff 100%);
    
    display: flex;
    justify-content: center; /* Centra l'immagine orizzontalmente */
    align-items: center;    /* Centra l'immagine verticalmente (se c'è altezza) */
    
    padding: 2rem 0; /* Aggiunge un po' di respiro sopra e sotto */
}

.hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 2;
    left: 45%;
    right: 19%;
    top: 40%;
    height: 20%;
    /* --- CORNICE E SFONDO DI DEBUG --- */
    /*border: 2px dashed #ff0055;
    background: rgba(255, 0, 85, 0.15);*/
    /* ------------------------------------------------------------- */
    background: rgba(235, 243, 248, .11);
    backdrop-filter: blur(3.0px);
    -webkit-backdrop-filter: blur(3.0px);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 100%);
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 100%)
}

/* Aggiornamento per Mobile per l'hero ridotto */
@media(max-width: 760px) {
    .hero {
        padding: 1.5rem 0;
    }
    .hero picture {
        width: 95%; /* Leggermente più larga su mobile per non perdere troppi dettagli */
        border-radius: 6px;
    }
    
    /* Ricalibrazione della foschia per mobile */
    .hero::after {
        left: 48%; 
        right: 12%;
        top: 41%;
        height: 16%;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }
}

.spoc {
    margin-top: 1.6rem;
    padding-top: 1.35rem;
    border-top: 1px solid rgba(255, 255, 255, .18);
}
.spoc .eyebrow {
    color: #ff9a3c;
}
.spoc h3 {
    color: #fff;
    font-size: 1.15rem;
    margin: .2rem 0 .55rem;
}
.spoc p {
    margin: 0;
    color: #eaf0f4;
    font-size: .96rem;
    line-height: 1.55;
}
.spoc strong {
    color: #ff9a3c;
}
.manifesto-preview {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 2.4rem;
    align-items: start
}

.manifesto-points {
    display: grid;
    gap: .85rem
}

.manifesto-point {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1rem 1.15rem
}

.manifesto-point strong {
    color: var(--ink)
}

.promise {
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--ink);
    line-height: 1.2
}

.manifesto article {
    max-width: 900px
}

.manifesto h2 {
    margin-top: 2.5rem
}

.formula {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem
}

.formula>div {
    padding: 1.35rem;
    background: var(--mist);
    border-top: 4px solid var(--orange)
}

@media(max-width:760px) {

    .manifesto-preview,
    .formula {
        grid-template-columns: 1fr
    }

    .hero::after {
        left: 32%;
        right: 0;
        top: 38%;
        height: 28%;
        backdrop-filter: blur(.8px);
        -webkit-backdrop-filter: blur(.8px)
    }
}