/* ================================================================
   kalliope.html — Centralino Cloud e UCC (redesign 19/11/2026)
   Concetto unico di pagina: "il quadro di commutazione".
   Il centralino torna al suo archetipo (jack, cavi, segnale vocale)
   reinterpretato a filo sottile su navy:
   1. Hero: traccia vocale registrata dal vivo sotto una testina fissa,
      sottotitoli in Fraunces corsivo, sentiment appuntato sulla traccia.
   2. Ecosistema: pannello di commutazione fisso, i cavi si ricollegano
      a ogni capitolo (scrolly proprio, non il .comm-scrolly condiviso).
   3. Casi studio: ogni punto è una sede, si accendono col contatore.
   4. Perché: un'unica linea di segnale che "parla" a ogni motivo.
   Riusa dal design system: .hero/.hero--page, .section, .section-head,
   .eyebrow, .reveal/.reveal.visible, .cta, .btn, tipografia globale.
   Tutto il resto è scoped sotto .kall / classi kall-*.
   ================================================================ */

.kall {
  --k-ink: #0b131b;
  --k-panel: #111c27;
  --k-line: rgba(255, 255, 255, 0.09);
  --k-wire: rgba(255, 255, 255, 0.16);
  --k-glow: rgba(255, 130, 0, 0.55);
  --k-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ================================================================
   1. HERO — la registrazione dal vivo
   ================================================================ */
.hero--kalliope .hero-inner { padding-bottom: 36px; }
.hero--kalliope h1 em { display: inline-block; }
.hero--kalliope::after { height: 90px; }

.kall-tape-wrap { position: relative; z-index: 2; padding-bottom: 120px; }

.kall-tape {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  animation: kall-rise 1s var(--k-ease) 0.25s both;
}
@keyframes kall-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.kall-tape__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.kall-tape__status { display: inline-flex; align-items: center; gap: 10px; }
.kall-tape__rec {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(255, 130, 0, 0.6);
  animation: kall-rec 1.6s ease-out infinite;
}
@keyframes kall-rec {
  0% { box-shadow: 0 0 0 0 rgba(255, 130, 0, 0.6); }
  100% { box-shadow: 0 0 0 10px rgba(255, 130, 0, 0); }
}
.kall-tape__time { font-variant-numeric: tabular-nums; letter-spacing: 1.5px; color: rgba(255, 255, 255, 0.75); }

/* Traccia: righello in alto e in basso, testina fissa al 68% */
.kall-tape__track {
  position: relative;
  height: 168px;
  border-top: 1px solid var(--k-line);
  border-bottom: 1px solid var(--k-line);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.14) 0 1px, transparent 1px 40px) top / 100% 7px no-repeat,
    repeating-linear-gradient(90deg, rgba(255,255,255,0.07) 0 1px, transparent 1px 8px) top / 100% 4px no-repeat,
    repeating-linear-gradient(90deg, rgba(255,255,255,0.14) 0 1px, transparent 1px 40px) bottom / 100% 7px no-repeat,
    repeating-linear-gradient(90deg, rgba(255,255,255,0.07) 0 1px, transparent 1px 8px) bottom / 100% 4px no-repeat;
}
.kall-tape__wave { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.kall-tape__playhead {
  position: absolute;
  top: -10px; bottom: -10px;
  left: 68%;
  width: 1px;
  background: var(--orange);
  box-shadow: 0 0 18px 2px var(--k-glow);
}
.kall-tape__playhead::before {
  content: "";
  position: absolute;
  top: -5px; left: -5px;
  width: 11px; height: 11px;
  background: var(--orange);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* Sentiment: appuntato sulla traccia, scorre con l'onda (x via JS) */
.kall-tape__pin {
  position: absolute;
  top: 12px; left: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #5ee08f;
  background: rgba(10, 22, 18, 0.85);
  border: 1px solid rgba(46, 204, 113, 0.45);
  white-space: nowrap;
  opacity: 0;
  transform: translate(var(--x, 0px), 6px);
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.kall-tape__pin::after {
  content: "";
  position: absolute;
  left: 14px; top: 100%;
  width: 1px; height: 120px;
  background: linear-gradient(rgba(46, 204, 113, 0.6), transparent);
}
.kall-tape__pin-dot { width: 7px; height: 7px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 10px #2ecc71; }
.kall-tape.show-sentiment .kall-tape__pin { opacity: 1; transform: translate(var(--x, 0px), 0); }

/* Piede: sottotitolo a sinistra, ticket a destra */
.kall-tape__foot {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 32px;
  padding-top: 26px;
  min-height: 128px;
}
.kall-tape__caption {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--white);
  max-width: 640px;
  transition: opacity 0.5s ease;
}
.kall-tape__caption .w {
  display: inline-block;
  opacity: 0;
  filter: blur(6px);
  transform: translateY(6px);
  animation: kall-word 0.45s var(--k-ease) forwards;
}
@keyframes kall-word { to { opacity: 1; filter: blur(0); transform: none; } }
.kall-tape.is-fading .kall-tape__caption { opacity: 0; }

.kall-tape__ticket {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 130, 0, 0.16), rgba(255, 130, 0, 0.04));
  border: 1px solid rgba(255, 130, 0, 0.45);
  box-shadow: 0 18px 40px -18px rgba(255, 130, 0, 0.6);
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.5s ease, transform 0.6s var(--k-ease);
}
.kall-tape.show-ticket .kall-tape__ticket { opacity: 1; transform: none; }
.kall-tape.is-fading .kall-tape__ticket { opacity: 0; transform: translateX(-12px); }
.kall-tape__ticket-icon {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--orange);
  color: var(--white);
}
.kall-tape__ticket-icon svg { width: 20px; height: 20px; }
.kall-tape__ticket-text { display: flex; flex-direction: column; gap: 2px; }
.kall-tape__ticket-text strong { font-size: 0.88rem; color: var(--white); }
.kall-tape__ticket-text em { font-size: 0.78rem; font-style: normal; color: rgba(255, 255, 255, 0.6); }

