/* Stile base */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  display: flex;
  flex-direction: column;
  background-size: cover;  /* Fa in modo che l'immagine copra tutta la pagina */
  background-position: center;  
}


body::before {
  content: ''; 
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: inherit;  /* Copia l'immagine di sfondo dal body */
  background-size: cover;
  background-position: center;
  filter: blur(10px) brightness(1);  /* Applica la sfocatura all'immagine */
  opacity: 0.5;        /* Imposta la trasparenza dell'immagine sfocata */
  z-index: -1;         /* Posiziona l'immagine sfocata dietro al contenuto del body */
}


/* Header */
header {
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;  
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  box-shadow: inset -20px 0 10px -10px rgba(255,165,0, 0.6), /* Ombra destra */
              inset 20px 0 10px -10px rgba(255,165,0, 0.6); /* Ombra sinistra */
}


main {
  flex-grow: 1;      /* Per garantire che il contenuto principale occupi tutto lo spazio disponibile */
  padding-top: 0px; /* Per lasciare spazio alla barra di navigazione */
}


/* Gallerie */
.gallery {
  padding: 20px;
  text-align: center;
}

.gallery h1 {
  margin-bottom: 20px;
  font-size: 2em;
}

.images {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* Massimo 5 colonne su desktop */
  gap: 15px; /* Spazio tra le immagini */
  position: relative;
}

.images img {
  width: 100%;
  height: auto; /* Mantiene le proporzioni */
  object-fit: cover;
  border: 5px solid #333;
  transition: transform 0.3s, border-color 0.3s, z-index 0.3s;
}

.images .large {
  transform: scale(1.5); /* Immagine più grande */
}

.images .wide {
  transform: scale(1.2, 1); /* Immagine più larga */
}

.images .tall {
  transform: scale(1, 1.2); /* Immagine più alta */
}

.images img:hover {
  transform: scale(1.3); /* Ingrandisce di più al passaggio del mouse */
  border-color: #f9a825;
  z-index: 10;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

/* Media Query per dispositivi mobili */
@media (max-width: 768px) {
  .images {
    grid-template-columns: repeat(2, 1fr); /* Solo 2 colonne su tablet e smartphone */
    gap: 10px; /* Riduce lo spazio tra le immagini */
  }
  
  .images img {
    border-width: 3px; /* Riduce lo spessore del bordo */
  }
  
  .images img:hover {
    transform: scale(1.2); /* Riduce l'ingrandimento al passaggio del mouse */
  }
}

@media (max-width: 480px) {
  .images {
    grid-template-columns: 1fr; /* Una colonna su schermi molto piccoli */
    gap: 8px; /* Ancora meno spazio tra le immagini */
  }
  
  .images img {
    border-width: 2px; /* Bordo più sottile */
  }
  
  .images img:hover {
    transform: scale(1.1); /* Effetto hover più discreto */
  }
}

/* Media Query per dispositivi mobili */
@media (max-width: 768px) {
  .banners {
    flex-wrap: wrap;
  }

  #home {
    position: relative;
  }
}

/* home page */
#home {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

/* Contenuto */
.home-content {
  position: relative;
  z-index: 3; /* Sopra lo sfondo */
  background-color: rgba(0, 0, 0, 0.2); /* Colore di sfondo con trasparenza */
  padding: 20px;
  border-radius: 15px;
  max-width: 800px;
  width: 90%;
  margin-top: auto;
}


.description h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  // color:#F9A825;
}

.description p {
  font-size: 1em;
  line-height: 1.4;
  text-align: justify;
  // color:#F9A825;
}

.banners {
  display: flex;
  gap: 15px;
  margin: 20px 0;
  justify-content: center;
  // flex-wrap: wrap;
}

.banners a {
  text-decoration: none;
  color: white;
  position: relative;
  width: 45%;
  max-width: 300px;
}

.banners img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.banners img:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.banner-caption {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.9em;
}

.prenota {
  display: inline-block;
  background-color: #F9A825;
  color: #fff;
  text-decoration: none;
  font-size: 1em;
  font-weight: bold;
  padding: 12px 24px;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.prenota:hover {
  background-color: #F98C25;
}


#rating-container {
  text-align: center;
  margin-top: 15px;
}

.rating-box {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFD700;
  gap: 10px;
}

.booking-logo {
  width: 100px;
  height: auto;
}

.rating-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rating-score {
  font-size: 1.5em;
}

.rating-reviews {
  font-size: 1em;
  color: #fff;
}

.certified-text {
  font-size: 0.9em;
  color: #ddd;
  margin-top: 5px;
}

