/* Import font Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}
#privacy-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #333;
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

#privacy-banner a {
  color: #fff;
  text-decoration: underline;
}

#privacy-banner button {
  background-color: #fff;
  color: #333;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

#privacy-banner button:hover {
  background-color: #ddd;
}


/* 🔝 Navbar */
nav#navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: top 0.3s;
}

.nav-left img {
  height: 40px;
}

.nav-center {
  font-weight: 800;
  font-size: 1.2rem;
}

.nav-right {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-right li a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-right li a:hover {
  color: #888;
}

/* Nascondi navbar allo scroll */
body.scrolled nav#navbar {
  top: -80px;
}

/* 🖼️ Header */
header.hero {
  position: relative;
  height: 80vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

header.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  z-index: -2;
}

header.hero .overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
  z-index: -1;
}

.hero-content {
  color: #fff;
}

.hero-content img {
  height: 60px;
  margin-bottom: 1rem;
}

.hero-content h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.cta {
  background-color: #fff;
  color: #333;
  padding: 0.7rem 1.5rem;
  text-decoration: none;
  font-weight: 600;
  border-radius: 5px;
  transition: background 0.3s;
}

.cta:hover {
  background-color: #ddd;
}

.cta-wrapper {
  position: relative;
  display: inline-block;
}

.tooltip {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

.cta-wrapper:hover .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

/* 📝 Intro */
.intro {
  padding: 3rem 2rem;
  text-align: center;
}

.intro h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.intro h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.intro p {
  text-align: justify;
  margin: 0.5rem auto;
  max-width: 800px;
}

/* 🧱 Tre Colonne */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
}

.feature {
  background-color: #e0e0e0;
  padding: 1rem;
  border-radius: 10px;
  width: 300px;
  text-align: center;
}

.feature img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 📖 Testo + Immagine */
.text-image {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  width: 80%;
  margin: auto;
}

.text-image .text {
  flex: 1;
  text-align: justify;
}

.text-image .image img {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 🛏️ Camere */
.camere-section {
  padding: 2rem;
  text-align: center;
}

.camere-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.camera {
  text-align: center;
}

.camera img {
  width: 100%;
  border-radius: 10px;
}

/* 🖼️ Fotogallery */
.gallery-section {
  padding: 2rem;
  text-align: center;
}

.gallery-scroll {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 1rem;
}

.gallery-scroll img {
  height: 200px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 📍 Prenota */
.booking-section {
  padding: 2rem;
  text-align: center;
}

.booking-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  width: 90%;
  margin: auto;
}
.map, .form {
  flex: 1;
  min-height: 400px;
}

.map iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.form form:hover {
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.form input,
.form textarea {
  padding: 1rem;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  background-color: #f0f0f0;
  transition: background 0.3s;
}

.form input:focus,
.form textarea:focus {
  background-color: #e0e0e0;
  outline: none;
}

.form button {
  padding: 1rem;
  background-color: #333;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s;
}

.form button:hover {
  background-color: #555;
}
#contactForm input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.5);
}

#formMessage {
  margin-top: 1rem;
  font-weight: 600;
  color: green;
  text-align: center;
}

/* 🔚 Footer */
footer {
  background-color: #333;
  color: #fff;
  padding: 2rem;
  text-align: center;
}

.social-nav a img {
  height: 30px;
  margin: 0 0.5rem;
}

/* 📱 Responsive */
@media (max-width: 768px) {
  .nav-right {
    display: none;
  }

  .features, .text-image, .booking-container {
    flex-direction: column;
    align-items: center;
  }

  .gallery-scroll img {
    height: 150px;
  }
}
