/* Overlay: sfondo semitrasparente e centratura */
.banner-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.35s ease;
}

/* Stato aperto (fade-in) */
.banner-overlay.is-open {
  display: flex;
  opacity: 1;
}

/* Blocco principale del popup */
.banner-modal {
  position: relative;
  background: transparent;
  width: min(90vw, 780px);
  outline: none;
  transform: scale(0.95);
  transition: transform 0.35s ease;
}

/* Effetto zoom-in */
.banner-overlay.is-open .banner-modal {
  transform: scale(1);
}

/* Immagine */
.banner-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
}

/* Pulsante chiudi */
.banner-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 36px;
  height: 36px;
  padding: 10px 0 0 0;                 /* assicurati niente padding */
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,.25);
  color: #000;
  font-size: 42px;            /* ↓ da 40px a ~22px */
  line-height: 1;             /* evita extra spazio verticale del font */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  /* micro correzione ottica, se serve */
  transform: translateY(-1px);
  transition: background .2s ease, transform .2s ease;
}




.banner-close:hover {
  background: #f3f3f3;
  transform: scale(1.1);
}

/* Rimozione scroll sotto il popup */
.body--no-scroll {
  overflow: hidden;
}

/* Link immagine */
.banner-link {
  display: block;
  text-decoration: none;
  outline: none;
}

/* Fade-out (usato quando chiuso via JS) */
.banner-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Responsività extra */
@media (max-width: 480px) {
  .banner-modal {
    width: 94vw;
  }
  .banner-close {
    top: -8px;
    right: -8px;
  }
}
