:root {
    --ground: #071320;
    --ground-deep: #040d17;
    --surface: #0c1c2b;
    --surface-2: #112738;
    --line: #1a3348;
    --line-soft: #142839;
    --text: #e7eff7;
    --muted: #91a8bd;
    --muted-dim: #6b8299;
    --accent: #0090dc;       /* strutturale: bordi, icone, linee, pulsanti */
    --accent-text: #1ba6f0;  /* testuale: titoli e occhielli, viene avanti */
    --accent-deep: #002d8d;
    --accent-glow: rgba(0, 144, 220, .16);
    --live: #3ddc97;

    --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --f-body: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
    --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

    --wrap: 1180px;
    --rail: 168px;

    /* raggi: niente spigoli vivi, forme morbide su tutta la pagina */
    --r: 14px;      /* card, pannelli, campi */
    --r-sm: 10px;   /* elementi piccoli */
    --r-lg: 20px;   /* pannelli grandi */
    --r-pill: 999px;
  }

  * { box-sizing: border-box; }

  body {
    margin: 0;
    background: var(--ground);
    color: var(--text);
    font-family: var(--f-body);
    font-size: 18px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  h1, h2, h3 {
    font-family: var(--f-display);
    text-wrap: balance;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.08;
  }

  p { margin: 0; }

  a { color: inherit; }

  :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: var(--r-sm);
  }

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

  .eyebrow {
    font-family: var(--f-mono);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent-text);
  }

  /* ---------- header ---------- */

  .site-head {
    position: sticky;
    top: 0;
    z-index: 40;
    background: color-mix(in srgb, var(--ground) 88%, transparent);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-soft);
  }

  .head-in {
    display: flex;
    align-items: center;
    gap: 34px;
    height: 124px;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    flex-shrink: 0;
  }

  .brand img {
    display: block;
    height: 90px;
    width: auto;
  }

  .nav {
    display: flex;
    gap: 30px;
    margin-left: auto;
    font-size: 18px;
    font-weight: 500;
  }

  .nav a {
    text-decoration: none;
    color: var(--text);
    transition: color .18s ease;
    position: relative;
    padding-block: 4px;
  }

  .nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 100%; bottom: 0;
    height: 1px;
    background: var(--accent);
    transition: right .28s cubic-bezier(.22,.7,.3,1);
  }

  .nav a:hover { color: var(--text); }
  .nav a:hover::after { right: 0; }

  .head-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--f-mono);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    padding: 10px 18px;
    white-space: nowrap;
    transition: border-color .2s ease, background .2s ease;
  }

  .head-cta:hover { border-color: var(--accent); background: var(--accent-glow); }

  /* ---------- hero ---------- */

  .hero {
    position: relative;
    padding-top: 96px;
    padding-bottom: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--line-soft);
  }

  .hero::before {
    content: "";
    position: absolute;
    top: -220px; left: 50%;
    width: 900px; height: 520px;
    transform: translateX(-58%);
    background: radial-gradient(ellipse at center, rgba(24,102,165,.30), transparent 68%);
    pointer-events: none;
  }

  .hero-in { position: relative; z-index: 2; max-width: 780px; }

  .hero h1 {
    font-size: clamp(2.55rem, 5.9vw, 4.15rem);
    font-weight: 800;
    margin-top: 20px;
  }

  .hero h1 em {
    font-style: normal;
    color: var(--accent-text);
  }

  .hero-sub {
    margin-top: 24px;
    font-size: clamp(1.12rem, 1.9vw, 1.38rem);
    color: var(--muted);
    max-width: 61ch;
  }

  .hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 38px;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--f-body);
    font-size: 16.5px;
    font-weight: 600;
    text-decoration: none;
    padding: 14px 26px;
    border-radius: var(--r-pill);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .16s ease, background .2s ease, border-color .2s ease;
  }

  .btn-primary {
    background: var(--accent);
    color: #04121d;
  }

  .btn-primary:hover { background: #33abec; transform: translateY(-1px); }

  .btn-ghost {
    border-color: var(--line);
    color: var(--text);
  }

  .btn-ghost:hover { border-color: var(--accent); background: var(--accent-glow); }

  .btn .arw { transition: transform .22s cubic-bezier(.22,.7,.3,1); }
  .btn:hover .arw { transform: translateX(4px); }

  .trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 30px;
    margin-top: 52px;
    padding-bottom: 8px;
    font-family: var(--f-mono);
    font-size: 13.5px;
    letter-spacing: .04em;
    color: var(--muted-dim);
  }

  .trust li { display: flex; align-items: center; gap: 9px; }

  .trust ul { display: contents; }

  .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--live);
    flex-shrink: 0;
  }

  .dot.pulse { animation: pulse 2.4s ease-in-out infinite; }

  @keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(61,220,151,.45); }
    50%      { box-shadow: 0 0 0 6px rgba(61,220,151,0); }
  }

  .dot.idle { background: var(--accent); }

  #trace {
    display: block;
    width: 100%;
    height: 170px;
    margin-top: 34px;
  }

  /* ---------- sezioni con rail + spina ---------- */

  .sec {
    position: relative;
    padding-block: 92px;
    border-bottom: 1px solid var(--line-soft);
  }

  .sec-grid {
    display: grid;
    grid-template-columns: var(--rail) 1fr;
    gap: 0 44px;
  }

  .rail {
    position: relative;
    padding-top: 5px;
  }

  .rail-label {
    font-family: var(--f-mono);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted-dim);
  }

  /* la hairline continua: il tratto unico del logo, tradotto in sistema */
  .rail::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 34px;
    bottom: -92px;
    width: 1px;
    background: linear-gradient(to bottom, var(--line), var(--line-soft));
  }

  .rail::after {
    content: "";
    position: absolute;
    left: 0; top: 8px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(0,144,220,.12);
  }

  .rail-label { padding-left: 22px; }

  .sec-head { max-width: 62ch; }

  .sec-head h2 {
    font-size: clamp(2.15rem, 4.3vw, 3.35rem);
    font-weight: 700;
  }

  .sec-head p {
    margin-top: 16px;
    color: var(--muted);
    font-size: 1.15rem;
  }

  /* ---------- soluzioni ---------- */

  .cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
    gap: 16px;
    margin-top: 46px;
  }

  .card {
    background: var(--surface);
    border: 1px solid rgba(0, 144, 220, .28);
    border-radius: var(--r);
    padding: 28px 28px 32px;
    position: relative;
    transition: background .28s ease, border-color .28s ease, transform .24s cubic-bezier(.22,.7,.3,1);
  }

  .card:hover {
    background: var(--surface-2);
    border-color: var(--accent);
    transform: translateY(-3px);
  }

  .card h3 {
    font-size: 1.34rem;
    font-weight: 600;
    letter-spacing: -0.01em;
  }

  .card p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.62;
  }

  /* ---------- differenziatori ---------- */

  .diffs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px 52px;
    margin-top: 48px;
  }

  .diff { border-top: 1px solid var(--line); padding-top: 20px; }

  .diff h3 {
    font-size: 1.26rem;
    font-weight: 600;
    display: flex;
    align-items: baseline;
    gap: 11px;
  }

  .diff h3::before {
    content: "";
    width: 14px; height: 1px;
    background: var(--accent);
    flex-shrink: 0;
    transform: translateY(-4px);
  }

  .diff p { margin-top: 10px; color: var(--muted); font-size: 1.05rem; }

  /* ---------- supporto ---------- */

  .support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
    margin-top: 44px;
  }

  .support-card {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 26px 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    text-decoration: none;
    transition: border-color .2s ease, transform .18s ease;
  }

  .support-card:hover { border-color: var(--accent); transform: translateY(-2px); }

  .support-card .tag {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--accent);
  }

  .support-card strong { font-family: var(--f-display); font-size: 1.24rem; font-weight: 600; }

  .support-card span { color: var(--muted); font-size: 1.02rem; }

  .phone-note {
    margin-top: 26px;
    padding: 20px 24px;
    border: 1px solid var(--line-soft);
    border-left: 3px solid var(--accent);
    border-radius: var(--r);
    background: linear-gradient(90deg, var(--accent-glow), transparent 70%);
    color: var(--muted);
    font-size: 1.07rem;
  }

  .phone-note a { color: var(--text); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--accent); }

  /* ---------- avvisi ---------- */

  .feed { margin-top: 42px; border-top: 1px solid var(--line-soft); }

  .feed-row {
    display: grid;
    grid-template-columns: 118px 1fr auto;
    gap: 22px;
    align-items: baseline;
    padding: 19px 4px;
    border-bottom: 1px solid var(--line-soft);
    text-decoration: none;
    transition: background .2s ease, padding-left .2s ease;
  }

  .feed-row:hover { background: var(--surface); padding-left: 12px; }

  .feed-date {
    font-family: var(--f-mono);
    font-size: 12.5px;
    color: var(--muted-dim);
    font-variant-numeric: tabular-nums;
  }

  .feed-title { font-size: 1rem; font-weight: 500; }

  .feed-src {
    font-family: var(--f-mono);
    font-size: 10.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--line);
    padding: 3px 8px;
    border-radius: var(--r-pill);
    white-space: nowrap;
  }

  .feed-note {
    margin-top: 20px;
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--muted-dim);
    letter-spacing: .02em;
  }

  /* ---------- contatti ---------- */

  .contact-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 56px;
    margin-top: 46px;
  }

  .field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }

  .field label {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--muted-dim);
  }

  .field input,
  .field select,
  .field textarea {
    font-family: var(--f-body);
    font-size: 16.5px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 12px 14px;
    transition: border-color .18s ease, background .18s ease;
  }

  .field input:focus,
  .field select:focus,
  .field textarea:focus {
    border-color: var(--accent);
    background: var(--surface-2);
    outline: none;
  }

  .field textarea { resize: vertical; min-height: 118px; }

  .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

  .form-foot {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 6px;
  }

  .form-foot small { color: var(--muted-dim); font-size: .85rem; max-width: 34ch; }

  .info-block { display: flex; flex-direction: column; gap: 26px; }

  .info-item { display: flex; flex-direction: column; gap: 5px; }

  .info-item .k {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--muted-dim);
  }

  .info-item .v { font-size: 1.02rem; }

  .info-item a { text-decoration: none; border-bottom: 1px solid var(--line); }

  .info-item a:hover { border-color: var(--accent); }

  .todo {
    display: inline-block;
    font-family: var(--f-mono);
    font-size: 10.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #f0b429;
    border: 1px dashed rgba(240,180,41,.45);
    padding: 2px 7px;
    border-radius: var(--r-pill);
  }

  /* ---------- footer ---------- */

  .site-foot { padding-block: 46px 40px; }

  .foot-in {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 34px;
  }

  .foot-brand { display: flex; align-items: center; gap: 10px; }

  .foot-brand img { height: 46px; width: auto; opacity: .92; }

  .foot-links { display: flex; gap: 22px; margin-left: auto; font-size: .9rem; }

  .foot-links a { color: var(--muted); text-decoration: none; }
  .foot-links a:hover { color: var(--text); }

  .foot-legal {
    width: 100%;
    padding-top: 22px;
    border-top: 1px solid var(--line-soft);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    align-items: center;
    font-size: .85rem;
    color: var(--muted-dim);
  }

  /* ---------- ingresso ---------- */

  .rise { opacity: 0; transform: translateY(14px); animation: rise .7s cubic-bezier(.22,.7,.3,1) forwards; }
  .d1 { animation-delay: .05s; } .d2 { animation-delay: .13s; }
  .d3 { animation-delay: .21s; } .d4 { animation-delay: .29s; } .d5 { animation-delay: .37s; }

  @keyframes rise { to { opacity: 1; transform: none; } }

  @media (prefers-reduced-motion: reduce) {
    .rise { animation: none; opacity: 1; transform: none; }
    .dot.pulse { animation: none; }
    * { transition-duration: .01ms !important; }
  }

  /* ---------- responsive ---------- */

  @media (max-width: 920px) {
    .nav { display: none; }
    .sec-grid { grid-template-columns: 1fr; gap: 0; }
    .rail { padding-bottom: 26px; }
    .rail::before { display: none; }
    .rail::after { top: 6px; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  }

  @media (max-width: 620px) {
    body { font-size: 16px; }
    .wrap { padding-inline: 20px; }
    .hero { padding-top: 62px; }
    .sec { padding-block: 66px; }
    .field-row { grid-template-columns: 1fr; }
    .feed-row { grid-template-columns: 1fr; gap: 6px; }
    .feed-src { justify-self: start; }
    #trace { height: 120px; }
    .foot-links { margin-left: 0; width: 100%; }
  }
/* ==================== PAGINA PIATTAFORMA ==================== */

.page-hero {
  position: relative;
  padding-top: 84px;
  padding-bottom: 74px;
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -260px; left: 50%;
  width: 860px; height: 520px;
  transform: translateX(-52%);
  background: radial-gradient(ellipse at center, rgba(24,102,165,.26), transparent 68%);
  pointer-events: none;
}

.page-hero .inner { position: relative; z-index: 2; max-width: 760px; }

.page-hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.2rem);
  font-weight: 800;
  margin-top: 18px;
}

