/* Nasconde l’iframe della barra */
.goog-te-banner-frame {
    display: none !important;
}

/* Nasconde anche lo sfondo grigio sopra la pagina */
body {
    top: 0px !important;
}

/* Nasconde il gadget Google (icona/tooltip) */
.goog-te-gadget-icon, 
#goog-gt-tt, 
.goog-te-balloon-frame, 
div#goog-gt-tt, 
.goog-te-menu-frame {
    display: none !important;
}

/* Evita layout shift quando Google inietta elementi */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

.skiptranslate {
    display: none !important;
}











/* E forse rimuovere lo spazio che riserva */
body {
    top: 0 !important;
}

/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: sans-serif;
  color: #fff;
}

/* Stile per bloccare lo scroll della pagina quando il menu è aperto */
body.menu-open {
  overflow: hidden;
  position: fixed; /* Aggiunto per maggiore robustezza su alcuni browser/dispositivi mobili */
  width: 100%;
  height: 100%;
}

.font-custom-1 {
  font-family: 'YourCustomFont', sans-serif;
}

/* HEADER BASE */
#main-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  height: 160px;
  background: transparent;
  color: white;
  transition: all 0.3s ease;
}
#main-header.scrolled {
  background: #ffffffdb;
  color: var(--primary) !important;
  height: 110px;
}

/* HEADER CONTENT */
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: relative;
}

/* LOGO CENTRALE */
.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.logo img {
  height: 120px;
  transition: all 0.3s ease;
}
#main-header.scrolled .logo img {
  height: 90px;
}

/* HAMBURGER ICON */
#hamburger {
  font-size: 2.5rem;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

/* CTA SECTION A DESTRA */
.cta-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cta-section a {
  font-size: 0.8rem;
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}
.cta-section a:hover {
  transform: scale(1.1);
  text-decoration: none;
}

.icon-link {
  font-size: 1.4rem;
  color: inherit;
  display: inline-flex;
  transition: transform 0.2s ease;
}
.icon-link:hover {
  transform: scale(1.2);
}

.cta-section a i {
  pointer-events: none;
  text-decoration: none;
}

/* CTA BUTTONS HEADER */
.btn {
  background: transparent;
  border: 1px solid currentColor;
  padding: 0.4rem 0.8rem;
  text-decoration: none;
  color: inherit;
  font-size: 0.9rem;
  border-radius: 4px;
  transition: background 0.3s ease, color 0.3s ease;
}
.btn:hover {
  background: rgba(255, 255, 255, 0.2);
}
#main-header.scrolled .btn {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}
#main-header.scrolled .btn:hover {
  background: rgba(67, 44, 47, 0.1);
}
#main-header.scrolled .icon-link {
  color: var(--primary) !important;
}

/* MENU FULLSCREEN */
#mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(60, 41, 34, 0.9);
  color: white;
  display: none; /* Inizialmente nascosto */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  overflow-y: auto; /* Permette lo scroll solo all'interno del menu */
  -webkit-overflow-scrolling: touch; /* Per uno scrolling più fluido su iOS */
  padding-bottom: 2rem; /* AGGIUNTA: padding sul fondo del menu */
}
#mobile-menu.show {
  display: flex; /* Mostra il menu */
}

/* CLOSE BUTTON */
#close-menu {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* MENU COLUMNS */
.menu-columns {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0 2rem;
  width: 100%;
  max-width: 1600px;
}

