/* Popup newsletter Latte e Luna */
.ll-popup-nl {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.ll-popup-nl[hidden] {
  display: none !important;
}

.ll-popup-nl__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 30, 36, 0.55);
}

.ll-popup-nl__dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  animation: ll-popup-nl-in 0.35s ease;
}

@keyframes ll-popup-nl-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.ll-popup-nl__close {
  position: absolute;
  top: 0.5rem;
  right: 0.65rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: transparent;
  color: #606060;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.ll-popup-nl__close:hover,
.ll-popup-nl__close:focus-visible {
  color: #222;
  outline: none;
}

.ll-popup-nl__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  min-height: 360px;
}

.ll-popup-nl__layout--no-image {
  grid-template-columns: 1fr;
}

.ll-popup-nl__media {
  min-height: 100%;
  background: #f3f3f3;
}

.ll-popup-nl__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ll-popup-nl__body {
  padding: 2.25rem 2rem 2rem;
  font-family: 'Poppins', sans-serif;
  color: var(--colore-testo-principale, #606060);
}

.ll-popup-nl__title {
  margin: 0 0 0.75rem;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--colore-testo-principale, #606060);
}

.ll-popup-nl__text {
  margin: 0 0 1.35rem;
  font-size: 0.98rem;
  line-height: 1.55;
}

.ll-popup-nl .mauticform_wrapper {
  max-width: none;
  margin: 0;
}

.ll-popup-nl .mauticform-page-wrapper {
  display: block;
  margin: 0;
}

.ll-popup-nl .mauticform-row {
  margin-bottom: 0.85rem;
  padding: 0;
  width: 100% !important;
}

.ll-popup-nl .mauticform-label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.ll-popup-nl .mauticform-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.85rem;
  border: 1px solid #cfcfcf;
  border-radius: 2px;
  background: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  color: #333;
}

.ll-popup-nl .mauticform-input:focus {
  outline: none;
  border-color: var(--colore-link, #69A7E4);
}

.ll-popup-nl__names {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.ll-popup-nl__recaptcha {
  margin: 0 !important;
  min-height: 0;
}

.ll-popup-nl__recaptcha .mauticform-label {
  display: none;
}

.ll-popup-nl .mauticform-checkboxgrp-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.ll-popup-nl .mauticform-checkboxgrp-label {
  font-weight: 400;
  font-size: 0.82rem;
  line-height: 1.4;
  margin: 0;
}

.ll-popup-nl .mauticform-errormsg {
  color: #c0392b;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.ll-popup-nl .mauticform-error {
  color: #c0392b;
  margin-bottom: 0.75rem;
}

.ll-popup-nl .mauticform-message {
  color: #2e7d32;
  margin-bottom: 0.75rem;
}

.ll-popup-nl__submit,
.ll-popup-nl .mauticform-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.85rem 1.25rem;
  border: 0;
  border-radius: 2px;
  background: var(--colore-testo-principale, #606060);
  color: #fff !important;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ll-popup-nl__submit:hover,
.ll-popup-nl .mauticform-button:hover {
  background: var(--colore-link, #69A7E4);
}

body.ll-popup-nl-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .ll-popup-nl__layout {
    grid-template-columns: 1fr;
  }

  .ll-popup-nl__media {
    max-height: 160px;
  }

  .ll-popup-nl__body {
    padding: 1.5rem 1.15rem 1.25rem;
  }

  .ll-popup-nl__title {
    font-size: 1.2rem;
    padding-right: 1.5rem;
  }

  .ll-popup-nl__names {
    grid-template-columns: 1fr;
  }

  .ll-popup-nl--hide-mobile {
    display: none !important;
  }
}
