body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #fff;
  color: #222; 
}

/* HERO *******************************************************************************************/
.hero {
  height: 320px;
  background-image: url("../images/background.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  color: White; /* #fff */ /* Colore titolo della pagina */
  position: relative;
  text-align: center;
}

/* 
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
} 
.hero h1 {
  position: relative;
  z-index: 1;
  font-size: 2.5em;
}
*/

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 { /* Titoli della pagine */
  margin-bottom: 20px;
  font-size: 4.2em; /* 2.5em */
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 60px; /* 30px */   /* Distanza tra i pulsanti della home */
  flex-wrap: wrap;
}
.main-nav a {
  text-decoration: none;
  color: White; /* #fff */ /* Colore testo pulsanti */
  font-weight: 550; /* 500 */
  padding: 8px 14px;
  /* border: 1px solid rgba(255,255,255,0.5); */
  border: 1px solid White; /* Bordo pulsanti */
  border-radius: 4px;
  transition: background 0.2s ease;
}
.main-nav a:hover {
  background: rgba(255,255,255,0.2);
}

/* BACK LINK */
.back-link {
  padding: 20px;
}

/* GALLERY */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
}

.card, .slide {
  cursor: pointer;
}

.card img {
  width: 100%;
  display: block;
}

.info {
  padding: 10px;
}

/* CAROUSEL */
.carousel {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 20px;
}

/* Nasconde la scrollbar (Chrome, Edge, Safari) */
.carousel::-webkit-scrollbar {
  display: none;
}

/* Nasconde la scrollbar (Firefox) */
.carousel {
  scrollbar-width: none;
}

/* Nasconde la scrollbar (IE/vecchio Edge) */
.carousel {
  -ms-overflow-style: none;
}

.slide {
  min-width: 300px;
  height: 400px;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.overlay {
  position: absolute;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  color: #fff;
  width: 100%;
  padding: 10px;
}

/* CONTACT */
.contact {
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid #eee;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 30px;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  text-align: center;
  color: #fff;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 70vh;
  margin-bottom: 20px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 28px;
  cursor: pointer;
  color: #fff;
}
