﻿/* Inicio BannerCarousel.razor.css */

/* Estilo para a descrição de vídeo */
.slider-content p {
    max-width: 70%;
    margin: 0 auto 30px;
    text-align: center;
    line-height: 1.6;
}

/* Para telas menores, aumentamos a proporção para garantir legibilidade */
@media (max-width: 768px) {
    .slider-content p {
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box !important;
        -webkit-line-clamp: 5; /* Limita a 3 linhas */
        -webkit-box-orient: vertical;
        max-height: 7em; /* Aproximadamente 3 linhas */
        max-width: 90%;
        margin: 0 auto 15px;
    }
}

/* Para dispositivos muito pequenos, reduzir ainda mais */
@media (max-width: 480px) {
    .slider-content p {
        -webkit-line-clamp: 2; /* Limita a 2 linhas */
        max-height: 3em; /* Aproximadamente 2 linhas */
    }
}

/* Centralizando o container principal também */
.title-container {
    max-width: 80%;
    margin: 0 auto;
    text-align: center;
}

/* Título também centralizado */
.title1 {
    text-align: center;
    margin-bottom: 20px;
}

/* Configuração apenas para o slider principal */
.slider1-area {
    max-width: 1520px;
    margin: 0 auto;
    overflow: hidden;
}

    /* Correções específicas apenas para o slider principal */
    .slider1-area .nivoSlider {
        position: relative;
        overflow: hidden;
    }

/* Ajustes responsivos apenas para o slider principal */
@media (max-width: 767px) {
    /* Correções específicas para mobile */
    .slider1-area .nivo-slice,
    .slider1-area .nivo-box {
        height: auto !important;
    }
}

/* Fim BannerCarousel.razor.css */

/* Correções para botões em dispositivos móveis */
@media (max-width: 767px) {

    /* Ajustar posicionamento do botão */
    .slider-btn-area {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin-top: 10px !important;
        position: relative !important;
        z-index: 1000 !important;
    }    
}


/* ══════════════════════════════════════════
   VIDEO BANNER - Página inicial (não autenticado)
   ══════════════════════════════════════════ */
.video-banner-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.video-banner {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Overlay escuro sobre o vídeo para o texto ficar legível */
.video-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient( to bottom, rgba(0, 33, 71, 0.7) 0%, rgba(0, 33, 71, 0.5) 50%, rgba(0, 33, 71, 0.8) 100% );
    z-index: 1;
}

/* Garantir que o texto fique acima do vídeo */
.video-banner-wrapper + .slider-direction,
.video-banner-wrapper ~ .slider-direction {
    position: relative;
    z-index: 2;
}

/* Mobile: reduzir qualidade para performance */
@media only screen and (max-width: 767px) {
    .video-banner {
        min-height: 100%;
        width: auto;
    }
}
/* ══════════════════════════════════════════
   VIDEO BANNER
   ══════════════════════════════════════════ */
.video-banner-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #002147;
}

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,33,71,0.6), rgba(0,33,71,0.4), rgba(0,33,71,0.7));
    z-index: 1;
}

/* Desktop grande */
@media (min-width: 1200px) {
    .video-banner-container {
        height: 550px;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
    .video-banner-container {
        height: 400px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .video-banner-container {
        height: 300px;
    }
}

/* Mobile pequeno */
@media (max-width: 479px) {
    .video-banner-container {
        height: 250px;
    }
}