.page-hero h1 em { font-style: normal; color: var(--accent-text); }

.page-hero .lede {
  margin-top: 22px;
  font-size: clamp(1.12rem, 1.8vw, 1.32rem);
  color: var(--muted);
  max-width: 60ch;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-dim);
  text-decoration: none;
}

.back-link:hover { color: var(--accent); }

/* ---- il flusso: nodi su una linea che non si interrompe ---- */

.pipeline { margin-top: 8px; }

.stage {
  position: relative;
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 0 26px;
  padding-bottom: 40px;
}

.stage:last-child { padding-bottom: 0; }

.stage-mark {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 2px;
}

.stage-mark .idx {
  position: relative;
  z-index: 2;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* segmento verticale che collega questo nodo al successivo */
.stage:not(:last-child) .stage-mark::after {
  content: "";
  position: absolute;
  top: 34px; bottom: -6px;
  left: 50%;
  width: 1px;
  margin-left: -0.5px;
  background: linear-gradient(to bottom, var(--accent), var(--line));
  opacity: .55;
}

.stage-body {
  border: 1px solid var(--line-soft);
  background: var(--surface);
  border-radius: var(--r);
  padding: 22px 26px 24px;
  transition: border-color .22s ease, transform .18s ease;
}

.stage:hover .stage-body { border-color: var(--line); transform: translateX(2px); }

.stage-body .who {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

.stage-body h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 7px;
}

.stage-body p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 1.05rem;
}

