/* Impostazioni di base */
body {
  font-family: Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background: #fff;
  color: #333;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #ddd;
}

.logo img {
  height: 50px;
}

.menu {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.menu a {
  margin: 0 1rem;
  text-decoration: none;
  color: #333;
}

.language-selector {
  margin-left: auto;
  font-size: 1rem;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.language-selector a {
  text-decoration: none;
  color: #333;
  padding: 0 10px;
}

.language-selector a:hover {
  color: #007bff;
}

/* Hamburger menu */
.hamburger {
  display: none;
}

/* Sezione Camere */
.camere-section {
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
}

.camere-grid-matrimoniali,
.camere-grid-altre {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.camera-box {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.camera-gallery {
  position: relative;
  overflow: hidden;
}

.camera-gallery img {
  width: 100%;
  display: none;
  border-radius: 8px;
}

.camera-gallery img:first-child {
  display: block;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  padding: 5px 10px;
  cursor: pointer;
  font-size: 1.5rem;
  user-select: none;
  border-radius: 5px;
}

.gallery-nav.prev {
  left: 10px;
}

.gallery-nav.next {
  right: 10px;
}

.camera-box h2 {
  margin-top: 1rem;
}

.camera-box ul {
  padding-left: 1.2rem;
}

.btn-prenota {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: #007bff;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
}

.btn-prenota:hover {
  background: #0056b3;
}

/* Sezione Jesi */
.jesi-section {
  padding: 2rem;
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

.jesi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  justify-items: center;
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
}

.jesi-card {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.jesi-card:hover {
  transform: scale(1.03);
}

.jesi-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* Sezione Contatti */
.contatti-section {
  padding: 2rem;
  max-width: 1000px;
  margin: auto;
}

.contatti-section h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.contatti-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contatti-info {
  font-size: 1rem;
  line-height: 1.6;
}

.contatti-info p {
  margin: 0.5rem 0;
}

.contatti-info a {
  color: #007bff;
  text-decoration: none;
}

.contatti-info a:hover {
  text-decoration: underline;
}

.contatti-mappa iframe {
  width: 100%;
  max-width: 100%;
  height: 300px;
  border-radius: 10px;
  border: none;
}

/* Responsive layout per Contatti */
@media (min-width: 768px) {
  .contatti-content {
    flex-direction: row;
    justify-content: space-between;
  }

  .contatti-info, .contatti-mappa {
    flex: 1;
  }

  .contatti-info {
    padding-right: 2rem;
  }
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem;
  background: #f1f1f1;
  margin-top: 3rem;
}

/* Home - sezione Hero */
.hero {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;  /* Aggiunto per centrare il testo orizzontalmente */
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.8);
  padding: 2rem;
  border-radius: 10px;
  max-width: 90%;  /* Aggiunto per evitare che il testo fuoriesca */
  text-align: center;
}

.hero-text h1 {
  margin: 0;
  font-size: 2rem;
  color: #333;
}

.hero-text p {
  font-size: 1.2rem;
  color: #555;
}

.hero-btn {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #007BFF;
  color: white;
  padding: 12px 24px;
  font-size: 18px;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.hero-btn:hover {
  background-color: #0056b3;
}

/* Sezione Chi Siamo */
.chi-siamo-section {
  padding: 2rem;
  max-width: 1000px;
  margin: auto;
}

.chi-siamo-section h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.chi-siamo-section p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
  text-align: justify;
}

.chi-siamo-section img {
  width: 100%;
  max-width: 600px;
  display: block;
  margin: 2rem auto;
  border-radius: 10px;
}

/* Itinerari */
.itinerary {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.itinerary:hover {
  transform: scale(1.02);
}

.itinerary img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.itinerary div {
  padding: 1rem;
}

/* Aggiungere un effetto hover sulle immagini */
.itinerary {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.itinerary:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Centra e ottimizza la sezione del modulo di prenotazione */
.prenota-section {
  width: 70%;
  margin: 0 auto;
  padding: 40px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .prenota-section {
    width: 90%;
  }
}

/* ⬇️ Nuovi stili per il modulo booking-form */
.booking-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  padding: 1rem;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.booking-form input[type="submit"] {
  background-color: #007bff;
  color: white;
  cursor: pointer;
}

.booking-form input[type="submit"]:hover {
  background-color: #0056b3;
}

.booking-form label {
  font-weight: bold;
}
.hero-text-sub {
  text-align: center;
  padding: 2rem;
  font-size: 1.2rem;
  color: #333;
  max-width: 800px;
  margin: 0 auto;
}