/* ================================================================
   2. ECOSISTEMA — il quadro di commutazione
   ================================================================ */
.kall-eco { padding-top: 70px; }
.kall-eco .section-head { margin-bottom: 72px; }
.kall-eco .section-head p { color: var(--text-muted); margin-top: 18px; }

.kall-scrolly {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}
.kall-scrolly__visual { position: sticky; top: 104px; }

.kall-board {
  position: relative;
  border-radius: 24px;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.07) 1px, transparent 0) 0 0 / 22px 22px,
    radial-gradient(120% 80% at 20% 0%, #1b2a38 0%, var(--k-ink) 70%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 50px 90px -40px rgba(14, 22, 30, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 22px 24px 26px;
  overflow: hidden;
  isolation: isolate;
}
.kall-board::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 70%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 130, 0, 0.16), transparent 60%);
  z-index: -1;
}

.kall-board__head { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 8px; }
.kall-board__seg {
  position: relative;
  padding-top: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.4s ease;
}
.kall-board__seg::before,
.kall-board__seg::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 2px;
  border-radius: 2px;
}
.kall-board__seg::before { right: 0; background: rgba(255, 255, 255, 0.1); }
.kall-board__seg::after { width: 0; background: var(--orange); transition: width 0.6s var(--k-ease); }
.kall-board__seg.is-done::after,
.kall-board__seg.is-active::after { width: 100%; }
.kall-board__seg.is-active { color: var(--white); }

.kall-board__stage { position: relative; aspect-ratio: 520 / 430; }

.kall-scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}
.kall-scene.is-active { opacity: 1; visibility: visible; transition: opacity 0.6s ease 0.1s, visibility 0s; }

.kall-plane { position: relative; width: 100%; aspect-ratio: 520 / 400; }
.kall-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.kall-wire {
  fill: none;
  stroke: var(--orange);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 6px rgba(255, 130, 0, 0.45));
}
.kall-wire--ghost { stroke: var(--k-wire); stroke-dasharray: 0.012 0.012; filter: none; stroke-width: 1.2; }
.kall-scene.is-active .kall-wire:not(.kall-wire--static) { animation: kall-draw 1.1s var(--k-ease) var(--d, 0s) forwards; }
.kall-scene.is-active .kall-wire--ghost { animation: kall-fade 0.8s ease var(--d, 0s) forwards; stroke-dashoffset: 0; opacity: 0; }
@keyframes kall-draw { to { stroke-dashoffset: 0; } }
@keyframes kall-fade { to { opacity: 1; } }