.stage-body .bits {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 15px;
}

.bit {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--muted-dim);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-pill);
  padding: 4px 12px;
}

/* ---- due piattaforme affiancate ---- */

.twin {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 46px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px 32px 38px;
  background: linear-gradient(180deg, var(--surface), var(--ground) 78%);
  position: relative;
}

.panel-name {
  font-family: var(--f-display);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.panel-name b { color: var(--accent); font-weight: 700; }

.panel-role {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-top: 6px;
}

.panel > p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.07rem;
}

.panel ul {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.panel li {
  display: grid;
  grid-template-columns: 15px 1fr;
  gap: 11px;
  align-items: start;
  font-size: 1.04rem;
  color: var(--text);
}

.panel li::before {
  content: "";
  width: 9px; height: 1px;
  background: var(--accent);
  margin-top: .72em;
}

/* ---- confronto PMI / enterprise ---- */

.compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 44px;
}

.col {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: 28px 26px 32px;
}

.col.hi {
  background: var(--surface-2);
  border-color: rgba(0,144,220,.34);
}

.col .col-k {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.col.hi .col-k { color: var(--accent); }

.col h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 10px;
}

.col p { margin-top: 12px; color: var(--muted); font-size: 1.03rem; }

/* ---- affermazione forte ---- */

