/* === Reset e Font === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0,0,0,0.7)), 
                url('https://www.menuitalia.it/dashboard/modello-base/immagini/sfondo.png') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
    min-height: 100vh;
    position: relative;
    padding-bottom: 100px;
}

/* === Header Stile Premium === */
.header-ristorante {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px 20px;
    margin: 20px auto;
    border-radius: 15px;
    max-width: 1200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-bottom: 4px solid #d4af37;
}

.logo-ristorante {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 50%;
    border: 3px solid #d4af37;
    padding: 10px;
    background: white;
}

.nome-ristorante {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.frase-breve {
    font-size: 1.1rem;
    color: #7f8c8d;
    font-style: italic;
}

/* === Sezione Categorie === */
.categorie {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.categoria-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 180px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.2);
}

.categoria-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.categoria-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.categoria-card:hover img {
    transform: scale(1.1);
}

.categoria-card h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 15px;
    font-size: 1.4rem;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

/* === Sezione Piatti === */
.piatti {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.card-piatto {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card-piatto:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.immagine-piatto {
    height: 180px;
    overflow: hidden;
}

.immagine-piatto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-piatto:hover .immagine-piatto img {
    transform: scale(1.05);
}

.contenuto-piatto {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contenuto-piatto h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.contenuto-piatto p {
    color: #7f8c8d;
    margin-bottom: 15px;
    flex: 1;
    line-height: 1.5;
}

.prezzo-e-azione {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.prezzo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #d4af37;
}

.aggiungi {
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.aggiungi:hover {
    background: #2ecc71;
    transform: translateY(-2px);
}

.aggiungi i {
    font-size: 1rem;
}

/* === Pulsanti Azioni === */
.azioni-menu {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    flex-wrap: wrap;
}

.btn-azione {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(41, 128, 185, 0.3);
}

.btn-azione:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(41, 128, 185, 0.4);
}

.btn-azione i {
    font-size: 1.2rem;
}

/* === Lista Ordini === */
#pulsante-lista {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(192, 57, 43, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 100;
    transition: all 0.3s ease;
}

#pulsante-lista:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(192, 57, 43, 0.5);
}

#conteggio {
    background: white;
    color: #c0392b;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    margin-left: 5px;
}

#lista-ordini-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

#lista-ordini-pannello {
    background: white;
    border-radius: 15px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    position: relative;
}

#btn-chiudi-lista {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e74c3c;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
/* Aggiungi queste regole CSS */
#lista-ordini-pannello {
    background: #2c3e50; /* Sfondo scuro */
    color: #ecf0f1; /* Testo chiaro */
}

#lista-ordini-pannello h3 {
    color: #f1c40f; /* Giallo per il titolo */
}

#lista-ordini li {
    background: rgba(255,255,255,0.1);
    color: #ecf0f1;
}

.promemoria-lista {
    color: #bdc3c7 !important;
}

#btn-chiudi-lista:hover {
    background: #c0392b;
    transform: rotate(90deg);
}

#lista-ordini-pannello h3 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.promemoria-lista {
    color: #7f8c8d;
    text-align: center;
    margin-bottom: 20px;
    font-style: italic;
    font-size: 0.9rem;
}

#lista-ordini {
    list-style: none;
    margin-bottom: 20px;
}

#lista-ordini li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
}

.btn-rimuovi {
    background: #e74c3c;
    color: white;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-rimuovi:hover {
    background: #c0392b;
}

#btn-svuota-lista {
    width: 100%;
    padding: 12px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#btn-svuota-lista:hover {
    background: #c0392b;
}

/* === Footer === */
.footer-ristorante {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.info-footer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.info-footer p {
    display: flex;
    align-items: center;
    gap: 8px;
}

.copyright {
    font-size: 0.9rem;
    color: #bdc3c7;
}

.copyright a {
    color: #d4af37;
    text-decoration: none;
    transition: all 0.3s ease;
}

.copyright a:hover {
    color: #f1c40f;
    text-decoration: underline;
}

/* === Responsive === */
@media (max-width: 768px) {
    .nome-ristorante {
        font-size: 2rem;
    }
    
    .categorie {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .piatti {
        grid-template-columns: 1fr;
    }
    
    .azioni-menu {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-azione {
        width: 100%;
        justify-content: center;
    }
/* Animazione pulsante lista ordini */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

#pulsante-lista {
    animation: pulse 2s infinite;
    position: relative;
    overflow: hidden;
}

#pulsante-lista::after {
    content: "NUOVO";
    position: absolute;
    top: -10px;
    right: -10px;
    background: #e74c3c;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    transform: rotate(15deg);
}
#lista-ordini-pannello {
    background: #34495e;
    color: #ecf0f1;
}

#lista-ordini-pannello h3 {
    color: #f1c40f;
}

#lista-ordini li {
    background: rgba(255,255,255,0.1);
    color: white;
}

.btn-rimuovi {
    background: #e74c3c;
    color: white;
}

#btn-svuota-lista {
    background: #e74c3c;
    color: white;
    margin-top: 20px;
}

#btn-svuota-lista:hover {
    background: #c0392b;
}