/* ==========================================================================
   IL MONDO PRIMA • STILE QUIZ AD ALTA VISIBILITÀ & FULL-RESPONSIVE DESKTOP
   ========================================================================== */

/* Disabilitazione Tassativa dei Commenti su Pagine e Post del Quiz */
#comments,
.comments-area,
.comment-respond,
#respond,
.comment-form,
#commentform,
.comment-reply-title,
.comments,
.post-comments,
.entry-comments,
.commentlist,
.wp-block-comments,
.wp-block-post-comments,
.wp-block-comments-form,
.wp-block-post-comments-form {
  display: none !important;
}

.nlm-integrated-main {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  box-sizing: border-box;
}

/* Palette & Layout Principale - Allargato su Desktop e Full Responsive */
.nlm-quiz-wrapper {
  --nlm-bg: #06090e;
  --nlm-card: #0f172a;
  --nlm-card-hover: #1e293b;
  --nlm-border: #334155;
  --nlm-border-gold: rgba(245, 158, 11, 0.45);
  --nlm-text: #f8fafc;
  --nlm-text-bright: #ffffff;
  --nlm-muted: #cbd5e1;
  --nlm-accent: #f59e0b;
  --nlm-accent-bright: #fbbf24;
  --nlm-accent-glow: rgba(245, 158, 11, 0.35);
  --nlm-yt: #ef4444;
  --nlm-yt-hover: #dc2626;
  --nlm-article: #3b82f6;
  --nlm-article-hover: #2563eb;
  --nlm-success: #22c55e;
  --nlm-success-bg: rgba(34, 197, 94, 0.18);
  --nlm-error: #f43f5e;
  --nlm-error-bg: rgba(244, 63, 94, 0.18);
  --nlm-radius: 16px;
  
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  max-width: 1160px;
  width: 100%;
  margin: 1.5rem auto 3.5rem auto;
  padding: 0 1.25rem;
  color: var(--nlm-text);
  box-sizing: border-box;
  overflow-x: clip;
}

.nlm-quiz-wrapper,
.nlm-quiz-wrapper *,
.nlm-quiz-wrapper *::before,
.nlm-quiz-wrapper *::after {
  box-sizing: border-box;
}

/* Brand Header */
.nlm-brand-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background: #0f172a;
  border: 1.5px solid var(--nlm-border-gold);
  border-radius: var(--nlm-radius);
  padding: 1.15rem 1.4rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.nlm-brand-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nlm-brand-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2.5px solid var(--nlm-accent);
  box-shadow: 0 0 16px var(--nlm-accent-glow);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  flex-shrink: 0;
}

.nlm-brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nlm-brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}

.nlm-brand-desc {
  font-size: 0.88rem;
  color: var(--nlm-muted);
  font-weight: 500;
}

.nlm-brand-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.nlm-nav-btn {
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.55rem 1rem;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  text-decoration: none !important;
}

.nlm-quizzes-toggle-btn {
  background: rgba(245, 158, 11, 0.18);
  color: var(--nlm-accent-bright) !important;
  border: 1.5px solid var(--nlm-accent);
}

.nlm-quizzes-toggle-btn:hover {
  background: rgba(245, 158, 11, 0.3);
  transform: translateY(-1px);
}

.nlm-badge-count {
  background: var(--nlm-accent);
  color: #0b0f17;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  margin-left: 0.25rem;
}

.nlm-yt-btn {
  background: #ff0000;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(255, 0, 0, 0.35);
}

.nlm-yt-btn:hover {
  background: #cc0000;
  transform: translateY(-1px);
}

.nlm-article-btn {
  background: var(--nlm-article);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.nlm-article-btn:hover {
  background: var(--nlm-article-hover);
  transform: translateY(-1px);
}

.nlm-ig-btn {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(220, 39, 67, 0.35);
}
.nlm-ig-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.nlm-tk-btn {
  background: #000000;
  color: #ffffff !important;
  border: 1px solid #25f4ee;
  box-shadow: 0 4px 12px rgba(37, 244, 238, 0.25);
}
.nlm-tk-btn:hover {
  background: #111;
  border-color: #fe2c55;
  transform: translateY(-1px);
}

.nlm-fb-btn {
  background: #1877f2;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.35);
}
.nlm-fb-btn:hover {
  background: #166fe5;
  transform: translateY(-1px);
}

/* Feature Card per Articolo di Approfondimento del Quiz */
.nlm-article-card-feature {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
  border: 2px solid #3b82f6;
  border-radius: 14px;
  padding: 1.35rem 1.6rem;
  margin: 1.75rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.nlm-article-card-feature:hover {
  border-color: #60a5fa;
  box-shadow: 0 10px 28px rgba(59, 130, 246, 0.3);
}

.nlm-article-card-feature-text {
  flex: 1 1 260px;
  min-width: 0;
  max-width: 100%;
  text-align: left;
}

.nlm-article-card-feature-cta {
  flex-shrink: 0;
  max-width: 100%;
}

.nlm-btn-article-highlight {
  background: #2563eb;
  color: #ffffff !important;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.75rem 1.6rem;
  border-radius: 10px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
  transition: all 0.2s ease;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  word-break: break-word;
}

.nlm-btn-article-highlight:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.6);
}

