/* Digital Technology Lab S.r.l.s. — sito societario
   Font self-hosted (nessuna richiesta a terzi). Nessun cookie, nessun tracciamento, nessuno script. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* "Stealth" palette: graphite + silver from the logo, one violet accent */
:root {
  --bg: #0B0E13;
  --bg-2: #0F131A;
  --surface: #131821;
  --surface-2: #19202B;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #E6E8EC;
  --muted: #9AA0AA;
  --silver-1: #F1F3F6;
  --silver-2: #9AA0AA;
  --accent: #A78BFA;
  --accent-2: #7C5CE6;
  --accent-glow: rgba(124, 92, 230, .35);
  --radius: 5px;
  --measure: 68ch;
  --wrap: 1160px;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: #C4B5FD; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 5px; }
::selection { background: var(--accent-2); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent-2); color: #fff; padding: 10px 14px; z-index: 50; border-radius: 5px; }
.skip:focus { left: 16px; top: 16px; }

h1, h2, h3 { color: var(--silver-1); letter-spacing: -.025em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.1; font-weight: 750; margin: 0 0 14px; }
h3 { font-size: 1.15rem; line-height: 1.3; font-weight: 700; margin: 0 0 8px; letter-spacing: -.01em; }
p, li { max-width: var(--measure); }

/* silver gradient text, as in the logo */
.metal {
  background: linear-gradient(180deg, var(--silver-1) 30%, var(--silver-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* the gradient is clipped to the text box: extend it below the baseline so descenders (g, y, p) are not cut */
  padding-bottom: .12em;
  margin-bottom: -.12em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  background: rgba(255, 255, 255, .03);
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 1px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 14, 19, .72);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--silver-1); text-decoration: none; font-weight: 700; letter-spacing: -.01em; font-size: 1.05rem; margin-right: auto; }
.brand:hover { color: #fff; }
.brand img { width: 34px; height: 34px; flex: none; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav a { display: block; color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; padding: 7px 14px; border-radius: 5px; transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav a[aria-current="page"] { color: var(--silver-1); background: rgba(255, 255, 255, .08); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 5px;
  font-weight: 650;
  font-size: .98rem;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, background-color .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 8px 26px var(--accent-glow); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 34px var(--accent-glow); }
.btn-ghost { color: var(--text); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.btn-sm { padding: 8px 16px; font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(50% 60% at 78% 40%, rgba(124, 92, 230, .22), transparent 70%),
    radial-gradient(40% 50% at 10% 0%, rgba(154, 160, 170, .10), transparent 70%),
    var(--bg);
}
/* faint technical grid, fading out */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 80% at 60% 40%, #000 30%, transparent 80%);
  mask-image: radial-gradient(70% 80% at 60% 40%, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(56px, 7vw, 96px);
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6.2vw, 4.9rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.04em;
}
.hero .lead { margin: 26px 0 0; max-width: 50ch; font-size: clamp(1.1rem, 1.8vw, 1.28rem); line-height: 1.55; color: var(--muted); }
.hero-mark { justify-self: center; width: min(100%, 380px); aspect-ratio: 1; display: grid; place-items: center; }
.hero-mark img { width: 70%; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .6)); }

.pillars { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 34px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .93rem; }
.pillars li { display: flex; align-items: center; gap: 8px; }
.pillars svg { width: 17px; height: 17px; color: var(--accent); flex: none; }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 6vw, 80px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.08rem; }

/* service cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.card {
  position: relative;
  padding: 28px 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 18px 40px rgba(0, 0, 0, .25);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 24px 50px rgba(0, 0, 0, .35); }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  color: var(--accent);
}
.icon svg { width: 22px; height: 22px; }

/* numbered steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px; counter-reset: step; margin: 0; padding: 0; list-style: none; }
.steps li { max-width: none; padding: 26px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); counter-increment: step; }
.steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 14px;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  background: linear-gradient(180deg, var(--silver-1), rgba(154, 160, 170, .35));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.steps p { margin: 0; color: var(--muted); }

/* call to action band */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  padding: clamp(32px, 5vw, 56px);
  border-radius: 5px;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(124, 92, 230, .35), transparent 70%),
    radial-gradient(50% 120% at 0% 100%, rgba(154, 160, 170, .12), transparent 70%),
    var(--surface);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
}
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { margin: 0; color: var(--muted); }

/* ---------- Inner pages ---------- */
.page-hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(45% 120% at 85% 0%, rgba(124, 92, 230, .20), transparent 70%), var(--bg);
}
.page-hero .wrap { padding-top: clamp(44px, 6vw, 76px); padding-bottom: clamp(32px, 4vw, 52px); }
.page-hero h1 { margin: 0; font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.03; font-weight: 800; letter-spacing: -.035em; }
.page-hero p { color: var(--muted); font-size: 1.15rem; margin: 16px 0 0; max-width: 60ch; }
.page-body { padding-top: clamp(32px, 4vw, 56px); }

