.hero-slider {
    width: 100%;
    height: 500px;
    background-color: var(--color-border);
}

.hero-slider .swiper-slide {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

/* Overlay Escuro para legibilidade */
.hero-slider .swiper-slide.has-title-mask::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
    /* Acima da <img> (z-index:1), abaixo do conteúdo */
}

.slide-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    max-width: 600px;
}

.slide-content h2 {
    font-family: var(--font-ui);
    font-size: var(--text-banner);
    margin-bottom: var(--space-5);
    font-weight: 700;
}

.slide-content p {
    font-size: var(--text-xl);
    margin-bottom: var(--space-8);
}

.btn-banner {
    display: inline-block;
    padding: var(--space-4) var(--space-8);
    background-color: var(--color-primary-light, #337AB7);
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: var(--transition-base);
}

.btn-banner:hover {
    background-color: var(--color-primary, #004A80);
}

/* Ajustando as cores das setas do Swiper */
.swiper-button-next,
.swiper-button-prev {
    color: var(--color-white);
}

.swiper-pagination-bullet-active {
    background: var(--color-white);
}

/* --- OVERLAPPING BOTÕES HERO --- */
.hero-overlays {
    position: absolute;
    bottom: -40px;
    /* Overlaps content below as well */
    left: 0;
    width: 100%;
    z-index: 10;
    pointer-events: none;
    /* Let clicks pass through empty spaces */
}

.hero-overlays .container {
    position: relative;
}

.hero-floating-box {
    background: var(--color-white);
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    display: inline-flex;
    gap: var(--space-5);
    pointer-events: auto;
    /* Re-enable clicks inside the box */
}

.hero-btn {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    padding: var(--space-5) var(--space-7);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: var(--text-md);
    line-height: 1.2;
    transition: var(--transition-base);
}

.hero-btn i {
    font-size: 24px;
}

.hero-btn-blue {
    background: var(--color-primary-light, #337AB7);
    color: var(--color-white);
    border: 2px solid var(--color-primary-light, #337AB7);
}

.hero-btn-blue:hover {
    background: var(--color-primary-dark, #1A3D5D);
    border-color: var(--color-primary-dark, #1A3D5D);
}

.hero-btn-outline {
    background: transparent;
    color: var(--color-primary-dark, #1A3D5D);
    border: 2px solid var(--color-primary-dark, #1A3D5D);
}

.hero-btn-outline:hover {
    background: var(--color-primary-dark, #1A3D5D);
    color: var(--color-white);
}

.hero-btn span small {
    font-size: var(--text-xs);
    font-weight: 400;
}

/* Acessibilidade & Performance */
.slide-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-slider .swiper-slide>.container {
    position: relative;
    z-index: 3;
    /* Acima do overlay (z-index:2) */
}

/* Touch Targets para Mobile (Swiper) */
.swiper-pagination-bullet {
    width: 16px !important;
    height: 16px !important;
    margin: 0 10px !important;
}

/* --- HERO RESPONSIVO --- */
@media (max-width: 768px) {
    .slide-content h2 {
        font-size: var(--text-6xl);
    }

    .slide-content p {
        font-size: var(--text-md);
    }

    .hero-floating-box {
        flex-direction: column;
        width: 100%;
        gap: var(--space-3);
        padding: var(--space-5);
    }

    .hero-btn {
        width: 100%;
        justify-content: center;
    }

    .hero-overlays {
        bottom: var(--space-6);
    }
}

@media (max-width: 576px) {
    .hero-btn {
        flex-direction: column;
        text-align: center;
    }
}
