/* ==========================================================================
   HORNOI V2 — BLOCCHI VISIVI
   Sistemi grafici riusati tra home e pagine dedicate:
   .net    ecosistema digitale
   .curve  incertezza / fiducia / conversioni
   .frag   frammentazione vs progettazione
   .wsm    mockup del Workspace
   .lyr    livelli del metodo
   .mq     marquee competenze
   ========================================================================== */

/* --------------------------------------------------------------------------
   .net — ECOSISTEMA DIGITALE
   SVG per anelli e connessioni, HTML per nodi e etichette (testo nitido).
   -------------------------------------------------------------------------- */
.net {
    position: relative;
    width: 100%;
    max-width: 540px;
    margin-inline: auto;
    aspect-ratio: 1;
}

.net__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.net__ring { fill: none; stroke: var(--line); stroke-width: 1; }
.net__spark { fill: var(--orange); stroke: none; }
.net__ring--dash { stroke-dasharray: 3 9; stroke: var(--line); }
.is-live .net__ring--spin { animation: svg-spin 60s linear infinite; transform-box: fill-box; transform-origin: center; }
.is-live .net__ring--spin-rev { animation: svg-spin 90s linear infinite reverse; transform-box: fill-box; transform-origin: center; }

/* connessioni: una linea statica + una tratteggiata che scorre */
.net__link { fill: none; stroke: var(--line); stroke-width: 1.2; }
.net__flow {
    fill: none;
    stroke: var(--orange);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-dasharray: 4 30;
    opacity: 0;
    transition: opacity .6s var(--ease);
    transition-delay: var(--d, 0ms);
}
.is-in .net__flow { opacity: .85; }
.is-live .net__flow {
    animation: net-flow 2.6s linear infinite;
    animation-delay: var(--d, 0ms);
}
@keyframes net-flow { to { stroke-dashoffset: -34; } }

/* nodo centrale */
.net__core {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    width: 26%;
    aspect-ratio: 1;
    border-radius: 26%;
    background: var(--orange);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(255, 90, 31, .5),
                0 0 60px rgba(255, 90, 31, .45),
                0 20px 50px -18px rgba(255, 90, 31, .7);
    opacity: 0;
    scale: .7;
    transition: opacity .6s var(--ease), scale .8s var(--ease);
}
.is-in .net__core { opacity: 1; scale: 1; }

.net__core::after {
    content: '';
    position: absolute;
    inset: -14%;
    border-radius: 30%;
    border: 1px solid rgba(255, 90, 31, .35);
}
.is-live .net__core::after { animation: net-halo 3.4s var(--ease-io) infinite; }
@keyframes net-halo {
    0%, 100% { transform: scale(1);    opacity: .8; }
    50%      { transform: scale(1.12); opacity: 0; }
}

.net__core-t {
    font-family: var(--f-display);
    font-size: clamp(.66rem, 1.5vw, .8rem);
    font-weight: 650;
    letter-spacing: -.01em;
    line-height: 1.15;
    text-align: center;
    padding-inline: 6%;
}

/* nodi satellite */
.net__node {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px 9px 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 100px;
    box-shadow: var(--shadow);
    white-space: nowrap;
    opacity: 0;
    transition: opacity .55s var(--ease), transform .55s var(--ease),
                border-color var(--t-fast);
    transition-delay: var(--d, 0ms);
}
.is-in .net__node { opacity: 1; }
.net__node:hover { border-color: rgba(255, 90, 31, .4); }

.net__node i {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    flex: none;
    border-radius: 7px;
    background: var(--surface-2);
    color: var(--orange);
}
.net__node i svg { width: 14px; height: 14px; }

.net__node span {
    font-size: .81rem;
    font-weight: 500;
    letter-spacing: -.008em;
    color: var(--fg-soft);
}

.is-live .net__node--float { animation: svg-float 7s var(--ease-io) infinite; }
.net__node:nth-of-type(even) { animation-delay: -2.4s; }
.net__node:nth-of-type(3n)   { animation-delay: -4.1s; }

