/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

/* ── Design tokens — dark (default) ──────────────────────────────────────── */
:root {
  --bg:      #111317;
  --bg2:     #181b22;
  --bg3:     #1e2230;
  --blue:    #4a7fb5;
  --blue-d:  #2d5a8e;
  --text:    #f0eff0;
  --text2:   #8a8fa0;
  --text3:   #44475a;
  --border:  rgba(255,255,255,0.07);
  --r:       6px;
  /* Circuit board background tokens */
  --circuit-line:   rgba(74,127,181,0.14);
  --circuit-node:   rgba(74,127,181,0.20);
  --circuit-accent: rgba(74,127,181,0.35);
  /* Watermark tokens */
  --wm-grid: rgba(74,127,181,0.07);
  --wm-arc:  rgba(74,127,181,0.13);
  --wm-e:    rgba(74,127,181,0.18);
  --wm-dot:  rgba(74,127,181,0.10);
  /* Trail animata */
  --wm-trail-out:   rgba(63,111,191,0.28);
  --wm-trail-mid:   rgba(127,166,230,0.60);
  --wm-trail-sharp: rgba(210,230,255,0.92);
  --wm-head-glow:   rgba(127,166,230,0.32);
  --wm-head-dot:    #F6F7F9;
  --wm-node-rgb:    127,166,230;
}

/* Dark mode esplicito — override per utenti con system pref = light che hanno scelto dark */
body.dark {
  --bg:      #111317;
  --bg2:     #181b22;
  --bg3:     #1e2230;
  --text:    #f0eff0;
  --text2:   #8a8fa0;
  --text3:   #44475a;
  --border:  rgba(255,255,255,0.07);
  --circuit-line:   rgba(74,127,181,0.14);
  --circuit-node:   rgba(74,127,181,0.20);
  --circuit-accent: rgba(74,127,181,0.35);
}

/* Light mode (applied via JS on body, or system preference) */
body.light, :root.light-init {
  --bg:      #fafaf8;
  --bg2:     #f0eff0;
  --bg3:     #e4e6ec;
  --text:    #111317;
  --text2:   #5a5f70;
  --text3:   #b0b3c0;
  --border:  rgba(0,0,0,0.09);
  --wm-grid: rgba(30,80,160,0.06);
  --wm-arc:  rgba(30,80,160,0.10);
  --wm-e:    rgba(30,80,160,0.14);
  --wm-dot:  rgba(30,80,160,0.08);
  --wm-trail-out:   rgba(30,80,160,0.18);
  --wm-trail-mid:   rgba(50,100,190,0.55);
  --wm-trail-sharp: rgba(20,60,150,0.80);
  --wm-head-glow:   rgba(50,100,190,0.25);
  --wm-head-dot:    #3F6FBF;
  --wm-node-rgb:    50,100,190;
  --circuit-line:   rgba(30,80,160,0.11);
  --circuit-node:   rgba(30,80,160,0.18);
  --circuit-accent: rgba(30,80,160,0.32);
}

@media (prefers-color-scheme: light) {
  body:not(.dark) {
    --bg:      #fafaf8;
    --bg2:     #f0eff0;
    --bg3:     #e4e6ec;
    --text:    #111317;
    --text2:   #5a5f70;
    --text3:   #b0b3c0;
    --border:  rgba(0,0,0,0.09);
    --wm-grid: rgba(30,80,160,0.06);
    --wm-arc:  rgba(30,80,160,0.10);
    --wm-e:    rgba(30,80,160,0.14);
    --wm-dot:  rgba(30,80,160,0.08);
    --wm-trail-out:   rgba(30,80,160,0.18);
    --wm-trail-mid:   rgba(50,100,190,0.55);
    --wm-trail-sharp: rgba(20,60,150,0.80);
    --wm-head-glow:   rgba(50,100,190,0.25);
    --wm-head-dot:    #3F6FBF;
    --wm-node-rgb:    50,100,190;
    --circuit-line:   rgba(30,80,160,0.11);
    --circuit-node:   rgba(30,80,160,0.18);
    --circuit-accent: rgba(30,80,160,0.32);
  }
}

