/* nunito-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/nunito-v32-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* nunito-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/nunito-v32-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* nunito-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/nunito-v32-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* nunito-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/nunito-v32-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* nunito-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/nunito-v32-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* nunito-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/nunito-v32-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Nunito', sans-serif;
}
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* === VARIABILI (Prese dai tuoi file) === */
:root {
    --color-primary: #24469D;
    --container-width: 1140px;
}

html {
  scroll-behavior: smooth;
}

/* === NAVBAR (Stile Originale) === */
.header { padding: 24px 0; position: relative; z-index: 100; }
.logo { font-weight: 700; font-size: 1.25rem; color: #000; }
.nav-main ul { display: flex; gap: 32px; }
.nav-main a { color: #555; font-weight: 500; font-size: 0.9rem; padding: 12px 18px; border-radius: 12px; border: #ffcd9a 1px solid;}
.nav-main a:hover { color: #000; background-color: #EAEAEB; font-size: 1rem; padding: 14px 20px; transition: 0.6s;}
.header-buttons { display: flex; gap: 12px; }
.btn { display: inline-block; padding: 12px 24px; border-radius: 8px; font-weight: 600; cursor: pointer; }
.btn-primary { background-color: var(--color-primary); color: #fff; border: 1px solid transparent; }
.btn-primary:hover {
    background-color: #0e2664;
}

.nav-main a.active { 
   border: #24469D 1px solid;
   font-size: 1rem;
   padding: 14px 20px;
}

.last-word {
    color: #FF7F00;
}

.first-word {
    color: #24469D;
}

.nuovo-colore {
    background: linear-gradient(90deg, #24469D, #FF7F00);
    -webkit-background-clip: text; 
    background-clip: text;         
    color: transparent;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.img-logo {
    width: 128px;
    height: 128px;
}

.aurora-background {
  position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px); 
    opacity: 1; 
}

.blob-1 {
    width: 40vw;
    height: 40vw;
    bottom: 45vh;
    left: 5vw;
    background: radial-gradient(circle, #ffcd9a 0%, #FF7F00 100%);
}

.blob-2 {
    width: 35vw;
    height: 35vw;
    bottom: 5vh;
    right: 5vw;
    background: radial-gradient(circle, #b0baf5 0%, #7b8ceb 100%);
}

.white-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 58vh;
    background: linear-gradient(
        to bottom, 
        #ffffff 0%, 
        #ffffff 35%, 
        rgba(255,255,255,0.5) 75%,
        rgba(255,255,255,0) 100%
    );
    z-index: 1; 
    pointer-events: none;
}


/* === FOOTER (Stile Originale) === */
.footer { padding: 80px 0 60px 0; border-top: 1px solid #EAEAEB; background: #fff; margin-top: auto; }
.footer .container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 40px; }
.footer-col h4 { font-size: 1rem; font-weight: 600; margin-bottom: 20px; color: #1a1a1a; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a { font-size: 0.9rem; color: #555; }
.footer-col ul a:hover { color: #000; }
.copyright { font-size: 0.85rem; color: #777; margin-top: 15px; }

@media (max-width: 992px) { 
    .footer-grid { grid-template-columns: 1fr 1fr; } 
    .footer-col:first-child { grid-column: 1 / -1; text-align: center; }
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; text-align: center; } }



.hamburger {
    display: none; /* Nascosto di default */
    cursor: pointer;
    z-index: 2000; /* Molto alto per stare sopra al menu aperto */
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: #000;
}


@media (min-width: 993px) {
    
    .nav-wrapper {
        display: contents;
    }
}

@media (max-width: 992px) {
    
    .header {
        min-height: 100px; 
        display: flex;     
        align-items: center;
    }

    
    .header .container {
        display: flex !important;
        flex-direction: row !important; 
        justify-content: space-between !important;
        align-items: center;
        width: 100%;
        padding: 0 20px; 
    }

    
    .img-logo {
        width: 90px;
        height: auto;
    }

    .hamburger {
        display: block;
        z-index: 2000;
    }

    .nav-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background-color: #ffffff;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.4s ease;
        z-index: 1000;
    }

    .nav-wrapper.active {
        right: 0;
    }

    .nav-main {
        display: block !important;
        width: 100%;
    }

    .nav-main ul {
        flex-direction: column;
        align-items: center;
        gap: 25px;
        padding: 0;
    }

    .nav-main a {
        font-size: 1.2rem;
        color: #000;
        display: block;
    }

    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    main {
        padding-top: 60px;
    }

    .content-hero2 {
        margin-top: 20px;
    }
}