@media (max-width: 620px) {
    .net__node { padding: 7px 11px 7px 8px; }
    .net__node i { width: 22px; height: 22px; }
    .net__node i svg { width: 12px; height: 12px; }
    .net__node span { font-size: .7rem; }
}
@media (max-width: 400px) {
    .net__node span { display: none; }
    .net__node { padding: 8px; }
}

/* --------------------------------------------------------------------------
   .hp — RITRATTO DELLA HERO
   La persona al centro, l'ecosistema che le orbita intorno.
   -------------------------------------------------------------------------- */
.hp {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
    aspect-ratio: 4 / 5;
}

/* anelli */
.hp__rings {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 152%;
    height: 152%;
    transform: translate(-50%, -50%);
    overflow: visible;
    pointer-events: none;
}
.hp__ring  { stroke: var(--line); stroke-width: 1; fill: none; }
.hp__spark { fill: var(--orange); }
.is-live .hp__ring--spin     { animation: svg-spin 70s linear infinite; transform-box: fill-box; transform-origin: center; }
.is-live .hp__ring--spin-rev { animation: svg-spin 100s linear infinite reverse; transform-box: fill-box; transform-origin: center; }

.hp__glow {
    position: absolute;
    left: 50%;
    top: 46%;
    width: 116%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(255, 90, 31, .24) 0%,
        rgba(255, 90, 31, .09) 40%,
        transparent 66%);
    pointer-events: none;
}

/* cornice del ritratto */
.hp__frame {
    position: relative;
    margin: 0;
    height: 100%;
    border-radius: var(--r-xl);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface-2);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: scale(.97) translateY(12px);
    transition: opacity .8s var(--ease), transform .9s var(--ease);
}
.is-in .hp__frame { opacity: 1; transform: none; }

.hp__frame > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    /* A colori: niente grayscale. Resta solo un filo di contrasto, perché
       lo scrim scuro qui sotto tende ad appiattire i mezzitoni. */
    filter: contrast(1.05) saturate(1.04);
}

/* Scrim scuro in basso: è quello che rende leggibile la scheda identità,
   e resta pieno. La velatura arancione invece scende da .26 a .10: sopra
   una foto in bianco e nero era colore su grigio, sopra una foto a colori
   diventerebbe una dominante che se li mangia tutti. */
.hp__frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(10, 10, 10, .92) 4%, rgba(10, 10, 10, .18) 46%, transparent 68%),
        linear-gradient(150deg, rgba(255, 90, 31, .1), transparent 58%);
    pointer-events: none;
}

/* scheda identità sul fondo */
.hp__card {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 1;
    display: grid;
    gap: 7px;
    padding: 16px 18px;
    border-radius: var(--r);
    background: rgba(12, 12, 12, .8);
    border: 1px solid rgba(255, 255, 255, .13);
    color: #fff;
}