.panel {
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.layout-2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.stack { display: grid; gap: 20px; }

.prose h2 { font-size: 1.4rem; margin: 36px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #C9CDD4; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--silver-1); }
.note { padding: 16px 20px; margin: 0 0 28px; border-radius: 5px; background: rgba(167, 139, 250, .10); border: 1px solid var(--line); color: var(--text); max-width: none; }
.muted { color: var(--muted); }

/* founder card */
.person { display: flex; gap: 18px; align-items: flex-start; }
.avatar { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 5px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 800; letter-spacing: -.02em; }
.person h3 { margin: 2px 0 4px; }
.person p { margin: 0; color: var(--muted); }
.kicker { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 0 0 14px; }

/* contact cards */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.contact-grid .card h3 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; font-weight: 700; }
.contact-grid .card p { color: var(--text); font-size: 1.05rem; font-weight: 600; overflow-wrap: anywhere; }
.contact-grid .card a { color: var(--silver-1); text-decoration: none; }
.contact-grid .card a:hover { color: var(--accent); }

/* legal data */
dl.legal { display: grid; grid-template-columns: minmax(170px, 240px) 1fr; margin: 0; }
dl.legal dt, dl.legal dd { margin: 0; padding: 15px 16px 15px 0; border-bottom: 1px solid var(--line); }
dl.legal dt { color: var(--muted); font-weight: 600; font-size: .95rem; }
dl.legal dd { font-weight: 500; color: var(--text); }
dl.legal dt:last-of-type, dl.legal dd:last-of-type { border-bottom: 0; }

.not-found .wrap { text-align: center; padding-top: clamp(80px, 12vw, 160px); padding-bottom: clamp(40px, 6vw, 80px); }
.not-found p { margin-left: auto; margin-right: auto; }
.not-found .code404 { font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; margin: 0 0 10px; }
.not-found h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 10px; }
.not-found .actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); background: var(--bg-2); font-size: .94rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px 40px; padding-top: 56px; padding-bottom: 40px; }
.footer-grid h2 { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--silver-2); margin: 6px 0 14px; font-weight: 700; }
.footer-grid p { margin: 0 0 6px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 0 0 8px; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--silver-1); }
.footer-brand .brand { margin-bottom: 14px; color: var(--silver-1); }
.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; padding-bottom: 22px; font-size: .86rem; }
.footer-bottom p { margin: 0; }

/* Placeholder highlighting: makes unfilled data obvious before publishing */
.ph { background: rgba(250, 204, 21, .18); color: #FDE68A; padding: 0 4px; border-radius: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero-mark { width: 200px; order: -1; justify-self: start; }
  .layout-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .site-header .wrap { flex-wrap: wrap; gap: 8px 16px; padding-top: 10px; padding-bottom: 10px; }
  .header-cta { display: none; }
  .nav a { padding: 6px 11px; }
  .hero-mark { display: none; }
  dl.legal { grid-template-columns: 1fr; }
  dl.legal dt { border-bottom: 0; padding-bottom: 2px; }
  .footer-grid { grid-template-columns: 1fr; }
  .person { flex-direction: column; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  body { background: #fff; color: #000; }
  .site-header nav, .header-cta, .skip, .actions, .cta-band .btn, .hero-mark { display: none; }
  .hero, .page-hero, .card, .panel, .cta-band, .site-footer { background: none; box-shadow: none; }
  h1, h2, h3, .metal { color: #000; -webkit-text-fill-color: #000; background: none; }
  .ph { background: none; color: #000; }
}

/* ---------- Under construction page ---------- */
.uc { position: relative; overflow: hidden; display: grid; place-items: center; min-height: calc(100vh - 140px); text-align: center;
  background: radial-gradient(45% 55% at 50% 38%, rgba(124, 92, 230, .22), transparent 70%), var(--bg); }
.uc::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(55% 60% at 50% 45%, #000 25%, transparent 75%);
  mask-image: radial-gradient(55% 60% at 50% 45%, #000 25%, transparent 75%);
  pointer-events: none;
}
.uc .wrap { position: relative; padding-top: 64px; padding-bottom: 64px; }
.uc-logo { width: 120px; height: 120px; margin: 0 auto 28px; filter: drop-shadow(0 20px 36px rgba(0, 0, 0, .6)); }
.uc h1 { margin: 0; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.08; font-weight: 800; letter-spacing: -.04em; }
.uc p { margin: 20px auto 0; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.uc .actions { justify-content: center; }
.uc p.eyebrow { margin: 0 0 20px; font-size: .8rem; }
.uc-foot { border-top: 1px solid var(--line); background: var(--bg-2); color: var(--muted); font-size: .86rem; }
.uc-foot .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; padding-top: 18px; padding-bottom: 22px; text-align: center; }
.uc-foot p { margin: 0; max-width: none; }
.uc-foot a { color: var(--muted); }
.uc-foot a:hover { color: var(--silver-1); }