/* ── Base ─────────────────────────────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
}

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

/* ── Screen reader only ───────────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn-main {
  background: var(--text);
  color: var(--bg);
  padding: 11px 22px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s;
  display: inline-block;
}
.btn-main:hover { opacity: 0.85; text-decoration: none; }

.btn-out {
  background: none;
  color: var(--text);
  padding: 11px 22px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}
.btn-out:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }

.btn-blue {
  background: var(--blue);
  color: #fff;
  padding: 11px 22px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
  display: inline-block;
}
.btn-blue:hover { background: var(--blue-d); color: #fff; text-decoration: none; }

/* ── Boot screen ──────────────────────────────────────────────────────────── */
#boot-screen {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', Courier, monospace;
}
#boot-screen.fade-out {
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}
body.boot-hidden { overflow: hidden; }
.boot-ascii {
  color: #aab0c0;
  font-size: 11px;
  line-height: 1.3;
  margin-bottom: 20px;
  white-space: pre;
  text-align: center;
}
.boot-brand-logo {
  display: block;
  margin-bottom: 8px;
  opacity: 0.9;
}
.boot-tagline {
  font-size: 11px;
  color: #8090a8;
  letter-spacing: 2px;
  margin-bottom: 40px;
}
#boot-bar {
  display: flex;
  gap: 3px;
  margin-bottom: 12px;
}
.bb {
  width: 16px;
  height: 20px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  transition: background 0.1s;
}
.bb.on { background: #4a7fb5; border-color: #5a8fc5; }
#boot-msg {
  font-size: 11px;
  color: #8090a8;
  min-height: 16px;
  text-align: center;
  margin-bottom: 24px;
}
.boot-copyright {
  font-size: 10px;
  color: #60687a;
  text-align: center;
  line-height: 1.8;
  margin-top: 8px;
}
@media (prefers-reduced-motion: reduce) {
  #boot-screen { display: none !important; }
}

/* ── Navigation ───────────────────────────────────────────────────────────── */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}
.nav-logo {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
  text-decoration: none;
}
.nav-logo em { font-style: normal; color: var(--blue); }
.nav-logo:hover { text-decoration: none; }
.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}
.nav-links a {
  font-size: 16px;
  color: var(--text2);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); text-decoration: none; }
.nav-links .badge-soon {
  font-size: 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text3);
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 4px;
  vertical-align: middle;
}
.nav-right { display: flex; gap: 10px; align-items: center; }
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text2);
  padding: 6px 12px;
  border-radius: var(--r);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s, color 0.2s;
}
.theme-toggle:hover { border-color: var(--blue); color: var(--text); }

/* ── Page hero (inner pages) ──────────────────────────────────────────────── */
.page-hero {
  padding: 48px 28px 32px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
}
.page-hero p { color: var(--text2); font-size: 15px; max-width: 500px; }

