/* =========================================
   1. QUEBRA O CONTAINER DO TAGDIV (MÁGICA)
   ========================================= */
.hero-full {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important; /* O jeito infalível no WordPress */
    margin-right: calc(50% - 50vw) !important;
    padding: 0 !important;
    position: relative !important;
    overflow: visible !important; 
    background-color: #000 !important; 
}

/* Destrói as limitações do TagDiv */
.hero-full .td-pb-span12,
.hero-full .wpb_wrapper,
.hero-full .vc_column-inner,
.hero-full .vc_row,
.hero-full .td-pb-row,
.td-main-content-wrap,
.td-container {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important; /* Permite a imagem vazar para os lados */
}

/* =========================================
   2. ESTRUTURA DO HERO (FUNDO E OVERLAY)
   ========================================= */
.mgr-hero-full {
    position: relative; 
    width: 100%; 
    height: 100vh; 
    height: 100dvh;
    display: flex; 
    flex-direction: column; 
    justify-content: flex-end; 
    align-items: center;
    overflow: hidden; 
    text-align: center;
}

/* Imagem de fundo otimizada para LCP */
.mgr-hero-full img.bg-lcp {
    position: absolute; 
    inset: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    z-index: 1;
}

/* Vídeo de fundo do YouTube */
.mgr-hero-full iframe.bg-vid {
    position: absolute; 
    top: 50%; 
    left: 50%; 
    width: 100vw; 
    height: 56.25vw; 
    min-height: 100vh; 
    min-width: 177.77vh;
    transform: translate(-50%, -50%); 
    z-index: 1; 
    pointer-events: none; 
    border: none;
}

/* Gradiente escuro para dar leitura ao texto */
.mgr-hero-overlay {
    position: absolute; 
    inset: 0; 
    z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}

/* =========================================
   3. TEXTOS E BOTÕES (FORÇANDO BRANCO)
   ========================================= */
.mgr-hero-content {
    position: relative; 
    z-index: 10 !important; 
    max-width: 900px; 
    padding: 0 20px 80px;
    font-family: 'Inter', sans-serif; 
}

.mgr-hero-cat {
    display: inline-block; 
    background: #d32f2f; 
    color: #ffffff !important; 
    -webkit-text-fill-color: #ffffff !important;
    font-weight: 800; 
    font-size: 0.8rem;
    padding: 6px 16px; 
    border-radius: 4px; 
    text-transform: uppercase; 
    margin-bottom: 20px;
}

/* Força TODOS os elementos dentro do título a serem brancos */
.mgr-hero-title,
.mgr-hero-title span,
.mgr-hero-title a {
    font-size: clamp(2.5rem, 5vw, 4.5rem) !important; 
    font-weight: 900 !important; 
    line-height: 1.1 !important; 
    margin: 0 0 15px 0 !important;
    font-family: 'Montserrat', sans-serif !important;
    color: #ffffff !important; 
    -webkit-text-fill-color: #ffffff !important; 
    text-shadow: 0 4px 15px rgba(0,0,0,0.9) !important; 
    background: transparent !important;
}

.mgr-hero-sub,
.mgr-hero-sub span {
    font-size: clamp(1rem, 2vw, 1.3rem) !important; 
    font-style: italic !important; 
    line-height: 1.5 !important;
    color: #eeeeee !important; 
    -webkit-text-fill-color: #eeeeee !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9) !important;
    background: transparent !important;
}

.mgr-hero-arrow {
    position: absolute; 
    bottom: 30px; 
    left: 50%; 
    transform: translateX(-50%);
    z-index: 10; 
    color: #ffffff !important; 
    font-size: 0.8rem; 
    text-decoration: none; 
    animation: pulseDown 2s infinite;
}

.mgr-hero-arrow i { 
    display: block; 
    font-size: 1.5rem; 
    margin-top: 5px; 
}

@keyframes pulseDown { 
    0% { transform: translate(-50%, 0); } 
    50% { transform: translate(-50%, 10px); } 
    100% { transform: translate(-50%, 0); } 
}

/* =========================================
   4. AJUSTES FINOS PARA CELULAR (MOBILE)
   ========================================= */
@media (max-width: 768px) {
    .mgr-hero-full {
        height: 90vh !important; /* No celular usa 90vh para não brigar com a barra do navegador */
        min-height: 500px !important;
    }
    
    .mgr-hero-content {
        padding: 0 15px 60px 15px !important; 
    }

    .mgr-hero-title,
    .mgr-hero-title span,
    .mgr-hero-title a {
        font-size: 2.2rem !important; 
        line-height: 1.2 !important;
    }

    .mgr-hero-cat {
        font-size: 0.7rem !important;
        padding: 4px 10px !important;
        margin-bottom: 10px !important;
    }

    .mgr-hero-sub,
    .mgr-hero-sub span {
        font-size: 0.95rem !important;
    }
}