
/* ========== Expertise ========== */
:root{
    --scrolling-items-width : 175px;
    --scrolling-items-count : 6;
    --scrolling-items-gap : 40px;
    --scrolling-items-time : 10s;
    --scrolling-distance : 1.290px;/*(--scrolling-items-width + --scrolling-items-gap) * --scrolling-items-count*/
    --scrolling-speed : 129; /*--scrolling-distance / --scrolling-items-time*/
    --time-per-scrilling-item: 1.666s/*(--scrolling-items-width+--scrolling-items-gap)/--scrolling-speed*/
}

@media(max-width: 1300px){
    .expertise-list{
        flex-direction: column;
    }
}
@media(min-width: 1300px){
    .expertise-list{
        flex-direction: row;
        gap:20px
    }
}

.section#my_expertise{
    border-top: 1px solid #AAA;
    margin-top: 150px;
}

.expertise-list{
    display: flex;
    margin-top: 100px;
    /* width: 70%; */
    justify-content: space-between;
}

.expertise{
    display: flex;
    max-width: 20em;
    align-items: start;
    margin: 0;
}

.expertise-text{
    display: flex;
    flex-direction: column;
    text-align: start;
    font-size: 20px;
}

.expertise-text h3{
    font-size:22px;
    margin: 0;
}

.libraries{
    margin-top: 100px;
    padding-top: 50px;
    padding-bottom: 50px;
    display: flex;
    background-color: #FFF;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: hidden;    
}


@media(min-width:1290px) {
    .scrolling-element{
        width: var(--scrolling-items-width);
    }
    .libraries-grid{
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap:40px;
    }
}

@media(max-width:1290px) {
    .scrolling-element{
        width: var(--scrolling-items-width);
        position: absolute;
    }
    .libraries-grid{
        width: 100%;
        height: 35px;
        overflow: hidden;
        position: relative;
    }
    .scrolling-element{
        right: -50%;
        animation: scroll-left 10s linear infinite;
        transform: translateX(100%);
    }
    .s1{
        animation-delay: 0s;
    }
    .s2{
        animation-delay: calc(var(--time-per-scrilling-item) * 1);
    }
    .s3{
        animation-delay: calc(var(--time-per-scrilling-item) * 2);
    }
    .s4{
        animation-delay: calc(var(--time-per-scrilling-item) * 3);
    }
    .s5{
        animation-delay: calc(var(--time-per-scrilling-item) * 4);
    }
    .s6{
        animation-delay: calc(var(--time-per-scrilling-item) * 5);
    }
}



@keyframes scroll-left {
  0% {
    right: 0%;
    
  }
  100% {
    right: 1290px;
  }
}

.libraries-grid img{
  height: 35px;
}

.libraries-grid div{
    display: flex;
    justify-content: center; /* Centra orizzontalmente i suoi figli */
    align-items: center; /* Centra verticalmente i suoi figli */
}