/* Pagine servizio (18/11): social-media-marketing.php e agenti-ai-automazioni.php, con inc/servizio.php e
   inc/servizio-fine.php. Classi .sp-*. Dalle pagine prendono anche .sc-sec, .sc-hdr, .sc-h2, .sc-sub (css/scopri.css)
   e .cx, .cxr, .eyb, .ico, .lnk, .btn-* (css/ui.css).
   Animazioni solo con transform, opacity e tratteggi svg: nessun filtro né backdrop-filter (iPhone). Con «riduci
   movimento» tutto si ferma e resta leggibile. */

.sp-grad {
    background: linear-gradient(100deg, #8FCBF0 0%, #C9A6DD 55%, #A27ABA 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Hero divisa: testo a sinistra, disegno a destra da 1024px; sotto, uno sopra l'altro e centrati ---------- */
.sp-hero { position: relative; overflow: hidden; padding: 7.5rem 0 3rem; }
@media (min-width: 768px) { .sp-hero { padding: 9.5rem 0 4.5rem; } }
.sp-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(closest-side, rgba(162, 122, 186, 0.2), transparent) 85% 45% / 40rem 34rem no-repeat,
        radial-gradient(closest-side, rgba(105, 180, 228, 0.12), transparent) 8% 18% / 34rem 26rem no-repeat;
}
/* Larghezza massima (18/11): sugli schermi larghi testo e disegno restano vicini al centro, non ai bordi */
.sp-hero-g { position: relative; display: grid; justify-items: center; gap: 2.75rem; max-width: 76rem; text-align: center; }
@media (min-width: 1024px) {
    .sp-hero-g { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; justify-items: start; gap: 3rem; text-align: left; }
}
.sp-hero-t { max-width: 36rem; }
.sp-h1 {
    margin-top: 1.1rem;
    font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em;
    text-wrap: balance;
}
.sp-h1 .sp-grad { display: block; }
.sp-lead { max-width: 34rem; margin: 1.25rem auto 0; font-size: 1rem; line-height: 1.65; color: rgba(255, 255, 255, 0.74); }
@media (min-width: 768px) { .sp-lead { font-size: 1.125rem; } }
.sp-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem 1.5rem; margin-top: 1.75rem; }
@media (min-width: 1024px) {
    .sp-lead { margin-left: 0; }
    .sp-cta { justify-content: flex-start; }
}

/* ---------- Telefono (Social): foto dei lavori come storie, barre in alto, notifiche a turno. Ciclo di 12 s, 4 s per
   foto; --d = posizione della foto. .is-z ingrandisce la foto che ha le bande nere sopra e sotto. ---------- */
