/* Sito pubblico di CyberMafia: palette e caratteri dell'app (apps/mobile/lib/core/theme/tokens.dart). */
@font-face { font-family: "Chakra Petch"; src: url("fonts/ChakraPetch-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/IBMPlexSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/IBMPlexSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #05080b;
  --void: #020305;
  --panel: #0a1014;
  --panel-2: #11181d;
  --border: #2d383c;
  --hairline: #19232a;
  --text: #ecf0e8;
  --muted: #a2aea6;
  --faint: #68756f;
  --acid: #c6f432;
  --on-acid: #0a0d11;
  --cyan: #36e6ff;
  --magenta: #ff3fb4;
  --gold: #ffd36b;
  --display: "Chakra Petch", "Arial Narrow", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: var(--acid); }
:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }
::selection { background: var(--magenta); color: var(--on-acid); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 12px; z-index: 10; background: var(--acid); color: var(--on-acid); padding: 8px 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Intestazione */
.top {
  position: sticky; top: 0; z-index: 5;
  background: rgba(5, 8, 11, 0.86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 19px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand:hover { color: var(--acid); }
.nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 24px); font: 500 13px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--acid); }
.nav .lang { border: 1px solid var(--border); padding: 6px 8px; border-radius: 4px; }
@media (max-width: 560px) { .nav .hide-sm { display: none; } }
@media (max-width: 420px) {
  .top .wrap { gap: 10px; }
  .brand { font-size: 16px; gap: 8px; letter-spacing: 0.04em; }
  .brand img { width: 28px; height: 28px; }
  .nav { gap: 12px; font-size: 12px; letter-spacing: 0.04em; }
}
@media (max-width: 340px) { .brand span { display: none; } }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--hairline); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("img/robbery-40.jpg") center 35% / cover no-repeat;
  opacity: 0.55;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 8, 11, 0.35) 0%, rgba(5, 8, 11, 0.7) 55%, var(--bg) 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px);
}
.hero .wrap { padding-top: clamp(72px, 14vw, 160px); padding-bottom: clamp(56px, 10vw, 120px); }
.eyebrow { font: 500 13px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--acid); margin: 0 0 18px; }
.eyebrow::before { content: "// "; color: var(--faint); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: 0.01em; }
.hero h1 { font-size: clamp(44px, 9vw, 96px); text-transform: uppercase; max-width: 12ch; }
.hero h1 span { color: var(--magenta); }
.lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); max-width: 40ch; margin: 22px 0 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px;
  font: 700 15px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--border); color: var(--text); background: var(--panel); border-radius: 4px;
}
.btn:hover { border-color: var(--acid); color: var(--acid); }
.btn.primary { background: var(--acid); border-color: var(--acid); color: var(--on-acid); }
.btn.primary:hover { background: var(--text); border-color: var(--text); color: var(--on-acid); }
.btn .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.note { font: 500 12px/1.5 var(--mono); color: var(--faint); letter-spacing: 0.06em; text-transform: uppercase; }

