.cards-section-home {
    width: 100%;
    min-height: 40vh;
    background-color: #477DB2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    position: relative; /* Adicionado */
}

.cards-container {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Barra azul como elemento decorativo */
.barra-azul-superior {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 2;
    pointer-events: none;
}

.footer-barra-img {
    background-color: #477DB2 !important;
}

/* img[src*="barra_azul_claro.svg"] {
display: block;
margin: 0;
padding: 0;
border: 0;
width: 100%;
height: auto;
} */

img[src*="barra_areia.svg"] {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    width: 100%;
    height: auto;
}

.cards-section-home {
    margin-top: 0 !important;
}

.header-with-bg {
    background-image: url("../img/painel.5a8ba830fd90.webp");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    width: 100%;
    height: 0;
    padding-bottom: 33.33%;
    position: relative;
    margin: 0;
}

.header-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: rgba(255,255,255, 0.4);
    padding: 20px;
    box-sizing: border-box;
}

/* Estilos para o título personalizado - REMOVENDO ESPAÇAMENTO */
.custom-title {
    color:#264263;
    line-height: 1;
    margin-bottom: 10px;
    font-size: 40pt;
    letter-spacing: 0; /* Garante que não há espaçamento adicional */
    word-spacing: 0; /* Garante que não há espaçamento entre palavras */
}

/* IMPORTANTE: Remove espaçamento entre spans inline */
.custom-title span {
    display: inline-block; /* Ou pode usar inline */
    margin: 0;
    padding: 0;
    letter-spacing: 0;
}

.header-content h2 {
    font-size: 1.5rem;
    margin: 0;
    color:#A32C00;
    font-family: Barlow, sans-serif;
}

.centered-content {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

@media (max-width: 768px) {
    .colunas-home {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .cards-container {
        margin-top: -1px; /* Remove qualquer espaço entre elementos */
    }

    .barra-azul-superior {
        margin-bottom: -15px !important; /* Garante sobreposição perfeita */
    }

    .cards-section-home {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .header-content {
        padding: 15px;
    }

    /* Ajustes responsivos para o título */
    .custom-title {
        font-size: 18pt !important;
        line-height: 1;
    }

    .header-content h2 {
        font-size: 1rem !important;
        line-height: 1.3;
        font-family: Barlow, sans-serif;
    }

    /* Ajuste na altura do header para mobile */
    .header-with-bg {
        padding-bottom: 50%;
    }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 480px) {
    .custom-title {
        font-size: 16pt !important;
    }

    .header-content h2 {
        font-size: 0.9rem !important;
        font-family: Barlow, sans-serif;
    }

    .header-content {
        padding: 10px;
    }

    .header-with-bg {
        padding-bottom: 60%;
    }

    h4 {
        font-size: 0.9rem !important;
    }

    .cards-container {
        margin-top: -2px; /* Ajuste mais fino para mobile */
    }
    .barra-azul-superior {
        margin-bottom: -20px !important; /* Garante sobreposição perfeita */
    }
}

/* Garantir que não há gaps entre elementos */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
}
p {
    font-family: Barlow, sans-serif;
    color: #212529;
}

.texto-home {
    text-align: justify;
    text-align-last: left;
    hyphens: auto;
    -webkit-hyphens: auto;
    text-wrap: pretty;
    /* lang: pt-BR; */
}
