.services {
    height: 500px;
    text-align: center;
    background-image: url('../img/img-servizi.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
}

.services-title {
    font-size: 3rem;
    color: #000;
    margin-bottom: 50px;
    letter-spacing: 3px;
    position: relative;
}

.services-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 50px;
}

.services-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-btn {
    background: #000;
    border: 1px solid #fff;
    color: #fff;
    padding: 15px 25px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
}

.service-btn.active {
    background: #008fbf;
    color: #fff;
    transform: translateX(5px);
}

.services-content {
    position: relative;
    width: 50%;
    min-height: 200px;
}

.service-content {
    display: none;
    /* invisibile di default */
    transform: translateY(20px);
    transition: transform 0.5s ease, opacity 0.5s ease;
    background-color: #000;
    box-shadow: 0 0 10px #ffffff43, 0 0 20px #ffffff43, 0 0 30px #ffffff43, 0 0 40px #ffffff43;
    color: #fff;
    border-radius: 20px;
    padding: 2em;
    overflow: hidden;
}

.service-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 255, 0, 0) 0%, rgba(0, 191, 255, 0.301) 50%, rgba(0, 255, 0, 0) 100%);
    transform: skewX(-20deg);
    pointer-events: none;
}

.service-content.active::before {
    animation: slideLine 1s ease forwards;
}

@keyframes slideLine {
    from {
        left: -50%;
    }

    to {
        left: 100%;
    }
}

.service-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.service-content h3 {
    color: #fff;
    text-align: start;
}

.service-content p {
    color: #fff;
    font-size: 1em;
    line-height: 1.6;
    text-align: start;
}

.service-content ul {
    text-align: start;
}

.service-list {
    list-style-type: square;
}

@media only screen and (max-width: 1024px) {
    .services-content{
        width: 59%;
    }
}

@media only screen and (max-width: 993px) {
    .services{
        height: auto;
    }

    .services-buttons{
        flex-direction: row;
    }

    .services-container{
        flex-direction: column;
        padding: 1em;
        align-items: center;
    }

    .services-content{
        width: 100%;
    }
    
    .service-btn.active{
        transform: translateX(0);
    }

    .service-content{
        padding: 1.5em;
    }
    
}

@media only screen and (max-width: 600px) {
    .services-buttons{
        flex-direction: column;
    }

    .services-title{
        margin-bottom: 30px;
    }
}