/* Stile generale */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #fdfdfd;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

header {
  background: rgba(0,0,0,0.7);
  color: #fff;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
}

header h1 {
  font-size: 1.5em;
}

nav a {
  color: #fff;
  margin-left: 20px;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #ffd700;
}

section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: auto;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}

section.show {
  opacity: 1;
  transform: translateY(0);
}

#home {
  background: url('img/Blera.jpg') no-repeat center/cover;
  color: white;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  margin: 0;
  padding: 0;
  max-width: 100%; 
}

#home h2 {
  font-size: 3em;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

#home p {
  font-size: 1.6em;
  max-width: 700px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.gallery img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.4s ease;
  cursor: pointer;
}

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

.event {
  margin-bottom: 20px;
  padding: 15px;
  border-left: 4px solid #ffd700;
  background: #f8f8f8;
  border-radius: 8px;
  transition: background 0.3s;
}

.event:hover {
  background: #fffbe7;
}

footer {
  background: #222;
  color: #ccc;
  text-align: center;
  padding: 30px 20px;
  margin-top: 50px;
}

footer a {
  color: #ffd700;
  text-decoration: none;
}

.cosa-vedere-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: auto;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}

.cosa-vedere-section.show {
  opacity: 1;
  transform: translateY(0);
}

.cosa-vedere-section h2 {
  text-align: center;
  margin-bottom: 10px; /* meno spazio, così l'intro resta vicino */
  font-size: 2em;
}

.cosa-vedere-section .intro {
  text-align: center;
  font-size: 1.1em;
  color: #555;
  margin-bottom: 40px; /* spazio tra intro e la griglia */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}


/* Griglia responsive */
.cosa-vedere-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px; /* 🔑 spazio tra le immagini */
}

.cosa-vedere-item {
  position: relative;
  overflow: hidden;
  border-radius: 5px; 
  margin: 0;
  padding: 0;
}

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


/* Overlay con titolo / descrizione */
.cosa-vedere-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  color: white;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  transition: opacity 0.4s ease;
  text-align: center;
}

.cosa-vedere-item:hover img {
  transform: scale(1.1);
}

.cosa-vedere-item:hover .overlay {
  opacity: 1;
}

.cosa-vedere-item .overlay h3 {
  margin-bottom: 10px;
  font-size: 1.5em;
}

.cosa-vedere-item .overlay p {
  font-size: 1em;
}

#contatti {
  text-align: center;
  padding: 80px 20px;
}

#contatti a {
  color: #333;
  text-decoration: none;
}

#contatti a:hover {
  color: #9a0b09;
}

.social {
  margin-top: 20px;
}

.social a {
  font-size: 2em;          /* dimensione icone */
  margin: 0 15px;          /* spazio tra le icone */
  color: #333;
  transition: color 0.3s;
}

.social a.facebook:hover {
  color: #3b5998 !important;;      /* blu Facebook */
}

.social a.instagram:hover {
  color: #e4405f !important;;          /* rosa Instagram */
}

/* Sezione Blera */
#blera {
  padding: 80px 20px;
  max-width: 1200px;
  margin: auto;
}

.blera-container {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap; /* per mobile */
}

.image-container {
  flex: 1;
  min-width: 300px;
}

.image-container img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.image-container img:hover {
  transform: scale(1.03);
}

.text-container {
  flex: 1;
  min-width: 300px;
}

.text-container h2 {
  font-size: 2em;
  color: #080402;
  margin-bottom: 15px;
}

.text-container p {
  font-size: 1.1em;
  line-height: 1.6;
  color: #4d3a2d;
}

.blera-container {
  display: flex;
  align-items: center; /* testo e carosello affiancati */
  gap: 30px;
  flex-wrap: wrap;         /* per mobile */
}

.carousel-container {
  flex: 1;                  /* occupa spazio come l'immagine originale */
  min-width: 300px;
  max-width: 500px;         /* come prima */
  height: 300px;            /* altezza fissa del carosello */
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.carousel-container img {
  position: absolute;        /* sovrapposte */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  border-radius: 10px;
}

.carousel-container img.active {
  opacity: 1;
}

.text-container {
  flex: 1;
  min-width: 300px;
}

.text-container p {
  font-size: 1.1em;
  line-height: 1.6;
  color: #4d3a2d;
}

#eventi {
  padding: 80px 20px;
  max-width: 1200px;
  margin: auto;
}

.event-container {
  display: flex;
  align-items: center; /* centra verticalmente immagine e testo */
  gap: 30px;
  flex-wrap: wrap;    /* su mobile il testo scende sotto */
  margin-bottom: 50px;
}

.event-image {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.event-text {
  flex: 2;
  min-width: 300px;
}

.event-text h3 {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #080402;
}

.event-text p {
  font-size: 1.1em;
  line-height: 1.6;
  color: #4d3a2d;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
}

/* Nascondi il bottone hamburger su desktop */
.menu-toggle {
  display: none;
  font-size: 1.8em;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* Menu normale */
.nav-links a {
  color: #fff;
  margin-left: 20px;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #ffd700;
}

/* Media query per mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.9);
    display: none; /* nascosto di default */
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
  }

  .nav-links a {
    margin: 10px 0;
  }

  .nav-links.show {
    display: flex; /* mostra il menu quando clicchi hamburger */
  }
}