.kicker {
  margin-top: 0;
  padding: 54px 0 4px;
  max-width: 24ch;
}

.kicker .big {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.kicker .big em { font-style: normal; color: var(--accent-text); }

@media (max-width: 620px) {
  .stage { grid-template-columns: 42px 1fr; gap: 0 16px; }
  .stage-mark .idx { width: 28px; height: 28px; font-size: 12px; }
  .stage:not(:last-child) .stage-mark::after { top: 28px; }
  .stage-body { padding: 18px 18px 20px; }
  .panel { padding: 24px 22px 28px; }
}

/* ==================== SCORRIMENTO E COMPARSA ==================== */

html { scroll-behavior: smooth; }

/* le ancore non devono finire sotto l'header appiccicato */
[id] { scroll-margin-top: 116px; }

/* Comparsa allo scroll. Le classi le aggiunge site.js:
   senza JS il contenuto resta visibile, mai nascosto. */
.r-in {
  opacity: 0;
  transform: translateY(20px);
}

.r-on {
  opacity: 1;
  transform: none;
  transition: opacity .8s cubic-bezier(.22,.7,.3,1),
              transform .8s cubic-bezier(.22,.7,.3,1);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .r-in { opacity: 1; transform: none; }
  .r-on { transition: none; }
}

/* ==================== AVVISO SITO IN COSTRUZIONE ==================== */
/* Temporaneo: da RIMUOVERE prima dello switch su www.vtechsrl.it
   (togliere il blocco .wip in HTML e queste regole). */

.wip {
  background: linear-gradient(100deg, #f0870f, #ffab3d 55%, #f0870f);
  color: #2a1602;
  text-align: center;
  padding: 18px 24px;
  position: relative;
  overflow: hidden;
}

.wip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(42, 22, 2, .10) 0 14px,
    transparent 14px 28px
  );
  pointer-events: none;
}

