.testimonial-slider {
    max-width: 800px;
    width: 100%;
    padding: 2rem;
    margin: 0 auto;

}

.testimonial-slider h2{
    font-family: "Rufina", serif;
    color: #011826;
    font-size: 72px;
    text-align: center;
    line-height: 110px;
    letter-spacing:0.2px;
    font-style: normal;

}

.testimonial-slider .qm{
    text-align: center;
    position: relative;
    z-index: 1000;
    margin: 0px 0px -24px 0px;

}



.testimonial-container {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.testimonial-container .active {
    background-color: #fff;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    min-height: 270px; /* Altezza minima per evitare "salti" */
    padding: 32px;
}

.testimonial {
    display: none; /* Nascosto di default */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s ease-in-out;
}

.testimonial.active {
    display: flex; /* Mostra solo la slide attiva */
}

.testimonial-text {
    font-family: 'Brown';
    font-size: 14px;
    line-height: 24px;
    letter-spacing: 0.2px;
    text-decoration: none;
    color: #263A46;
    transition: color 0.3s;
    padding: 24px;
}

/*.testimonial-text::before,
.testimonial-text::after {
    font-family: 'Merriweather', serif;
    font-size: 4rem;
    color: #e0e0e0;
    position: absolute;
}

.testimonial-text::before {
    content: '“';
    top: -1rem;
    left: 0;
}

.testimonial-text::after {
    content: '”';
    bottom: -3rem;
    right: 0;
}*/

.testimonial-author {
    font-family: 'Brown';
    font-size: 16px;
    line-height: 24px;
    font-weight: bold;
    color: #011826; /* Colore rosso per il nome */
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.prev-btn, .next-btn {
    background:none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prev-btn:hover, .next-btn:hover {
}

.slide-counter {
    font-family: 'Brown';
    color: #011826;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 5px;
    text-align: center;
    min-width: 70px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


@media (max-width: 768px) {

    .testimonial-slider h2 {
        font-size: 51px;
        line-height: 56px;
    }

}