
/* =========================================================
   CERTIFICAZIONI
========================================================= */

.certifications {
    padding: 30px;
    background: #f4f4f2;
}

.certifications-container {
    width: min(1200px, calc(100% - 60px));
    margin: 0 auto;
}


/* =========================================================
   INTRO
========================================================= */

.certifications-intro {
    margin-bottom: 50px;
}

.certifications-eyebrow {
    display: block;

    margin-bottom: 16px;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2.5px;
    text-transform: uppercase;

    color: rgb(237, 149, 13);
}

.certifications-intro h2 {
    margin-bottom: 20px;

    font-size: clamp(38px, 5vw, 62px);
    font-weight: 500;

    line-height: 1;
    letter-spacing: -2.5px;

    color: #1c1c1c;
}

.certifications-intro p {

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

    color: #707070;
}


/* =========================================================
   GRID
========================================================= */

.certifications-grid {
    display: grid;

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

    gap: 20px;
}


/* =========================================================
   CARD
========================================================= */

.certification-card {
    position: relative;

    display: flex;
    gap: 35px;

    min-height: 310px;

    padding: 38px;

    overflow: hidden;

    border: 1px solid #deded9;

    background: #fff;

    transition:
        transform .35s ease,
        border-color .35s ease,
        box-shadow .35s ease;
}

.certification-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 3px;
    height: 0;

    background: rgb(237, 149, 13);

    transition:
        height .4s ease;
}

.certification-card:hover {
    border-color: #d4d4ce;

    transform: translateY(-5px);

    box-shadow:
        0 18px 45px rgba(0, 0, 0, .07);
}

.certification-card:hover::before {
    height: 100%;
}


/* =========================================================
   NUMERO
========================================================= */

.certification-number {
    flex-shrink: 0;

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

    letter-spacing: 1px;

    color: rgb(237, 149, 13);
}


/* =========================================================
   CONTENUTO
========================================================= */

.certification-content {
    display: flex;
    flex-direction: column;

    flex: 1;
}

.certification-label {
    display: block;

    margin-bottom: 15px;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.8px;
    text-transform: uppercase;

    color: #999;
}

.certification-content h3 {
    max-width: 430px;

    margin-bottom: 18px;

    font-size: 25px;
    font-weight: 500;

    line-height: 1.2;
    letter-spacing: -.6px;

    color: #222;
}

.certification-reference {
    margin-bottom: auto;

    font-size: 13px;

    color: #888;
}

.certification-reference strong {
    color: #555;

    font-weight: 600;
}


/* =========================================================
   PULSANTE
========================================================= */

.certification-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    max-width: 250px;

    margin-top: 35px;
    padding: 13px 17px;

    border: 1px solid rgb(237, 149, 13);

    background: transparent;

    color: #222;

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;

    transition:
        background .25s ease,
        color .25s ease,
        box-shadow .25s ease,
        transform .25s ease;
}

.certification-button:hover {
    background: rgb(237, 149, 13);

    color: #fff;

    transform: translateX(3px);

    box-shadow:
        0 7px 18px rgba(237, 149, 13, .25);
}


/* =========================================================
   FRECCIA
========================================================= */

.certification-arrow {
    margin-left: 20px;

    font-size: 18px;
    font-weight: 400;

    line-height: 1;

    transition:
        transform .25s ease;
}

.certification-button:hover .certification-arrow {
    transform: translateX(5px);
}


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

@media (max-width: 800px) {

    .certifications {
        padding: 70px 0;
    }

    .certifications-container {
        width: min(100% - 40px, 1200px);
    }

    .certifications-grid {
        grid-template-columns: 1fr;
    }

    .certification-card {
        min-height: 280px;

        padding: 30px;

        gap: 25px;
    }

}


@media (max-width: 500px) {

    .certification-card {
        gap: 18px;

        padding: 25px;
    }

    .certification-number {
        font-size: 11px;
    }

    .certification-content h3 {
        font-size: 21px;
    }

    .certification-button {
        max-width: none;
    }

}