.wip-in {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.wip strong {
  font-family: var(--f-display);
  font-size: clamp(1.15rem, 2.6vw, 1.7rem);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.1;
}

.wip span {
  font-family: var(--f-mono);
  font-size: clamp(11.5px, 1.4vw, 13px);
  letter-spacing: .05em;
  max-width: 62ch;
}

/* nota marchi di terzi, in fondo al footer */
.foot-trademarks {
  width: 100%;
  padding-top: 14px;
  font-size: .78rem;
  line-height: 1.55;
  color: var(--muted-dim);
  max-width: 88ch;
}

/* ==================== ICONE ==================== */
/* Lucide (licenza ISC), inline come SVG: si colorano con currentColor,
   non aggiungono richieste HTTP e non dipendono da CDN esterni.
   Tratto singolo, coerente con la linea continua del logo. */

.card-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  background: #ffffff;
  color: var(--accent-deep);
  transition: background .28s ease, transform .28s cubic-bezier(.22,.7,.3,1);
}

.card-ico svg {
  display: block;
  width: 21px;
  height: 21px;
}

.card:hover .card-ico {
  background: #eaf6fe;
  transform: translateY(-2px);
}

/* ==================== FASCIA A COLORE PIENO ====================
   Stacco cromatico fra le sezioni: una banda ciano spezza la sequenza
   di sezioni scure. Testo navy su ciano, contrasto ampiamente sufficiente. */