.sp-ph-w { position: relative; width: 15.5rem; }
@media (max-width: 380px) { .sp-ph-w { width: 14rem; } }
@media (min-width: 768px) { .sp-ph-w { width: 17rem; } }
@media (min-width: 1024px) { .sp-ph-w { justify-self: center; } }
.sp-ph-w::before {
    content: ""; position: absolute; inset: -20% -40%; pointer-events: none;
    background: radial-gradient(closest-side, rgba(162, 122, 186, 0.28), rgba(105, 180, 228, 0.08) 60%, transparent);
}
.sp-ph {
    position: relative;
    aspect-ratio: 9 / 18.5;
    padding: 0.5rem;
    border-radius: 2.4rem;
    background: linear-gradient(160deg, #2b2934, #121117 60%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 40px 80px -30px rgba(0, 0, 0, 0.9);
}
.sp-ph-s { position: relative; height: 100%; overflow: hidden; isolation: isolate; border-radius: 1.95rem; background: #0c0c0f; }
.sp-ph-im {
    --z: 1;
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0;
    animation: spSl 12s linear infinite;
    animation-delay: calc(var(--d) * 4s);
}
.sp-ph-im.is-z { --z: 1.16; }
/* Dissolvenza pulita (18/11, prima sembrava una doppia esposizione): la foto nuova entra del tutto (0–3%) e solo dopo
   la vecchia, che le resta sotto o sopra, si spegne (36,5–38%) */
@keyframes spSl {
    0%     { opacity: 0; transform: scale(var(--z)); }
    3%     { opacity: 1; }
    36.5%  { opacity: 1; }
    38%    { opacity: 0; transform: scale(calc(var(--z) * 1.08)); }
    100%   { opacity: 0; transform: scale(calc(var(--z) * 1.08)); }
}
.sp-ph-sh {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 22%),
        linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 24%);
}
.sp-ph-bars { position: absolute; top: 0.8rem; left: 0.8rem; right: 0.8rem; z-index: 2; display: flex; gap: 0.25rem; }
.sp-ph-bars i { flex: 1; height: 2px; overflow: hidden; border-radius: 2px; background: rgba(255, 255, 255, 0.32); }
.sp-ph-bars i::after {
    content: ""; display: block; height: 100%; background: #fff;
    transform: scaleX(0); transform-origin: left;
    animation: spB0 12s linear infinite;
}
.sp-ph-bars .b1::after { animation-name: spB1; }
.sp-ph-bars .b2::after { animation-name: spB2; }
@keyframes spB0 { 0% { transform: scaleX(0); } 33.3%, 100% { transform: scaleX(1); } }
@keyframes spB1 { 0%, 33.3% { transform: scaleX(0); } 66.6%, 100% { transform: scaleX(1); } }
@keyframes spB2 { 0%, 66.6% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
.sp-ph-top {
    position: absolute; top: 1.35rem; left: 0.85rem; z-index: 2;
    display: flex; align-items: center; gap: 0.45rem;
    font-size: 0.75rem; font-weight: 600; color: #fff;
}
.sp-ph-av {
    width: 1.6rem; height: 1.6rem; border-radius: 50%;
    background: linear-gradient(135deg, #A27ABA, #69B4E4);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}
.sp-ph-act { position: absolute; bottom: 1rem; left: 1rem; z-index: 2; display: flex; gap: 0.9rem; color: #fff; }
.sp-ph-act i { display: flex; }
.sp-ph-act .is-h { animation: spHt 4s ease infinite; animation-delay: 0.6s; }
@keyframes spHt {
    0%, 8%    { transform: none; color: #fff; }
    16%       { transform: scale(1.3); color: #FF6B8B; }
    26%, 60%  { transform: none; color: #FF6B8B; }
    72%, 100% { transform: none; color: #fff; }
}
.sp-ph-c {
    position: absolute; z-index: 3;
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.55rem 1.1rem 0.55rem 0.55rem;
    border-radius: 999px;
    /* Nuvoletta (18/11): niente contorno netto; fondo pieno al centro che sfuma verso i bordi, alone viola tenue.
       Tutto fermo: si animano solo opacity e transform (niente blur, iPhone) */
    background: radial-gradient(farthest-side, rgba(30, 26, 42, 0.9) 55%, rgba(30, 26, 42, 0.62) 82%, rgba(30, 26, 42, 0.18));
    box-shadow: 0 0 1.75rem -0.25rem rgba(162, 122, 186, 0.28), 0 12px 32px -14px rgba(0, 0, 0, 0.7);
    font-size: 0.8125rem; font-weight: 600; white-space: nowrap; color: rgba(255, 255, 255, 0.94);
    opacity: 0;
    transform-origin: 30% 60%;
    animation: spCh var(--t, 9s) cubic-bezier(0.4, 0, 0.2, 1) infinite;
    animation-delay: var(--dl, 0s);
}
.sp-ph-c.is-l { transform-origin: 70% 60%; }
.sp-ph-c i {
    display: flex; align-items: center; justify-content: center;
    width: 1.6rem; height: 1.6rem; border-radius: 50%;
    background: linear-gradient(135deg, #A27ABA, #69B4E4);
}
.sp-ph-c svg { width: 14px; height: 14px; }
/* Notifiche (18/11): sette, ognuna col suo ciclo (--t da 7,5 a 12,5 s) e il suo ritardo (--dl), messi nel markup
   insieme all'altezza (top): restano accese circa 2–3 s e capita che se ne vedano due o tre insieme */
.sp-ph-c.is-r { right: -2.75rem; }
.sp-ph-c.is-l { left: -3rem; }
/* Compare come uno sbuffo (si gonfia e sale piano, ~0,8 s), poi si dissolve salendo ancora e allargandosi un poco */
@keyframes spCh {
    0%        { opacity: 0; transform: translateY(12px) scale(0.82); }
    5%        { opacity: 0.75; transform: translateY(2px) scale(1.02); }
    9%, 22%   { opacity: 1; transform: none; }
    31%, 100% { opacity: 0; transform: translateY(-14px) scale(1.06); }
}

/* ---------- Schema della hero (Agenti): impulsi di tratteggio dalle fonti all'agente e ai risultati (ciclo 3,2 s;
   --d = ritardo del singolo percorso). I colori dei risultati si accendono quando arriva l'impulso. ---------- */
.sp-fx-w { width: 100%; max-width: 31rem; }
@media (max-width: 639px) { .sp-fx-w { width: calc(100% + 1.5rem); margin: 0 -0.75rem; } }
@media (min-width: 1024px) { .sp-fx-w { justify-self: end; } }
.sp-fx { display: block; width: 100%; height: auto; overflow: visible; font-family: inherit; }
.sp-fx-b { stroke: rgba(255, 255, 255, 0.12); stroke-width: 1.5; }
.sp-fx-p {
    stroke: url(#spFxG); stroke-width: 2.5; stroke-linecap: round;
    stroke-dasharray: 14 100; stroke-dashoffset: 17;
    animation: spFxP 3.2s linear infinite;
    animation-delay: var(--d);
}
@keyframes spFxP { 0% { stroke-dashoffset: 17; } 45%, 100% { stroke-dashoffset: -103; } }
.sp-fx-in rect { fill: rgba(255, 255, 255, 0.04); stroke: rgba(255, 255, 255, 0.14); }
.sp-fx-in circle { fill: #69B4E4; }
.sp-fx-in text { fill: rgba(255, 255, 255, 0.85); font-size: 14px; font-weight: 600; }
.sp-fx-out rect {
    fill: rgba(255, 255, 255, 0.04); stroke: rgba(255, 255, 255, 0.14);
    animation: spFxO 3.2s ease infinite;
    animation-delay: calc(var(--d) + 1.3s);
}
@keyframes spFxO {
    0%, 40%, 100% { fill: rgba(255, 255, 255, 0.04); stroke: rgba(255, 255, 255, 0.14); }
    8%            { fill: rgba(105, 180, 228, 0.14); stroke: rgba(143, 203, 240, 0.8); }
}
.sp-fx-out circle { fill: url(#spFxG); }
.sp-fx-out path { stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sp-fx-out text { fill: rgba(255, 255, 255, 0.88); font-size: 13.5px; font-weight: 600; }
.sp-fx-r {
    stroke: rgba(162, 122, 186, 0.55); stroke-width: 1.2; stroke-dasharray: 2 6;
    transform-box: fill-box; transform-origin: center;
    animation: spRot 18s linear infinite;
}
@keyframes spRot { to { transform: rotate(360deg); } }
.sp-fx-g {
    fill: rgba(162, 122, 186, 0.3);
    transform-box: fill-box; transform-origin: center;
    animation: spGl 3.2s ease-out infinite;
}
@keyframes spGl { 0% { transform: scale(1); opacity: 0.8; } 70%, 100% { transform: scale(1.45); opacity: 0; } }
.sp-fx-c { fill: url(#spFxC); stroke: url(#spFxG); stroke-width: 1.5; }
.sp-fx-ct { fill: #fff; font-size: 14px; font-weight: 700; text-anchor: middle; }

/* ---------- Tre passi su una linea di luce (Social): da telefono in colonna con la linea a sinistra ---------- */
.sp-st-n {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: center; flex: none;
    width: 2.75rem; height: 2.75rem; border-radius: 50%;
    border: 1px solid transparent;
    background: linear-gradient(#111018, #111018) padding-box, linear-gradient(135deg, #69B4E4, #A27ABA) border-box;
    box-shadow: 0 0 1.5rem -0.4rem rgba(162, 122, 186, 0.6);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.8125rem; font-weight: 700; color: #fff;
}
.sp-st { position: relative; display: grid; gap: 1.75rem; max-width: 64rem; margin: 0 auto; }
.sp-st::before, .sp-vs::before {
    content: ""; position: absolute; left: 1.375rem; top: 1.5rem; bottom: 1.5rem; width: 1px;
    background: linear-gradient(#69B4E4, #A27ABA); opacity: 0.45;
}
.sp-st li { position: relative; padding: 0.4rem 0 0 4rem; }
.sp-st .sp-st-n { position: absolute; left: 0; top: 0; }
.sp-st h3, .sp-vs h3 { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.sp-st p, .sp-vs p { margin-top: 0.4rem; font-size: 0.9375rem; line-height: 1.6; color: rgba(255, 255, 255, 0.7); }
@media (min-width: 768px) {
    .sp-st { grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
    .sp-st::before {
        left: 16.66%; right: 16.66%; top: 1.375rem; bottom: auto; width: auto; height: 1px;
        background: linear-gradient(90deg, #69B4E4, #A27ABA);
    }
    .sp-st li { padding: 4rem 0.5rem 0; }
    .sp-st .sp-st-n { left: 50%; transform: translateX(-50%); }
    .sp-st h3 { font-size: 1.125rem; }
}
.sp-note { max-width: 36rem; margin: 2.5rem auto 0; text-align: center; font-size: 0.875rem; line-height: 1.6; color: rgba(255, 255, 255, 0.6); }

/* ---------- Passi in colonna (Agenti), a destra della frase ---------- */
.sp-vs { position: relative; display: grid; gap: 1.75rem; }
.sp-vs li { display: flex; gap: 1.25rem; align-items: flex-start; }
.sp-vs h3 { margin-top: 0.5rem; }

/* ---------- Tessere: .sp-t4 quattro in riga (Social), .sp-t2 due per riga con l'icona a sinistra (Agenti) ---------- */
.sp-t4 { display: grid; gap: 1rem; max-width: 68rem; margin: 0 auto; }
@media (min-width: 640px) { .sp-t4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .sp-t4 { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }
.sp-t2 { display: grid; gap: 1rem; max-width: 56rem; margin: 0 auto; }
@media (min-width: 768px) { .sp-t2 { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
.sp-t { padding: 1.5rem; }
.sp-t .ico { color: #69B4E4; }
.sp-t h3 { margin-top: 1rem; font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.sp-t p { margin-top: 0.4rem; font-size: 0.9375rem; line-height: 1.55; color: rgba(255, 255, 255, 0.7); }
.sp-t.is-r { display: flex; gap: 1rem; align-items: flex-start; }
.sp-t.is-r h3 { margin-top: 0.15rem; }

/* ---------- Numeri dei casi (Social): tre cifre grandi divise da fili, senza card ---------- */
.sp-num { display: grid; max-width: 60rem; margin: 0 auto; }
.sp-num li + li { border-top: 1px solid rgba(255, 255, 255, 0.08); }
@media (min-width: 768px) {
    .sp-num { grid-template-columns: repeat(3, 1fr); }
    .sp-num li + li { border-top: 0; border-left: 1px solid rgba(255, 255, 255, 0.08); }
}
.sp-num a { display: flex; flex-direction: column; align-items: center; padding: 1.5rem 1rem; text-align: center; }
.sp-num a:focus-visible { outline: 2px solid #69B4E4; outline-offset: -2px; border-radius: 1rem; }
.sp-num strong {
    font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em;
    background: linear-gradient(110deg, #fff 10%, #C9A6DD 55%, #69B4E4 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sp-num-l { margin-top: 0.7rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.sp-num-n { margin-top: 0.9rem; font-size: 0.9375rem; font-weight: 600; color: #8FCBF0; }
.sp-num-n span { display: inline-block; transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
@media (hover: hover) { .sp-num a:hover .sp-num-n span { transform: translateX(4px); } }
.sp-more { margin-top: 2rem; text-align: center; }

/* ---------- Sezione divisa: frase a sinistra, elemento a destra (da 1024px); sotto, uno sopra l'altro ---------- */
.sp-sp { display: grid; gap: 2.5rem; max-width: 68rem; margin: 0 auto; align-items: center; }
@media (min-width: 1024px) { .sp-sp { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.sp-sp.is-top { align-items: start; }
.sp-sp-h { text-wrap: balance; }
.sp-sp-p { max-width: 32rem; margin-top: 1rem; font-size: 1rem; line-height: 1.65; color: rgba(255, 255, 255, 0.72); }
.sp-sp-l { margin-top: 1.5rem; }

/* ---------- Schema annuncio → sito → richiesta (Social): i nodi si accendono a turno e un punto di luce corre sul
   filo (ciclo 3,6 s; --d = posizione). Il punto è il fondo di uno pseudo-elemento largo quanto il filo, spostato con
   transform. ---------- */
.sp-fl {
    display: flex; align-items: center; justify-content: center;
    padding: 2.5rem 0.5rem;
    background: radial-gradient(closest-side, rgba(162, 122, 186, 0.14), transparent) center / 100% 100% no-repeat;
}
.sp-fl-n { display: flex; flex-direction: column; align-items: center; flex: none; gap: 0.7rem; font-size: 0.8125rem; font-weight: 600; color: rgba(255, 255, 255, 0.82); }
.sp-fl-n .ico { position: relative; isolation: isolate; width: 3.5rem; height: 3.5rem; border-radius: 1rem; color: #8FCBF0; }
@media (min-width: 768px) { .sp-fl-n .ico { width: 4.25rem; height: 4.25rem; } }
.sp-fl-n .ico svg { width: 22px; height: 22px; }
.sp-fl-n .ico::after {
    content: ""; position: absolute; inset: -45%; z-index: -1; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(105, 180, 228, 0.5), transparent);
    opacity: 0;
    animation: spFn 3.6s ease infinite;
    animation-delay: calc(var(--d) * 1.2s);
}
@keyframes spFn { 0%, 40%, 100% { opacity: 0; } 12% { opacity: 1; } }
.sp-fl-c {
    position: relative; flex: 1; min-width: 1.75rem; max-width: 7rem; height: 1px;
    margin: 0 0.5rem 1.85rem;
    background: linear-gradient(90deg, rgba(105, 180, 228, 0.55), rgba(162, 122, 186, 0.55));
}
@media (min-width: 768px) { .sp-fl-c { margin-bottom: 2.2rem; } }
.sp-fl-c::after {
    content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 13px;
    background: radial-gradient(circle 6px at 0 50%, #fff 0 2.5px, rgba(143, 203, 240, 0.55) 3.5px, transparent 6px) no-repeat;
    opacity: 0;
    animation: spDot 3.6s ease-in-out infinite;
    animation-delay: calc(var(--d) * 1.2s + 0.35s);
}
@keyframes spDot {
    0%        { opacity: 0; transform: translateX(0); }
    5%        { opacity: 1; }
    28%       { opacity: 1; transform: translateX(100%); }
    33%, 100% { opacity: 0; transform: translateX(100%); }
}

/* ---------- Cos'è un agente AI (Agenti): una frase grande al centro ---------- */
.sp-big { overflow: hidden; text-align: center; }
.sp-big::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(closest-side, rgba(162, 122, 186, 0.12), transparent) center / 50rem 22rem no-repeat;
}
.sp-big .container { position: relative; }
.sp-big-h {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #8FCBF0;
}
.sp-big-p {
    max-width: 50rem; margin: 1rem auto 0;
    font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.5rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.015em;
    text-wrap: balance; color: rgba(255, 255, 255, 0.92);
}

/* ---------- Chat d'esempio (Agenti): si scrive una volta quando la card entra in vista (AOS: aos-init → aos-animate).
   Il «sta scrivendo» e la risposta stanno nello stesso posto (.sp-ch-r, una cella di griglia). ---------- */
.sp-ch { width: 100%; max-width: 28rem; justify-self: center; overflow: hidden; }
.sp-ch-hd { display: flex; align-items: center; gap: 0.6rem; padding: 0.9rem 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.875rem; }
.sp-ch-av { display: flex; align-items: center; justify-content: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: linear-gradient(135deg, #A27ABA, #69B4E4); }
.sp-ch-av svg { width: 15px; height: 15px; }
.sp-ch-b { display: flex; flex-direction: column; gap: 0.75rem; padding: 1.25rem 1.1rem 1.4rem; }
.sp-ch-m { max-width: 85%; padding: 0.75rem 0.95rem; border-radius: 1rem; font-size: 0.9375rem; line-height: 1.5; }
.sp-ch-m.is-u {
    align-self: flex-end;
    border: 1px solid rgba(143, 203, 240, 0.25); border-bottom-right-radius: 0.3rem;
    background: linear-gradient(135deg, rgba(105, 180, 228, 0.2), rgba(162, 122, 186, 0.2));
}
.sp-ch-r { display: grid; justify-items: start; }
.sp-ch-r > * { grid-area: 1 / 1; }
.sp-ch-m.is-a { border: 1px solid rgba(255, 255, 255, 0.1); border-bottom-left-radius: 0.3rem; background: rgba(255, 255, 255, 0.05); }
.sp-ch-w { display: block; margin-bottom: 0.2rem; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.sp-ch-src { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.6rem; padding-top: 0.55rem; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.75rem; color: #8FCBF0; }
.sp-ch-src svg { width: 13px; height: 13px; flex: none; }
.sp-ch-ty { display: flex; gap: 0.25rem; padding: 0.8rem 0.95rem; border-radius: 1rem; background: rgba(255, 255, 255, 0.05); opacity: 0; }
.sp-ch-ty i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.6); animation: spTy 1s ease-in-out infinite; }
.sp-ch-ty i:nth-child(2) { animation-delay: 0.15s; }
.sp-ch-ty i:nth-child(3) { animation-delay: 0.3s; }
@keyframes spTy { 0%, 100% { transform: translateY(0); opacity: 0.5; } 40% { transform: translateY(-3px); opacity: 1; } }
.sp-ch.aos-init .sp-ch-m, .sp-ch.aos-init .sp-ch-src { opacity: 0; }
.sp-ch.aos-animate .sp-ch-m.is-u { animation: spIn 0.5s ease 0.6s both; }
.sp-ch.aos-animate .sp-ch-ty { animation: spTyS 1.5s ease 1.2s both; }
.sp-ch.aos-animate .sp-ch-m.is-a { animation: spIn 0.5s ease 2.7s both; }
.sp-ch.aos-animate .sp-ch-src { animation: spIn 0.4s ease 3.3s both; }
@keyframes spIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes spTyS { 0% { opacity: 0; } 15%, 85% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- Due lavori con foto (Agenti) ---------- */
.sp-cs { display: grid; gap: 1.25rem; max-width: 56rem; margin: 0 auto; }
@media (min-width: 768px) { .sp-cs { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
.sp-cs-c { display: block; overflow: hidden; background: #0c0c0f; color: #fff; }
.sp-cs-c:focus-visible { outline: 2px solid #69B4E4; outline-offset: 3px; }
.sp-cs-im { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.sp-cs-im img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
@media (hover: hover) { .sp-cs-c:hover .sp-cs-im img { transform: scale(1.05); } }
.sp-cs-b { display: block; padding: 1.1rem 1.25rem 1.3rem; }
.sp-cs-n { display: block; font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.sp-cs-k { display: block; margin-top: 0.4rem; font-size: 0.875rem; color: rgba(255, 255, 255, 0.68); }
.sp-cs-k strong {
    font-weight: 800;
    background: linear-gradient(90deg, #8FCBF0, #C9A6DD);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Fascia Academy (Agenti) ---------- */
.sp-ac-s { position: relative; padding: 0.5rem 0 3.5rem; }
@media (min-width: 768px) { .sp-ac-s { padding-bottom: 5rem; } }
.sp-ac { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; max-width: 56rem; margin: 0 auto; padding: 1.5rem 1.75rem; }
@media (min-width: 768px) { .sp-ac { flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; } }
.sp-ac-t { font-size: 1.125rem; font-weight: 700; }
.sp-ac p { margin-top: 0.25rem; font-size: 0.9375rem; line-height: 1.55; color: rgba(255, 255, 255, 0.68); }
.sp-ac .lnk { flex: none; }

/* ---------- Domande frequenti (inc/servizio-fine.php): chiuse, si aprono al tocco ---------- */
.sp-fq { display: grid; gap: 1.5rem; max-width: 64rem; margin: 0 auto; }
@media (min-width: 1024px) { .sp-fq { grid-template-columns: 0.8fr 1.2fr; gap: 4rem; align-items: start; } }
.sp-fq-t { margin-top: 0; }
.sp-fq-l { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.sp-fq-i { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.sp-fq-i summary {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.1rem 0; cursor: pointer; list-style: none;
}
.sp-fq-i summary::-webkit-details-marker { display: none; }
.sp-fq-i summary:focus-visible { outline: 2px solid #69B4E4; outline-offset: 2px; border-radius: 0.5rem; }
.sp-fq-i h3 { font-size: 1rem; font-weight: 600; line-height: 1.4; }
@media (min-width: 768px) { .sp-fq-i h3 { font-size: 1.0625rem; } }
/* Solo il «+», senza cerchio (18/11): al passaggio e da aperta le stanghette diventano bianche */
.sp-fq-x { position: relative; flex: none; width: 1.75rem; height: 1.75rem; }
.sp-fq-x::before, .sp-fq-x::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: 0.85rem; height: 1.5px; margin: -0.75px 0 0 -0.425rem;
    border-radius: 1px; background: #8FCBF0; transition: transform 0.3s ease, background 0.3s ease;
}
.sp-fq-x::after { transform: rotate(90deg); }
/* Aperta = «open» senza is-cl (is-cl: in chiusura, l'icona torna «+» subito, la risposta si chiude con il JS di
   inc/servizio-fine.php). Transizioni dell'icona in ease-in-out come l'altezza della risposta. */
.sp-fq-x, .sp-fq-x::before, .sp-fq-x::after { transition-timing-function: ease-in-out; }
.sp-fq-i[open]:not(.is-cl) .sp-fq-x::before, .sp-fq-i[open]:not(.is-cl) .sp-fq-x::after { background: #fff; }
.sp-fq-i[open]:not(.is-cl) .sp-fq-x::after { transform: rotate(0deg); }
@media (hover: hover) { .sp-fq-i summary:hover .sp-fq-x::before, .sp-fq-i summary:hover .sp-fq-x::after { background: #fff; } }
.sp-fq-a { overflow: hidden; }
.sp-fq-i p { padding: 0 2.75rem 1.2rem 0; font-size: 0.9375rem; line-height: 1.65; color: rgba(255, 255, 255, 0.7); }
.sp-fq-lk { margin-top: 1.5rem; }

/* ---------- Riduci movimento: tutto fermo, prima foto e notifiche visibili, chat completa ---------- */
@media (prefers-reduced-motion: reduce) {
    .sp-ph-im, .sp-ph-bars i::after, .sp-ph-act .is-h, .sp-ph-c,
    .sp-fx-p, .sp-fx-out rect, .sp-fx-r, .sp-fx-g,
    .sp-fl-n .ico::after, .sp-fl-c::after, .sp-ch-ty i { animation: none; }
    .sp-ph-im:first-of-type, .sp-ph-c { opacity: 1; }
    .sp-ph-c:nth-of-type(n+4) { display: none; }
    .sp-ph-bars .b0::after { transform: scaleX(1); }
    .sp-fx-p, .sp-fx-g { opacity: 0; }
    .sp-ch.aos-init .sp-ch-m, .sp-ch.aos-init .sp-ch-src { opacity: 1; animation: none; }
    .sp-ch .sp-ch-ty { display: none; }
}
