/* =============================================
   HERO BANNER — FIX DEFINITIVO
   Este arquivo resolve todos os problemas do hero.
   Carregar APÓS style.css (ou colar no final).
   ============================================= */

/* Anti scroll horizontal */
html { overflow-x: hidden; }

/* ---- HERO SECTION ---- */
.hero {
    background: linear-gradient(135deg, #0a1f3a 0%, #0D2B4E 40%, #1a5276 100%) !important;
    position: relative !important;
    overflow: hidden !important;
    min-height: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.hero > .container {
    padding-top: 100px;
    padding-bottom: 40px;
    position: relative;
    z-index: 2;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ---- LAYOUT: texto esquerda + imagem direita ---- */
.hero-layout {
    display: flex !important;
    align-items: flex-end !important;
    gap: 0 !important;
    position: relative;
}

.hero-content {
    flex: 0 0 50%;
    max-width: 50%;
    position: relative;
    z-index: 3;
    padding-bottom: 60px;
}

/* ---- IMAGEM: ocupa metade direita, colada na base ---- */
.hero-image-slider {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    height: auto !important;
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 480px;
}

.hero-slide {
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) scale(.97) !important;
    max-height: 620px !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    opacity: 0;
    transition: opacity .8s ease, transform .8s ease !important;
    pointer-events: none;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,.25));
}

.hero-slide.active {
    opacity: 1 !important;
    transform: translateX(-50%) scale(1) !important;
    pointer-events: auto;
}

/* ---- WAVE: ondulação na base do hero ---- */
.hero-wave {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 4 !important;
    line-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none;
}

.hero-wave svg {
    display: block !important;
    width: 100% !important;
    height: 80px !important;
}

/* Imagem fica ATRÁS da wave (z-index 2 vs 4) */
/* A wave cobre a parte inferior da imagem = efeito de "emergir" */

/* ---- Stats: garante que fica acima de tudo ---- */
.stats-bar {
    position: relative;
    z-index: 10;
    background: #fff;
}

/* ---- RESPONSIVO ---- */
@media (max-width: 1024px) {
    .hero-content {
        flex: 0 0 55%;
        max-width: 55%;
    }
    .hero-image-slider {
        flex: 0 0 45% !important;
        max-width: 45% !important;
        min-height: 350px;
    }
    .hero-slide {
        max-height: 520px !important;
    }
}

@media (max-width: 768px) {
    .hero-layout {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .hero-content {
        flex: none;
        max-width: 100%;
        padding-bottom: 20px;
    }
    .hero-image-slider {
        flex: none !important;
        max-width: 100% !important;
        min-height: 260px;
        height: 260px !important;
        justify-content: center !important;
        overflow: hidden !important;
        align-items: flex-start !important;
    }
    .hero-slide {
        position: absolute !important;
        top: 0 !important;
        bottom: auto !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        object-fit: cover !important;
        object-position: top center !important;
    }
    .hero-slide.active {
        transform: translateX(-50%) !important;
    }
    .hero-wave svg {
        height: 50px !important;
    }
}

@media (max-width: 480px) {
    .hero > .container {
        padding-top: 80px;
    }
    .hero-image-slider {
        min-height: 200px;
        height: 200px !important;
    }
    .hero-wave svg {
        height: 35px !important;
    }
}
