/* Contenitore del jcarousel */
.slider-container {
    display: flex;
    margin-top: 50px;
    background-color: #B52025;
    padding: 20px;
    border-radius: 8px;
}

/* Slider per le immagini */
.image-slider {
    width: 66%;
}

.image-slider img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

/* Slider per il testo */
.text-slider {
    width: 34%;
    color: white;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-slider p {
    text-align: justify;
    padding: 10px;
}

.text-slider a {
    color: #FFFF00;
    text-decoration: none;
    transition: color 0.3s ease;
}

.text-slider a:visited {
    color: #ffa500;
}

.text-slider a:hover {
    color: #ffa500;
    text-decoration: underline;
}

.slider-container {
    width: 100%;
}

.slide {
    display: flex;
    flex-wrap: wrap;
    background-color: #B52025;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.slide-image {
    width: 66%;
}

.slide-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.slide-text {
    width: 34%;
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
}

.slide-text p {
    background: rgba(0,0,0,0.35);
    padding: 15px;
    border-radius: 8px;
    text-align: justify;
}

@media (max-width: 768px) {
    .slide {
        flex-direction: column;
    }
    .slide-image,
    .slide-text {
        width: 100%;
    }
}

/* Contenitore dei riquadri grigi */
.gray-boxes-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
}

.gray-box {
    background-color: #d3d3d3;
    padding: 20px;
    border-radius: 8px;
    width: 32%;
    color: #333;
    font-size: 16px;
    background: linear-gradient(to top, #d3d3d3, #f0f0f0);
}

.box-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.box-header img {
    width: 50px;
    height: auto;
}

.box-header h3 {
    margin: 0;
    color: #B52025;
    font-size: 18px;
}

.gray-box p {
    margin: 0;
    line-height: 1.5;
}