/*
 * AC Sound Active — Prototipo DenkHub v3
 * Barlow Condensed display · dark · editorial
 * red #e8192c · blue #1a5fdf · ink #030303
 *
 * PRE-HEADER REPLICA RULES (invarianti per tutti i siti prototipo):
 *   .dh-bar → position:fixed top:0 z-index:100 width:100%
 *   height: var(--ph-h) = 34px
 *   background: rgba(0,0,0,0.92) + backdrop-filter:blur(12px)
 *   border-bottom: 1px solid rgba(255,255,255,0.06)
 *   body { padding-top: var(--ph-h) }
 *   Copy invariante: "Prototipo realizzato da denkhub.io"
 *   Icona: SVG mark DenkHub, fill var(--acc) = #2997ff
 */

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  --ph-h:   34px;
  --nav-h:  60px;
  --w:      1200px;

  --bg:     #030303;
  --bg-1:   #090909;
  --bg-2:   #0f0f0f;
  --bg-3:   #151517;

  --line:   rgba(255,255,255,0.07);
  --line-2: rgba(255,255,255,0.13);

  --fg:     #f0ebe3;
  --fg-2:   #78737e;
  --fg-3:   #3c3a42;

  --red:    #e8192c;
  --red-h:  #ff2438;
  --red-d:  rgba(232,25,44,0.12);
  --red-b:  rgba(232,25,44,0.35);

  --blue:   #1a5fdf;
  --blue-h: #2d76ff;
  --blue-d: rgba(26,95,223,0.12);

  --acc:    #2997ff;
  --acc-d:  rgba(41,151,255,0.14);

  --r:      8px;
  --r-md:   12px;
  --r-lg:   18px;

  --sh:     0 24px 64px rgba(0,0,0,0.65);
  --sh-sm:  0 8px 24px rgba(0,0,0,0.4);
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  padding-top: var(--ph-h);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
[hidden] { display: none !important; }
.is-locked { overflow: hidden; }
html.acs-auth #loginShell { display: none !important; }
html.acs-auth #siteShell[hidden] { display: block !important; }
html.acs-auth body.is-locked { overflow: auto; }

/* Film grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── UTILITIES ───────────────────────────────────────────────── */
.container { max-width: var(--w); margin: 0 auto; padding: 0 clamp(20px, 5vw, 60px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: 18px;
}
.eyebrow--red  { color: var(--red); }
.eyebrow--blue { color: var(--blue-h); }
.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #fff;
}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ── PRE-HEADER ──────────────────────────────────────────────── */
.dh-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--ph-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(191, 210, 235, 0.68);
  background: linear-gradient(180deg, rgba(6,12,22,0.98) 0%, rgba(4,8,15,0.96) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(70, 122, 210, 0.26);
}
.dh-bar a { color: var(--acc); }
.dh-bar a:hover { color: #fff; }
.dh-bar__cta {
  color: #dbe9ff;
  border-bottom: 1px solid rgba(135, 176, 255, 0.38);
}
.dh-bar__cta:hover { border-bottom-color: rgba(190, 215, 255, 0.9); }
.dh-bar__icon { width: 12px; height: 14px; fill: var(--acc); flex-shrink: 0; }

/* ── LOGIN ───────────────────────────────────────────────────── */
.login-shell {
  position: fixed;
  inset: 0;
  z-index: 50;
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: calc(var(--ph-h) + 24px) 20px 20px;
  overflow: hidden;
}
.login-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}
.login-orb--a {
  width: 700px; height: 700px;
  top: -25%; left: -20%;
  background: radial-gradient(circle, rgba(41,151,255,0.11) 0%, transparent 70%);
}
.login-orb--b {
  width: 500px; height: 500px;
  bottom: -20%; right: -10%;
  background: radial-gradient(circle, rgba(26,95,223,0.09) 0%, transparent 70%);
}
.login-wrap { position: relative; z-index: 1; width: 100%; max-width: 400px; }
.login-card {
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(108, 151, 226, 0.22);
  border-radius: var(--r-lg);
  padding: 40px 36px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh);
}
.login-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(41,151,255,.24) 25%,
    rgba(41,151,255,.18) 60%,
    transparent 100%);
}
.login-card__logo {
  width: 38px; height: 38px;
  margin: 0 auto 28px;
}
.login-card__logo svg { width: 100%; height: 100%; fill: #fff; }
.login-card__kicker {
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 8px;
}
.login-card__title {
  text-align: center;
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 4px;
}
.login-card__sub { text-align: center; font-size: 13px; color: rgba(191, 210, 235, 0.7); margin-bottom: 28px; }
.login-card__error {
  background: rgba(232,25,44,0.12);
  border: 1px solid rgba(232,25,44,0.28);
  color: #ff6b7a;
  font-size: 13px;
  border-radius: var(--r);
  padding: 10px 14px;
  margin-bottom: 20px;
  text-align: center;
}
.login-form  { display: flex; flex-direction: column; gap: 14px; }
.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 12px; font-weight: 500; color: var(--fg-2); }
.field {
  width: 100%;
  background: rgba(8,13,24,0.72);
  border: 1px solid rgba(112, 156, 232, 0.20);
  border-radius: var(--r-md);
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--fg);
  outline: none;
  transition: border-color .15s;
}
.field::placeholder { color: var(--fg-3); }
.field:focus        { border-color: var(--acc); }
.login-btn {
  margin-top: 6px;
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  background: linear-gradient(160deg, rgba(85, 149, 255, 0.98), rgba(28, 102, 226, 0.95));
  color: #eff6ff;
  transition: opacity .15s, transform .1s;
}
.login-btn:hover  { opacity: 0.88; }
.login-btn:active { transform: scale(0.98); }
.login-card__note {
  text-align: center;
  font-size: 11px;
  color: var(--fg-3);
  margin-top: 20px;
}