/* ── Circuit strip animations ─────────────────────────────────────────────── */
@keyframes circuit-node-glow {
  0%, 100% { opacity: 0; }
  45%, 55%  { opacity: 1; }
}
@keyframes circuit-data-flow {
  from { stroke-dashoffset: 600; opacity: 0; }
  5%   { opacity: 1; }
  90%  { opacity: 1; }
  to   { stroke-dashoffset: -30; opacity: 0; }
}
.cn-anim {
  fill: var(--circuit-accent);
  animation: circuit-node-glow var(--dur, 3s) ease-in-out infinite;
  animation-delay: var(--del, 0s);
  filter: url(#circuit-glow);
}
.cd-anim {
  fill: none;
  stroke: var(--circuit-accent);
  stroke-width: 1.5;
  stroke-dasharray: 20 700;
  opacity: 0;
  animation: circuit-data-flow var(--dur, 5s) linear infinite;
  animation-delay: var(--del, 0s);
}
@media (prefers-reduced-motion: reduce) {
  .cn-anim, .cd-anim { animation: none; opacity: 0; }
}

/* ── Circuit strips (decorazione laterale fissa) ─────────────────────────── */
.circuit-strip {
  position: fixed;
  top: 0;
  /* larghezza = metà del margine disponibile rispetto ai 1100px di main, meno 10px di respiro */
  width: calc(50vw - 590px);
  min-width: 60px;
  max-width: 400px;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.circuit-strip svg { display: block; width: 100%; height: 100%; }
.circuit-strip--left  { left: 0; }
.circuit-strip--right { right: 0; }
main, footer, .insta-strip { position: relative; z-index: 1; }
.site-nav { position: relative; z-index: 100; }
@media (max-width: 1200px) { .circuit-strip { min-width: 40px; } }
@media (max-width: 900px)  { .circuit-strip { display: none; } }

/* ── Hero (homepage) ──────────────────────────────────────────────────────── */
.hero {
  padding: 0;
}
.hero-inner-wrap {
  padding: 64px 28px 48px;
}
.hero-eye {
  font-size: 13px;
  color: var(--blue);
  font-weight: 500;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.hero h1 .acc { color: var(--blue); }
.hero-body {
  font-size: 16px;
  color: var(--text2);
  max-width: 500px;
  line-height: 1.75;
  margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 20px;
  margin-bottom: 4px;
}
.hero-trust span {
  font-size: 13px;
  color: var(--text2);
}
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 48px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.stat-num {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  color: var(--text);
}
.stat-label { font-size: 12px; color: var(--text2); margin-top: 4px; }

/* ── Timeline — step interattivo ─────────────────────────────────────────── */
.tl-wrap {
  padding: 40px 28px 48px;
  border-top: 1px solid var(--border);
}
.tl-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}
.tl-label { font-size: 13px; color: var(--text2); font-weight: 500; }
.tl-nav-btns { display: flex; gap: 8px; }
.tl-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text2);
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  transition: border-color 0.2s, color 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.tl-btn:hover { border-color: var(--blue); color: var(--blue); }

/* Stage: content area */
.tl-stage {
  position: relative;
  min-height: 148px;
  margin-bottom: 44px;
}
.tl-slide {
  position: absolute;
  top: 0; left: 0; right: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.42s ease, transform 0.42s ease;
  pointer-events: none;
}
.tl-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}
.tl-slide.out {
  opacity: 0;
  transform: translateY(-12px);
}
.tl-big-year {
  font-size: 80px;
  font-weight: 800;
  letter-spacing: -4px;
  color: var(--text3);
  line-height: 1;
  margin-bottom: 10px;
  transition: color 0.3s;
}
.tl-slide.active .tl-big-year { color: var(--blue); }
.tl-slide-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.tl-slide-title { font-size: 18px; font-weight: 700; color: var(--text); }
.tl-tag {
  font-size: 10px;
  color: var(--blue);
  border: 1px solid rgba(74,127,181,0.35);
  padding: 2px 9px;
  border-radius: 3px;
  font-weight: 500;
}
.tl-slide-desc { font-size: 14px; color: var(--text2); max-width: 600px; line-height: 1.65; }

/* Rail: year nodes + connecting line */
.tl-rail {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 14px;
}
.tl-track {
  position: absolute;
  top: 18px; left: 12px; right: 12px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.tl-fill {
  height: 100%;
  background: var(--blue);
  width: 0%;
  transition: width 0.45s ease;
}
.tl-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 4px;
}
.tl-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid var(--text3);
  background: var(--bg);
  transition: border-color 0.3s, background 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative; z-index: 1;
}
.tl-node:hover .tl-dot {
  border-color: var(--blue);
  background: var(--bg2);
  transform: scale(1.3);
}
.tl-node.active .tl-dot {
  border-color: var(--blue);
  background: var(--blue);
  transform: scale(1.5);
  box-shadow: 0 0 0 4px rgba(74,127,181,0.18);
}
.tl-node-year {
  font-size: 11px;
  font-weight: 600;
  color: var(--text2);
  transition: color 0.3s;
  white-space: nowrap;
}
.tl-node.active .tl-node-year,
.tl-node:hover .tl-node-year { color: var(--blue); }

/* ── Services list ────────────────────────────────────────────────────────── */
.svc-wrap {
  padding: 48px 28px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.svc-left h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
  line-height: 1.2;
}
.svc-left p { color: var(--text2); font-size: 14px; line-height: 1.7; max-width: 280px; }
.svc-list { display: flex; flex-direction: column; }
.svc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.svc-row:first-child { border-top: 1px solid var(--border); }
.svc-row:hover .srn { color: var(--blue); }
.srn { font-size: 15px; font-weight: 500; color: var(--text); transition: color 0.2s; text-decoration: none; }
a.srn:hover { color: var(--blue); text-decoration: none; }
.srd { font-size: 12px; color: var(--text2); }

/* ── Download banner ──────────────────────────────────────────────────────── */
.dl-wrap {
  padding: 32px 28px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.dl-label { font-size: 12px; color: var(--blue); font-weight: 500; margin-bottom: 6px; }
.dl-wrap h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}
.dl-wrap p { color: var(--text2); font-size: 13px; }

