/* Sfondo Nero Assoluto e testo Bianco Pulito */
html, body {
  background-color: #000000 !important; /* Nero profondo per eliminare ogni grigio */
  color: #ffffff !important;
  font-family: 'Inter', sans-serif;
}

/* Titoli Street Industrial */
h1, h2, h3, h4, h5 {
  font-family: 'Bebas Neue', cursive, sans-serif;
  letter-spacing: 2px;
}

/* Header / Hero - Stile Insegna di Brooklyn con immagine di sfondo di una pizza + sfumatura scura per leggibilità */
.hero-header {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.95) 100%), 
              url('sfondo-pizzeria.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 2px solid #FFE600;
}

.hero-header h1 {
  color: #FFE600 !important;
  text-transform: uppercase;
  font-size: 3.5rem;
  text-shadow: 0px 0px 15px rgba(255, 230, 0, 0.3); /* Leggero effetto insegna luminosa */
}

.hero-header p {
  color: #bbbbbb !important;
}

/* Card Pizze - Scatola Nero Opaco con Bordo Sottile */
.card {
  background-color: #0d0d0d !important; /* Nero quasi totale */
  border: 1px solid #222222 !important; /* Bordo sottilissimo per definire gli spazi */
  border-radius: 10px;
  transition: all 0.25s ease-in-out;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #FFE600 !important; /* Bordo Giallo Neon quando passi sopra */
  box-shadow: 0 4px 20px rgba(255, 230, 0, 0.15);
}

.card-title {
  color: #ffffff !important;
  font-size: 1.4rem;
}

.card-text {
  color: #aaaaaa !important; /* Testo ingredienti chiaro e leggibile */
}

/* Badge Prezzo Neon */
.badge.bg-warning {
  background-color: #FFE600 !important;
  color: #000000 !important;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem !important;
  font-weight: bold;
  padding: 6px 14px !important;
  border-radius: 6px;
}

/* Badge Allergeni */
.badge.bg-light {
  background-color: #1a1a1a !important;
  color: #777777 !important;
  border: 1px solid #333333 !important;
}

/* Titoli delle Sezioni (PIZZE SPECIALI, CLASSICHE, ecc.) */
section h2 {
  color: #FFE600 !important;
  font-family: 'Bebas Neue', cursive, sans-serif;
  font-size: 2.5rem !important;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Linea decorativa al neon a destra del titolo */
section h2::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, #FFE600 0%, transparent 100%);
}

/* Descrizione sotto il titolo della categoria */
section p.text-muted {
  color: #888888 !important;
  font-size: 0.95rem;
  margin-bottom: 1.5rem !important;
}

/* Box Note in Alto (Coperto, Allergeni...) */
#note-ristorante {
  background-color: #0a0a0a !important;
  border: 1px solid #333333 !important;
  border-left: 4px solid #FFE600 !important; /* Barretta d'accento gialla a sinistra */
  color: #dddddd !important;
  border-radius: 6px;
}

footer {
  background-color: #050505 !important;
  border-top: 1px solid #1a1a1a;
}
/* Barra di navigazione fisso in alto (Sticky Bar) */
nav.sticky-top {
  top: 0;
  z-index: 1000;
  background-color: #000000 !important;
}

/* Nasconde la scrollbar laterale sui telefoni per un look pulito */
#category-bar {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE/Edge */
}
#category-bar::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Pulsanti Filtro Street Style */
.btn-category {
  background-color: #1a1a1a !important;
  color: #ffffff !important;
  border: 1px solid #333333 !important;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 1px;
  white-space: nowrap;
  padding: 6px 18px !important;
  border-radius: 50px !important;
  transition: all 0.2s ease;
}

.btn-category:hover, .btn-category:focus {
  background-color: #FFE600 !important;
  color: #000000 !important;
  border-color: #FFE600 !important;
  box-shadow: 0 0 10px rgba(255, 230, 0, 0.4);
}

/* Scroll fluido per quando si clicca un pulsante */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px; /* Evita che il titolo vada sotto la barra fissa */
}
/* --- OTTIMIZZAZIONE PER MOBILE / SMARTPHONE --- */
@media (max-width: 576px) {
  /* Rimpicciolisce il logo circolare */
  .hero-header img {
    max-width: 90px !important;
    border-width: 2px !important;
  }

  /* Riduce la dimensione del titolo e dei testi nell'header */
  .hero-header h1 {
    font-size: 1.5rem !important;
  }
  .hero-header p {
    font-size: 0.85rem !important;
  }

  /* Rende i pulsanti di contatto (Chiama, WhatsApp, Instagram) più compatti */
  .hero-header .btn {
    font-size: 0.8rem !important;
    padding: 6px 12px !important;
  }

  /* Riduce i margini verticali dell'header */
  .hero-header {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }
}
/* STILI CARRELLO E TENDINA COMANDA */
.cart-drawer {
  position: fixed;
  bottom: 0;
  right: 20px;
  width: 380px;
  max-width: 90vw;
  background: #121212;
  border: 2px solid #FFE600;
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.8);
  z-index: 1060;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1055;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cart-backdrop.show {
  display: block;
  opacity: 1;
}

.mobile-cart-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #000000;
  border-top: 1px solid #262626;
  color: #ffffff;
  padding: 12px 18px;
  z-index: 1050;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #262626;
}

.qty-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: bold;
}

/* RESPONSIVE SMARTPHONE (< 768px) */
@media (max-width: 767px) {
  .cart-drawer {
    right: 0;
    width: 100%;
    max-width: 100%;
    transform: translateY(105%);
  }

  .cart-drawer.open {
    transform: translateY(0);
  }

  .mobile-cart-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}