.services-carousel-container {
    display: flex;
    flex-direction: column;
    align-items: right;
    gap: 12px;
    width: calc(80vw-16px);
    margin: 0;
}

.services-carousel {
    gap: 12px;
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: space-between;
    /* Distribuisce le schede */
    overflow-x: auto;
}

#services-grid {
    display: flex;
    flex-direction: column;
    gap: var(--sectionGap);
}

.services-card {
    display: flex;
    flex-direction: row;
    gap: var(--sectionGap);
    align-items: center;
    width: 100%;
}


.services-card-content {
    width: 70%;
    padding-right: 20px;
    color: var(--black, black);
    overflow-wrap: break-word;
}

.services-card-image-container-left {
    background-color: var(--secondaryColor);
    border-radius: var(--servicePageImageContainerLeft);
    height: var(--photoContainerHeight);
    width: var(--photoContainerWidth);
    overflow: hidden;
}

.services-card-image-container-right {
    background-color: var(--secondaryColor);
    border-radius: var(--servicePageImageContainerRight);
    height: var(--photoContainerHeight);
    width: var(--photoContainerWidth);
    overflow: hidden;
}

.services-card-date {
    font-size: 0.9vw;
    font-weight: 300;
}

.services-card-title {
    font-size: 1.1vw;
    font-weight: 500;
    margin-top: 5px;
}

#services-list-grid-cards-loadBtn {
    align-self: center;
}

.services-card {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.services-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}


/* MEDIA QUERY per modalità mobile */
@media screen and (max-width: 768px) {
    .services-carousel-container {
        width: 100vw;
        /* Usa tutta la larghezza disponibile */
        padding: 0 0;
        /* Mantiene margini laterali */
    }

    .services-carousel {
        flex-wrap: nowrap;
        /* Impedisce che le schede vadano a capo */
        gap: 12px;
        overflow-x: scroll;
        /* Permette il touch scroll */
    }

    #services-grid {
        gap: var(--innerSectionTitlesGap);

    }

    .services-card {
        flex-direction: column;
        
        flex: 0 0 90%;
        /* Mantiene le schede leggibili */
        max-width: 90vw;
        min-width: 280px;
        height: 400px;
    }

    .services-card.odd-card {
        flex-direction: column-reverse;
    }

    .services-card-date {
        font-size: 16px;

    }

    .services-card-title {
        font-size: 24px;

    }

}