/* Generali */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #202123;
  color: #333;
  margin: 0;
}

.social-links {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 1rem;
  padding: 1rem 2rem;
  background-color: #40414F;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  width: auto;
  max-width: 90vw;
  margin: 1rem auto;
}

h1 {
  font-size: 20px;
  color: white;
  text-align: center;
  margin-left: 75px;
}

h2 {
  font-size: 20px;
  color: white;
  text-align: center;
  margin-left: 75px;
}

.social-links li a {
  display: inline-block;
  padding: 0.5rem;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.social-links li a:hover {
  transform: scale(1.1);
  background-color: #40414F;
}

.social-icon {
  margin-top: 15px;
  width: 40px;
  height: 40px;
}

.social-icon2 {
  width: 70px;
  height: 70px;
}

.video-box {
  width: 300px;
  padding: 0;
  margin: 0 auto 2rem auto;
  margin-left: 100px;
  height: 100%;
}

video {
  width: 100%;
  height: auto;
  image-rendering: auto;
}

/* Info Box con animazione di entrata alternata */
.info-box {
  display: flex;
  align-items: center;
  background-color: #40414F;
  margin: 1rem;
  padding: 1rem;
  border-radius: 20px;
  transition: transform 1.2s ease, opacity 3.5s ease;
  will-change: transform, opacity;
  color: #fff;
  margin-left: 75px;
}

.info-box .logo img {
  width: 80px;
  height: auto;
  margin-right: 1rem;
  border-radius: 10px;
}

.info-box .logo2 img {
  width: 120px;
  height: auto;
  margin-right: 1rem;
  border-radius: 10px;
}

/* Direzioni di partenza */
.hidden-left {
  transform: translateX(-100px);
}

/* Classe che fa entrare il box */
.show {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding: 1rem;
  }

  .social-links {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.8rem 1rem;
    gap: 0.5rem;
  }

  h1, h2 {
    margin-left: 0;
    text-align: center;
  }

  .video-box {
    margin-left: 0;
    width: 100%;
    max-width: 90vw;
  }

  .info-box {
    margin-left: 0;
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .info-box .logo img,
  .info-box .logo2 img {
    margin: 0 0 1rem 0;
  }
}

/* Footer */
footer h1 {
  text-align: center;
  padding: 2rem;
  font-size: 1rem;
  color: #555;
}
.poster-slider {
  overflow-x: auto;
  white-space: nowrap;
  padding: 1rem;
  margin-left: 0px;
}

.posters-container {
  display: flex;
  gap: 1rem;
}

.poster {
  width: 120px;
  height: auto;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.poster:hover {
  transform: scale(1.05);
}

/* Modal fullscreen viewer */
.modal-viewer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(20, 20, 20, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
}

.modal-slider {
  display: flex;
  gap: 1rem;
  transition: transform 0.3s ease;
  touch-action: pan-y;
}

.modal-poster {
  max-height: 90vh;
  max-width: 90vw;
  margin: 0 auto;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  z-index: 10000;
}

/* Mobile fix */
@media (max-width: 768px) {
  .poster {
    width: 90px;
  }
}
.modal-viewer {
  touch-action: none; /* Blocca il comportamento touch di default */
}

.modal-slider {
  touch-action: pan-y; /* Solo movimento verticale dentro lo slider */
}

