/**
 * Override CSS per forzare layout responsive
 * Override CSS to force responsive layout
 */

/* Forza 2 colonne su tutti i dispositivi mobile e tablet */
.items-grid {
    grid-template-columns: 1fr 1fr !important;
    justify-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    max-width: 100% !important;
}

/* Solo desktop ha layout auto-fit */
@media (min-width: 993px) {
    .items-grid {
        grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)) !important;
    }
}

/* 2 colonne per tablet e mobile medio (601px - 992px) */
@media (max-width: 992px) and (min-width: 601px) {
    .items-grid {
        grid-template-columns: 1fr 1fr !important;
        justify-items: center !important;
        justify-content: center !important;
        padding: 0 10px !important;
        /* background-color: rgba(255, 0, 0, 0.1); Rimuovi commento per debug */
    }
}

/* Una sola colonna centrata sotto i 600px */
@media (max-width: 600px) {
    .items-grid {
        grid-template-columns: 1fr !important;
        justify-items: center !important;
        justify-content: center !important;
        padding: 0 20px !important;
        gap: 16px !important;
        max-width: 400px !important;
        margin: 0 auto !important;
    }
    
    .item-card {
        max-width: 100% !important;
        margin: 0 !important;
        width: 100% !important;
    }
}

/* Centratura ottimizzata per mobile piccolo */
@media (max-width: 480px) {
    .items-grid {
        padding: 0 15px !important;
        gap: 12px !important;
        max-width: 350px !important;
    }
} 