/* =========================================================
   Winnita Italia — E-E-A-T & YMYL compliance components
   Componenti: age-gate, cookie banner, sticky RG bar,
   affiliate disclosure, author byline, methodology box,
   risk warning box, sources box, last-updated bar.
   ========================================================= */

/* ---------- 1. Sticky Risk / RG Bar (fixed bottom) ---------- */
.wn-sticky-rg {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9000;
  background: #b91c1c;
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
  padding: 8px 14px;
  text-align: center;
  font-family: Roboto, system-ui, sans-serif;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, .35);
}
.wn-sticky-rg a {
  color: #ffd166 !important;
  text-decoration: underline !important;
  font-weight: 600;
}
.wn-sticky-rg .wn-close {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .15);
  color: #fff;
  border: 0;
  border-radius: 4px;
  width: 22px;
  height: 22px;
  line-height: 1;
  cursor: pointer;
}
@media (max-width: 600px) {
  .wn-sticky-rg { font-size: 12px; padding-right: 36px; }
}

/* ---------- 2. Age Gate Modal (18+) ---------- */
.wn-agegate {
  position: fixed;
  inset: 0;
  z-index: 9900;
  background: rgba(0, 0, 0, .9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: Roboto, system-ui, sans-serif;
}
.wn-agegate.is-on { display: flex; }
.wn-agegate__box {
  background: #1b1b1b;
  color: #fff;
  max-width: 460px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid #333;
  padding: 28px 24px;
  text-align: center;
}
.wn-agegate__badge {
  display: inline-block;
  background: #b91c1c;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  width: 64px;
  height: 64px;
  line-height: 64px;
  border-radius: 50%;
  margin-bottom: 14px;
}
.wn-agegate__title { font-size: 20px; margin: 0 0 10px; }
.wn-agegate__text { font-size: 14px; line-height: 1.5; color: #ccc; margin-bottom: 18px; }
.wn-agegate__btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.wn-agegate__btn {
  border: 0;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.wn-agegate__btn--yes { background: #16a34a; color: #fff; }
.wn-agegate__btn--no { background: #4b5563; color: #fff; }
.wn-agegate__footer {
  font-size: 11px;
  color: #888;
  margin-top: 14px;
  line-height: 1.45;
}
.wn-agegate__footer a { color: #ffd166 !important; }

/* ---------- 3. Cookie Consent Banner ---------- */
.wn-cookie {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 56px; /* sopra la sticky RG */
  z-index: 8500;
  background: #fff;
  color: #111;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
  padding: 14px 18px;
  display: none;
  font-family: Roboto, system-ui, sans-serif;
  max-width: 880px;
  margin: 0 auto;
  font-size: 13px;
  line-height: 1.45;
}
.wn-cookie.is-on { display: block; }
.wn-cookie__title { font-weight: 700; margin: 0 0 6px; color: #0a5ac9; font-size: 14px; }
.wn-cookie__row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.wn-cookie__btn {
  border: 0;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.wn-cookie__btn--accept { background: #16a34a; color: #fff; }
.wn-cookie__btn--reject { background: #6b7280; color: #fff; }
.wn-cookie__btn--prefs { background: transparent; color: #0a5ac9; text-decoration: underline; }
.wn-cookie__cat { display: block; padding: 6px 0; font-size: 12px; }
.wn-cookie__cat input { margin-right: 6px; }
.wn-cookie__cats { display: none; border-top: 1px solid #e5e7eb; margin-top: 10px; padding-top: 10px; }
.wn-cookie.is-prefs .wn-cookie__cats { display: block; }
.wn-cookie a { color: #0a5ac9 !important; text-decoration: underline !important; }

/* ---------- 4. Affiliate disclosure box (dark theme) ---------- */
.wn-affiliate-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(245, 158, 11, 0.04));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 0 0 18px;
  color: #e5e7eb !important;
  font-size: 14px;
  line-height: 1.55;
}
.wn-affiliate-box,
.wn-affiliate-box p,
.wn-affiliate-box span,
.wn-affiliate-box div { color: #e5e7eb !important; }
.wn-affiliate-box__icon {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.55));
}
.wn-affiliate-box__title { color: #fbbf24 !important; font-weight: 700; display: block; margin-bottom: 6px; font-size: 15px; }
.wn-affiliate-box strong { color: #ffffff !important; font-weight: 600; }
.wn-affiliate-box code {
  background: rgba(0, 0, 0, 0.4);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 12px;
  color: #fcd34d !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.wn-affiliate-box a { color: #fbbf24 !important; font-weight: 600; text-decoration: underline !important; text-decoration-color: rgba(251, 191, 36, 0.5) !important; }
.wn-affiliate-box a:hover { color: #fcd34d !important; text-decoration-color: #fcd34d !important; }

/* ---------- 5. Risk warning box (dark theme) ---------- */
.wn-risk-box {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(185, 28, 28, 0.05));
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-left: 4px solid #ef4444;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 16px 0;
  color: #fee2e2 !important;
  font-size: 14px;
  line-height: 1.55;
}
.wn-risk-box,
.wn-risk-box p,
.wn-risk-box span,
.wn-risk-box li,
.wn-risk-box ul { color: #fee2e2 !important; }
.wn-risk-box__title { color: #fca5a5 !important; font-weight: 700; display: block; margin-bottom: 6px; font-size: 15px; }
.wn-risk-box strong { color: #ffffff !important; font-weight: 600; }
.wn-risk-box ul { margin: 6px 0 0 20px; padding: 0; }
.wn-risk-box li { margin-bottom: 5px; }
.wn-risk-box li::marker { color: #fca5a5 !important; }
.wn-risk-box a { color: #fca5a5 !important; font-weight: 600; text-decoration: underline !important; text-decoration-color: rgba(252, 165, 165, 0.5) !important; }
.wn-risk-box a:hover { color: #fecaca !important; text-decoration-color: #fecaca !important; }

/* ---------- 6. Methodology box (dark theme) ---------- */
.wn-method-box {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(10, 90, 201, 0.05));
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-left: 4px solid #3b82f6;
  border-radius: 8px;
  padding: 14px 18px;
  margin: 18px 0;
  color: #e5e7eb !important;
  font-size: 14px;
  line-height: 1.55;
}
.wn-method-box,
.wn-method-box p,
.wn-method-box span,
.wn-method-box li,
.wn-method-box ol,
.wn-method-box ul { color: #e5e7eb !important; }
.wn-method-box__title { color: #93c5fd !important; font-weight: 700; display: block; margin-bottom: 8px; font-size: 15px; }
.wn-method-box strong { color: #ffffff !important; font-weight: 600; }
.wn-method-box ol,
.wn-method-box ul { margin: 8px 0 0 22px; padding: 0; }
.wn-method-box li { margin-bottom: 6px; padding-left: 4px; }
.wn-method-box li::marker { color: #60a5fa !important; font-weight: 700; }
.wn-method-box a { color: #93c5fd !important; font-weight: 600; text-decoration: underline !important; text-decoration-color: rgba(147, 197, 253, 0.5) !important; }
.wn-method-box a:hover { color: #bfdbfe !important; text-decoration-color: #bfdbfe !important; }
.wn-method-box code {
  background: rgba(0, 0, 0, 0.4);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 12px;
  color: #93c5fd !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* ---------- 7. Sources box (dark theme) ---------- */
.wn-sources-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 13px;
  color: #cbd5e1 !important;
  line-height: 1.55;
}
.wn-sources-box,
.wn-sources-box p,
.wn-sources-box li { color: #cbd5e1 !important; }
.wn-sources-box__title { font-weight: 700; color: #ffffff !important; display: block; margin-bottom: 6px; font-size: 14px; }
.wn-sources-box ul { margin: 0; padding-left: 20px; }
.wn-sources-box li { margin-bottom: 4px; }
.wn-sources-box li::marker { color: #64748b !important; }
.wn-sources-box a { color: #60a5fa !important; text-decoration: underline !important; text-decoration-color: rgba(96, 165, 250, 0.4) !important; }
.wn-sources-box a:hover { color: #93c5fd !important; }

/* ---------- 8. Author / Reviewer byline + date ---------- */
.wn-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 0 0 18px;
  color: #e5e7eb;
  font-size: 13px;
  line-height: 1.45;
}
.wn-byline__group { display: flex; align-items: center; gap: 8px; }
.wn-byline__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0a5ac9;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.wn-byline__label { display: block; font-size: 11px; color: #9ca3af; text-transform: uppercase; letter-spacing: .04em; }
.wn-byline__name { display: block; font-weight: 600; color: #fff; }
.wn-byline__name a { color: #fff !important; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); }
.wn-byline__date { font-size: 12px; color: #9ca3af; }
.wn-byline__date strong { color: #fff; font-weight: 600; }

/* ---------- 9. 18+ badge (inline, in hero/header) ---------- */
.wn-18-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #b91c1c;
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
  letter-spacing: .02em;
}

/* ---------- 10. ADM / License notice (header) ---------- */
.wn-info-banner {
  background: #1e3a8a;
  color: #e0e7ff;
  font-size: 12px;
  text-align: center;
  padding: 6px 14px;
  line-height: 1.35;
  font-family: Roboto, system-ui, sans-serif;
}
.wn-info-banner a { color: #ffd166 !important; text-decoration: underline; }
.wn-info-banner strong { color: #fff; }

/* ---------- 11. Comparison / data tables (universal) ---------- */
.wn-data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13px;
  color: #fff;
}
.wn-data-table thead th {
  background: #0a5ac9;
  color: #fff;
  text-align: left;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.wn-data-table tbody td {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.wn-data-table tbody tr:hover { background: rgba(255, 255, 255, .03); }
.wn-data-table .pos { color: #4ade80; font-weight: 600; }
.wn-data-table .neg { color: #f87171; font-weight: 600; }

/* ---------- 12. Author bio page block ---------- */
.wn-author-card {
  display: flex;
  gap: 18px;
  background: rgba(30, 30, 30, .85);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  padding: 18px;
  margin: 18px 0;
}
.wn-author-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #0a5ac9;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  flex-shrink: 0;
}
.wn-author-card__name { font-size: 18px; color: #fff; margin: 0 0 4px; }
.wn-author-card__role { font-size: 13px; color: #9ca3af; margin: 0 0 8px; }
.wn-author-card__bio { font-size: 13px; color: #e5e7eb; line-height: 1.5; }

/* ---------- 13. Mini-step list (HowTo) ---------- */
/* Hard-override globals: kill native list markers + padding */
ol.wn-steps,
ul.wn-steps,
.wn-steps {
  list-style: none !important;
  list-style-type: none !important;
  list-style-image: none !important;
  list-style-position: outside !important;
  padding: 0 !important;
  padding-left: 0 !important;
  margin: 16px 0 !important;
  counter-reset: wn-step;
}
.wn-steps > li,
ol.wn-steps > li,
ul.wn-steps > li {
  list-style: none !important;
  list-style-type: none !important;
  list-style-image: none !important;
  position: relative;
  padding: 10px 14px 10px 52px !important;
  margin: 0 0 8px 0 !important;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid #3b82f6;
  border-radius: 6px;
  color: #e5e7eb !important;
  font-size: 14px;
  line-height: 1.5;
  counter-increment: wn-step;
}
/* Disable both ::marker (CSS3) and ::before native dot/decimal */
.wn-steps > li::marker,
ol.wn-steps > li::marker,
ul.wn-steps > li::marker {
  content: '' !important;
  color: transparent !important;
  display: none !important;
  font-size: 0 !important;
}
.wn-steps strong { color: #fff !important; font-weight: 600; }
.wn-steps a { color: #93c5fd !important; text-decoration: underline !important; }
.wn-steps > li::before {
  content: counter(wn-step);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #3b82f6, #0a5ac9);
  color: #ffffff !important;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.35);
}

/* ---------- 14. Body padding so content not hidden behind sticky RG ---------- */
body { padding-bottom: 52px; }
@media (max-width: 600px) { body { padding-bottom: 64px; } }
