/* =========================================================
GROUPINTOWN - HOME INTRO V3

Tutte le classi utilizzano il prefisso "git-"
per ridurre il rischio di conflitti con il sito esistente.

DESKTOP:
- 4 elementi sulla stessa riga

MOBILE:
- 2 elementi per riga (2 + 2)
========================================================= */


/* =========================================================
   CONTENITORE GENERALE
========================================================= */

.git-home-intro {
    width: 100%;
    background: #ffffff;
    padding: 28px 0 15px;
    border-bottom: 1px solid #ededed;
}


/* =========================================================
   H1
========================================================= */

.git-home-intro__title {
    max-width: 1100px;

    margin: 0 auto;
    padding: 0 15px;

    color: #092f6c;

    font-size: 32px;
    line-height: 1.25;

    font-weight: 700;

    letter-spacing: -0.35px;
}


/* =========================================================
   LINEA ARANCIONE
========================================================= */

.git-home-intro__line {
    display: block;

    width: 38px;
    height: 3px;

    margin: 10px auto 13px;

    background: #ff8a00;

    border-radius: 3px;
}


/* =========================================================
   TESTO INTRODUTTIVO
========================================================= */

.git-home-intro__description {
    max-width: 900px;

    margin: 0 auto 20px;
    padding: 0 15px;

    color: #586173;

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

    font-weight: 400;
}


/* =========================================================
   4 ELEMENTI DI FIDUCIA
   IMPORTANTE:
   CSS GRID - NON DIPENDE DALLE COLONNE BOOTSTRAP
========================================================= */

.git-home-trust-points {
    width: calc(100% - 30px);
    max-width: 1100px;

    margin: 0 auto 12px;

    padding-top: 11px;

    display: grid;

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

    align-items: stretch;

    border-top: 1px solid #e5e8ed;
}


/* =========================================================
   SINGOLO ELEMENTO
========================================================= */

.git-trust-item {
    min-width: 0;
    min-height: 62px;

    display: flex;

    align-items: center;

    padding: 6px 16px;

    border-right: 1px solid #e1e5ea;
}


/* elimina separatore ultimo elemento */
.git-trust-item:last-child {
    border-right: 0;
}


/* =========================================================
   ICONA
========================================================= */

.git-trust-icon {
    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    display: flex;

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

    margin-right: 10px;

    background: #f3f7fb;

    border-radius: 50%;
}


