/* ==========================================================================
   AREA 2 - CONFIGURAÇÕES GLOBAIS
   (Estilos de cores, fontes e efeitos de hover)
   ========================================================================== */
.area-2 {
    width: 100%;
    font-family: 'Raleway', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.titulo-frentes {
    text-align: center;
    color: #fff;
    width: 100%;
}

.titulo-frentes h2 {
    font-size: clamp(26px, 3.5vw, 40px); 
    font-weight: 400;
    margin-bottom: 5px;
    text-transform: none;
    line-height: 1.2;
}

.titulo-frentes h2 span {
    color: #F2E41D; 
    font-weight: 900;
}

.titulo-frentes p {
    font-size: 19px;
    font-weight: 400;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.grid-frentes {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.grid-frentes img {
    height: auto;
    transition: transform 0.3s ease;
}

.grid-frentes img:hover {
    transform: translateY(-5px);
}

/* ==========================================================================
   AREA 2 - DESKTOP (Min-width: 1025px)
   (Configurações atuais preservadas)
   ========================================================================== */
@media screen and (min-width: 1025px) {
    .area-2 {
        background: #000 url('Imagens/Area2/bg_area2.png') center center no-repeat !important;
        background-size: cover !important; 
        padding: 80px 0;
        min-height: 400px;
    }

    .area-2 .wide {
        display: flex !important;
        flex-direction: column !important; 
        align-items: center !important;
        justify-content: center !important;
        gap: 40px;
        width: 800px !important; /* Mantendo o padrão das outras áreas */
        margin: 0 auto !important;
    }

    .grid-frentes {
        gap: 25px;
    }

    .grid-frentes img {
        max-width: 48%; 
    }
}

/* ==========================================================================
   AREA 2 - MOBILE E TABLET (Max-width: 1024px)
   (Preparado para empilhamento dos cards)
   ========================================================================== */
   /* ==========================================================================
   AREA 2 - MOBILE E TABLET (Max-width: 1024px)
   ========================================================================== */
@media screen and (max-width: 1024px) {
    .area-2 {
        /* Fundo ocupando 100% da seção */
        background: #000 url('Imagens/Area2/bg_area2.png') center center no-repeat !important;
        background-size: cover !important;
        
        /* Espaçamento interno para respiro */
        padding: 60px 0 !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        min-height: auto !important;
    }

    .area-2 .wide {
        width: 90% !important;
        max-width: none !important;
        min-width: auto !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 35px; /* Distância entre título e o grid de imagens */
    }

    /* Centralização do texto superior */
    .titulo-frentes {
        width: 100% !important;
        text-align: center !important;
    }

    .titulo-frentes p {
        font-size: clamp(16px, 4.5vw, 18px) !important;
        line-height: 1.5;
        color: #fff;
        margin: 0 auto;
    }

    /* Container das imagens empilhadas */
    .grid-frentes {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important; /* Gap reduzido para aproximar os elementos da imagem central */
        width: 100% !important;
    }

    /* Configuração geral para as imagens (Cima e Baixo) */
    .grid-frentes img {
        width: 100% !important;
        max-width: 280px !important; /* Ajustado para não ocupar a largura total do celular */
        height: auto !important;
        display: block;
        margin: 0 auto;
    }

    /* AJUSTE ESPECÍFICO: Imagem do meio (Comparação/Seta) */
    .grid-frentes img[src*="imagem2_area2.png"] {
        max-width: 50px !important; /* Deixa a imagem central bem menor que as outras */
        margin: -5px auto !important; /* Margem negativa para "colar" os blocos e mostrar conexão */
        opacity: 0.9;
        filter: brightness(1.1); /* Realce leve para a conexão */
    }
}