/* PASA Media — one page statica. Nessuna risorsa esterna: i font sono ospitati in locale. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #0b0e13;
  --bg-alt: #0f131a;
  --surface: #131922;
  --surface-2: #19202b;
  --border: #232b37;
  --border-strong: #2f3947;
  --text: #e6edf3;
  --muted: #8d98a7;
  --red: #c8232c;
  --orange: #ef6a2e;
  --accent: #f07a45;
  --grad: linear-gradient(120deg, var(--red), var(--orange));
  --green: #7ee787;
  --blue: #79c0ff;
  --string: #a5d6ff;
  --keyword: #ff7b72;
  --radius: 12px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1120px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); font-size: .88em; }
code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: .1em .4em; color: var(--text); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 28px; } }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 14, 19, .78);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 500 17px var(--mono); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand b { font-weight: 500; color: var(--muted); }
.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; font: 14px var(--mono); }
.nav__links a { display: block; padding: 6px 10px; color: var(--muted); border-radius: 6px; }
.nav__links a:hover { color: var(--text); text-decoration: none; background: var(--surface); }
.nav__links .nav__cta { color: var(--text); border: 1px solid var(--border-strong); }
.nav__links .nav__cta:hover { border-color: var(--orange); background: transparent; }
@media (max-width: 640px) { .nav__links li:not(:last-child) { display: none; } }

/* ---------- shared ---------- */
.eyebrow, .label { font: 13px/1.5 var(--mono); color: var(--muted); margin: 0 0 18px; }
.label { display: inline-flex; gap: 10px; align-items: center; color: var(--accent); }
.label span { color: var(--muted); }
.label span::after { content: " ·"; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px; border-radius: 8px;
  font: 500 15px/1 var(--sans); cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 6px 24px -8px rgba(239, 106, 46, .55); }
