    html,
    body {
        font-family: 'Barlow', sans-serif;
        height: 100%;
        margin: 0;
        display: flex;
        flex-direction: column;
        background-color: transparent;
        overflow-x: hidden;
        background-color: #559b43;
        color: black;
    }

    .page-container {
        min-height: 100vh;
        display: grid;
        grid-template-rows: auto 1fr auto;
        grid-template-areas:
            "header"
            "main"
            "footer";
    }

    .header {
        grid-area: header;
    }

    .main-content {
        grid-area: main;
    }

    .footer {
        grid-area: footer;
    }

    .footer-black {
        background: black;
        color: white;
        padding: 30px 0;
    }



    .footer ul {
        list-style: none;
    }

    .footer li {
        border-bottom: 1px solid white;
        padding: 4px 0;
        margin: 6px 0;
    }

    .footer a {
        color: white;
        text-decoration: none;
    }

    .footer a:hover {
        color: white;
        text-decoration: underline;
    }

    .footer-logo {
        margin-right: auto;
    }

    .navbar {
        background-color: #559b43;
    }

    .navbar-brand {
        margin: 0 20px;
    }

    .page-header {
        padding: 2rem 1rem;
        text-align: center;
    }

    .page-header h3 {
        color: #ace79b;
    }

    .logo {
        max-height: 80px;
        margin-bottom: 1.5rem;
    }

    .content-section {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1rem;
    }

    .content-box {
        border-radius: 10px;
        padding: 2rem;
        max-width: 600px;
        width: 100%;
        text-align: center;
    }

    .content-box h4,
    h2.text-light,
    h4.text-light {
        color: #ace79b !important;
    }

    .button-container {
        text-align: center;
        padding: 2rem 1rem;
    }

    .btn-primary {
        background: #ace79b;
        border: 0;
        color: #559b43;
        font-weight: bold;

        --bs-btn-color: #559b43;
        --bs-btn-bg: #ace79b;
        --bs-btn-border-color: #559b43;
        --bs-btn-hover-color: #fff;
        --bs-btn-hover-bg: #559b43;
        --bs-btn-hover-border-color: #559b43;
        --bs-btn-focus-shadow-rgb: 49, 132, 253;
        --bs-btn-active-color: #fff;
        --bs-btn-active-bg: #559b43;
        --bs-btn-active-border-color: #559b43;
        --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
        --bs-btn-disabled-color: #fff;
        --bs-btn-disabled-bg: #559b43;
        --bs-btn-disabled-border-color: #559b43;
    }

    h2,
    h4 {
        color: #559b43;
        font-weight: bold;
    }

    .equal-height-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1rem;
        align-items: stretch;
    }

    .equal-height-grid .col {
        display: flex;
        flex-direction: column;
    }

    .equal-height-grid .card {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .equal-height-grid .card-body {
        flex: 1;
    }


    /* Stile base del navbar collapse */
    .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #559b43;
        z-index: 1000;
        padding: 0rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;

        /* Inizialmente nascosto */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-100%);

        /* Transizione fluida */
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    /* Quando il menu è visibile */
    .navbar-collapse.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Stato durante l'apertura/chiusura (Bootstrap collapsing) */
    .navbar-collapse.collapsing {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #559b43;
        z-index: 1000;
        height: 100% !important;
        display: flex;
        flex-direction: column;
        justify-content: space-between;

        /* Animazione durante il collasso */
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    /* Header del menu fullscreen */
    .fullscreen-menu-header {
        display: flex;
        width: 100%;
        padding: 10px 0;
        justify-content: space-between;
        align-items: center;

        /* Animazione di entrata */
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.5s ease-out;
        transition-delay: 0.1s;
    }

    .navbar-collapse.show .fullscreen-menu-header {
        opacity: 1;
        transform: translateY(0);
    }

    /* Logo nel menu */
    .fullscreen-menu-logo img {
        margin-left: 30px;
        height: 30px;
    }

    /* Pulsante di chiusura */
    .close-navbar-toggler {
        width: 45px;
        height: 45px;
        padding: 0;
        margin: 0 30px;
        font-size: 2rem;
        background: rgba(0, 0, 0, 0.1);
        border: none;
        color: black;
        border-radius: 50%;
        z-index: 1001;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .close-navbar-toggler:hover {
        background: rgba(0, 0, 0, 0.2);
    }

    /* Stile dei link di navigazione */
    .navbar-collapse .navbar-nav {
        text-align: center;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 0rem;
        width: 30vw;
    }

    .navbar-collapse a.nav-link {
        font-size: 1.8rem;
        color: black !important;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 1);
        transition: all 0.4s ease-out;
        text-transform: uppercase;
        font-weight: 600;
        font-size: 2.2em;
        opacity: 0;
        transform: translateX(-30px);
    }

    .navbar-collapse .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #ace79b !important;
        transform: translateX(0) scale(1.05);
    }

    /* Animazione a cascata per i link */
    .navbar-collapse.show .nav-link:nth-child(1) {
        animation: slideInLeft 0.5s ease-out 0.2s forwards;
    }

    .navbar-collapse.show .nav-link:nth-child(2) {
        animation: slideInLeft 0.5s ease-out 0.3s forwards;
    }

    .navbar-collapse.show .nav-link:nth-child(3) {
        animation: slideInLeft 0.5s ease-out 0.4s forwards;
    }

    .navbar-collapse.show .nav-link:nth-child(4) {
        animation: slideInLeft 0.5s ease-out 0.5s forwards;
    }

    .navbar-collapse.show .nav-link:nth-child(5) {
        animation: slideInLeft 0.5s ease-out 0.6s forwards;
    }

    .navbar-collapse.show .nav-link:nth-child(6) {
        animation: slideInLeft 0.5s ease-out 0.7s forwards;
    }

    /* Footer del menu */
    .fullscreen-menu-footer {
        width: 100%;
        text-align: center;
        color: black;
        padding: 10px 0;
        font-size: 0.9rem;

        /* Animazione di entrata */
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.5s ease-out;
        transition-delay: 0.8s;
    }

    .navbar-collapse.show .fullscreen-menu-footer {
        opacity: 1;
        transform: translateY(0);
    }

    /* Nascondi il toggler originale quando il menu è aperto */
    .navbar-collapse.show+.navbar-toggler {
        display: none;
    }

    /* Overlay per bloccare l'interazione con il contenuto sottostante */
    .navbar-collapse::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(85, 155, 67, 0.95);
        backdrop-filter: blur(5px);
        z-index: -1;
    }

    /* Animazioni personalizzate */
    @keyframes slideInLeft {
        from {
            opacity: 0;
            transform: translateX(-30px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Miglioramento del toggler hamburger */
    .navbar-toggler {
        border: none;
        padding: 0.5rem;
        transition: all 0.3s ease;
    }

    .navbar-toggler:hover {
        transform: scale(1.2);
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }



    /* Overlay per la transizione */
    .page-transition-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        background-image: url("/function/img/loader.png");
        background-size: cover;
        background-position: center center;
        backdrop-filter: blur(10px);
        z-index: 9999;
        opacity: 1;
        /* CAMBIATO: inizia visibile */
        visibility: visible;
        /* CAMBIATO: inizia visibile */
        transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .page-transition-overlay.hidden {
        opacity: 0;
        visibility: hidden;
    }

    /* Spinner opzionale */
    .loading-spinner {
        width: 40px;
        height: 40px;
        border: 3px solid rgba(255, 255, 255, 0.3);
        border-top: 3px solid #fff;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }



    /* Responsive adjustments */
    @media (max-width: 768px) {

        .navbar-collapse .navbar-nav {
            width: 90vw;
        }

        .content-box {
            padding: 1.5rem;
        }

        
        .footer-black {
            margin-top:20px;
        }
        .footer-logo {
            margin: 0 auto;
            text-align:center;
        }
    }