/* ═══════════════════════════════════════════════════════════
   AFFARIFY — Unified Design System v2.0
   Mobile-first · Conversion-focused · Stripe-inspired
   Shared by: index.html  +  migliori-canali-telegram.html
═══════════════════════════════════════════════════════════ */


/* ──────────────────────────────────────────
   1. DESIGN TOKENS
────────────────────────────────────────── */
:root {
  /* Brand */
  --c-indigo-950:  #0c0b28;
  --c-indigo-900:  #1e1b4b;
  --c-indigo-800:  #312e81;
  --c-indigo-600:  #4f46e5;
  --c-indigo-100:  #e0e7ff;

  --c-amber-500:   #f59e0b;
  --c-amber-400:   #fbbf24;
  --c-amber-300:   #fcd34d;

  /* Platforms */
  --c-telegram:      #2aabee;
  --c-telegram-dark: #1a96d8;
  --c-whatsapp:      #25d366;
  --c-whatsapp-dark: #1da851;

  /* Semantic */
  --c-success: #22c55e;
  --c-danger:  #ef4444;
  --c-gold:    #f5a623;

  /* Neutral */
  --c-bg:           #f7f9fc;
  --c-surface:      #ffffff;
  --c-text:         #0f172a;
  --c-text-muted:   #64748b;
  --c-text-light:   #94a3b8;
  --c-text-strong:  #475569;
  --c-border:       #e2e8f0;
  --c-border-light: #f1f5f9;

  /* Legacy aliases (used in inline styles) */
  --text-light: #94a3b8;
  --blue:        #2aabee;
  --blue-dark:   #1a96d8;

  /* Shadows */
  --shadow-sm:       0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:       0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:       0 10px 40px rgba(0,0,0,0.13);
  --shadow-telegram: 0 8px 32px rgba(42,171,238,0.38);

  /* Radius */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 9999px;

  /* Layout */
  --max-w-editorial: 860px;
  --max-w-landing:   500px;

  /* Typography scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
}


/* ──────────────────────────────────────────
   2. RESET + BASE
────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Landing variant — full-page gradient */
body.page--landing {
  background: linear-gradient(145deg, #0c0b28 0%, #1e1b4b 55%, #2d2472 100%);
  min-height: 100vh;
  color: #ffffff;
}

a {
  color: var(--c-telegram);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }


/* ──────────────────────────────────────────
   3. LAYOUT
────────────────────────────────────────── */
.container {
  max-width: var(--max-w-editorial);
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}


/* ──────────────────────────────────────────
   4. LANDING HERO
────────────────────────────────────────── */

/* Atmospheric glow layer */
body.page--landing::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 90%, rgba(79,70,229,0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 88% 12%, rgba(245,158,11,0.14) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 48px 20px;
  z-index: 1;
}

.hero-section .container {
  max-width: var(--max-w-landing);
  position: relative;
  z-index: 1;
}

/* ── Header bar ── */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.logo {
  width: 120px;
  height: auto;
  filter: brightness(0) invert(1);
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 16px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255,255,255,0.16);
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #00ff88;
  border-radius: 50%;
  animation: pulse-live 2s infinite;
  box-shadow: 0 0 6px rgba(0,255,136,0.8);
}

.live-text {
  font-size: var(--text-xs);
  font-weight: 700;
  color: #00ff88;
  letter-spacing: 0.09em;
  opacity: 0.92;
}

/* ── Headline area ── */
.main-content { text-align: center; }

.headline {
  font-size: clamp(1.75rem, 6vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
  color: #fff;
}

.highlight-text {
  background: linear-gradient(135deg, var(--c-amber-400) 0%, var(--c-amber-300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subheadline {
  font-size: var(--text-lg);
  line-height: 1.65;
  margin-bottom: 2rem;
  color: rgba(255,255,255,0.86);
  font-weight: 400;
}

.subheadline strong {
  color: var(--c-amber-400);
  font-weight: 700;
}

/* ── Urgency badge (optional) ── */
.urgency-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--r-full);
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(255,107,107,0.35);
  animation: bounce-in 0.8s ease-out;
}


/* ──────────────────────────────────────────
   5. CTA BUTTONS — EXPLOSIVE
────────────────────────────────────────── */
.cta-buttons-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 460px;
  margin: 0 auto 2rem;
}

/* Primary — Telegram */
.cta-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 24px;
  border-radius: var(--r-lg);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;

  background: linear-gradient(135deg, #2aabee 0%, #1a8fc9 100%);
  color: #fff;
  box-shadow: var(--shadow-telegram);

  animation: cta-float 5s ease-in-out infinite;
}

/* Shimmer sweep */
.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -110%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.16), transparent);
  transform: skewX(-18deg);
  transition: left 0.75s ease;
}
.cta-button:hover::before { left: 150%; }

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(42,171,238,0.42);
  text-decoration: none;
}
.cta-button:active { transform: translateY(-1px); }

