/* ===== SEZIONE COMMENTI UTENTI - GRID VERSION ===== */

.commenti-section {
    padding: 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.commenti-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ===== HEADER SEZIONE ===== */
.commenti-header {
    text-align: center;
    margin-bottom: 4rem;
}

.commenti-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    /* Gradient brand coerente con le altre sezioni */
    background: linear-gradient(135deg, #327fa8 0%, #4a9bc7 70%, #F2A93B 95%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    filter: drop-shadow(0 2px 4px rgba(50, 127, 168, 0.3));
}

.commenti-subtitle {
    font-size: 1.2rem;
    color: white;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== GRID COMMENTI ===== */
.commenti-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* ===== CARD COMMENTO ===== */
.commento-card {
    width: 100%;
}

.commento-content {
    /* Glassmorphism coerente con le altre sezioni */
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(50, 127, 168, 0.2);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(16px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.commento-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(50, 127, 168, 0.4), rgba(50, 127, 168, 0.2));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask-composite: xor;
}

/* ===== TESTO COMMENTO ===== */
.commento-text {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-style: italic;
    position: relative;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== AUTORE COMMENTO ===== */
.commento-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: auto;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #327fa8, #4a9bc7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(50, 127, 168, 0.3);
    flex-shrink: 0;
}

.author-name {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Desktop Large */
@media (min-width: 1200px) {
    .commenti-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

/* Desktop */
@media (min-width: 992px) and (max-width: 1199px) {
    .commenti-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
    .commenti-section {
        padding: 3rem 2rem;
    }
    
    .commenti-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .commento-content {
        padding: 2rem 1.5rem;
    }
    
    .commento-text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .author-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .author-name {
        font-size: 0.9rem;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .commenti-section {
        padding: 2rem 1rem;
    }
    
    .commenti-header {
        margin-bottom: 3rem;
    }
    
    .commenti-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .commento-content {
        padding: 2rem 1.5rem;
        border-radius: 15px;
    }
    
    .commento-text {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }
    
    .author-avatar {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .author-name {
        font-size: 0.85rem;
    }
    
    .commento-author {
        gap: 0.8rem;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .commenti-section {
        padding: 2rem 0.5rem;
    }
    
    .commenti-grid {
        gap: 1rem;
    }
    
    .commento-content {
        padding: 1.5rem 1rem;
    }
    
    .commento-text {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }
    
    .author-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .author-name {
        font-size: 0.8rem;
    }
}

/* ===== ACCESSIBILITÀ ===== */

/* Riduzione movimento per utenti che lo preferiscono */
@media (prefers-reduced-motion: reduce) {
    .commento-content {
        transition: none;
    }
}

/* Miglior contrasto per modalità alto contrasto */
@media (prefers-contrast: high) {
    .commento-content {
        border: 2px solid rgba(50, 127, 168, 0.8);
        background: rgba(0, 0, 0, 0.8);
    }
    
    .commento-text {
        color: rgba(255, 255, 255, 1);
    }
    
    .author-name {
        color: rgba(255, 255, 255, 1);
    }
}