.btn--ghost { color: var(--text); border-color: var(--border-strong); background: var(--surface); }
.btn--ghost:hover { border-color: var(--muted); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.ico { width: 18px; height: 18px; fill: currentColor; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section__head { max-width: 640px; margin-bottom: 48px; }
.section h2 { font-size: clamp(30px, 4.2vw, 44px); font-weight: 650; margin-bottom: 14px; }
.section__lead { color: var(--muted); font-size: 18px; }
@media (max-width: 640px) { .section { padding: 72px 0; } }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 88px 0 104px;
  background:
    radial-gradient(600px 380px at 85% 20%, rgba(239, 106, 46, .14), transparent 70%),
    radial-gradient(500px 360px at 10% 90%, rgba(200, 35, 44, .10), transparent 70%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .35;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.hero h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 700; letter-spacing: -0.035em; margin-bottom: 24px; }
.lead { font-size: 19px; color: var(--muted); max-width: 560px; }

.term {
  background: #0d1117; border: 1px solid var(--border-strong); border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .02) inset;
  overflow: hidden; min-width: 0;
}
.term__bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--surface); }
.term__bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.term__bar i:nth-child(1) { background: #ff5f57; }
.term__bar i:nth-child(2) { background: #febc2e; }
.term__bar i:nth-child(3) { background: #28c840; }
.term__bar span { margin-left: 10px; font: 12px var(--mono); color: var(--muted); }
.term__body {
  margin: 0; padding: 20px 22px 24px; min-height: 236px;
  font: 13.5px/1.85 var(--mono); color: var(--text);
  white-space: pre-wrap; word-break: break-word;
}
.term__body .p { color: var(--green); font-weight: 500; }
.term__body .o { color: var(--muted); }
.term__body em { font-style: normal; color: var(--accent); }
.term__body .ok { color: var(--blue); }
.caret { display: inline-block; width: 8px; height: 1.1em; margin-left: 4px; vertical-align: -3px; background: var(--orange); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } }

/* ---------- media (duotone images) ---------- */
.media { position: relative; margin: 0; overflow: hidden; background: #1a0f0d; }
.media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(.62); transition: filter .5s ease, transform .6s ease; }
.media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(160deg, rgba(239, 106, 46, .55), rgba(200, 35, 44, .35) 60%, rgba(11, 14, 19, .2));
  mix-blend-mode: color; transition: opacity .5s ease;
}

/* ---------- services ---------- */
.cards { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.card:hover .media img { filter: grayscale(.15) contrast(1.02) brightness(.9); transform: scale(1.03); }
.card:hover .media::after { opacity: .35; }
.card .media { aspect-ratio: 16 / 9; border-bottom: 1px solid var(--border); }
.card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; margin-bottom: 18px; }
.tags { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font: 12px var(--mono); color: var(--muted); padding: 3px 8px; border: 1px solid var(--border); border-radius: 999px; }
.tags li::before { content: "#"; color: var(--accent); }

.card--cta {
  justify-content: space-between; gap: 28px; padding: 26px;
  background:
    radial-gradient(420px 260px at 100% 0%, rgba(239, 106, 46, .16), transparent 70%),
    var(--surface);
  color: var(--text); min-height: 220px;
}
.card--cta:hover { text-decoration: none; border-color: var(--orange); }
.card--cta__code { font: 15px/1.7 var(--mono); color: var(--blue); }
.card--cta__text { font-size: 18px; font-weight: 500; }
.card--cta__text span { color: var(--accent); }

/* ---------- band ---------- */
.band { position: relative; overflow: hidden; padding: 120px 0; isolation: isolate; border-block: 1px solid var(--border); }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: brightness(.45) saturate(.9); }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 14, 19, .92) 0%, rgba(11, 14, 19, .55) 60%, rgba(11, 14, 19, .2) 100%); }
.band h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 650; margin-bottom: 12px; }
.band p { color: #c3ccd7; font-size: 18px; max-width: 560px; margin-bottom: 28px; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
@media (min-width: 900px) { .about { grid-template-columns: 380px minmax(0, 1fr); gap: 72px; } }
.about__photo { position: relative; margin: 0; max-width: min(380px, calc(100% - 14px)); }
.about__photo img { border-radius: var(--radius); border: 1px solid var(--border-strong); filter: grayscale(.25) contrast(1.05); }
.about__photo::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--orange); border-radius: var(--radius); opacity: .5; z-index: -1; }
.about__photo figcaption { position: absolute; left: 14px; bottom: 14px; font: 13px var(--mono); background: rgba(11, 14, 19, .82); border: 1px solid var(--border-strong); padding: 5px 10px; border-radius: 6px; color: var(--accent); }
.about__copy > p { color: var(--muted); }
.code {
  margin: 26px 0 0; padding: 18px 20px; overflow-x: auto;
  background: #0d1117; border: 1px solid var(--border); border-radius: 10px;
  font: 13.5px/1.75 var(--mono); color: var(--text);
}
@media (max-width: 480px) { .code, .term__body { font-size: 12px; padding-inline: 16px; } }
.code .k { color: var(--keyword); }
.code .s { color: var(--string); }
.code .f { color: #d2a8ff; }
.card--cta__code .k { color: var(--keyword); }

/* ---------- support ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { position: relative; padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); counter-increment: step; }
.steps li::before { content: "0" counter(step); display: block; font: 13px var(--mono); color: var(--accent); margin-bottom: 14px; }
.steps h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15.5px; margin: 0; }
.notice { margin: 24px 0 0; padding: 16px 20px; border: 1px solid rgba(239, 106, 46, .35); border-left: 3px solid var(--orange); border-radius: 8px; background: rgba(239, 106, 46, .06); color: var(--muted); font-size: 15.5px; }
.notice b { color: var(--text); font-weight: 600; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
@media (min-width: 960px) { .contact { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 72px; } }
.channels { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 12px; }
.channels a {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font: 15px var(--mono); transition: border-color .2s ease;
  overflow-wrap: anywhere;
}
.channels a:hover { text-decoration: none; border-color: var(--orange); }
.channels .ico { width: 22px; height: 22px; color: var(--muted); }
.channels a:hover .ico { color: var(--accent); }
.channels small { display: block; font-size: 12px; color: var(--muted); }

.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: grid; gap: 18px; align-content: start; }
@media (max-width: 480px) { .form { padding: 20px; } }
.form__row { display: grid; gap: 18px; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 7px; min-width: 0; }
.field > span { font: 13px var(--mono); color: var(--muted); }
.field em { font-style: normal; opacity: .7; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--border-strong); color: var(--text);
  font: 16px/1.4 var(--sans); transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(239, 106, 46, .18); }
.field input::placeholder { color: #566170; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--keyword); }
.field[hidden] { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__privacy { font-size: 14px; color: var(--muted); margin: 0; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form__status { margin: 0; font: 14px var(--mono); color: var(--muted); }
.form__status.is-ok { color: var(--green); }
.form__status.is-error { color: var(--keyword); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 36px 0 44px; font-size: 14px; color: var(--muted); }
.footer__inner { display: grid; gap: 6px; }
@media (min-width: 900px) { .footer__inner { grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; } }
.footer p { margin: 0; }
.footer__brand { display: flex; align-items: center; gap: 8px; color: var(--text); }
.footer__links a { color: var(--text); }

/* ---------- legal / simple pages ---------- */
.legal { padding: 72px 0 96px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(32px, 5vw, 46px); font-weight: 700; margin-bottom: 12px; }
.legal .meta { font: 13px var(--mono); color: var(--muted); margin-bottom: 40px; }
.legal h2 { font-size: 21px; font-weight: 600; margin: 44px 0 14px; padding-top: 4px; }
.legal h2::before { content: "## "; font-family: var(--mono); color: var(--accent); font-weight: 500; }
.legal p, .legal li { color: #c3ccd7; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: .4em; }
.legal li::marker { color: var(--accent); }
.legal .box { padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; margin: 0 0 1em; }
.legal .box p { margin: 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); color: #c3ccd7; }
.legal th { font: 500 13px var(--mono); color: var(--muted); }
@media (max-width: 560px) {
  .legal table, .legal tbody, .legal tr, .legal td { display: block; }
  .legal thead { display: none; }
  .legal tr { padding: 10px 0; border-bottom: 1px solid var(--border); }
  .legal td { border: 0; padding: 4px 0; }
  .legal td:first-child { color: var(--text); font-weight: 600; }
}

.notfound { min-height: 70vh; display: grid; place-items: center; padding: 72px 0; }
.notfound .term { max-width: 620px; margin: 0 auto 32px; }
.notfound .term__body { min-height: 0; }
.notfound .center { text-align: center; }
