/* index.php — Hero: orizzonte luminoso + titolo a due toni + barra AI dimostrativa.
   Colori: primary #A27ABA, secondary #69B4E4; accenti derivati per la profondità del gradiente:
   blu profondo #3D6BFF, magenta #E05BBF. */

/* ---------- Sezione ---------- */
.hero-sec {
    --hz: 86%;
    min-height: 100vh;
    min-height: 100svh;
    padding: 7.5rem 0 9rem;
    background: #0A0A0A;
}

/* ---------- Sfondo: bagliori dietro la curva di un "pianeta" scuro ----------
   La maschera ellittica dissolve tutto verso i lati e verso il basso: l'orizzonte resta pieno
   al centro e svanisce prima dei bordi, e il fondo dell'hero coincide con quello della sezione
   successiva (#0A0A0A = colore "dark" del tema): nessuno stacco. */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(ellipse 80% 105% at 50% 0%, #000 78%, transparent 100%);
    mask-image: radial-gradient(ellipse 80% 105% at 50% 0%, #000 78%, transparent 100%);
}
.hero-glow {
    position: absolute;
    top: var(--hz);
    border-radius: 50%;
    mix-blend-mode: screen;
    will-change: transform;
}
.hero-g1 {
    left: 18%;
    width: 85vw;
    height: 70vh;
    margin: -48vh 0 0 -42.5vw;
    background: radial-gradient(closest-side, rgba(61, 107, 255, 0.95), rgba(61, 107, 255, 0.35) 55%, transparent);
    animation: hDrift1 11s ease-in-out infinite alternate;
}
.hero-g2 {
    left: 50%;
    width: 95vw;
    height: 80vh;
    margin: -50vh 0 0 -47.5vw;
    background: radial-gradient(closest-side, rgba(224, 91, 191, 0.9), rgba(224, 91, 191, 0.3) 55%, transparent);
    animation: hBreath 9s ease-in-out infinite alternate;
}
.hero-g3 {
    left: 82%;
    width: 85vw;
    height: 70vh;
    margin: -48vh 0 0 -42.5vw;
    background: radial-gradient(closest-side, rgba(162, 122, 186, 0.95), rgba(162, 122, 186, 0.35) 55%, transparent);
    animation: hDrift2 13s ease-in-out infinite alternate;
}

/* Polvere luminosa: due strati di puntini che salgono piano sopra l'orizzonte e svaniscono */
.hero-bg::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 15%;
    height: calc(var(--hz) - 15%);
    background-image:
        radial-gradient(1.5px 1.5px at 20% 30%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 70% 60%, rgba(105, 180, 228, 0.9), transparent),
        radial-gradient(1.5px 1.5px at 45% 80%, rgba(224, 91, 191, 0.85), transparent),
        radial-gradient(1px 1px at 85% 15%, rgba(255, 255, 255, 0.8), transparent);
    background-size: 220px 220px, 300px 300px, 260px 260px, 340px 340px;
    -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.6) 45%, transparent 100%);
    mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.6) 45%, transparent 100%);
    opacity: 0.45;
    animation: hDust 26s linear infinite;
}
@keyframes hDust {
    from { background-position: 0 0, 0 0, 0 0, 0 0; }
    to   { background-position: 30px -220px, -40px -300px, 20px -260px, -25px -340px; }
}

