.slider-vol {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  margin-bottom: 30px;
}

.slider-vol .slides {
  display: flex;
  transition: transform 0.4s ease;
}

.slider-vol .slides a img {
  width: 200px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 10px;
  cursor: pointer;
}

.slider-vol .prev,
.slider-vol .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 5px;
  z-index: 10;
}

.slider-vol .prev { left: 10px; }
.slider-vol .next { right: 10px; }



.year-gallery {
  margin-bottom: 50px;
}

.year-gallery h2 {
  font-size: 1.6em;
  margin-bottom: 15px;
}

.slider {
  position: relative;
  overflow: hidden;
}

.slides {
  display: flex;
  transition: transform 0.3s ease-in-out;
}

.slides a {
  min-width: 100%;
  box-sizing: border-box;
}

.slides img {
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
}

/* Pulsanti */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
}

.prev { left: 10px; }
.next { right: 10px; }

/* Contenitore immagini card */
.photos, .photos-scroll {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;  /* centra le immagini */
  gap: 1rem;
  margin: 1rem 0;
}

/* Immagini delle card */
.photos img, .photos-scroll img {
  width: auto;           /* larghezza automatica secondo proporzioni */
  max-width: 250px;      /* dimensione massima desiderata */
  height: auto;          /* mantiene proporzioni */
  border-radius: 8px;
  display: block;
  object-fit: cover;     /* centra e riempi l'area immagine */
  object-position: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.photos img:hover, .photos-scroll img:hover {
  transform: scale(1.03);
}

/* Adattamento tablet */
@media (max-width: 768px) {
  .photos img, .photos-scroll img {
    max-width: 200px;    /* leggermente più piccole su tablet */
  }
}

/* Adattamento smartphone */
@media (max-width: 480px) {
  .photos img, .photos-scroll img {
    max-width: 150px;    /* dimensione più piccola su smartphone */
    width: 100%;         /* si adatta alla card senza superare max-width */
  }
}