.cta-content {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.cta-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.cta-text { text-align: left; }

.cta-main {
  display: block;
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.2;
}

.cta-sub {
  display: block;
  font-size: var(--text-sm);
  opacity: 0.88;
  margin-top: 2px;
}

.cta-arrow {
  font-size: 1.6rem;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: transform 0.25s ease;
}
.cta-button:hover .cta-arrow { transform: translateX(6px); }

/* Divider */
.cta-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 1.25rem 0 1rem;
}
.cta-divider::before,
.cta-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.2);
}
.cta-divider-text {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.62);
  font-weight: 500;
  white-space: nowrap;
}

/* Secondary — WhatsApp */
.whatsapp-button {
  width: 85%;
  background: rgba(37,211,102,0.16);
  border: 1.5px solid rgba(37,211,102,0.42);
  box-shadow: 0 4px 18px rgba(37,211,102,0.14);
  padding: 12px 16px;
  animation: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.whatsapp-button:hover {
  background: rgba(37,211,102,0.22);
  border-color: rgba(37,211,102,0.58);
  box-shadow: 0 8px 24px rgba(37,211,102,0.2);
}
.whatsapp-button .cta-icon  { width: 24px; height: 24px; }
.whatsapp-button .cta-main  { font-size: var(--text-sm); font-weight: 600; color: rgba(255,255,255,0.94); }
.whatsapp-button .cta-arrow { font-size: 1.2rem; opacity: 0.78; }

/* ── Editorial CTA button (shared, SEO page) ── */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: var(--text-sm);
  color: #fff !important;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  overflow: hidden;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
  text-decoration: none;
}
.cta-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.cta-btn.telegram {
  background: linear-gradient(135deg, var(--c-telegram), var(--c-telegram-dark));
  box-shadow: 0 4px 16px rgba(42,171,238,0.32);
}
.cta-btn.telegram:hover { box-shadow: 0 10px 30px rgba(42,171,238,0.48); }

.cta-btn.secondary {
  background: linear-gradient(135deg, #64748b, #475569);
}


/* ──────────────────────────────────────────
   6. SOCIAL PROOF (landing)
────────────────────────────────────────── */
.social-proof { margin-bottom: 2rem; }

.members-count { margin-bottom: 1.25rem; }

.count-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--c-amber-400);
  display: block;
  line-height: 1;
  letter-spacing: -0.025em;
}

.count-text {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.72);
  margin-top: 4px;
  display: block;
}

.social-follow { margin-top: 1rem; }

.instagram-follow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.74);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color 0.2s ease, transform 0.2s ease;
}
.instagram-follow:hover {
  color: rgba(255,255,255,0.92);
  transform: translateY(-1px);
  text-decoration: none;
}
.instagram-icon-inline { width: 16px; height: 16px; }


/* ──────────────────────────────────────────
   7. PAGE HEADER  (SEO / editorial pages)
────────────────────────────────────────── */
.page-header {
  background: linear-gradient(145deg, #0c0b28 0%, #1e1b4b 55%, #0f2233 100%);
  color: #fff;
  padding: 64px 20px 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 85%, rgba(79,70,229,0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 82% 15%, rgba(245,158,11,0.12) 0%, transparent 50%);
  pointer-events: none;
}

.page-header .container { position: relative; z-index: 1; }

.page-header .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--c-amber-500);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--r-full);
  margin-bottom: 20px;
}