/* Sezioni */
section { padding: clamp(56px, 9vw, 104px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(30px, 5vw, 48px); text-transform: uppercase; }
.section-head p { color: var(--muted); margin: 16px 0 0; }

.loop { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
.loop article { background: var(--panel); padding: 28px 24px 30px; }
.loop .num { font: 500 12px/1 var(--mono); color: var(--faint); letter-spacing: 0.1em; }
.loop h3 { font-size: 22px; text-transform: uppercase; margin: 14px 0 10px; }
.loop p { color: var(--muted); margin: 0; font-size: 16px; }
.loop article:nth-child(4n+1) h3 { color: var(--acid); }
.loop article:nth-child(4n+2) h3 { color: var(--cyan); }
.loop article:nth-child(4n+3) h3 { color: var(--magenta); }
.loop article:nth-child(4n+4) h3 { color: var(--gold); }

.feature { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.feature + .feature { margin-top: clamp(48px, 8vw, 96px); }
@media (min-width: 820px) {
  .feature { grid-template-columns: 1.15fr 1fr; }
  .feature.flip figure { order: 2; }
}
.feature figure { margin: 0; border: 1px solid var(--border); background: var(--void); position: relative; }
.feature figure::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(54, 230, 255, 0.08); pointer-events: none; }
.feature img { width: 100%; aspect-ratio: 1200 / 690; object-fit: cover; }
.feature h3 { font-size: clamp(26px, 3.6vw, 36px); text-transform: uppercase; }
.feature p { color: var(--muted); margin: 14px 0 0; }
.feature ul { margin: 18px 0 0; padding: 0; list-style: none; }
.feature li { padding: 10px 0 10px 22px; border-top: 1px solid var(--hairline); position: relative; color: var(--text); font-size: 16px; }
.feature li::before { content: ""; position: absolute; left: 0; top: 19px; width: 8px; height: 8px; background: var(--acid); }

.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.pillars div { border: 1px solid var(--hairline); border-left: 3px solid var(--cyan); background: var(--panel); padding: 20px 22px; }
.pillars strong { display: block; font: 700 17px/1.3 var(--display); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.pillars span { color: var(--muted); font-size: 15px; }

.closing { text-align: center; border-top: 1px solid var(--hairline); background: radial-gradient(ellipse at 50% 0%, rgba(255, 63, 180, 0.12), transparent 60%); }
.closing img { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 24px; box-shadow: 0 0 0 1px var(--border), 0 20px 60px rgba(255, 63, 180, 0.18); }
.closing h2 { font-size: clamp(30px, 5vw, 48px); text-transform: uppercase; }
.closing p { color: var(--muted); max-width: 46ch; margin: 16px auto 28px; }
.closing .cta { justify-content: center; }

/* Pagine legali */
.doc { padding: clamp(40px, 7vw, 80px) 0 clamp(56px, 9vw, 104px); }
.doc .wrap { max-width: 800px; }
.doc h1 { font-size: clamp(34px, 6vw, 56px); text-transform: uppercase; }
.doc .updated { font: 500 13px/1.5 var(--mono); color: var(--faint); margin: 14px 0 32px; letter-spacing: 0.04em; }
.doc h2 { font-size: clamp(21px, 3vw, 26px); margin: 44px 0 12px; padding-top: 20px; border-top: 1px solid var(--hairline); text-transform: uppercase; letter-spacing: 0.03em; }
.doc h3 { font-size: 18px; margin: 26px 0 8px; color: var(--cyan); letter-spacing: 0.03em; }
.doc p, .doc li { color: #d3d9d2; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--acid); }
.doc strong { color: var(--text); }
.doc .summary { background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--acid); padding: 18px 22px; margin: 0 0 8px; }
.doc .summary p { margin: 0; }
.doc .summary ul { margin: 10px 0 0; }
.doc .toc { font: 500 14px/1.6 var(--mono); columns: 2 240px; padding: 0; list-style: none; margin: 24px 0 0; }
.doc .toc li { margin: 2px 0; }
.doc .toc a { color: var(--muted); text-decoration: none; }
.doc .toc a:hover { color: var(--acid); }
.table-scroll { overflow-x: auto; margin: 16px 0; border: 1px solid var(--border); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--hairline); }
.doc th { font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); background: var(--panel); }
.doc td { color: #d3d9d2; }
.doc address { font-style: normal; }

/* Piede */
.foot { border-top: 1px solid var(--hairline); background: var(--void); padding: 36px 0 44px; font-size: 14px; color: var(--faint); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font: 500 13px/1.6 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--acid); }
.foot p { margin: 0; }

.notfound { min-height: 60vh; display: flex; align-items: center; }
.notfound h1 { font-size: clamp(56px, 12vw, 120px); color: var(--magenta); }
.notfound p { color: var(--muted); }

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