/* Popup di avviso: vedi wp-content/mu-plugins/altea-notice-popup.php */
html:has(.notice-popup[open]) {
  overflow: hidden;
}

.notice-popup {
  width: min(92vw, 520px);
  max-height: 90vh;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #404040;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
.notice-popup::backdrop {
  background: rgba(0, 0, 0, 0.7);
}

.notice-popup__box {
  position: relative;
  padding: 36px 30px 30px;
  text-align: center;
}
.notice-popup__box > :first-of-type:not(.notice-popup__close) {
  margin-top: 0;
}
.notice-popup__box > :last-child {
  margin-bottom: 0;
}
.notice-popup__box h2 {
  margin: 0 0 14px;
  padding: 0 24px;
  color: #404040;
  font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem);
  line-height: 1.2;
}
.notice-popup__box p {
  margin: 10px 0;
  font-size: 1rem;
  line-height: 1.5;
}

.notice-popup__contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0 !important;
}
.notice-popup__contacts a {
  display: block;
  padding: 12px 18px;
  border-radius: 6px;
  background: #404040;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.notice-popup__contacts a:hover,
.notice-popup__contacts a:focus-visible {
  background: #cab580;
  color: #1a1a1a;
}
.notice-popup__contacts a[href*="wa.me"] {
  background: #25d366;
  color: #0b3d1f;
}
.notice-popup__contacts a[href*="wa.me"]:hover,
.notice-popup__contacts a[href*="wa.me"]:focus-visible {
  background: #1ebe5b;
  color: #0b3d1f;
}

.notice-popup__close {
  position: absolute;
  top: 10px;
  right: 12px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: #404040;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.notice-popup__close:hover {
  color: #000;
}
.notice-popup__close:focus-visible,
.notice-popup__contacts a:focus-visible {
  outline: 2px solid #cab580;
  outline-offset: 2px;
}
