/* Sito di Obskura: stessa identità dell'app (antracite profondo, ciano luminoso, esagoni, Orbitron + Exo 2). */

@font-face {
  font-family: "Exo 2 Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/exo-2-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Exo 2 Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/exo-2-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Orbitron";
  font-display: swap;
  font-weight: 700;
  src: url(fonts/orbitron-latin-700-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Orbitron";
  font-display: swap;
  font-weight: 800;
  src: url(fonts/orbitron-latin-800-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Orbitron";
  font-display: swap;
  font-weight: 900;
  src: url(fonts/orbitron-latin-900-normal.woff2) format("woff2");
}

:root {
  --bg: #0c1116;
  --bg-elev: #121920;
  --bg-sunken: #090d11;
  --bg-hover: #17222b;
  --border: #1d2a34;
  --text: #e2f1f6;
  --text-dim: #8ea6b3;
  --text-faint: #587080;
  --accent: #22d3ee;
  --accent-2: #3b8fe0;
  --accent-hover: #67e8f9;
  --accent-text: #031317;
  --accent-soft: rgba(34, 211, 238, 0.12);
  --glow: 0 0 10px rgba(34, 211, 238, 0.35);
  --glow-strong: 0 0 18px rgba(34, 211, 238, 0.55), 0 0 2px rgba(34, 211, 238, 0.9);
  --ok: #34e0a1;
  --warn: #f2b33d;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  --radius: 12px;
  --font: "Exo 2 Variable", "Exo 2", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif, "PingFang SC", "Hiragino Sans", "Microsoft YaHei", "Yu Gothic UI", "Noto Sans CJK SC", "Noto Sans CJK JP", "Segoe UI", "Noto Sans Arabic", sans-serif;
  --display: "Orbitron", "Exo 2 Variable", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0 56 16.2v32.4L28 64.8 0 48.6V16.2zM28 64.8 56 81v32.4M28 64.8 0 81v32.4' fill='none' stroke='rgba(34,211,238,0.05)' stroke-width='1'/%3E%3C/svg%3E");
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--bg) var(--hex);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
}

.wrap {
  width: min(1160px, 100% - 32px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  top: -999px;
  inset-inline-start: 16px;
}
.skip:focus {
  top: 16px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-text);
  padding: 8px 12px;
  border-radius: 8px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ------------------------------------------------------------ intestazione */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 14, 18, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(34, 211, 238, 0.12);
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.35);
}

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.6);
  line-height: 1;
}

.brand .wordmark {
  font-size: 18px;
}

.payoff {
  font-size: 9px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 4px;
}

.nav {
  display: flex;
  gap: 22px;
  margin-inline-start: auto;
  font-size: 15px;
}

.nav a {
  color: var(--text-dim);
}
.nav a:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  margin-inline-start: auto;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 6px 10px;
  font: inherit;
}

/* ------------------------------------------------------------ pulsanti */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 15.5px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: var(--accent-text);
  box-shadow: var(--glow);
}

.btn.primary:hover {
  box-shadow: var(--glow-strong);
  color: var(--accent-text);
}

.btn.small {
  padding: 7px 14px;
  font-size: 14px;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ------------------------------------------------------------ hero */

.hero {
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.16), transparent 65%);
  pointer-events: none;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-top: 12px;
}

h1 .glow {
  color: var(--accent);
  text-shadow: 0 0 22px rgba(34, 211, 238, 0.45);
}

h2 {
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: 1.5px;
}

h3 {
  font-size: 20px;
  font-weight: 700;
}

.lead {
  font-size: 19px;
  color: var(--text-dim);
  max-width: 600px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 18px;
}

.small-print {
  font-size: 13.5px;
  color: var(--text-faint);
}

.hero-art {
  position: relative;
  justify-self: center;
}

