/* =========================================================
   DIFERENCIAIS
========================================================= */

.diferenciais {
    padding: 100px 0;
    background: #8520B5;
    color: #ffffff;
}


/* =========================================================
   CABEÇALHO CENTRALIZADO
========================================================= */

.diferenciais-header {
    display: flex;
    width: 100%;
    max-width: 900px;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 18px;

    margin:
        0
        auto
        48px;

    text-align: center;
}


/* Bloco da tag + título */

.diferenciais .section-title {
    display: flex;
    width: 100%;
    max-width: 820px;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    margin: 0 auto;

    text-align: center;
}


/* Tag */

.diferenciais .section-title span {
    width: fit-content;

    margin-right: auto;
    margin-left: auto;

    border:
        1px solid
        rgba(255, 255, 255, 0.2);

    background:
        rgba(255, 255, 255, 0.12);

    color: #ffffff;

    text-align: center;
}


/* Título */

.diferenciais .section-title h2 {
    width: 100%;
    max-width: 820px;

    margin:
        18px
        auto
        0;

    color: #ffffff;

    text-align: center;
}


/* Texto abaixo */

.diferenciais-header > p {
    width: 100%;
    max-width: 650px;

    margin: 0 auto;

    color:
        rgba(255, 255, 255, 0.76);

    font-size: 16px;
    line-height: 1.7;

    text-align: center;
}


/* =========================================================
   GRID
========================================================= */

.diferenciais-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;
}


/* =========================================================
   CARDS CENTRALIZADOS
========================================================= */

.diferencial-card {
    position: relative;

    display: flex;

    min-height: 300px;

    flex-direction: column;

    align-items: center;
    justify-content: flex-start;

    padding: 34px;

    overflow: hidden;

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    border-radius: 26px;

    background:
        rgba(255, 255, 255, 0.07);

    text-align: center;

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease;
}

.diferencial-card:hover {
    transform:
        translateY(-6px);

    border-color:
        rgba(255, 255, 255, 0.22);

    background:
        rgba(13, 79, 179, 0.85);
}


/* =========================================================
   NÚMERO
========================================================= */

.diferencial-card .numero {
    display: flex;

    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    align-items: center;
    justify-content: center;

    margin:
        0
        auto
        30px;

    border-radius: 14px;

    background: #ffffff;

    color: var(--primary);

    font-size: 13px;
    font-weight: 900;

    text-align: center;
}


/* =========================================================
   TÍTULO DOS CARDS
========================================================= */

.diferencial-card h3 {
    width: 100%;

    margin:
        0
        0
        15px;

    color: #ffffff;

    font-size: 27px;
    line-height: 1.15;

    text-align: center;
}


/* =========================================================
   TEXTO DOS CARDS
========================================================= */

.diferencial-card p {
    width: 100%;
    max-width: 360px;

    margin:
        0
        auto;

    color:
        rgba(255, 255, 255, 0.8);

    font-size: 15px;
    line-height: 1.7;

    text-align: center;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .diferenciais {
        padding:
            82px
            0;
    }

    .diferenciais-header {
        max-width: 760px;

        gap: 16px;

        margin-bottom: 38px;
    }

    .diferenciais .section-title {
        max-width: 720px;
    }

    .diferenciais .section-title h2 {
        max-width: 720px;
    }

    .diferenciais-header > p {
        max-width: 600px;
    }

    .diferenciais-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .diferencial-card:last-child {
        grid-column:
            1 / -1;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .diferenciais {
        padding:
            68px
            0;
    }

    .diferenciais-header {
        width: 100%;

        gap: 14px;

        margin-bottom: 30px;

        text-align: center;
    }

    .diferenciais .section-title {
        width: 100%;
        max-width: 100%;

        align-items: center;

        text-align: center;
    }

    .diferenciais .section-title h2 {
        width: 100%;
        max-width: 100%;

        text-align: center;
    }

    .diferenciais-header > p {
        width: 100%;
        max-width: 100%;

        font-size: 15px;

        text-align: center;
    }

    .diferenciais-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .diferencial-card,
    .diferencial-card:last-child {
        grid-column: auto;
    }

    .diferencial-card {
        min-height: auto;

        align-items: center;

        padding:
            27px
            23px;

        border-radius: 21px;

        text-align: center;
    }

    .diferencial-card .numero {
        margin:
            0
            auto
            24px;
    }

    .diferencial-card h3 {
        font-size: 24px;

        text-align: center;
    }

    .diferencial-card p {
        max-width: 320px;

        margin-right: auto;
        margin-left: auto;

        text-align: center;
    }
}