.kall-packet {
  fill: var(--white);
  filter: drop-shadow(0 0 6px var(--orange));
  offset-distance: 0%;
  opacity: 0;
}
.kall-scene.is-active .kall-packet { animation: kall-travel var(--dur, 2.7s) linear calc(1.2s + var(--d, 0s)) infinite; }
@keyframes kall-travel {
  0% { offset-distance: 0%; opacity: 0; }
  10% { opacity: 1; }
  85% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

/* Jack: presa con anelli che pulsano */
.kall-jack {
  position: absolute;
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--orange) 0 9px, #0b131b 10px 17px, rgba(255, 130, 0, 0.9) 18px 19.5px, transparent 20.5px);
  border: 1px solid rgba(255, 130, 0, 0.35);
  box-shadow: 0 0 30px rgba(255, 130, 0, 0.35);
}
.kall-jack__ring {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--orange);
  opacity: 0;
}
.kall-scene.is-active .kall-jack__ring { animation: kall-ring 2.6s ease-out infinite; }
.kall-scene.is-active .kall-jack__ring + .kall-jack__ring { animation-delay: 1.3s; }
@keyframes kall-ring {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2.4); opacity: 0; }
}

.kall-node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  margin: -30px 0 0 -30px;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(160deg, #1d2c3a, #121d28);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 26px -10px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: scale(0.8);
}
.kall-node svg { width: 26px; height: 26px; }
.kall-scene.is-active .kall-node { animation: kall-pop 0.6s var(--k-ease) forwards; }
.kall-scene.is-active .kall-node:nth-of-type(2) { animation-delay: 0.7s; }
.kall-scene.is-active .kall-node:nth-of-type(3) { animation-delay: 0.85s; }
.kall-scene.is-active .kall-node:nth-of-type(4) { animation-delay: 1s; }
.kall-scene.is-active .kall-node:nth-of-type(5) { animation-delay: 1.15s; }
@keyframes kall-pop { to { opacity: 1; transform: none; } }

