body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    overflow: hidden;
}

/* ── Immagine di sfondo fullscreen con LQIP blur-up ── */
picture.background-img {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: block;
    overflow: hidden;
}

picture.background-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--lqip, #222) center / cover no-repeat;
    filter: blur(20px);
    transform: scale(1.1);
    transition: opacity 0.8s ease;
    z-index: 1;
    pointer-events: none;
}

picture.background-img.lqip-loaded::before {
    opacity: 0;
}

picture.background-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: relative;
    z-index: 0;
}

/* ── Video fullscreen container ── */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: block;
    overflow: hidden;
}

.video-container::before {
    content: '';
    position: absolute;
    inset: 0;
    /* background: url('/assets/LANDING 2.png') center / cover no-repeat; */
    background: var(--lqip, url('data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD//gAQTGF2YzYyLjI4LjEwMQD/2wBDAAgUFBcUFxsbGxsbGyAeICEhISAgICAhISEkJCQqKiokJCQhISQkKCgqKi4vLisrKisvLzIyMjw8OTlGRkhWVmf/xAB7AAADAAMBAQAAAAAAAAAAAAADBAIFBwYBCAEBAQEBAQAAAAAAAAAAAAAAAgMBAAQQAAEDAQcDAwEJAQAAAAAAAAECABEDIYESBDFhQVEigXEyUhMUQvGx8OGhYpJyEQEAAgICAwEAAAAAAAAAAAAAEQECYRIxoZFxUf/AABEIACQAQAMBIgACEQADEQD/2gAMAwEAAhEDEQA/AO2TUxVV04PaJm78+HkYesctm1mvKzExiP8AUcDXUvbAtdscpRui2FkwtqHdg1gOkjAAS2Ql0Cn5C8NkFPUXhiTSEtkJfoUj5C8M+JPUXhyk3zSkITWWTUQlCVg6zPSLLfNj77NZ5CEoQmoTiNq0KAUB1/QenSqgPcRdPltj6Ko7k8az/HL8lXCjtK9TNUDhTmKtT2kKkCxXBEG0NBa6tchC1VVQbJWLD/l4pWYp0UAJWCdwr926itJkqpR/0zd3++V6hjykaQb+ni/q0MSRUVJiQL9g8kuvlySJ2n11aA+yGsUk9n3bDq3P0PQ5WgGJEji2WY9tpBAGzOlOTBmbvxY1V8qqyVq6g7eph5y06NsOlUni4OsR2YUaunG+0RMR2dSwsrxj0HYXMp8MAZiy5M+jq5j5dvXP/9k=')) center / cover no-repeat;
    filter: blur(20px);
    transform: scale(1.1);
    transition: opacity 0.8s ease;
    z-index: 1;
    pointer-events: none;
}

.video-container.video-loaded::before {
    opacity: 0;
}

.main-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: relative;
    z-index: 0;
}

.video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.main-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.container {
    display: flex;
    justify-content: center;
    margin-top: 25vh;
    text-align: center;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.hero-title {
    font-size: 2.5vw;
    /* Si adatta meglio allo schermo */
    font-weight: 300;
    /* Molto cicciotta */
    letter-spacing: 0.1rem;
    /* text-transform: uppercase; */
    margin: 0;
    line-height: 1.2;

    /* Effetto Liquid Glass */
    color: transparent;
    -webkit-text-fill-color: transparent;
    /* -webkit-text-stroke: 1px rgba(255, 255, 255, 0.7); */
    /* Bordo di riflesso */

    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.8) 0%,
            rgba(255, 255, 255, 0.4) 40%,
            rgba(255, 255, 255, 0.6) 100%);
    -webkit-background-clip: text;
    background-clip: text;

    /* Interagisce con il video/sfondo per farlo trasparire */
    mix-blend-mode: overlay;

    text-shadow: none;
    /* Rimuoviamo l'ombra del container per usare il filter */
    filter: drop-shadow(0px 10px 15px rgba(0, 0, 0, 0.4)) drop-shadow(0px -3px 5px rgba(255, 255, 255, 0.5));
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 5vw;
        text-align: center;
        width: 100%;
        margin-top: 40%;
    }
}