.hp__card-t {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--f-mono);
    font-size: .72rem;
    line-height: 1;
    padding-bottom: 10px;
    margin-bottom: 3px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    overflow: hidden;
    white-space: nowrap;
}
.hp__card-p { color: var(--orange); }
.hp__card-k { color: rgba(255, 255, 255, .45); }
.hp__card-v { color: #fff; overflow: hidden; text-overflow: ellipsis; }
.hp__card-c {
    width: 6px;
    height: 12px;
    flex: none;
    background: var(--orange);
    border-radius: 1px;
    animation: hm-caret 1.05s steps(2, start) infinite;
}
@keyframes hm-caret { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hp__card-n {
    font-family: var(--f-display);
    font-size: 1.14rem;
    font-weight: 650;
    letter-spacing: -.024em;
    line-height: 1;
}
.hp__card-r {
    font-size: .74rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, .58);
}

/* chip dell'ecosistema */
.hp__chip {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 9px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 100px;
    box-shadow: var(--shadow);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .6s var(--ease), transform .6s var(--ease), border-color var(--t-fast);
    transition-delay: var(--d, 0ms);
}
.is-in .hp__chip { opacity: 1; transform: none; }
.is-live .hp__chip { animation: svg-float 7s var(--ease-io) infinite; }
.hp__chip:nth-of-type(even) { animation-delay: -2.6s; }
.hp__chip:nth-of-type(3n)   { animation-delay: -4.4s; }
.hp__chip:hover { border-color: rgba(255, 90, 31, .42); }

.hp__chip i {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    flex: none;
    border-radius: 7px;
    background: var(--surface-2);
    color: var(--orange);
}
.hp__chip i svg { width: 13px; height: 13px; }

.hp__chip span {
    font-size: .79rem;
    font-weight: 500;
    letter-spacing: -.008em;
    color: var(--fg-soft);
}

@media (max-width: 1100px) {
    .hp__chip { padding: 7px 12px 7px 8px; }
    .hp__chip span { font-size: .73rem; }
}
@media (max-width: 480px) {
    .hp { max-width: 320px; }
    .hp__chip i { width: 22px; height: 22px; }
    .hp__chip i svg { width: 12px; height: 12px; }
    .hp__chip span { display: none; }
    .hp__chip { padding: 7px; }
    .hp__card { left: 10px; right: 10px; bottom: 10px; padding: 13px 14px; }
}

/* --------------------------------------------------------------------------
   .sig — FIRMA / BLOCCO PERSONALE
   Usato dove serve ricordare che dietro al metodo c'è una persona.
   -------------------------------------------------------------------------- */
.sig {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sig__ph {
    width: 52px;
    height: 52px;
    flex: none;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface-2);
}
.sig__ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 16%;
    filter: grayscale(1) contrast(1.06);
}

.sig__t { display: grid; gap: 3px; min-width: 0; }
.sig__n {
    font-family: var(--f-display);
    font-size: .96rem;
    font-weight: 650;
    letter-spacing: -.02em;
    line-height: 1;
}
.sig__r { font-size: .78rem; color: var(--fg-muted); line-height: 1.3; }

.sig--sm .sig__ph { width: 38px; height: 38px; }
.sig--lg .sig__ph { width: 68px; height: 68px; }

/* --------------------------------------------------------------------------
   .note — NOTA PERSONALE (foto + testo in prima persona)
   -------------------------------------------------------------------------- */
.note {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
    padding: clamp(26px, 3.4vw, 44px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
}
@media (max-width: 820px) { .note { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

.note__ph {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface-2);
    aspect-ratio: 5 / 4;
}
.note__ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.06);
    transition: filter .6s var(--ease-io);
}
.note:hover .note__ph img { filter: grayscale(.15) contrast(1.02); }

.note__ph::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(255, 90, 31, .2), transparent 60%);
    pointer-events: none;
}

.note__b .quote { margin-bottom: 20px; }
.note__b p { color: var(--fg-soft); max-width: 58ch; }
.note__b .sig { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }

/* --------------------------------------------------------------------------
   .gal — GALLERIA FOTOGRAFICA
   Griglia a quattro colonne, gli scatti .gal__i--wide ne occupano due.
   Le tessere si allungano fino all'altezza della riga: l'aspect-ratio serve
   a dare la proporzione di partenza, non a bloccarla.

   Vive qui e non in un foglio di pagina perché la usano home e «Chi sono»,
   e domani chiunque debba mostrare delle foto con una didascalia sopra.
   -------------------------------------------------------------------------- */
.gal {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(12px, 1.6vw, 18px);
}
@media (max-width: 900px) { .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.gal__i {
    position: relative;
    margin: 0;
    border-radius: var(--r);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface-2);
    aspect-ratio: 4 / 3;
}
.gal__i--wide { grid-column: span 2; }

