/* ==========================================
   CSS COMPLETO PER GRIGLIA TESTIMONIANZE
   VERSIONE FINALE E COMPLETA
   ========================================== */

/* Sezione principale */
.testimonials-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background-color: var(--white);
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/quotes-pattern.png');
    background-repeat: repeat;
    background-size: 300px;
    opacity: 0.03;
    z-index: 0;
}

/* Griglia testimonianze */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

/* Card testimonianza */
.testimonial-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    padding: 25px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 280px;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--adse-blue);
    border-radius: 8px 0 0 8px;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Header della card */
.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(44, 146, 177, 0.1);
    flex-shrink: 0;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    background-color: rgba(44, 146, 177, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.testimonial-avatar i {
    font-size: 24px;
    color: var(--adse-blue);
}

.testimonial-info {
    flex-grow: 1;
}

.testimonial-info h4 {
    margin: 0;
    color: var(--adse-grey);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Contenuto della testimonianza */
.testimonial-content {
    flex-grow: 1;
    margin-bottom: 15px;
    position: relative;
    padding: 5px 10px;
    display: flex;
    align-items: flex-start;
}

.testimonial-content::before {
    content: '\f10d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: -5px;
    left: -5px;
    font-size: 14px;
    color: rgba(44, 146, 177, 0.2);
}

.testimonial-content::after {
    content: '\f10e';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    bottom: -5px;
    right: -5px;
    font-size: 14px;
    color: rgba(44, 146, 177, 0.2);
}

.testimonial-content p {
    font-style: italic;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Footer della card */
.testimonial-footer {
    text-align: center;
    margin-top: auto;
    flex-shrink: 0;
    padding-top: 15px;
    border-top: 1px solid rgba(44, 146, 177, 0.1);
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background-color: var(--adse-blue);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid var(--adse-blue);
}

.read-more-btn::after {
    content: '\f054';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 10px;
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.read-more-btn:hover {
    background-color: var(--white);
    color: var(--adse-blue);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 146, 177, 0.3);
}

.read-more-btn:hover::after {
    transform: translateX(3px);
}

/* ==========================================
   STILI PER I MODAL - COMPLETI
   ========================================== */

/* Overlay del modal */
.modal {
    z-index: 1050;
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Contenitore del modal */
.modal-dialog {
    max-width: 800px;
    margin: 30px auto;
}

.modal-content {
    border: none;
    border-radius: 10px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Header del modal */
.modal-header {
    background: linear-gradient(135deg, var(--adse-blue) 0%, var(--adse-dark-blue) 100%);
    color: var(--white);
    border-bottom: none;
    padding: 20px 25px;
    position: relative;
}

.modal-title {
    font-weight: 700;
    color: var(--white);
    margin: 0;
    font-size: 1.3rem;
}

.modal-header .close {
    color: var(--white);
    opacity: 0.9;
    text-shadow: none;
    font-size: 1.8rem;
    font-weight: 300;
    margin: -1rem -1rem -1rem auto;
    padding: 1rem;
}

.modal-header .close:hover {
    opacity: 1;
    color: var(--white);
}

/* Body del modal */
.modal-body {
    padding: 30px;
    background-color: #fafafa;
    max-height: 70vh;
    overflow-y: auto;
}

/* Stili per le domande */
.modal-question {
    margin-bottom: 25px;
    padding: 20px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--adse-blue);
}

.modal-question:last-child {
    margin-bottom: 0;
}

.modal-question h6 {
    color: var(--adse-blue);
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.modal-question h6::before {
    content: '\f059';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 10px;
    color: rgba(44, 146, 177, 0.6);
    font-size: 1rem;
}

.modal-question p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 0;
    font-size: 0.95rem;
    text-align: justify;
}

/* Footer del modal */
.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 20px 25px;
    background-color: #f8f9fa;
}

.modal-footer .btn {
    min-width: 100px;
    font-weight: 600;
}

.modal-footer .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

.modal-footer .btn-secondary:hover {
    background-color: #545b62;
    border-color: #4e555b;
}

/* Animazioni per il modal */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: none;
}

/* ==========================================
   RESPONSIVE DESIGN COMPLETO
   ========================================== */

/* Desktop large */
@media screen and (min-width: 1400px) {
    .testimonials-grid {
        gap: 35px;
    }

    .testimonial-card {
        min-height: 300px;
    }
}

/* Desktop standard */
@media screen and (max-width: 1399px) and (min-width: 1200px) {
    .testimonials-grid {
        gap: 30px;
    }
}

/* Tablet large (landscape) */
@media screen and (max-width: 1199px) and (min-width: 993px) {
    .testimonials-grid {
        gap: 25px;
    }

    .testimonial-card {
        min-height: 290px;
        padding: 22px;
    }
}

/* Tablet portrait */
@media screen and (max-width: 992px) {
    .testimonials-section {
        padding: 70px 0;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .testimonial-card {
        min-height: 280px;
        padding: 20px;
    }

    .testimonial-content p {
        font-size: 0.92rem;
    }
}

/* Mobile landscape */
@media screen and (max-width: 768px) {
    .testimonials-section {
        padding: 60px 0;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .testimonial-card {
        padding: 18px;
        min-height: 260px;
    }

    .testimonial-avatar {
        width: 45px;
        height: 45px;
    }

    .testimonial-avatar i {
        font-size: 22px;
    }

    .testimonial-content p {
        font-size: 0.9rem;
    }

    .testimonial-info h4 {
        font-size: 1rem;
    }

    .read-more-btn {
        font-size: 0.85rem;
        padding: 6px 14px;
    }

    /* Modal responsive */
    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }

    .modal-body {
        padding: 20px;
        max-height: 60vh;
    }

    .modal-question {
        padding: 15px;
        margin-bottom: 20px;
    }

    .modal-question h6 {
        font-size: 1rem;
    }

    .modal-question p {
        font-size: 0.9rem;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-title {
        font-size: 1.2rem;
    }

    .modal-footer {
        padding: 15px 20px;
    }
}

/* Mobile portrait */
@media screen and (max-width: 576px) {
    .testimonials-section {
        padding: 50px 0;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonial-card {
        padding: 15px;
        min-height: 240px;
    }

    .testimonial-avatar {
        width: 42px;
        height: 42px;
    }

    .testimonial-avatar i {
        font-size: 20px;
    }

    .testimonial-content p {
        font-size: 0.88rem;
        line-height: 1.5;
    }

    .testimonial-info h4 {
        font-size: 0.95rem;
    }

    .read-more-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    /* Modal mobile portrait */
    .modal-dialog {
        margin: 5px;
        max-width: calc(100% - 10px);
    }

    .modal-body {
        padding: 15px;
        max-height: 50vh;
    }

    .modal-question {
        padding: 12px;
        margin-bottom: 15px;
    }

    .modal-question h6 {
        font-size: 0.95rem;
    }

    .modal-question h6::before {
        font-size: 0.9rem;
        margin-right: 8px;
    }

    .modal-question p {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .modal-header {
        padding: 12px 15px;
    }

    .modal-title {
        font-size: 1.1rem;
    }

    .modal-footer {
        padding: 12px 15px;
    }

    .modal-footer .btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

/* Mobile piccoli */
@media screen and (max-width: 375px) {
    .testimonials-section {
        padding: 40px 0;
    }

    .testimonials-grid {
        gap: 15px;
    }

    .testimonial-card {
        padding: 12px;
        min-height: 220px;
    }

    .testimonial-content p {
        font-size: 0.85rem;
    }

    .testimonial-info h4 {
        font-size: 0.9rem;
    }

    .read-more-btn {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
}

/* Mobile molto piccoli */
@media screen and (max-width: 320px) {
    .testimonials-section {
        padding: 35px 0;
    }

    .testimonials-grid {
        gap: 12px;
    }

    .testimonial-card {
        padding: 10px;
        min-height: 200px;
    }

    .testimonial-avatar {
        width: 38px;
        height: 38px;
    }

    .testimonial-avatar i {
        font-size: 18px;
    }

    .testimonial-content p {
        font-size: 0.8rem;
    }

    .testimonial-info h4 {
        font-size: 0.85rem;
    }
}