.video-wrapper {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
}

/* VIDEO DI SFONDO */
.video-wrapper video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1; /* il video sta sotto l’overlay */
}

.video-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;

  background-image:
    linear-gradient(to right, rgba(87, 87, 87, 0.836) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(87, 87, 87, 0.836) 1px, transparent 1px);

  background-size: 2px 2px;
  mix-blend-mode: overlay; /* torna allo scuro */
  opacity: 1;
}







/* OVERLAY CENTRALE */
.overlayvideo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  background: rgba(255, 255, 255, 0.45);
  color: #fff;
  padding: 30px 50px;
  text-align: center;
  border-radius: 12px;

  z-index: 3; /* sopra tutto */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  width: 90%;
  max-width: 700px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .video-wrapper {
    height: 50vh;
  }
}

/* VIDEO ALONE */
.video-wrapper-alone {
  width: 100%;
  overflow: hidden;
}

.video-wrapper-alone video {
  width: 100%;
  height: auto;
  display: block;
}