.hero-art img {
  width: auto;
  border-radius: 18px;
  box-shadow: var(--shadow), 0 0 40px rgba(34, 211, 238, 0.18);
  border: 1px solid rgba(34, 211, 238, 0.25);
  max-height: 520px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.badge {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  background: var(--accent-soft);
  color: var(--accent);
}

/* ------------------------------------------------------------ sezioni */

section {
  padding: 72px 0;
}

section.alt {
  background: rgba(9, 13, 17, 0.7);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-head p {
  color: var(--text-dim);
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
}

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: rgba(34, 211, 238, 0.45);
  transform: translateY(-2px);
}

.card p {
  color: var(--text-dim);
  margin: 0;
  font-size: 15.5px;
}

.icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: var(--accent);
  background: var(--accent-soft);
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
}

.icon svg {
  width: 22px;
  height: 22px;
}

/* schermate */

.shot {
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--bg-sunken);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split + .split {
  margin-top: 72px;
}

.split.reverse > :first-child {
  order: 2;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.checks li {
  padding-inline-start: 30px;
  position: relative;
  margin-bottom: 10px;
  color: var(--text-dim);
}

.checks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 2px;
  top: 7px;
  width: 16px;
  height: 16px;
  background: var(--accent);
  clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 18%, 86% 4%, 38% 72%);
}

.checks b {
  color: var(--text);
}

/* tabella crittografia */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
}

th,
td {
  padding: 13px 18px;
  text-align: start;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

tr:last-child td {
  border-bottom: none;
}

th {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-faint);
  background: var(--bg-sunken);
}

