/* Tema Noxfield: notte viola, cromo e oro, ripresi dal logo. */
:root {
  --bg: #07050d; --surface: #110b1f; --field-bg: #0b0716; --line: #2c2048; --header-bg: rgba(7, 5, 13, .8);
  --text: #efeaf8; --muted: #a298bd;
  --accent: #b794ff; --accent-strong: #8b5cf6; --accent-soft: rgba(139, 92, 246, .16); --accent-ink: #ffffff;
  --violet: #7c3aed; --gold: #e8c46a;
  --danger: #ff6b6b; --ok: #6fd39a;
  --font-display: "Exo 2", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --display-weight: 700; --radius: 6px;
}
body { background: var(--bg) radial-gradient(ellipse 70rem 34rem at 78% -8rem, rgba(124, 58, 237, .26), transparent 70%) no-repeat; }
h1, h2, h3 { font-style: italic; letter-spacing: -.005em; }
.site-header { border-bottom-color: rgba(139, 92, 246, .28); }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 1.15rem; }
.brand img { width: 2.6rem; height: 2.6rem; filter: drop-shadow(0 0 10px rgba(139, 92, 246, .7)); }
.btn { border-color: var(--accent-strong); }
.btn.primary { background: var(--violet); border-color: var(--violet); color: #fff; box-shadow: 0 0 22px rgba(124, 58, 237, .45); }
.btn.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.topics dt { color: var(--gold); font-style: italic; }
.steps li::before, .rules ol li::before, .rules h2::before { color: var(--gold); font-style: italic; }
.notice { border-left-color: var(--accent-strong); }
.tab[aria-selected="true"] { background: var(--accent-soft); }
.band { border-top-color: rgba(139, 92, 246, .2); }

/* Hero */
.hero { padding: 4.5rem 0 5.5rem; position: relative; overflow: hidden; touch-action: pan-y; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.3rem); font-weight: 800; line-height: 1.04; margin-bottom: 1.5rem; max-width: 15ch;
  background: linear-gradient(180deg, #ffffff 10%, #d9c8ff 55%, #9f7bff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 1.18rem; max-width: 52ch; color: var(--muted); }
.hero-logo { display: block; width: min(100%, 30rem); height: auto; margin: 0 auto; filter: drop-shadow(0 0 42px rgba(139, 92, 246, .55)); }

/* Rilevatore EMF: una riga sotto i pulsanti */
.emf { display: inline-grid; grid-template-columns: auto 1fr; gap: 0 1.1rem; align-items: center; margin-top: 2.25rem; border: 1px solid var(--line); background: rgba(17, 11, 31, .75); padding: .7rem 1rem; border-radius: var(--radius); max-width: 100%; }
.emf-name { display: none; }
.emf-leds { list-style: none; margin: 0; padding: 0; display: flex; gap: .4rem; }
.emf-leds li { width: 1.5rem; height: .9rem; border-radius: 3px; background: #1b1330; border: 1px solid var(--line); transition: background .15s, box-shadow .15s; }
.emf-leds li.on:nth-child(1), .emf-leds li.on:nth-child(2) { background: #6fd39a; box-shadow: 0 0 14px #6fd39a; }
.emf-leds li.on:nth-child(3) { background: #e8c46a; box-shadow: 0 0 14px #e8c46a; }
.emf-leds li.on:nth-child(4) { background: #f59a3c; box-shadow: 0 0 16px #f59a3c; }
.emf-leds li.on:nth-child(5) { background: #ff4d5a; box-shadow: 0 0 22px #ff4d5a; }
.emf-read { font-size: .9rem; line-height: 1.35; color: var(--accent); margin: 0; }
.presence #hero-title { animation: flicker 1.4s steps(1) 1; }
.presence .hero-logo { filter: drop-shadow(0 0 60px rgba(255, 77, 90, .6)); }
@keyframes flicker { 0%, 100% { opacity: 1; } 8% { opacity: .15; } 14% { opacity: 1; } 22% { opacity: .35; transform: translateX(2px); } 28% { opacity: 1; transform: none; } 55% { opacity: .2; } 60% { opacity: 1; } }
@media (max-width: 860px) {
  .hero { padding: 2.5rem 0 3.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-art { order: -1; }
  .hero-logo { width: min(70%, 17rem); }
}
