/* DepcoLabs — sistema d'uso DEPCOLΛBS, impaginazione scura ispirata ai siti cloud/AI */

@font-face { font-family: "Red Hat Display"; src: url("fonts/red-hat-display.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Red Hat Text"; src: url("fonts/red-hat-text.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("fonts/dm-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("fonts/dm-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #0B0B0B;
  --ink: #111111;
  --surface: #131313;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #F4F4F1;
  --muted: #A6A6A2;
  --dim: #6F6F6B;
  --lime: #C6F432;
  --moss: #4A6500;

  --display: "Red Hat Display", system-ui, sans-serif;
  --body: "Red Hat Text", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code { font-family: var(--mono); font-size: 0.9em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.accent { color: var(--lime); }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--lime); color: var(--ink); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

/* Bottoni a pillola */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 24px; border-radius: 999px; font-family: var(--body); font-weight: 500; font-size: 16px; text-decoration: none; border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s, box-shadow .15s; cursor: pointer; }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { box-shadow: 0 0 32px rgba(198, 244, 50, 0.35); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn-sm { padding: 9px 18px; font-size: 15px; }
.arrow { font-family: var(--mono); }

/* Barra servizio */
.utility { background: #070707; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.utility .wrap { height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.utility .label { font-size: 11px; color: var(--dim); }
.utility-links { display: flex; align-items: center; gap: 20px; }
.utility a { text-decoration: none; }
.utility a:hover { color: var(--lime); }
.lang { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; display: inline-flex; border: 1px solid var(--border-strong); border-radius: 999px; overflow: hidden; }
.lang a, .lang span { padding: 3px 10px; }
.lang span { background: var(--lime); color: var(--ink); }
.utility .lang a:hover { color: var(--lime); }
@media (max-width: 640px) { .utility .label, .utility .hide-sm { display: none; } .utility .wrap { justify-content: flex-end; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 11, 11, 0.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.site-header .wrap { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 18px; width: auto; }
.nav { display: flex; gap: 34px; align-items: center; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--text); opacity: 0.86; }
.nav a:hover { opacity: 1; color: var(--lime); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--text); font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; padding: 8px 14px; cursor: pointer; }
.nav .nav-mobile-cta { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .header-cta .btn { display: none; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #0B0B0B; border-bottom: 1px solid var(--border); padding: 8px var(--gutter) 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--border); opacity: 1; }
  .nav a.nav-mobile-cta { display: inline-flex; margin-top: 18px; padding: 13px 24px; border: 0; color: var(--ink); opacity: 1; }
}

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -260px; width: min(1100px, 140vw); height: 560px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(198, 244, 50, 0.22), rgba(74, 101, 0, 0.12) 55%, transparent); }
.hero-canvas { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; }
.hero-fade { position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 35%; background: linear-gradient(transparent, var(--bg)); }
.ruler { position: absolute; z-index: 0; right: 22px; top: 40px; bottom: 140px; display: flex; flex-direction: column; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--dim); text-align: right; pointer-events: none; }
.ruler span::after { content: ""; display: inline-block; width: 8px; height: 1px; margin-left: 6px; vertical-align: middle; background: var(--dim); }
@media (max-width: 1000px) { .ruler { display: none; } }

.hero-inner { text-align: center; padding-top: clamp(72px, 11vw, 140px); padding-bottom: clamp(48px, 7vw, 96px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border: 1px solid var(--border-strong); border-radius: 999px; background: rgba(11, 11, 11, 0.6); font-size: 14px; color: var(--muted); }
.eyebrow b { background: var(--lime); color: var(--ink); font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.hero h1 { font-weight: 800; font-size: clamp(40px, 7.2vw, 92px); line-height: 1; margin: 28px auto 26px; }
.hero h1 .accent { display: block; }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 640px; margin: 0 auto; }
.hero .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 38px; }

/* Card trasparenti: le due anime */
.souls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-bottom: clamp(72px, 9vw, 120px); position: relative; z-index: 1; }
.soul { position: relative; border: 1px solid var(--border-strong); border-radius: var(--radius); background: rgba(19, 19, 19, 0.8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 18px; transition: border-color .2s, transform .2s; }
.soul:hover { border-color: rgba(198, 244, 50, 0.5); transform: translateY(-2px); }
.soul-top { display: flex; justify-content: space-between; align-items: center; }
.soul-top svg { width: 22px; height: auto; }
.soul h2 { font-weight: 800; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.05; }
.soul > p { color: var(--muted); max-width: 46ch; }
.soul-list { display: flex; flex-wrap: wrap; gap: 8px; }
.soul-list li { font-size: 14px; border: 1px solid var(--border-strong); border-radius: 999px; padding: 5px 12px; }
.soul-list li span { color: var(--lime); }
.soul .more { margin-top: auto; font-weight: 500; text-decoration: none; color: var(--lime); }
.soul .more:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 820px) { .souls { grid-template-columns: 1fr; } }

/* Sezioni */
.section { padding: clamp(72px, 9vw, 128px) 0; position: relative; border-top: 1px solid var(--border); }
.head-center { text-align: center; max-width: 780px; margin: 0 auto clamp(44px, 5vw, 72px); display: grid; gap: 16px; justify-items: center; }
.head-center h2 { font-weight: 800; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.05; }
.head-center p { font-size: 18px; color: var(--muted); }
.center { display: flex; justify-content: center; margin-top: 52px; }

/* Selettore prodotti a schede */
.tabs { display: grid; grid-template-columns: 230px minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.tablist { display: grid; gap: 6px; }
.tab { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: none; border: 1px solid transparent; border-radius: 999px; padding: 10px 16px 10px 12px; color: var(--muted); font-family: var(--body); font-size: 16px; font-weight: 500; cursor: pointer; transition: background .15s, color .15s; }
.tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.tab[aria-selected="true"] { background: var(--lime); color: var(--ink); }
.tab svg { width: 14px; height: auto; flex: none; }
.tab small { margin-left: auto; font-family: var(--mono); font-size: 11px; opacity: 0.7; }
.visual { aspect-ratio: 1 / 1; border-radius: var(--radius); border: 1px solid var(--border); background: radial-gradient(120% 90% at 50% 105%, rgba(198, 244, 50, 0.2), transparent 60%), linear-gradient(#151515, #0D0D0D); overflow: hidden; position: relative; }
.visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.visual [data-art] { opacity: 0; transition: opacity .35s; }
.visual [data-art].on { opacity: 1; }
.logo-art { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding-bottom: 6%; }
.logo-tile { width: 36%; aspect-ratio: 1; border-radius: 24%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 1px rgba(198, 244, 50, 0.35), 0 24px 60px -12px rgba(198, 244, 50, 0.35); }
.logo-tile.green { background: #2ECC71; }
.logo-tile img { width: 74%; height: auto; }
.logo-tile.green img { width: 62%; }
.logo-word { font-family: 'Red Hat Display', sans-serif; font-weight: 800; font-size: clamp(22px, 3vw, 32px); letter-spacing: -0.02em; color: var(--text); }
.logo-word span { color: var(--lime); }
.panel { display: grid; gap: 18px; align-content: start; }
.panel[hidden] { display: none; }
.panel-name { font-family: var(--display); font-weight: 800; font-size: 36px; line-height: 1; letter-spacing: -0.01em; }
.panel-name span { color: var(--lime); }
.panel h3 { font-family: var(--body); font-weight: 500; font-size: 19px; line-height: 1.4; }
.panel > p { color: var(--muted); }
.panel .sub { border-top: 1px solid var(--border); padding-top: 16px; font-size: 14px; color: var(--muted); }
.panel .sub strong { display: block; color: var(--text); font-weight: 500; margin-bottom: 6px; }
.ticks { display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 24px; font-size: 15px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 10px; height: 12px; background: var(--lime); clip-path: polygon(0 100%, 36.6% 0, 63.4% 0, 100% 100%, 73.3% 100%, 50% 31.4%, 26.7% 100%); }
.link { font-family: var(--mono); font-size: 14px; color: var(--lime); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; justify-self: start; }
.link:hover { color: var(--text); }

@media (max-width: 1000px) {
  .tabs { grid-template-columns: 1fr; gap: 24px; }
  .tablist { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 4px; scrollbar-width: none; }
  .tab { width: auto; white-space: nowrap; border-color: var(--border-strong); }
  .tab small { display: none; }
  .tabs .visual { aspect-ratio: 16 / 10; }
  .logo-art { gap: 16px; padding-bottom: 0; }
  .logo-tile { width: 30%; }
}
/* Senza JS tutti i pannelli restano visibili, uno sotto l'altro */
.no-js .tabs { grid-template-columns: 1fr; }
.no-js .tablist, .no-js .tabs .visual { display: none; }

/* Consulenza: elenco + figura */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.feature-list li { padding: 24px 0; border-bottom: 1px solid var(--border); display: grid; gap: 8px; }
.feature-list li:first-child { padding-top: 0; }
.feature-list h3 { font-weight: 700; font-size: 21px; }
.feature-list p { color: var(--muted); font-size: 16px; }
.split .visual { aspect-ratio: 4 / 5; background: radial-gradient(90% 70% at 50% 105%, rgba(74, 101, 0, 0.6), transparent 70%), linear-gradient(#151515, #0D0D0D); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split .visual { aspect-ratio: 16 / 11; order: -1; } }

/* Metodo: card numerate */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 26px 24px 30px; display: grid; gap: 12px; align-content: start; transition: border-color .2s; }
.step:hover { border-color: rgba(198, 244, 50, 0.4); }
.step-top { display: flex; justify-content: space-between; align-items: center; }
.step-top svg { width: 14px; height: auto; opacity: 0.6; }
.step .num { font-family: var(--mono); font-size: 13px; color: var(--lime); border: 1px solid rgba(198, 244, 50, 0.35); border-radius: 999px; padding: 2px 10px; }
.step h3 { font-weight: 700; font-size: 22px; margin-top: 22px; }
.step p { color: var(--muted); font-size: 15px; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* CTA con bagliore */
.cta { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: calc(var(--radius) + 6px); padding: clamp(48px, 7vw, 96px) clamp(20px, 5vw, 72px); text-align: center; background: radial-gradient(70% 90% at 50% 125%, rgba(198, 244, 50, 0.55), rgba(74, 101, 0, 0.35) 45%, transparent 75%), #0E0E0E; isolation: isolate; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(70% 80% at 50% 40%, #000, transparent); mask-image: radial-gradient(70% 80% at 50% 40%, #000, transparent); }
.cta h2 { font-weight: 800; font-size: clamp(34px, 5vw, 64px); line-height: 1.02; }
.cta > p { margin: 18px auto 0; font-size: 18px; color: var(--muted); max-width: 52ch; }
.cta .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.cta-details { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; margin-top: 40px; font-family: var(--mono); font-size: 14px; }
.cta-details a { text-decoration: none; }
.cta-details a:hover { color: var(--lime); }
.cta-details span { color: var(--muted); }

/* Footer a colonne */
.site-footer { border-top: 1px solid var(--border); margin-top: clamp(72px, 9vw, 128px); }
.site-footer .wrap { padding-top: 64px; padding-bottom: 36px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.foot-brand img { height: 24px; width: auto; }
.foot-brand .label { display: block; margin-top: 16px; font-size: 11px; letter-spacing: 0.16em; }
.foot-col h4 { margin: 0 0 16px; font-family: var(--body); font-size: 15px; font-weight: 700; }
.foot-col ul { display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.foot-col a { text-decoration: none; }
.foot-col a:hover { color: var(--lime); }
.foot-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 24px; font-size: 13px; color: var(--dim); line-height: 1.7; }
.foot-bottom svg { width: 22px; height: auto; flex: none; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* Pagina testo (privacy) */
.page-hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--border); }
.page-hero::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -220px; width: min(900px, 140vw); height: 420px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(198, 244, 50, 0.18), transparent); }
.page-hero .wrap { padding-top: 88px; padding-bottom: 64px; text-align: center; }
.page-hero h1 { font-weight: 800; font-size: clamp(38px, 5vw, 64px); margin-top: 16px; }
.prose { max-width: 760px; margin: 0 auto; padding-top: 56px; }
.prose h2 { font-weight: 700; font-size: 24px; margin: 44px 0 14px; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); font-weight: 500; }
.prose p + p { margin-top: 12px; }
.prose ul { margin: 12px 0; display: grid; gap: 8px; }
.prose li { padding-left: 20px; position: relative; }
.prose li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 8px; height: 2px; background: var(--lime); }
.prose a { color: var(--lime); }
.prose .updated { margin-top: 48px; font-family: var(--mono); font-size: 13px; color: var(--dim); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