.kall-node--dim { width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #16222e; }

.kall-tile {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 96px;
  margin-left: -48px;
  transform: translateY(-50%) scale(0.85);
  padding: 14px 8px 12px;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(160deg, #1f2f3e, #121d28);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.7);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  opacity: 0;
}
.kall-tile svg { width: 24px; height: 24px; color: var(--orange); }
.kall-scene.is-active .kall-tile { animation: kall-tile-in 0.6s var(--k-ease) forwards; }
.kall-scene.is-active .kall-tile:nth-of-type(2) { animation-delay: 0.45s; }
.kall-scene.is-active .kall-tile:nth-of-type(3) { animation-delay: 0.55s; }
.kall-scene.is-active .kall-tile:nth-of-type(4) { animation-delay: 0.65s; }
.kall-scene.is-active .kall-tile:nth-of-type(5) { animation-delay: 0.75s; }
@keyframes kall-tile-in { to { opacity: 1; transform: translateY(-50%); } }

.kall-scene__caption {
  margin: 8px 0 0;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Scena 03 — simulatore di instradamento */
.kall-sim .kall-wire--static {
  stroke: var(--k-wire);
  stroke-dashoffset: 0;
  filter: none;
  transition: stroke 0.35s ease, filter 0.35s ease;
}
.kall-sim .kall-wire--static.is-lit { stroke: var(--orange); filter: drop-shadow(0 0 6px rgba(255, 130, 0, 0.5)); }
.kall-sim .kall-wire--alt.is-scan { animation: kall-scan 0.5s ease 2; }
@keyframes kall-scan { 50% { stroke: rgba(255, 255, 255, 0.5); } }

.kall-sim__packet { fill: var(--white); filter: drop-shadow(0 0 8px var(--orange)); opacity: 0; offset-distance: 0%; }
.kall-sim__packet.is-go { animation: kall-sim-go 0.7s var(--k-ease) forwards; }
@keyframes kall-sim-go {
  0% { offset-distance: 0%; opacity: 1; }
  90% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

.kall-sim__node { transition: color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease; }
.kall-sim__node.is-lit {
  color: var(--white);
  background: linear-gradient(160deg, #ff9a2e, var(--orange));
  border-color: var(--orange);
  box-shadow: 0 0 0 6px rgba(255, 130, 0, 0.15), 0 0 30px rgba(255, 130, 0, 0.55);
}
.kall-node--ai.is-thinking svg { animation: kall-think 0.9s ease-in-out; }
@keyframes kall-think { 50% { transform: rotate(180deg) scale(0.9); } }

.kall-sim__label {
  position: absolute;
  width: 128px;
  margin-left: -64px;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s ease;
}
.kall-sim__label.is-lit { color: var(--white); }

.kall-sim__btn {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 130, 0, 0.55);
  border-radius: 999px;
  padding: 10px 20px 10px 16px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.kall-sim__btn:hover,
.kall-sim__btn:focus-visible { background: rgba(255, 130, 0, 0.16); transform: translateY(-2px); outline: none; }
.kall-sim__btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.kall-sim__btn-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 8px var(--orange); }

/* Scena 04 — wall monitor */
.kall-wall {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  gap: 18px;
  height: 86%;
  margin: auto 0;
}
.kall-wall__figure {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--k-line);
}
.kall-wall__num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(4rem, 8vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}
.kall-wall__label { max-width: 170px; font-size: 0.82rem; font-weight: 500; line-height: 1.4; color: rgba(255, 255, 255, 0.7); }
.kall-wall__spark,
.kall-wall__bars {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--k-line);
}
.kall-wall__spark { width: 100%; height: 100%; padding: 14px 0; }
.kall-wall__spark-line {
  fill: none;
  stroke: var(--orange);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.kall-scene.is-active .kall-wall__spark-line { animation: kall-draw 1.6s var(--k-ease) 0.2s forwards; }
.kall-wall__bars { display: flex; align-items: flex-end; gap: 10%; padding: 16px 18px; }
.kall-wall__bars span {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 1px 1px;
  background: linear-gradient(180deg, var(--orange), rgba(255, 130, 0, 0.25));
  transform: scaleY(0);
  transform-origin: bottom;
}
.kall-scene.is-active .kall-wall__bars span { animation: kall-bar 0.8s var(--k-ease) forwards, kall-bar-live 3.2s ease-in-out 1s infinite; }
.kall-scene.is-active .kall-wall__bars span:nth-child(2) { animation-delay: 0.08s, 1.4s; }
.kall-scene.is-active .kall-wall__bars span:nth-child(3) { animation-delay: 0.16s, 1.1s; }
.kall-scene.is-active .kall-wall__bars span:nth-child(4) { animation-delay: 0.24s, 1.7s; }
.kall-scene.is-active .kall-wall__bars span:nth-child(5) { animation-delay: 0.32s, 1.25s; }
@keyframes kall-bar { to { transform: scaleY(1); } }
@keyframes kall-bar-live { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.78); } }

/* Colonna testi */
.kall-step {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
  opacity: 0.28;
  transition: opacity 0.5s ease;
}
.kall-step:first-child { min-height: 56vh; justify-content: flex-start; padding-top: 30px; }
.kall-step:last-child { min-height: 64vh; }
.kall-step.is-active { opacity: 1; }
.kall-step__num {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--orange);
}
.kall-step__num::after { content: ""; width: 56px; height: 1px; background: currentColor; opacity: 0.6; }
.kall-step h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--navy-dark);
  margin-bottom: 18px;
}
.kall-step p { color: var(--text-muted); font-size: 1rem; line-height: 1.75; }
.kall-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.kall-chips li {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--navy-dark);
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
}
.kall-chips li::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  margin: 0 8px 1px 0;
  border-radius: 50%;
  background: var(--orange);
  vertical-align: middle;
}

/* ================================================================
   3. CASI STUDIO — la rete resa visibile
   ================================================================ */
