/* Reset CSS */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Font import */
body {
  font-size: 16px;
  line-height: 1.6;
  background-color: #f9f9f9;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

/* =========================
   NAVBAR FISSA IN ALTO (ora solo sopra il container)
   ========================= */
.navbar-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 0;    /* già rimosso */
  margin-bottom: 0; /* elimina lo spazio sotto la navbar */
}
.navbar {
  width: 100%;
  max-width: 800px;
  min-height: 64px;
  background: #0F222D;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  z-index: 100;
  padding: 0 24px;
  gap: 0;
  border-radius: 10px 10px 0 0;
  position: relative;
  flex-direction: row; /* sempre orizzontale */
}
.navbar-section {
  display: flex;
  align-items: center;
  min-width: 0;
}
#logo {
  height: 72px; /* ancora più grande */
  max-height: 90px;
  width: auto;
  max-width: 180px;
  display: block;
  margin-right: 10px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.18));
  transition: height 0.2s;
  object-fit: contain;
}
.navbar-center {
  flex: 1 1 auto;
  justify-content: center;
  gap: 18px;
  display: flex;
  min-width: 0;
}
.navbar-btn {
  background: transparent;
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 10px 22px;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  outline: none;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}
.navbar-btn:hover, .navbar-btn:focus {
  background: #C9B693;
  color: #0F222D;
}
.navbar-lang {
  gap: 8px;
  display: flex;
  margin-left: 10px;
}
.navbar-lang a {
  display: inline-block;
  margin: 0 2px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border 0.2s;
  vertical-align: middle;
}
.navbar-lang a:hover, .navbar-lang a:focus {
  border: 2px solid #C9B693;
  background: #fff;
}
.navbar-lang img {
  width: 28px;
  height: 28px;
  display: block;
}
@media (max-width: 900px) {
  .navbar, .container {
    max-width: 98vw;
  }
  .navbar {
    /* NON cambiare flex-direction, resta row */
    padding: 10px 8px;
  }
  .navbar-center {
    margin: 8px 0;
  }
  #logo {
    margin: 0 10px 0 0;
    height: 64px;
    max-height: 80px;
    max-width: 150px;
  }
}
@media (max-width: 600px) {
  .navbar {
    padding: 0 6px;
  }
  .navbar-btn {
    font-size: 0.95rem;
    padding: 8px 8px;
  }
  .navbar-lang img {
    width: 22px;
    height: 22px;
  }
  #logo {
    height: 56px;
    max-height: 64px;
    max-width: 120px;
  }
  .navbar-center {
    gap: 8px;
  }
}
/* RIMUOVI il padding-top dal body per evitare spazio inutile */
body {
  font-size: 16px;
  line-height: 1.6;
  background-color: #f9f9f9;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  /* padding-top: 80px !important; */
}
/* =========================
   FINE NAVBAR
   ========================= */

/* Container Styles */
.container {
  animation: fadeIn 1s ease-in-out;
  position: relative;
  padding: 20px;
  border-radius: 10px;
  max-width: 800px;
  margin: 0 auto 20px auto;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Logo Styles */
.logo-container {
  position: relative;
}
.logo {
  display: block;
  margin: 0 auto 20px;
  max-width: 120px;
  height: auto;
  animation: zoomInOut 2.5s ease;
}

/* Heading Styles */
h1 {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #0F222D;
  font-weight: bold;
}
.section-title {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  margin-top: 25px;
  font-weight: 600;
  color: #B09E80;
  text-align: center; /* Mantiene i titoli centrati */
}

/* Features and Plans */
.features, .plans {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.features p, .plans div {
  max-width: 90%;
  width: 100%;
  font-size: 1rem;
  padding: 10px;
  background: #EBE7D9;
  border-radius: 8px;
  margin: 5px 0;
  color: #0F222D;
  font-weight: 500;
  text-align: left; /* Allinea il testo a sinistra */
}

/* Bottoni base */
.btn {
  display: block;
  width: 90%;
  padding: 12px;
  font-size: 1rem;
  margin: 10px auto;
  border-radius: 6px;
  background: #C9B693; /* Beige caldo */
  color: #0F222D;       /* Blu notte per contrasto */
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
  border: none;
  text-align: center; /* Mantiene i pulsanti centrati */
}

/* Hover base */
.btn:hover {
  transform: scale(1.05);
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  background-color: #C9B693; /* Oro tenue */
}

/* Pulsante “Guarda il Tutorial” */
.btn-secondary {
  background-color: #C9B693; 
  color: #FFFFFF;
}
.btn-secondary:hover {
  background-color: #e68d22; 
}
#tutorial-btn {
  background-color: #C9B693; /* Oro tenue */
  color: #0F222D;
}
#tutorial-btn:hover {
  background-color: #B09E80;
}

/* Pulsante “Accedi alla Mappa Gratuita” – Evidenziato */
.btn-mappa-gratuita {
  background-color: #f7b267 !important; /* Arancio chiaro */
  color: #FFFFFF;
  animation: zoomPulse 2s infinite ease-in-out; /* Aggiunta animazione */
}
.btn-mappa-gratuita:hover {
  background-color: #f08c35 !important; /* Arancio più scuro */
}

