:root{
  --primary:#000000;
  --seconda\ry:#a98247;

  /* Settori principale  */
}
body {
    margin: 0;
    font-family: 'Helvetica Neue', sans-serif;
    background: #f9f9f9;
    background-size:cover;
    color: var(--primary);
  }
  
.header {
    background: var(--primary);
    padding: 1rem;
    text-align: center;
    position: relative;
    border-bottom: 2px solid #ccc;
  }

footer{
  display:flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  background-color: var(--seconda\ry);
  color: white;
}

  
  .lang-switch {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #eee;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.9rem;
  }

  .logo{
    width:15% ;
  }

  .main-nav,
  .sub-nav {
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--primary);
    border-bottom: 2px solid #ccc;
  }

  .sub-nav{
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  }

  .sub-nav button.active {
    background: var(--seconda\ry);
    color: white;
  }
  
  
/* Nav principale - solo il bottone attivo è evidenziato */
.main-nav button {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    font-weight: bold;
    white-space: nowrap;
    color: #fff; /* testo bianco */
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-radius: 20px;
  }
  
  .main-nav button.active {
    background: var(--seconda\ry);
    color: white;
  }
  
  /* Sub-nav rimane come bottone normale */
  .sub-nav button {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-weight: bold;
    white-space: nowrap;;
    cursor: pointer;
  }

  .sub-nav{
    background-color: var(--seconda\ry);
  }
  
  
  .nav-btn.active {
    background: #b10000; /* rosso acceso */
    color: white;
  }
  
  .menu-content {
    padding: 1rem;
    background-color: var(--primary);
  }
  
  .menu-section {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }
  .menu-section:first-child{
    padding: 1rem;
  }
  
  .menu-section h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--seconda\ry);
  }
  
  .menu-item {
    border-top: 1px solid #eee;
  }
  
  .menu-item:first-child {
    padding: 0.5rem 0;
  }
  
  .menu-item .title {
    font-weight: bold;
    font-size: 1rem;
  }
  
  .menu-item .desc {
    font-size: 0.9rem;
    color: #555;
  }
  
  .menu-item .price {
    float: right;
    font-weight: bold;
    color: var(--seconda\ry);
  }
  
  .menu-item .allergeni {
    font-size: 0.75rem;
    color: #888;
    font-style: italic;
    margin-top: 0.3rem;
  }

  /* BADGE ALLERGENI */

  .badge {
    display: inline-block;
    padding: 0.2em 0.6em;
    margin: 0.1em;
    font-size: 0.75rem;
    font-weight: bold;
    color: #fff;
    border-radius: 0.25rem;
  }

  .badge_digriis{
    width: 12%;
  }
  
  .badge-glutine { background-color: #e74c3c; }   /* Rosso */
  .badge-latte { background-color: #3498db; }     /* Blu */
  .badge-uova { background-color: #f1c40f; }      /* Giallo */
  .badge-pesce { background-color: #1abc9c; }     /* Verde acqua */
  .badge-soia { background-color: #9b59b6; }      /* Viola */
  .badge-frutta { background-color: #e67e22; }    /* Arancione */
  .badge-sedano { background-color: #2ecc71; }    /* Verde */
  .badge-solfiti { background-color: #95a5a6; }   /* Grigio */
  .badge-senape { background-color: #d35400; }    /* Arancio scuro */
  .badge-sesamo { background-color: #f39c12; }    /* Giallo scuro */
  .badge-lupini { background-color: #7f8c8d; }    /* Grigio scuro */
  .badge-molluschi { background-color: #16a085; } /* Verde petrolio */
  .badge-crostacei { background-color: #c0392b; } /* Rosso scuro */
  .badge-arachidi { background-color: #8e44ad; }  /* Viola scuro */
  

  
  /* LOADER  */

  .loader-text{
    margin-top: 20px;
  }

  .loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(250, 248, 245, 0.9); /* colore sfondo leggero */
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }
  
  /* PREZZI */

  .prezzi-formati {
    font-size: 0.9rem;
    margin-top: 0.3rem;
    color: #555;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  /* LOADER  */
 
   @keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
  }
  
  .loader-logo {
    animation: pulse 1.5s ease-in-out infinite;
    width: 30%;
  }


  @media screen and (max-width: 768px) {
   .logo{
    width: 50% ;
   }

   .loader-logo{
    width: 80%;
   }
    
  }
  