:root{
    --SFUMATURA-GIALLA-YOU: linear-gradient(90deg, #F2B724 0%, #DF7000 100%);
}

.s4u_home_testo{
    padding: 90px 120px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.s4u_home_testo h2{
    margin: 0;
    font-family: "Onest", sans-serif;
    font-size: var(--Size-XL, 48px);
    font-style: normal;
    font-weight: 700;
    line-height: 110%
}

.s4u_home_testo p{
    margin: 0;
    font-family: "Onest", sans-serif;
    font-size: var(--Size-M, 20px);
    font-style: normal;
    font-weight: 500;
    line-height: 120%; /
}

.s4u_cover{
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 90px 120px;
}

.s4u_cover figure {
    margin: 0;
}

.s4u_cover figure{
    max-width: 220px;
    aspect-ratio: 22/3;
    width: 100%;
}

.s4u_cover h1{
    margin: 0;
    font-family: "Onest", sans-serif;
    font-size: var(--Size-3XL, 96px);
    font-style: normal;
    font-weight: 700;
    line-height: 110%;
}

.s4u_cover h1 em{
    background: var(--SFUMATURA-GIALLA-YOU);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-style: normal;
}

.s4u_cover p{
    margin: 0;
    font-family: "Onest", sans-serif;
    font-size: var(--Size-L, 32px);
    font-style: normal;
    font-weight: 700;
    line-height: 110%;
}

.s4u-services-list-section h2{
    color: var(--BLACK, #001D3D);

    font-family: "Onest", sans-serif;
    font-size: var(--Size-3XL, 96px);
    font-style: normal;
    font-weight: 700;
    line-height: 110%;
    margin: 60px 120px;
}

.s4u-services-list-section h2:before{
    margin-bottom: 30px;
    width: fit-content;
    content: "START4.YOU";
    color: var(--WHITE);
    text-align: center;

    font-family: "Onest", sans-serif;
    font-size: var(--Size-XS, 14px);
    font-style: normal;
    font-weight: 700;
    line-height: 120%;

    display: flex;
    height: 28px;
    padding: 5px 15px;
    justify-content: center;
    align-items: center;
    gap: 10px;

    border-radius: 30px;
    background: var(--SFUMATURA-GIALLA-YOU, linear-gradient(90deg, #F2B724 0%, #DF7000 100%));
}


/* Single START4YOU */

.s4u-single-service .s4u-header{
    padding: 0;
    margin: 0;
    background-size: cover;
}

.s4u-single-service .s4u-header .container{
    max-width: 50%;
    padding: 90px 120px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.s4u-single-service .s4u-header .container img{
    max-height: 30px;
    margin-bottom: 15px;
}

.s4u-single-service .s4u-header .container p{
    text-align: left;

    color: var(--BLACK, #001D3D);
    /* P */
    font-family: "Onest", sans-serif;
    font-size: var(--Size-M, 20px);
    font-style: normal;
    font-weight: 500;
    line-height: 120%;

    margin: 0 0 60px;
}

.s4u-actions{
    display: flex;
    gap: 15px;
}

.s4u-grid .s4u-targets{
    padding: 90px 120px;
    background: var(--BLACK);
}

.s4u-single-service .s4u-header .itemCat{
    padding: 5px 15px;
    justify-content: center;
    align-items: center;
    border-radius: 30px;
    background: linear-gradient(90deg, rgba(242, 183, 36, 0.33) 0%, rgba(223, 112, 0, 0.33) 100%);

    color: var(--BLUE, #003566);
    text-align: center;
    font-family: "Onest", sans-serif;
    font-size: var(--Size-XS, 14px);
    font-style: normal;
    font-weight: 700;
    line-height: 120%;

}

.s4u-single-service .s4u-header .container h1{
    color: var(--BLUE-START, #1E2F58);
    /* H1 */
    font-family: "Onest", sans-serif;
    font-size: var(--Size-2XL, 64px);
    font-style: normal;
    font-weight: 700;
    line-height: 110%;
    text-align: left;

    margin: 30px 0 60px;
}

.wp-element-button {
    display: flex;
    padding: 30px 60px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 50px;
    border: 1px solid var(--Black-25);
    color: var(--BLACK);
    background: none;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
}

.wp-element-button:hover {
    border-radius: 50px;
    background: var(--GRIGIO);
    box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.10) inset;
}

.highlights .wp-element-button {
    background: var(--GIALLO);
    border: 1px solid var(--GIALLO);
}

.highlights .wp-element-button:hover {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.10) 100%), #F5C125;
    box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.10) inset;
}

.s4u-targets{
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.s4u-targets-header{
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.s4u-targets-header h2{
    color: var(--WHITE, #FEFEFE);
    font-family: "Onest", sans-serif;
    font-size: var(--Size-XL, 48px);
    font-style: normal;
    font-weight: 700;
    line-height: 110%;
    margin: 0;
}

.s4u-targets-header:before, .s4u-offers:before, .s4u-case-histories:before{
    margin-bottom: 0;
    width: fit-content;
    content: "START4.YOU";
    color: var(--WHITE);
    text-align: center;
    font-family: "Onest", sans-serif;
    font-size: var(--Size-XS, 14px);
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
    display: flex;
    height: 28px;
    padding: 5px 15px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 30px;
    background: var(--SFUMATURA-GIALLA-YOU, linear-gradient(90deg, #F2B724 0%, #DF7000 100%));
}

.s4u-targets .s4u-target-list{
    margin: 0;
    gap: 15px;
    display: flex;
    flex-direction: column;
}

.s4u-targets .s4u-target-list li{
    color: var(--WHITE, #FEFEFE);
    /* H4 */
    font-family: "Onest", sans-serif;
    font-size: var(--size-m, 26px);
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
    position: relative;
    padding-left: 60px;
}

ul.s4u-target-list {
    list-style: none;
    padding: 0;
}

.s4u-targets .s4u-target-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background-image: url('img/li.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

/* Cosa offre */
.s4u-offers{
    padding-top: 90px;
}

.s4u-offers h2, .s4u-case-histories h2 {
    color: var(--BLUE-START, #1E2F58);
    font-family: "Onest", sans-serif;
    font-size: var(--Size-XL, 48px);
    font-style: normal;
    font-weight: 700;
    line-height: 110%;
    margin-bottom: 0;
    margin-top: 15px;
    padding-left: 120px;
}

.s4u-offers:before{
    margin-left: 120px;
}

.s4u-offer-item{
    padding-top: 60px;
    padding-bottom: 60px;
}


.s4u-offers-grid {
    list-style: none;
    counter-reset: item;
    padding-left: 20px;
}

.s4u-offers-grid li {
    counter-increment: item;
    margin-bottom: 10px;
    position: relative;
    display: flex;
}

.s4u-offers-grid li::before {
    content: counter(item, decimal-leading-zero);

    width: 75px;
    height: 75px;
    display: flex;
    aspect-ratio: 1;
    align-items: center;
    justify-content: center;
    margin-right: 30px;

    border: 6px solid transparent;
    background-image: linear-gradient(#fff, #fff), var(--SFUMATURA-GIALLA-YOU);

    background-origin: border-box;
    background-clip: padding-box, border-box;

    border-radius: 50%;

    color: var(--BLUE-START, #1E2F58);
    font-family: "Onest", sans-serif;
    font-size: var(--Size-L, 32px);
    font-style: normal;
    font-weight: 700;
    line-height: 110%
}

/* La linea gialla */
.s4u-offers-grid li::after {
    content: "";
    position: absolute;
    left: -100px;
    width: 100px;
    height: 3px;
    background: #F5C125;
    top: 96px;
    z-index: -1;
}

.s4u-offers-grid li h3 {
    color: var(--BLUE-START, #1E2F58);
    /* H3 */
    font-family: "Onest", sans-serif;
    font-size: var(--Size-L, 32px);
    font-style: normal;
    font-weight: 700;
    line-height: 110%;
    margin: 0;
    height: 75px;
    display: flex;
    align-items: center;
    padding-right: 120px;
}

.s4u-offers-grid li p{
    color: var(--BLACK, #001D3D);
    font-family: "Onest", sans-serif;
    font-size: var(--Size-M, 20px);
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
    left: 0;
    position: relative;
    margin: 30px 0 0;
    padding-right: 120px;
}

/* Case History */
.s4u-case-histories{
    padding:  60px 120px;

}

.s4u-case-histories h2{
    padding: 0;
    margin-bottom: 62px;
}

.s4u-cases-container{
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.s4u-case-card{
    border-radius: 75px;
    border: 1px solid var(--Black-25, #B6BFC7);
    background: var(--WHITE, #FEFEFE);
    display: flex;
    padding: var(--Spazio-Blocchi-Inner-text-space, 30px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: var(--Spazio-Blocchi-Inner-text-space, 30px);
    align-self: stretch;
}

.s4u-case-card .s4u-case-header{
    display: flex;
    gap: 30px;
    width: 100%;
}

.s4u-case-card .s4u-case-header img{
    border-radius: 60px;
    width: 90px;
    height: 90px;
    aspect-ratio: 1;
}

.s4u-case-card .s4u-case-header h3{
    color: var(--BLUE-START, #1E2F58);
    font-family: "Onest", sans-serif;
    font-size: var(--Size-L, 32px);
    font-style: normal;
    font-weight: 700;
    line-height: 110%;
    margin-bottom: 0;
    margin-top: 5px;
}

.s4u-case-card .s4u-case-header span{
    color: var(--BLUE-START, #1E2F58);
    font-family: "Onest", sans-serif;
    font-size: var(--Size-XS, 14px);
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
    text-transform: uppercase;
}

.s4u-case-title{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.s4u-case-body{
    padding: 0 120px;
    color: var(--BLACK, #001D3D);
    font-family: "Onest", sans-serif;
    font-size: var(--Size-M, 20px);
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
}

.s4u-case-body p{
    margin: 0;
}

.s4u-case-body h4{
    margin-top: 30px;
    margin-bottom: 30px;
    color: var(--Black-50, #738292);
    font-family: "Onest", sans-serif;
    font-size: var(--size-m, 26px);
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
    position: relative;
    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: center;
    gap: 30px;
    white-space: nowrap;
}

.s4u-case-body h4:after{
    content: "";
    height: 1px;
    width: 100%;
    position: relative;
    background: var(--Black-50, #738292);
}

.s4u-case-more{
    display: flex;
    width: 90px;
    height: 90px;
    padding: 15px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;

    border-radius: 50px;
    border: 1px solid var(--Ombra-15, #D9DDE1);
    background: var(--GRIGIO-CHIARO, #F0F1F3);

    cursor: pointer;

    transition: all 0.5s ease;
}

.s4u-case-card{
    position: relative;
    transition: all 0.5s ease;
    gap: 0;
}

.s4u-case-card .s4u-case-body{
    visibility: hidden;
    opacity: 0;
    max-height: 0;
    display: none;

    transition: all 0.5s ease;
}

.s4u-case-card.open{
    gap: 30px;
}

.s4u-case-card.open .s4u-case-body{
    visibility: visible;
    opacity: 1;
    max-height: 3000px;
    display: block;
}

.s4u-case-card .s4u-case-controller{
    width: 100%;
    display: flex;
    justify-content: flex-end;
    position: absolute;
    cursor: pointer;
}

.s4u-case-card.open .s4u-case-controller{
    position: relative;
}

.s4u-case-card.open .s4u-case-controller .s4u-case-more{
    transform: rotate(45deg);
}

/* List items */
.s4u-list-items{
    display: flex;
    flex-direction: column;
}

.s4u-list-items .s4u-item{
    border-top: 1px solid #E5E8EC;
    background: #FEFEFE;

    display: flex;
    flex-direction: row;
    gap: 60px;

    transition: all 0.5s ease;
}


.s4u-list-items a .s4u-item{
    padding: 60px 120px;
    display: flex;
    flex-direction: row;
    gap: 120px;
    align-items: center;
}

.s4u-list-items a .s4u-item .itemCat{
    color: var(--BLUE, #003566);
    width: fit-content;
    font-family: "Onest", sans-serif;
    font-size: var(--Size-XS, 14px);
    font-style: normal;
    font-weight: 700;
    line-height: 120%;

    display: flex;
    height: 27px;
    padding: 5px 15px;
    justify-content: center;
    align-items: center;
    gap: 10px;

    border-radius: 30px;
    background: linear-gradient(90deg, rgba(242, 183, 36, 0.33) 0%, rgba(223, 112, 0, 0.33) 100%);
}

.s4u-list-items .s4u-item .s4u-thumb{
    width: 120px;
    height: 120px;
    aspect-ratio: 1;
}

.s4u-list-items .s4u-item .s4u-thumb img{
    overflow: hidden;
    border-radius: 15px;
}

.s4u-list-items a .s4u-item h3{
    color: var(--BLACK, #001D3D) !important;
    font-family: "Onest", sans-serif;
    font-size: var(--Size-2XL, 64px);
    font-style: normal;
    font-weight: 700;
    line-height: 110%;
    margin-bottom: 0;
    margin-top: 5px;
}

.s4u-list-items a .s4u-item .s4u-item-arrow{
    display: flex;
    width: 90px;
    height: 90px;
    padding: 15px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    border-radius: 50px;
    border: 1px solid var(--Ombra-15, #D9DDE1);
    opacity: 0.5;
    transition: all 0.5s ease;
}

.s4u-list-items a:hover .s4u-item{
    background: var(--GRIGIO-CHIARO, #F0F1F3);
    box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.10) inset;
}

.s4u-list-items a:hover .s4u-item .s4u-item-arrow{
    background: var(--Ombra-15, #D9DDE1);
    opacity: 1;
}

.s4u-list-items a .s4u-item  .s4u-excerpt{
    color: var(--BLACK, #001D3D);
    font-family: "Onest", sans-serif;
    font-size: var(--Size-M, 20px);
    font-style: normal;
    font-weight: 500;
    line-height: 120%;

    max-height: 0;
    opacity: 0;
    visibility: hidden;

    transition: all 0.5s ease;
}

.s4u-list-items a:hover .s4u-item  .s4u-excerpt{
    visibility: visible;
    max-height: 500px;
    opacity: 1;
}

.searchButton a, .languageButton{
    flex-direction: row;
}

/*Tablet*/
@media (min-width: 768px) and (max-width: 1024px) {
    .s4u-single-service .s4u-header .container{
        padding: 60px;
    }

    .s4u-actions{
        flex-direction: column;
    }

    .wp-block-button{
        width: fit-content;
    }

    .s4u-single-service .s4u-header{
        background-position: bottom;
    }
}

/*Mobile*/
@media (max-width: 767px) {
    .s4u_cover{
        padding: 30px;
    }

    .s4u_home_testo{
        padding: 30px;
    }

    .s4u-services-list-section h2{
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 30px;
    }

    .s4u-list-items a .s4u-item{
        padding: 30px 20px;
        gap: 20px;
    }

    .s4u-list-items a .s4u-item h3{
        font-size: var(--Size-L, 24px);
    }

    .s4u-list-items .s4u-item .s4u-thumb{
        width: 60px;
        height: 60px;
    }

    .s4u-list-items a .s4u-item .s4u-item-arrow{
        height: 15px;
        width: 7.5px;
        border: none;
        opacity: 1;
        padding: 0;
    }

    .s4u-list-items a .s4u-item .s4u-excerpt{
        display: none;
    }

    /*Single*/
    .s4u-single-service .s4u-header .container{
        padding: 30px;
        max-width: 100%;
    }

    .s4u-single-service .s4u-header{
        background-position: bottom;
    }

    .s4u-actions{
        flex-direction: column;
    }

    .s4u-actions .wp-block-button{
        width: fit-content;
    }

    .s4u-single-service .s4u-header .container h1, .s4u-single-service .s4u-header .container p{
        margin-bottom: 30px;
    }

    .s4u-grid .s4u-targets{
        padding: 30px;
    }

    .s4u-offers{
        padding-top: 30px;
    }

    .s4u-offers h2, .s4u-case-histories h2{
        padding-left: 30px;
    }

    .s4u-targets-header:before, .s4u-offers:before, .s4u-case-histories:before{
        margin-left: 30px;
    }

    .s4u-offers-grid li{
        flex-direction: column;
        padding-top: 30px;
        gap: 15px;
        margin-bottom: 0;
    }

    .s4u-offers-grid li::after{
        top: 67px;
    }

    .s4u-offers-grid li p{
        padding-right: 30px
    }

    .s4u-offers-grid li h3{
        padding-right: 30px;
    }

    .s4u-offers-grid{
        padding-left: 30px;
        margin-left: 0;
        margin-bottom: 0;
    }

    .s4u-case-histories{
        padding: 30px;
    }

    .s4u-case-histories:before{
        margin: 0;
    }

    .s4u-case-histories h2{
        margin-bottom: 30px;
        padding-left: 0;
    }

    .s4u-cases-container{
        gap: 15px;
    }

    .s4u-case-card{
        border-radius: 60px;
    }

    .s4u-case-card.open{
        gap: 15px;
    }

    .s4u-case-card .s4u-case-body{
        padding-left: 0;
        padding-right: 0;
    }
}
