:root {
  --bg: #f9faf5;
  --text: #2f3324;
  --primary: #6b8e23;
  --accent: #a3b18a;
  --light: #e9edc9;
  --dark: #3a5a40;
}

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background-color: var(--bg);
  color: var(--text);
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Header uniforme */
.top-bar {
  background-color: var(--accent);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-bar h1 {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
}

nav {
  margin-top: 0.5rem;
}

.nav-links {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 1rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  font-size: 1rem;
}

/* Menu hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: var(--light);
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    padding: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    right: 1rem;
    top: 1rem;
  }

  .top-bar {
    position: relative;
  }
}

/* Hero images (dimensione originale) */
.hero img {
  width: 100%;
  max-height: 350px; /* come prima */
  object-fit: cover;
  display: block;
}

/* Sezione introduttiva */
.intro, .contatti, .camere {
  background-color: var(--light);
  padding: 2rem 0;
}

/* Footer ripristinato */
footer {
  background-color: var(--primary);
  color: white;
  text-align: left; /* allineamento come prima */
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

footer a {
  color: white;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

footer p {
  margin: 0.2rem 0;
}

/* Galleria immagini */
.camere-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.camere-gallery img {
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  object-fit: cover;
  height: 150px;
  transition: transform 0.3s ease;
}

.camere-gallery img:hover {
  transform: scale(1.05);
}

/* Lightbox */
#lightbox {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

#lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

#lightbox .close,
#lightbox .prev,
#lightbox .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
}

#lightbox .close {
  top: 10%;
  right: 5%;
  transform: none;
  font-size: 3rem;
}

#lightbox .prev {
  left: 5%;
}

#lightbox .next {
  right: 5%;
}

@media (max-width: 480px) {
  .camere-gallery img {
    height: 120px;
  }
  #lightbox .close,
  #lightbox .prev,
  #lightbox .next {
    font-size: 2rem;
    padding: 0.2rem 0.6rem;
  }
  #lightbox .close {
    top: 8%;
    right: 3%;
    font-size: 2.5rem;
  }
}

/* Full-width sections */
.full-width-section {
  box-sizing: border-box;
  width: 100%;
  padding: 2rem 0;
  background: var(--light) !important;
  margin: 0 0 2rem 0;
}

.full-width-section > * {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.full-width-section h2,
.full-width-section h3,
.full-width-section p {
  text-align: center;
}

.full-width-section .camere-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 1100px;
  margin: 1rem auto;
}

.full-width-section .camere-gallery img {
  max-width: 300px;
  border-radius: 8px;
  cursor: pointer;
}

/* Map section */
.map-section iframe {
  display: block;
  margin: 0 auto;
}