/* ── SITE NAV ────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: var(--ph-h);
  left: 0; right: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 60px);
  background: rgba(3,3,3,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}
.nav__brand img { border-radius: 4px; }
.nav__links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-2);
  min-width: 0;
}
.nav__links a:hover { color: #fff; }
.nav__links a[aria-current="page"] { color: #fff; }
.nav__right { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.lang-switch__label {
  display: none;
}
.lang-switch__select {
  display: none;
}
.lang-flags {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(11, 11, 12, 0.84);
}
.lang-flag {
  height: 28px;
  min-width: 56px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--fg-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 9px;
  cursor: pointer;
  transition: background .15s, color .15s, transform .1s;
}
.lang-flag:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.lang-flag.is-active {
  color: #fff;
  background: rgba(41,151,255,0.22);
}
.lang-flag:active { transform: scale(0.98); }
.lang-flag__icon {
  font-size: 13px;
  line-height: 1;
}
.lang-flag__code {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
}
.nav__cta {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 20px;
  background: var(--red);
  color: #fff;
  border-radius: var(--r);
  transition: background .15s;
}
.nav__cta:hover { background: var(--red-h); }
.nav__logout {
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  color: var(--fg-2);
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.nav__logout:hover { color: #fff; border-color: rgba(255,255,255,0.28); }

/* ── HERO ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--ph-h) + var(--nav-h));
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(3,3,3,0.4) 0%, rgba(3,3,3,0.1) 35%, rgba(3,3,3,0.7) 70%, var(--bg) 100%),
    linear-gradient(to right,  rgba(3,3,3,0.75) 0%, transparent 65%);
}
.hero__body {
  position: relative;
  z-index: 2;
  padding: clamp(60px, 10vh, 120px) clamp(20px, 5vw, 60px) clamp(64px, 9vh, 100px);
  max-width: var(--w);
  margin: 0 auto;
  width: 100%;
}
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}
.hero__kicker::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--red);
  flex-shrink: 0;
}
.hero__headline {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(68px, 13vw, 172px);
  line-height: 0.88;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 28px;
}
.hero__headline em { font-style: normal; color: var(--red); }
.hero__desc {
  max-width: 460px;
  font-size: clamp(15px, 1.3vw, 17px);
  color: rgba(240,235,227,0.72);
  line-height: 1.7;
  margin-bottom: 36px;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--red);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: var(--r);
  border: none;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.btn-primary:hover  { background: var(--red-h); }
.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--fg);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: var(--r);
  border: 1px solid rgba(255,255,255,0.22);
  transition: border-color .15s, color .15s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.55); color: #fff; }

/* Hero stats row */
.hero__stats {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: stretch;
  gap: 0;
  background: rgba(9,9,9,0.75);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.hero__stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px clamp(20px, 4vw, 48px);
  border-right: 1px solid var(--line);
}
.hero__stat:last-child { border-right: none; }
.stat-n {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-l { font-size: 12px; color: var(--fg-2); margin-top: 4px; }

/* ── TICKER ──────────────────────────────────────────────────── */
.ticker {
  overflow: hidden;
  background: var(--red);
  height: 46px;
  display: flex;
  align-items: center;
}
.ticker__track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker-roll 28s linear infinite;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
}
.ticker__track span { padding-right: 56px; }
.ticker__track span.sep { color: rgba(255,255,255,0.5); padding-right: 56px; }
@keyframes ticker-roll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── ABOUT ───────────────────────────────────────────────────── */
.about {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--bg);
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about__visual {
  position: relative;
  aspect-ratio: 4 / 5;
}
.about__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-md);
  filter: grayscale(18%);
}
.about__year {
  position: absolute;
  bottom: -16px;
  right: -20px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(80px, 10vw, 130px);
  line-height: 1;
  color: rgba(255,255,255,0.04);
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  z-index: -1;
}
.about__badge {
  position: absolute;
  bottom: 24px;
  left: -24px;
  background: var(--red);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--r);
  text-align: center;
}
.about__badge-year {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}
.about__badge span:last-child { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }

.about__text { display: flex; flex-direction: column; gap: 24px; }
.about__name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(48px, 6vw, 76px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #fff;
}
.about__tagline {
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.55;
  border-left: 3px solid var(--red);
  padding-left: 18px;
}
.about__copy { font-size: 15px; color: var(--fg-2); line-height: 1.75; }
.about__svc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.about__svc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--fg);
}
.about__svc-item::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}
.about__svc-item:nth-child(even)::before { background: var(--blue-h); }

/* ── SERVICES NAV (INTRO GRID) ───────────────────────────────── */
.svc-intro {
  padding: clamp(60px, 8vw, 100px) 0;
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.svc-intro__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 56px;
}
.svc-intro__sub { max-width: 340px; font-size: 15px; color: var(--fg-2); }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.svc-tile {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-right: 1px solid var(--line);
  transition: flex .3s ease;
}
.svc-tile:last-child { border-right: none; }
.svc-tile__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.45) saturate(0.6);
  transition: filter .4s ease, transform .4s ease;
}
.svc-tile:hover .svc-tile__img { filter: brightness(0.55) saturate(0.8); transform: scale(1.04); }
.svc-tile__body {
  position: relative;
  z-index: 1;
  padding: 16px 14px 18px;
  background: linear-gradient(to top, rgba(3,3,3,0.92) 0%, transparent 100%);
}
.svc-tile__num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--fg-3);
  margin-bottom: 4px;
}
.svc-tile__name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1.15;
}

/* ── SERVICE CHAPTERS ────────────────────────────────────────── */
.chapter {
  position: relative;
  padding: clamp(80px, 11vw, 150px) 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.chapter--alt { background: var(--bg-1); }

/* Large decorative chapter number */
.chapter__num {
  position: absolute;
  top: 0; right: clamp(-10px, -2vw, 10px);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(180px, 25vw, 340px);
  line-height: 0.8;
  color: rgba(255,255,255,0.025);
  letter-spacing: -0.06em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.chapter__num--red  { color: rgba(232,25,44,0.05); }
.chapter__num--blue { color: rgba(26,95,223,0.06); }

.chapter__inner {
  position: relative;
  z-index: 1;
}
.chapter__head { margin-bottom: 52px; }
.chapter__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.chapter__label--red  { color: var(--red); }
.chapter__label--blue { color: var(--blue-h); }
.chapter__label::before { content: ''; width: 20px; height: 1px; background: currentColor; }

.chapter__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.9;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: #fff;
}

.chapter__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.chapter__info { display: flex; flex-direction: column; gap: 24px; }
.chapter__lead {
  font-size: 16px;
  color: var(--fg);
  line-height: 1.7;
}
.chapter__copy { font-size: 14px; color: var(--fg-2); line-height: 1.75; }
.chapter__note {
  font-size: 13px;
  color: var(--fg-2);
  border-left: 2px solid var(--line-2);
  padding-left: 14px;
  line-height: 1.6;
}

.feat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feat-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.5;
}
.feat-list li::before {
  content: '';
  width: 5px; height: 5px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

.chapter__equip-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 12px;
}

.chapter__media img {
  width: 100%;
  border-radius: var(--r-md);
  aspect-ratio: 16/10;
  object-fit: cover;
  filter: brightness(0.85);
}