.menu-col {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* COLONNA 1: LOGO + CONTATTI */
.col-logo-contatti .menu-logo {
  height: 130px;
  margin-bottom: 1rem;
}
.menu-contatti p {
  font-size: 0.9rem;
  line-height: 1.4;
  color: white;
}
.menu-contatti a {
  color: white;
  text-decoration: none;
}
.menu-contatti a:hover {
  text-decoration: underline;
}

/* COLONNE 2 & 3: MENU */
.menu-blocco {
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.menu-blocco .macro-voce {
  font-weight: bold;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
  margin-bottom: 0.1rem;
}
.menu-blocco .macro-voce a {
  color: white;
  text-decoration: none;
  display: block;
}
.menu-blocco .macro-voce a:hover {
  text-decoration: underline;
}
.menu-blocco a {
  font-size: 0.9rem;
  font-weight: normal;
  color: white;
  text-decoration: none;
  margin-left: 0.6rem;
  line-height: 1.2;
}

.menu-blocco a.main-nav {
  font-weight: bold;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
  margin-left: 0rem;
  margin-bottom: 0.1rem;
}

.menu-blocco a:hover {
  text-decoration: underline;
}

/* COLONNA 4: CALL TO ACTION */
.col-cta {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0rem;
}
.btn-cta {
  display: inline-block;
  text-align: center;
  padding: 0.45rem 1rem;
  background: white;
  color: var(--primary) !important;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  border-radius: 24px;
  border: 1px solid var(--primary) !important;
  transition: background 0.3s ease, transform 0.2s ease;
}
.btn-cta:hover {
  background: #e0d4d6;
  text-decoration: inherit;
  color: var(--primary) !important;
  transform: scale(1.05);
}

/* --- REGOLE AGGIUNTE PER RESPONSIVE MOBILE (SMARTPHONE) ----------------------------------------------------------------------- */

/* Classi di utilità per il responsive */
.show-on-mobile {
  display: none !important;
}
.show-on-desktop {
  display: inline-flex !important;
}

@media screen and (max-width: 768px) {
  /* Modifiche esistenti per mobile */
  #mobile-menu {
    justify-content: flex-start; /* era center */
    padding-top: 5rem; /* margine per il bottone chiudi */
    /* Padding bottom già aggiunto qui sopra per maggiore chiarezza */
  }

.logo img {
  height: 110px;
  transition: all 0.3s ease;
}
#main-header.scrolled .logo img {
  height: 80px;
}

  .menu-columns {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
  }
  .menu-logo {
    margin: 0 auto 1rem;
  }
  .menu-blocco a {
    margin-left: 0;
  }
  .col-cta {
    width: 100%;
    align-items: center;
  }
  .btn-cta {
    width: 90%;
    max-width: 300px;
  }

  /* NUOVE REGOLE PER MOBILE (CTA HEADER) */
  
  /* Nasconde i pulsanti di testo (.btn) sull'header mobile */
  .cta-section .btn {
    display: none !important;
  }

  /* Mostra i link basati su icone (telefono, whatsapp, prenota) */
  .cta-section .show-on-mobile {
    display: inline-flex !important;
    /* Aumenta la dimensione delle icone mobili per maggiore chiarezza */
    font-size: 1.8rem; 
  }

  /* Nasconde i pulsanti testuali anche se hanno la classe show-on-desktop, assicurando che le icone siano mostrate */
  .cta-section .show-on-desktop {
    display: none !important;
  }

  /* Modifiche Menu Fullscreen */
  .menu-contatti.hide-on-mobile {
    display: none; /* Nasconde il blocco dei contatti */
  }

  .btn-cta.hide-on-mobile {
    display: none; /* Nasconde il bottone "SCRIVICI SU WHATSAPP" nel menu */
  }
}

@media screen and (max-width: 1350px) {
  /* Regola originale: nasconde i link di testo su schermi medi (rimane solo il PRENOTA come testo) */
  .cta-section a {
    display: none;
  }
  /* Mostra il link 'PRENOTA' (che è il 4° <a> nella sequenza originale, ora è il 7° con show-on-desktop) */
  /* Questa regola interagirà con le nuove classi, assicurando che i link principali siano nascosti sui tablet, ma che siano visibili su mobile grazie alla regola 768px */
  /* NOTA: Ho commentato questa regola per prevenire conflitti con la nuova logica show/hide. 
     La nuova struttura HTML e la regola max-width: 768px gestiscono meglio la visibilità. */
  /* .cta-section a:nth-of-type(4) {
    display: inline-flex;
  } */
}






