/* Vektora Labs - stile comune del sito */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("fonts/inter-700.woff2") format("woff2"); }

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --text-2: #5f6368;
  --line: #e3e3e8;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #eef0ff;
  --teal: #0e8a8f;
  --nav-bg: rgba(255, 255, 255, 0.78);
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 28px rgba(0, 0, 0, .06);
  --radius: 22px;
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --bg-alt: #111113;
    --surface: #1a1a1d;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --line: #2c2c31;
    --accent: #8b8bff;
    --accent-hover: #a5a5ff;
    --accent-soft: #1e1e3a;
    --teal: #3cc4c9;
    --nav-bg: rgba(18, 18, 20, 0.72);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 28px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Navigazione */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 400; font-size: 18px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; box-shadow: 0 2px 8px rgba(10, 13, 28, .25); }
.brand b { font-weight: 700; }
.brand span { white-space: nowrap; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--text-2); font-size: 14px; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* Tipografia */
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.1; font-weight: 700; }
h1 { font-size: clamp(40px, 7vw, 76px); }
h2 { font-size: clamp(30px, 4.5vw, 48px); }
h3 { font-size: 22px; letter-spacing: -0.015em; line-height: 1.25; font-weight: 600; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: 0.02em; margin: 0 0 14px; }
.lead { font-size: clamp(19px, 2.2vw, 24px); color: var(--text-2); line-height: 1.45; margin: 22px 0 0; max-width: 40ch; }
.gradient-text {
  background: linear-gradient(90deg, var(--accent), var(--teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Sezioni */
section { padding: 96px 0; }
.alt { background: var(--bg-alt); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.hero { padding: 120px 0 100px; }
.section-head { margin-bottom: 56px; }

/* Pulsanti */
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.center .actions { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px;
  font-size: 16px; font-weight: 500; border: 1px solid transparent;
  background: var(--accent); color: #fff; cursor: pointer; font-family: inherit;
  transition: background .2s;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); }
.link-arrow { font-weight: 500; }
.link-arrow::after { content: " ›"; }

/* Griglie e card */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border-radius: var(--radius); padding: 36px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.alt .card { border-color: transparent; }
.card p { color: var(--text-2); margin: 12px 0 0; }
.app-icon { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 24px; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.tag {
  display: inline-block; font-size: 13px; font-weight: 600; padding: 4px 11px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 14px;
}
.tag.soon { background: var(--bg-alt); color: var(--text-2); }
.product-card { display: flex; flex-direction: column; }
.product-card .tag { align-self: flex-start; }
.product-card .actions { margin-top: auto; padding-top: 28px; }

.feature .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 18px;
}
.feature .ico svg { width: 22px; height: 22px; }
.feature p { color: var(--text-2); margin: 10px 0 0; }

/* Pagina prodotti */
.product { padding: 96px 0; border-top: 1px solid var(--line); }
.product:first-of-type { border-top: 0; }
.product-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.product-head .meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; color: var(--text-2); font-size: 15px; }
.specs { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 28px; }
.specs li h3 { font-size: 17px; margin-bottom: 6px; }
.specs li p { margin: 0; color: var(--text-2); font-size: 15px; }
.specs-2 { margin: 0; grid-template-columns: 1fr 1fr; }
.version { font-size: 14px; color: var(--text-2); margin-top: 14px; }

/* Finte schermate (illustrazioni in CSS) */
.mock {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  overflow: hidden;
}
.mock-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-body { padding: 18px; display: grid; gap: 6px; }
.tt { grid-template-columns: 34px repeat(5, 1fr); }
.tt span { height: 30px; border-radius: 7px; background: var(--bg-alt); }
.tt span.h { background: transparent; font-size: 11px; color: var(--text-2); display: grid; place-items: center; height: auto; }
.c1 { background: #0e8a8f !important; } .c2 { background: #efb03f !important; } .c3 { background: #e85d4a !important; }
.c4 { background: #5f63c4 !important; } .c5 { background: #4aa66a !important; } .c6 { background: #4f46e5 !important; opacity: .85; }
.cal { grid-template-columns: 110px repeat(4, 1fr); }
.cal span { height: 30px; border-radius: 7px; background: var(--bg-alt); }
.cal span.r { background: transparent; font-size: 12px; color: var(--text-2); display: flex; align-items: center; height: auto; }
.cal span.ok { background: #4f46e5; }
.cal span.wait { background: repeating-linear-gradient(45deg, #efb03f, #efb03f 6px, #f5c56b 6px, #f5c56b 12px); }
.cal span.ko { background: #e85d4a; }

/* Aree della home (Scuola / Forense) */
.area {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 420px; padding: 40px; border-radius: 28px; overflow: hidden; color: #fff;
  box-shadow: var(--shadow);
}
.area:hover { text-decoration: none; }
.area:hover .link-arrow { text-decoration: underline; }
.area h2 { color: #fff; }
.area p { color: rgba(255,255,255,.82); margin: 14px 0 0; max-width: 38ch; }
.area .link-arrow { color: #fff; margin-top: 26px; }
.area .icons { display: flex; gap: 14px; margin-bottom: auto; padding-bottom: 40px; }
.area .icons img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.area-scuola { background: linear-gradient(140deg, #4f46e5 0%, #2563eb 55%, #0e8a8f 100%); }
.area-forense { background: radial-gradient(120% 90% at 80% 0%, #1e3a8a 0%, #0b1226 55%, #05070f 100%); }

/* Screenshot dei programmi */
.shot {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface);
  box-shadow: 0 2px 6px rgba(0,0,0,.05), 0 24px 60px rgba(0,0,0,.12);
}
.shot img { width: 100%; height: auto; }
.shot-hero { margin-top: 56px; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 22px; }
figure { margin: 0; }
figcaption { font-size: 14px; color: var(--text-2); margin-top: 12px; text-align: center; }
.phone-row { display: grid; grid-template-columns: 1fr 280px; gap: 48px; align-items: center; margin-top: 64px; }
.phone { border-radius: 36px; overflow: hidden; border: 8px solid #111; box-shadow: 0 24px 60px rgba(0,0,0,.18); }
.phone img { width: 100%; }

/* Pagina forense: fascia scura */
.dark-band { background: #05070f; color: #f5f5f7; }
.dark-band .lead, .dark-band .specs li p { color: #a1a1a6; }
.dark-band .tag { background: rgba(96,165,250,.15); color: #93c5fd; }
.dark-band .btn.ghost { color: #93c5fd; border-color: #93c5fd; }
.dark-band .btn.ghost:hover { background: rgba(96,165,250,.12); }
.dark-band figcaption { color: #a1a1a6; }
.dark-band .gradient-text { background-image: linear-gradient(90deg, #60a5fa, #a78bfa); }
.seal {
  background: #0d1424; border: 1px solid #1f2a44; border-radius: 18px; padding: 22px;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; color: #cbd5e1;
  box-shadow: 0 24px 60px rgba(0,0,0,.45); overflow: hidden;
}
.seal .row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid #1a2338; }
.seal .row:last-child { border-bottom: 0; }
.seal .k { color: #64748b; white-space: nowrap; }
.seal .v { color: #e2e8f0; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seal .ok { color: #4ade80; }
.seal .head { display: flex; align-items: center; gap: 10px; color: #f8fafc; font-family: "Inter", sans-serif; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.seal .dot { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px #4ade80; }
.standards { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.standards span { font-size: 13px; font-weight: 500; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); }

/* Navigazione interna alla sezione Prodotti */
.subnav { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 36px; padding: 5px; border-radius: 999px; background: var(--bg-alt); }
.subnav a { padding: 9px 18px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--text-2); }
.subnav a:hover { text-decoration: none; color: var(--text); }
.subnav a[aria-current="page"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.crumb { font-size: 14px; color: var(--text-2); margin: 0 0 14px; }
.crumb a { color: inherit; }
.dark-band .crumb { color: #a1a1a6; }
.dark-band .subnav { background: #111827; }
.dark-band .subnav a { color: #a1a1a6; }
.dark-band .subnav a:hover, .dark-band .subnav a[aria-current="page"] { color: #f5f5f7; }
.dark-band .subnav a[aria-current="page"] { background: #1f2937; box-shadow: none; }
.card-dark { background: #0d1424; border-color: #1f2a44; color: #f5f5f7; }
.card-dark p { color: #a1a1a6; }
.dark-band .link-arrow { color: #93c5fd; }

/* Studio di ingegneria */
.studio-banner { min-height: 0; margin-bottom: 22px; padding: 44px; }
.studio-banner h2 { max-width: 24ch; }
.studio-banner p { max-width: 70ch; }
.hero-tech {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(37, 99, 235, .35) 0%, transparent 60%),
    radial-gradient(50% 60% at 5% 100%, rgba(14, 138, 143, .25) 0%, transparent 60%),
    #05070f;
}
.hero-tech::before {   /* griglia tecnica appena visibile */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(148, 163, 184, .07) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(148, 163, 184, .07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
}
.hero-tech .wrap { position: relative; }
.hero-tech h1 { max-width: 16ch; }
.hero-sub { font-weight: 400; letter-spacing: 0; max-width: 46ch; }
.trust { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 14px; color: #cbd5e1; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; background: #4ade80 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.5l4.5-5' fill='none' stroke='%2305070f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.trust-list { flex-direction: column; font-size: 15px; }
.card .tag { margin-bottom: 16px; }
.targets { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 40px; }
.targets span { font-size: 14px; font-weight: 500; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.targets .targets-label { background: none; border: 0; padding-left: 0; color: var(--text-2); font-weight: 600; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: passo; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; position: relative; }
.steps .n { display: block; font-size: 40px; font-weight: 700; letter-spacing: -.03em; line-height: 1; margin-bottom: 18px;
  background: linear-gradient(90deg, var(--accent), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps p { color: var(--text-2); margin: 10px 0 0; font-size: 15px; }
.card-dark label { color: #e2e8f0; }
.card-dark input, .card-dark select, .card-dark textarea { background: #05070f; border-color: #1f2a44; color: #f5f5f7; }
.card-dark .form-note { color: #94a3b8; }

/* Contatti */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list strong { display: block; font-weight: 600; }
.contact-list span { color: var(--text-2); font-size: 15px; }
form { display: grid; gap: 18px; }
label { font-size: 14px; font-weight: 500; display: grid; gap: 7px; }
input, select, textarea {
  font: inherit; font-size: 16px; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 13px; color: var(--text-2); margin: 0; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 13px; color: var(--text-2); background: var(--bg-alt); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--text-2); }

/* Responsive */
@media (max-width: 900px) {
  .grid-3, .specs { grid-template-columns: 1fr 1fr; }
  .product-head, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .phone-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .phone { max-width: 260px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  section, .product { padding: 64px 0; }
  .hero { padding: 72px 0 64px; }
  .grid-2, .grid-3, .specs, .specs-2, .row-2, .gallery, .steps { grid-template-columns: 1fr; }
  .area { min-height: 380px; padding: 28px; }
  .area .icons { padding-bottom: 28px; }
  .card { padding: 26px; }
  .nav-links { gap: 18px; }
  .cal { grid-template-columns: 76px repeat(4, 1fr); }
}
