body {
    font-family: var(--fonte-principal);
    background-color: var(--cor-fundo-claro);
    color: var(--cor-texto);
    line-height: 1.6;
    overflow-x: hidden;
}

.titulo-secao {
    margin-top: 5px;
    color: var(--titulo-cor-primaria) !important;
    font-size: var(--titulo-font-size) !important;
    font-weight: var(--titulo-font-weight) !important;
    text-transform: uppercase;
    border-left: var(--titulo-border-left) solid var(--titulo-cor-destaque);
    padding-left: var(--titulo-padding-left);
    margin-bottom: 24px;
    text-align: center !important;
}

.titulo-secao::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: var(--titulo-faixa-largura);
    height: var(--titulo-faixa-altura);
    background-color: var(--titulo-faixa-cor);
    border-radius: 3px;
}

.carrossel-banner {
    position: relative;
    width: 100%;
    height: 600px;
    /* altura ideal para desktop */
    overflow: hidden;
}

.slides {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
    transition: opacity 1s ease-in-out;
}

.slides.ativo {
    display: block;
    opacity: 1;
}

.slides img {
    width: 100%;
    height: clamp(400px, 60vh, 700px);
    object-fit: cover;
}

.titulo-slide {
    position: absolute;
    top: 30px;
    left: 40px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 10px 20px;
    font-size: 24px;
    border-radius: 6px;
    z-index: 2;
    text-align: left;
}

/* Card sobreposto dentro do carrossel */
.card-saiba-mais {
    position: absolute;
    bottom: 60px;
    right: 40px;
    background: rgba(255, 255, 255, 0.95);
    padding: 24px;
    width: 400px;
    border-radius: 8px;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.card-saiba-mais h2 {
    font-size: 28px;
    color: #003366;
    margin-bottom: 12px;
}

.card-saiba-mais p {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}

.btn-contato {
    background: #FFB400;
    color: #003366;
    padding: 12px 24px;
    font-weight: bold;
    border-radius: 6px;
    text-decoration: none;
    float: right;
}

/* Botões de navegação centralizados */
.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #FFB400;
    color: #003366;
    border: none;
    padding: 12px;
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 4;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

@media (max-width: 768px) {
    .carrossel-banner {
        height: 280px;
        /* altura reduzida do banner */
    }

    .slides img {
        width: 100%;
        height: 280px;
        /* altura fixa para imagem */
        object-fit: cover;
    }

    .titulo-slide {
        font-size: 18px;
        top: 16px;
        left: 16px;
        padding: 6px 12px;
    }

    .card-saiba-mais {
        display: none;
    }

    .card-saiba-mais-mobile {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 5;
        text-align: center;
    }

    #btnSaibaMais {
        background: #FFB400;
        color: #003366;
        padding: 10px 20px;
        font-weight: bold;
        border: none;
        border-radius: 6px;
        cursor: pointer;
    }

    .popup-conteudo {
        display: none;
        margin-top: 12px;
        background: rgba(255, 255, 255, 0.95);
        padding: 16px;
        border-radius: 8px;
        width: 90vw;
        max-width: 400px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        text-align: left;
    }

    .popup-conteudo h2 {
        font-size: 20px;
        margin-bottom: 8px;
        color: #003366;
    }

    .popup-conteudo p {
        font-size: 16px;
        margin-bottom: 12px;
        color: #333;
    }

    .popup-conteudo .btn-contato {
        background: #FFB400;
        color: #003366;
        padding: 8px 16px;
        font-weight: bold;
        border-radius: 6px;
        text-decoration: none;
        float: right;
    }
}

@media (max-width: 500px) {
    .card-saiba-mais-mobile {
        position: absolute;
        bottom: 20px;
        left: 47%;
        text-align: center;
    }

    .card-saiba-mais-mobile.relative {
        position: relative;
    }

    .popup-conteudo {
        position: fixed;
        inset: 0;
        /* substitui top, left, right, bottom */
        width: 100vw;
        height: 100vh;
        background: #fff;
        padding: 24px;
        z-index: 999;
        display: none;
        overflow-y: auto;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    }

    .popup-conteudo h2 {
        font-size: 24px;
        color: #003366;
        margin-bottom: 16px;
        text-align: center;
    }

    .popup-conteudo p {
        font-size: 16px;
        color: #333;
        margin-bottom: 24px;
        text-align: justify;
    }

    .popup-conteudo .btn-contato {
        display: block;
        width: 100%;
        background: #FFB400;
        color: #003366;
        padding: 12px;
        font-weight: bold;
        border-radius: 6px;
        text-decoration: none;
        text-align: center;
    }

    .popup-conteudo .fechar {
        position: absolute;
        top: 16px;
        right: 16px;
        font-size: 24px;
        background: none;
        border: none;
        color: #003366;
        cursor: pointer;
    }
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
}

#overlay.mostrar {
    display: block;
}

.popup-conteudo.mostrar {
    display: block;
}

@media (max-width: 768px) {
    .carrossel-banner {
        width: 100vw;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }

    .slides img {
        width: 100vw;
        height: 280px;
        /* ou use clamp para responsividade */
        object-fit: cover;
        display: block;
    }

    body {
        margin: 0;
        padding: 0;
    }

    #home {
        padding: 68px 0 0 0;
    }
}