@font-face {
    font-family: 'Gill Sans Light';
    src: url('../font/gill-sans/Gill Sans Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}


@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(60px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Regole globali per assicurare che la hero sia sempre 100vh */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Forza la hero ad essere sempre 100vh su tutti i dispositivi */
.hero,
.hero-video {
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
}

/* Gestione speciale per dispositivi mobile con barra di navigazione */
@media (max-width: 768px) {
    /* Usa 100dvh per dispositivi che supportano dynamic viewport height */
    .hero,
    .hero-video {
        height: 100dvh !important;
        min-height: 100dvh !important;
        max-height: 100dvh !important;
    }
    
    /* Fallback per dispositivi che non supportano 100dvh */
    @supports not (height: 100dvh) {
        .hero,
        .hero-video {
            height: 100vh !important;
            min-height: 100vh !important;
            max-height: 100vh !important;
        }
    }
}

/* Hero Section styles estratti da style.css */
.hero {
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    width: 100%;
    background: black;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Video Hero Styles */
.hero-video {
    overflow: hidden;
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.8) !important;
    z-index: 2 !important;
    pointer-events: none !important;
}

.hero-video .hero-overlay {
    display: block !important;
    opacity: 0.8 !important;
}

.hero-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    z-index: 1;
}



.vertical-menu {
    position: fixed;
    bottom: 250px;
    left: -300px; /* Nascosto di default */
    z-index: 10001; /* Aumentato per essere sopra ai modal */
    font-weight: 100;
    font-family: 'Gill Sans Thin', 'Gill Sans Light', 'Gill Sans Nova', sans-serif;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.vertical-menu.open {
    left: 55px !important; /* Posizione visibile quando aperto */
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
}

/* Linguetta per aprire il menu verticale */
.menu-tab {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #000000;
    padding: 15px 8px;
    cursor: pointer;
    z-index: 10002; /* Aumentato per essere sopra al menu verticale */
    border-radius: 0 8px 8px 0;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: none; /* Nascosto di default */
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: 'Gill Sans Light', 'Gill Sans Nova', sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 300;
}

.menu-tab:hover {
    background: rgba(255, 215, 0, 0.9);
    color: #000000;
    padding-left: 12px;
    box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.4);
}

.menu-tab.active {
    background: rgba(255, 215, 0, 0.9);
    color: #000000;
}

/* Mostra la linguetta solo su desktop */
@media (min-width: 1336px) {
    .menu-tab {
        display: block;
    }
}

/* Desktop: il menu è controllato dalla linguetta */
@media (min-width: 1336px) {
    /* Il menu verticale è ora controllato via JavaScript con la linguetta */
}

.vertical-menu ul {
    list-style: none;
}

.vertical-menu ul li {
    margin:25px 0;
    font-weight: 100;
    font-family: 'Gill Sans Thin', 'Gill Sans Light', 'Gill Sans Nova', sans-serif;
}

.vertical-menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Gill Sans Thin', 'Gill Sans Light', 'Gill Sans Nova', sans-serif;
    font-weight: 100;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.vertical-menu ul li a:hover {
    color: #FFD700;
}

/* Stile per il link COLLABORA CON NOI nel menu verticale */
.vertical-menu .collabora-item {
    margin: 35px 0;
}

.vertical-menu .collabora-link {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    font-weight: 400;
    text-shadow: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.vertical-menu .collabora-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: #FFD700 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.active-indicator {
    display: inline-block;
    vertical-align: middle;
    height: 4px;
    width: 0;
    background: #FFD700;
    border-radius: 2px;
    margin-right: 12px;
    transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

li.active .active-indicator {
    width: 30px;
}

/* Index page: mostra la barra solo su "Scopri chi siamo" (primo elemento) */
.index-page .vertical-menu ul li .active-indicator {
    width: 0;
}
.index-page .vertical-menu ul li:first-child .active-indicator {
    width: 30px;
}

/* H1 posizionato sotto il menu verticale */
.hero-title {
    position: absolute !important;
    bottom: 120px !important;
    left: 55px !important;
    font-size: 78px !important;
    font-weight: 300 !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    font-family: 'Gill Sans Light', 'Gill Sans Nova', sans-serif !important;
    animation: fadeUp 1.2s cubic-bezier(0.23, 1, 0.32, 1) 0.5s both !important;
    color: #fff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
    z-index: 10 !important;
}

/* Responsive design per la hero section */
@media (max-width: 768px) {
    .hero {
        overflow: hidden;
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
    }
    
    .hero-video {
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
    }
    
    .hero-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        max-width: 100%;
    }
    
    .hero-video-bg {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    .hero-title {
        font-size: 48px !important;
        left: 30px !important;
        bottom: 100px !important;
    }
}

@media (max-width: 480px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    .hero {
        overflow: hidden;
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
    }
    
    .hero-video {
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
    }
    
    .hero-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        max-width: 100%;
        max-height: 100%;
    }
    
    .hero-video-bg {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    .hero-title {
        font-size: 32px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        bottom: 80px !important;
        text-align: center !important;
        width: 90% !important;
        padding: 0 20px !important;
    }
}

/* Media query specifica per schermi molto piccoli - 360px */
@media (max-width: 360px) {
    .hero-title {
        font-size: 35px !important;
        letter-spacing: 1px !important;
        line-height: 1.1 !important;
        width: 95% !important;
        padding: 0 10px !important;
    }
}

/* Bottoni mobile hero - nascosti su desktop */
.mobile-hero-buttons {
    display: none;
}

/* Bottone mobile hero - visibile solo su mobile */
@media (max-width: 768px) {
    .mobile-hero-buttons {
        position: absolute;
        top: 10%;
        left: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        z-index: 10;
        width: 100%;
    }
    
    .mobile-hero-logo {
        width: 250px;
        height: auto;
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    }
    
    .mobile-hero-btn {
        background: #ffffff;
        color: #000000;
        border: none;
        padding: 15px 30px;
        border-radius: 4px;
        font-size: 1.2rem;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 1px;
        cursor: pointer;
        transition: background 0.3s ease;
        text-decoration: none;
        display: inline-block;
        text-align: center;
    }
    
    .mobile-hero-btn:hover {
        background: #cccccc;
    }
}

/* Ottimizzazione per schermi molto piccoli */
@media (max-width: 480px) {
    .mobile-hero-buttons {
        gap: 15px;
    }
    
    .mobile-hero-logo {
        width: 230px;
    }
    
    .mobile-hero-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .mobile-hero-buttons {
        gap: 12px;
    }
    
    .mobile-hero-logo {
        width: 210px;
    }
    
    .mobile-hero-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Desktop: Il vertical menu è controllato da JavaScript */ 