/* RESET DEI MARGINI E PADDINGS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* STILE DEL BODY */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

/* HEADER */
.header {
    background-color: #9368b7;  
    color: white;
    text-align: center;
    padding: 50px 0;
}

/* TITOLI */
h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

/* MENU DI NAVIGAZIONE */

.menu {
    display: flex;
    justify-content: center;
    background-color: #9297c4;
    padding: 12px 0;
    gap: 25px;
}
.menu a {
    color: white;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}
.menu a i {
    font-size: 1.2em;
}

.menu a:hover {
    color: #aa3e98;  
}
.menu a.active {
    color: #aa3e98;  
   
    font-weight: bold;
}

/* INTRODUZIONE HOME PAGE */
.intro {
    padding: 40px;
    text-align: center;
    background-color: #ffffff;
    margin: 20px 0;
    border-radius: 10px;
}

.intro p {
    font-size: 1.2em;
    color: #555;
}

/* STILE DELLE PAGINE DI VIAGGIO */
.viaggio-container {
    padding: 40px;
    background-color: #ffffff;
    margin: 20px auto;
    border-radius: 10px;
    max-width: 1200px;
}

.viaggio-container h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #39D2E6;
}

.viaggio-container p {
    font-size: 1.1em;
    color: #444;
    margin-bottom: 30px;
}

.galleria {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  margin: 0 auto;
  width: fit-content;
  padding: 20px 0;

}

.galleria img {
  width: auto;
  height: auto;
  max-height: 220px; /* Aumentato da 160px a 220px */
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.galleria img:hover {
  transform: scale(1.05);
}

/* FOOTER */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #333;
  color: white;
  margin-top: 40px;
}

footer small {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

/* LINK FOOTER */
footer a {
  color: gray;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}


/* Contenitore flessibile per icona + titolo */
.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

/* Icona home */
.home-icon {
    color: white;
    font-size: 1.8em;
    text-decoration: none;
    transition: color 0.3s;
}

.home-icon:hover {
    color: #aa3e98;
}

/* Evidenziazione link attivo nel menu */
.menu a.active {
    border-bottom: 3px solid #aa3e98;
    font-weight: bold;
}





.video-container {
  display: flex;
  justify-content: center;
  padding: 30px 0;
  background-color: #f9f9f9;
}

.intro-container {
  display: flex;
  align-items: center;  /* Allinea verticalmente l’immagine e il testo */
  gap: 80px;
  padding: 20px 80px 40px 80px;  /* Ridotto il padding-top */
  flex-wrap: wrap;
  justify-content: center;
}

/* Riquadro di testo */
.intro-text {
  flex: 2;
  min-width: 320px;
  background-color: #ffffff;
  padding: 60px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.intro-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-image img {
  max-width: 220px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.lb-overlay {
  background-color: rgba(0, 0, 0, 0.6) !important; /* trasparenza aumentata */
}

/* Bordo e ombra delle immagini lightbox per integrarle meglio nel sito */
.lb-image {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  border-radius: 10px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.intro-text {
  animation: fadeInUp 1s ease-out;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.intro-image img {
  animation: zoomIn 1s ease-out;
}



/* Sfondo popup */
#imgModal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
  text-align: center;
}

/* Immagine ingrandita */
#imgModalContent {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.4);
}

/* Chiudi */
#imgModalClose {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}


.nav-arrow {
  position: absolute;
  top: 50%;
  font-size: 40px;
  color: white;
  cursor: pointer;
  padding: 10px;
  transform: translateY(-50%);
  user-select: none;
}

#prevBtn {
  left: 30px;
}

#nextBtn {
  right: 30px;
}

.nav-arrow:hover,
#imgModalClose:hover {
  color: #ccc;
}

.map {
  text-align: center;
  margin-top: 30px;
}

.map iframe {
  border: 0;
  width: 80%;
  height: 500px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


.map-container {
  opacity: 0;
  animation: fadeInMap 1.5s ease-out forwards;
}

@keyframes fadeInMap {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