.sec.band {
  background: linear-gradient(160deg, #1ba4e8, #0083cf 72%);
  border-bottom: none;
  color: #06121e;
}

.sec.band .rail-label { color: rgba(6, 18, 30, .62); }

.sec.band .rail::before {
  background: linear-gradient(to bottom, rgba(6,18,30,.34), rgba(6,18,30,.08));
}

.sec.band .rail::after {
  background: #06121e;
  box-shadow: 0 0 0 4px rgba(6, 18, 30, .12);
}

.sec.band .sec-head h2 { color: #06121e; }

.sec.band .sec-head p,
.sec.band .lede { color: rgba(6, 18, 30, .78); }

.sec.band .btn-primary {
  background: #06121e;
  color: #eaf6fe;
}

.sec.band .btn-primary:hover { background: #0e2033; }

.sec.band .btn-ghost {
  border-color: rgba(6, 18, 30, .38);
  color: #06121e;
}

.sec.band .btn-ghost:hover {
  border-color: #06121e;
  background: rgba(255, 255, 255, .28);
}

/* bordi ciano coerenti anche sugli altri contenitori */
.col,
.stage-body { border-color: rgba(0, 144, 220, .26); }

.col.hi { border-color: rgba(0, 144, 220, .5); }

.support-card { border-color: rgba(0, 144, 220, .28); }

.panel { border-color: rgba(0, 144, 220, .3); }

/* la fascia piena: testo e cornici invertiti */
.sec.band .kicker .big { color: #06121e; }
.sec.band .kicker .big em { color: #08324f; }

/* ==================== LA SEDE — foto affiancata al testo ==================== */

.sede-in {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
  margin-top: 8px;
}

.sede-txt h2 {
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-top: 12px;
}

.sede-txt p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 46ch;
}

.sede-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 144, 220, .4);
  padding-bottom: 3px;
}

.sede-link:hover { border-color: var(--accent); }

.sede-img {
  margin: 0;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid rgba(0, 144, 220, .26);
  line-height: 0;
}

.sede-img img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 72% center;
}

@media (max-width: 820px) {
  .sede-in { grid-template-columns: 1fr; gap: 28px; }
  .sede-img img { aspect-ratio: 16 / 9; }
}
/* ==================== MARCHI E CLIENTI ====================
   I loghi arrivano con sfondi diversi (bianco, rosso, grigio scuro):
   la piastrella chiara li normalizza e li rende leggibili su fondo navy. */

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(146px, 1fr));
  gap: 14px;
  margin-top: 42px;
}

.logo-tile {
  display: grid;
  place-items: center;
  padding: 18px 20px;
  min-height: 92px;
  background: #f4f8fb;
  border: 1px solid rgba(0, 144, 220, .22);
  border-radius: var(--r);
  transition: transform .24s cubic-bezier(.22,.7,.3,1), border-color .24s ease, background .24s ease;
}

.logo-tile:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: #ffffff;
}

