/* Problemi Page Styles */

.problemi-page {
    background: #f8f9fa;
    overflow-x: clip;
    width: 100%;
}

/* Intro Section */
.problemi-intro {
    padding: 40px 1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Problemi Grid */
.problemi-grid-section {
    padding: 40px 1rem;
}

.problemi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Problema Card */
.problema-card {
    background: white;
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    min-height: auto;
    height: auto;
}

.problema-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(
        90deg,
        var(--aynix-primary-color),
        var(--aynix-secondary-color),
        var(--aynix-ternary-color)
    );
}

.problema-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.problema-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(
        135deg,
        var(--aynix-primary-color),
        var(--aynix-secondary-color)
    );
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.problema-icon i {
    font-size: 2rem;
    color: white;
}

.problema-card h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.problema-content {
    flex-grow: 1;
    margin-bottom: 20px;
}

.problema-desc {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.impatto {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid var(--aynix-ternary-color);
}

.impatto strong {
    color: var(--aynix-ternary-color);
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.impatto p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.problema-card .btn-primary {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    display: block;
    box-sizing: border-box;
    margin: 0;
}

/* CTA Section */
.problemi-cta {
    padding: 60px 0 80px;
}

/* Responsive */
@media (max-width: 1024px) {
    .problemi-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .problemi-intro {
        padding: 30px 1rem;
    }
    
    .problemi-grid-section {
        padding: 30px 1rem;
    }
    
    .problemi-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .problema-card {
        padding: 25px;
    }
    
    .problema-icon {
        width: 60px;
        height: 60px;
    }
    
    .problema-icon i {
        font-size: 1.8rem;
    }
    
    .problema-card h3 {
        font-size: 1.2rem;
    }
    
    .problema-desc {
        font-size: 0.95rem;
    }
    
    .impatto {
        padding: 12px;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .problemi-intro {
        padding: 25px 0.75rem;
    }
    
    .problemi-grid-section {
        padding: 25px 0.75rem;
    }
    
    .problemi-grid {
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .problema-card {
        padding: 20px;
    }
    
    .problema-icon {
        width: 50px;
        height: 50px;
    }
    
    .problema-icon i {
        font-size: 1.5rem;
    }
    
    .problema-card h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .problema-desc {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 15px;
    }
    
    .impatto {
        padding: 10px;
        border-left-width: 3px;
    }
    
    .impatto strong {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }
    
    .impatto p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .problema-card .btn-primary {
        padding: 10px 16px;
        font-size: 0.95rem;
    }
    
    .problemi-cta {
        padding: 40px 0.75rem 60px;
    }
    
    /* Forza single column e max-width */
    .problemi-grid {
        grid-template-columns: 1fr !important;
        max-width: 100%;
    }
}