/* Packages horizontal scroll */
.pkg-scroll-wrap {
  margin-top: 52px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.pkg-scroll-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 20px;
}
.pkg-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.pkg-item {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 20px;
  transition: border-color .2s;
}
.pkg-item:hover { border-color: var(--line-2); }
.pkg-item--hot {
  border-color: var(--red-b);
  background: rgba(232,25,44,0.05);
}
.pkg-item__tier {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pkg-item__badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-d);
  border-radius: 4px;
  padding: 3px 8px;
}
.pkg-item ul {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.pkg-item li {
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.45;
  padding-left: 12px;
  position: relative;
}
.pkg-item li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--fg-3);
  font-size: 11px;
}
.pkg-item__img {
  margin-top: 16px;
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 16/9;
}
.pkg-item__img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.75); }

/* Post software pills */
.post-sw-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.post-sw-pill {
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 10px 18px;
}
.post-sw-pill__name { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 16px; color: #fff; }
.post-sw-pill__role { font-size: 11px; color: var(--fg-2); margin-top: 2px; }
.post-sw-sep { font-size: 20px; color: var(--fg-3); font-weight: 300; }

/* ── PORTFOLIO ───────────────────────────────────────────────── */
.portfolio {
  padding: clamp(80px, 10vw, 130px) 0;
  background: var(--bg-1);
  border-top: 1px solid var(--line);
}
.portfolio__head { margin-bottom: 52px; }
.pf-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 14px;
}
.pf-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.pf-card:nth-child(1) { grid-column: span 7; }
.pf-card:nth-child(2) { grid-column: span 5; }
.pf-card:nth-child(3) { grid-column: span 4; }
.pf-card:nth-child(4) { grid-column: span 4; }
.pf-card:nth-child(5) { grid-column: span 4; }
.pf-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.5) saturate(0.7);
  transition: transform .5s ease, filter .4s ease;
}
.pf-card:hover img { transform: scale(1.04); filter: brightness(0.6) saturate(0.9); }
.pf-card__body {
  position: relative;
  z-index: 1;
  padding: 18px 20px;
  background: linear-gradient(to top, rgba(3,3,3,0.88) 0%, transparent 100%);
}
.pf-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 6px;
}
.pf-tag--red  { background: var(--red-d);  color: var(--red);   border: 1px solid var(--red-b); }
.pf-tag--blue { background: var(--blue-d); color: var(--blue-h); border: 1px solid rgba(45,118,255,0.3); }
.pf-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 4px;
}
.pf-card p { font-size: 12px; color: rgba(240,235,227,0.6); line-height: 1.5; }

/* ── FUNZIONALITÀ ────────────────────────────────────────────── */
.features {
  padding: clamp(80px, 11vw, 150px) 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.features__intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 72px;
}
.features__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.9;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: #fff;
}
.features__sub { font-size: 15px; color: var(--fg-2); line-height: 1.7; max-width: 380px; }
.features__note {
  font-size: 12px;
  color: var(--fg-3);
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.features__note::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--fg-3);
}

/* Feature cards grid */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 72px;
}
.feat-card {
  background: var(--bg-1);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background .2s;
}
.feat-card:hover { background: var(--bg-2); }
.feat-card__n {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--fg-3);
}
.feat-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.feat-card p { font-size: 14px; color: var(--fg-2); line-height: 1.65; }
.feat-card--accent {
  background: rgba(232,25,44,0.07);
  border-left: 2px solid var(--red);
}
.feat-card--accent:hover { background: rgba(232,25,44,0.1); }

