/* === BANNER TOPO GERAL === */
.hero-banner {
    position: relative;
    width: 100%;
    height: 60vh; /* Altura do banner */
    min-height: 400px;
    overflow: hidden;
    background-color: var(--cor-verde-escuro);
}

/* === A. FUNDO COM ZOOM === */
.bg-slider {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.bg-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    
    /* O SEGREDO: Fica grande por padrão. Assim, quando perde o active, não dá o tranco! */
    transform: scale(1.1); 
    transition: opacity 0.1s ease-in-out;
}

.bg-slide.active {
    opacity: 1;
    /* Roda direto no carregamento da página */
    animation: zoomIn 6s linear forwards;
}

@keyframes zoomIn {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* Película escura/esverdeada para dar leitura ao texto */
.banner-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(17, 115, 2, 0.85) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
}

/* === B. PRIMEIRO PLANO (CARROSSEL) === */
.content-slider {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
}

.slide-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center; /* Garante que o bloco todo fique no centro absoluto da tela */
}

/* Base da nova div (Proteção Mobile First - Nasce como coluna) */
.slide-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 20px;
}

/* Textos e Imagens */
.slide-text {
    color: var(--cor-branco);
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centraliza no celular */
    text-align: center;
}

.slide-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.slide-text p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.btn-banner {
    display: inline-block;
    background-color: var(--cor-verde-claro);
    color: var(--cor-verde-escuro);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-banner:hover {
    background-color: var(--cor-branco);
    transform: scale(1.05);
}

.slide-image {
    width: 100%;
    display: flex;
    justify-content: center; /* Centraliza no celular */
}

.slide-image img {
    max-width: 100%;
    max-height: 600px;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3));
}


/* === C. CONTROLES E INDICADORES === */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 40px; height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 4;
    transition: background 0.3s;
}

.slider-arrow:hover { background: rgba(255, 255, 255, 0.5); }
.slider-arrow.prev { left: 120px; }
.slider-arrow.next { right: 120px; }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 4;
}

.dot {
    width: 10px; height: 10px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}
.dot.active {
    background: var(--cor-verde-claro);
    width: 25px;
    border-radius: 5px;
}

/* === RESPONSIVIDADE === */

/* Desktop (Imagem na direita, texto na esquerda) */
@media (min-width: 769px) {
    .slide-container {
        flex-direction: row-reverse; /* Vira linha horizontal */
        
        /* === AQUI FICA SEU CONTROLE (Pode por 70%, 65%, 60%...) === */
        width: 100%; 
        max-width: 750px; 
        gap: 40px; /* Dá um respiro bom entre a foto e o texto */
    }
    
    .slide-text { 
        flex: 1; 
        align-items: flex-start; /* Anclora o botão na esquerda */
        text-align: left; /* Anclora o texto na esquerda */
    }

    .slide-image { 
        flex: 1; 
        justify-content: flex-end; /* Anclora a imagem lá na direita */
    }
}

/* Mobile (Imagem no topo, texto em baixo centralizado) */
@media (max-width: 768px) {
    .hero-banner { height: auto; padding: 40px 0 60px 0; }
    .slide-image img { max-width: 100%; max-height: 300px; }
    
    .slide-text h2 { font-size: 1.8rem; }
    .slider-arrow { display: none; } 
    .banner-overlay {
        background: linear-gradient(to bottom, rgba(17, 115, 2, 0.7) 0%, rgba(0, 0, 0, 0.7) 100%);
    }
}