.image-section {
    background-color: #ffffff;
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 8px 25px var(--shadow-light);
    margin: 40px auto;
    width: 100%;
    border-radius: 12px;
}

.image-section h2 {
    font-size: 2.8em;
    color: var(--color-primary);
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: none;
}

.image-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.cards-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 10px;
    justify-content: flex-start;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.image-card {
    flex: 0 0 auto;
    width: 80%;
    max-width: 300px;
    height: auto;
    background-color: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 20px var(--shadow-medium);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid var(--orange-lighter);
    display: flex;
    flex-direction: column;
}


.image-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px var(--shadow-strong);
}

.image-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.bg {
    background-image: url(./img/rm222batch2-mind-03.jpg);
    padding: 40px 10px;
}

@media (min-width: 768px) {
    .image-card {
        width: calc(50% - 30px);
    }
}

@media (min-width: 1024px) {
    .image-card {
        max-width: 500px;
    }
}

@media only screen and (max-width: 600px) {
    .image-section {
        padding: 40px 15px;
        margin: 30px auto;
    }

    .image-section h2 {
        font-size: 2.2em;
        margin-bottom: 25px;
    }

    .image-section h2::after {
        width: 60px;
        height: 3px;
    }

    .cards-container {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 15px;
        padding-bottom: 10px;
    }

    .image-card {
        flex: 0 0 auto;
        width: 80%;
        max-width: 200px;
        height: auto;
        border: 1px solid var(--orange-lighter);
        display: flex;
        flex-direction: row;
    }

    .image-card img {
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
    }
}


@media only screen and (min-width: 601px) and (max-width: 768px) {
    .image-section {
        padding: 50px 20px;
        margin: 35px auto;
    }

    .image-section h2 {
        font-size: 2.5em;
        margin-bottom: 30px;
    }

    .image-card {
        max-width: 350px;
        height: auto;
    }

    .image-card img {
        height: 100%;
    }
}

@media only screen and (min-width: 769px) and (max-width: 1024px) {
    .image-section {
        padding: 50px 30px;
        margin: 40px auto;
    }

    .image-section h2 {
        font-size: 2.6em;
        margin-bottom: 35px;
    }

    .image-card {
        max-width: 400px;
        height: auto;
    }
}

@media (min-width: 1025px) {
    .cards-container {
        flex-wrap: wrap;
        justify-content: center;
        overflow-x: visible;
    }

    .image-card {
        width: calc(33.333% - 20px);
        max-width: 350px;
    }
}







/* gestione sezione fibra */

.servizi-section {
    background-color: #ffffff;
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 8px 25px var(--shadow-light);
    margin: 40px auto;
    width: 100%;
    border-radius: 12px;
    background-image: url(./img/pastel-8477460_1280.jpg);
}

.servizi-section h2 {
    font-size: 2.8em;
    color: white;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: none;
}

.servizi-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.servizi-card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.servizi-card {
    background-color: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 20px var(--shadow-medium);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    width: 90%;
    max-width: 600px;
    border: 1px solid var(--orange-lighter);
}

.servizi-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}