/* La curva: un cerchio enorme e scuro; il bordo superiore è la linea d'orizzonte che si accende */
.hero-arc {
    position: absolute;
    top: var(--hz);
    left: 50%;
    width: 250vw;
    height: 250vw;
    margin-left: -125vw;
    border-radius: 50%;
    background: #0A0A0A;
    box-shadow:
        0 -1px 0 rgba(255, 255, 255, 0.55),
        0 -6px 30px rgba(105, 180, 228, 0.6),
        0 -30px 120px rgba(162, 122, 186, 0.5);
}
/* Scie di luce che scorrono lungo la linea d'orizzonte (dove @property non è supportata: nessuna scia) */
@property --hR {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
.hero-arc::before {
    content: '';
    position: absolute;
    inset: -1px;
    padding: 2px;
    border-radius: 50%;
    background: repeating-conic-gradient(from var(--hR), transparent 0deg 6deg, rgba(105, 180, 228, 0.5) 7.5deg, rgba(255, 255, 255, 0.95) 8.6deg, rgba(224, 91, 191, 0.5) 9.6deg, transparent 11deg 20deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: hSweep 40s linear infinite;
}
@keyframes hSweep {
    to { --hR: 360deg; }
}

/* Grana finissima: toglie l'effetto "plastica" ai gradienti */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.08;
    mix-blend-mode: overlay;
}

@keyframes hDrift1 {
    0%   { transform: translate(-9vw, 2vh) scale(1); }
    100% { transform: translate(10vw, -4vh) scale(1.15); }
}
@keyframes hDrift2 {
    0%   { transform: translate(9vw, -3vh) scale(1.1); }
    100% { transform: translate(-10vw, 3vh) scale(0.92); }
}
@keyframes hBreath {
    0%   { transform: translateY(3vh) scale(0.9); opacity: 0.8; }
    100% { transform: translateY(-4vh) scale(1.15); opacity: 1; }
}

/* ---------- Badge ---------- */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.75rem;
    padding: 0.4rem 0.95rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.hero-dot {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: #69B4E4;
    box-shadow: 0 0 10px #69B4E4;
    animation: hPulse 2.2s ease-in-out infinite;
}
@keyframes hPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.5); opacity: 0.5; }
}