.gal__i img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* il colore torna al passaggio del mouse: la foto si "accende" quando
       qualcuno la guarda davvero, e nel frattempo non compete col testo */
    filter: grayscale(.35) contrast(1.04);
    transition: transform .7s var(--ease), filter .5s var(--ease-io);
}
.gal__i:hover img { transform: scale(1.045); filter: grayscale(0); }

.gal__i figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 26px 14px 12px;
    font-size: .76rem;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(to top, rgba(10, 10, 10, .82), transparent);
}

.gal__i figcaption b {
    display: block;
    font-weight: 600;
}
.gal__i figcaption span {
    color: rgba(255, 255, 255, .68);
    font-size: .7rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   .curve — INCERTEZZA ↓ / FIDUCIA ↑ / CONVERSIONI
   -------------------------------------------------------------------------- */
.curve {
    position: relative;
    width: 100%;
    padding: clamp(20px, 3vw, 34px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
}

.curve__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
}

.curve__title {
    font-family: var(--f-display);
    font-size: .96rem;
    font-weight: 600;
    letter-spacing: -.014em;
}

.curve__legend { display: flex; flex-wrap: wrap; gap: 16px; }
.curve__legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .76rem;
    font-weight: 500;
    color: var(--fg-muted);
}
.curve__legend i {
    width: 14px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    flex: none;
}
.curve__legend .lg-u i { background: var(--fg-faint); }
.curve__legend .lg-t i { background: var(--orange); }
.curve__legend .lg-c i { width: 9px; height: 9px; border-radius: 2px; background: rgba(255, 90, 31, .28); }

.curve__svg { width: 100%; height: auto; display: block; overflow: visible; }