td:first-child {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

td {
  color: var(--text-dim);
}

/* importazione */

.logos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.logos span {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  font-weight: 600;
}

/* download */

.downloads {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.dl {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dl.current {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--glow);
}

.dl .os {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dl .os svg {
  width: 30px;
  height: 30px;
  color: var(--accent);
}

.dl .os h3 {
  margin: 0;
}

.dl .tag {
  margin-inline-start: auto;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent);
  border-radius: 999px;
  padding: 2px 8px;
  display: none;
}

.dl.current .tag {
  display: inline;
}

.dl .links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.dl .links .btn {
  justify-content: space-between;
}

.dl .links small {
  color: inherit;
  opacity: 0.75;
  font-weight: 500;
}

.dl-count {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
}

.dl-count[hidden] {
  display: none;
}

.dl-count b {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.notice {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(242, 179, 61, 0.35);
  background: rgba(242, 179, 61, 0.07);
  color: var(--text-dim);
  font-size: 15px;
}

.notice b {
  color: var(--warn);
}

/* FAQ */

details {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 20px;
  margin-bottom: 10px;
}

details[open] {
  border-color: rgba(34, 211, 238, 0.4);
}

summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  color: var(--accent);
  font-family: var(--display);
}

details[open] summary::after {
  content: "–";
}

details p {
  color: var(--text-dim);
  margin: 0 0 16px;
}

/* ------------------------------------------------------------ pagine di testo (privacy, cookie, note legali) */

.doc {
  max-width: 820px;
  padding: 56px 0 80px;
}

.doc h1 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 1px;
}

.doc h2 {
  font-size: 20px;
  margin-top: 36px;
}

.doc p,
.doc li {
  color: var(--text-dim);
}

.doc .updated {
  color: var(--text-faint);
  font-size: 14px;
}

.placeholder {
  background: rgba(242, 179, 61, 0.14);
  color: var(--warn);
  border-radius: 4px;
  padding: 0 4px;
}

/* ------------------------------------------------------------ guide */

.doc.wide {
  max-width: 1100px;
}

.doc .lead {
  max-width: none;
  margin-bottom: 28px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.guide-card h3 {
  margin: 0;
}

.guide-card .more {
  margin-top: auto;
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
}

.crumbs {
  font-size: 14px;
  color: var(--text-faint);
  margin-bottom: 8px;
}

.crumbs a {
  color: var(--text-dim);
}

.guide .table-wrap {
  margin: 18px 0;
}

.guide td:first-child {
  font-weight: 600;
  color: var(--text);
}

.guide ol.steps {
  padding-inline-start: 22px;
}

.guide ol.steps li,
.guide ul li {
  margin: 6px 0;
}

.guide-cta {
  margin: 40px 0 10px;
  border-color: rgba(34, 211, 238, 0.45);
}

.guide-cta h3 {
  margin-top: 0;
}

.guide-cta p + p {
  margin-top: 14px;
}

/* ------------------------------------------------------------ modulo di contatto */

.contact {
  display: grid;
  gap: 18px;
  margin: 28px 0;
}

.contact label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.contact label[hidden],
.contact .hp {
  display: none;
}

.contact input,
.contact select,
.contact textarea {
  font: inherit;
  font-weight: 400;
  color: var(--text);
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  width: 100%;
  box-sizing: border-box;
}

.contact textarea {
  resize: vertical;
}

.contact input:focus,
.contact select:focus,
.contact textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.contact input[type="file"] {
  padding: 8px;
}

.contact small {
  font-weight: 400;
  color: var(--text-faint);
}

.contact .small-print {
  margin: 0;
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-status.ok {
  color: var(--ok);
}

.contact-status.err {
  color: var(--warn);
}

/* ------------------------------------------------------------ piè di pagina */

footer {
  border-top: 1px solid var(--border);
  background: var(--bg-sunken);
  padding: 40px 0;
  font-size: 14.5px;
  color: var(--text-faint);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

footer a,
footer button.link {
  color: var(--text-dim);
}

button.link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

button.link:hover {
  color: var(--accent);
}

/* ------------------------------------------------------------ banner e preferenze cookie */

.cookie-banner {
  position: fixed;
  inset: auto 16px 16px 16px;
  z-index: 50;
  max-width: 720px;
  margin-inline: auto;
  background: var(--bg-elev);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 14px;
  box-shadow: var(--shadow), var(--glow);
  padding: 18px 20px;
  font-size: 15px;
}

.cookie-banner p {
  margin: 0 0 14px;
  color: var(--text-dim);
}

.cookie-banner .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-banner[hidden],
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(3, 6, 9, 0.7);
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal .box {
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.modal h2 {
  font-size: 20px;
}

.pref {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.pref:last-of-type {
  border-bottom: none;
}

.pref p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--text-dim);
}

.pref input {
  margin-top: 5px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.modal .actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

/* ------------------------------------------------------------ schermi piccoli */

@media (max-width: 900px) {
  .hero .wrap,
  .split {
    grid-template-columns: 1fr;
  }
  .split.reverse > :first-child {
    order: 0;
  }
  .hero-art img {
    max-height: 380px;
  }
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 14, 18, 0.97);
    border-bottom: 1px solid var(--border);
  }
  .nav a {
    padding: 14px 16px;
    border-top: 1px solid var(--border);
  }
  .nav.open {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .top .btn.small {
    display: none;
  }
  section {
    padding: 56px 0;
  }
}

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

/* ------------------------------------------------------------ lingue */
.lang-select {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 8px;
  font: inherit;
  font-size: 14px;
}
.lang-select option {
  background: #0d1218;
  color: #e6edf3;
}
.manuals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.manuals .btn.current {
  border-color: var(--accent);
}
.dl-extra {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 26px;
}
html[lang="zh"],
html[lang="ja"],
html[lang="ar"],
html[lang="ru"] {
  --display: var(--font);
}
html[lang="ar"] {
  --font: "Segoe UI", "Geeza Pro", "SF Arabic", "Noto Sans Arabic", Tahoma, sans-serif;
}
[dir="rtl"] code,
[dir="rtl"] .badge,
[dir="rtl"] .wordmark {
  direction: ltr;
  unicode-bidi: isolate;
}

.wordmark {
  font-family: "Orbitron", "Exo 2 Variable", sans-serif;
}