/* CRM Flow */
.crm-flow {
  margin-bottom: 72px;
}
.crm-flow__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.crm-flow__label::before { content: ''; width: 20px; height: 1px; background: var(--fg-3); }
.crm-steps {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.crm-step {
  flex: 1;
  padding: 24px 20px;
  background: var(--bg-1);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.crm-step:last-child { border-right: none; }
.crm-step--red  { background: rgba(232,25,44,0.07); }
.crm-step--blue { background: rgba(26,95,223,0.07); }
.crm-step__n {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 13px;
  color: var(--fg-3);
  letter-spacing: 0.1em;
}
.crm-step__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  line-height: 1.1;
}
.crm-step--red  .crm-step__title { color: var(--red-h); }
.crm-step--blue .crm-step__title { color: var(--blue-h); }
.crm-step__desc { font-size: 12px; color: var(--fg-2); line-height: 1.5; }
/* Arrow between steps */
.crm-step::after {
  content: '›';
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  font-size: 20px;
  color: var(--fg-3);
  background: var(--bg-1);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  line-height: 1;
}
.crm-step:last-child::after { display: none; }

/* Email Mockup */
.email-wrap { margin-top: 72px; }
.email-wrap__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.email-wrap__label::before { content: ''; width: 20px; height: 1px; background: var(--fg-3); }
.email-wrap__sub { font-size: 14px; color: var(--fg-2); margin-top: 6px; margin-bottom: 28px; }

.email-mockup {
  max-width: 680px;
  background: #1a1a1e;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh);
}
.email-mockup__chrome {
  background: #141416;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.email-mockup__dots { display: flex; gap: 6px; }
.email-mockup__dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.email-mockup__dots span:nth-child(1) { background: #ff5f57; }
.email-mockup__dots span:nth-child(2) { background: #febc2e; }
.email-mockup__dots span:nth-child(3) { background: #28c840; }
.email-mockup__client-name {
  font-size: 12px;
  color: var(--fg-2);
  margin-left: 8px;
}
.email-mockup__subject-bar {
  padding: 14px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: #1a1a1e;
}
.email-mockup__subject-line {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  margin-bottom: 8px;
}
.email-mockup__from-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.email-mockup__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}
.email-mockup__from-info strong { font-size: 13px; color: var(--fg); display: block; }
.email-mockup__from-info span   { font-size: 11px; color: var(--fg-2); }
.email-mockup__body {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
  color: rgba(240,235,227,0.8);
  line-height: 1.7;
}
.email-mockup__body p  { margin: 0; }
.email-mockup__body strong { color: #fff; }
.email-mockup__body ul {
  list-style: disc;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.email-mockup__cta {
  display: inline-flex;
  align-self: flex-start;
  padding: 12px 28px;
  background: var(--red);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--r);
  margin-top: 6px;
}
.email-mockup__sig {
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 13px;
  color: var(--fg-2);
}

/* ── CONTACTS ────────────────────────────────────────────────── */
.contacts {
  padding: clamp(80px, 10vw, 130px) 0;
  background: var(--bg-1);
  border-top: 1px solid var(--line);
}
.contacts__head { margin-bottom: 56px; }
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.contact-info__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}
.contact-info__brand-text strong { display: block; font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 20px; letter-spacing: 0.04em; color: #fff; }
.contact-info__brand-text span   { font-size: 13px; color: var(--fg-2); }

.contact-list { display: flex; flex-direction: column; gap: 14px; }
.contact-list li { display: flex; align-items: flex-start; gap: 12px; }
.cl-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
  min-width: 72px;
  flex-shrink: 0;
  padding-top: 2px;
}
.contact-list a, .contact-list span { font-size: 14px; color: var(--fg-2); }
.contact-list a:hover { color: #fff; }

.socials {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.socials a {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-2);
  padding: 8px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  transition: color .15s, border-color .15s;
}
.socials a:hover { color: #fff; border-color: rgba(255,255,255,0.28); }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form .field { background: var(--bg-2); border-color: var(--line-2); }
.contact-form select.field {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.62) 50%),
    linear-gradient(135deg, rgba(255,255,255,0.62) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 13px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.contact-form textarea.field { resize: vertical; min-height: 120px; }
.form-submit {
  align-self: flex-start;
  padding: 14px 36px;
  background: var(--red);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--r);
  cursor: pointer;
  transition: background .15s;
}
.form-submit:hover { background: var(--red-h); }
.form-note {
  font-size: 12px;
  color: var(--fg-2);
  max-width: 560px;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer {
  background: #000;
  border-top: 1px solid var(--line);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.footer-copy { font-size: 12px; color: var(--fg-3); text-align: center; }
.footer-dh { font-size: 12px; color: var(--fg-3); text-align: right; }
.footer-dh a { color: var(--acc); }
.footer-dh a:hover { color: #fff; }

/* ── INNER PAGES (SERVIZI / SVILUPPO) ───────────────────────── */
.page-hero {
  padding: calc(var(--ph-h) + var(--nav-h) + 48px) 0 48px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(232,25,44,0.08) 0%, rgba(232,25,44,0) 55%),
    var(--bg);
}
.page-hero--brief {
  background:
    linear-gradient(180deg, rgba(26,95,223,0.11) 0%, rgba(26,95,223,0) 58%),
    var(--bg);
}
.page-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 44px;
  align-items: end;
}
.page-hero__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(46px, 7.5vw, 94px);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  color: #fff;
}
.page-hero__text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--fg-2);
  max-width: 520px;
}

.cards-section {
  padding: clamp(70px, 9vw, 110px) 0;
  background: var(--bg);
}
.cards-section--alt {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
}
.cards-section__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 34px;
}

.service-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.service-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.service-card__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: brightness(0.76) saturate(0.84);
}
.service-card__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-card__kicker {
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 600;
}
.service-card__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 31px;
  line-height: 0.95;
  text-transform: uppercase;
  color: #fff;
}
.service-card__desc {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.55;
}
.service-card__list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.service-card__list li {
  font-size: 13px;
  color: var(--fg);
  line-height: 1.45;
  padding-left: 12px;
  position: relative;
}
.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
}
.pill-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pill-list span {
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fg-2);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 4px 10px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.mini-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
}
.mini-card--hot {
  border-color: var(--red-b);
  background: rgba(232,25,44,0.05);
}
.mini-card__kicker {
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.mini-card h3 {
  margin-top: 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 30px;
  line-height: 0.9;
  text-transform: uppercase;
  color: #fff;
}
.mini-card p {
  margin-top: 10px;
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.5;
}
.mini-card--link {
  display: block;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.mini-card--link:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.22);
  background: #17171c;
}

