/* HB Network — sito nuovo (HOME_V2): home per Discord e candidature, banner nelle app, avviso «Prima di andare».
   Si carica solo sulle pagine del sito nuovo, dopo style.css. */

/* ---------- Home: prima schermata ---------- */
.v2-hero { padding-block: 40px 48px; }
.v2-hero h1 { font-size: clamp(2rem, 7.4vw, 3.5rem); margin-bottom: .45em; }
.v2-hero h1 .grad { display: inline; }
.v2-hero .lead { color: var(--text); opacity: .9; font-size: clamp(1.05rem, 3.6vw, 1.2rem); }
.v2-hero .hero__mark { display: none; }
@media (min-width: 820px) {
  .v2-hero { padding-block: 80px 88px; }
  .v2-hero .hero__mark { display: block; width: 280px; }
}

.v2-cta { display: grid; gap: 14px; margin-top: 26px; justify-items: start; }
.v2-cta__main { display: grid; gap: 8px; justify-items: center; width: 100%; max-width: 26rem; }
.btn--big { min-height: 60px; padding: 16px 34px; font-size: 1.15rem; width: 100%; }
.v2-cta__note { margin: 0; color: var(--muted); font-size: .92rem; text-align: center; }
.v2-cta__alt { font-family: var(--font-title); font-weight: 600; text-decoration: none; padding: 8px 2px; }
.v2-cta__alt:hover { text-decoration: underline; }
@media (max-width: 819px) { .v2-cta, .v2-cta__main { justify-items: stretch; max-width: none; } .v2-cta__alt { text-align: center; } }

/* prova sociale: solo numeri veri dalla pagina Membri */
.v2-proof { display: flex; align-items: center; gap: 12px; margin-top: 22px; color: var(--muted); text-decoration: none; }
.v2-proof:hover { color: var(--text); }
.v2-proof__faces { display: flex; flex: none; padding-left: 10px; }
.v2-proof__faces img {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--bg); margin-left: -10px; background: var(--surface-2); flex: none; max-width: none;
}
.v2-proof strong { color: var(--text); font-family: var(--font-title); }
@media (max-width: 819px) { .v2-proof { justify-content: center; } }

/* ---------- Come funziona ---------- */
.v2-steps .steps li.card h3 { margin-bottom: .35em; }
.v2-final { text-align: center; }
.v2-final .v2-cta { justify-items: center; }
.v2-final .v2-cta__main { margin-inline: auto; }

/* ---------- Barra fissa in basso (solo telefono) ---------- */
.v2-sticky { display: none; }
@media (max-width: 819px) {
  .v2-sticky {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(16, 24, 32, .94); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  }
  .v2-sticky .btn { width: 100%; min-height: 52px; }
  body.v2-has-sticky .site-foot { padding-bottom: calc(28px + 76px + env(safe-area-inset-bottom)); }
}

/* ---------- App: banner in fondo, Accedi ---------- */
.v2-banner { display: grid; gap: 16px; align-items: center; margin-top: 40px; }
.v2-banner h2 { font-size: 1.2rem; margin-bottom: .3em; }
.v2-banner p { margin: 0; }
@media (min-width: 820px) { .v2-banner { grid-template-columns: 1fr auto; } }
.v2-twitch { min-height: 56px; font-size: 1.08rem; }
.v2-alt { margin-top: 32px; }
.v2-alt h2 { font-size: 1.15rem; margin-bottom: .3em; }

/* ---------- Avviso «Prima di andare» (solo computer, una volta per sessione) ---------- */
.v2-exit {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px;
  background: rgba(8, 12, 18, .72);
}
.v2-exit__box {
  position: relative; width: min(30rem, 100%); padding: 32px 28px 28px; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.v2-exit__box h2 { font-size: 1.35rem; }
.v2-exit__box p { color: var(--muted); }
.v2-exit__close {
  position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: transparent; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.v2-exit__close:hover { color: var(--text); background: var(--surface-2); }

/* ---------- Guide (es. /guide/affiliato-twitch) ---------- */
.guide h2 { margin-top: 1.8em; scroll-margin-top: calc(var(--head-h) + 16px); }
.guide-meta { color: var(--muted); font-size: .92rem; border-left: 3px solid var(--violet); padding-left: 12px; }
.guide-toc { margin: 24px 0 8px; }
.guide-toc ol { margin: 0; padding-left: 1.3em; }
.guide-toc li { margin-bottom: .3em; }
.guide-tips { padding-left: 1.3em; }
.guide-tips li { margin-bottom: .8em; }
.guide-tips li::marker { color: var(--cyan); font-family: var(--font-title); font-weight: 700; }
.guide-next {
  margin: 20px 0 8px; padding: 14px 18px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: .97rem;
}
.guide-faq { display: grid; gap: 10px; margin-bottom: 32px; }
.guide-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.guide-faq summary { cursor: pointer; font-family: var(--font-title); font-weight: 600; }
.guide-faq details p { margin: .7em 0 0; color: var(--muted); }
