/* BANNER */

.banner {
    position: relative;
    min-height: 500px;
    background: linear-gradient(to right, #A9D6E5 0%, #A9D6E5 30%, #2b54b3 100%);
    clip-path: ellipse(80% 100% at 50% 0%);
    padding: 40px 20px 20px;
    border-top: 4px solid #3C3C3B;
}


.banner__content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px;
    height: 100%;
    display: flex;
    gap: 80px;
}

.banner__infos {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 45%;
    justify-content: center;
    margin-bottom: 5%;
}

.banner__titulo {
    font-size: 48px;
}

.banner_subtitulo {
    font-size: 22px;
    color: #2A5D9E;
}

.banner_scroll {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.banner__breadcrumb {
    display: flex;
    gap: 10px;
    color: #333;
    font-size: 12px;
    margin-bottom: 20px;
}

.banner__nucleo {
    font-size: 22px;
    font-weight: normal;
    display: block;
}

/* Carrossel Vídeo */

.carrossel {
    padding: 80px 0;
}

.carrossel__content {
    position: relative;
    overflow: hidden;
    padding: 0 50px;
}

.carrossel__single {
    display: flex;
}

/* Customização dos botões de navegação do Swiper */
.swiper-button-prev,
.swiper-button-next {
    color: #2b54b3;
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 20px;
    font-weight: bold;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: #f0f0f0;
}

/* Customização da paginação do Swiper */
.swiper-pagination {
    position: relative !important;
    margin-top: 40px;
    bottom: 0 !important;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #ccc;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #2b54b3;
}

@media (max-width: 768px) {
    .banner {
        background: linear-gradient(to bottom, #A9D6E5 0%, #A9D6E5 30%, #2b54b3 100%);
        clip-path: none;
        padding: 40px 20px;
    }

    .banner__content {
        flex-direction: column;
        align-items: center;
        text-align: left;
        gap: 30px;
    }

    .banner__infos {
        width: 100%;
    }

    .banner__titulo {
        font-size: 36px;
    }

    .banner_subtitulo {
        font-size: 18px;
    }

    .carrossel__content {
        padding: 0 40px;
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 36px;
        height: 36px;
    }

    .swiper-button-prev:after,
    .swiper-button-next:after {
        font-size: 16px;
    }

    .banner__breadcrumb {
        display: none;
    }

    .banner__content {
        padding: 0;
    }

    .contato__titulo {
        font-size: 35px;
        padding-left: 20px;
        padding-right: 10px;
    }
}

/* Video Items no Carrossel */
.carrossel__video-item {
    position: relative;
    cursor: pointer;
    width: 100%;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Melhor que padding-bottom */
    overflow: hidden;
    border-radius: 8px;
    background: #000;
    border: none;
    padding: 0;
    cursor: pointer;
    display: block;
    transition: transform 0.3s ease;
}

.video-wrapper:hover {
    transform: scale(1.02);
}

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

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: transform 0.3s ease;
    pointer-events: none; /* O click passa pelo wrapper */
}

.video-play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-button svg {
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.video-titulo {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    margin: 0;
    font-size: 14px;
    z-index: 1;
}

/* Modal de Vídeo */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-modal__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
}

.video-modal__content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    z-index: 10000;
    padding: 60px 0 0 0;
}

.video-modal__close {
    position: absolute;
    top: 0;
    right: 0;
    background: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.video-modal__close:hover {
    background: #2b54b3;
    color: white;
    transform: rotate(90deg);
}

.video-modal__player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    border: 13px solid #fff;
}

.video-modal__player iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.banner__campanhavideo img {
	width: 590px;
	height: 330px;
	object-fit: contain;
}

/* Fallback para navegadores que não suportam aspect-ratio */
@supports not (aspect-ratio: 16 / 9) {
    .video-wrapper {
        padding-bottom: 56.25%;
        height: 0;
    }
    
    .video-thumbnail {
        position: absolute;
        top: 0;
        left: 0;
    }
}