/* ==========================================
   PARTE 1: PÁGINA EMERGENTE (MODAL)
   ========================================== */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    background-color: #fff;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    overflow: hidden;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.img-promo { width: 100%; height: auto; display: block; }

.close-modal {
    position: absolute;
    right: 15px; top: 10px;
    color: #fff; font-size: 35px; font-weight: bold;
    cursor: pointer; text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.modal-footer { padding: 20px; text-align: center; background: #0a1f44; color: white; }

.btn-more {
    display: inline-block; margin-top: 10px; padding: 10px 20px;
    background: #A2AF9B; color: #000; text-decoration: none;
    border-radius: 5px; font-weight: bold;
}

/* ==========================================
   PARTE 2: VÍDEO E SLIDER (CENTRALIZAÇÃO)
   ========================================== */

/* Wrapper que força a limpeza de qualquer float do style.css */
.ev-section-block {
    width: 100% !important;
    display: block !important;
    clear: both !important;
    position: relative !important;
    margin: 40px 0 !important;
    text-align: center !important; /* Técnica de centralização por alinhamento de texto */
}

/* O VÍDEO FINALMENTE NO CENTRO */
.ev-video-box {
    display: inline-block !important; /* Faz o vídeo respeitar o text-align: center */
    width: 70% !important;
    max-width: 900px !important;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    background: #000;
}

.ev-video-box video {
    width: 100% !important;
    height: auto !important;
    display: block;
}

/* SLIDER CENTRALIZADO */
.ev-slider-box {
    display: inline-block !important;
    width: 90% !important;
    max-width: 950px !important;
    text-align: left; /* Restaura o texto para a esquerda dentro do slider */
}

/* Controles do Slider */
.ev-slides { display: none; }
.ev-slides img { width: 100%; border-radius: 8px; }

.ev-prev, .ev-next {
    cursor: pointer; position: absolute; top: 50%;
    padding: 16px; color: white; background: rgba(0,0,0,0.5);
    border: none; transform: translateY(-50%); z-index: 10;
}
.ev-next { right: 0; }
.ev-prev { left: 0; }

/* Ajuste do subtítulo para celulares */
@media (max-width: 768px) {
    .vision-sub {
        font-size: 18px !important; /* Diminui o tamanho da fonte */
        padding: 0 10px;           /* Evita que o texto encoste nas bordas */
        line-height: 1.3;          /* Melhora o espaçamento entre linhas */
        margin-bottom: 30px !important;
    }
}