.titolo-serie-statico {
  font-family: 'Figtree', sans-serif;
  color: #999;
  opacity: 0.7;
  font-size: 5vw;
  margin-left: 20%;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
  z-index: 2;
}

.titolo-serie-movimento {
  font-family: 'Figtree', sans-serif;
  color: #999;
  opacity: 0.7;
  font-size: 5vw;
    opacity: 0.9;
    animation: scroll-and-bounce 60s linear;
    user-select: none;
        left:100%;
  }
@keyframes scroll-and-bounce {
  0% {
    opacity:0;
    transform: translateX(+200%);
  }
  20% {
    opacity:1;
    /*transform: translateX(50%); /* Sposta a sinistra */
  }
  50% {
    transform: translateX(0); /* Torna al punto di partenza */
    opacity:0;
  }
  75% {
    /*Opacity:0;*/
    /*transform: translateX(100px); /* Sposta a destra */
  }
  100% {
    opacity:0;
    transform: translateX(0); /* Torna al punto di partenza */
  }

}


/* Contenitore principale */
.contenuto-serie {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem 2rem;
}

/* Titolo centrato */
.testata-serie h1 {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

/* Descrizione */
.descrizione-serie {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

/* Immagine grande centrata */
.immagine-random-serie {
    width: 100%;
    max-width: 1000px;
    margin: 2rem auto;
    text-align: center;
    position: relative;
}

/* Miniature in 3 colonne */
.griglia-opere {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.opera-miniatura {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.1); /* bordo sottile sul contenitore */
}

.opera-thumb-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #000;
}

.opera-miniatura img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 2s ease;
  z-index: 0;
}


/*
.opera-miniatura {
    position: relative;
    overflow: hidden;
    width: calc(33.333% - 1rem);
    transition: transform 0.4s ease;
}

/* Immagini 
.opera-miniatura img,img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 2s ease;
}
*/

/* Zoom su hover */
.opera-miniatura:hover img {
    transform: scale(1.3);
}

/* Overlay COD */
.opera-miniatura .overlay-codice {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  color: #ccc;
  font-size: 0.9rem;
  pointer-events: none;
  background: transparent;
}
/* Immagine grande centrata e contenuta */
.immagine-random-serie {
    text-align: center;
    margin: 2rem auto;
    margin-bottom: 4rem;
    max-width: 800px;
    position: relative;
    overflow: hidden; /* <--- Limita lo zoom dentro i bordi */
	border: 1px solid rgba(0,0,0,0.1); /* bordo sottile sul contenitore */
 
}

.immagine-random-serie img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 3s ease;
}

/* zoom sulla grande */
.immagine-random-serie:hover img{
    transform: scale(1.3);
}

/* Codice sovrapposto in basso centrato */
.overlay-codice-grande {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: #ccc;
    font-size: 1.1rem;
    background: transparent;
    pointer-events: none;
}

.codice-opera{
      z-index: 2;
  /*color: #EEEEEE;*/
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  padding: 0;
  line-height: 2;
  pointer-events: none;
  opacity: 0.8;
  color: #999;
  transition: transform 3s ease, letter-spacing 0.6s ease;
  transform: scale(1);
  text-align: center;
  padding-top: 85%;
}
/* per la manina dopo lozoom */
#zoom-container.zoomed {
  cursor: grab;
}

#zoom-container.zoomed.dragging {
  cursor: grabbing;
}