/* SVG */
.git-trust-icon svg {
    width: 24px;
    height: 24px;

    fill: none;

    stroke: #092f6c;

    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   TESTI DEI 4 ELEMENTI
========================================================= */

.git-trust-copy {
    min-width: 0;

    text-align: left;
}


.git-trust-copy strong {
    display: block;

    margin: 0 0 3px;

    color: #092f6c;

    font-size: 14px;
    line-height: 1.2;

    font-weight: 700;
}


.git-trust-copy span {
    display: block;

    margin: 0;

    color: #667080;

    font-size: 11.5px;
    line-height: 1.3;
}


/* =========================================================
   TRUSTPILOT
========================================================= */

.git-trustpilot-static {
    max-width: 1100px;

    margin: 0 auto;

    padding: 12px 0 0;

    border-top: 1px solid #e5e8ed;
}


/* link contenitore */
.git-trustpilot-static > a {
    min-height: 60px;

    display: flex;

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

    gap: 20px;

    padding: 10px 28px;

    border: 1px solid #dce1e7;

    border-radius: 7px;

    background: #ffffff;

    color: #303846;

    text-decoration: none !important;

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


.git-trustpilot-static > a:hover,
.git-trustpilot-static > a:focus {
    border-color: #cbd2da;

    box-shadow:
        0 3px 12px rgba(9, 47, 108, 0.06);

    text-decoration: none !important;
}


/* =========================================================
   BRAND TRUSTPILOT
========================================================= */

.git-tp-brand {
    display: inline-flex;

    align-items: center;

    white-space: nowrap;
}


.git-tp-brand-star {
    margin-right: 6px;

    color: #00b67a;

    font-size: 31px;
    line-height: 1;
}


.git-tp-name {
    color: #191919;

    font-size: 21px;
    line-height: 1;

    font-weight: 600;
}


/* =========================================================
   STELLE TRUSTPILOT
========================================================= */

.git-tp-stars {
    display: inline-flex;

    align-items: center;

    gap: 2px;

    white-space: nowrap;
}


.git-tp-stars > span {
    width: 28px;
    height: 28px;

    display: inline-flex;

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

    background: #00b67a;

    color: #ffffff;

    font-size: 19px;
    line-height: 1;
}


/* quinta stella parziale */
.git-tp-stars > .git-tp-star-partial {
    background:
        linear-gradient(
            to right,
            #00b67a 60%,
            #d9dde2 60%
        );
}


/* =========================================================
   SCORE
========================================================= */

.git-tp-score {
    color: #404957;

    font-size: 15px;

    white-space: nowrap;
}


.git-tp-score strong {
    color: #092f6c;

    font-weight: 700;
}


.git-tp-dot {
    margin: 0 8px;

    color: #092f6c;
}


/* =========================================================
   LINK RECENSIONI
========================================================= */

.git-tp-link {
    display: inline-flex;

    align-items: center;

    padding-left: 24px;

    border-left: 1px solid #e0e4e9;

    color: #092f6c;

    font-size: 14px;

    font-weight: 600;

    white-space: nowrap;
}


.git-tp-link svg {
    width: 18px;
    height: 18px;

    margin-left: 8px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;
}


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

@media (max-width: 991px) {

    .git-home-intro__title {
        font-size: 28px;
    }


    .git-trust-item {
        padding-left: 10px;
        padding-right: 10px;
    }


    .git-trustpilot-static > a {
        justify-content: center;

        flex-wrap: wrap;

        gap: 12px 18px;
    }


    .git-tp-link {
        padding-left: 0;

        border-left: 0;
    }

}


/* =========================================================
   MOBILE
   2 ELEMENTI PER RIGA
========================================================= */

@media (max-width: 767px) {

    .git-home-intro {
        padding: 21px 0 12px;
    }


    .git-home-intro__title {
        padding: 0 18px;

        font-size: 23px;
        line-height: 1.28;
    }


    .git-home-intro__description {
        margin-bottom: 14px;

        padding: 0 20px;

        font-size: 14px;
        line-height: 1.5;
    }


    /* 2 colonne */
    .git-home-trust-points {
        width: calc(100% - 20px);

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

        margin-bottom: 8px;

        padding-top: 7px;
    }


    .git-trust-item {
        min-height: 68px;

        padding: 7px 8px;
    }


    /* togli separatore a destra sul 2° */
    .git-trust-item:nth-child(2) {
        border-right: 0;
    }


    /* seconda riga */
    .git-trust-item:nth-child(3),
    .git-trust-item:nth-child(4) {
        border-top: 1px solid #edf0f3;
    }


    /* ultimo elemento */
    .git-trust-item:nth-child(4) {
        border-right: 0;
    }


    .git-trust-icon {
        flex: 0 0 36px;

        width: 36px;
        height: 36px;

        margin-right: 7px;
    }


    .git-trust-icon svg {
        width: 20px;
        height: 20px;
    }


    .git-trust-copy strong {
        font-size: 12px;
    }


    .git-trust-copy span {
        font-size: 10px;
    }


    /* Trustpilot mobile */
    .git-trustpilot-static {
        margin-left: 10px;
        margin-right: 10px;

        padding-top: 9px;
    }


    .git-trustpilot-static > a {
        min-height: auto;

        justify-content: center;

        gap: 9px 12px;

        padding: 12px 10px;
    }


    .git-tp-brand-star {
        font-size: 26px;
    }


    .git-tp-name {
        font-size: 18px;
    }


    .git-tp-stars > span {
        width: 24px;
        height: 24px;

        font-size: 16px;
    }


    .git-tp-score {
        width: 100%;

        text-align: center;

        font-size: 13px;
    }


    .git-tp-link {
        width: 100%;

        justify-content: center;

        padding-left: 0;

        border-left: 0;

        font-size: 13px;
    }

}


/* =========================================================
   MOBILE MOLTO PICCOLO
   RESTA SEMPRE 2 COLONNE
========================================================= */

@media (max-width: 420px) {

    .git-home-intro__title {
        font-size: 21px;
    }


    /*
    IMPORTANTE:
    NON impostare width:100% sui singoli elementi.
    Devono restare 2 per riga.
    */

    .git-trust-item {
        padding: 7px 5px;
    }


    .git-trust-icon {
        flex-basis: 34px;

        width: 34px;
        height: 34px;

        margin-right: 6px;
    }


    .git-trust-copy strong {
        font-size: 11.5px;
    }


    .git-trust-copy span {
        font-size: 9.5px;
    }

}