.logo-tile img {
  display: block;
  max-width: 100%;
  max-height: 46px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* i clienti restano piu' discreti dei marchi: e' una prova, non una vetrina */
.logo-grid.clients {
  grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
}

.logo-grid.clients .logo-tile {
  min-height: 78px;
  padding: 14px 16px;
  background: #eef4f9;
}

.logo-grid.clients .logo-tile img {
  max-height: 40px;
  filter: grayscale(1);
  opacity: .82;
  transition: filter .3s ease, opacity .3s ease;
}

.logo-grid.clients .logo-tile:hover img {
  filter: none;
  opacity: 1;
}

@media (max-width: 620px) {
  .logo-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
  .logo-tile { min-height: 76px; padding: 14px; }
  .logo-tile img { max-height: 36px; }
}

/* accesso a VSmart nell'intestazione: piu' marcato del numero di telefono,
   perche' e' l'unica azione "da cliente" della barra */
.head-app {
  gap: 8px;
  font-weight: 600;
  color: #04121d;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 0 rgba(0, 144, 220, .45);
  transition: background .2s ease, border-color .2s ease, box-shadow .3s ease, transform .2s ease;
}

.head-app svg { display: block; flex-shrink: 0; }

.head-app:hover {
  background: var(--accent-text);
  border-color: var(--accent-text);
  box-shadow: 0 0 0 5px rgba(0, 144, 220, .18);
  transform: translateY(-1px);
}

@media (max-width: 1040px) {
  .head-cta:not(.head-app) { display: none; }
}

/* le ancore devono tener conto dell'intestazione piu' alta */
[id] { scroll-margin-top: 144px; }

/* su schermi stretti logo e intestazione si ridimensionano */
@media (max-width: 620px) {
  .head-in { height: 92px; }
  .brand img { height: 62px; }
  [id] { scroll-margin-top: 108px; }
}

/* marchio VSmart nel pulsante d'intestazione.
   E' un PNG, quindi al passaggio del mouse (fondo ciano pieno) non puo'
   ereditare il colore del testo: lo scurisco con un filtro. */
.head-app img {
  display: block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  /* il marchio e' ciano: sul pulsante pieno va scurito per restare leggibile */
  filter: brightness(.14);
}

/* ==================== SCHEMA DEL FLUSSO ====================
   Diagramma fisso a fianco delle fasi: resta visibile mentre si scorre
   e accende il blocco corrispondente alla fase che si sta leggendo. */

.pipeline-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 52px;
  align-items: start;
}

.schema {
  position: sticky;
  top: 160px;
  order: 2;
}

.schema-svg { display: block; width: 100%; height: auto; }

.schema-svg .spine {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
}

.schema-svg .box {
  fill: var(--surface);
  stroke: rgba(0, 144, 220, .26);
  stroke-width: 1.5;
  transition: fill .45s ease, stroke .45s ease;
}

.schema-svg .box.dash { fill: none; stroke-dasharray: 6 6; }

.schema-svg .cap,
.schema-svg .lbl {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  fill: var(--muted-dim);
  transition: fill .45s ease;
}

.schema-svg .cap { font-size: 10px; }

.schema-svg .chip rect {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}

.schema-svg .chip text {
  font-family: var(--f-mono);
  font-size: 9.5px;
  fill: var(--muted-dim);
  text-anchor: middle;
}

.schema-svg .ico,
.schema-svg .ico * {
  fill: none;
  stroke: var(--muted-dim);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .45s ease;
}

/* fase attiva */
.schema-svg .snode.on .box {
  fill: rgba(0, 144, 220, .12);
  stroke: var(--accent);
}

.schema-svg .snode.on .cap,
.schema-svg .snode.on .lbl { fill: var(--text); }

.schema-svg .snode.on .ico,
.schema-svg .snode.on .ico * { stroke: var(--accent); }

.schema-svg .snode.on .chip rect { stroke: rgba(0, 144, 220, .5); }
.schema-svg .snode.on .chip text { fill: var(--muted); }

/* sotto i 1024px lo schema sparisce: le fasi si leggono benissimo da sole,
   e un diagramma compresso sarebbe solo rumore */
@media (max-width: 1024px) {
  .pipeline-wrap { grid-template-columns: 1fr; gap: 0; }
  .schema { display: none; }
}

/* ---- piastrelle marchi con avvicendamento in dissolvenza ---- */

.logo-grid[data-rotate] .logo-tile {
  position: relative;
  min-height: 104px;
}

.logo-grid[data-rotate] .logo-tile img {
  position: absolute;
  inset: 14px 18px;
  width: auto;
  height: auto;
  max-width: calc(100% - 36px);
  max-height: calc(100% - 28px);
  margin: auto;
  opacity: 0;
  transition: opacity .7s ease;
}

/* senza JS il primo logo di ogni piastrella resta comunque visibile */
.logo-grid[data-rotate] .logo-tile img:first-child { opacity: 1; }
.logo-grid[data-rotate] .logo-tile img.on { opacity: 1; }
.logo-grid[data-rotate] .logo-tile img.off { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .logo-grid[data-rotate] .logo-tile img { transition: none; }
}