/* Brand Footer */
.nlm-brand-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--nlm-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.92rem;
  color: var(--nlm-muted);
}

.nlm-brand-social-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Pannello Altri Quiz Drawer */
.nlm-quizzes-drawer {
  background: #0f172a;
  border: 2px solid var(--nlm-accent);
  border-radius: var(--nlm-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
  animation: fadeInDown 0.25s ease-out;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.nlm-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--nlm-border);
}

.nlm-drawer-header h4 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--nlm-accent-bright);
  font-weight: 800;
}

.nlm-drawer-close {
  background: transparent;
  border: 1px solid var(--nlm-border);
  color: var(--nlm-muted);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.nlm-drawer-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nlm-drawer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.nlm-drawer-card {
  background: #1e293b;
  border: 1.5px solid var(--nlm-border);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.nlm-drawer-card.active {
  border-color: var(--nlm-accent);
  background: rgba(245, 158, 11, 0.08);
}

.nlm-drawer-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.nlm-drawer-card-badge {
  color: var(--nlm-accent-bright);
}

.nlm-drawer-card-count {
  color: var(--nlm-muted);
}

.nlm-drawer-card-title {
  margin: 0 0 0.6rem 0;
  font-size: 1.1rem;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.35;
}

.nlm-drawer-card-record {
  font-size: 0.85rem;
  color: #f1f5f9;
  background: rgba(11, 15, 23, 0.8);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 1rem;
}

.nlm-drawer-select-btn {
  background: var(--nlm-accent);
  color: #0b0f17;
  border: none;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.nlm-drawer-select-btn:hover {
  background: var(--nlm-accent-bright);
  transform: translateY(-1px);
}

.nlm-drawer-current-label {
  font-size: 0.85rem;
  color: var(--nlm-accent-bright);
  font-weight: 700;
  text-align: center;
  padding: 0.5rem;
}

/* Stepper & Timer Meta */
.nlm-quiz-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.nlm-timer-badge {
  background: rgba(245, 158, 11, 0.2);
  border: 1.5px solid var(--nlm-accent);
  color: var(--nlm-accent-bright);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-weight: 800;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 0 12px var(--nlm-accent-glow);
}

.nlm-progress-track {
  height: 8px;
  background: #1e293b;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1.75rem;
}

.nlm-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  transition: width 0.3s ease-out;
}

/* Card Box Generic */
.nlm-card-box {
  background: var(--nlm-card);
  border: 1.5px solid var(--nlm-border);
  border-radius: var(--nlm-radius);
  padding: 2.25rem 2.5rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
}

/* Hero Logo on Start/Result Screen */
.nlm-hero-logo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3.5px solid var(--nlm-accent);
  box-shadow: 0 0 25px var(--nlm-accent-glow);
  margin: 0 auto 1.25rem auto;
  display: block;
  object-fit: cover;
  background: #000;
}

/* Quiz Hero Cover Image */
.nlm-quiz-cover-wrapper {
  width: 100%;
  max-height: 320px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.75rem;
  border: 1.5px solid var(--nlm-border-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  background: #06090e;
}

.nlm-quiz-cover-img {
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
}

/* Card Thumbnails for Other Quizzes */
.nlm-quiz-card-thumb {
  width: 100%;
  height: 130px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.85rem;
  border: 1px solid var(--nlm-border);
  background: #06090e;
}

.nlm-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Start Screen Card */
.nlm-start-card {
  text-align: center;
  padding: 3rem 2rem;
}

.nlm-quiz-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.18);
  border: 1.5px solid var(--nlm-accent);
  color: var(--nlm-accent-bright);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  letter-spacing: 0.6px;
  margin-bottom: 1rem;
}

.nlm-start-title {
  font-size: 2.3rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 1rem 0;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.nlm-start-desc {
  font-size: 1.12rem;
  color: #e2e8f0;
  max-width: 680px;
  margin: 0 auto 1.75rem auto;
  line-height: 1.6;
}

.nlm-rules-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}

.nlm-rule-pill {
  background: #1e293b;
  border: 1px solid #475569;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.nlm-btn-start-quiz {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  font-size: 1.3rem;
  font-weight: 900;
  padding: 1.15rem 2.75rem;
  border-radius: 14px;
  border: 1px solid rgba(110, 231, 183, 0.45);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.45);
  transition: all 0.25s ease;
  animation: pulseStartGreen 2.5s infinite;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

