.nli-audit-install-trigger {
  margin-top: 0.5rem;
}

.nli-audit-modal {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
}

.nli-audit-modal-panel {
  position: relative;
  width: min(100%, 32rem);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.5rem;
  border: 2px solid #d71920;
  border-radius: 0.75rem;
  background: #111;
  color: #fff;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.45);
}

.nli-audit-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 1.5rem;
  cursor: pointer;
}

.nli-audit-install-primary,
.nli-audit-install-trigger,
.nli-youtube-load {
  min-height: 2.75rem;
  border: 0;
  border-radius: 0.45rem;
  padding: 0.7rem 1rem;
  background: #b71c1c;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.nli-audit-install-primary:focus-visible,
.nli-audit-install-trigger:focus-visible,
.nli-audit-modal-close:focus-visible,
.nli-youtube-load:focus-visible {
  outline: 3px solid #ffd54f;
  outline-offset: 3px;
}

.nli-youtube-facade {
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  place-items: center;
  overflow: hidden;
  border-radius: 0.5rem;
  background: #080808;
}

.nli-youtube-facade iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.nli-youtube-load {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.nli-youtube-load span {
  font-size: 1.5rem;
}

.nli2-live-dot {
  background: #c41018 !important;
}

.nli2-share-row > span {
  color: #4a4a4a !important;
}

.nli2-community-cta a[href*="whatsapp.com/channel/"] {
  color: #111 !important;
}

.wp-block-latest-posts__featured-image > a {
  display: inline-flex;
  min-width: 24px;
  min-height: 24px;
}

.nli-audit-picture {
  display: contents;
}

#nlv-rotator-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 191;
}

/*
 * Keep the compact mobile layout. On desktop, preserve the banner's natural
 * horizontal proportions without letting it dominate the article.
 */
@media (min-width: 1024px) {
  #nlv-sticky-rotator {
    height: clamp(120px, 11vw, 150px) !important;
  }

  #nlv-sticky-rotator .nlv-rotator img {
    width: auto !important;
    height: 100% !important;
    max-width: min(82vw, 980px) !important;
    max-height: 100% !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
  }
}

/*
 * Site-specific optimized copies of the parent theme backgrounds. The parent
 * files remain untouched and rollback simply removes these overrides.
 */
html[data-nli-theme="dark"] body.nli2-app-style,
body.nli2-theme-dark.nli2-app-style,
body.nli2-app-style:not(.nli2-theme-light) {
  background:
    radial-gradient(circle at 0 0, rgba(239, 27, 36, 0.18), transparent 28%),
    radial-gradient(circle at 100% 8%, rgba(239, 27, 36, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.94) 46%, #050505 100%),
    url("https://www.nocerinalive.it/wp-content/uploads/2026/07/nli-fight-bg-optimized-1600.webp")
      center top / cover fixed no-repeat,
    #050505 !important;
}

.nli2-brandbar {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.82)),
    url("https://www.nocerinalive.it/wp-content/uploads/2026/07/nli-fumogeni-header-2026-optimized-1600.webp")
      center center / cover no-repeat,
    linear-gradient(90deg, #020202, #160204 50%, #020202) !important;
}

.fc-consent-root .fc-dialog {
  background: #fff !important;
  color: #111 !important;
}

.fc-consent-root .fc-faq-label,
.fc-consent-root .fc-vendors-list-dialog,
.fc-consent-root .fc-manage-options-third-button-label {
  color: #111 !important;
}

ins.adsbygoogle,
.google-auto-placed {
  display: block;
  min-height: 250px;
  contain: layout;
}

@media (max-width: 480px) {
  ins.adsbygoogle,
  .google-auto-placed {
    min-height: 100px;
  }
}
