/* ROB RUN ITALIA — foglio di stile unico del sito */
@font-face { font-family: "Anton"; src: url("fonts/anton.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-600.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-700.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --bg: #0b0c10;
  --bg-2: #111318;
  --card: #16181f;
  --line: #262a34;
  --text: #eceef1;
  --muted: #a2a8b3;
  --lime: #cef53c;
  --lime-dark: #b4d92a;
  --pink: #ff2d78;
  --verde: #009246;
  --bianco: #f4f5f0;
  --rosso: #ce2b37;
  --radius: 14px;
  --max: 1120px;
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lime); text-underline-offset: 3px; }
a:hover { color: #e3ff7a; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 99; font-weight: 700; }
.skip:focus { left: 12px; }

/* Titoli in stile gioco: Anton maiuscolo, leggermente inclinato */
.display, h1, h2.display {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  letter-spacing: .01em; line-height: 1.02; margin: 0;
}
.slant { display: inline-block; transform: skewX(-9deg); transform-origin: 0 100%; }
.lime { color: var(--lime); }
.pink { color: var(--pink); }
.tricolore { display: flex; width: 120px; height: 6px; border-radius: 3px; overflow: hidden; transform: skewX(-20deg); }
.tricolore i { flex: 1; } .tricolore i:nth-child(1) { background: var(--verde); } .tricolore i:nth-child(2) { background: var(--bianco); } .tricolore i:nth-child(3) { background: var(--rosso); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11,12,16,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 66px; }
.logo { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--text); }
.logo b { font: 400 25px/1 var(--display); text-transform: uppercase; transform: skewX(-9deg); white-space: nowrap; }
.logo b span { color: var(--lime); }
.logo .tricolore { width: 64px; height: 4px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--card); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 16px/1 var(--body); text-decoration: none; padding: 15px 24px; border-radius: 12px;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-lime { background: var(--lime); color: #0b0c10; }
.btn-lime:hover { background: #dcff55; color: #0b0c10; }
.btn-ghost { border-color: #3a3f4b; color: var(--text); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: var(--lime); color: var(--text); }
.btn-sm { padding: 10px 16px; font-size: 14px; border-radius: 10px; }
.nav .btn-sm { margin-left: 8px; color: #0b0c10; }

/* Hero */
.hero { position: relative; min-height: min(86vh, 760px); display: grid; align-items: end; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(11,12,16,.96) 0%, rgba(11,12,16,.78) 42%, rgba(11,12,16,.25) 75%, rgba(11,12,16,.35) 100%),
  linear-gradient(0deg, var(--bg) 0%, rgba(11,12,16,0) 40%); }
.hero .wrap { position: relative; z-index: 2; padding: 120px 0 80px; }
.hero h1 { font-size: clamp(56px, 10vw, 120px); }
.hero h1 .slant { display: block; }
.hero .tricolore { margin: 22px 0 26px; width: 170px; height: 8px; }
.hero p.lead { font-size: clamp(18px, 2.1vw, 21px); max-width: 560px; color: #d7dae0; margin: 0 0 32px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* Sezioni */
section { padding: 88px 0; }
section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.kicker { display: inline-block; font: 700 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--pink); margin-bottom: 14px; }
h2 { font: 400 clamp(36px, 5vw, 56px)/1.04 var(--display); text-transform: uppercase; margin: 0 0 16px; }
h2 .slant { display: inline-block; }
.intro { color: var(--muted); max-width: 640px; margin: 0 0 40px; font-size: 18px; }
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-3 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 10px 0 6px; font-size: 19px; font-weight: 700; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(206,245,60,.1); font-size: 22px; }

/* Card guide */
.guide-card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s ease, transform .15s ease; }
.guide-card:hover { border-color: var(--lime); transform: translateY(-2px); color: var(--text); }
.guide-card .thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.guide-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.guide-card .num { position: absolute; left: 12px; top: 12px; background: var(--pink); color: #fff; font: 700 12px/1 var(--body); letter-spacing: .06em; padding: 7px 9px; border-radius: 7px; text-transform: uppercase; }
.guide-card .body { padding: 18px 18px 20px; }
.guide-card h3 { margin: 0 0 6px; font: 400 23px/1.1 var(--display); text-transform: uppercase; }
.guide-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* Blocco clan / modulo */
.split { display: grid; gap: 40px; grid-template-columns: 1.05fr .95fr; align-items: center; }
.split img { border-radius: var(--radius); border: 1px solid var(--line); }
.modulo { background: #0d0f13; border: 1px solid var(--line); border-left: 4px solid var(--lime); border-radius: 12px; padding: 20px 22px; font: 500 15px/1.9 ui-monospace, "SFMono-Regular", Consolas, monospace; color: #dfe3ea; white-space: pre-wrap; margin: 0; }
.copy { margin-top: 12px; }

/* FAQ */
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
details summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 700; position: relative; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--lime); font-weight: 400; }
details[open] summary::after { content: "–"; }
details .ans { padding: 0 20px 18px; color: #c9ced6; }
details .ans p { margin: 0 0 10px; }

/* Banda finale */
.cta-band { position: relative; overflow: hidden; border-radius: 20px; padding: 56px 40px; background: radial-gradient(120% 140% at 0% 0%, rgba(206,245,60,.18), transparent 55%), var(--card); border: 1px solid var(--line); }
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: var(--muted); margin: 0 0 26px; max-width: 560px; }
.cta-band .ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* Pagine interne */
.page-head { padding: 64px 0 36px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.page-head h1 { font-size: clamp(44px, 7vw, 76px); }
.page-head p { color: var(--muted); max-width: 640px; margin: 16px 0 0; font-size: 18px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }

.article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding: 48px 0 88px; }
.article .cover { border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 34px; aspect-ratio: 1200 / 630; object-fit: cover; width: 100%; }
.prose { max-width: 700px; }
.prose h2 { font-size: clamp(28px, 3.6vw, 38px); margin: 40px 0 12px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--lime); }
.prose strong { color: #fff; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 22px; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.tip, .warn { border-radius: 12px; padding: 16px 18px; margin: 24px 0; border: 1px solid; }
.tip { background: rgba(206,245,60,.07); border-color: rgba(206,245,60,.35); }
.warn { background: rgba(255,45,120,.08); border-color: rgba(255,45,120,.4); }
.tip b, .warn b { display: block; margin-bottom: 4px; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.tip b { color: var(--lime); } .warn b { color: var(--pink); }
.tip p, .warn p { margin: 0; }
.aside { position: sticky; top: 90px; align-self: start; display: grid; gap: 16px; }
.aside .card h3 { margin-top: 0; }
.aside ol { margin: 0; padding-left: 20px; font-size: 15px; }
.aside ol li { margin-bottom: 6px; }
.aside ol a { color: var(--muted); text-decoration: none; }
.aside ol a:hover, .aside ol a[aria-current="page"] { color: var(--lime); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 44px; }
.pager a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; text-decoration: none; color: var(--text); }
.pager a:hover { border-color: var(--lime); }
.pager small { display: block; color: var(--muted); font-size: 13px; margin-bottom: 2px; }
.pager .next { text-align: right; grid-column: 2; }
.prose .updated { color: var(--muted); font-size: 14px; margin-top: 26px; }

/* Regolamento */
.rules { counter-reset: r; display: grid; gap: 12px; }
.rule { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px 18px 74px; position: relative; }
.rule::before { counter-increment: r; content: counter(r); position: absolute; left: 20px; top: 16px; width: 38px; height: 38px; border-radius: 10px; background: var(--lime); color: #0b0c10; font: 400 22px/38px var(--display); text-align: center; }
.rule h3 { margin: 0 0 4px; font-size: 18px; }
.rule p { margin: 0; color: #c9ced6; }
.sanzioni { margin-top: 22px; }

/* Footer: vedi la sezione "Footer premium" in fondo */

/* Responsive */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .article { grid-template-columns: 1fr; gap: 24px; }
  .aside { position: static; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-header .wrap { height: auto; flex-wrap: wrap; padding: 12px 0 0; gap: 10px; }
  .nav { order: 3; width: 100%; margin: 0 -6px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav .btn-sm { display: none; }
  .header-cta { margin-left: auto; display: flex; gap: 8px; }
  .header-cta .btn-sm { padding: 9px 12px; font-size: 13px; }
  .logo b { font-size: 21px; }
  section { padding: 64px 0; }
  .hero .wrap { padding: 90px 0 56px; }
  .hero::after { background: linear-gradient(0deg, var(--bg) 8%, rgba(11,12,16,.75) 55%, rgba(11,12,16,.45) 100%); }
  .cta-band { padding: 40px 24px; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
  .rule { padding-left: 66px; }
}
@media (min-width: 761px) { .header-cta { display: none; } }
@media (max-width: 430px) {
  .header-cta .btn-sm { padding: 0 8px; }
  .header-cta .btn-sm .chip { margin: 0; }
  .header-cta .btn-sm .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Discord */
.btn-discord { background: #5865f2; color: #fff; }
.btn-discord:hover { background: #6d78f5; color: #fff; }

/* Elenco dei clan */
.clan-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 20px; }
.clan-tools input { flex: 1 1 260px; min-width: 0; background: var(--card); border: 1px solid var(--line); color: var(--text); border-radius: 12px; padding: 14px 16px; font: 400 16px var(--body); }
.clan-tools input:focus { border-color: var(--lime); outline: none; }
.clan-count { color: var(--muted); font-size: 15px; }
.clan-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.clan-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 16px; scroll-margin-top: 90px; }
.clan-card.flash { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(206,245,60,.18); }
.clan-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.clan-head h3 { margin: 0; font: 400 26px/1.05 var(--display); text-transform: uppercase; overflow-wrap: anywhere; margin-right: auto; }
.badge { font: 700 12px/1 var(--body); padding: 6px 8px; border-radius: 7px; white-space: nowrap; }
.warn-badge { background: rgba(255,45,120,.15); color: #ff7aa8; }
.mine-badge { background: rgba(206,245,60,.15); color: var(--lime); }
.clan-card dl { margin: 0; display: grid; gap: 6px; }
.clan-card dl div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; font-size: 15px; }
.clan-card dt { color: var(--muted); }
.clan-card dd { margin: 0; overflow-wrap: anywhere; }
.clan-foot { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.clan-status { background: rgba(206,245,60,.07); border: 1px solid rgba(206,245,60,.3); border-radius: 12px; padding: 12px 16px; margin: 0 0 18px; font-size: 15px; }
.clan-empty { color: var(--muted); }

/* Registrazione */
.reg { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; scroll-margin-top: 90px; }
.reg h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 8px; }
.reg-intro { color: var(--muted); margin: 0 0 20px; }
.reg-msg { border-radius: 10px; padding: 12px 14px; margin: 0 0 18px; font-weight: 600; }
.reg-msg.ok { background: rgba(206,245,60,.1); color: var(--lime); }
.reg-msg.err { background: rgba(255,45,120,.12); color: #ff8bb3; }
.reg-info, .reg-login p { color: #c9ced6; margin: 0 0 16px; }
.reg-user { color: var(--muted); margin-bottom: 18px; font-size: 15px; }
.reg-user strong { color: var(--text); }
.linklike { background: none; border: 0; padding: 0; color: var(--lime); font: inherit; text-decoration: underline; cursor: pointer; }
.clan-form { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.field { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.field input { background: #0d0f13; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 12px 14px; font: 400 16px var(--body); min-width: 0; }
.field input:focus { border-color: var(--lime); outline: none; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.btn.danger:hover { border-color: var(--pink); color: #ff8bb3; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.how { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin-top: 18px; }
.how .card h3 { margin-top: 0; }
.how code { background: #0d0f13; border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; font-size: 14px; overflow-wrap: anywhere; }

/* ==========================================================================
   Finitura premium
   ========================================================================== */
body {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(206,245,60,.06), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(255,45,120,.045), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
section.alt { background: linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,0) 70%); border-block: 1px solid rgba(255,255,255,.06); }

/* Header in vetro */
.site-header { background: rgba(10,11,15,.72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid rgba(255,255,255,.06); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(206,245,60,.45), transparent); }
.nav a { letter-spacing: .01em; }

/* Etichette sopra i titoli */
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--lime); letter-spacing: .16em; font-size: 12px; }
.kicker::before { content: ""; width: 22px; height: 2px; background: linear-gradient(90deg, var(--lime), transparent); transform: skewX(-20deg); }

/* Pulsanti */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  height: 54px; padding: 0 26px; border-radius: 14px; border: 1px solid transparent;
  font: 700 14px/1 var(--body); letter-spacing: .06em; text-transform: uppercase;
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease, background .2s ease, color .2s ease;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.38) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .7s ease;
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }
.btn-lime {
  background: linear-gradient(180deg, #e2ff6b 0%, #cef53c 55%, #b7dc22 100%); color: #0b0c10; border-color: rgba(255,255,255,.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 0 rgba(0,0,0,.12), 0 10px 30px -10px rgba(206,245,60,.75), 0 2px 6px rgba(0,0,0,.4);
}
.btn-lime:hover { color: #0b0c10; background: linear-gradient(180deg, #ecff8a 0%, #d6fb4a 55%, #c2e62a 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 0 rgba(0,0,0,.12), 0 16px 40px -12px rgba(206,245,60,.9), 0 2px 6px rgba(0,0,0,.4); }
.btn-discord {
  background: linear-gradient(180deg, #7480ff 0%, #5865f2 55%, #4651d6 100%); color: #fff; border-color: rgba(255,255,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -2px 0 rgba(0,0,0,.18), 0 10px 30px -10px rgba(88,101,242,.85), 0 2px 6px rgba(0,0,0,.4);
}
.btn-discord:hover { color: #fff; background: linear-gradient(180deg, #8590ff 0%, #6672f6 55%, #505bdf 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -2px 0 rgba(0,0,0,.18), 0 16px 40px -12px rgba(88,101,242,1), 0 2px 6px rgba(0,0,0,.4); }
.btn-ghost {
  background: rgba(255,255,255,.04); color: var(--text); border-color: rgba(255,255,255,.14);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.btn-ghost:hover { border-color: rgba(206,245,60,.6); background: rgba(206,245,60,.06); color: #fff; }
.btn-ghost::after { background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.12) 50%, transparent 65%); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 12px; border-radius: 11px; }
.btn.danger:hover { border-color: rgba(255,45,120,.7); background: rgba(255,45,120,.08); color: #ff8bb3; }
.linklike { font-weight: 600; }

/* Hero */
.hero h1 { text-shadow: 0 6px 40px rgba(0,0,0,.55); }
.hero h1 .lime { color: var(--lime); text-shadow: 0 0 40px rgba(206,245,60,.25), 0 6px 40px rgba(0,0,0,.55); }
.hero .ctas { gap: 12px; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(70% 60% at 50% 40%, transparent 55%, rgba(0,0,0,.45) 100%); }

/* Card */
.card, .guide-card, .clan-card, details, .reg, .pager a, .rule {
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)), #12141a;
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 20px 40px -30px rgba(0,0,0,.8);
}
.guide-card, .clan-card, .pager a { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.guide-card:hover, .clan-card:hover, .pager a:hover {
  border-color: rgba(206,245,60,.45); transform: translateY(-3px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 24px 50px -28px rgba(206,245,60,.35);
}
.guide-card .thumb img { transition: transform .6s ease; }
.guide-card:hover .thumb img { transform: scale(1.04); }
.guide-card .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(18,20,26,.85)); }
.guide-card .num { z-index: 1; background: rgba(10,11,15,.72); color: var(--lime); border: 1px solid rgba(206,245,60,.35); backdrop-filter: blur(6px); }
.clan-card.flash { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(206,245,60,.18), 0 24px 50px -28px rgba(206,245,60,.4); }
.rule::before { background: linear-gradient(180deg, #e2ff6b, #b7dc22); box-shadow: 0 6px 16px -6px rgba(206,245,60,.7); }
details[open] { border-color: rgba(206,245,60,.3); }

/* Campi */
.clan-tools input, .field input { background: rgba(0,0,0,.35); border-color: rgba(255,255,255,.1); box-shadow: inset 0 1px 2px rgba(0,0,0,.4); transition: border-color .2s, box-shadow .2s; }
.clan-tools input:focus, .field input:focus { border-color: rgba(206,245,60,.7); box-shadow: 0 0 0 4px rgba(206,245,60,.12); }

/* Banda finale */
.cta-band {
  background:
    radial-gradient(80% 140% at 0% 0%, rgba(206,245,60,.16), transparent 55%),
    radial-gradient(70% 120% at 100% 100%, rgba(88,101,242,.18), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)), #12141a;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 40px 80px -50px rgba(0,0,0,.9);
}

@media (prefers-reduced-motion: reduce) { .btn::after { display: none; } .guide-card:hover .thumb img { transform: none; } }
@media (max-width: 760px) { .btn { height: 50px; padding: 0 20px; } .btn-sm { height: 38px; } }
.split-img { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 30px 60px -35px rgba(0,0,0,.9); }
.split-img img { border: 0; border-radius: 0; transition: transform .6s ease; width: 100%; }
.split-img:hover img { transform: scale(1.03); }

/* FAQ a gruppi */
.faq-index { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 36px; }
.faq-index a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); transition: border-color .2s, background .2s; }
.faq-index a:hover { border-color: rgba(206,245,60,.6); background: rgba(206,245,60,.06); color: #fff; }
.faq-index a span { font-size: 12px; color: var(--lime); background: rgba(206,245,60,.12); border-radius: 999px; padding: 2px 7px; }
.faq-group { margin-bottom: 40px; scroll-margin-top: 90px; }
.faq-title { font: 400 clamp(26px, 3.4vw, 34px)/1.05 var(--display); text-transform: uppercase; margin: 0 0 14px; display: flex; align-items: center; gap: 14px; }
.faq-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(206,245,60,.4), transparent); }
@media (max-width: 520px) { .hero .ctas .btn, .cta-band .ctas .btn, .split .ctas .btn { width: 100%; } }

/* Wumpus nella CTA di Discord */
.cta-wumpus { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; overflow: visible; }
@media (max-width: 760px) {
  .cta-wumpus { grid-template-columns: 1fr; }
}

/* Invito al login nella pagina Trova un clan */
.login-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 26px; padding: 18px 20px;
  border-radius: 16px; border: 1px solid rgba(88,101,242,.35);
  background: radial-gradient(120% 160% at 100% 0%, rgba(88,101,242,.22), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)), #12141a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.login-banner div { flex: 1 1 320px; color: #c9ced6; }
.login-banner strong { color: #fff; }
.reg-note { font-size: 13px; color: var(--muted); margin: 14px 0 0 !important; }
.btn-login { height: 56px; padding: 0 28px; }

/* Pulsanti: icona in un riquadro, freccia che scorre, pressione */
.btn { gap: 12px; }
.btn .chip { flex: none; width: 30px; height: 30px; margin-left: -10px; border-radius: 9px; display: grid; place-items: center;
  transition: transform .25s ease; }
.btn-lime .chip { background: rgba(11,12,16,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.btn-discord .chip { background: rgba(255,255,255,.16); box-shadow: inset 0 1px 0 rgba(255,255,255,.28); }
.btn-ghost .chip { background: rgba(255,255,255,.07); }
.btn .chip svg, .btn .chip img { width: 17px; height: 17px; display: block; }
.btn:hover .chip { transform: rotate(-8deg) scale(1.06); }
.btn .arr { flex: none; width: 16px; height: 16px; margin-right: -4px; opacity: .85; transition: transform .25s ease, opacity .25s ease; }
.btn:hover .arr { transform: translateX(4px); opacity: 1; }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.btn-discord:focus-visible { outline-color: #8b95ff; }
.btn-sm { gap: 8px; }
.btn-sm .chip { width: 24px; height: 24px; margin-left: -8px; border-radius: 7px; }
.btn-sm .chip svg, .btn-sm .chip img { width: 14px; height: 14px; }
.ctas { align-items: center; }
@media (max-width: 520px) { .hero .ctas .btn, .cta-band .ctas .btn, .split .ctas .btn, .login-banner .btn { width: 100%; justify-content: center; } .btn .arr { margin-left: auto; } .btn .chip + .lbl { margin-right: auto; } }
@media (prefers-reduced-motion: reduce) { .btn:hover .chip, .btn:hover .arr { transform: none; } }

@media (min-width: 761px) and (max-width: 900px) {
  .nav a:not(.btn) { padding: 8px 9px; }
  .nav .btn-sm { margin-left: 4px; padding: 0 12px; }
}
.nav .btn-discord, .header-cta .btn-discord { color: #fff; }

/* Wumpus: corpo + braccio separato che saluta */
.wumpus { position: relative; width: clamp(170px, 22vw, 260px); margin: -40px 10px -30px 0; perspective: 700px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.wumpus .tilt { transform-style: preserve-3d; transition: transform .25s ease-out; }
.wumpus .rig { position: relative; z-index: 1; aspect-ratio: 1; transform-origin: 50% 90%;
  filter: drop-shadow(0 18px 30px rgba(88,101,242,.45)); animation: wumpus-bob 3.2s ease-in-out infinite; }
.wumpus .rig img { position: absolute; inset: 0; width: 100%; height: 100%; }
.wumpus .arm { transform-origin: 34.33% 51.24%; animation: wumpus-hello 4.2s ease-in-out infinite; will-change: transform; }
.wumpus-shadow { position: absolute; left: 22%; right: 22%; bottom: 2%; height: 14px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent); animation: wumpus-shadow 3.2s ease-in-out infinite; }
@keyframes wumpus-bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }
@keyframes wumpus-shadow { 0%, 100% { transform: scaleX(1); opacity: .9; } 50% { transform: scaleX(.78); opacity: .55; } }
/* saluto: alza il braccio e lo sventola, poi lo riabbassa e fa una pausa */
@keyframes wumpus-hello {
  0%, 64%, 100% { transform: rotate(0deg); }
  7% { transform: rotate(34deg); } 14% { transform: rotate(-8deg); } 21% { transform: rotate(34deg); }
  28% { transform: rotate(-8deg); } 35% { transform: rotate(34deg); } 42% { transform: rotate(-8deg); } 52% { transform: rotate(18deg); } }
@keyframes wumpus-wave { from { transform: rotate(-12deg); } to { transform: rotate(36deg); } }
.cta-wumpus:has(.btn-discord:hover) .wumpus .arm, .wumpus:hover .arm, .wumpus.hello .arm { animation: wumpus-wave .3s ease-in-out infinite alternate; }
.wumpus.jump .rig { animation: wumpus-jump .7s cubic-bezier(.3,1.6,.5,1) 1; }
@keyframes wumpus-jump { 0% { transform: translateY(0) scale(1, 1); } 20% { transform: translateY(4px) scale(1.08, .9); }
  55% { transform: translateY(-46px) rotate(-8deg) scale(.96, 1.06); } 80% { transform: translateY(0) scale(1.06, .94); } 100% { transform: translateY(0) scale(1, 1); } }
@media (max-width: 760px) { .wumpus { order: -1; width: 150px; margin: -10px auto 0; } }
@media (prefers-reduced-motion: reduce) { .wumpus .rig, .wumpus-shadow { animation: none !important; } .wumpus .arm { animation: wumpus-hello 6s ease-in-out infinite !important; } }

/* ---------- Footer premium ---------- */
.site-footer { position: relative; overflow: hidden; overflow: clip; margin-top: 56px; padding: 0 0 env(safe-area-inset-bottom); color: var(--muted); font-size: 15px; line-height: 1.5;
  border-top: 1px solid rgba(255,255,255,.07);
  background:
    radial-gradient(760px 320px at 8% 0%, rgba(206,245,60,.06), transparent 70%),
    radial-gradient(760px 360px at 96% 4%, rgba(88,101,242,.10), transparent 70%),
    linear-gradient(180deg, #0d0f14 0%, #08090c 60%, #060709 100%); }
/* la pagina si chiude su una riga tricolore, su cui poggia la scritta grande */
.site-footer::after { content: ""; display: block; height: 4px;
  background: linear-gradient(90deg, var(--verde) 0 33.34%, var(--bianco) 33.34% 66.67%, var(--rosso) 66.67% 100%); }
.site-footer :focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 10px; }

/* Invito in cima (solo nelle pagine che non hanno gia' la fascia con Telegram e Discord) */
.foot-cta { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 26px 40px; flex-wrap: wrap;
  margin-top: 48px; padding: 34px 38px; border-radius: 20px; border: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(70% 160% at 0% 0%, rgba(206,245,60,.15), transparent 55%),
    radial-gradient(60% 150% at 100% 100%, rgba(88,101,242,.20), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)), #12141a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 40px 80px -50px rgba(0,0,0,.9); }
.foot-cta-txt { flex: 1 1 340px; min-width: 0; }
.foot-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--lime); font-weight: 700; font-size: 12px; line-height: 1; letter-spacing: .16em; text-transform: uppercase; }
.foot-kicker::before { content: ""; width: 22px; height: 2px; background: linear-gradient(90deg, var(--lime), transparent); transform: skewX(-20deg); }
.foot-title { margin: 0; font: 400 clamp(28px, 3.6vw, 42px)/1.04 var(--display); text-transform: uppercase; color: var(--text); transform: skewX(-6deg); transform-origin: left bottom; text-wrap: balance; }
.foot-sub { margin: 12px 0 0; color: #b4bac4; font-size: 15px; }
.foot-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Griglia: marchio e canali a sinistra, tre colonne di link a destra */
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, .8fr) minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px 44px; padding: 56px 0 48px; }
.foot-brand .logo { display: inline-flex; min-height: 44px; justify-content: center; color: var(--text); }
.foot-brand .logo:hover { color: var(--text); }
.foot-about { margin: 12px 0 22px; max-width: 34ch; color: #b4bac4; }

.foot-chans { list-style: none; margin: 0; padding: 0; max-width: 400px; border-radius: 16px; border: 1px solid rgba(255,255,255,.08); overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 30px 60px -44px rgba(0,0,0,.9); }
.foot-chans li + li { border-top: 1px solid rgba(255,255,255,.06); }
.chan { --c: 255,255,255; position: relative; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 16px 10px 12px; color: var(--text); text-decoration: none;
  transition: background .2s ease; }
.chan-tg { --c: 206,245,60; }
.chan-dc { --c: 88,101,242; }
.chan-ico { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1); transition: background .2s ease, color .2s ease, border-color .2s ease, transform .25s ease, box-shadow .25s ease; }
.chan-ico svg, .chan-ico img { width: 20px; height: 20px; display: block; }
.chan-tg .chan-ico { color: var(--lime); }
.chan-dc .chan-ico { color: #aab1ff; }
.chan-txt { flex: 1; min-width: 0; display: grid; gap: 3px; }
.chan-txt b { font-weight: 600; font-size: 15px; line-height: 1.25; color: var(--text); }
.chan-txt small { font-size: 13px; line-height: 1.3; color: #9299a5; }
.chan .arr { flex: none; width: 16px; height: 16px; color: #6f7682; transition: transform .25s ease, color .2s ease; }
.chan:hover, .chan:focus-visible { color: var(--text); background: linear-gradient(90deg, rgba(var(--c), .10), rgba(var(--c), 0) 75%); }
.chan:hover .arr, .chan:focus-visible .arr { transform: translateX(4px); color: var(--text); }
.chan:hover .chan-ico { transform: rotate(-8deg) scale(1.06); }
.chan-tg:hover .chan-ico { background: linear-gradient(180deg, #e2ff6b, #b7dc22); color: #0b0c10; border-color: transparent; box-shadow: 0 10px 24px -10px rgba(206,245,60,.8); }
.chan-dc:hover .chan-ico { background: linear-gradient(180deg, #7984f7, #5865f2); color: #fff; border-color: transparent; box-shadow: 0 10px 24px -10px rgba(88,101,242,.9); }
.chan-steam:hover .chan-ico { border-color: rgba(255,255,255,.28); }
.chan:focus-visible { outline-offset: -3px; border-radius: 14px; }
.chan:active .chan-ico { transform: scale(.94); transition-duration: .06s; }

.foot-col { padding-top: 6px; }
.foot-h { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: var(--text); font-weight: 700; font-size: 12px; line-height: 32px; letter-spacing: .16em; text-transform: uppercase; }
.foot-h::before { content: ""; width: 16px; height: 2px; background: linear-gradient(90deg, var(--lime), transparent); transform: skewX(-20deg); }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col a { position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 6px 0; color: #b9bfc9; text-decoration: none; line-height: 1.3;
  transition: color .18s ease, padding-left .22s ease; }
.foot-col a::before { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 2px; margin-top: -1px; background: var(--lime); transform: skewX(-20deg) scaleX(0); transform-origin: left; transition: transform .22s ease; }
.foot-col a:hover, .foot-col a:focus-visible { color: #fff; padding-left: 18px; }
.foot-col a:hover::before, .foot-col a:focus-visible::before { transform: skewX(-20deg) scaleX(1); }

/* Riga finale: note legali e ritorno in cima */
.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px 40px; padding: 24px 0 8px; border-top: 1px solid rgba(255,255,255,.07); }
.foot-bottom .legal { margin: 0; max-width: 86ch; font-size: 13px; text-wrap: pretty; line-height: 1.6; color: #8d939e; }
.foot-bottom .legal span { color: #b9bfc9; }
.totop { flex: none; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px 0 16px; border-radius: 12px; font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  color: var(--text); border: 1px solid rgba(255,255,255,.1); background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
  transition: border-color .2s ease, color .2s ease, transform .2s ease; }
.totop svg { width: 28px; height: 28px; padding: 6px; border-radius: 8px; background: rgba(255,255,255,.07); transition: transform .25s ease, background .2s ease, color .2s ease; }
.totop:hover { color: #fff; border-color: rgba(206,245,60,.6); }
.totop:hover svg { transform: translateY(-2px); background: var(--lime); color: #0b0c10; }

/* Scritta grande in chiusura: sta dentro la pagina, non sopra il testo */
.foot-word { margin: 14px 0 0; padding: 0 20px; height: .925em; overflow: hidden; font: 400 clamp(50px, 14.4vw, 186px)/1 var(--display); text-transform: uppercase; white-space: nowrap; text-align: center;
  letter-spacing: .01em; transform: skewX(-8deg); transform-origin: 50% 100%; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.11); user-select: none; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.012) 80%); -webkit-background-clip: text; background-clip: text; }
.foot-word span { -webkit-text-stroke-color: rgba(206,245,60,.3); background: linear-gradient(180deg, rgba(206,245,60,.16), rgba(206,245,60,.02) 80%); -webkit-background-clip: text; background-clip: text; }

@media (max-width: 980px) {
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 32px; padding: 48px 0 40px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-about { max-width: 52ch; }
  .foot-chans { max-width: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-chans li + li { border-top: 0; border-left: 1px solid rgba(255,255,255,.06); }
  .chan { height: 100%; }
  .chan .arr { display: none; }
}
@media (max-width: 700px) {
  .foot-chans { display: block; }
  .foot-chans li + li { border-left: 0; border-top: 1px solid rgba(255,255,255,.06); }
  .chan .arr { display: block; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .site-footer { margin-top: 44px; }
  .foot-cta { margin-top: 32px; padding: 26px 20px; border-radius: 18px; }
  .foot-cta-btns, .foot-cta-btns .btn { width: 100%; }
  .foot-cta-btns .btn .chip + .lbl { margin-right: auto; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px; padding: 40px 0 34px; }
  .foot-col-guide { grid-column: 1 / -1; order: 3; }
  .foot-col-guide ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .foot-word { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .chan, .chan-ico, .chan .arr, .foot-col a, .foot-col a::before, .totop, .totop svg { transition: none; }
  .chan:hover .chan-ico, .chan:hover .arr, .chan:focus-visible .arr, .totop:hover svg { transform: none; }
}

/* ---------- Reattività ---------- */
html { -webkit-tap-highlight-color: transparent; }
a, button, summary, input, textarea, select, .btn { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.btn:active, .totop:active { transform: translateY(0) scale(.97); transition-duration: .06s; }
.guide-card:active { transform: scale(.99); }
.site-header { transition: background .25s ease, box-shadow .25s ease, border-color .25s ease; }
.site-header.scrolled { background: rgba(9,10,13,.86); box-shadow: 0 12px 30px -18px rgba(0,0,0,.9); border-bottom-color: rgba(206,245,60,.14); }
@media (min-width: 761px) { .site-header .wrap { transition: height .25s ease; } .site-header.scrolled .wrap { height: 58px; } }
/* riflesso che segue il puntatore */
.card, .guide-card { position: relative; }
.card::after, .guide-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(206,245,60,.08), transparent 45%); }
.card:hover::after, .guide-card:hover::after { opacity: 1; }
.btn-discord, .btn-lime { background-blend-mode: normal; }
/* comparsa morbida (solo con JavaScript attivo) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
/* immagini e sezioni lontane: il browser le disegna solo quando servono */
.faq-group { content-visibility: auto; contain-intrinsic-size: auto 600px; }
/* passaggio morbido tra le pagine (browser che lo supportano) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
@media print { .js .reveal { opacity: 1 !important; transform: none !important; } }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  @view-transition { navigation: none; }
}

/* ---------- Guide: riassunto e fonti ---------- */
.tldr { margin: 0 0 30px; padding: 20px 22px 8px; border-radius: var(--radius); border: 1px solid rgba(206,245,60,.22);
  background: linear-gradient(135deg, rgba(206,245,60,.07), rgba(206,245,60,.015) 60%); }
.tldr b { display: block; margin-bottom: 10px; color: var(--lime); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.tldr ul { margin: 0 0 12px; }
.fonti { margin: 40px 0 26px; padding: 18px 20px 6px; border-radius: var(--radius); border: 1px dashed #343946; background: rgba(255,255,255,.015); color: var(--muted); font-size: 14px; }
.fonti b { display: block; margin-bottom: 8px; color: var(--text); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.fonti ul { margin: 0 0 10px; padding-left: 18px; }
.fonti li { margin-bottom: 4px; }
.fonti li::marker { color: #59606e; }
.fonti p { margin: 0 0 12px; }
.fonti a { color: var(--text); }

.guide-card h2, .guide-card h3 { overflow-wrap: anywhere; hyphens: auto; }

/* ---------- Bottoni Telegram e Discord (versione grande) ---------- */
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.btn-brand { height: 62px; padding: 0 22px 0 12px; gap: 14px; border-radius: 16px; letter-spacing: .05em; }
.btn-brand .chip { width: 40px; height: 40px; margin-left: 0; border-radius: 12px; }
.btn-brand .chip svg, .btn-brand .chip img { width: 20px; height: 20px; }
.btn-lime.btn-brand .chip { background: #0b0c10; color: var(--lime); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 6px 14px -6px rgba(0,0,0,.7); }
.btn-discord.btn-brand .chip { background: rgba(14,16,48,.38); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 6px 14px -6px rgba(10,12,60,.8); }
.btn-brand .lbl { display: grid; gap: 4px; text-align: left; line-height: 1; white-space: nowrap; min-width: 0; }
.btn-brand .lbl small { font: 600 11.5px/1 var(--body); letter-spacing: .01em; text-transform: none; opacity: .72; }
.btn-brand .arr { margin-left: 6px; }
.btn-lg { height: 68px; font-size: 15px; padding-right: 26px; }
/* anello di luce che gira sul bordo al passaggio */
.btn-brand::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0 62%, rgba(255,255,255,.95) 78%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s ease; animation: btn-ring 2.2s linear infinite; }
.btn-brand:hover::before, .btn-brand:focus-visible::before { opacity: .9; }
@keyframes btn-ring { to { --ang: 360deg; } }
.btn-lime.btn-brand:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 0 rgba(0,0,0,.12), 0 16px 40px -12px rgba(206,245,60,.95), 0 2px 6px rgba(0,0,0,.4); }
.btn-discord.btn-brand:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -2px 0 rgba(0,0,0,.18), 0 16px 40px -12px rgba(88,101,242,1), 0 2px 6px rgba(0,0,0,.4); }
.blurple { color: #8f98ff; }
@media (max-width: 520px) { .btn-brand { height: 64px; } .btn-brand .lbl { margin-right: auto; } }
@media (prefers-reduced-motion: reduce) { .btn-brand::before { animation: none; } }
@media (max-width: 380px) { .btn-brand { letter-spacing: .03em; font-size: 13px; } }


/* ==========================================================================
   Revisione grafica (Fable): allineamenti, tablet, guide, pagina clan, FAQ e regolamento
   ========================================================================== */

/* ==========================================================================
   Revisione grafica (novembre 2026) — blocco unico da tenere IN FONDO a style.css
   Solo CSS: nessun file, immagine o script nuovo. Ogni parte dice cosa corregge.
   ========================================================================== */

/* ---------- 1. Base: testo, selezione, ancore ---------- */
html { scroll-padding-top: 92px; }
::selection { background: var(--lime); color: #0b0c10; }
h1, h2, h3, .foot-title { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
.intro { line-height: 1.6; }
/* ritmo unico tra le sezioni; niente doppio vuoto prima del footer */
section { padding: clamp(64px, 7.5vw, 104px) 0; }
main > section:last-child { padding-bottom: clamp(40px, 5vw, 64px); }
.kicker { margin-bottom: 16px; }
h2 { letter-spacing: .005em; }

/* ---------- 2. Header: voce attiva con il segno lime, non con un riquadro grigio ---------- */
.nav a:not(.btn) { position: relative; transition: color .18s ease, background .18s ease; }
.nav a:not(.btn):hover { background: rgba(255,255,255,.05); }
.nav a:not(.btn)[aria-current="page"] { background: none; color: #fff; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--lime); transform: skewX(-20deg) scaleX(0); transform-origin: left; transition: transform .22s ease; }
.nav a:not(.btn)[aria-current="page"]::after { transform: skewX(-20deg) scaleX(1); }
@media (max-width: 760px) {
  .nav { gap: 2px; }
  .nav a:not(.btn) { padding: 10px 12px; }
  .nav a:not(.btn)::after { bottom: 4px; }
}

/* ---------- 3. Hero: copre l'interfaccia del gioco in alto, testo piu' leggibile ---------- */
.hero::before { background:
  linear-gradient(180deg, rgba(11,12,16,.82) 0, rgba(11,12,16,0) 150px),
  radial-gradient(70% 60% at 50% 40%, transparent 55%, rgba(0,0,0,.45) 100%); }
.hero h1 { letter-spacing: 0; }
.hero p.lead { line-height: 1.55; text-shadow: 0 1px 14px rgba(0,0,0,.6); }
.hero .kicker { text-shadow: 0 1px 10px rgba(0,0,0,.7); }
@media (max-width: 760px) {
  .hero { min-height: min(78vh, 640px); }
  .hero .wrap { padding: 72px 0 44px; }
  .hero .tricolore { margin: 18px 0 20px; width: 140px; height: 7px; }
  .hero p.lead { margin-bottom: 26px; }
}

/* ---------- 4. Blocco «Trova un clan»: immagine incorniciata, non piu' enorme su tablet ---------- */
.split { gap: clamp(28px, 5vw, 64px); }
.split-img { position: relative; aspect-ratio: 16 / 10; border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 40px 80px -40px rgba(0,0,0,.95), 0 30px 70px -45px rgba(206,245,60,.35); }
.split-img img { height: 100%; object-fit: cover; }
.split-img::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, rgba(11,12,16,.5) 0, rgba(11,12,16,0) 26%, rgba(11,12,16,0) 68%, rgba(11,12,16,.6) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 -3px 0 var(--lime); }
@media (max-width: 900px) { .split-img { aspect-ratio: auto; height: clamp(200px, 48vw, 380px); } }
@media (prefers-reduced-motion: reduce) { .split-img:hover img { transform: none; } }

/* ---------- 5. Card delle guide ---------- */
/* nella pagina Guide il titolo e' un <h2> e prendeva i 56px dei titoli di sezione */
.guide-card h2, .guide-card h3 { margin: 0 0 8px; font: 400 24px/1.08 var(--display); letter-spacing: .01em; text-transform: uppercase; hyphens: manual; overflow-wrap: break-word; }
.grid-3 .guide-card h2, .grid-3 .guide-card h3 { font-size: 27px; }
.guide-card .body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 18px; }
.guide-card p { line-height: 1.55; }
/* riga finale uguale in tutte le card: le allinea anche quando i testi hanno lunghezze diverse */
.guide-card .body::after { content: "Leggi la guida  \2192"; margin-top: auto; padding-top: 14px; white-space: pre;
  font: 700 12px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--lime); opacity: .8; transition: opacity .2s ease, letter-spacing .25s ease; }
.guide-card p { margin-bottom: 16px; }
.guide-card .body::before { content: ""; order: 1; height: 1px; margin-top: auto; background: linear-gradient(90deg, rgba(255,255,255,.1), transparent); }
.guide-card .body::after { order: 2; margin-top: 0; }
.guide-card:hover .body::after { opacity: 1; letter-spacing: .15em; }
.guide-card .num { left: 14px; top: 14px; padding: 7px 10px; border-radius: 8px; letter-spacing: .1em; font-size: 11px; }
.grid { gap: 20px; }
/* tablet: 2+2 invece di 3+1 in home; 3 colonne nella pagina Guide (9 card = 3x3) */
@media (min-width: 561px) and (max-width: 1020px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 720px) and (max-width: 900px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .grid-3 .guide-card h2, .grid-3 .guide-card h3 { font-size: 22px; } .grid-3 .guide-card .body { padding: 16px 16px 14px; } .grid-3 .guide-card p { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .guide-card:hover .body::after { letter-spacing: .12em; } }

/* ---------- 6. FAQ: righe piu' curate ---------- */
details { border-radius: 14px; transition: border-color .2s ease, background .2s ease; }
details summary { padding: 18px 64px 18px 20px; border-radius: 14px; line-height: 1.4; transition: color .18s ease; }
details summary:hover { color: #fff; }
details:hover { border-color: rgba(255,255,255,.14); }
details[open] { border-color: rgba(206,245,60,.3); }
details summary:focus-visible { outline-offset: -2px; border-radius: 14px; }
details summary::after, details[open] summary::after { content: ""; right: 16px; width: 30px; height: 30px; border-radius: 10px;
  background: linear-gradient(var(--lime), var(--lime)) center / 12px 2px no-repeat, linear-gradient(var(--lime), var(--lime)) center / 2px 12px no-repeat, rgba(206,245,60,.1);
  box-shadow: inset 0 0 0 1px rgba(206,245,60,.18); transition: transform .3s ease, background-size .3s ease, background-color .2s ease; }
details[open] summary::after { transform: translateY(-50%) rotate(180deg);
  background-size: 12px 2px, 2px 0, auto; }
details summary:hover::after { background-color: rgba(206,245,60,.18); }
details .ans { padding: 0 64px 18px 20px; line-height: 1.65; }
details .ans p:last-child { margin-bottom: 0; }
details[open] .ans { animation: ans-in .28s ease both; }
@keyframes ans-in { from { opacity: 0; transform: translateY(-4px); } }
@media (max-width: 560px) { details .ans { padding-right: 20px; } details summary { padding-right: 58px; } }
@media (prefers-reduced-motion: reduce) { details[open] .ans { animation: none; } details summary::after { transition: none; } }

/* Home, «Domande veloci»: su desktop titolo a sinistra e domande a destra (prima restava mezzo schermo vuoto) */
.wrap:has(> .kicker):has(> div > details) > p > a:only-child {
  display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 12px; text-decoration: none;
  font: 700 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--text);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14); box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  transition: border-color .2s ease, background .2s ease, color .2s ease; }
.wrap:has(> .kicker):has(> div > details) > p > a:only-child:hover { border-color: rgba(206,245,60,.6); background: rgba(206,245,60,.06); color: #fff; }
@media (min-width: 960px) {
  .wrap:has(> .kicker):has(> div > details) { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.35fr); grid-template-rows: auto auto auto 1fr; column-gap: 56px; align-items: start; }
  .wrap:has(> .kicker):has(> div > details) > * { grid-column: 1; }
  .wrap:has(> .kicker):has(> div > details) > .kicker { justify-self: start; }
  .wrap:has(> .kicker):has(> div > details) > div { grid-column: 2; grid-row: 1 / span 4; max-width: none !important; margin-top: 4px !important; }
  .wrap:has(> .kicker):has(> div > details) > p { margin-top: 8px !important; }
}

/* ---------- 7. Testata delle pagine interne ---------- */
.page-head { position: relative; padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 4vw, 44px);
  background:
    radial-gradient(620px 260px at 88% 0%, rgba(206,245,60,.07), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  border-bottom: 1px solid rgba(255,255,255,.07); }
/* linguetta tricolore sul bordo: lo stesso segno del logo e della home */
.page-head::after { content: ""; position: absolute; bottom: -3px; left: max(20px, calc((100% - var(--max)) / 2)); width: 96px; height: 5px; border-radius: 3px;
  background: linear-gradient(90deg, var(--verde) 0 33.34%, var(--bianco) 33.34% 66.67%, var(--rosso) 66.67% 100%); transform: skewX(-20deg); }
.page-head h1 { font-size: clamp(42px, 7vw, 80px); }
.page-head p { line-height: 1.55; max-width: 600px; }
.page-head .kicker { margin-bottom: 12px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: center; margin-bottom: 22px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: #7d8490; }
.crumbs a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.crumbs a:hover { color: var(--lime); }
.crumbs [aria-current="page"] { color: var(--text); }
.page-head + section { padding-top: clamp(36px, 4.5vw, 56px) !important; }

/* ---------- 8. FAQ e Regolamento: il contenuto parte dallo stesso margine del titolo ---------- */
.page-head + section > .wrap[style*="max-width"] { max-width: none !important; }
.page-head + section > .wrap[style*="max-width"] > * { max-width: 820px; }
@media (min-width: 980px) {
  /* FAQ: argomenti in colonna a sinistra (restano visibili mentre scorri), domande a destra */
  .wrap:has(> .faq-index) { display: grid; grid-template-columns: 250px minmax(0, 1fr); column-gap: 56px; align-items: start; }
  .wrap:has(> .faq-index) > * { grid-column: 2; max-width: none; min-width: 0; }
  .wrap:has(> .faq-index) > .faq-index { grid-column: 1; grid-row: 1 / span 40; position: sticky; top: 92px; flex-direction: column; flex-wrap: nowrap; gap: 6px; margin: 0 0 0 -14px; }
  .wrap:has(> .faq-index) > .faq-index a { justify-content: space-between; border-radius: 12px; padding: 12px 14px; background: transparent; border-color: transparent; color: var(--muted); }
  .wrap:has(> .faq-index) > .faq-index a:hover { color: #fff; background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
  .wrap:has(> .faq-index) > .faq-index::before { content: "Argomenti"; padding: 0 14px 8px; font: 700 12px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--text); }
  /* Regolamento: regole a sinistra, sanzioni e segnalazioni a fianco */
  .wrap:has(> .rules) { display: grid; grid-template-columns: minmax(0, 1fr) 330px; grid-template-rows: auto 1fr; column-gap: 40px; align-items: start; }
  .wrap:has(> .rules) > * { max-width: none; }
  .wrap:has(> .rules) > .rules { grid-column: 1; grid-row: 1 / span 2; }
  .wrap:has(> .rules) > .sanzioni { grid-column: 2; grid-row: 1; margin-top: 0; }
  .wrap:has(> .rules) > p { grid-column: 2; grid-row: 2; margin-top: 18px !important; font-size: 15px; line-height: 1.6; }
}
.faq-index a { min-height: 44px; }
.faq-group { margin-bottom: 44px; }
.faq-group:last-of-type { margin-bottom: 0; }
.faq-title { margin-bottom: 16px; }

/* Regole */
.rules { gap: 10px; }
.rule { border-radius: 14px; padding: 20px 22px 20px 78px; transition: border-color .2s ease; }
.rule:hover { border-color: rgba(206,245,60,.28); }
.rule::before { left: 22px; top: 19px; transform: skewX(-6deg); }
.rule h3 { font-size: 18px; line-height: 1.3; margin-bottom: 6px; color: #fff; }
.rule p { line-height: 1.6; font-size: 16px; }
.sanzioni { padding: 22px 22px 22px; border-color: rgba(255,45,120,.28);
  background: radial-gradient(120% 120% at 100% 0%, rgba(255,45,120,.1), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)), #12141a; }
.sanzioni h3 { font: 700 12px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: #ff7aa8; margin-bottom: 12px; }
.sanzioni p { color: #d5d9e0; line-height: 2; font-size: 15.5px; }
.sanzioni::after { display: none; }
@media (max-width: 760px) { .rule { padding: 18px 18px 18px 66px; } .rule::before { left: 16px; top: 17px; width: 36px; height: 36px; line-height: 36px; font-size: 20px; } }

/* ---------- 9. Articolo della guida ---------- */
.article { gap: clamp(32px, 5vw, 64px); padding: clamp(32px, 4.5vw, 52px) 0 clamp(48px, 6vw, 72px); }
.article .cover { border-radius: 18px; border-color: rgba(255,255,255,.08); margin-bottom: 28px; box-shadow: 0 40px 80px -50px rgba(0,0,0,.95); }
.prose { max-width: 720px; line-height: 1.72; }
.prose > p, .prose > ul, .prose > ol { color: #dfe2e7; }
/* titoli di paragrafo: piu' aria sopra, un filo che separa i blocchi */
.prose h2 { font-size: clamp(27px, 3.4vw, 36px); margin: 52px 0 14px; padding-top: 26px; position: relative; scroll-margin-top: 92px; }
.prose h2::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,.12), transparent 80%); }
.prose h2::after { content: ""; position: absolute; left: 0; top: -1px; width: 34px; height: 3px; border-radius: 2px; background: var(--lime); transform: skewX(-20deg); }
.prose .tldr + h2 { margin-top: 40px; }
.prose li { margin-bottom: 10px; padding-left: 4px; }
.prose ol li::marker { font-weight: 700; }
.prose a { text-decoration-thickness: 1px; }
/* «In breve»: e' il pezzo piu' letto, ora si stacca dal resto */
.tldr { position: relative; margin: 0 0 8px; padding: 24px 26px 12px 28px; border-radius: 16px; border: 1px solid rgba(206,245,60,.24); overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, rgba(206,245,60,.11), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)), #12141a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 30px 60px -45px rgba(0,0,0,.9); }
.tldr::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--lime), rgba(206,245,60,.15)); }
.tldr b { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.tldr b::before { content: ""; width: 22px; height: 2px; background: linear-gradient(90deg, var(--lime), transparent); transform: skewX(-20deg); }
.tldr ul { padding-left: 20px; }
.tldr li { color: #eef0f3; }
/* tabelle in un riquadro, con intestazione leggibile; su telefono scorrono di lato senza allargare la pagina */
.prose table { border-collapse: separate; border-spacing: 0; margin: 10px 0 26px; font-size: 15.5px; line-height: 1.5; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)), #12141a; }
.prose th, .prose td { padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,.06); }
.prose th { background: rgba(255,255,255,.035); color: var(--lime); font-size: 12px; letter-spacing: .1em; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.prose tbody tr:nth-child(even) td { background: rgba(255,255,255,.015); }
.prose td:first-child { color: #fff; font-weight: 600; }
@media (max-width: 560px) { .prose table { font-size: 14.5px; } .prose th, .prose td { padding: 11px 12px; } .prose th { white-space: normal; } }
/* riquadri consiglio/attenzione: barra laterale e fondo meno acceso */
.tip, .warn { position: relative; border-radius: 14px; padding: 18px 20px 18px 24px; margin: 26px 0; overflow: hidden; }
.tip { background: rgba(206,245,60,.055); border-color: rgba(206,245,60,.22); }
.warn { background: rgba(255,45,120,.06); border-color: rgba(255,45,120,.26); }
.tip::before, .warn::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--lime); }
.warn::before { background: var(--pink); }
.tip + .tip, .warn + .tip, .tip + .warn, .warn + .warn { margin-top: -10px; }
.tip b, .warn b { font-size: 12px; letter-spacing: .14em; margin-bottom: 6px; }
.warn b { color: #ff6d9f; }
.fonti { border-radius: 14px; padding: 20px 22px 8px; margin: 48px 0 28px; line-height: 1.6; }
/* precedente / successiva */
.pager { margin-top: 32px; }
.pager a { border-radius: 14px; padding: 18px 20px; font: 400 21px/1.15 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.pager small { font: 700 11px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; transition: color .2s ease; }
.pager a:hover small { color: var(--lime); }
.prose .updated { font-size: 13px; line-height: 1.6; color: #8d939e; }
/* colonna a fianco */
.aside { top: 92px; gap: 14px; }
.aside .card { padding: 22px; border-radius: 16px; }
.aside .card h3 { font: 700 12px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--text); margin-bottom: 14px; }
.aside ol { list-style: none; padding: 0; counter-reset: g; }
.aside ol li { counter-increment: g; margin: 0; }
.aside ol a { display: flex; align-items: baseline; gap: 12px; padding: 8px 10px; margin: 0 -10px; border-radius: 9px; line-height: 1.35; transition: color .18s ease, background .18s ease; }
.aside ol a::before { content: counter(g, decimal-leading-zero); flex: none; font: 400 14px/1 var(--display); color: #8d939e; transition: color .18s ease; }
.aside ol a:hover { color: #fff; background: rgba(255,255,255,.04); }
.aside ol a[aria-current="page"] { color: #fff; font-weight: 600; background: rgba(206,245,60,.08); box-shadow: inset 2px 0 0 var(--lime); }
.aside ol a[aria-current="page"]::before, .aside ol a:hover::before { color: var(--lime); }
.aside .card p { font-size: 15px; line-height: 1.55; }
.aside .card .btn { flex: 1 1 120px; justify-content: flex-start; }
@media (max-width: 900px) { .prose { max-width: none; } .aside ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); column-gap: 24px; } }

/* ---------- 10. Pagina dei clan ---------- */
.clan-tools { gap: 12px 16px; margin-bottom: 24px; }
.clan-tools input { height: 54px; padding: 0 18px 0 50px; border-radius: 14px; appearance: none; -webkit-appearance: none;
  background: rgba(0,0,0,.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a2a8b3' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5'/%3E%3C/svg%3E") 18px 50% / 20px 20px no-repeat; }
.clan-tools input::placeholder { color: #8d939e; }
.clan-count { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; font-weight: 600; font-size: 13px; letter-spacing: .02em; color: var(--text); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); }
.clan-count:empty { display: none; }
.clan-grid { gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.clan-card { border-radius: 16px; padding: 22px 22px 16px; display: flex; flex-direction: column; }
.clan-head { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.07); }
.clan-head h3 { letter-spacing: .01em; }
.badge { padding: 7px 9px; border-radius: 8px; }
.warn-badge { box-shadow: inset 0 0 0 1px rgba(255,45,120,.3); }
.mine-badge { box-shadow: inset 0 0 0 1px rgba(206,245,60,.3); }
.clan-card dl { gap: 0; }
.clan-card dl div { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 7px 0; font-size: 15px; line-height: 1.45; align-items: baseline; }
.clan-card dt { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8d939e; }
.clan-card dd { color: #eef0f3; }
.clan-card dl div:first-child dd { color: var(--lime); font-weight: 700; }
.clan-foot { margin-top: auto; padding-top: 12px; font-size: 12.5px; color: #8d939e; }
.clan-card dl { margin-bottom: 14px; }
.clan-status { border-radius: 14px; padding: 14px 18px 14px 20px; border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.035); box-shadow: inset 3px 0 0 var(--lime); color: #dfe2e7; }
.clan-empty { padding: 34px 20px; text-align: center; border: 1px dashed rgba(255,255,255,.12); border-radius: 16px; }
/* pannello di registrazione: e' un accesso con Discord, prende il suo colore */
.reg { border-radius: 20px; padding: clamp(22px, 3.4vw, 36px);
  background: radial-gradient(70% 120% at 100% 0%, rgba(88,101,242,.16), transparent 60%), radial-gradient(60% 120% at 0% 100%, rgba(206,245,60,.06), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)), #12141a; }
.reg-intro { font-size: 17px; line-height: 1.55; max-width: 62ch; }
.reg-info, .reg-login p { max-width: 68ch; line-height: 1.6; }
.reg-login p.reg-note { max-width: none; }
.btn-login .lbl, .btn .lbl { line-height: 1.15; }
.field { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; gap: 8px; }
.field input { height: 50px; padding: 0 14px; border-radius: 12px; letter-spacing: 0; text-transform: none; font-weight: 400; }
.how { gap: 18px; margin-top: 20px; }
.how .card { padding: 22px; border-radius: 16px; }
.how .card h3 { font: 700 12px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--lime); margin-bottom: 12px; }
.how .card p { font-size: 15.5px; line-height: 1.7; color: #c9ced6; }
/* i comandi lunghi vanno a capo in pezzi puliti, non in un riquadro spezzato */
.how code { -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 3px 7px; font-size: 13px; line-height: 2; color: #eef0f3; background: rgba(0,0,0,.4); border-color: rgba(255,255,255,.1); }
@media (max-width: 560px) {
  .clan-tools input { flex-basis: 100%; }
  .clan-card { padding: 20px 20px 16px; }
  .btn-login { height: auto; min-height: 56px; padding-block: 10px; }
  .btn-login .lbl { text-align: left; }
}

/* ---------- 11. Fasce con i bottoni ---------- */
.cta-band { border-radius: 24px; padding: clamp(32px, 4.6vw, 60px) clamp(22px, 4vw, 52px); }
.cta-band p { font-size: 17px; line-height: 1.55; }
.cta-band h2 { margin-bottom: 12px; }
/* accanto ai bottoni grandi, quello semplice prende la stessa altezza (pagina 404) */
div:has(> .btn-brand) > .btn:not(.btn-brand) { height: 62px; border-radius: 16px; padding: 0 26px; }
@media (max-width: 520px) {
  div:has(> .btn-brand) > .btn { width: 100%; }
  div:has(> .btn-brand) > .btn:not(.btn-brand) { height: 64px; justify-content: space-between; }
  section p > .btn { width: 100%; justify-content: space-between; }
}
.site-footer { margin-top: 0; }

/* ---------- 12. Pagina 404 ---------- */
main > section:only-child > .wrap[style*="text-align:center"] { position: relative; }
main > section:only-child > .wrap[style*="text-align:center"] h1 { text-shadow: 0 0 80px rgba(206,245,60,.28); letter-spacing: .02em; }
main > section:only-child > .wrap[style*="text-align:center"] h1::after { content: ""; display: block; width: 120px; height: 7px; margin: 18px auto 0; border-radius: 4px; transform: skewX(-12deg);
  background: linear-gradient(90deg, var(--verde) 0 33.34%, var(--bianco) 33.34% 66.67%, var(--rosso) 66.67% 100%); }
main > section:only-child > .wrap[style*="text-align:center"] > p { color: #c9ced6; }

/* Profilo Discord nell'header (fx.js) */
.profilo { position: relative; flex: none; display: flex; align-items: center; }
.profilo-btn { display: block; padding: 0; border: 2px solid var(--line); border-radius: 50%; background: var(--card); cursor: pointer; line-height: 0; transition: border-color .15s ease, transform .15s ease; }
.profilo-btn:hover, .profilo-btn[aria-expanded="true"] { border-color: #5865f2; transform: translateY(-1px); }
.profilo-foto { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; display: block; }
.profilo-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 14px 40px rgba(0,0,0,.5); z-index: 60; display: flex; flex-direction: column; }
.profilo-menu[hidden] { display: none; }
.profilo-nome { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: flex; flex-direction: column; gap: 2px; }
.profilo-nome span { color: var(--muted); font-size: 12px; }
.profilo-nome strong { color: var(--text); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 230px; }
.profilo-menu a, .profilo-menu button { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font: 600 14px/1.2 var(--body); background: none; border: 0; cursor: pointer; }
.profilo-menu a:hover, .profilo-menu button:hover { background: var(--card); }
.profilo-menu button { color: var(--pink); }
@media (max-width: 760px) { .profilo-foto { width: 34px; height: 34px; } }
.foot-bottom .totop { margin-left: auto; }
