/* -------------------------------------------------
   SB Newsletter Popup — Minimal / Divi-proof
-------------------------------------------------- */

.sb-nl-overlay{
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;

  background: rgba(0,0,0,.45);
  z-index: 2147483647;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
}

.sb-nl-overlay.is-open{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sb-nl-modal{
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 18px 55px rgba(0,0,0,.22);
  padding: 28px 26px 22px;
  position: relative;

  transform: translateY(10px);
  opacity: 0;
  transition: opacity .22s ease, transform .22s ease;
}

.sb-nl-overlay.is-open .sb-nl-modal{
  transform: translateY(0);
  opacity: 1;
}

.sb-nl-close{
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 40px;
  cursor: pointer;
  opacity: .6;
}

.sb-nl-close:hover{ opacity: .95; }

/* Titolo: colore + font + centratura */
.sb-nl-title{
  margin: 0 44px 10px 0;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: .2px;
  text-align: center;

  color: #CEBCA8;
  font-family: 'Pontano Sans', Helvetica, Arial, Lucida, sans-serif;
  font-weight: 600;
}

/* Sottotitolo centrato */
.sb-nl-subtitle{
  margin: 0 0 18px 0;
  opacity: .78;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.sb-nl-body{ margin-top: 6px; }

/* Success message */
.sb-nl-success{
  margin: 0 0 14px 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(206,188,168,.14);
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
}

/* -------------------------------------------------
   Form styling — force inside popup (Divi override)
-------------------------------------------------- */

#sb-nl-modal .sb-nl-body p{
  margin: 0 0 12px 0 !important;
}

#sb-nl-modal .sb-nl-body label{
  display: block !important;
  margin: 0 !important;
}

#sb-nl-modal .sb-nl-body input[type="email"],
#sb-nl-modal .sb-nl-body input[type="text"],
#sb-nl-modal .sb-nl-body input[type="tel"],
#sb-nl-modal .sb-nl-body select,
#sb-nl-modal .sb-nl-body textarea{
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;

  padding: 11px 12px !important;
  border: 1px solid rgba(0,0,0,.14) !important;
  border-radius: 12px !important;

  background: #fff !important;
  color: inherit !important;

  margin: 0 0 12px 0 !important;
  font: inherit !important;

  box-shadow: none !important;
}

#sb-nl-modal .sb-nl-body input[type="email"]:focus,
#sb-nl-modal .sb-nl-body input[type="text"]:focus,
#sb-nl-modal .sb-nl-body input[type="tel"]:focus,
#sb-nl-modal .sb-nl-body select:focus,
#sb-nl-modal .sb-nl-body textarea:focus{
  outline: none;
  border-color: rgba(0,0,0,.35) !important;
}

#sb-nl-modal .sb-nl-body input[type="submit"],
#sb-nl-modal .sb-nl-body button[type="submit"],
#sb-nl-modal .sb-nl-body button{
  width: 100% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 12px 14px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(0,0,0,.15) !important;

  background: #111 !important;
  color: #fff !important;

  cursor: pointer !important;
  font: inherit !important;
  letter-spacing: .2px;
  box-shadow: none !important;
}

#sb-nl-modal .sb-nl-body input[type="submit"]:hover,
#sb-nl-modal .sb-nl-body button[type="submit"]:hover,
#sb-nl-modal .sb-nl-body button:hover{
  filter: brightness(1.05);
}

/* Honeypot common wrappers (extra safety) */
#sb-nl-modal input[name="_mc4wp_honeypot"],
#sb-nl-modal input[name*="honeypot"],
#sb-nl-modal input[name^="b_"]{
  display: none !important;
}

/* MC4WP honeypot: forza hide (anche se il tema forza i label) */
#sb-nl-modal label:has(input[name="_mc4wp_honeypot"]),
#sb-nl-modal label:has(input[name*="honeypot"]),
#sb-nl-modal label:has(input[name^="b_"]) {
  display: none !important;
}

/* fallback: nascondi comunque l’input */
#sb-nl-modal input[name="_mc4wp_honeypot"],
#sb-nl-modal input[name*="honeypot"],
#sb-nl-modal input[name^="b_"] {
  display: none !important;
}