/* ── Service blocks (pagina servizi) ──────────────────────────────────────── */
.service-block {
  padding: 32px 28px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: start;
}
.service-block:last-child { border-bottom: none; }
.service-icon-name .icon { font-size: 28px; margin-bottom: 8px; }
.service-icon-name h2 { font-size: 18px; font-weight: 700; }
.service-desc-col p { color: var(--text2); line-height: 1.7; font-size: 15px; }
.badge-soon {
  font-size: 11px;
  border: 1px solid var(--blue);
  color: var(--blue);
  padding: 2px 8px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 500;
}

/* ── Portfolio ────────────────────────────────────────────────────────────── */
.p-wrap { padding: 32px 28px; }
.p-filters { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.p-filter-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text2);
  padding: 6px 14px;
  border-radius: var(--r);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.p-filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.p-filter-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.p-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.p-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
}
.p-card > *:not(.card-thumb) { padding-left: 20px; padding-right: 20px; }
.p-card > .card-cat { padding-top: 16px; }
.p-card > .card-link { padding-bottom: 20px; }
.p-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.p-card.hidden { display: none; }
.card-thumb {
  width: 100%;
  aspect-ratio: 16/7;
  overflow: hidden;
  background: var(--bg3);
}
.card-thumb > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-thumb > img.is-logo {
  object-fit: contain;
  padding: 16px;
  background: var(--bg3);
}
.card-thumb-placeholder img {
  height: 90px;
  width: auto;
}
.card-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg3);
}
.card-thumb-placeholder img { opacity: 0.25; }
.card-thumb-placeholder .logo-dark  { display: block; }
.card-thumb-placeholder .logo-light { display: none; }
body.light .card-thumb-placeholder .logo-dark,
:root.light-init .card-thumb-placeholder .logo-dark  { display: none; }
body.light .card-thumb-placeholder .logo-light,
:root.light-init .card-thumb-placeholder .logo-light { display: block; }
.card-cat {
  font-size: 10px;
  color: var(--blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.card-desc { font-size: 12px; color: var(--text2); line-height: 1.55; margin-bottom: 12px; }
.card-meta { font-size: 11px; color: var(--text3); }
.card-link { font-size: 13px; color: var(--blue); display: inline-block; margin-top: 12px; }
.card-link::after { content: ''; position: absolute; inset: 0; }

/* Portfolio detail */
.detail-wrap { padding: 32px 28px; max-width: 720px; }
.detail-wrap h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.8px; margin-bottom: 8px; }
.detail-meta { display: flex; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.detail-meta span { font-size: 12px; color: var(--text2); }
.detail-body { color: var(--text2); line-height: 1.8; font-size: 15px; margin-bottom: 24px; }
.tech-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.tech-tag {
  font-size: 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 4px;
  color: var(--text2);
}
.back-link { font-size: 13px; color: var(--blue); }

/* ── Portfolio detail stats ───────────────────────────────────────────────── */
.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.dstat-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
}

/* ── Portfolio gallery ────────────────────────────────────────────────────── */
.gallery-section { margin-bottom: 28px; }
.gallery-section h2 { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.gallery-slider {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  cursor: grab;
  border-radius: var(--r);
}
.gallery-slider::-webkit-scrollbar { display: none; }
.gallery-slider.dragging { cursor: grabbing; }
.gallery-slide {
  min-width: 300px;
  height: 190px;
  border-radius: var(--r);
  scroll-snap-align: start;
  background: var(--bg3);
  border: 1px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
}
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 150px;
  border: 2px dashed var(--border);
  border-radius: var(--r);
  color: var(--text3);
  font-size: 13px;
}
.gp-icon { font-size: 28px; opacity: 0.5; }

/* ── Instagram strip ─────────────────────────────────────────────────────── */
.insta-strip {
  padding: 32px 28px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.insta-left { display: flex; align-items: center; gap: 16px; }
.insta-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.insta-text h3 { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.insta-text p { font-size: 13px; color: var(--text2); }
.insta-btn {
  background: linear-gradient(135deg, #f09433 0%, #dc2743 50%, #bc1888 100%);
  color: #fff;
  padding: 9px 20px;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.insta-btn:hover { opacity: 0.85; text-decoration: none; }

/* ── Terminal section wrapper ─────────────────────────────────────────────── */
.terminal-section {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: center;
  padding: 56px 28px;
  border-top: 1px solid var(--border);
}
.terminal-eye {
  font-size: 13px;
  color: var(--blue);
  font-weight: 500;
  margin-bottom: 14px;
}
.terminal-section h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 16px;
}
.terminal-body {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 24px;
  max-width: 320px;
}
.terminal-hints {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.terminal-hints li {
  font-size: 13px;
  color: var(--text2);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.terminal-hints code {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  font-weight: 600;
  color: #00c968;
  background: rgba(0,201,104,0.12);
  border: 1px solid rgba(0,201,104,0.35);
  padding: 2px 9px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
body.light .terminal-hints code,
:root.light-init .terminal-hints code {
  color: #007a3d;
  background: rgba(0,122,61,0.10);
  border-color: rgba(0,122,61,0.30);
}

/* ── Boot widget + Console ───────────────────────────────────────────────── */
.boot-widget {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #0a0d10;
  color: #00ff88;
  font-family: 'Courier New', monospace;
}
.boot-widget-bar {
  background: rgba(255,255,255,0.04);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.boot-widget-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.boot-widget-dot.r { background: #ff5f57; }
.boot-widget-dot.y { background: #febc2e; }
.boot-widget-dot.g { background: #28c840; }
.boot-widget-title { font-size: 11px; color: rgba(255,255,255,0.25); margin-left: auto; font-family: inherit; }
.boot-widget-body { padding: 16px 20px; min-height: 120px; }
.boot-widget-ascii {
  color: rgba(0,255,136,0.25);
  white-space: pre;
  font-size: 9px;
  line-height: 1.4;
  margin-bottom: 12px;
}
.boot-widget-log { display: flex; flex-direction: column; gap: 3px; min-height: 56px; }
@keyframes fadeInLine {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: none; }
}
.boot-log-line { font-size: 12px; animation: fadeInLine 0.25s ease; }
.boot-log-line.ok  { color: #00ff88; }
.boot-log-line.dim { color: rgba(0,255,136,0.45); }
.boot-widget-bar-line {
  height: 4px;
  background: rgba(0,255,136,0.12);
  border-radius: 2px;
  margin-top: 10px;
  overflow: hidden;
}
.boot-widget-bar-fill {
  height: 100%;
  background: #00ff88;
  border-radius: 2px;
  width: 0%;
  transition: width 0.35s ease;
}
/* ── Console interactive area ─────────────────────────────────────────────── */
.bw-console { display: flex; flex-direction: column; }
.bw-output {
  padding: 12px 20px;
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,255,136,0.2) transparent;
}
.bw-output::-webkit-scrollbar { width: 4px; }
.bw-output::-webkit-scrollbar-thumb { background: rgba(0,255,136,0.2); border-radius: 2px; }
.bw-out-row { font-size: 12px; line-height: 1.5; animation: fadeInLine 0.2s ease; }
.bw-out-cmd   { color: rgba(0,255,136,0.5); }
.bw-out-ok    { color: #00ff88; }
.bw-out-info  { color: rgba(0,255,136,0.45); font-style: italic; }
.bw-out-warn  { color: #febc2e; }
.bw-out-err   { color: #ff6b6b; }
.bw-out-system { color: rgba(0,255,136,0.6); border-bottom: 1px solid rgba(0,255,136,0.1); padding-bottom: 6px; margin-bottom: 2px; }
.bw-c { color: #00ff88; font-weight: 700; }
.bw-prompt-echo { color: rgba(0,255,136,0.4); }
.bw-out-row a { color: #00ff88; }
.bw-quick-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.bw-qbtn {
  background: rgba(0,255,136,0.07);
  border: 1px solid rgba(0,255,136,0.2);
  color: rgba(0,255,136,0.8);
  font-family: 'Courier New', monospace;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.bw-qbtn:hover { background: rgba(0,255,136,0.15); color: #00ff88; }
.bw-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
  background: rgba(0,0,0,0.15);
}
.bw-prompt { font-size: 12px; color: rgba(0,255,136,0.6); white-space: nowrap; flex-shrink: 0; }
.bw-input {
  background: none;
  border: none;
  outline: none;
  color: #00ff88;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  flex: 1;
  caret-color: #00ff88;
}
.bw-input::placeholder { color: rgba(0,255,136,0.25); }
/* ── Footer ─────────────────────────────────────────────────────────────── */
.boot-widget-footer {
  padding: 9px 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0,0,0,0.15);
}
.boot-widget-status { font-size: 11px; color: rgba(0,255,136,0.45); font-family: 'Courier New', monospace; }
.boot-replay-btn {
  background: rgba(0,255,136,0.08);
  border: 1px solid rgba(0,255,136,0.25);
  color: #00ff88;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  padding: 5px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.boot-replay-btn:hover { background: rgba(0,255,136,0.18); }
.boot-replay-btn:disabled { opacity: 0.4; cursor: default; }

/* ── Assistenza page ──────────────────────────────────────────────────────── */
.dl-box {
  border: 1px solid var(--blue);
  border-radius: 10px;
  padding: 32px;
  text-align: center;
  max-width: 520px;
  margin: 32px auto;
}
.dl-box h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.dl-box p { color: var(--text2); font-size: 14px; margin-bottom: 20px; }
.dl-note { font-size: 12px; color: var(--text3); margin-top: 10px; }
.steps-section { padding: 32px 28px; border-top: 1px solid var(--border); max-width: 600px; margin: 0 auto; }
.steps-section h2 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.steps-list { display: flex; flex-direction: column; gap: 16px; }
.step-item { display: flex; gap: 14px; align-items: flex-start; }
.step-num {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue); color: #fff;
  font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-text h3 { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.step-text p { font-size: 13px; color: var(--text2); }
.contact-box {
  padding: 24px 28px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  text-align: center;
}
.contact-box h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.contact-box a { font-size: 22px; font-weight: 800; color: var(--blue); display: block; margin: 8px 0; }

/* ── Contact form ─────────────────────────────────────────────────────────── */
.contact-wrap {
  padding: 32px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 13px; color: var(--text2); }
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 10px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  outline: none;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-success {
  color: #4a8f5a; border: 1px solid #4a8f5a;
  padding: 12px 16px; border-radius: var(--r); margin-bottom: 16px;
  font-size: 14px;
}
.form-error {
  color: #c94040; border: 1px solid #c94040;
  padding: 12px 16px; border-radius: var(--r); margin-bottom: 16px;
  font-size: 14px;
}
.contact-info h2 { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.info-row { display: flex; gap: 10px; margin-bottom: 12px; align-items: flex-start; }
.info-label { font-size: 12px; color: var(--text3); width: 60px; flex-shrink: 0; padding-top: 1px; }
.info-val { font-size: 14px; color: var(--text2); }
.info-val a { color: var(--blue); }

/* ── Area clienti placeholder ─────────────────────────────────────────────── */
.coming-wrap {
  padding: 80px 28px;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}
.coming-badge {
  display: inline-block;
  background: var(--bg3);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.coming-wrap h1 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.coming-wrap p { color: var(--text2); font-size: 15px; margin-bottom: 24px; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  padding: 24px 28px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-info { font-size: 12px; color: var(--text2); line-height: 1.8; }
.footer-info a { color: var(--text2); }
.footer-info a:hover { color: var(--blue); }
.footer-logo { font-size: 18px; font-weight: 700; color: var(--text2); }
.footer-logo em { font-style: normal; color: var(--blue); }

/* ── Nav logo SVG ─────────────────────────────────────────────────────────── */
.nav-logo { display: flex; align-items: center; }
.nav-logo-svg { display: block; }

/* ── Scroll reveal ────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}


/* ── Hero watermark (kept for JS compat) ─────────────────────────────────── */
.hero-wm {
  position: absolute;
  right: -60px;
  top: -40px;
  width: 360px;
  height: 360px;
  pointer-events: none;
  opacity: 0.35;
}
.hero-wm svg { width: 100%; height: 100%; }

/* Trail animata — stroke via CSS per rispettare i CSS variables del tema */
.wm-e-trail {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wm-e-l3 { stroke: var(--wm-trail-out);   stroke-width: 18; }
.wm-e-l2 { stroke: var(--wm-trail-mid);   stroke-width: 7;  }
.wm-e-l1 { stroke: var(--wm-trail-sharp); stroke-width: 2.5; }
.wm-head-halo { fill: var(--wm-head-glow); }
.wm-head-dot  { fill: var(--wm-head-dot);  }


/* ── Contact map layout ───────────────────────────────────────────────────── */
.contact-map-col {
  border-radius: var(--r);
  overflow: hidden;
  min-height: 340px;
  background: var(--bg2);
}

/* ── Punto vendita ────────────────────────────────────────────────────────── */
.store-section {
  padding: 48px 28px;
  border-top: 1px solid var(--border);
}
.store-header { max-width: 600px; margin-bottom: 32px; }
.store-header h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.store-header p { color: var(--text2); font-size: 15px; }
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.store-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px;
  transition: border-color 0.25s, transform 0.25s;
}
.store-card:hover { border-color: var(--blue); transform: translateY(-3px); }
.store-icon { font-size: 28px; margin-bottom: 10px; }
.store-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.store-card p { font-size: 13px; color: var(--text2); line-height: 1.55; }

/* ── Clients reference strip ──────────────────────────────────────────────── */
.clients-strip {
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.clients-label {
  font-size: 11px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.clients-list {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.client-item {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px 5px 10px;
  transition: border-color 0.2s;
}
.client-item:hover { border-color: var(--blue); }
.client-icon { font-size: 15px; }
.client-name { font-size: 13px; font-weight: 500; color: var(--text2); }
.client-sep { color: var(--text3); font-size: 18px; user-select: none; }

/* ── Max-width content wrapper ────────────────────────────────────────────── */
main { max-width: 1100px; margin: 0 auto; flex: 1; }

/* ── Hamburger ───────────────────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 49;
  background: rgba(0,0,0,0.4);
}
.nav-mobile-overlay.open { display: block; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-cta { display: none; }
  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -280px;
    width: 260px;
    height: 100dvh;
    background: var(--bg2);
    border-left: 1px solid var(--border);
    padding: 72px 28px 32px;
    gap: 0;
    z-index: 50;
    transition: right 0.3s cubic-bezier(.4,0,.2,1);
    box-shadow: -4px 0 24px rgba(0,0,0,0.18);
  }
  .nav-links.open { right: 0; }
  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 17px;
  }
  .nav-links a:last-child { border-bottom: none; }
  .hero h1 { font-size: 32px; letter-spacing: -1px; }
  .hero-stats { gap: 24px; }
  .svc-wrap { grid-template-columns: 1fr; gap: 24px; }
  .svc-left p { max-width: none; }
  .dl-wrap { flex-direction: column; align-items: flex-start; }
  .service-block { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .detail-wrap { padding: 24px 16px; }
  .p-wrap { padding: 24px 16px; }
  .hero-inner-wrap { padding: 40px 16px 32px; }
  .page-hero { padding: 32px 16px 24px; }
  .coming-wrap { padding: 48px 16px; }
  .site-footer { flex-direction: column; align-items: flex-start; }
  .tl-wrap { padding: 32px 0; }
  .hero-wm { display: none; }
  .terminal-section { grid-template-columns: 1fr; gap: 28px; padding: 40px 16px; }
  .terminal-body { max-width: none; }
  .store-section { padding: 32px 16px; }
  .store-grid { grid-template-columns: 1fr 1fr; }
  .contact-map-col { min-height: 260px; }
  .boot-widget { margin: 0 16px 28px; }
  .insta-strip { padding: 24px 16px; }
  .insta-strip { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ── Logo variants (dark / light) ────────────────────────────────────────── */
.nav-logo-img, .footer-logo-img { display: block; }
.logo-light { display: none; }

/* JS sets body.light when OS or user prefers light */
body.light .logo-dark  { display: none; }
body.light .logo-light { display: block; }

/* CSS media query fallback before JS runs (avoids FOUC on first load) */
@media (prefers-color-scheme: light) {
  body:not(.dark) .logo-dark  { display: none; }
  body:not(.dark) .logo-light { display: block; }
}

/* Explicit dark always wins */
body.dark .logo-dark  { display: block; }
body.dark .logo-light { display: none; }

.nav-logo { display: flex; align-items: center; }
.footer-logo { display: flex; align-items: center; }

/* ── FAQ Page ────────────────────────────────────────────────────────────── */
.faq-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 28px 64px;
}
.faq-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin: 48px 0 16px;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--text2);
  flex-shrink: 0;
  transition: transform 0.25s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--blue); }
.faq-answer {
  padding: 0 0 20px;
  font-size: 15px;
  color: var(--text2);
  line-height: 1.75;
  max-width: 660px;
}
.faq-answer strong { color: var(--text); }
.faq-answer a { color: var(--blue); }

@media (max-width: 768px) {
  .faq-wrap { padding: 0 16px 48px; }
  .faq-item summary { font-size: 15px; }
}

/* ── Service Landing Pages (SLP) ─────────────────────────────────────────── */
.slp-hero {
  padding: 56px 28px 40px;
  border-bottom: 1px solid var(--border);
}
.slp-breadcrumb {
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 18px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.slp-breadcrumb a { color: var(--text2); text-decoration: none; }
.slp-breadcrumb a:hover { color: var(--text); }
.slp-breadcrumb span { opacity: 0.45; }
.slp-hero h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 680px;
}
.slp-hero h1 .acc { color: var(--blue); }
.slp-hero .slp-lead {
  font-size: 17px;
  color: var(--text2);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 28px;
}
.slp-hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }

.slp-section {
  padding: 56px 28px;
  border-bottom: 1px solid var(--border);
}
.slp-section-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}
.slp-section-sub {
  color: var(--text2);
  font-size: 15px;
  margin-bottom: 32px;
  max-width: 560px;
}
.slp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.slp-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px 20px;
  transition: border-color 0.25s, transform 0.25s;
}
.slp-card:hover { border-color: var(--blue); transform: translateY(-3px); }
.slp-card-icon { font-size: 26px; margin-bottom: 10px; }
.slp-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.slp-card p { font-size: 13px; color: var(--text2); line-height: 1.6; }

.slp-target-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.slp-target-item {
  background: var(--bg3);
  border-radius: var(--r);
  padding: 18px 16px;
  font-size: 14px;
  line-height: 1.55;
}
.slp-target-item strong { display: block; font-size: 15px; font-weight: 700; margin-bottom: 4px; }

.slp-why-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.slp-why-list li {
  background: var(--bg2);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.6;
}
.slp-why-list li strong { display: block; font-size: 15px; font-weight: 700; margin-bottom: 3px; }

.slp-cta-band {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 56px 28px;
  text-align: center;
}
.slp-cta-band h2 { font-size: 28px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.5px; }
.slp-cta-band p { color: var(--text2); font-size: 15px; margin-bottom: 28px; max-width: 480px; margin-inline: auto; }
.slp-cta-band .slp-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 768px) {
  .slp-hero { padding: 36px 16px 28px; }
  .slp-hero h1 { font-size: 28px; letter-spacing: -0.8px; }
  .slp-section { padding: 36px 16px; }
  .slp-cta-band { padding: 40px 16px; }
}

/* ── Casi Studio ────────────────────────────────────────────────────────────── */
.cs-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.cs-hero {
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}
.cs-hero-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
}
.cs-cat-chip {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  background: var(--blue);
  color: #fff;
  padding: 3px 10px;
  border-radius: 100px;
}
.cs-meta-item {
  font-size: 13px;
  color: var(--text2);
}
.cs-meta-sep { color: var(--border); font-size: 13px; }
.cs-hero h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.6px;
  margin-bottom: 18px;
}
.cs-lead {
  font-size: 1.05rem;
  color: var(--text2);
  line-height: 1.7;
  max-width: 700px;
}
.cs-section {
  margin-bottom: 44px;
}
.cs-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cs-section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--blue);
  border-radius: 2px;
  flex-shrink: 0;
}
.cs-text {
  color: var(--text1);
  line-height: 1.75;
  font-size: 15px;
}
.cs-problem-box {
  background: color-mix(in srgb, #ef4444 6%, var(--bg1));
  border: 1px solid color-mix(in srgb, #ef4444 18%, transparent);
  border-left: 4px solid #ef4444;
  border-radius: 0 var(--r) var(--r) 0;
  padding: 20px 24px;
  line-height: 1.75;
  font-size: 15px;
}
.cs-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cs-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.cs-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.cs-step-body { flex: 1; }
.cs-step-body strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}
.cs-step-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text2);
}
.cs-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cs-result-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.55;
}
.cs-result-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: color-mix(in srgb, #16a34a 14%, var(--bg2));
  color: #16a34a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  margin-top: 2px;
}
.cs-stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.cs-stat {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px 16px;
  text-align: center;
}
.cs-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 8px;
}
.cs-stat-label {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.4;
}
.cs-tech-wrap {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.cs-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}
@media (max-width: 768px) {
  .cs-hero { padding: 36px 0 28px; }
  .cs-hero h1 { font-size: 1.5rem; }
  .cs-stat-row { grid-template-columns: repeat(2, 1fr); }
}
