body {
    background-color: #f8f9fa;
    color: #212529;
    padding: 20px;
    padding: 20px 20px 40px 20px;
}

#accordionMenu {
    padding-bottom: 20px;
}

.voce {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
}
.nome-voce {
    font-size: 1.2rem;
}
.prezzo {
    float: right;
    font-weight: bold;
}
.logo-ristorante {
    max-width: 150px;
    max-height: 100px;
    margin: 0 auto 20px auto;
    display: block;
}







.nome-categoria {
    font-size: 1.5rem;
    font-weight: bold;
}
.accordion-header {
    color: white;
    font-weight: bold;
}
.categoria-img {
width: 55px;
height: 55px;
object-fit: cover;
border-radius: 50%;
border: 2px solid #dee2e6;
}

.accordion-button {
    display: flex;
    align-items: center;
    background-color: rgb(223, 226, 228);
    font-weight: bold;
}
.categoria-banner {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    padding: 0 !important;  /* Rimuove padding predefinito di Bootstrap */
}

.categoria-img-grande {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.categoria-titolo {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.8);
    color: #000;
    padding: 10px;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

/* Personalizzazione della freccia dell'accordion */
.accordion-button::after {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-position: center;
}

.accordion-item {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    border: none;
}

.accordion-body {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}
.separatore {
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 25px 0 15px 0;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 8px;
    color: #495057;
}

/* Aggiungiamo un margine extra per il primo separatore */
.separatore:first-child {
    margin-top: 5px;
}


.navbar.fixed-bottom {
  height: 80px;
  padding: 0;
  box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
}

.navbar.fixed-bottom .btn {
  flex: 1;
  font-size: 0.9rem;
  padding: 5px 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.container {
  margin-bottom: 70px; /* Altezza del footer + margine */
}

/* Stile per il pannello di ricerca */
#search-panel {
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    background: white;
    padding: 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 999;
    display: none;
    transition: transform 0.3s ease;
    transform: translateY(100%);
}

#search-panel.active {
    display: block;
    transform: translateY(0);
}

.search-result {
    padding: 10px;
    border-bottom: 1px solid #dee2e6;
}

.search-result:hover {
    background-color: #f8f9fa;
}

.search-result-categoria {
    font-size: 0.8rem;
    color: #6c757d;
}

.search-result-nome {
    font-weight: bold;
}

.search-result-prezzo {
    float: right;
    font-weight: bold;
}

.highlight {
    background-color: yellow;
    font-weight: bold;
}

#search-results {
    max-height: 50vh;
    overflow-y: auto;
}

#search-no-results {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #6c757d;
    display: none;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.img-clickable {
  animation: pulse 2s infinite;
  cursor: pointer;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}
.img-shake {
  animation: shake 1s infinite;
  cursor: pointer;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}



.bandiera:hover {
  transform: scale(1.1);
  border-color: #007bff;
}
.pos-relative {
  position: relative;
}

.bandiera {
  width: 48px;  /* aumentato */
  height: 48px;
  border-radius: 50%;
  border: 2px solid #dee2e6;
  cursor: pointer;
  transition: transform 0.2s ease;
}



.lang-menu {
  position: absolute;
  top: 65px;  /* spostato in basso per seguire nuova dimensione */
  left: -12px;  /* spostato a sinistra per allineare con la bandiera */
  display: none;
  background: white;
  border: 1px solid #ccc;
  padding: 8px;
  border-radius: 8px;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.lang-menu img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease;
}

.lang-menu img:hover {
  transform: scale(1.1);
  border-color: #007bff;
}





/* Nasconde il banner in alto */
body > .goog-te-banner-frame.skiptranslate {
  display: none !important;
}

/* Sposta il body in alto, rimuovendo lo spazio riservato al banner */
body {
  top: 0 !important;
}

/* Nasconde l'iframe del banner */
.goog-te-banner-frame {
  display: none !important;
}

/* Nasconde il watermark "Powered by Google Translate" */
.goog-logo-link,
.goog-te-gadget span {
  display: none !important;
}

/* Opzionale: per evitare margini strani */
#google_translate_element {
  margin-top: 0 !important;
}
.notranslate {
  translate: no;
}


#language-loader .loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.loader-spinner {
  border: 6px solid #dee2e6;
  border-top: 6px solid #007bff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

.loader-text {
  font-size: 1.2rem;
  color: #333;
  font-weight: bold;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.menu-footer {
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
  padding: 10px 0;
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 0.9rem;
}

/* Spazio che simula l'altezza della navbar per lasciare aria sotto al footer */
.footer-buffer {
  height: 40px; /* stessa altezza della navbar */
}
.footer-link {
  color: inherit;
  text-decoration: underline;
}

.footer-link:hover {
  color: #007bff;
  text-decoration: none;
}
.footer-logo {
  height: 20px; /* o 24px se vuoi più visibilità */
  vertical-align: middle;
  margin-right: 5px;
}
.logo-ristorante {
    max-height: 80px;
}

.demo-badge {
    background-color: red;
    color: white;
    border-radius: 4px;
    opacity: 0.9;
    font-size: 0.5rem;
}
/* Forza altezza e proporzioni corrette nello slide shop */
.swiper-slide img {
  height: auto !important;
  max-height: 100px;
  object-fit: cover;
  width: auto;
  max-width: 100%;
}