.project-cta {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.project-cta p {
  font-size: 14px;
  color: var(--fg-2);
  max-width: 640px;
}

.brief-section {
  padding: clamp(68px, 9vw, 110px) 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.brief-section--alt { background: var(--bg-1); }

.brief-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.brief-grid--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.brief-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
}
.brief-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 30px;
  line-height: 0.93;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #fff;
}
.brief-card p {
  margin-top: 8px;
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.55;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.flow-step {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-2);
  padding: 16px;
}
.flow-step span {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--red-b);
  border-radius: 999px;
  padding: 3px 8px;
}
.flow-step h3 {
  margin-top: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px;
  line-height: 0.95;
  text-transform: uppercase;
  color: #fff;
}
.flow-step p {
  margin-top: 8px;
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.5;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.roadmap-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-2);
  padding: 18px;
}
.roadmap-card--hot {
  border-color: rgba(26,95,223,0.35);
  background: rgba(26,95,223,0.08);
}
.roadmap-card__phase {
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--blue-h);
}
.roadmap-card h3 {
  margin-top: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 34px;
  line-height: 0.9;
  text-transform: uppercase;
  color: #fff;
}
.roadmap-card ul {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.roadmap-card li {
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.45;
  position: relative;
  padding-left: 12px;
}
.roadmap-card li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--red);
}