@keyframes pulseStartGreen {
  0% { transform: scale(1); box-shadow: 0 8px 25px rgba(16, 185, 129, 0.45); }
  50% { transform: scale(1.025); box-shadow: 0 10px 32px rgba(16, 185, 129, 0.7); }
  100% { transform: scale(1); box-shadow: 0 8px 25px rgba(16, 185, 129, 0.45); }
}

.nlm-btn-start-quiz:hover {
  background: linear-gradient(135deg, #34d399 0%, #047857 100%);
  color: #ffffff !important;
  box-shadow: 0 10px 32px rgba(16, 185, 129, 0.65);
  transform: translateY(-2px);
}

/* Question Screen */
.nlm-question-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.45;
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 1.75rem;
}

.nlm-options-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.85rem !important;
  margin-bottom: 2rem;
  width: 100%;
}

.nlm-opt-btn {
  background: #131c2e;
  border: 1.5px solid #2e3e5c;
  border-radius: 12px;
  padding: 1.15rem 1.35rem;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 1.1rem;
  color: #ffffff;
  font-size: 1.08rem;
  line-height: 1.45;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  box-sizing: border-box;
}

.nlm-opt-btn:hover {
  background: #1a2740;
  border-color: var(--nlm-accent-bright);
  transform: translateX(4px);
}

.nlm-opt-btn.selected {
  background: rgba(245, 158, 11, 0.18);
  border-color: var(--nlm-accent);
  box-shadow: 0 0 0 2px var(--nlm-accent), 0 4px 16px rgba(245, 158, 11, 0.25);
  font-weight: 600;
  transform: translateX(4px);
}

.nlm-opt-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #25334c;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
  color: var(--nlm-accent-bright);
}

.nlm-opt-btn.selected .nlm-opt-letter {
  background: var(--nlm-accent);
  color: #0b0f17;
}

.nlm-opt-text {
  flex-grow: 1;
}

.nlm-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid var(--nlm-border);
}

.nlm-btn-next {
  background: var(--nlm-accent);
  color: #0b0f17;
  border: none;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px var(--nlm-accent-glow);
}

.nlm-btn-next:hover:not(:disabled) {
  background: var(--nlm-accent-bright);
  transform: translateY(-1px);
}

.nlm-btn-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Lead Collection Box */
.nlm-lead-box {
  text-align: center;
}

.nlm-lead-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.nlm-lead-box h3 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.nlm-lead-box p {
  color: #cbd5e1;
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  line-height: 1.55;
}

.nlm-lead-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  text-align: left;
  max-width: 480px;
  margin: 0 auto;
}

.nlm-lead-form label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.4rem;
  display: block;
}

.nlm-lead-form input {
  width: 100%;
  padding: 0.95rem 1.15rem;
  background: #06090e;
  border: 1.5px solid var(--nlm-border);
  border-radius: 10px;
  color: #ffffff;
  font-size: 1.05rem;
}

.nlm-lead-form input:focus {
  border-color: var(--nlm-accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--nlm-accent-glow);
}

.nlm-privacy-notice {
  font-size: 0.9rem;
  color: #cbd5e1;
  background: rgba(11, 15, 23, 0.75);
  border: 1px solid var(--nlm-border);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.nlm-lead-submit {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #0b0f17;
  border: none;
  padding: 1.05rem;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1.15rem;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 6px 18px var(--nlm-accent-glow);
}

.nlm-lead-submit:hover:not(:disabled) {
  opacity: 0.95;
  transform: translateY(-1px);
}

/* Celebratory New Entry in Top 20 */
.nlm-new-entry-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(217, 119, 6, 0.12));
  border: 2.5px solid var(--nlm-accent);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.45);
  animation: newEntryPulse 2s infinite ease-in-out;
}

@keyframes newEntryPulse {
  0% { box-shadow: 0 0 25px rgba(245, 158, 11, 0.35); }
  50% { box-shadow: 0 0 45px rgba(245, 158, 11, 0.7); }
  100% { box-shadow: 0 0 25px rgba(245, 158, 11, 0.35); }
}

.nlm-celebrate-emoji {
  font-size: 2.8rem;
  margin-bottom: 0.4rem;
}

.nlm-new-entry-title {
  font-size: 1.65rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
  margin: 0 0 0.6rem 0;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.nlm-new-entry-rank {
  font-size: 1.3rem;
  color: #fde68a;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.nlm-gold-rank {
  background: var(--nlm-accent);
  color: #0b0f17;
  font-weight: 900;
  padding: 0.25rem 0.75rem;
  border-radius: 9px;
}

.nlm-new-entry-desc {
  font-size: 1rem;
  color: #f1f5f9;
  margin: 0;
}

/* Rank card when outside Top 20 */
.nlm-rank-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.05));
  border: 1.5px solid var(--nlm-accent);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.nlm-rank-highlight {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
}