.kall-cases {
  position: relative;
  background: radial-gradient(90% 70% at 50% 0%, #1a2836 0%, var(--navy-deep) 70%);
  color: var(--white);
  overflow: hidden;
}
.kall-cases h2 { color: var(--white); }
.kall-cases .section-head { margin-bottom: 64px; }

.kall-cases__grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 24px; }
.kall-case {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.kall-case__field {
  display: grid;
  grid-template-columns: repeat(var(--cols, 9), 1fr);
  gap: var(--gap, 12px);
  align-content: center;
  padding: 40px 40px 34px;
  min-height: 240px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(circle at 50% 60%, rgba(255, 130, 0, 0.08), transparent 70%);
}
.kall-case__dot {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.kall-case__dot.is-on { background: var(--orange); box-shadow: 0 0 8px rgba(255, 130, 0, 0.6); }
.kall-case__dot.is-ping { background: var(--white); box-shadow: 0 0 0 4px rgba(255, 130, 0, 0.35), 0 0 16px var(--orange); transform: scale(1.35); }

.kall-case__body { padding: 30px 40px 40px; }
.kall-case__figure { display: flex; align-items: baseline; gap: 4px; margin: 0 0 18px; }
.kall-case__num,
.kall-case__plus {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.8rem, 6.5vw, 5.6rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}
.kall-case__plus { font-style: italic; }
.kall-case__unit {
  margin-left: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.kall-case h4 { font-size: 1.15rem; color: var(--white); margin-bottom: 8px; }
.kall-case__body p:last-child { color: rgba(255, 255, 255, 0.62); font-size: 0.95rem; line-height: 1.65; max-width: 460px; }

/* ================================================================
   4. PERCHÉ — la linea di segnale
   ================================================================ */
.kall-why .section-head { margin-bottom: 40px; }
.kall-why__wrap { position: relative; }
.kall-why__signal {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 80px;
  overflow: visible;
}
.kall-why__line {
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.6;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.kall-why.visible .kall-why__line { animation: kall-draw 2.4s cubic-bezier(0.45, 0, 0.25, 1) 0.3s forwards; }

.kall-why__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding-top: 112px;
}
.kall-why__item {
  position: relative;
  padding: 0 28px;
  border-left: 1px solid var(--border);
  opacity: 0;
  transform: translateY(18px);
}
.kall-why__item:first-child { border-left: 0; padding-left: 0; }
.kall-why.visible .kall-why__item { animation: kall-rise 0.8s var(--k-ease) calc(0.5s + var(--i) * 0.55s) forwards; }

.kall-why__node {
  position: absolute;
  top: -72px;
  left: 50%;
  width: 14px; height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--border);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.kall-why__item:first-child .kall-why__node { left: calc(50% - 14px); }
.kall-why.visible .kall-why__node { animation: kall-node-on 0.4s ease calc(0.75s + var(--i) * 0.55s) forwards; }
@keyframes kall-node-on {
  to { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 6px rgba(255, 130, 0, 0.15); }
}

.kall-why__num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--orange);
  margin-bottom: 22px;
}
.kall-why__icon { display: block; width: 30px; height: 30px; color: var(--navy-dark); margin-bottom: 16px; }
.kall-why__icon svg { width: 100%; height: 100%; }
.kall-why__icon path,
.kall-why__icon circle { stroke-dasharray: 1; stroke-dashoffset: 1; }
.kall-why.visible .kall-why__icon path,
.kall-why.visible .kall-why__icon circle { animation: kall-draw 1s ease calc(0.9s + var(--i) * 0.55s) forwards; }
.kall-why__item h4 { font-size: 1.05rem; line-height: 1.35; color: var(--navy-dark); margin-bottom: 10px; }
.kall-why__item p { font-size: 0.92rem; line-height: 1.65; color: var(--text-muted); }

/* ================================================================
   5. CTA — lo squillo
   ================================================================ */
.kall-cta__rings {
  position: absolute;
  left: 50%; top: 50%;
  width: 0; height: 0;
  z-index: 0;
  pointer-events: none;
}
.kall-cta__rings span {
  position: absolute;
  left: -160px; top: -160px;
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(255, 130, 0, 0.35);
  opacity: 0;
  animation: kall-cta-ring 6s ease-out infinite;
}
.kall-cta__rings span:nth-child(2) { animation-delay: 1.5s; }
.kall-cta__rings span:nth-child(3) { animation-delay: 3s; }
.kall-cta__rings span:nth-child(4) { animation-delay: 4.5s; }
@keyframes kall-cta-ring {
  0% { transform: scale(0.4); opacity: 0; }
  15% { opacity: 0.8; }
  100% { transform: scale(3.6); opacity: 0; }
}
.kall-cta h2 { font-size: clamp(2rem, 4vw, 3rem); }

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 960px) {
  .kall-scrolly { grid-template-columns: 1fr; gap: 0; }
  .kall-scrolly__visual { top: 72px; z-index: 2; padding: 12px 0 18px; background: linear-gradient(var(--white) 85%, transparent); }
  .kall-board { padding: 14px 16px 16px; border-radius: 18px; }
  .kall-board__stage { aspect-ratio: 520 / 380; max-height: 40vh; margin: 0 auto; }
  .kall-step,
  .kall-step:first-child,
  .kall-step:last-child { min-height: 62vh; justify-content: flex-start; padding: 28px 0; }
  .kall-step h3 { font-size: 1.8rem; }

  .kall-cases__grid { grid-template-columns: 1fr; }
  .kall-case__field { padding: 28px; min-height: 0; }
  .kall-case__body { padding: 24px 28px 30px; }

  .kall-why__signal { display: none; }
  .kall-why__grid { grid-template-columns: 1fr 1fr; padding-top: 0; row-gap: 48px; }
  .kall-why__item,
  .kall-why__item:first-child { border-left: 2px solid var(--border); padding: 0 0 0 22px; }
  .kall-why__node,
  .kall-why__item:first-child .kall-why__node { top: 4px; left: -8px; margin: 0; }
}

