.main-header .navigation {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1600px;
    margin: 0 auto;
    justify-content: space-between;
    padding: 0 clamp(24px, 5vw, 80px);
    gap: clamp(24px, 4vw, 64px);
}

.main-header .logo {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    flex: 0 0 180px;
}

.main-header .logo a {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    margin: 0;
}

.main-header .logo img {
    left: 0;
    top: 50%;
    width: auto;
    max-width: 100%;
    height: 80px;
    object-fit: contain;
    transform: translateY(-50%);
}

.main-header .navbar {
    min-width: 0;
}

.main-header .navbar {
    display: flex;
    flex: 1;
    justify-content: flex-end;
}

.main-header .navlinks {
    align-items: center;
    justify-content: flex-end;
    gap: clamp(4px, 1vw, 16px);
}

.main-header .navlinks > li {
    display: flex;
    align-items: center;
}

.main-header .navlinks > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px clamp(8px, 1vw, 16px);
    line-height: 1.35;
    text-align: center;
}

.main-header .navlinks > li > a[aria-label="Facebook"],
.main-header .navlinks > li > a[aria-label="LinkedIn"],
.main-header .navlinks > li > a[aria-label="Instagram"] {
    position: relative;
    width: 44px;
    padding: 12px;
}

.main-header .navlinks .logo-light,
.main-header .navlinks .logo-dark {
    position: absolute;
    left: 50%;
    top: 50%;
    margin: 0;
    transform: translate(-50%, -50%);
}

.main-header .navlinks > li > a[aria-label="Facebook"] i,
.main-header .navlinks > li > a[aria-label="LinkedIn"] i,
.main-header .navlinks > li > a[aria-label="Instagram"] i {
    font-size: 18px;
}

.main-header.scrolled {
    background-color: rgba(0, 0, 0, 0.75);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.site-footer .sct2 {
    align-items: center;
}

.site-footer .divl {
    max-width: 90%;
}

.site-footer .text {
    white-space: normal;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .main-header {
        height: 82px;
        padding: 12px 0;
    }

    .navigation {
        width: 100%;
        justify-content: space-between;
        padding: 0 20px;
        gap: 0;
    }

    .logo {
        width: 130px;
        height: 58px;
    }

    .main-header .logo {
        flex-basis: 130px;
    }

    .main-header .logo img {
        height: 58px;
    }

    .menu-toggle {
        display: flex;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 28px;
    }

    .menu-toggle .fa-xmark {
        display: none;
    }

    .menu-toggle.active .fa-bars {
        display: none;
    }

    .menu-toggle.active .fa-xmark {
        display: block;
    }

    .main-header .navbar {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 82px);
        overflow-y: auto;
        padding: 12px 20px 20px;
        background: rgba(0, 0, 0, 0.75);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

    .main-header .navbar.open {
        display: block;
    }

    .navlinks {
        flex-direction: column;
        align-items: stretch;
        white-space: normal;
        font-size: 16px;
        gap: 0;
    }

    .main-header .navlinks > li {
        justify-content: center;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .main-header .navlinks > li:last-child {
        border-bottom: 0;
    }

    .main-header .navlinks > li > a,
    .main-header .navlinks a {
        justify-content: center;
        width: 100%;
        min-height: 48px;
        margin: 0;
        padding: 12px 8px;
        line-height: 1.4;
        text-align: center;
    }

    .main-header .navlinks > li > a[aria-label="Facebook"],
    .main-header .navlinks > li > a[aria-label="LinkedIn"],
    .main-header .navlinks > li > a[aria-label="Instagram"] {
        width: 100%;
    }

    .main-header .navlinks a {
        color: #fff;
    }

    .main-header .navlinks .logo-light {
        display: none;
    }

    .main-header .navlinks .logo-dark {
        opacity: 1;
        position: static;
    }

    .video-hero {
        min-height: 620px;
        height: 100svh;
        max-height: 850px;
    }

    .linea {
        height: 560px;
    }

    .herosection {
        box-sizing: border-box;
        flex-direction: column;
        gap: 18px;
        padding: 96px 24px 28px;
    }

    .content {
        width: 90%;
        height: auto;
    }

    .testo {
        position: relative;
        width: 100%;
        max-width: 100%;
        margin: 0;
        font-size: clamp(26px, 7.5vw, 34px);
        line-height: 1.12;
    }

    .testo2 {
        position: relative;
        width: 100%;
        max-width: 100%;
        margin: 0;
        font-size: clamp(16px, 4.5vw, 20px);
        line-height: 1.35;
        padding: 12px 0;
    }

    .titl {
        padding: 32px 16px 20px;
    }

    .testtitl {
        font-size: clamp(24px, 6vw, 32px);
        text-align: center;
    }

    .slider-wrapper {
        padding: 12px 0 40px;
    }

    .sez {
        width: 100%;
        gap: 16px;
        padding: 16px 12px;
    }

    .div9 {
        flex-basis: 84%;
        height: 440px;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
    }

    .prev-btn {
        left: 8px;
    }

    .next-btn {
        right: 8px;
    }

    .sezfin {
        min-height: 440px;
    }

    .title {
        font-size: 27px;
    }

    .subtitle {
        font-size: 16px;
    }

    .newsletter-form {
        max-width: 100%;
    }

    .site-footer .sct2 {
        padding: 24px 0;
    }

    .site-footer .divl {
        width: 90%;
        height: auto;
        margin: 0;
    }

    .site-footer .sct4 {
        height: auto;
        min-height: 80px;
        padding: 20px;
    }

    .site-footer .text {
        margin: 0;
        font-size: 11px;
    }
}