.nlm-result-header-wrap {
  margin-bottom: 1.75rem;
  border-bottom: 1.5px solid var(--nlm-border);
  padding-bottom: 1.25rem;
  text-align: center;
}

.nlm-result-quiz-title {
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0.35rem 0 0.5rem 0;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Stats Pills */
.nlm-results-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.75rem 0;
}

.nlm-stat-pill {
  background: rgba(11, 15, 23, 0.8);
  border: 1.5px solid var(--nlm-border);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
}

.nlm-stat-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--nlm-accent-bright);
}

.nlm-stat-sub {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--nlm-muted);
}

/* Leaderboard Top 20 Table - ALTA VISIBILITÀ (Zero Overflow, Strictly Responsive) */
.nlm-leaderboard-box {
  margin: 1.5rem 0 !important;
  background: #0f172a;
  border: 1.5px solid var(--nlm-border-gold);
  border-radius: 14px;
  overflow: hidden !important;
  text-align: left;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.nlm-leaderboard-header {
  padding: 0.85rem 1rem !important;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.22), rgba(15, 23, 42, 0.8));
  border-bottom: 1.5px solid var(--nlm-border);
  font-weight: 800;
  font-size: 1.05rem !important;
  color: var(--nlm-accent-bright);
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  white-space: normal !important;
  word-break: break-word !important;
  line-height: 1.4 !important;
}

.nlm-leaderboard-header span {
  display: block;
  width: 100%;
  max-width: 100%;
  white-space: normal !important;
  word-break: break-word !important;
}

.nlm-table-responsive {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
}

.nlm-table {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
  text-align: left;
  font-size: 0.95rem;
  color: #f8fafc;
  box-sizing: border-box !important;
  margin: 0 !important;
}

.nlm-table th, .nlm-table td {
  padding: 0.65rem 0.35rem !important;
  border-bottom: 1px solid #1e293b;
  box-sizing: border-box !important;
  vertical-align: middle;
}

.nlm-table th {
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: #1e293b;
  text-align: center;
}

.nlm-table th.nlm-th-pos, .nlm-table td.nlm-col-pos {
  width: 12% !important;
  text-align: center !important;
  padding-left: 0.2rem !important;
  padding-right: 0.1rem !important;
}

.nlm-table th.nlm-th-name, .nlm-table td.nlm-col-name {
  width: 48% !important;
  text-align: left !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  padding-left: 0.45rem !important;
}

.nlm-entry-name {
  font-weight: 700;
  color: #ffffff;
}

.nlm-table th.nlm-th-score, .nlm-table td.nlm-col-score {
  width: 18% !important;
  text-align: center !important;
  white-space: nowrap !important;
  font-size: 0.88rem;
}

.nlm-table th.nlm-th-time, .nlm-table td.nlm-col-time {
  width: 22% !important;
  text-align: center !important;
  white-space: nowrap !important;
  font-size: 0.85rem;
}

.nlm-table td.nlm-col-time code {
  font-size: 0.82rem !important;
  font-family: monospace;
}

.nlm-head-full {
  display: inline;
}
.nlm-head-short {
  display: none;
}

.nlm-table tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.nlm-table tr.current-user-row {
  background: rgba(245, 158, 11, 0.22) !important;
  font-weight: 800;
}

.nlm-table tr.new-entry-glow {
  background: rgba(245, 158, 11, 0.3) !important;
  box-shadow: inset 0 0 15px rgba(245, 158, 11, 0.5);
}

.nlm-badge-top {
  font-weight: 900;
  font-size: 1.35rem;
}

.nlm-tag-new-entry {
  display: inline-block;
  background: var(--nlm-accent-bright);
  color: #0b0f17;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
  margin-left: 0.35rem;
  letter-spacing: 0.3px;
}

.nlm-empty-leaderboard {
  padding: 2.25rem 1.5rem;
  text-align: center;
  color: #fde68a;
  font-size: 1.05rem;
  font-weight: 600;
}

/* Other Quizzes Section (Cards on Start/End screen) */
.nlm-other-quizzes-section {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1.5px solid var(--nlm-border);
  text-align: left;
}

.nlm-other-quizzes-section h4, .nlm-other-quizzes-section h3 {
  margin: 0 0 1.25rem 0;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 800;
}

