/* Overlay migliorato */

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.overlay-content {
  /*background: #ffffff;*/
  /*box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);*/
  border-radius: 2px;
  padding: 0px;
  width: 100%;
  max-width: 400px;
  position: relative;
  transform: scale(0.9);
  animation: scaleUp 0.3s forwards;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: red;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  text-align: center;
  cursor: pointer;
}

iframe {
  width: 100%;
  height: 600px;
  border: none;
}

.overlay[aria-hidden="false"] {
  display: flex;
  opacity: 1;
}

.overlay[aria-hidden="false"] {
  display: flex;
  opacity: 1;
}

/* Effetto di apertura */

@keyframes scaleUp {
  to {
    transform: scale(1);
  }
}

/* Pulsante di chiusura */

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #aeaeae;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  text-align: center;
  cursor: pointer;
  font-size: 16px;
}

.close-btn:hover {
  background: #ff3030;
}

/* Responsive */

@media (max-width: 400px) {
  .overlay-content {
    width: 95%;
  }
}