/* Pulsante “Sblocca la Versione Completa” */
.btn-versione-completa {
  background-color: #C9B693; /* Oro tenue */
  color: #0F222D;
}
.btn-versione-completa:hover {
  background-color: #B09E80;
}

/* Pulsante “Richiedi Itinerario Personalizzato” */
.btn-itinerario-personalizzato {
  background-color: #0F222D; /* blu più intenso */
  color: #FFFFFF;
}
.btn-itinerario-personalizzato:hover {
  background-color: #0F222D;
}


/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  padding: 1rem;
  box-sizing: border-box;
}
.modal-content {
  position: relative;
  width: 100%;
  max-width: 600px;
  background-color: black; /* Sfondo nero per eliminare spazi visibili */
  border-radius: 0; /* Rimuove eventuali angoli arrotondati */
  overflow: hidden;
  margin: 0; /* Rimuove margini */
  padding: 0; /* Rimuove padding */
  box-shadow: none; /* Rimuove ombre */
}
.modal-content video {
  width: 100%;
  height: auto;
  max-height: 80vh;
  display: block;
  border: none; /* Rimuove i bordi */
  margin: 0; /* Rimuove eventuali margini */
  padding: 0; /* Rimuove eventuali padding */
  background-color: black; /* Sfondo nero per eliminare eventuali spazi */
}
.close-btn {
  color: white;
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  background-color: rgba(0,0,0,0.6);
  border-radius: 50%;
  padding: 5px 10px;
}
.close-btn:hover {
  color: #ccc;
}

/* Language Selector */
.language-selector {
  position: absolute;
  top: 0;
  right: 0;
}
.language-selector a {
  margin: 0 5px;
  text-decoration: none;
  color: #0F222D;
  font-weight: 600;
}
.language-selector img {
  width: 24px;
  height: 24px;
  margin: 0 5px;
}

/* BONUS ZOOM */
.bonus-zoom {
  color: #f39c12;
  animation: zoomPulse 2s infinite ease-in-out;
  display: inline-block;
}
.btn-bonus-zoom {
  animation: zoomPulse 2s infinite ease-in-out;
  color: #ffffff;
}
@keyframes zoomPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Media Queries */
@media (max-width: 768px) {
  h1 { font-size: 1.4rem; }
  .section-title { font-size: 1.2rem; }
  .features p, .plans div { font-size: 1rem; }
  .btn { font-size: 1rem; padding: 10px; }
  .modal-content {
    width: 95%;
    max-width: 100%;
  }
  .modal-content video {
    max-height: 70vh;
  }
}

/* LOGO Intro */
#logo-intro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 34, 45, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeOutIntro 1s ease forwards;
  animation-delay: 2.5s;
}
#intro-logo {
  width: 280px;
  max-width: 90vw;
  animation: zoomInOut 2.5s ease forwards;
}
@keyframes zoomInOut {
  0% { transform: scale(1); opacity: 0; }
  20% { transform: scale(1.3); opacity: 1; }
  80% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(0.4) translateY(-200px); opacity: 0; }
}
@keyframes fadeOutIntro {
  to { opacity: 0; visibility: hidden; z-index: -1; }
}
body.loading {
  overflow: hidden;
}

/* ============================================
   STILE PER IL POPUP "ACCEDI ALL'AREA RISERVATA"
   Mostra un popup con la domanda: Hai pagato il servizio FULL?
   Se sì → accesso all’area riservata
   Se no → redirect a WhatsApp con messaggio precompilato
   ============================================ */

   .modal {
    display: none; /* Nasconde il popup finché non viene attivato */
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5); /* Sfondo semi-trasparente */
    justify-content: center; /* Centra il contenuto orizzontalmente */
    align-items: center;      /* Centra il contenuto verticalmente */
    z-index: 1000; /* Sovrappone il popup rispetto al resto della pagina */
  }
  
  .modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.25); /* Ombra per profondità */
    text-align: center;
  }
  
  /* Titolo del popup */
  .modal-content h2 {
    color: #e63946; /* Rosso per attirare attenzione */
    margin-bottom: 15px;
  }
  
  /* Testo della domanda */
  .modal-content p {
    font-weight: bold;
    color: #0F222D; /* Blu notte */
    margin-bottom: 20px;
  }
  
  /* Stile dei pulsanti generici nel popup */
  .modal-content button {
    padding: 10px 20px;
    font-size: 16px;
    margin: 5px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
  }
  
  /* Pulsante "Sì" → verde */
  #btn-si {
    background-color: #4CAF50;
    color: white;
  }
  
  /* Pulsante "No" → rosso */
  #btn-no {
    background-color: #f44336;
    color: white;
  }


  /* Correzione stile modale video: rimuove bordi bianchi */
.video-modal {
  background-color: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.video-modal video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 80vh;
  border: none !important;
  margin: 0;
  background-color: black;
}

/* Footer Social Icons */
.footer {
  margin-top: 30px;
  text-align: center;
}
.footer a {
  display: inline-block;
  margin: 0 10px;
  transition: transform 0.2s;
}
.footer a:hover {
  transform: scale(1.15);
}
.footer img {
  width: 32px;
  height: 32px;
  vertical-align: middle;
}