.page-header h1 {
  font-size: clamp(1.625rem, 5vw, 2.625rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #fff;
  letter-spacing: -0.02em;
}

.page-header h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--c-amber-400), var(--c-amber-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header .subtitle {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.84);
  max-width: 600px;
  margin: 0 auto 24px;
  line-height: 1.65;
}

.meta-info {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.66);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
}


/* ──────────────────────────────────────────
   8. EDITORIAL CONTENT
────────────────────────────────────────── */
.content {
  padding: 48px 0 80px;
}

.content > * + * { margin-top: 32px; }

p { color: var(--c-text-strong); }

h2 {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--c-telegram);
  display: inline-block;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 8px;
}

/* Intro highlight box */
.intro-box {
  background: var(--c-surface);
  border-left: 4px solid var(--c-telegram);
  border-radius: var(--r-md);
  padding: 24px 28px;
  box-shadow: var(--shadow-md);
}
.intro-box p { margin-top: 10px; }

/* Stat cards row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--c-surface);
  border-radius: var(--r-md);
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--c-border-light);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.stat-card .stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--c-telegram);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-card .stat-label {
  font-size: var(--text-xs);
  color: var(--c-text-strong);
  margin-top: 6px;
  line-height: 1.4;
}

/* Problem box */
.problem-box {
  background: #fff5f5;
  border-left: 4px solid var(--c-danger);
  border-radius: var(--r-md);
  padding: 22px 24px;
}
.problem-box ul {
  list-style: none;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.problem-box ul li {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.problem-box ul li::before {
  content: "✗";
  color: var(--c-danger);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}


/* ──────────────────────────────────────────
   9. CHANNEL CARDS
────────────────────────────────────────── */
.channel-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.channel-card {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--c-border-light);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.channel-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.channel-card.rank-1 {
  border-color: #fde68a;
  box-shadow: var(--shadow-md), 0 0 0 1px #fde68a;
}

.channel-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px 16px;
}

.channel-rank {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: var(--c-text-muted);
  flex-shrink: 0;
}
.channel-card.rank-1 .channel-rank {
  background: linear-gradient(135deg, var(--c-gold), #f97316);
  color: #fff;
  box-shadow: 0 4px 12px rgba(245,166,35,0.4);
}

.channel-name-block h3 {
  margin-bottom: 4px;
  font-size: 1.1875rem;
}

.channel-tag {
  display: inline-block;
  background: #e8f4fd;
  color: var(--c-telegram);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--r-full);
}
.channel-card.rank-1 .channel-tag {
  background: #fef3c7;
  color: #b45309;
}

.channel-card-body { padding: 0 24px 22px; }
.channel-card-body > p { font-size: 0.9375rem; margin-bottom: 14px; }

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 20px;
}
.feature-list li {
  font-size: var(--text-sm);
  color: var(--c-text-strong);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}