@media (max-width: 640px) {
  .kall-tape-wrap { padding-bottom: 90px; }
  .kall-tape__track { height: 120px; }
  .kall-tape__playhead { left: 72%; }
  .kall-tape__foot { grid-template-columns: 1fr; gap: 18px; min-height: 190px; }
  .kall-tape__ticket { justify-self: start; }
  .kall-node { width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 12px; }
  .kall-node svg { width: 20px; height: 20px; }
  .kall-node--dim { width: 16px; height: 16px; margin: -8px 0 0 -8px; }
  .kall-jack { transform: scale(0.75); }
  .kall-tile { width: 76px; margin-left: -38px; padding: 10px 6px; font-size: 0.66rem; }
  .kall-sim__label { width: 92px; margin-left: -46px; font-size: 0.62rem; }
  .kall-wall__num { font-size: 3.6rem; }
  .kall-case__field { --gap: 7px; }
  .kall-why__grid { grid-template-columns: 1fr; }
}

/* ================================================================
   Movimento ridotto: tutto visibile nello stato finale, nessun loop
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  .kall-tape,
  .kall-tape__rec,
  .kall-jack__ring,
  .kall-packet,
  .kall-cta__rings span { animation: none !important; }
  .kall-packet,
  .kall-jack__ring,
  .kall-cta__rings span { display: none; }
  .kall-tape__pin,
  .kall-tape__ticket { transition: none; }
  .kall-tape__caption .w { animation: none; opacity: 1; filter: none; transform: none; }
  .kall-scene,
  .kall-scene.is-active { transition: none; }
  .kall-wire,
  .kall-why__line,
  .kall-wall__spark-line,
  .kall-why__icon path,
  .kall-why__icon circle { animation: none !important; stroke-dashoffset: 0; }
  .kall-wire--ghost { opacity: 1; }
  .kall-node,
  .kall-tile,
  .kall-why__item { animation: none !important; opacity: 1; transform: none; }
  .kall-tile { transform: translateY(-50%); }
  .kall-wall__bars span { animation: none !important; transform: none; }
  .kall-why__node { animation: none !important; background: var(--orange); border-color: var(--orange); }
  .kall-step { transition: none; }
  .kall-sim__packet { display: none; }
}

/* ---------- Rifiniture dopo la verifica visiva (19/11) ---------- */
.hero--kalliope .hero-inner { padding-top: 84px; }
.hero--kalliope .hero-sub { margin-bottom: 0; }
.kall-tape-wrap { margin-top: 44px; }

/* Etichette del simulatore sopra i cavi */
.kall-sim__label {
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(11, 19, 27, 0.88);
}

/* Casi: punti a misura fissa, centrati, più fini */
.kall-case__field {
  grid-template-columns: repeat(var(--cols, 9), var(--dot, 14px));
  gap: var(--gap, 22px);
  justify-content: center;
}
.kall-case__dot { width: var(--dot, 14px); background: rgba(255, 255, 255, 0.1); }
.kall-case__dot.is-on { background: var(--orange); box-shadow: 0 0 6px rgba(255, 130, 0, 0.45); }

/* Perché: colonne centrate sulla linea di segnale */
.kall-why__item,
.kall-why__item:first-child { padding: 0 26px; text-align: center; }
.kall-why__item:first-child { border-left: 0; }
.kall-why__item:first-child .kall-why__node { left: 50%; }
.kall-why__icon { margin-left: auto; margin-right: auto; }

.kall-cta .cta-inner { max-width: 820px; }

@media (max-width: 960px) {
  .kall-why__item,
  .kall-why__item:first-child { text-align: left; padding: 0 0 0 22px; }
  .kall-why__item:first-child .kall-why__node { left: -8px; }
  .kall-why__icon { margin-left: 0; }
}
@media (max-width: 640px) {
  .kall-case__field { --dot: 10px !important; --gap: 14px !important; }
  .kall-case__field[data-dots="300"] { --dot: 6px !important; --gap: 5px !important; }
}
@media (max-width: 960px) {
  .kall-board__stage { max-height: none; aspect-ratio: 520 / 450; }
  .kall-scrolly__visual { padding-bottom: 28px; background: linear-gradient(var(--white) 88%, rgba(255, 255, 255, 0)); }
}