.nlm-quizzes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.nlm-quiz-card {
  background: #1e293b;
  border: 1.5px solid var(--nlm-border);
  border-radius: 14px;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.nlm-quiz-card:hover {
  border-color: var(--nlm-accent);
  transform: translateY(-2px);
  background: #25334c;
}

.nlm-quiz-card-badge {
  font-size: 0.82rem;
  color: var(--nlm-accent-bright);
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.nlm-quiz-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.6rem 0;
  line-height: 1.35;
}

.nlm-quiz-card-meta {
  font-size: 0.88rem;
  color: #cbd5e1;
  margin-bottom: 1.25rem;
}

.nlm-card-launch-btn {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: 1px solid rgba(125, 211, 252, 0.35);
  padding: 0.65rem 1.15rem;
  border-radius: 9px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.nlm-card-launch-btn:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Corrections review */
.nlm-review-card {
  margin-top: 2rem;
  text-align: left;
}

.nlm-review-item {
  border-bottom: 1px solid var(--nlm-border);
  padding: 1.25rem 0;
}

.nlm-review-item:last-child {
  border-bottom: none;
}

/* Loading box */
.nlm-loading-box {
  text-align: center;
  padding: 3.5rem 1.5rem;
  color: var(--nlm-accent-bright);
  font-size: 1.1rem;
  font-weight: 600;
}

.nlm-spinner {
  font-size: 2.75rem;
  animation: spin 2s infinite linear;
  margin-bottom: 1rem;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Responsive & Adaptive Layout (Tablet & Mobile)
   ========================================================================== */
.nlm-table-responsive {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* Banner Anti-Speedrun (Anti-Cheat con stile amichevole e paleontologico) */
.nlm-too-fast-banner {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(245, 158, 11, 0.15) 100%);
  border: 2px dashed #f59e0b;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nlm-too-fast-title {
  color: #fbbf24;
  font-size: 1.75rem;
  font-weight: 900;
  margin: 0.25rem 0 0.5rem 0;
  letter-spacing: -0.3px;
}

.nlm-too-fast-time {
  display: inline-block;
  background: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.45);
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.nlm-too-fast-desc {
  color: #f1f5f9;
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 680px;
  margin: 0 auto;
}

/* Modulo Blocco Ripetizione Email Senza Lettura Articolo */
.nlm-repeat-lock-box {
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid #f59e0b;
  border-radius: 14px;
  padding: 1.6rem 1.4rem;
  margin-top: 1.25rem;
  text-align: center;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.2);
}

.nlm-btn-unlock-article {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 1.02rem;
  padding: 0.9rem 1.6rem;
  border-radius: 12px;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
  transition: all 0.2s ease;
  margin-top: 0.75rem;
  cursor: pointer;
}

.nlm-btn-unlock-article:hover {
  background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.6);
}

/* Tablet Breakpoint (max-width: 1024px) */
@media (max-width: 1024px) {
  .nlm-quiz-wrapper {
    max-width: 100%;
    padding: 0 1rem;
    margin: 1rem auto 2.5rem auto;
  }
  .nlm-card-box {
    padding: 1.85rem 1.5rem;
  }
  .nlm-start-title {
    font-size: 2rem;
  }
  .nlm-question-title {
    font-size: 1.25rem;
  }
  .nlm-brand-header {
    padding: 1.1rem 1.25rem;
  }
  .nlm-brand-actions {
    gap: 0.5rem;
  }
}

/* Mobile Breakpoint (max-width: 640px) */
@media (max-width: 640px) {
  .nlm-quiz-wrapper {
    padding: 0 0.5rem;
    margin: 0.5rem auto 2rem auto;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    box-sizing: border-box;
  }
  .nlm-card-box {
    padding: 1.25rem 0.85rem;
    border-radius: 14px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  .nlm-start-card {
    padding: 1.25rem 0.75rem;
    width: 100%;
    box-sizing: border-box;
  }
  .nlm-start-title {
    font-size: 1.45rem;
    line-height: 1.25;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .nlm-start-desc {
    font-size: 0.94rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
    word-break: break-word;
  }
  .nlm-rules-pills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.45rem;
    width: 100%;
    margin-bottom: 1.5rem;
  }
  .nlm-rule-pill {
    width: 100%;
    justify-content: center;
    font-size: 0.82rem;
    padding: 0.45rem 0.5rem;
    text-align: center;
    box-sizing: border-box;
  }
  .nlm-brand-header {
    flex-direction: column;
    align-items: stretch;
    padding: 0.95rem;
    gap: 0.85rem;
    width: 100%;
    box-sizing: border-box;
  }
  .nlm-brand-left {
    align-items: center;
    gap: 0.75rem;
  }
  .nlm-brand-avatar {
    width: 44px;
    height: 44px;
  }
  .nlm-brand-title {
    font-size: 1.15rem;
  }
  .nlm-brand-desc {
    font-size: 0.8rem;
  }
  .nlm-brand-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
  }
  .nlm-nav-btn {
    flex: 1 1 calc(50% - 0.45rem);
    font-size: 0.82rem;
    padding: 0.5rem 0.65rem;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
  }
  /* Quiz question screen */
  .nlm-quiz-meta {
    font-size: 0.92rem;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .nlm-timer-badge {
    font-size: 0.88rem;
    padding: 0.25rem 0.65rem;
  }
  .nlm-question-title {
    font-size: 1.14rem;
    line-height: 1.42;
    margin-bottom: 1.25rem;
    word-break: break-word;
  }
  .nlm-options-list {
    width: 100%;
    box-sizing: border-box;
  }
  .nlm-opt-btn {
    padding: 0.85rem 0.95rem;
    font-size: 0.96rem;
    gap: 0.75rem;
    border-radius: 10px;
    min-height: 48px;
    width: 100%;
    box-sizing: border-box;
    word-break: break-word;
  }
  .nlm-opt-letter {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
    flex-shrink: 0;
  }
  .nlm-opt-text {
    flex: 1;
    min-width: 0;
    word-break: break-word;
  }
  .nlm-actions-row {
    flex-direction: column-reverse;
    gap: 0.85rem;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
  }
  .nlm-actions-row span {
    text-align: center;
    font-size: 0.82rem;
  }
  .nlm-btn-next {
    width: 100%;
    justify-content: center;
    padding: 0.95rem;
    font-size: 1.05rem;
    box-sizing: border-box;
  }
  /* Lead Form */
  .nlm-lead-box {
    width: 100%;
    box-sizing: border-box;
    padding: 1.25rem 0.85rem;
  }
  .nlm-lead-box h3 {
    font-size: 1.35rem;
    word-break: break-word;
  }
  .nlm-lead-box p {
    font-size: 0.92rem;
  }
  .nlm-lead-form {
    width: 100%;
    box-sizing: border-box;
  }
  .nlm-lead-form input {
    font-size: 0.95rem;
    padding: 0.75rem;
    width: 100%;
    box-sizing: border-box;
  }
  .nlm-lead-submit {
    font-size: 1.05rem;
    padding: 0.95rem 1.25rem;
    width: 100%;
    box-sizing: border-box;
    white-space: normal !important;
    text-align: center;
    word-break: break-word;
  }
  /* Results screen */
  .nlm-results-stats {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    width: 100%;
  }
  .nlm-stat-pill {
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
  }
  .nlm-stat-num {
    font-size: 1.85rem;
  }
  .nlm-leaderboard-box {
    margin: 1.25rem 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    border-radius: 12px !important;
  }
  .nlm-leaderboard-header {
    font-size: 0.95rem !important;
    padding: 0.75rem 0.85rem !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.35 !important;
    display: block !important;
  }
  .nlm-table-responsive {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .nlm-table {
    font-size: 0.82rem !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }
  .nlm-table th, .nlm-table td {
    padding: 0.55rem 0.2rem !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
  }
  .nlm-table th.nlm-th-pos, .nlm-table td.nlm-col-pos {
    width: 12% !important;
    text-align: center !important;
    padding-left: 0.15rem !important;
    padding-right: 0.1rem !important;
  }
  .nlm-badge-top {
    font-size: 1rem !important;
  }
  .nlm-table th.nlm-th-name, .nlm-table td.nlm-col-name {
    width: 48% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 0.83rem !important;
    padding-left: 0.35rem !important;
    text-align: left !important;
  }
  .nlm-table th.nlm-th-score, .nlm-table td.nlm-col-score {
    width: 18% !important;
    text-align: center !important;
    white-space: nowrap !important;
    font-size: 0.83rem !important;
  }
  .nlm-table th.nlm-th-time, .nlm-table td.nlm-col-time {
    width: 22% !important;
    text-align: center !important;
    white-space: nowrap !important;
    font-size: 0.8rem !important;
  }
  .nlm-table td.nlm-col-time code {
    font-size: 0.78rem !important;
    letter-spacing: -0.2px;
  }
  .nlm-head-full {
    display: none !important;
  }
  .nlm-head-short {
    display: inline !important;
  }
  .nlm-action-buttons {
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
    box-sizing: border-box;
  }
  .nlm-action-buttons a,
  .nlm-action-buttons button {
    width: 100%;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    white-space: normal !important;
    word-break: break-word;
  }
  .nlm-btn-unlock-article {
    width: 100%;
    box-sizing: border-box;
    font-size: 0.95rem;
    padding: 0.85rem 1rem;
    white-space: normal !important;
    text-align: center;
    word-break: break-word;
  }
  .nlm-too-fast-banner {
    padding: 1.5rem 1rem;
    width: 100%;
    box-sizing: border-box;
  }
  .nlm-too-fast-title {
    font-size: 1.45rem;
    word-break: break-word;
  }
  .nlm-too-fast-desc {
    font-size: 0.95rem;
    word-break: break-word;
  }
}

/* Extra small mobile screens (max-width: 400px) */
@media (max-width: 400px) {
  .nlm-quiz-wrapper {
    padding: 0 0.25rem;
  }
  .nlm-card-box {
    padding: 1rem 0.6rem;
    border-radius: 12px;
  }
  .nlm-start-card {
    padding: 1rem 0.5rem;
  }
  .nlm-start-title {
    font-size: 1.3rem;
  }
  .nlm-opt-btn {
    padding: 0.75rem 0.75rem;
    font-size: 0.92rem;
    gap: 0.5rem;
  }
}

@media (max-width: 360px) {
  .nlm-rules-pills {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   BADGE LIVELLO DIFFICOLTÀ (Facile • Medio • Difficile)
   ========================================================================== */
.nlm-diff-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  line-height: 1;
}

.nlm-diff-facile {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.4);
}

.nlm-diff-medio {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.45);
}

.nlm-diff-difficile {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.45);
}

/* ==========================================================================
   CATALOGO QUIZ DIVISI PER CATEGORIA ([nlm_quiz_catalog])
   ========================================================================== */
.nlm-catalog-wrapper {
  --nlm-bg: #06090e;
  --nlm-card: #0f172a;
  --nlm-card-hover: #1e293b;
  --nlm-border: #334155;
  --nlm-border-gold: rgba(245, 158, 11, 0.45);
  --nlm-text: #f8fafc;
  --nlm-text-bright: #ffffff;
  --nlm-muted: #cbd5e1;
  --nlm-accent: #f59e0b;
  --nlm-accent-bright: #fbbf24;
  --nlm-accent-glow: rgba(245, 158, 11, 0.35);
  --nlm-radius: 16px;
  
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  max-width: 1240px;
  width: 100%;
  margin: 1.5rem auto 3.5rem auto;
  padding: 0 1.25rem;
  color: var(--nlm-text);
  box-sizing: border-box;
}

.nlm-catalog-wrapper * {
  box-sizing: border-box;
}

.nlm-catalog-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.nlm-catalog-intro h2 {
  font-size: 2.1rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 0.6rem 0;
  letter-spacing: -0.02em;
}

.nlm-catalog-intro p {
  font-size: 1.05rem;
  color: #cbd5e1;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

.nlm-catalog-tabs {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}

.nlm-catalog-tab-btn {
  background: #0f172a;
  color: #94a3b8;
  border: 1.5px solid #334155;
  padding: 0.65rem 1.25rem;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.nlm-catalog-tab-btn:hover {
  background: #1e293b;
  color: #ffffff;
  border-color: #64748b;
}

.nlm-catalog-tab-btn.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.nlm-catalog-tab-count {
  background: rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-weight: 800;
}

.nlm-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.nlm-catalog-card {
  background: #0f172a;
  border: 1.5px solid #334155;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.nlm-catalog-card:hover {
  border-color: var(--nlm-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 16px var(--nlm-accent-glow);
}

.nlm-catalog-cover {
  width: 100%;
  height: 190px;
  position: relative;
  background: #06090e;
  overflow: hidden;
}

.nlm-catalog-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.nlm-catalog-card:hover .nlm-catalog-cover img {
  transform: scale(1.05);
}

.nlm-catalog-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #64748b;
  font-size: 2.5rem;
}

.nlm-catalog-cover-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.nlm-catalog-content {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.nlm-catalog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 0.6rem;
}

.nlm-catalog-title {
  color: #ffffff;
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 0.75rem 0;
  flex: 1;
}

.nlm-catalog-record {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: #e2e8f0;
  margin-bottom: 1.25rem;
}

.nlm-catalog-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
}

.nlm-catalog-btn-play {
  background: #f59e0b;
  color: #0b0f17;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.98rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  text-align: center;
  display: block;
  transition: all 0.2s ease;
}

.nlm-catalog-btn-play:hover {
  background: #fbbf24;
  color: #000000;
  transform: translateY(-1px);
}

.nlm-catalog-btn-article {
  background: #1e293b;
  color: #60a5fa;
  border: 1px solid #3b82f6;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  text-align: center;
  display: block;
  transition: all 0.2s ease;
}

.nlm-catalog-btn-article:hover {
  background: #2563eb;
  color: #ffffff;
}

@media (max-width: 640px) {
  .nlm-catalog-grid {
    grid-template-columns: 1fr;
  }
  .nlm-catalog-intro h2 {
    font-size: 1.6rem;
  }
}

/* ==========================================================================
   Ebook Promo Box & Landing Promotion (Mobile-First Responsive)
   ========================================================================== */
.nlm-ebook-promo-card {
  margin: 1.75rem 0;
  padding: 1.75rem 1.5rem;
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.12) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1.5px solid rgba(249, 115, 22, 0.45);
  border-radius: 16px;
  /* una sola colonna: copertina, badge, titolo, testo, prezzo e pulsante uno sotto l'altro, centrati */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.nlm-ebook-promo-card:hover {
  border-color: #f97316;
  transform: translateY(-2px);
}

.nlm-ebook-promo-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  min-width: 0;
}

.nlm-ebook-promo-cover-col {
  flex-shrink: 0;
}

.nlm-ebook-promo-cover-img {
  width: 120px;
  max-width: 40vw;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
  display: block;
  margin: 0 auto;
}

.nlm-ebook-promo-text {
  width: 100%;
  min-width: 0;
  text-align: center;
}

/* selettori a due classi: il tema del sito non deve ingrandire testo e interlinea */
div.nlm-ebook-promo-card .nlm-ebook-promo-badge {
  display: inline-block;
  background: rgba(249, 115, 22, 0.2);
  border: 1px solid #f97316;
  color: #ffedd5;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 0.6rem 0;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  line-height: 1.35;
}

div.nlm-ebook-promo-card h4.nlm-ebook-promo-title {
  margin: 0 0 0.5rem 0;
  color: #ffffff;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.3;
  text-align: center;
  word-break: break-word;
  overflow-wrap: break-word;
}

div.nlm-ebook-promo-card p.nlm-ebook-promo-desc {
  margin: 0 auto 0.65rem auto;
  max-width: 34rem;
  font-size: 15px;
  line-height: 1.55;
  color: #cbd5e1;
  text-align: center;
  word-break: break-word;
  overflow-wrap: break-word;
}

div.nlm-ebook-promo-card .nlm-ebook-promo-price {
  margin: 0;
  color: #fed7aa;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  word-break: break-word;
}

.nlm-ebook-promo-cta-col {
  width: 100%;
  display: flex;
  justify-content: center;
}

.nlm-btn-ebook-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #c2410c 100%);
  color: #ffffff !important;
  font-weight: 900;
  font-size: 16px;
  padding: 13px 24px;
  border-radius: 12px;
  border: 1px solid rgba(254, 215, 170, 0.45);
  text-decoration: none;
  box-shadow: 0 5px 18px rgba(234, 88, 12, 0.45);
  transition: all 0.2s ease;
  width: auto;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  word-break: break-word;
  white-space: normal;
  line-height: 1.35;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.nlm-btn-ebook-cta:hover {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 50%, #9a3412 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(234, 88, 12, 0.65);
  color: #ffffff !important;
}

.nlm-start-actions-row {
  margin: 2rem 0;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.nlm-btn-article-start {
  padding: 0.9rem 1.6rem;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 12px;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  word-break: break-word;
}

@media (max-width: 640px) {
  .nlm-ebook-promo-card {
    padding: 1.25rem 0.9rem;
    gap: 0.9rem;
    border-radius: 14px;
  }
  .nlm-ebook-promo-cover-img {
    width: 95px;
  }
  div.nlm-ebook-promo-card h4.nlm-ebook-promo-title {
    font-size: 19px;
  }
  div.nlm-ebook-promo-card p.nlm-ebook-promo-desc {
    font-size: 14px;
    line-height: 1.5;
  }
  div.nlm-ebook-promo-card .nlm-ebook-promo-price {
    font-size: 13px;
  }
  .nlm-btn-ebook-cta {
    width: 100%;
    max-width: 100%;
    font-size: 15px;
    padding: 12px 16px;
  }

  .nlm-start-actions-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    margin: 1.5rem 0;
  }
  .nlm-btn-start-quiz {
    width: 100%;
    justify-content: center;
    font-size: 1.08rem;
    padding: 0.9rem 1.25rem;
    white-space: normal !important;
    text-align: center;
    word-break: break-word;
  }
  .nlm-btn-article-start {
    width: 100%;
    justify-content: center;
    font-size: 0.95rem;
    padding: 0.8rem 1.2rem;
    white-space: normal !important;
    text-align: center;
    word-break: break-word;
  }
}

@media (max-width: 400px) {
  .nlm-ebook-promo-card {
    padding: 0.95rem 0.65rem;
  }
  .nlm-btn-ebook-cta {
    font-size: 14px;
    padding: 12px 14px;
  }
}

/* ==========================================================================
   Consensi nel modulo di registrazione risultato (privacy + marketing facoltativo)
   Dimensioni in px: il tema del sito ingrandisce il rem.
   ========================================================================== */
.nlm-lead-form .nlm-consent-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0 6px 0;
  text-align: left;
}

.nlm-lead-form .nlm-consent-box label.nlm-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
  color: #cbd5e1;
  text-transform: none;
  cursor: pointer;
}

.nlm-lead-form .nlm-consent-box input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 2px 0 0 0;
  padding: 0;
  accent-color: #f97316;
  cursor: pointer;
}

.nlm-lead-form .nlm-consent-box a {
  color: #fdba74;
  text-decoration: underline;
}
