.section-funcoes {
    width: 100%;
    height: 800px;
    background-color: #C1C72F;
    opacity: 1;
    padding-top: 120px;
    padding-bottom: 100px;
}

.funcoes-title-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 120px; /* aproxima do topo como no XD */
    margin-bottom: 80px;
}

.funcoes-title {
    font-family: 'Circular', sans-serif;
    font-size: 40px;
    line-height: 44px;
    font-weight: 700;
    color: #283E80;
    max-width: 738px;
}

.funcoes-title .highlight {
    background-color: #283E81;
    color: #FFFFFF;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-family: 'Circular', sans-serif;
    font-size: 40px;
    line-height: 44px;
    font-weight: 700;

    padding: 2px 6px;
    border-radius: 0;
}

@media (max-width: 768px) {
    .section-funcoes {
        height: auto;
        padding: 80px 0;
    }

    .funcoes-title {
        text-align: center;
        font-size: 32px;
        line-height: 36px;
    }
}

.funcoes-card {
    width: 420px; /* um pouco menor que 448px */
    height: 335px;
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;

    /* REMOVE a borda */
    border: none;

    /* sombra suave para destacar do fundo */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.funcoes-card-image {
    width: 100%;
    height: 236px;
}

.funcoes-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.funcoes-card-footer {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    gap: 14px;
}

.funcoes-card-icon {
    width: 40px;
    height: 40px;
    background: #C1C72F;
    border-radius: 50%;    
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.funcoes-card-icon span {
    font-family: Circular, sans-serif;
    font-weight: 900;
    font-size: 22px;
    line-height: 24px;
    color: #F8FAFB;
}

.funcoes-card-text {
    font-family: 'Circular', sans-serif;
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
    color: #283E80;
    margin: 0;
}

.highlight {
    color: #C1C72F; /* Cor do fundo do botão, "por aqui" */
}

.funcoes-cards {
    display: flex;
    justify-content: center;
    gap: 48px; /* distância visual parecida com o XD */
    margin-top: 40px;
}

@media (max-width: 992px) {
    .funcoes-cards {
        flex-direction: column;
        gap: 32px;
    }
}

@media (max-width: 768px) {

    /* TEXTO */
    .funcoes-title {
        font-size: 30px;
        line-height: 34px;
        text-align: left;
        padding: 0 16px;
    }

    /* SLIDER */
    .funcoes-slider {
        display: flex;
        overflow-x: auto;

        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;

        gap: 0;
    }

    .funcoes-slider::-webkit-scrollbar {
        display: none;
    }

    /* SLIDE */
    .funcoes-slide {
        flex: 0 0 100%;
        display: flex;
        justify-content: center;

        scroll-snap-align: start;
    }

    /* CARD */
    .funcoes-card {
        width: 300px;
        height: 290px;
    }

    /* INDICADORES */
    .funcoes-indicators {
        display: flex;
        justify-content: center;
        gap: 12px;
        margin-top: 20px;
    }

    .funcoes-indicator {
        width: 32px;
        height: 4px;
        background: #E0E0E0;
        border-radius: 2px;
    }

    .funcoes-indicator.active {
        background: #283E80;
    }
}



.funcoes-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.funcoes-indicator {
    width: 32px;
    height: 4px;
    background: #E0E0E0;
    border-radius: 2px;
}

.funcoes-indicator.active {
    background: #283E80;
}


/* ============================= */
/* FUNÇÕES – AJUSTES MOBILE */
/* ============================= */
@media (max-width: 767px) {

    .funcoes-card {
        width: 280px;
        padding-bottom: 16px;
        overflow: hidden; /* IMPORTANTE */
    }

    /* Container da imagem */
    .funcoes-card-image {
        display: flex;
        justify-content: center;
        align-items: flex-start; /* ⬅️ cola no topo */
        padding: 0;             /* ⬅️ remove espaço branco */
    }

    /* Imagem */
    .funcoes-card-image img {
        width: 400px;
        max-width: 100%;
        height: 220px;
        margin: 0;              /* ⬅️ remove margem negativa */
        display: block;
        object-fit: cover;     /* garante preenchimento */
    }

    /* Footer */
    .funcoes-card-footer {
        padding: 12px 14px;
        gap: 12px;
    }

    /* Ícone */
    .funcoes-card-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
        flex-shrink: 0;
    }

    /* Texto */
    .funcoes-card-text {
        font-size: 14px;
        line-height: 17px;
    }

    /* Slide */
    .funcoes-slide {
        display: flex;
        justify-content: center;
    }
}
