/* Colori caldi e stile responsive */
:root {
  --bg: #fff8f0;
  --text: #3a2e2e;
  --primary: #d86f45;
  --accent: #f4a261;
  --light: #fefae0;
  --dark: #bc6c25;
}

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;
}

.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: 1.5rem;
}

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;
}

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

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

footer {
  background-color: var(--primary);
  color: white;
  text-align: center;
  padding: 1rem;
}

.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;
  }
}

/* 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%;
}

/* Responsive adjustments for smaller devices */
@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;
  }
}
