﻿/* HERO BACKGROUND VIDEO */
.page-content-wrapper {
    width: 100%;
    margin: 0 auto;
    display: flex;
    gap: 20px;
}

.video-container {
    width: 100%;
    height: 94vh;
    position: relative;
    overflow: hidden;
}

    .video-container video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.hero-content {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 94vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    /* Overlay scuro per migliorare la leggibilità del testo */
    background-color: rgba(255, 255, 255, 0.6);
    z-index: 10;
    padding: 20px;
}

@media screen and (min-width: 601px) {
    .video-container {
        max-height: 600px;
        aspect-ratio: 16 / 9;
    }

    .hero-content {
        max-height: 600px;
        align-items: center;
    }
}



/* DIALOG TRAILER VIDEO */
#video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.modal-hidden {
    display: none !important;
    opacity: 0;
}

.modal-active {
    display: flex;
    opacity: 1;
}

#video-modal-container {
    max-width: 90%;
    max-height: 90%;
    width: 100%;
    aspect-ratio: 16 / 9;
}

#close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10000;
}



/* CTA sticky */
#sticky-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--background-subtle);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 8px 16px;
    z-index: 990;
    transition: transform 0.3s ease-out;
}

.cta-bar-hidden {
    transform: translateY(100%);
}

.cta-bar-visible {
    transform: translateY(0);
}

.btn-sticky-cta {
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
}