.text {
    font-size: 1.2rem;
    letter-spacing: 0.2rem;
    font-weight: 300;
    text-transform: uppercase;
    display: flex;
    gap: 15px;
}

.text a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
    text-underline-offset: 8px;
}

.text a:hover {
    text-decoration: underline;
}

.lang-switch--home {
    position: fixed;
    top: 55px;
    right: 55px;
    color: #fff;
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 300;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.lang-switch--home:hover {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 4px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    z-index: 10;
    /* background-color: rgba(200, 200, 200, 0.12); */
}

/* ── Desktop nav links ── */
header nav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    margin-left: 20px;
    font-weight: 300;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
}

header nav a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

header nav a.lang-switch {
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 2px 8px;
    font-size: 0.7rem;
    letter-spacing: 0.05rem;
    text-decoration: none;
}

header nav a.lang-switch:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.9);
}

/* ── Hamburger – hidden on desktop ── */
.openMenuButton {
    display: none;
}

/* ── Mobile nav overlay – hidden on desktop ── */
.mobile-nav {
    display: none;
}

.logo img {
    height: 110px;
    width: auto;
    display: block;
    backdrop-filter: blur(5px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    background-color: #cccccc61;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    z-index: 10;
    color: #ccc;
    font-size: 0.6rem;
    letter-spacing: 0.1rem;
    backdrop-filter: blur(1px);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

footer a {
    color: #ccc;
    text-decoration: none;
    margin-left: 5px;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.separator {
    cursor: default;
}

@media (max-width: 768px) {
    header {
        padding: 15px 25px;
        z-index: 100;
    }

    .logo img {
        height: 70px;
    }

    header nav {
        display: none;
    }

    /* ── Hamburger button ── */
    .openMenuButton {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 99;
        font-size: 2.2rem;
        line-height: 1;
        color: #fff;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
        transition: transform 0.6s ease;
        padding: 0;
        user-select: none;
    }

    .openMenuButton.active {
        transform: rotate(-45deg);
    }

    /* ── Mobile nav overlay ── */
    .mobile-nav {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.55);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        opacity: 0;
        transition: opacity 0.6s ease-in-out;
        z-index: 98;
    }

    .mobile-nav.active {
        right: 0;
        opacity: 1;
    }

    .mobile-nav:not(.active) {
        transition: opacity 0.6s ease-in-out, right 0.1s ease-in-out 0.65s;
    }

    .mobile-nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-start;
        padding-top: 30%;
        height: 70%;
        width: 100%;
        gap: 2.2rem;
    }

    .mobile-nav ul li a {
        display: block;
        color: #fff;
        font-size: 1.5rem;
        font-weight: 300;
        letter-spacing: 0.15rem;
        text-transform: uppercase;
        text-decoration: none;
        margin-right: 30px;
        transition: opacity 0.2s ease;
    }

    .mobile-nav ul li a:hover {
        opacity: 0.5;
    }

    .mobile-nav ul li a.lang-switch {
        border: 1px solid rgba(255, 255, 255, 0.7);
        padding: 4px 14px;
        font-size: 1rem;
        letter-spacing: 0.1rem;
    }

    .container {
        margin-top: 0;
        /* align-items: center; */
        height: 100vh;
        padding: 0 30px;
        justify-content: left;
    }

    .text {
        flex-direction: column;
        gap: 20px;
        text-align: left;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    }

    .text a {
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        background-color: rgba(255, 255, 255, 0.06);
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
        width: fit-content;
    }

    .separator {
        width: 30px;
        height: 1px;
        background-color: rgba(255, 255, 255, 0.5);
        border: none;
        margin: 0 auto;
        color: transparent;
        display: none;
    }

    footer {
        padding: 10px 20px;
        font-size: 0.55rem;
        text-align: center;
        line-height: 1.6;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        height: auto;
        min-height: 60px;
    }
}