/* Popup statico (vedi mu-plugins/site-popup.php) — stessi stili di barabino-de / barabino-fr.
   z-index sotto il banner Cookiebot per lasciarlo cliccabile. */
.site-popup {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  padding: 15px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .site-popup {
    padding: 30px;
  }
}

.site-popup[hidden] {
  display: none;
}

.site-popup-inner {
  position: relative;
  max-width: 700px;
  width: 100%;
}

.site-popup-link {
  display: block;
}

.site-popup-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 60px);
  object-fit: contain;
}

.site-popup .site-popup-close {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.2s;
  width: 40px;
  height: 40px;
  min-height: 0;
  border-top-right-radius: 8px;
}

@media (min-width: 576px) {
  .site-popup .site-popup-close {
    width: 45px;
    height: 45px;
    border-top-right-radius: 18px;
  }
}

.site-popup .site-popup-close:before,
.site-popup .site-popup-close:after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 2px;
  background: #ffffff;
}

.site-popup .site-popup-close:before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.site-popup .site-popup-close:after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.site-popup .site-popup-close:hover,
.site-popup .site-popup-close:focus {
  background: #66b239;
}