/* ---------- Titolo a due toni ---------- */
.hero-ttl {
    max-width: 62rem;
    margin: 0 auto;
    font-size: clamp(2.25rem, 1.2rem + 4.2vw, 4.75rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.035em;
    color: #fff;
}
.hero-acc {
    background: linear-gradient(90deg, #69B4E4, #A27ABA, #E05BBF, #A27ABA, #69B4E4);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: hShift 10s linear infinite;
}
@keyframes hShift {
    to { background-position: 300% 0; }
}

/* ---------- Barra AI: solo scrittura (inc/home-hero.js.php) ----------
   Stellina, campo e freccia. Il segnaposto è un testo sovrapposto (.hero-ph) che ruota fra le frasi di
   hero.ask.placeholders; sparisce appena nel campo c'è del testo (:placeholder-shown, funziona anche senza JS). */
@property --hA {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
.hero-ask {
    position: relative;
    max-width: 38rem;
    margin: 2.5rem auto;
    padding: 0.55rem 0.55rem 0.55rem 1.1rem;
    text-align: left;
    border-radius: 1.5rem;
    background: rgba(18, 18, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.55),
        0 0 60px rgba(162, 122, 186, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    cursor: text;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
/* Bordo di luce che ruota lentamente (dove @property non è supportata resta un bordo fermo) */
.hero-ask::before {
    content: '';
    position: absolute;
    inset: -1px;
    padding: 1px;
    border-radius: inherit;
    background: conic-gradient(from var(--hA), transparent 0 58%, #69B4E4 70%, #A27ABA 80%, #E05BBF 88%, transparent 97%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: hRing 6s linear infinite;
    pointer-events: none;
}
@keyframes hRing {
    to { --hA: 360deg; }
}
.hero-ask:focus-within {
    border-color: rgba(162, 122, 186, 0.45);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.55),
        0 0 80px rgba(162, 122, 186, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-q {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.hero-spark { flex-shrink: 0; color: #A27ABA; }
.hero-qw {
    position: relative;
    flex: 1;
    min-width: 0;
    height: 2.75rem;
    font-size: 1rem;
}
.hero-in {
    position: absolute;
    inset: 0;
    width: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    caret-color: #69B4E4;
    cursor: text;
}
.hero-ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.hero-pht { display: block; overflow: hidden; text-overflow: ellipsis; }
.hero-in:not(:placeholder-shown) + .hero-ph { opacity: 0; }
.hero-in:focus + .hero-ph { color: rgba(255, 255, 255, 0.5); }
.hero-send {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #0A0A0A;
    cursor: pointer;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.hero-send:disabled { opacity: 0.35; cursor: default; }
.hero-send:not(:disabled):active { transform: scale(0.92); }

/* ---------- Freccia di scorrimento: le tre frecce del logo, verso il basso ----------
   Appena sotto la linea d'orizzonte (--hz, come .hero-arc), sul nero del "pianeta". Le frecce si accendono
   una dopo l'altra dall'alto in basso. Niente AOS: userebbe transform. */
.hero-down {
    position: absolute;
    top: calc(var(--hz) + 1.25rem);
    left: 50%;
    z-index: 5;
    display: block;
    margin-left: -1.375rem;
    padding: 0.75rem 0.6875rem;
    color: #fff;
    animation: hDownIn 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.9s both;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero-down svg { display: block; overflow: visible; }
.hero-down path { opacity: 0.25; animation: hChev 2.4s ease-in-out infinite; }
.hero-down path:nth-child(2) { animation-delay: 0.2s; }
.hero-down path:nth-child(3) { animation-delay: 0.4s; }
.hero-down:focus-visible { outline: 2px solid #69B4E4; outline-offset: 2px; border-radius: 0.5rem; }
@media (hover: hover) {
    .hero-down:hover { transform: translateY(3px); }
}
@keyframes hDownIn { from { opacity: 0; transform: translateY(-10px); } }
@keyframes hChev {
    0%, 60%, 100% { opacity: 0.25; }
    25%           { opacity: 1; }
}

@media (max-width: 640px) {
    .hero-sec { --hz: 88%; padding: 6.5rem 0 6rem; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-glow, .hero-dot, .hero-acc, .hero-ask::before,
    .hero-bg::before, .hero-arc::before { animation: none; }
    .hero-down, .hero-down path { animation: none; }
    .hero-down path { opacity: 0.8; }
    .hero-ask, .hero-ph, .hero-send, .hero-down { transition: none; }
}

/* ---------- Sezione "Questa animazione è AI": rete neurale 3D interattiva (canvas) ---------- */
.nrl-wrap {
    aspect-ratio: 16 / 11;
    touch-action: pan-y;
    cursor: crosshair;
    -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
    mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
}
.nrl-halo {
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 40%, rgba(105, 180, 228, 0.28), transparent 55%),
        radial-gradient(circle at 50% 65%, rgba(224, 91, 191, 0.22), transparent 60%),
        radial-gradient(circle, rgba(162, 122, 186, 0.25), transparent 70%);
    pointer-events: none;
}
.nrl-cv {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* ---------- Case study in home (portfolio teaser): .pc su .cxr ----------
   Foto sempre a colori, senza filtri; i testi stanno su un velo scuro dal basso. Etichetta e freccia in vetro
   scuro in alto. Su desktop con mouse la descrizione compare al passaggio; .pc-m = slide mobile. */
.pc {
    display: block;
    height: 24rem;
    overflow: hidden;
    background: #0c0c0f;
    color: #fff;
}
.pc-m { height: 17.5rem; }
.pc:focus-visible { outline: 2px solid #69B4E4; outline-offset: 3px; }
.pc-img { position: absolute; inset: 0; }
.pc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pc-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(7, 7, 11, 0.96), rgba(7, 7, 11, 0.8) 28%, rgba(7, 7, 11, 0.3) 55%, transparent 72%),
        linear-gradient(to bottom, rgba(7, 7, 11, 0.45), transparent 24%);
}
.pc-tag, .pc-go {
    position: absolute;
    top: 1rem;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(10, 10, 14, 0.55);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.pc-tag {
    left: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.pc-tag::before {
    content: "";
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background: #A27ABA;
    box-shadow: 0 0 0.5rem #A27ABA;
}
.pc-go {
    right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.pc-go svg { transition: transform 0.3s ease; }
.pc-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 1.25rem;
}
.pc-t {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.pc-kpi {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.2rem 0.6rem;
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.pc-kpi strong {
    font-size: 1rem;
    font-weight: 800;
    background: linear-gradient(90deg, #8FCBF0, #C9A6DD);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.pc-kpi span {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}
.pc-dw { display: grid; grid-template-rows: 1fr; }
.pc-d {
    min-height: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-top: 0.6rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.76);
}
.pc-m .pc-t { font-size: 1.25rem; }
.pc-m .pc-body { padding: 1rem 1.1rem 1.1rem; }

@media (hover: hover) {
    .pc:hover .pc-img img { transform: scale(1.06); }
    .pc:hover .pc-go { background: linear-gradient(135deg, #A27ABA, #69B4E4); border-color: transparent; }
    .pc:hover .pc-go svg { transform: translate(1px, -1px); }
}
/* Desktop con mouse: descrizione nascosta, si apre al passaggio (riga della griglia da 0fr a 1fr) */
@media (hover: hover) and (min-width: 768px) {
    .pc-dw { grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.4s ease, opacity 0.3s ease; }
    .pc:hover .pc-dw, .pc:focus-visible .pc-dw { grid-template-rows: 1fr; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .pc-img img, .pc-dw, .pc-go, .pc-go svg { transition: none; }
}

/* ---------- Due vantaggi (#shift): .sh-card su .cx ----------
   Accento per card: --ac (azzurro la prima, viola .sh-b). Il contenuto finale (frase o fonte) scende in fondo,
   così le due card si allineano. Le barre dei numeri si riempiono quando AOS anima la card. */
.sh-card {
    --ac: #69B4E4;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.75rem 1.5rem;
    overflow: hidden;
}
.sh-b { --ac: #A27ABA; }
/* Filo di luce sul bordo alto, nel colore della card */
.sh-card > .sh-hd::before {
    content: "";
    position: absolute;
    top: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ac), transparent);
    opacity: 0.7;
}
.sh-hd { display: flex; align-items: center; gap: 0.9rem; }
.sh-hd .ico { color: var(--ac); }
.sh-hd h3 {
    font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #fff;
}
.sh-p { font-size: 1rem; line-height: 1.65; color: rgba(255, 255, 255, 0.78); }

.sh-st { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.sh-st strong {
    display: block;
    font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, #fff, var(--ac));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.sh-bar {
    display: block;
    height: 4px;
    margin: 0.8rem 0 0.7rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.sh-bar i {
    display: block;
    width: var(--w);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #69B4E4, #A27ABA);
    box-shadow: 0 0 10px rgba(162, 122, 186, 0.6);
}
.aos-animate .sh-bar i { animation: shBar 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s backwards; }
@keyframes shBar { from { width: 0; } }
.sh-st p { font-size: 0.875rem; line-height: 1.5; color: rgba(255, 255, 255, 0.72); }

.sh-q {
    position: relative;
    margin-top: auto;
    padding: 1rem 1.1rem 1rem 1.25rem;
    border-radius: 0.9rem;
    background: rgba(0, 0, 0, 0.28);
    font-size: 0.9375rem;
    font-style: italic;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
}
.sh-q::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.8rem;
    bottom: 0.8rem;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(#69B4E4, #A27ABA);
}
.sh-src {
    margin-top: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}
@media (min-width: 768px) {
    .sh-card { padding: 2rem 2rem 1.9rem; }
    .sh-card > .sh-hd::before { left: 2rem; right: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
    .aos-animate .sh-bar i { animation: none; }
}

/* ---------- Come funziona (.hw): tre passi uniti da una linea di luce ----------
   Desktop: tre colonne, la linea orizzontale passa per il centro dei nodi e una scia la percorre.
   Mobile: colonna, nodo a sinistra e un tratto verticale fra un passo e il successivo.
   --ac = accento del passo (inline). */
.hw-ttl {
    max-width: 44rem;
    margin: 0 auto 1rem;
    font-size: clamp(1.75rem, 1.3rem + 2vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}
.hw-sub {
    max-width: 38rem;
    margin: 0 auto;
    font-size: clamp(0.9375rem, 0.88rem + 0.25vw, 1.0625rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.68);
}
.hw-wrap { position: relative; max-width: 72rem; margin: 0 auto; }
.hw-steps { display: grid; gap: 2.25rem; }
.hw-step { position: relative; padding-left: 4.5rem; }
.hw-step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 1.625rem;
    top: 3.75rem;
    bottom: -2rem;
    width: 1px;
    background: linear-gradient(var(--ac), rgba(255, 255, 255, 0.06));
}
.hw-node {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: radial-gradient(circle at 50% 30%, #1a1a24, #0e0e14);
    color: var(--ac);
    box-shadow: 0 0 0 6px #0A0A0A, 0 0 28px -6px var(--ac), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.hw-body h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.25; color: #fff; }
.hw-body > p { margin-top: 0.4rem; font-size: 0.9375rem; line-height: 1.6; color: rgba(255, 255, 255, 0.7); }

.hw-line { display: none; }

@media (min-width: 768px) {
    .hw-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
    .hw-step { padding: 4.75rem 0 0; text-align: center; }
    .hw-step:not(:last-child)::before { display: none; }
    .hw-node { left: 50%; margin-left: -1.625rem; }
    .hw-body > p { max-width: 18rem; margin-left: auto; margin-right: auto; }
    /* Linea fra il centro del primo e dell'ultimo nodo: colonna = (100% - 2 gap) / 3, centro = metà colonna */
    .hw-line {
        display: block;
        position: absolute;
        top: calc(1.625rem - 0.5rem);
        left: calc((100% - 4rem) / 6);
        right: calc((100% - 4rem) / 6);
        height: 1rem;
        overflow: hidden;
        background: linear-gradient(90deg, #69B4E4, #8E95D6, #A27ABA) center / 100% 1px no-repeat;
        opacity: 0.55;
    }
    .hw-line::after {
        content: "";
        position: absolute;
        top: 50%;
        left: -6rem;
        width: 6rem;
        height: 2px;
        margin-top: -1px;
        border-radius: 2px;
        background: linear-gradient(90deg, transparent, #fff);
        box-shadow: 0 0 10px rgba(162, 122, 186, 0.9);
        animation: hwRun 4.5s cubic-bezier(0.45, 0, 0.55, 1) infinite;
    }
}
@keyframes hwRun { to { left: 100%; } }
@media (prefers-reduced-motion: reduce) {
    .hw-line::after { animation: none; display: none; }
}

/* ---------- Privacy First (.zt): radar attorno al lucchetto + tre benefici ----------
   Il radar: tre anelli che si allargano e una scia conica che ruota; non "trova" niente. */
.zt {
    display: grid;
    gap: 2rem;
    max-width: 64rem;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    border-radius: 1.5rem;
    overflow: hidden;
}
.zt-l { text-align: center; }
.zt-l h2 {
    margin-top: 0.9rem;
    font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}
.zt-lead { margin-top: 0.6rem; font-size: 1.0625rem; line-height: 1.5; color: rgba(255, 255, 255, 0.8); }
.zt-q {
    position: relative;
    display: inline-block;
    margin-top: 1.25rem;
    padding-left: 0.9rem;
    font-size: 0.875rem;
    font-style: italic;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.55);
    text-align: left;
}
.zt-q::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15rem;
    bottom: 0.15rem;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(#69B4E4, #A27ABA);
}

.zt-rad { position: relative; width: 7.5rem; height: 7.5rem; margin: 0 auto 1.5rem; }
.zt-rad::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(105, 180, 228, 0.18);
    background: conic-gradient(from 0deg, rgba(105, 180, 228, 0.32), transparent 22%);
    animation: ztSweep 4s linear infinite;
}
.zt-rad i {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(162, 122, 186, 0.5);
    opacity: 0;
    animation: ztPing 3.6s ease-out infinite;
}
.zt-rad i:nth-child(2) { animation-delay: 1.2s; }
.zt-rad i:nth-child(3) { animation-delay: 2.4s; }
.zt-lock {
    position: absolute;
    left: 50%;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin: -1.5rem 0 0 -1.5rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: radial-gradient(circle at 50% 30%, #1d1d28, #0e0e14);
    color: #69B4E4;
    box-shadow: 0 0 0 5px rgba(10, 10, 10, 0.6), 0 0 26px -4px rgba(105, 180, 228, 0.7);
}
@keyframes ztSweep { to { transform: rotate(360deg); } }
@keyframes ztPing { 0% { transform: scale(0.35); opacity: 0.9; } 100% { transform: scale(1); opacity: 0; } }

.zt-ls { display: grid; }
.zt-ls li { display: flex; align-items: flex-start; gap: 1rem; padding: 1.1rem 0; }
.zt-ls li + li { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.zt-ls .ico { color: #69B4E4; }
.zt-ls li:nth-child(2) .ico { color: #8E95D6; }
.zt-ls li:nth-child(3) .ico { color: #A27ABA; }
.zt-ls h3 { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; color: #fff; }
.zt-ls p { margin-top: 0.25rem; font-size: 0.9rem; line-height: 1.55; color: rgba(255, 255, 255, 0.66); }

@media (min-width: 768px) {
    .zt { grid-template-columns: 1fr 1.15fr; align-items: center; gap: 3rem; padding: 2.75rem 3rem; }
    .zt-l { text-align: left; }
    .zt-rad { margin: 0 0 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
    .zt-rad::before, .zt-rad i { animation: none; }
}

/* ---------- Servizi in home: 4 colonne da desktop ---------- */
@media (min-width: 1024px) {
    .svc-g { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- CTA finale: titolo su due righe (la seconda in gradiente, .hero-acc) ---------- */
.cta-t {
    margin: 0 auto 2rem;
    max-width: 46rem;
    font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: #fff;
}
