/* ============================================================
   Paolo Monaco Studio — Email-gate risorse scaricabili (modale)
   ------------------------------------------------------------
   Overlay fixed, fuori dai root scopati di checklist/LBP. Riusa i
   token di tokens.css e i bottoni (.btn .btn-orange) di site.css.
   ============================================================ */
.pm-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 29, 58, 0.55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  animation: pm-gate-fade 0.18s ease;
}

@keyframes pm-gate-fade { from { opacity: 0; } to { opacity: 1; } }

.pm-gate-modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--color-white, #fff);
  border-radius: 16px;
  padding: 32px 28px 28px;
  box-shadow: 0 24px 60px rgba(15, 29, 58, 0.30);
  animation: pm-gate-pop 0.2s var(--ease-standard, ease);
}

@keyframes pm-gate-pop { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

.pm-gate-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: var(--color-navy, #213E8A);
  cursor: pointer;
  border-radius: 8px;
}
.pm-gate-close:hover { background: rgba(15, 29, 58, 0.06); }

.pm-gate-title {
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--color-navy, #213E8A);
}

.pm-gate-sub {
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-navy, #213E8A);
  opacity: 0.82;
  margin: 0 0 20px;
}

.pm-gate-field { margin-bottom: 12px; }
.pm-gate-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  border: 1px solid rgba(15, 29, 58, 0.18);
  border-radius: 10px;
  background: #fff;
  color: var(--color-ink, #15203A);
}
.pm-gate-field input:focus {
  outline: none;
  border-color: var(--color-navy, #213E8A);
  box-shadow: 0 0 0 3px rgba(33, 62, 138, 0.14);
}

.pm-gate-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-navy, #213E8A);
  margin: 6px 0 20px;
}
.pm-gate-check input { margin-top: 2px; flex: 0 0 auto; }
.pm-gate-check a { color: var(--color-navy, #213E8A); text-decoration: underline; }

.pm-gate-submit { width: 100%; justify-content: center; }
.pm-gate-submit.is-loading { opacity: 0.7; pointer-events: none; }

.pm-gate-error {
  margin: 12px 0 0;
  font-size: 13px;
  color: #b3261e;
}

@media print { .pm-gate-overlay { display: none !important; } }