/* ── DOCUMENTATION PAGE (DENKHUB STYLE) ─────────────────────── */
.site-shell--doc { background: #0a1220; min-height: 100vh; }
.doc-top {
  position: fixed;
  top: var(--ph-h);
  left: 0;
  right: 0;
  z-index: 45;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(20px, 5vw, 60px);
  background: rgba(8, 16, 30, 0.92);
  border-bottom: 1px solid rgba(95, 137, 212, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.doc-top__brand {
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #d9e8ff;
}
.doc-top__right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-shell--doc .lang-flags {
  border-color: rgba(126, 162, 224, 0.34);
  background: rgba(9, 20, 38, 0.9);
}
.site-shell--doc .lang-flag {
  color: #b8ceed;
}
.site-shell--doc .lang-flag:hover {
  color: #fff;
  background: rgba(132, 173, 239, 0.18);
}
.site-shell--doc .lang-flag.is-active {
  color: #e4efff;
  background: rgba(132, 173, 239, 0.28);
}
.doc-top__back {
  font-size: 12px;
  color: #b2c9ee;
  border: 1px solid rgba(126, 162, 224, 0.34);
  border-radius: 999px;
  padding: 7px 14px;
}
.doc-top__back:hover { color: #fff; border-color: rgba(195, 218, 255, 0.58); }

.doc-main {
  padding-top: calc(var(--ph-h) + 58px + 34px);
  padding-bottom: 60px;
}
.doc-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}
.doc-hero {
  border: 1px solid rgba(94, 136, 212, 0.30);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(33, 58, 102, 0.48) 0%, rgba(12, 23, 42, 0.82) 100%);
  padding: clamp(26px, 4vw, 40px);
}
.doc-kicker {
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #86aff0;
  font-weight: 600;
}
.doc-title {
  margin-top: 10px;
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.05;
  color: #f5f9ff;
  letter-spacing: -0.02em;
}
.doc-lead {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.7;
  color: #c4d8f7;
  max-width: 860px;
}
.doc-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.doc-pill {
  border: 1px solid rgba(113, 153, 223, 0.28);
  background: rgba(7, 18, 35, 0.72);
  border-radius: 10px;
  padding: 12px;
}
.doc-pill__label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #88b0ef;
}
.doc-pill__value {
  margin-top: 6px;
  font-size: 14px;
  color: #e4efff;
  line-height: 1.5;
}

.doc-section {
  margin-top: 16px;
  border: 1px solid rgba(91, 131, 206, 0.26);
  border-radius: 14px;
  background: rgba(9, 18, 34, 0.92);
  overflow: hidden;
}
.doc-section__head {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(84, 121, 192, 0.24);
  background: rgba(16, 31, 56, 0.55);
}
.doc-section__label {
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #82acef;
  font-weight: 600;
}
.doc-section__title {
  margin-top: 5px;
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 24px;
  line-height: 1.1;
  color: #f6f9ff;
}
.doc-section__body { padding: 16px; }
.doc-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.doc-card {
  border: 1px solid rgba(97, 138, 210, 0.24);
  border-radius: 10px;
  background: rgba(8, 20, 39, 0.84);
  padding: 14px;
}
.doc-card h3 {
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  color: #eff5ff;
  line-height: 1.2;
}
.doc-card p {
  margin-top: 8px;
  font-size: 13px;
  color: #b8cdee;
  line-height: 1.55;
}
.doc-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.doc-step {
  border: 1px solid rgba(95, 138, 214, 0.24);
  border-radius: 10px;
  background: rgba(10, 22, 42, 0.84);
  padding: 12px;
}
.doc-step span {
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #8ab0ef;
}
.doc-step h3 {
  margin-top: 7px;
  font-size: 16px;
  color: #f4f8ff;
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}
.doc-step p {
  margin-top: 6px;
  font-size: 12px;
  color: #b3c8ea;
  line-height: 1.5;
}
.doc-roadmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.doc-roadmap__item {
  border: 1px solid rgba(97, 138, 210, 0.24);
  border-radius: 10px;
  background: rgba(8, 19, 36, 0.9);
  padding: 14px;
}
.doc-roadmap__phase {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #84acee;
}
.doc-roadmap__item h3 {
  margin-top: 8px;
  font-size: 19px;
  color: #f4f9ff;
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}
.doc-roadmap__item ul {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.doc-roadmap__item li {
  font-size: 12px;
  color: #b9cfef;
  line-height: 1.45;
  padding-left: 11px;
  position: relative;
}
.doc-roadmap__item li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #73a2ef;
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about__grid    { grid-template-columns: 1fr; gap: 48px; }
  .about__visual  { max-width: 480px; }
  .about__year    { display: none; }

  .chapter__body  { grid-template-columns: 1fr; }

  .svc-grid       { grid-template-columns: repeat(3, 1fr); }
  .svc-tile:nth-child(4), .svc-tile:nth-child(5) { display: none; }

  .feat-grid      { grid-template-columns: repeat(2, 1fr); }
  .crm-steps      { flex-wrap: wrap; }
  .crm-step       { flex: 1 1 40%; border-right: none; border-bottom: 1px solid var(--line); }
  .crm-step:last-child { border-bottom: none; }
  .crm-step::after { display: none; }

  .contacts-grid  { grid-template-columns: 1fr; gap: 48px; }

  .page-hero__grid { grid-template-columns: 1fr; gap: 16px; }
  .service-board { grid-template-columns: 1fr; }
  .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brief-grid, .brief-grid--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roadmap-grid { grid-template-columns: 1fr; }

  .doc-grid { grid-template-columns: 1fr 1fr; }
  .doc-cards { grid-template-columns: 1fr 1fr; }
  .doc-flow { grid-template-columns: 1fr 1fr; }
  .doc-roadmap { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .dh-bar {
    padding: 0 10px;
    font-size: 10px;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .login-shell {
    align-items: flex-start;
    overflow: auto;
    padding: calc(var(--ph-h) + 14px) 14px 14px;
  }
  .login-wrap {
    margin: 10px auto 20px;
    max-width: 380px;
  }
  .login-card { padding: 28px 22px; }
  .login-card__title { font-size: 22px; }

  .nav {
    height: auto;
    min-height: var(--nav-h);
    padding: 8px 14px 10px;
    align-items: flex-start;
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .nav__brand { font-size: 13px; gap: 8px; }
  .nav__brand img { width: 24px; height: 24px; }
  .nav__right { margin-left: auto; gap: 8px; }
  .lang-flags { padding: 2px; gap: 2px; }
  .lang-flag {
    height: 26px;
    min-width: 48px;
    gap: 4px;
    padding: 0 8px;
  }
  .lang-flag__icon { font-size: 12px; }
  .lang-flag__code { font-size: 11px; }
  .nav__cta { display: none; }
  .nav__logout { padding: 6px 12px; font-size: 11px; }
  .nav__links {
    display: flex;
    order: 3;
    width: 100%;
    gap: 14px;
    padding: 2px 2px 4px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .nav__links::-webkit-scrollbar { display: none; }
  .nav__links a { font-size: 12px; }

  .hero { padding-top: calc(var(--ph-h) + 118px); }
  .hero__body {
    padding: clamp(40px, 8vh, 72px) 20px 40px;
  }
  .hero__headline { font-size: clamp(46px, 14vw, 78px); }
  .hero__desc {
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 26px;
    max-width: none;
  }

  .hero__stats { display: grid; grid-template-columns: 1fr 1fr; }
  .hero__stat {
    padding: 16px 14px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .hero__stat:nth-child(2n) { border-right: none; }
  .hero__stat:nth-child(n+3) { border-bottom: none; }
  .stat-n { font-size: clamp(22px, 8vw, 30px); }
  .stat-l { font-size: 11px; }

  .page-hero {
    padding-top: calc(var(--ph-h) + 118px + 26px);
    padding-bottom: 34px;
  }
  .page-hero__title { font-size: clamp(34px, 10vw, 54px); }
  .page-hero__text {
    font-size: 14px;
    line-height: 1.6;
    max-width: none;
  }

  .svc-grid       { grid-template-columns: repeat(2, 1fr); }
  .svc-tile:nth-child(n+4) { display: none; }
  .svc-intro__head { flex-direction: column; gap: 16px; }

  .feat-grid      { grid-template-columns: 1fr; }

  .pf-grid        { grid-template-columns: 1fr; }
  .pf-card:nth-child(1),
  .pf-card:nth-child(2),
  .pf-card:nth-child(3),
  .pf-card:nth-child(4),
  .pf-card:nth-child(5) { grid-column: span 1; }
  .pf-card { aspect-ratio: 16 / 11; }

  .cards-section  { padding: 54px 0; }
  .service-card__img  { height: 180px; }
  .service-card__body { padding: 14px; gap: 10px; }
  .service-card__title { font-size: 26px; }

  .form-row       { grid-template-columns: 1fr; }
  .footer-inner   { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-dh      { text-align: left; }

  .crm-step       { flex: 1 1 100%; }

  .cards-section__head { flex-direction: column; align-items: flex-start; }
  .mini-grid { grid-template-columns: 1fr; }
  .brief-grid, .brief-grid--wide { grid-template-columns: 1fr; }
  .flow-grid { grid-template-columns: 1fr; }
  .project-cta { align-items: flex-start; }
  .project-cta .btn-primary { width: 100%; justify-content: center; }

  .doc-grid,
  .doc-cards,
  .doc-flow { grid-template-columns: 1fr; }
  .doc-top {
    height: auto;
    min-height: 58px;
    padding: 8px 14px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .doc-top__right {
    width: 100%;
    justify-content: space-between;
    order: 1;
  }
  .doc-top__brand {
    width: 100%;
    order: 2;
    font-size: 11px;
    letter-spacing: 0.03em;
    text-transform: none;
    color: #cfe1ff;
  }
  .doc-main { padding-top: calc(var(--ph-h) + 108px); }
  .doc-title { font-size: clamp(26px, 9vw, 38px); }
  .doc-lead {
    font-size: 14px;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .about__badge {
    left: 10px;
    bottom: 12px;
    padding: 10px 14px;
  }

  .hero { padding-top: calc(var(--ph-h) + 124px); }
  .hero__stats  { grid-template-columns: 1fr; }
  .hero__stat {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .hero__stat:last-child { border-bottom: none; }

  .svc-grid     { grid-template-columns: 1fr; }
  .svc-tile:nth-child(n) { display: flex; }
  .pkg-scroll   { grid-template-columns: 1fr; }

  .cards-section { padding: 48px 0; }
  .page-hero {
    padding-top: calc(var(--ph-h) + 132px);
    padding-bottom: 28px;
  }
  .page-hero__title { font-size: clamp(30px, 11vw, 44px); }

  .doc-main { padding-top: calc(var(--ph-h) + 124px); }
  .doc-top__back { padding: 6px 12px; font-size: 11px; }
}
