/* =========================================================
   COMO FUNCIONA
========================================================= */

.como-funciona {
    padding: 95px 0;
    background: #FFF8F6;
}


/* =========================================================
   CABEÇALHO CENTRALIZADO
========================================================= */

.processo-header {
    display: flex;
    width: 100%;
    max-width: 900px;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 18px;

    margin:
        0
        auto
        52px;

    text-align: center;
}


/* Bloco da tag + título */

.como-funciona .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 */

.como-funciona .section-title span {
    width: fit-content;

    margin-right: auto;
    margin-left: auto;

    text-align: center;
}


/* Título */

.como-funciona .section-title h2 {
    width: 100%;
    max-width: 820px;

    margin:
        18px
        auto
        0;

    color: var(--black);

    text-align: center;
}


/* Texto abaixo do título */

.processo-header > p {
    width: 100%;
    max-width: 650px;

    margin: 0 auto;

    color: var(--text);

    font-size: 16px;
    line-height: 1.7;

    text-align: center;
}


/* =========================================================
   ETAPAS
========================================================= */

.processo-grid {
    position: relative;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 24px;
}


/* Linha entre os números */

.processo-grid::before {
    position: absolute;

    top: 29px;
    right: 10%;
    left: 10%;

    height: 2px;

    background:
        rgba(13, 79, 179, 0.15);

    content: "";
}


/* =========================================================
   CADA ETAPA
========================================================= */

.processo-item {
    position: relative;
    z-index: 1;

    display: flex;

    flex-direction: column;

    align-items: center;

    padding: 0 12px;

    text-align: center;
}


/* =========================================================
   NÚMERO
========================================================= */

.processo-numero {
    display: flex;

    width: 58px;
    height: 58px;

    flex: 0 0 58px;

    align-items: center;
    justify-content: center;

    margin:
        0
        auto
        28px;

    border: 6px solid #FFF8F6;
    border-radius: 50%;

    background: var(--primary);

    box-shadow:
        0 0 0 1px
        rgba(13, 79, 179, 0.12);

    color: #ffffff;

    font-size: 13px;
    font-weight: 900;

    text-align: center;

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

.processo-item:hover .processo-numero {
    transform:
        scale(1.08);

    background:
        var(--primary-dark);
}


/* =========================================================
   TÍTULO DA ETAPA
========================================================= */

.processo-item h3 {
    width: 100%;

    margin:
        0
        0
        13px;

    color: var(--black);

    font-size: 24px;
    line-height: 1.15;

    text-align: center;
}


/* =========================================================
   TEXTO DA ETAPA
========================================================= */

.processo-item p {
    width: 100%;
    max-width: 270px;

    margin:
        0
        auto;

    color: var(--text);

    font-size: 15px;
    line-height: 1.7;

    text-align: center;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .como-funciona {
        padding:
            80px
            0;
    }

    .processo-header {
        max-width: 760px;

        gap: 16px;

        margin-bottom: 42px;
    }

    .como-funciona .section-title {
        max-width: 720px;
    }

    .como-funciona .section-title h2 {
        max-width: 720px;
    }

    .processo-header > p {
        max-width: 600px;
    }

    .processo-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap:
            38px
            22px;
    }

    .processo-grid::before {
        display: none;
    }

    .processo-item {
        padding: 0;
    }

    .processo-item p {
        max-width: 320px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .como-funciona {
        padding:
            65px
            0;
    }

    .processo-header {
        width: 100%;

        gap: 14px;

        margin-bottom: 34px;

        text-align: center;
    }

    .como-funciona .section-title {
        width: 100%;
        max-width: 100%;

        align-items: center;

        text-align: center;
    }

    .como-funciona .section-title h2 {
        width: 100%;
        max-width: 100%;

        text-align: center;
    }

    .processo-header > p {
        width: 100%;
        max-width: 100%;

        font-size: 15px;

        text-align: center;
    }

    .processo-grid {
        grid-template-columns: 1fr;

        gap: 28px;
    }

    .processo-item {
        display: flex;

        flex-direction: column;

        align-items: center;

        padding: 0;

        text-align: center;
    }

    .processo-numero {
        width: 52px;
        height: 52px;

        flex-basis: 52px;

        margin:
            0
            auto
            18px;

        border-width: 5px;
    }

    .processo-item h3 {
        margin-bottom: 8px;

        font-size: 22px;

        text-align: center;
    }

    .processo-item p {
        max-width: 320px;

        margin-right: auto;
        margin-left: auto;

        font-size: 14px;

        text-align: center;
    }
}