.curve .cv-grid  { stroke: var(--line-soft); stroke-width: 1; stroke-dasharray: 2 6; }
.curve .cv-axis  { stroke: var(--line); stroke-width: 1; }
.curve .cv-bar   { fill: var(--orange); opacity: .2; }
.curve .cv-unc   { fill: none; stroke: var(--fg-faint); stroke-width: 2.4; stroke-linecap: round; }
.curve .cv-tru   { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; }
.curve .cv-area  { fill: url(#cvGrad); opacity: 0; transition: opacity 1s var(--ease) .7s; }
.is-in .curve .cv-area { opacity: 1; }
.curve .cv-lbl   { font-family: var(--f-body); font-size: 10.5px; font-weight: 500; fill: var(--fg-muted); }
.curve .cv-lbl-o { fill: var(--orange); font-weight: 600; }
.curve .cv-cross { fill: var(--surface); stroke: var(--orange); stroke-width: 2.4; }
.curve .cv-node  { fill: var(--orange); }
.curve .cv-ping  { fill: none; stroke: var(--orange); stroke-width: 1.5; }
.is-live .curve .cv-ping { animation: cv-ping 2.6s var(--ease-io) infinite 1.4s; transform-box: fill-box; transform-origin: center; }
@keyframes cv-ping {
    0%   { transform: scale(.6); opacity: .9; }
    100% { transform: scale(2.6); opacity: 0; }
}

.curve__foot {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.curve__kpi { display: flex; flex-direction: column; gap: 4px; }
.curve__kpi b {
    font-family: var(--f-display);
    font-size: 1.28rem;
    font-weight: 700;
    letter-spacing: -.026em;
    line-height: 1;
}
.curve__kpi b .suf { color: var(--orange); }
.curve__kpi small { font-size: .74rem; color: var(--fg-muted); }

/* --------------------------------------------------------------------------
   .frag — FRAMMENTAZIONE vs PROGETTAZIONE
   -------------------------------------------------------------------------- */
.frag { display: grid; gap: clamp(18px, 2.2vw, 26px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) { .frag { grid-template-columns: minmax(0, 1fr); } }

.frag__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: clamp(20px, 2.4vw, 28px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.frag__panel--bad { background: var(--surface-2); }
.frag__panel--good { border-color: rgba(255, 90, 31, .26); }
.frag__panel--good::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(255, 90, 31, .09), transparent 70%);
    pointer-events: none;
}

.frag__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 6px 12px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-radius: 100px;
    line-height: 1;
    color: var(--fg-muted);
    background: var(--line-soft);
    border: 1px solid var(--line);
}
.frag__panel--good .frag__tag {
    color: var(--orange);
    background: rgba(255, 90, 31, .1);
    border-color: rgba(255, 90, 31, .24);
}

.frag__viz { margin: 26px 0 22px; }
.frag__viz svg { width: 100%; height: auto; overflow: visible; }

.frag .fg-dot   { fill: var(--fg-faint); }
.frag .fg-dot-o { fill: var(--orange); }
.frag .fg-box   { fill: var(--surface); stroke: var(--line); stroke-width: 1.2; }
.frag .fg-box-o { fill: var(--surface); stroke: rgba(255, 90, 31, .5); stroke-width: 1.4; }
.frag .fg-line  { stroke: var(--line); stroke-width: 1.2; fill: none; }
.frag .fg-line-o{ stroke: var(--orange); stroke-width: 1.6; fill: none; opacity: .75; }
.frag .fg-spine { stroke: var(--orange); stroke-width: 2.2; fill: none; }
/* pacchetti che scorrono: disegnati sopra la spina arancione */
.frag .fg-flow  { stroke: var(--surface); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-dasharray: 3 29; }
.frag .fg-lbl   { font-family: var(--f-mono); font-size: 9px; fill: var(--fg-faint); }

/* i nodi "senza direzione" tremano leggermente */
.is-live .frag .fg-jitter { animation: fg-jitter 5s var(--ease-io) infinite; transform-box: fill-box; }
@keyframes fg-jitter {
    0%, 100% { transform: translate(0, 0); }
    25%      { transform: translate(2.5px, -2px); }
    50%      { transform: translate(-2px, 2.5px); }
    75%      { transform: translate(1.5px, 1.5px); }
}
.frag .fg-jitter:nth-of-type(2n) { animation-delay: -1.7s; }
.frag .fg-jitter:nth-of-type(3n) { animation-delay: -3.2s; }

.frag__txt { margin-top: auto; }
.frag__txt strong {
    display: block;
    font-family: var(--f-display);
    font-size: 1.06rem;
    font-weight: 600;
    letter-spacing: -.018em;
    margin-bottom: 8px;
}
.frag__txt p { font-size: .92rem; line-height: 1.55; color: var(--fg-muted); }

/* --------------------------------------------------------------------------
   .wsm — MOCKUP WORKSPACE
   -------------------------------------------------------------------------- */
.wsm {
    position: relative;
    border-radius: var(--r-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    --wsm-fg: var(--fg);
}

/* barra finestra */
.wsm__bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
}
.wsm__dots { display: flex; gap: 6px; flex: none; }
.wsm__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.wsm__dots i:first-child { background: rgba(255, 90, 31, .55); }

.wsm__url {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 7px;
    font-family: var(--f-mono);
    font-size: .68rem;
    color: var(--fg-muted);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.wsm__url svg { width: 11px; height: 11px; flex: none; color: #3FCF6B; }

/* corpo: sidebar + contenuto */
.wsm__body { display: grid; grid-template-columns: 186px minmax(0, 1fr); }
@media (max-width: 780px) { .wsm__body { grid-template-columns: minmax(0, 1fr); } .wsm__side { display: none; } }

.wsm__side {
    padding: 18px 14px;
    border-right: 1px solid var(--line);
    background: var(--bg-alt);
}
.wsm__side-t {
    padding: 0 8px 10px;
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--fg-faint);
}
.wsm__side-i {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px;
    border-radius: 7px;
    font-size: .8rem;
    color: var(--fg-muted);
    transition: background var(--t-fast), color var(--t-fast);
}
.wsm__side-i svg { width: 14px; height: 14px; flex: none; opacity: .7; }
.wsm__side-i.is-on {
    background: rgba(255, 90, 31, .1);
    color: var(--orange);
    font-weight: 550;
}
.wsm__side-i.is-on svg { opacity: 1; }
.wsm__side-i b {
    margin-left: auto;
    font-family: var(--f-mono);
    font-size: .64rem;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--line-soft);
}

.wsm__main { padding: clamp(16px, 2vw, 24px); display: grid; gap: 18px; }

.wsm__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.wsm__h {
    font-family: var(--f-display);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -.018em;
}
.wsm__sub { font-size: .74rem; color: var(--fg-faint); margin-top: 3px; }

/* KPI */
.wsm__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 480px) { .wsm__kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } }

.wsm__kpi {
    padding: 13px;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
}
.wsm__kpi small {
    display: block;
    font-size: .64rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--fg-faint);
    margin-bottom: 7px;
}
.wsm__kpi b {
    display: block;
    font-family: var(--f-display);
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    font-weight: 700;
    letter-spacing: -.028em;
    line-height: 1;
}
.wsm__kpi .up { font-size: .66rem; color: #3FCF6B; font-weight: 600; }
.wsm__spark { margin-top: 8px; height: 22px; width: 100%; overflow: visible; }
.wsm__spark path { fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wsm__spark .sp-area { fill: rgba(255, 90, 31, .12); stroke: none; opacity: 0; transition: opacity .8s var(--ease) .8s; }
.is-in .wsm__spark .sp-area { opacity: 1; }

/* roadmap */
.wsm__rmap { display: grid; gap: 9px; }
.wsm__phase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 12px 14px;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
}
.wsm__phase-t {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: .82rem;
    font-weight: 500;
}
.wsm__phase-t em {
    font-family: var(--f-mono);
    font-style: normal;
    font-size: .64rem;
    color: var(--orange);
    flex: none;
}
.wsm__phase-t span {
    margin-left: auto;
    font-family: var(--f-mono);
    font-size: .68rem;
    color: var(--fg-faint);
    flex: none;
}
.wsm__track {
    height: 5px;
    border-radius: 100px;
    background: var(--line);
    overflow: hidden;
}
.wsm__fill {
    height: 100%;
    border-radius: 100px;
    background: linear-gradient(90deg, var(--orange-lo), var(--orange-hi));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.2s var(--ease);
    transition-delay: var(--d, 0ms);
}
.is-in .wsm__fill { transform: scaleX(var(--p, .5)); }

.wsm__phase--done .wsm__fill { background: #3FCF6B; }
.wsm__phase--done .wsm__phase-t em { color: #3FCF6B; }
.wsm__phase--next { opacity: .58; }

/* ticket */
.wsm__tix { display: grid; gap: 6px; }
.wsm__tik {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 13px;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    font-size: .81rem;
}
.wsm__tik i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex: none;
    background: var(--orange);
}
.wsm__tik i.is-done { background: #3FCF6B; }
.wsm__tik i.is-wait { background: var(--fg-faint); }
.wsm__tik span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wsm__tik em {
    margin-left: auto;
    flex: none;
    font-family: var(--f-mono);
    font-style: normal;
    font-size: .64rem;
    padding: 3px 7px;
    border-radius: 4px;
    background: var(--line-soft);
    color: var(--fg-muted);
}

/* riflesso in vetro sopra il mockup */
.wsm__glare {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, rgba(255, 255, 255, .07) 0%, transparent 42%);
}
.theme-paper .wsm__glare, .theme-paper-2 .wsm__glare { display: none; }

/* --------------------------------------------------------------------------
   .lyr — LIVELLI DEL METODO (strategia → sistema → sviluppo)
   -------------------------------------------------------------------------- */
.lyr { position: relative; display: grid; gap: 0; }

.lyr__item {
    position: relative;
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: clamp(16px, 2vw, 28px);
    padding: clamp(24px, 3vw, 34px) 0;
    border-top: 1px solid var(--line);
}
.lyr__item:last-child { border-bottom: 1px solid var(--line); }

@media (max-width: 600px) {
    .lyr__item { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
}

.lyr__n {
    position: relative;
    font-family: var(--f-display);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1;
    color: var(--fg-faint);
    transition: color var(--t);
}
.lyr__item:hover .lyr__n { color: var(--orange); }

/* linea verticale che collega i livelli */
.lyr__n::after {
    content: '';
    position: absolute;
    left: 50%;
    top: calc(100% + 14px);
    bottom: calc(-1 * clamp(24px, 3vw, 34px) - 14px);
    width: 1px;
    background: var(--line);
}
.lyr__item:last-child .lyr__n::after { display: none; }

.lyr__b .d4 { margin-bottom: 10px; }
.lyr__b p { color: var(--fg-soft); max-width: 62ch; }
.lyr__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

/* --------------------------------------------------------------------------
   .mq — MARQUEE COMPETENZE
   -------------------------------------------------------------------------- */
.mq {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.mq__track {
    display: flex;
    width: max-content;
    gap: 10px;
    animation: mq-run 42s linear infinite;
}
.mq:hover .mq__track { animation-play-state: paused; }
.mq--rev .mq__track { animation-direction: reverse; }
@keyframes mq-run { to { transform: translateX(-50%); } }

.mq__i {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 18px;
    font-size: .88rem;
    font-weight: 450;
    white-space: nowrap;
    color: var(--fg-soft);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 100px;
}
.mq__i svg { width: 15px; height: 15px; color: var(--orange); flex: none; }

@media (prefers-reduced-motion: reduce) {
    .mq__track { animation: none; }
    .mq { mask-image: none; -webkit-mask-image: none; }
}

/* --------------------------------------------------------------------------
   .gauge — INDICE DI FIDUCIA
   -------------------------------------------------------------------------- */
.gauge { position: relative; max-width: 380px; margin-inline: auto; }

.gauge__svg { width: 100%; height: auto; overflow: visible; }

.gauge__track {
    stroke: var(--line);
    stroke-width: 14;
    stroke-linecap: round;
    fill: none;
}

.gauge__fill {
    stroke: var(--orange);
    stroke-width: 14;
    stroke-linecap: round;
    fill: none;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 1.8s var(--ease) .25s;
    filter: drop-shadow(0 0 12px rgba(255, 90, 31, .45));
}
.is-in .gauge__fill { stroke-dashoffset: calc(100 - var(--p, .88) * 100); }

.gauge__tick { stroke: var(--line); stroke-width: 2; stroke-linecap: round; }
.gauge__tick.is-on { stroke: var(--orange); opacity: .55; }

.gauge__head { fill: var(--bg); stroke: var(--orange); stroke-width: 3.5; }
.gauge__halo { fill: none; stroke: var(--orange); stroke-width: 2; opacity: 0; }
.is-live .gauge__halo { animation: cv-ping 2.8s var(--ease-io) infinite 2s; transform-box: fill-box; transform-origin: center; }

/* numero al centro del semicerchio */
.gauge__val {
    position: absolute;
    left: 50%;
    bottom: 6%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
}
.gauge__val b {
    display: block;
    font-family: var(--f-display);
    font-size: clamp(2.4rem, 6vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1;
}
.gauge__val b .suf { color: var(--orange); }
.gauge__val small {
    display: block;
    margin: 12px auto 0;
    max-width: 24ch;
    font-size: .8rem;
    line-height: 1.4;
    color: var(--fg-muted);
}

/* --------------------------------------------------------------------------
   .pst — I CINQUE LIVELLI DEL FRAMEWORK
   -------------------------------------------------------------------------- */
.pst { width: 100%; }
.pst__svg { width: 100%; height: auto; overflow: visible; }

.pst__layer { transition: transform .5s var(--ease); transform-box: view-box; }
.pst__layer.is-active { transform: translateX(10px); }

.pst__plate {
    fill: var(--surface);
    stroke: var(--line);
    stroke-width: 1.2;
    transition: fill var(--t), stroke var(--t);
}
.pst__layer.is-active .pst__plate {
    fill: var(--surface-2);
    stroke: rgba(255, 90, 31, .45);
}

.pst__glow {
    fill: none;
    stroke: var(--orange);
    stroke-width: 1;
    opacity: 0;
    transition: opacity var(--t);
}
.pst__layer.is-active .pst__glow { opacity: .3; }

.pst__mark { fill: var(--line); transition: fill var(--t); }
.pst__layer.is-active .pst__mark { fill: var(--orange); }

.pst__num {
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 500;
    fill: var(--fg-faint);
    transition: fill var(--t);
}
.pst__layer.is-active .pst__num { fill: var(--orange); }

.pst__bit { fill: var(--line); transition: fill var(--t); }
.pst__layer.is-active .pst__bit { fill: rgba(255, 90, 31, .38); }
.pst__layer.is-active .pst__bit:first-of-type { fill: rgba(255, 90, 31, .6); }

.pst__dir   { stroke: var(--line); stroke-width: 1.2; stroke-dasharray: 3 5; }
.pst__dir-h { stroke: var(--line); stroke-width: 1.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }


/* --------------------------------------------------------------------------
   .cd — COUNTDOWN
   -------------------------------------------------------------------------- */
.cd {
    padding: 16px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
}
.cd-t {
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .42);
    margin-bottom: 12px;
    text-align: center;
}
.cd-g {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}
.cd-g span {
    display: grid;
    justify-items: center;
    gap: 5px;
    padding: 9px 4px;
    background: rgba(255, 255, 255, .05);
    border-radius: 7px;
}
.cd-g b {
    font-family: var(--f-display);
    font-size: 1.24rem;
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.cd-g small {
    font-size: .58rem;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .42);
}

/* evento passato: il countdown si spegne da solo */
.cd.is-over .cd-g { display: none; }
.cd.is-over .cd-t {
    margin-bottom: 0;
    color: var(--orange);
    letter-spacing: .04em;
}


/* --------------------------------------------------------------------------
   CONFRONTO A DUE COLONNE
   -------------------------------------------------------------------------- */
.vs {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
    gap: clamp(26px, 4vw, 56px);
    align-items: start;
}

@media (max-width: 820px) {
    .vs { grid-template-columns: minmax(0, 1fr); gap: 34px; }
    .vs__sep { display: none; }
}

.vs__sep { align-self: stretch; }
.vs__sep span {
    display: block;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--line) 18%, var(--line) 82%, transparent);
}

.vs__col {
    padding: clamp(24px, 3vw, 34px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}
.vs__col--good {
    border-color: rgba(255, 90, 31, .24);
    box-shadow: 0 0 0 4px rgba(255, 90, 31, .05);
}

.vs__t {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    font-family: var(--f-display);
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: -.018em;
}
.vs__t em { font-style: italic; }
.vs__t svg { width: 18px; height: 18px; flex: none; color: var(--fg-faint); }
.vs__col--good .vs__t svg { color: var(--orange); }


/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-split {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: clamp(36px, 5vw, 84px);
    align-items: start;
}
@media (max-width: 940px) {
    .faq-split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}

.faq-split .sec-head { position: sticky; top: 110px; }
@media (max-width: 940px) { .faq-split .sec-head { position: static; } }

/* --------------------------------------------------------------------------
   Card con alone che segue il puntatore ([data-spot])
   -------------------------------------------------------------------------- */
[data-spot] { position: relative; overflow: hidden; }
[data-spot]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 90, 31, .10), transparent 65%);
    opacity: 0;
    transition: opacity .4s var(--ease-io);
    pointer-events: none;
}
[data-spot]:hover::before { opacity: 1; }