.feature-list li::before {
  content: "✓";
  color: var(--c-success);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.channel-card.rank-1 .feature-list li::before { color: var(--c-gold); }

/* Highlight box inside card */
.cta-highlight-box {
  margin-top: 20px;
  background: linear-gradient(135deg, #e8f4fd, #dbeafe);
  border: 1.5px solid #93c5fd;
  border-radius: var(--r-md);
  padding: 18px 22px;
}
.cta-highlight-box strong { color: #1e40af; }


/* ──────────────────────────────────────────
   10. COMPARISON TABLE
────────────────────────────────────────── */
.table-section { margin-top: 40px; }

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--c-surface);
  font-size: var(--text-sm);
}

thead th {
  background: #1e1b4b;
  color: #fff;
  padding: 14px 16px;
  text-align: center;
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
thead th:first-child { text-align: left; border-radius: var(--r-md) 0 0 0; }
thead th:last-child  { border-radius: 0 var(--r-md) 0 0; }

tbody tr {
  border-bottom: 1px solid var(--c-border);
  transition: background 0.15s ease;
}
tbody tr:hover   { background: #f0f7ff; }
tbody tr.winner  { background: #fffbf0; }

td {
  padding: 13px 16px;
  text-align: center;
  color: var(--c-text-strong);
}
td:first-child { text-align: left; font-weight: 600; color: var(--c-text); }
.winner td:first-child { color: #1e40af; }

.winner-badge {
  display: inline-block;
  background: var(--c-gold);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--r-full);
  margin-left: 8px;
  vertical-align: middle;
}

.icon-yes     { color: var(--c-success); font-size: 1.125rem; }
.icon-no      { color: var(--c-danger);  font-size: 1.125rem; }
.icon-partial { color: var(--c-gold);    font-size: 1rem; }
.stars        { color: var(--c-gold);    letter-spacing: 1px; }


/* ──────────────────────────────────────────
   11. AFFARIFY DEEP-DIVE SECTION
────────────────────────────────────────── */
.affarify-deep {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
}
.affarify-deep h2 { border-color: var(--c-amber-500); }

.affarify-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.affarify-pill {
  background: #fffbf0;
  border: 1px solid #fde68a;
  border-radius: var(--r-md);
  padding: 16px 18px;
  transition: transform 0.2s ease;
}
.affarify-pill:hover { transform: translateY(-2px); }
.affarify-pill h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: #b45309;
  margin-bottom: 6px;
}
.affarify-pill p {
  font-size: var(--text-xs);
  color: var(--c-text-strong);
  line-height: 1.55;
}


/* ──────────────────────────────────────────
   12. FAQ ACCORDION
────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--c-surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--c-border-light);
  transition: box-shadow 0.2s ease;
}
.faq-item:hover { box-shadow: var(--shadow-md); }

.faq-item details summary {
  padding: 18px 22px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--c-text);
  user-select: none;
}
.faq-item details summary::-webkit-details-marker { display: none; }
.faq-item details summary::after {
  content: "+";
  font-size: 1.375rem;
  color: var(--c-telegram);
  font-weight: 300;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.faq-item details[open] summary {
  border-bottom: 1px solid var(--c-border-light);
}
.faq-item details[open] summary::after { transform: rotate(45deg); }

.faq-item details .faq-body {
  padding: 16px 22px 18px;
  font-size: var(--text-sm);
  color: var(--c-text-strong);
  line-height: 1.7;
}
.faq-item details .faq-body p + p { margin-top: 10px; }


/* ──────────────────────────────────────────
   13. FINAL CTA SECTION
────────────────────────────────────────── */
.final-cta {
  background: linear-gradient(145deg, #0c0b28 0%, #1e1b4b 60%, #1a3a4a 100%);
  border-radius: var(--r-xl);
  padding: 44px 32px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 110%, rgba(42,171,238,0.14) 0%, transparent 60%);
  pointer-events: none;
}
.final-cta h2 {
  color: #fff;
  border-color: var(--c-amber-500);
  font-size: 1.5rem;
  position: relative;
}
.final-cta p {
  color: rgba(255,255,255,0.84);
  max-width: 500px;
  margin: 12px auto 28px;
  font-size: 0.9375rem;
  position: relative;
}
.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  position: relative;
}


/* ──────────────────────────────────────────
   14. LOADER OVERLAY
────────────────────────────────────────── */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(255,255,255,0.18);
  border-top-color: var(--c-telegram);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}


/* ──────────────────────────────────────────
   15. FOOTER
────────────────────────────────────────── */

/* Editorial footer (SEO page default) */
footer {
  background: #0c0b28;
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 28px 20px;
  font-size: var(--text-xs);
  line-height: 1.65;
}
footer a { color: rgba(255,255,255,0.72); }
footer a:hover { color: rgba(255,255,255,0.85); text-decoration: none; }

/* Landing page footer override */
body.page--landing footer {
  background: transparent;
  padding: 2rem 20px;
  position: relative;
  z-index: 1;
}
body.page--landing .footer-content {
  max-width: var(--max-w-landing);
  margin: 0 auto;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.66);
}
body.page--landing .footer-links {
  margin-top: 0.75rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
body.page--landing .footer-links a {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  transition: color 0.2s ease;
}
body.page--landing .footer-links a:hover { color: rgba(255,255,255,0.9); }

.cta-button:focus-visible,
.cta-btn:focus-visible,
.nav-links a:focus-visible,
.instagram-follow:focus-visible,
.article-card:focus-visible,
.faq-item details summary:focus-visible {
  outline: 3px solid rgba(251, 191, 36, 0.85);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ──────────────────────────────────────────
   16. ANIMATIONS
────────────────────────────────────────── */
@keyframes pulse-live {
  0%, 100% { transform: scale(1);   opacity: 1;   box-shadow: 0 0 6px rgba(0,255,136,0.8); }
  50%       { transform: scale(1.35); opacity: 0.7; box-shadow: 0 0 12px rgba(0,255,136,0.5); }
}

@keyframes cta-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-7px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes bounce-in {
  0%   { transform: scale(0.3); opacity: 0; }
  50%  { transform: scale(1.06); }
  75%  { transform: scale(0.96); }
  100% { transform: scale(1);    opacity: 1; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ──────────────────────────────────────────
   17. SITE NAV
────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
}

.nav-inner {
  max-width: var(--max-w-editorial);
  margin: 0 auto;
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  width: 96px;
  height: auto;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--c-text-muted);
  padding: 6px 14px;
  border-radius: var(--r-full);
  transition: background 0.15s ease, color 0.15s ease;
  text-decoration: none;
}

.nav-links a:hover {
  background: var(--c-border-light);
  color: var(--c-text);
  text-decoration: none;
}

.nav-links a.nav-link--active {
  background: var(--c-indigo-100);
  color: var(--c-indigo-600);
  font-weight: 600;
}

/* Landing page nav — dark translucent */
body.page--landing .site-nav {
  background: rgba(12, 11, 40, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.page--landing .nav-logo img {
  filter: brightness(0) invert(1);
}

body.page--landing .nav-links a {
  color: rgba(255, 255, 255, 0.6);
}

body.page--landing .nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

body.page--landing .nav-links a.nav-link--active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}


/* ──────────────────────────────────────────
   18. ARTICLES PAGE (Novità)
────────────────────────────────────────── */

.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.article-card {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border-light);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  display: block;
  color: inherit;
}

.article-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  text-decoration: none;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.article-tag {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--r-full);
  background: var(--c-indigo-100);
  color: var(--c-indigo-600);
}

.article-date {
  font-size: var(--text-xs);
  color: var(--c-text-light);
}

.article-card h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 8px;
  border: none;
  padding: 0;
  display: block;
  letter-spacing: -0.01em;
}

