/* Dispositivi fino a 768px */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }
    
    /* Header */
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #2c3e50;
        padding: 1rem;
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        margin: 0.5rem 0;
    }
    
    .mobile-menu-toggle {
        display: block;
        font-size: 1.5rem;
    }
    
    /* Hero */
    .hero h2 {
        font-size: 1.8rem;
    }
    
    /* Features */
    .features {
        grid-template-columns: 1fr;
    }
    
    /* Calendario */
    .booking-container {
        grid-template-columns: 1fr;
    }
    
    .calendar-grid {
        grid-template-columns: 80px 1fr;
    }
    
    /* Admin */
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .admin-actions {
        flex-direction: column;
    }
    
    .filter-form {
        grid-template-columns: 1fr;
    }
    
    .spots-actions {
        flex-direction: column;
    }
    
    /* Tabella */
    .bookings-table table, 
    .bookings-table thead, 
    .bookings-table tbody, 
    .bookings-table th, 
    .bookings-table td, 
    .bookings-table tr {
        display: block;
    }
    
    .bookings-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .bookings-table tr {
        margin-bottom: 1rem;
        border: 1px solid #ddd;
    }
    
    .bookings-table td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
    }
    
    .bookings-table td:before {
        position: absolute;
        top: 0.8rem;
        left: 0.8rem;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        content: attr(data-label);
        font-weight: bold;
    }
}

/* Dispositivi fino a 480px */
@media (max-width: 480px) {
    /* Conferma */
    .confirmation-actions {
        flex-direction: column;
    }
    
    /* Form */
    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
    }
}
@media (max-width: 768px) {
    /* Riduci le dimensioni delle celle */
    .day-header, .day-cell {
        min-width: 28px !important;
        font-size: 12px;
        padding: 2px !important;
    }
    
    /* Allinea il testo al centro */
    .day-cell {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Nascondi il testo nei giorni occupati */
    .day-cell.booked::after, 
    .day-cell.blocked::after {
        content: "" !important;
    }
    
    /* Mostra solo icona per stati */
    .day-cell.booked {
        background-color: #ffdddd;
        position: relative;
    }
    
    .day-cell.booked::before {
        content: "⛔";
        font-size: 10px;
    }
    
    .day-cell.blocked {
        background-color: #fff3cd;
        position: relative;
    }
    
    .day-cell.blocked::before {
        content: "🔒";
        font-size: 10px;
    }
}