/* KEYFRAMES PER SFONDO DINAMICO */
@keyframes background-pan {
  from {
    background-position: 0% 0%;
  }
  to {
    background-position: 100% 100%;
  }
}

/* RESET E FONT */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    /* SFONDO DINAMICO E ACCATTIVANTE */
    background: linear-gradient(135deg, #1a1a1a, #000000, #333333);
    background-size: 300% 300%;
    animation: background-pan 60s ease infinite alternate;
    line-height: 1.6;
}

/* Colori: #FFC300 (Giallo Intenso - Oro), #000 (Nero), #FFF (Bianco) */

/* === HEADER & NAVIGAZIONE === */
header {
    background-color: rgba(0, 0, 0, 0.9); 
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.logo {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5em;
    color: #FFC300;
    letter-spacing: 2px;
}

nav ul {
    list-style: none;
    display: flex;
}
nav ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.nav-cta {
    background-color: #FFC300;
    color: #000 !important;
    font-weight: bold;
    margin-left: 15px;
}
.nav-cta:hover {
    background-color: #fff !important;
}

/* === SEZIONE HERO === */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('') no-repeat center center/cover; 
    background-size: cover;
    background-attachment: fixed;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5em;
    color: #FFC300;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 1);
}

.hero-content p {
    font-size: 1.3em;
    color: #FFF;
    max-width: 600px;
    margin: 20px auto;
}

.btn-primary, .btn-success {
    display: inline-block;
    background-color: #FFC300;
    color: #000;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    margin-top: 30px;
    transition: background-color 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    background-color: #fff;
    transform: scale(1.05);
}

/* === MENU INTERATTIVO === */
.menu-interattivo {
    background-color: #fff;
    padding: 60px 5%;
}

h2 {
    font-family: 'Oswald', sans-serif;
    color: #333;
    font-size: 2.5em;
    margin-bottom: 40px;
    text-align: center;
}

#taco-form {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background-color: #fafafa;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    text-align: left;
}

.step-group {
    border: 1px solid #ddd;
    border-left: 5px solid #FFC300;
    padding: 25px;
    margin-bottom: 30px;
}

legend {
    font-size: 1.6em;
    font-weight: bold;
    color: #000;
    padding: 0 10px;
    margin-bottom: 15px;
}

.options-grid {
    /* La griglia base funziona bene per la maggior parte degli schermi */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); 
    gap: 15px;
}

.option-card {
    display: block;
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}
.option-card:hover {
    background-color: #FFF8E1;
    border-color: #FFC300;
    transform: translateY(-2px);
}

input[type="radio"], input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #FFC300;
}

/* Riepilogo e Carrello */
.riepilogo-carrello {
    margin-top: 30px;
    padding: 25px;
    border-top: 3px solid #000;
    text-align: center;
}

.taco-summary {
    background-color: #eee;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 1.1em;
    text-align: left;
    white-space: pre-wrap; 
}

/* Checkout */
.checkout-box {
    border: 2px solid #000;
    margin-top: 50px;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
}

.campi-cliente input {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.btn-success {
    background-color: #28a745;
    color: white;
    font-size: 1.2em;
}

/* === MEDIA QUERIES (Per la Responsività) === */
/* Stili per schermi piccoli (max 768px - Tablet verticali e Smartphone) */
@media (max-width: 768px) {
    
    /* === Header e Navigazione === */
    header {
        flex-direction: column;
        padding: 15px 15px;
    }
    .logo {
        margin-bottom: 10px;
        font-size: 2em;
    }
    nav ul {
        flex-wrap: wrap; 
        justify-content: center;
        width: 100%;
    }
    nav ul li {
        margin: 5px;
    }
    nav ul li a {
        padding: 8px 12px;
        font-size: 0.9em;
    }
    .nav-cta {
        margin-left: 0;
    }
    
    /* === Hero Section === */
    .hero {
        height: 50vh;
        padding: 20px;
    }
    .hero-content h1 {
        font-size: 2em;
    }
    .hero-content p {
        font-size: 1em;
    }
    
    /* === Modulo Ordine === */
    .menu-interattivo {
        padding: 30px 5%;
    }
    #taco-form {
        padding: 20px 15px;
    }
    h2 {
        font-size: 2em;
        margin-bottom: 20px;
    }

    /* Potenziamento della griglia per i dispositivi mobili */
    .options-grid {
        /* Forza due colonne, ma le rende flessibili */
        grid-template-columns: 1fr 1fr; 
        gap: 10px;
    }
    .option-card {
        padding: 10px;
        font-size: 0.9em;
    }
    
    /* Bottoni e Input */
    .btn-primary, .btn-success {
        padding: 12px 20px;
        width: 100%;
        margin-top: 15px;
    }
    .campi-cliente input, #orario-ritiro {
        padding: 10px;
    }
    
    /* Footer */
    footer {
        padding: 30px 15px;
        font-size: 0.9em;
    }
}

/* Stili specifici per schermi molto piccoli (max 480px) */
@media (max-width: 480px) {
    .options-grid {
        /* Su schermi molto stretti, torna a una colonna per elemento */
        grid-template-columns: 1fr; 
    }
    .option-card {
        text-align: left;
    }
    .hero-content h1 {
        font-size: 1.8em;
    }
    .logo {
        font-size: 1.8em;
    }
}