.article-card > p {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.article-read-more {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-telegram);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.article-read-more::after {
  content: "→";
  transition: transform 0.2s ease;
}

.article-card:hover .article-read-more::after {
  transform: translateX(4px);
}


/* ──────────────────────────────────────────
   19. RESPONSIVE
────────────────────────────────────────── */
@media (max-width: 640px) {
  /* Landing */
  .headline     { font-size: 1.75rem; }
  .subheadline  { font-size: 1rem; }

  .cta-button   { padding: 18px 20px; }
  .cta-main     { font-size: 1rem; }
  .cta-icon     { width: 30px; height: 30px; }

  .whatsapp-button            { width: 92%; padding: 10px 14px; }
  .whatsapp-button .cta-main  { font-size: 0.8125rem; }
  .whatsapp-button .cta-icon  { width: 22px; height: 22px; }

  /* Editorial */
  .stats-row             { grid-template-columns: 1fr; }
  .affarify-grid         { grid-template-columns: 1fr; }
  .cta-group             { flex-direction: column; align-items: center; }
  .channel-card-header   { flex-direction: column; align-items: flex-start; }
  .final-cta             { padding: 32px 20px; border-radius: var(--r-lg); }
}

@media (max-width: 480px) {
  .count-number { font-size: 2rem; }
  .header       { margin-bottom: 2rem; }

  body.page--landing .footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }
}
