/* ════════════════════════════════════════════════════════════════════════════
   FINHANCE — COSMIC LIGHT v2
   Tema chiaro, hero col video, nav esterna con scroll effect ghiaccio,
   card frosted con bordo verde fluo al hover, titoli navy.
═════════════════════════════════════════════════════════════════════════════ */

:root {
    --ink-100: #1E2761;      /* navy brand */
    --ink-90:  rgba(30, 39, 97, 0.92);
    --ink-80:  rgba(11, 11, 15, 0.84);
    --ink-70:  rgba(11, 11, 15, 0.7);
    --ink-60:  rgba(11, 11, 15, 0.55);
    --ink-50:  rgba(11, 11, 15, 0.42);
    --line:    rgba(30, 39, 97, 0.1);
    --line-strong: rgba(30, 39, 97, 0.2);
    --neon: #07F968;
    --neon-soft: rgba(7, 249, 104, 0.18);
    --neon-glow: rgba(7, 249, 104, 0.45);
    --glass-fill: rgba(255, 255, 255, 0.72);
    --glass-fill-strong: rgba(255, 255, 255, 0.88);
}

html { background: var(--cream); }
body.cosmic-scope { background: var(--cream); color: var(--ink-80); font-family: var(--font-body); }

body.cosmic-scope section,
body.cosmic-scope .bg-white { background: var(--white) !important; }
body.cosmic-scope .bg-cream { background: var(--cream) !important; }

/* La hero resta nera (il video sta sotto) */
body.cosmic-scope .hero,
body.cosmic-scope .hero.bg-black { background: var(--black) !important; }

/* ═══ NO-HERO PAGES — pagine senza hero scura: tutto leggibile su sfondo chiaro ═══ */
body.cosmic-scope.no-hero-page { background: #fff !important; padding-top: 80px; }
body.cosmic-scope.no-hero-page main,
body.cosmic-scope.no-hero-page .container,
body.cosmic-scope.no-hero-page section { background: transparent; }

body.cosmic-scope.no-hero-page h1,
body.cosmic-scope.no-hero-page h2,
body.cosmic-scope.no-hero-page h3,
body.cosmic-scope.no-hero-page h4,
body.cosmic-scope.no-hero-page h5,
body.cosmic-scope.no-hero-page h6 {
    color: var(--ink-100) !important;
    font-family: var(--font-display) !important;
    text-shadow: none !important;
}
body.cosmic-scope.no-hero-page p,
body.cosmic-scope.no-hero-page li,
body.cosmic-scope.no-hero-page span,
body.cosmic-scope.no-hero-page td,
body.cosmic-scope.no-hero-page th,
body.cosmic-scope.no-hero-page label,
body.cosmic-scope.no-hero-page blockquote {
    color: var(--ink-80) !important;
    text-shadow: none !important;
}
body.cosmic-scope.no-hero-page strong,
body.cosmic-scope.no-hero-page b { color: var(--ink-100) !important; }
body.cosmic-scope.no-hero-page a:not(.btn):not(.header-cta):not(.footer-v3-pill):not(.footer-v3-linkedin):not(.nav-link):not(.logo-link):not(.mobile-menu-link) {
    color: var(--ink-100) !important;
}
body.cosmic-scope.no-hero-page a:not(.btn):not(.header-cta):not(.footer-v3-pill):hover { color: var(--neon) !important; }

/* Sezioni hero specifiche delle pagine secondarie (article-hero, blog-hero, ecc.) */
body.cosmic-scope.no-hero-page .article-hero,
body.cosmic-scope.no-hero-page .blog-hero,
body.cosmic-scope.no-hero-page .ebook-hero,
body.cosmic-scope.no-hero-page .legal-hero,
body.cosmic-scope.no-hero-page .person-hero,
body.cosmic-scope.no-hero-page .thankyou-hero {
    background: var(--cream) !important;
    color: var(--ink-100) !important;
    padding: 60px 0 40px;
}
body.cosmic-scope.no-hero-page .article-hero h1,
body.cosmic-scope.no-hero-page .blog-hero h1,
body.cosmic-scope.no-hero-page .ebook-hero h1,
body.cosmic-scope.no-hero-page .legal-hero h1,
body.cosmic-scope.no-hero-page .person-hero h1,
body.cosmic-scope.no-hero-page .thankyou-hero h1 { color: var(--ink-100) !important; }

/* Article body (blog articoli): testo scuro garantito */
body.cosmic-scope.no-hero-page .article-body h2,
body.cosmic-scope.no-hero-page .article-body h3,
body.cosmic-scope.no-hero-page .article-body h4 { color: var(--ink-100) !important; }
body.cosmic-scope.no-hero-page .article-body p,
body.cosmic-scope.no-hero-page .article-body li { color: var(--ink-80) !important; }

/* Sidebar */
body.cosmic-scope.no-hero-page .sidebar-box {
    background: var(--cream) !important;
    border: 1px solid var(--line) !important;
    color: var(--ink-100) !important;
}
body.cosmic-scope.no-hero-page .sidebar-box h5 { color: var(--ink-100) !important; }
body.cosmic-scope.no-hero-page .sidebar-box p { color: var(--ink-80) !important; }
body.cosmic-scope.no-hero-page .sidebar-box a { color: var(--ink-100) !important; }

/* Article quote / CFO tip */
body.cosmic-scope.no-hero-page .article-quote,
body.cosmic-scope.no-hero-page .cfo-tip {
    background: var(--cream) !important;
    border-left: 3px solid var(--neon) !important;
    color: var(--ink-100) !important;
}
body.cosmic-scope.no-hero-page .cfo-tip-label { color: var(--neon) !important; }

/* Breadcrumb */
body.cosmic-scope.no-hero-page .article-breadcrumb,
body.cosmic-scope.no-hero-page .article-breadcrumb a,
body.cosmic-scope.no-hero-page .article-breadcrumb span { color: var(--ink-60) !important; }

/* Card generiche di pagine secondarie */
body.cosmic-scope.no-hero-page .card {
    background: #fff !important;
    border: 1px solid var(--line) !important;
    color: var(--ink-100) !important;
}

/* Article cat + date + reading time */
body.cosmic-scope.no-hero-page .article-cat,
body.cosmic-scope.no-hero-page .article-date,
body.cosmic-scope.no-hero-page .article-reading-time { color: var(--ink-60) !important; }
body.cosmic-scope.no-hero-page .article-cat { background: rgba(7,249,104,0.12); color: #04822F !important; padding: 4px 10px; border-radius: 999px; font-size: 11px; }

/* ═══ TIPOGRAFIA — titoli NAVY su sezioni chiare ═══ */
body.cosmic-scope h1,
body.cosmic-scope h2,
body.cosmic-scope h3,
body.cosmic-scope h4,
body.cosmic-scope h5,
body.cosmic-scope h6 {
    font-family: var(--font-display) !important;
    color: var(--ink-100) !important;
    font-weight: 600 !important;
    letter-spacing: -0.02em !important;
}

/* Scala titoli — H2 sezioni con più presenza, H1 hero più grande, card titoli leggibili */
body.cosmic-scope h1 { font-size: clamp(36px, 4.4vw, 60px) !important; line-height: 1.12 !important; }
body.cosmic-scope h2,
body.cosmic-scope .cosa-facciamo h2,
body.cosmic-scope .chi-siamo h2,
body.cosmic-scope .servizio-main h2,
body.cosmic-scope .galassia h2,
body.cosmic-scope .team h2,
body.cosmic-scope .clienti h2,
body.cosmic-scope .blog-section h2,
body.cosmic-scope .cta-section h2,
body.cosmic-scope .ebook-section h2 {
    color: var(--ink-100) !important;
    font-family: var(--font-display) !important;
    font-weight: 600 !important;
    font-size: clamp(30px, 3.4vw, 48px) !important;
    letter-spacing: -0.02em !important;
    line-height: 1.14 !important;
    margin-bottom: 14px;
}
body.cosmic-scope h3 { font-size: clamp(20px, 1.8vw, 24px) !important; line-height: 1.25 !important; }

/* Kicker inline: label integrata dentro al titolo (riga sopra più piccola e regular) */
body.cosmic-scope .kicker-inline {
    display: block;
    font-style: normal !important;
    font-weight: 500 !important;
    font-family: var(--font-display) !important;
    font-size: 0.46em !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    color: var(--ink-60) !important;
    margin-bottom: 0.3em;
}
body.cosmic-scope h4,
body.cosmic-scope .cf-card h4,
body.cosmic-scope .card h4,
body.cosmic-scope .team-card h4,
body.cosmic-scope .blog-card h4 {
    color: var(--ink-100) !important;
    font-weight: 600 !important;
    font-size: clamp(17px, 1.2vw, 20px) !important;
    line-height: 1.28 !important;
    letter-spacing: -0.01em !important;
}
body.cosmic-scope h5 { color: var(--ink-60) !important; font-family: var(--font-ui) !important; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; }

body.cosmic-scope p, body.cosmic-scope li, body.cosmic-scope span { color: var(--ink-80); }
body.cosmic-scope strong { color: var(--ink-100); font-weight: 600; }

body.cosmic-scope .subtitle,
body.cosmic-scope .cf-intro,
body.cosmic-scope .tv-sub,
body.cosmic-scope .ebook-desc { color: var(--ink-70) !important; font-family: var(--font-body) !important; }

/* Highlight verde brand — italic + bold ovunque */
body.cosmic-scope .highlight {
    color: var(--neon) !important;
    font-style: italic !important;
    font-weight: 700 !important;
    font-family: var(--font-display) !important;
    background: transparent !important;
}
body.cosmic-scope .highlight::after { display: none !important; }

/* Hero highlight: bianco italic bold + sotto-linea asteroide animato */
body.cosmic-scope .hero h1 .highlight {
    color: #fff !important;
    font-weight: 700 !important;
    font-style: italic !important;
    position: relative;
    display: inline-block;
}
body.cosmic-scope .hero h1 .highlight::after {
    display: block !important;
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0.04em;
    height: 3px;
    background: linear-gradient(90deg,
        rgba(7,249,104,0) 0%,
        rgba(7,249,104,0.45) 10%,
        var(--neon) 50%,
        rgba(7,249,104,0.45) 90%,
        rgba(7,249,104,0) 100%);
    border-radius: 4px;
    overflow: visible;
}
/* Asteroide che corre lungo la sottolineatura */
body.cosmic-scope .hero h1 .highlight::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: calc(0.04em - 5px);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #d6ffe6;
    box-shadow:
        0 0 12px rgba(7,249,104,0.95),
        0 0 28px rgba(7,249,104,0.7),
        0 0 56px rgba(7,249,104,0.4);
    animation: asteroide 2.6s linear infinite;
    pointer-events: none;
}
@keyframes asteroide {
    0%   { left: -2%;  transform: scale(1);   opacity: 0; }
    8%   { opacity: 1; }
    50%  { transform: scale(1.15); }
    92%  { opacity: 1; }
    100% { left: 102%; transform: scale(1);   opacity: 0; }
}
/* Scia luminosa dietro l'asteroide */
body.cosmic-scope .hero h1 .highlight {
    background-image: linear-gradient(transparent, transparent); /* reset */
}

/* ═══ NAV — pillola flottante in apertura, fascia sottile su scroll ═══ */
body.cosmic-scope .header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 14px 18px !important;
    background: transparent !important;
    transition: padding 320ms var(--ease-soft);
}
body.cosmic-scope .header-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 10px 18px 10px 22px !important;
    border-radius: 999px !important;
    background: rgba(20,20,40,0.32) !important;
    -webkit-backdrop-filter: saturate(180%) blur(22px) !important;
    backdrop-filter: saturate(180%) blur(22px) !important;
    border: 1px solid rgba(255,255,255,0.22) !important;
    box-shadow: 0 10px 36px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.28) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    transition: padding 320ms var(--ease-soft), background 320ms ease, box-shadow 320ms ease, border-color 320ms ease, border-radius 320ms ease, max-width 320ms ease, min-height 320ms ease;
    overflow: visible !important;
    min-height: 56px;
}
body.cosmic-scope .header-container::before { display: none !important; }

/* Logo PNG aziendale, nessun filter */
body.cosmic-scope .logo {
    max-height: 36px;
    width: auto;
    filter: none !important;
    display: block;
    transition: max-height 320ms var(--ease-soft);
}

/* APERTURA — nav sopra il video: testi bianchi */
body.cosmic-scope .header:not(.scrolled) .nav-link,
body.cosmic-scope .header:not(.scrolled) .logo-link { color: #fff !important; font-weight: 500; }
body.cosmic-scope .header:not(.scrolled) .nav-link:hover { color: var(--neon) !important; }
body.cosmic-scope .header:not(.scrolled) .mobile-toggle span { background: #fff !important; }
body.cosmic-scope .header:not(.scrolled) .header-cta {
    background: #fff !important;
    color: var(--ink-100) !important;
    border: 1px solid #fff !important;
    padding: 9px 18px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 999px !important;
}
body.cosmic-scope .header:not(.scrolled) .header-cta:hover {
    background: var(--neon) !important;
    color: #062E14 !important;
    border-color: var(--neon) !important;
    box-shadow: 0 0 0 4px rgba(7,249,104,0.25);
}

/* SCROLLED — fascia full-width sottile attaccata al top */
body.cosmic-scope .header.scrolled { padding: 0 !important; }
body.cosmic-scope .header.scrolled .header-container {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 8px 28px !important;
    border-radius: 0 !important;
    border: none !important;
    border-bottom: 1px solid rgba(30,39,97,0.08) !important;
    background: rgba(255,255,255,0.88) !important;
    -webkit-backdrop-filter: saturate(180%) blur(22px) !important;
    backdrop-filter: saturate(180%) blur(22px) !important;
    box-shadow: 0 6px 22px rgba(30,39,97,0.08) !important;
    min-height: 44px;
}
body.cosmic-scope .header.scrolled .logo { max-height: 24px; }
body.cosmic-scope .header.scrolled .nav-link,
body.cosmic-scope .header.scrolled .logo-link { color: var(--ink-100) !important; font-weight: 500; font-size: 13px; }
body.cosmic-scope .header.scrolled .nav-link:hover { color: var(--neon) !important; }
body.cosmic-scope .header.scrolled .mobile-toggle span { background: var(--ink-100) !important; }
body.cosmic-scope .header.scrolled .header-cta {
    background: var(--ink-100) !important;
    color: #fff !important;
    border: 1px solid var(--ink-100) !important;
    padding: 7px 16px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border-radius: 999px !important;
}
body.cosmic-scope .header.scrolled .header-cta:hover {
    background: var(--neon) !important;
    color: #062E14 !important;
    border-color: var(--neon) !important;
}
body.cosmic-scope .nav-list { display: flex; gap: 26px; align-items: center; margin: 0; padding: 0; list-style: none; }

body.cosmic-scope .dropdown-menu {
    background: var(--glass-fill-strong) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid var(--line) !important;
    box-shadow: 0 10px 24px rgba(30,39,97,0.12) !important;
    border-radius: 16px !important;
}
body.cosmic-scope .dropdown-menu a { color: var(--ink-80) !important; }
body.cosmic-scope .dropdown-menu a:hover { color: var(--neon) !important; background: rgba(7,249,104,0.08) !important; }

body.cosmic-scope .mobile-menu { background: var(--white) !important; }
body.cosmic-scope .mobile-menu-link { color: var(--ink-100) !important; }

/* ═══ BUTTONS — effetto frosted/ghiaccio + bordo neon al hover ═══ */
body.cosmic-scope .btn {
    font-family: var(--font-ui);
    font-weight: 600;
    border-radius: 999px;
    transition: border-color 240ms var(--ease-soft), box-shadow 240ms var(--ease-soft), transform 240ms var(--ease-soft), background 240ms ease, color 240ms ease;
    position: relative;
    overflow: hidden;
}
body.cosmic-scope .btn-primary {
    background: var(--neon) !important;
    color: #062E14 !important;
    border: 1px solid var(--neon) !important;
    padding: 13px 28px !important;
    box-shadow: 0 8px 28px rgba(7,249,104,0.28);
}
body.cosmic-scope .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(7,249,104,0.45), 0 0 0 4px rgba(7,249,104,0.18);
}
body.cosmic-scope .btn-outline {
    background: var(--glass-fill) !important;
    -webkit-backdrop-filter: blur(10px) saturate(140%) !important;
    backdrop-filter: blur(10px) saturate(140%) !important;
    color: var(--ink-100) !important;
    border: 1px solid var(--line-strong) !important;
    padding: 12px 26px !important;
}
body.cosmic-scope .btn-outline::before { display: none !important; }
body.cosmic-scope .btn-outline:hover {
    border-color: var(--neon) !important;
    color: var(--ink-100) !important;
    box-shadow: 0 0 0 1px var(--neon), 0 0 22px var(--neon-soft);
    transform: translateY(-2px);
}

/* Hero: outline più chiaro su nero */
body.cosmic-scope .hero .btn-outline {
    background: rgba(255,255,255,0.08) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.35) !important;
}
body.cosmic-scope .hero .btn-outline:hover {
    border-color: var(--neon) !important;
    box-shadow: 0 0 0 1px var(--neon), 0 0 24px var(--neon-glow);
}

/* CTA del menu in pillola */
body.cosmic-scope .header-cta {
    background: var(--ink-100) !important;
    color: #fff !important;
    padding: 9px 18px !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    border: 1px solid var(--ink-100) !important;
    transition: all 240ms ease;
}
body.cosmic-scope .header-cta:hover {
    background: var(--neon) !important;
    color: #062E14 !important;
    border-color: var(--neon) !important;
    box-shadow: 0 0 0 4px var(--neon-soft);
}

/* ═══ HERO 3-zone: testo alto, vuoto centro, CTA basso ═══ */
body.cosmic-scope .hero { height: 100vh; min-height: 600px; max-height: 880px; padding: 0 !important; position: relative; }
body.cosmic-scope .cosmic-hero-stage { position: absolute; inset: 0; overflow: hidden; }
body.cosmic-scope .cosmic-hero-stage video { width: 100%; height: 100%; object-fit: cover; }
/* Vignette per leggibilità testo */
body.cosmic-scope .cosmic-hero-stage::after {
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 30%, rgba(0,0,0,0.1) 65%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
}
body.cosmic-scope .hero-3zone-container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 110px 24px 60px !important;
}
body.cosmic-scope .hero-top { text-align: center; max-width: 980px; margin: 0 auto; }
body.cosmic-scope .hero-bottom { display: flex; justify-content: center; padding-bottom: 16px; }

body.cosmic-scope .hero h1 {
    color: #fff !important;
    font-family: var(--font-display) !important;
    font-weight: 600 !important;
    font-size: clamp(36px, 4.2vw, 56px) !important;
    line-height: 1.1 !important;
    letter-spacing: -0.025em !important;
    margin: 0 auto 22px !important;
    max-width: 820px;
}
body.cosmic-scope .hero .hero-subtitle {
    color: rgba(255,255,255,0.95) !important;
    font-family: var(--font-display) !important;
    font-weight: 500 !important;
    font-size: clamp(24px, 2.7vw, 38px) !important;
    line-height: 1.32 !important;
    max-width: 880px;
    margin: 0 auto !important;
    letter-spacing: -0.01em;
}
body.cosmic-scope .hero .hero-subtitle strong { color: #fff !important; }
body.cosmic-scope .hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

@media (max-width: 768px) {
    body.cosmic-scope .hero-3zone-container { padding: 100px 20px 40px !important; }
    body.cosmic-scope .hero h1 { font-size: clamp(28px, 7vw, 40px) !important; max-width: 100%; }
    body.cosmic-scope .hero .hero-subtitle { font-size: clamp(16px, 4vw, 20px) !important; }
}

/* ═══ SECTION SPACING ═══ */
body.cosmic-scope .cosa-facciamo,
body.cosmic-scope .chi-siamo,
body.cosmic-scope .servizio-main,
body.cosmic-scope .galassia,
body.cosmic-scope .team,
body.cosmic-scope .clienti,
body.cosmic-scope .blog-section,
body.cosmic-scope .cta-section,
body.cosmic-scope .ebook-section { padding: 88px 0 !important; }

@media (max-width: 768px) {
    body.cosmic-scope .cosa-facciamo,
    body.cosmic-scope .chi-siamo,
    body.cosmic-scope .servizio-main,
    body.cosmic-scope .galassia,
    body.cosmic-scope .team,
    body.cosmic-scope .clienti,
    body.cosmic-scope .blog-section,
    body.cosmic-scope .cta-section,
    body.cosmic-scope .ebook-section { padding: 56px 0 !important; }
}

/* ═══ COSA FACCIAMO — full-width 6 card ═══ */
body.cosmic-scope .cf-header { text-align: center; margin-bottom: 48px; }
body.cosmic-scope .cf-eyebrow { color: var(--ink-60) !important; font-family: var(--font-ui); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; margin-bottom: 12px; }
body.cosmic-scope .cf-grid-6-wide {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px;
}
@media (max-width: 900px) { body.cosmic-scope .cf-grid-6-wide { grid-template-columns: repeat(2,1fr) !important; } }
@media (max-width: 560px) { body.cosmic-scope .cf-grid-6-wide { grid-template-columns: 1fr !important; } }

/* ═══ CARD GHIACCIO + bordo verde fluo all'hover (uniforme ovunque) ═══ */
body.cosmic-scope .card,
body.cosmic-scope .cf-card,
body.cosmic-scope .card-cream,
body.cosmic-scope .team-card,
body.cosmic-scope .blog-card,
body.cosmic-scope .cliente-box {
    background: linear-gradient(180deg, rgba(255,255,255,0.78) 0%, rgba(255,255,255,0.55) 100%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(140%) !important;
    backdrop-filter: blur(14px) saturate(140%) !important;
    border: 1px solid var(--line) !important;
    border-radius: 18px !important;
    box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 8px 24px rgba(30,39,97,0.05);
    transition: border-color 260ms var(--ease-soft), box-shadow 260ms var(--ease-soft), transform 260ms var(--ease-soft), background 260ms ease;
    padding: 22px !important;
    position: relative;
}
body.cosmic-scope .cf-card::before { display: none !important; }
body.cosmic-scope .card:hover,
body.cosmic-scope .cf-card:hover,
body.cosmic-scope .card-cream:hover,
body.cosmic-scope .team-card:hover,
body.cosmic-scope .blog-card:hover,
body.cosmic-scope .cliente-box:hover {
    border-color: var(--neon) !important;
    box-shadow: 0 0 0 1px var(--neon), 0 0 24px var(--neon-glow), 0 0 60px var(--neon-soft);
    transform: translateY(-3px);
    background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(247,255,250,0.78) 100%) !important;
}
body.cosmic-scope .cf-card h4,
body.cosmic-scope .card h4 { color: var(--ink-100) !important; transition: color 240ms ease; margin: 12px 0 8px; }
body.cosmic-scope .cf-card p,
body.cosmic-scope .card p { color: var(--ink-70) !important; }

/* Icone in verde fluo */
body.cosmic-scope .cf-card-icon,
body.cosmic-scope .card svg:not(.dropdown-chevron):not(.team-link svg):not(.social-link svg),
body.cosmic-scope .ebook-check svg { stroke: var(--neon) !important; }
body.cosmic-scope .cf-card-icon {
    stroke-width: 1.8 !important;
    width: 28px; height: 28px;
    filter: drop-shadow(0 0 6px var(--neon-soft));
    transition: filter 240ms ease, transform 240ms ease;
}
body.cosmic-scope .cf-card:hover .cf-card-icon { filter: drop-shadow(0 0 14px var(--neon-glow)); transform: translateY(-2px); }

body.cosmic-scope a.cf-card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; cursor: pointer; }
body.cosmic-scope a.cf-card-link:hover h4 { color: var(--neon) !important; }

/* ═══ CHI SIAMO ═══ */
body.cosmic-scope .chi-siamo-main { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { body.cosmic-scope .chi-siamo-main { grid-template-columns: 1fr; gap: 32px; } }
body.cosmic-scope .chi-siamo-image { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
body.cosmic-scope .chi-siamo-image video { display: block; width: 100%; height: 100%; object-fit: cover; }
body.cosmic-scope .chi-siamo-content h2 { margin-bottom: 18px; }
body.cosmic-scope .chi-siamo-content p { color: var(--ink-80) !important; font-size: 16px; line-height: 1.7; margin-bottom: 14px; }

/* ═══ CHI SIAMO — FULL-BLEED video bici con overlay editoriale + parallax ═══ */
body.cosmic-scope .chi-siamo-fullbleed {
    padding: 0 !important;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    position: relative;
    background: #000;
    overflow: hidden;
}
body.cosmic-scope .chi-siamo-stage {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 640px;
    max-height: 1100px;
    overflow: hidden;
}
body.cosmic-scope .chi-siamo-bg {
    position: absolute;
    inset: -10% 0;
    height: 120%;
    will-change: transform;
    transform: translateY(0);
    transition: transform 100ms linear;
}
body.cosmic-scope .chi-siamo-bg video {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
body.cosmic-scope .chi-siamo-stage::after {
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 20%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0.75) 100%),
        radial-gradient(ellipse at 30% 80%, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 60%);
    pointer-events: none;
    z-index: 2;
}
body.cosmic-scope .chi-siamo-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 80px clamp(24px, 6vw, 96px);
}
body.cosmic-scope .chi-siamo-text {
    max-width: 720px;
    color: #fff;
}
body.cosmic-scope .chi-siamo-text .cf-eyebrow {
    color: rgba(255,255,255,0.7) !important;
    margin-bottom: 14px;
}
body.cosmic-scope .chi-siamo-text h2 {
    color: #fff !important;
    font-size: clamp(32px, 4vw, 56px) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.02em !important;
    margin: 0 0 24px !important;
    font-weight: 600 !important;
    font-family: var(--font-display) !important;
}
body.cosmic-scope .chi-siamo-text h2 .highlight {
    color: #fff !important;
    font-style: italic !important;
    font-weight: 700 !important;
    position: relative;
    display: inline-block;
}
body.cosmic-scope .chi-siamo-text h2 .highlight::after {
    display: block !important;
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0.04em;
    height: 3px;
    background: linear-gradient(90deg,
        rgba(7,249,104,0) 0%,
        rgba(7,249,104,0.45) 10%,
        var(--neon) 50%,
        rgba(7,249,104,0.45) 90%,
        rgba(7,249,104,0) 100%);
    border-radius: 4px;
}
body.cosmic-scope .chi-siamo-text h2 .highlight::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: calc(0.04em - 5px);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #d6ffe6;
    box-shadow: 0 0 12px rgba(7,249,104,0.95), 0 0 28px rgba(7,249,104,0.7), 0 0 56px rgba(7,249,104,0.4);
    animation: asteroide 2.6s linear infinite;
    pointer-events: none;
}
body.cosmic-scope .chi-siamo-lead {
    color: rgba(255,255,255,0.92) !important;
    font-size: clamp(16px, 1.3vw, 19px) !important;
    line-height: 1.55 !important;
    margin: 0 0 14px !important;
    max-width: 640px;
    font-family: var(--font-body) !important;
}
body.cosmic-scope .chi-siamo-lead strong { color: #fff !important; font-weight: 600; }

@media (max-width: 768px) {
    body.cosmic-scope .chi-siamo-stage { height: 92vh; min-height: 560px; }
    body.cosmic-scope .chi-siamo-overlay { padding: 60px 22px; align-items: center; }
}
body.cosmic-scope .cosmic-featured-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 28px;
}
body.cosmic-scope .cosmic-featured-card {
    background: var(--glass-fill-strong) !important;
    -webkit-backdrop-filter: blur(14px) saturate(140%) !important;
    backdrop-filter: blur(14px) saturate(140%) !important;
    border: 1px solid var(--line) !important;
    border-radius: 16px;
    padding: 20px 22px;
    max-width: 480px;
    color: var(--ink-100) !important;
}
body.cosmic-scope .cosmic-featured-card .label { color: var(--ink-60) !important; font-family: var(--font-ui); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; margin-bottom: 8px; }
body.cosmic-scope .cosmic-featured-card p { color: var(--ink-80) !important; margin: 0; font-size: 15px; line-height: 1.55; }

/* ═══ GALASSIA — FinHance centro + competenze in orbita ═══ */
body.cosmic-scope .galassia-header { text-align: center; margin-bottom: 48px; max-width: 760px; margin-left: auto; margin-right: auto; }
body.cosmic-scope .galaxy-stage {
    position: relative;
    width: min(880px, 100%);
    height: min(880px, 100vw);
    margin: 0 auto;
    --orbit-radius: 320px;
}
body.cosmic-scope .galaxy-ring {
    position: absolute;
    top: 50%; left: 50%;
    border-radius: 50%;
    border: 1px dashed var(--line);
    transform: translate(-50%, -50%);
    pointer-events: none;
}
body.cosmic-scope .galaxy-ring-1 { width: 180px; height: 180px; border-color: rgba(7,249,104,0.3); }
body.cosmic-scope .galaxy-ring-2 { width: 440px; height: 440px; border-color: rgba(30,39,97,0.14); }
body.cosmic-scope .galaxy-ring-3 { width: 760px; height: 760px; border-color: rgba(30,39,97,0.08); }

body.cosmic-scope .galaxy-orbit {
    position: absolute;
    inset: 0;
    animation: galaxy-spin 80s linear infinite;
}
body.cosmic-scope .galaxy-orbit-outer { animation-duration: 80s; }
@keyframes galaxy-spin { to { transform: rotate(360deg); } }

body.cosmic-scope .galaxy-item {
    position: absolute;
    top: 50%; left: 50%;
    width: 200px;
    transform:
        translate(-50%, -50%)
        rotate(var(--angle))
        translateY(calc(var(--orbit-radius) * -1))
        rotate(calc(var(--angle) * -1));
}
body.cosmic-scope .galaxy-item-inner {
    background: var(--glass-fill-strong);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 6px 18px rgba(30,39,97,0.08);
    text-align: center;
    animation: galaxy-counter 80s linear infinite;
    transition: border-color 240ms ease, box-shadow 240ms ease, transform 240ms ease, background 240ms ease;
}
body.cosmic-scope .galaxy-item-inner:hover {
    border-color: var(--neon);
    box-shadow: 0 0 0 1px var(--neon), 0 0 24px var(--neon-glow);
    transform: scale(1.05);
    background: rgba(247,255,250,0.95);
}
@keyframes galaxy-counter { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }

body.cosmic-scope .galaxy-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--neon);
    margin: 0 auto 8px;
    box-shadow: 0 0 12px var(--neon-glow);
}
body.cosmic-scope .galaxy-item-inner strong { display: block; color: var(--ink-100); font-family: var(--font-display); font-size: 14px; font-weight: 600; margin-bottom: 6px; line-height: 1.25; }
body.cosmic-scope .galaxy-item-inner p { font-size: 12px; line-height: 1.45; color: var(--ink-70); margin: 0; }

body.cosmic-scope .galaxy-core {
    position: absolute;
    top: 50%; left: 50%;
    width: 180px; height: 180px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: transparent;
    border: none;
    display: flex; align-items: center; justify-content: center;
    z-index: 5;
}
body.cosmic-scope .galaxy-core-logo { width: 110px; height: auto; }
body.cosmic-scope .galaxy-core-mark { width: 150px; height: 150px; display: block; }
body.cosmic-scope .galaxy-core-pulse {
    position: absolute; inset: 0; border-radius: 50%;
    border: 2px solid var(--neon);
    opacity: 0;
    animation: galaxy-pulse 3s ease-out infinite;
}
body.cosmic-scope .galaxy-core-pulse-2 { animation-delay: 1.5s; }
@keyframes galaxy-pulse {
    0%   { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2.2); opacity: 0; }
}

@media (max-width: 900px) {
    body.cosmic-scope .galaxy-stage { --orbit-radius: 230px; width: 100%; height: 600px; }
    body.cosmic-scope .galaxy-ring-1 { width: 130px; height: 130px; }
    body.cosmic-scope .galaxy-ring-2 { width: 320px; height: 320px; }
    body.cosmic-scope .galaxy-ring-3 { width: 540px; height: 540px; }
    body.cosmic-scope .galaxy-item { width: 160px; }
    body.cosmic-scope .galaxy-item-inner { padding: 10px 12px; }
    body.cosmic-scope .galaxy-item-inner strong { font-size: 13px; }
    body.cosmic-scope .galaxy-item-inner p { font-size: 11px; }
    body.cosmic-scope .galaxy-core { width: 120px; height: 120px; }
    body.cosmic-scope .galaxy-core-logo { width: 72px; }
}
@media (max-width: 560px) {
    body.cosmic-scope .galaxy-stage { --orbit-radius: 170px; height: 500px; }
    body.cosmic-scope .galaxy-ring-1 { width: 110px; height: 110px; }
    body.cosmic-scope .galaxy-ring-2 { width: 240px; height: 240px; }
    body.cosmic-scope .galaxy-ring-3 { width: 380px; height: 380px; }
    body.cosmic-scope .galaxy-item { width: 130px; }
}

/* ═══ TEAM ═══ */
body.cosmic-scope .team-card { padding: 28px 22px !important; text-align: left; }
body.cosmic-scope .team-photo-wrapper { border-radius: 16px; overflow: hidden; background: #fff; margin-bottom: 16px; }
body.cosmic-scope .team-photo {
    width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: #fff; display: block;
    filter: none !important;
    mix-blend-mode: normal !important;
}
body.cosmic-scope .team-card:hover .team-photo { filter: none !important; }
body.cosmic-scope .team-card h4 { font-size: 20px; margin: 0 0 4px; }
body.cosmic-scope .team-role { color: var(--ink-60) !important; font-size: 13px; font-family: var(--font-ui); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 12px; }
body.cosmic-scope .team-bio { color: var(--ink-80) !important; font-size: 14px; line-height: 1.55; margin: 0 0 16px; }
body.cosmic-scope .team-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--ink-100) !important;
    text-decoration: none;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 13px;
    padding: 7px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    transition: all 220ms ease;
}
body.cosmic-scope .team-link svg { fill: var(--ink-100); transition: fill 220ms ease; }
body.cosmic-scope .team-link:hover {
    color: var(--neon) !important;
    border-color: var(--neon);
    box-shadow: 0 0 0 1px var(--neon), 0 0 18px var(--neon-soft);
}
body.cosmic-scope .team-link:hover svg { fill: var(--neon); }

/* ═══ CLIENTI ═══ */
body.cosmic-scope .cliente-box {
    padding: 22px 18px !important;
    text-align: center;
    font-family: var(--font-ui);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--ink-100) !important;
    font-size: 14px;
}

/* ═══ BLOG ═══ */
body.cosmic-scope .blog-card { padding: 0 !important; overflow: hidden; }
body.cosmic-scope .blog-card-inner { padding: 24px; }
body.cosmic-scope .blog-card h4 { color: var(--ink-100) !important; font-size: 18px !important; line-height: 1.3 !important; margin: 12px 0; }
body.cosmic-scope .blog-card p { color: var(--ink-70) !important; font-size: 14px; line-height: 1.55; }
body.cosmic-scope .blog-card-top { display: flex; justify-content: space-between; align-items: center; }
body.cosmic-scope .blog-cat {
    background: rgba(7,249,104,0.15);
    color: #04822F !important;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(7,249,104,0.35);
}
body.cosmic-scope .blog-date { color: var(--ink-60) !important; font-size: 12px; font-family: var(--font-ui); }
body.cosmic-scope .blog-cta { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-100) !important; font-family: var(--font-ui); font-weight: 600; font-size: 13px; margin-top: 14px; }
body.cosmic-scope .blog-cta svg { stroke: var(--ink-100); transition: transform 220ms ease, stroke 220ms ease; }
body.cosmic-scope .blog-card:hover .blog-cta { color: var(--neon) !important; }
body.cosmic-scope .blog-card:hover .blog-cta svg { stroke: var(--neon); transform: translateX(4px); }
body.cosmic-scope .blog-all-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--ink-100) !important;
    font-family: var(--font-ui); font-weight: 600;
    text-decoration: none;
    padding: 9px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    transition: all 220ms ease;
}
body.cosmic-scope .blog-all-link:hover { border-color: var(--neon); color: var(--neon) !important; box-shadow: 0 0 0 1px var(--neon), 0 0 18px var(--neon-soft); }

/* ═══ EBOOK — rimpicciolito in larghezza ═══ */
body.cosmic-scope .ebook-section { background: var(--cream) !important; }
body.cosmic-scope .ebook-section .container { max-width: 980px !important; }
body.cosmic-scope .ebook-inner { gap: 40px !important; }
body.cosmic-scope .ebook-book-wrap { max-width: 280px; }
body.cosmic-scope .ebook-copy { max-width: 560px; }
body.cosmic-scope .ebook-input {
    background: #fff !important;
    color: var(--ink-100) !important;
    border: 1px solid var(--line-strong) !important;
    padding: 12px 16px;
    border-radius: 12px;
}
body.cosmic-scope .ebook-point { color: var(--ink-80) !important; }
body.cosmic-scope .ebook-eyebrow { color: var(--ink-60) !important; }
body.cosmic-scope .ebook-privacy { color: var(--ink-60) !important; }

/* ═══ CONTATTI (cta-section) — nomi visibili + hover verdi ═══ */
body.cosmic-scope .cta-section h2 { color: var(--ink-100) !important; }
body.cosmic-scope .cta-section p { color: var(--ink-80) !important; }
body.cosmic-scope .cta-contact-item {
    display: flex; align-items: center; gap: 14px;
    color: var(--ink-100);
    background: var(--glass-fill);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 10px;
}
body.cosmic-scope .cta-contact-item img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #fff; }
body.cosmic-scope .cta-contact-item strong { color: var(--ink-100) !important; font-family: var(--font-display); font-weight: 600; display: block; font-size: 15px; }
body.cosmic-scope .cta-contact-item span { color: var(--ink-60) !important; font-size: 13px; font-family: var(--font-ui); }
body.cosmic-scope .cta-contact-links { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
body.cosmic-scope .cta-contact-links a {
    color: var(--ink-100) !important;
    text-decoration: none;
    font-family: var(--font-ui);
    font-weight: 500;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: all 220ms ease;
    position: relative;
}
body.cosmic-scope .cta-contact-links a { display: flex !important; align-items: center; }
body.cosmic-scope .cta-contact-links a:hover {
    color: var(--neon) !important;
    border-color: var(--neon);
    background: rgba(7,249,104,0.06);
    box-shadow: 0 0 0 1px var(--neon), 0 0 18px var(--neon-soft);
}

/* ═══ FOOTER v3 — equilibrato, 4 colonne, legal bar minimale ═══ */
body.cosmic-scope .footer-v3 {
    background: var(--cream) !important;
    color: var(--ink-80) !important;
    padding: 72px 0 28px;
    border-top: 1px solid var(--line);
}
body.cosmic-scope .footer-v3 .container { padding: 0 24px; max-width: var(--container-wide); }

body.cosmic-scope .footer-v3-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 56px;
}
@media (max-width: 960px) {
    body.cosmic-scope .footer-v3-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 560px) {
    body.cosmic-scope .footer-v3-grid { grid-template-columns: 1fr; gap: 32px; }
}

body.cosmic-scope .footer-v3-brand { display: flex; flex-direction: column; gap: 16px; max-width: 360px; }
body.cosmic-scope .footer-v3-logo { width: 140px; height: auto; display: block; }
body.cosmic-scope .footer-v3-claim {
    color: var(--ink-80) !important;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 18px;
    line-height: 1.35;
    letter-spacing: -0.01em;
    margin: 0;
}
body.cosmic-scope .footer-v3-linkedin {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink-100) !important;
    transition: all 220ms ease;
    margin-top: 4px;
}
body.cosmic-scope .footer-v3-linkedin svg { fill: var(--ink-100) !important; transition: fill 220ms ease; }
body.cosmic-scope .footer-v3-linkedin:hover {
    color: var(--neon) !important;
    border-color: var(--neon);
    box-shadow: 0 0 0 1px var(--neon), 0 0 18px var(--neon-soft);
}
body.cosmic-scope .footer-v3-linkedin:hover svg { fill: var(--neon) !important; }

body.cosmic-scope .footer-v3-col { display: flex; flex-direction: column; gap: 10px; }
body.cosmic-scope .footer-v3-col h5 {
    color: var(--ink-100) !important;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 6px;
}
body.cosmic-scope .footer-v3-col a {
    color: var(--ink-80) !important;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    transition: color 200ms ease;
}
body.cosmic-scope .footer-v3-col a:hover { color: var(--neon) !important; }

body.cosmic-scope .footer-v3-pill {
    display: inline-block;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink-100) !important;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 13px;
    transition: all 220ms ease;
    width: fit-content;
}
body.cosmic-scope .footer-v3-pill:hover {
    border-color: var(--neon);
    color: var(--neon) !important;
    box-shadow: 0 0 0 1px var(--neon), 0 0 16px var(--neon-soft);
}

body.cosmic-scope .footer-v3-legal {
    border-top: 1px solid var(--line);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
body.cosmic-scope .footer-v3-legal p {
    color: var(--ink-60) !important;
    font-family: var(--font-ui);
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    align-items: center;
}
body.cosmic-scope .footer-v3-legal p strong { color: var(--ink-100) !important; font-weight: 700; }
body.cosmic-scope .footer-v3-legal p span { color: var(--ink-40) !important; }
body.cosmic-scope .footer-v3-legal p a { color: var(--ink-60) !important; text-decoration: none; }
body.cosmic-scope .footer-v3-legal p a:hover { color: var(--neon) !important; }
@media (max-width: 560px) {
    body.cosmic-scope .footer-v3-legal p span { display: none; }
}

/* Nascondo vecchio footer-light / footer-dark se ancora presenti */
body.cosmic-scope .footer-light:not(.footer-v3),
body.cosmic-scope .footer-dark:not(.footer-v3) { display: none; }

/* ═══ FOOTER CHIARO RIDISEGNATO (vecchio, sopravvive solo su pagine non v3) ═══ */
body.cosmic-scope .footer.footer-light,
body.cosmic-scope .footer-dark { background: var(--cream) !important; color: var(--ink-80) !important; padding: 80px 0 28px; }
body.cosmic-scope .footer-light .container { padding: 0 24px; }

body.cosmic-scope .footer-hero {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-bottom: 56px;
    margin-bottom: 48px;
    border-bottom: 1px solid var(--line);
}
body.cosmic-scope .footer-logo-xl {
    width: 280px;
    height: auto;
    flex-shrink: 0;
    display: block;
}
body.cosmic-scope .footer-claim {
    color: var(--ink-80) !important;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.32;
    letter-spacing: -0.015em;
    margin: 0;
    max-width: 620px;
}
@media (max-width: 720px) {
    body.cosmic-scope .footer-hero { flex-direction: column; align-items: flex-start; gap: 24px; padding-bottom: 36px; margin-bottom: 32px; }
    body.cosmic-scope .footer-logo-xl { width: 180px; }
}

body.cosmic-scope .footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.3fr;
    gap: 48px;
    margin-bottom: 40px;
}
@media (max-width: 900px) { body.cosmic-scope .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { body.cosmic-scope .footer-grid { grid-template-columns: 1fr; } }

body.cosmic-scope .footer-brand p { color: var(--ink-70) !important; max-width: 320px; margin: 14px 0; font-size: 14px; line-height: 1.55; }
body.cosmic-scope .footer-logo-large { max-height: 36px; width: auto; filter: none; }

body.cosmic-scope .footer-light h5,
body.cosmic-scope .footer-dark h5 {
    color: var(--ink-100) !important;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
body.cosmic-scope .footer-light ul,
body.cosmic-scope .footer-dark ul { list-style: none; padding: 0; margin: 0; }
body.cosmic-scope .footer-light li,
body.cosmic-scope .footer-dark li { margin-bottom: 8px; }
body.cosmic-scope .footer-light a,
body.cosmic-scope .footer-dark a {
    color: var(--ink-80) !important;
    text-decoration: none;
    font-size: 14px;
    transition: color 200ms ease;
}
body.cosmic-scope .footer-light a:hover,
body.cosmic-scope .footer-dark a:hover { color: var(--neon) !important; }

body.cosmic-scope .footer-coordinate p { color: var(--ink-70) !important; font-size: 13px; line-height: 1.5; margin: 0 0 8px; }

body.cosmic-scope .footer-contact-list { margin-top: 16px !important; }
body.cosmic-scope .footer-contact-link {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--glass-fill);
    transition: all 220ms ease;
    text-decoration: none;
}
body.cosmic-scope .fcl-label { display: none !important; }
body.cosmic-scope .fcl-action { display: none !important; }
body.cosmic-scope .fcl-value { color: var(--ink-100) !important; font-weight: 600; font-size: 14px; font-family: var(--font-ui); }
body.cosmic-scope .footer-contact-link:hover {
    border-color: var(--neon);
    background: rgba(7,249,104,0.06);
    box-shadow: 0 0 0 1px var(--neon), 0 0 18px var(--neon-soft);
}
body.cosmic-scope .footer-contact-link:hover .fcl-value { color: var(--neon) !important; }

body.cosmic-scope .footer-social { margin-top: 18px; display: flex; gap: 10px; }
body.cosmic-scope .footer-social a.social-link {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    color: var(--ink-100) !important;
    width: 42px; height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--glass-fill);
    text-decoration: none;
    transition: all 220ms ease;
}
body.cosmic-scope .footer-social a.social-link span { display: none; }
body.cosmic-scope .footer-social a.social-link svg {
    fill: var(--ink-100) !important;
    width: 18px; height: 18px;
    transition: fill 220ms ease;
}
body.cosmic-scope .footer-social a.social-link:hover {
    color: var(--neon) !important;
    border-color: var(--neon);
    background: rgba(7,249,104,0.08);
    box-shadow: 0 0 0 1px var(--neon), 0 0 18px var(--neon-soft);
}
body.cosmic-scope .footer-social a.social-link:hover svg { fill: var(--neon) !important; }

/* Footer legal bar — fascia compatta in fondo */
body.cosmic-scope .footer-legal-bar { border-top: 1px solid var(--line); padding-top: 24px; }
body.cosmic-scope .footer-legal-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    color: var(--ink-70) !important;
    font-family: var(--font-ui);
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 16px;
}
body.cosmic-scope .footer-legal-name { color: var(--ink-100) !important; font-weight: 700; }
body.cosmic-scope .footer-legal-sep { color: var(--ink-50) !important; }
body.cosmic-scope .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    border-top: none;
    padding-top: 0;
}
body.cosmic-scope .footer-bottom p { color: var(--ink-60) !important; font-size: 12px; margin: 0; }
@media (max-width: 700px) {
    body.cosmic-scope .footer-legal-line { font-size: 12px; }
    body.cosmic-scope .footer-legal-sep { display: none; }
}

body.cosmic-scope .footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
body.cosmic-scope .footer-bottom p { color: var(--ink-60) !important; font-size: 13px; margin: 0; }
body.cosmic-scope .footer-policy-links { display: flex; gap: 16px; }

/* ═══ TIMELINE/ROADMAP — riusato dalla pagina cfo-fractional ═══ */
body.cosmic-scope .rm-step .rm-sq { background: var(--cream) !important; border: 1px solid var(--line) !important; color: var(--ink-100) !important; }
body.cosmic-scope .rm-step.act .rm-sq { background: var(--ink-100) !important; color: #fff !important; border-color: var(--ink-100) !important; }
body.cosmic-scope .rm-stit { color: var(--ink-80) !important; }
body.cosmic-scope .rm-tooltip { background: var(--glass-fill-strong) !important; border: 1px solid var(--line) !important; color: var(--ink-100) !important; box-shadow: 0 10px 40px rgba(30,39,97,0.1); }
body.cosmic-scope .rm-tooltip strong { color: var(--ink-100) !important; }
body.cosmic-scope .rm-tooltip p { color: var(--ink-70) !important; }
body.cosmic-scope .tt-tag { background: var(--cream) !important; color: var(--ink-80) !important; border: 1px solid var(--line) !important; }

/* ═══ STELLE INTERATTIVE CANVAS ═══ */
body.cosmic-scope #cosmic-stars-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: multiply;
}
/* Le sezioni stanno sopra il canvas */
body.cosmic-scope section,
body.cosmic-scope header,
body.cosmic-scope footer { position: relative; z-index: 2; }
body.cosmic-scope .hero { z-index: 3; }

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE TUNING
═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* HERO: padding ridotto, layout 3-zone più compatto */
    body.cosmic-scope .hero { min-height: 0 !important; height: 100svh; max-height: none; }
    body.cosmic-scope .hero-3zone-container { padding: 96px 18px 32px !important; gap: 12px; }
    body.cosmic-scope .hero h1 { font-size: clamp(26px, 7vw, 36px) !important; max-width: 100%; margin: 0 auto 14px !important; }
    body.cosmic-scope .hero .hero-subtitle { font-size: clamp(15px, 4vw, 19px) !important; max-width: 100%; }
    body.cosmic-scope .hero-buttons { gap: 10px; }
    body.cosmic-scope .hero-buttons .btn { flex: 1 1 auto; min-height: 44px; padding: 12px 18px !important; font-size: 13px !important; }

    /* HEADER: nav-pill ridotta, padding contenuto */
    body.cosmic-scope .header { padding: 10px 12px !important; }
    body.cosmic-scope .header-container { padding: 8px 12px 8px 16px !important; min-height: 48px; gap: 8px; }
    body.cosmic-scope .header-cta { padding: 8px 14px !important; font-size: 12px !important; }
    body.cosmic-scope .header.scrolled .header-container { padding: 8px 14px !important; }

    /* Mobile menu pillole touch-friendly */
    body.cosmic-scope .mobile-menu { background: #fff !important; padding-top: 100px !important; }
    body.cosmic-scope .mobile-menu-link { min-height: 48px; display: flex !important; align-items: center; font-size: 16px !important; padding: 10px 18px !important; }
    body.cosmic-scope .mobile-menu-cta .btn { min-height: 48px; width: 100%; justify-content: center; }

    /* CHI SIAMO fullbleed */
    body.cosmic-scope .chi-siamo-stage { height: 100svh; min-height: 540px; max-height: 760px; }
    body.cosmic-scope .chi-siamo-overlay { padding: 56px 20px !important; align-items: flex-end !important; }
    body.cosmic-scope .chi-siamo-text { max-width: 100%; }
    body.cosmic-scope .chi-siamo-text h2 { font-size: clamp(24px, 6.5vw, 36px) !important; line-height: 1.18 !important; }
    body.cosmic-scope .chi-siamo-lead { font-size: 15px !important; line-height: 1.5 !important; }

    /* SERVIZI 6 card: 1 colonna pulita */
    body.cosmic-scope .cosa-facciamo, body.cosmic-scope .cosa-facciamo-full { padding: 56px 0 !important; }
    body.cosmic-scope .cf-header { margin-bottom: 28px; padding: 0 18px; }
    body.cosmic-scope .cf-grid-6-wide, body.cosmic-scope .cf-grid-6 { grid-template-columns: 1fr !important; gap: 14px !important; padding: 0 18px; }
    body.cosmic-scope .cf-card { padding: 18px !important; }

    /* GALASSIA: orbita riproporzionata, item più piccoli */
    body.cosmic-scope .galassia { padding: 56px 0 !important; }
    body.cosmic-scope .galassia-header { padding: 0 20px; margin-bottom: 32px; }
    body.cosmic-scope .galaxy-stage { width: calc(100% - 36px); aspect-ratio: 1; height: auto !important; max-height: 520px; --orbit-radius: 38%; margin: 0 auto; }
    body.cosmic-scope .galaxy-item { width: 38%; }
    body.cosmic-scope .galaxy-item-inner { padding: 8px 10px; border-radius: 12px; }
    body.cosmic-scope .galaxy-item-inner strong { font-size: 11px !important; line-height: 1.2 !important; margin-bottom: 3px; }
    body.cosmic-scope .galaxy-item-inner p { font-size: 10px !important; line-height: 1.3 !important; }
    body.cosmic-scope .galaxy-core { width: 88px; height: 88px; }
    body.cosmic-scope .galaxy-core-mark { width: 70px; height: 70px; }

    /* TEAM: 1 colonna full-width più leggibile */
    body.cosmic-scope .team-4col { grid-template-columns: 1fr !important; gap: 18px !important; padding: 0 18px; }
    body.cosmic-scope .team-card { padding: 18px !important; }
    body.cosmic-scope .team-photo-wrapper { max-width: 240px; margin: 0 auto 14px; }

    /* CLIENTI 1 colonna stack */
    body.cosmic-scope .clienti-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; padding: 0 18px; }
    body.cosmic-scope .cliente-box { padding: 18px 12px !important; font-size: 12px; }

    /* BLOG cards stack */
    body.cosmic-scope .blog-section { padding: 56px 0 !important; }
    body.cosmic-scope .blog-grid { grid-template-columns: 1fr !important; gap: 14px !important; padding: 0 18px; }
    body.cosmic-scope .blog-card-inner { padding: 18px; }
    body.cosmic-scope .blog-card h4 { font-size: 16px !important; }
    body.cosmic-scope .blog-card p { font-size: 13px !important; }
    body.cosmic-scope .blog-header { flex-direction: column; align-items: flex-start; gap: 16px; padding: 0 18px; }
    body.cosmic-scope .blog-section h2 { font-size: clamp(24px, 6.5vw, 32px) !important; }

    /* EBOOK section più compatta */
    body.cosmic-scope .ebook-section .container { padding: 0 18px; }
    body.cosmic-scope .ebook-inner { flex-direction: column !important; gap: 24px !important; align-items: center; }
    body.cosmic-scope .ebook-book-wrap { max-width: 220px; }
    body.cosmic-scope .ebook-copy { max-width: 100%; text-align: center; }
    body.cosmic-scope .ebook-points { align-items: flex-start; }
    body.cosmic-scope .ebook-form-row { flex-direction: column; gap: 10px; align-items: stretch; }
    body.cosmic-scope .ebook-btn { min-height: 48px; justify-content: center; }
    body.cosmic-scope .ebook-input { min-height: 48px; }

    /* CONTATTI assessment */
    body.cosmic-scope .cta-section { padding: 56px 0 !important; }
    body.cosmic-scope .cta-container { grid-template-columns: 1fr !important; gap: 24px !important; padding: 0 18px; }
    body.cosmic-scope .cta-calendar iframe { width: 100% !important; height: 580px !important; }

    /* FOOTER pulito */
    body.cosmic-scope .footer-v3 { padding: 56px 0 24px; }
    body.cosmic-scope .footer-v3 .container { padding: 0 18px; }
    body.cosmic-scope .footer-v3-grid { grid-template-columns: 1fr !important; gap: 28px !important; margin-bottom: 32px; }
    body.cosmic-scope .footer-v3-brand { max-width: 100%; }
    body.cosmic-scope .footer-v3-logo { width: 120px; }
    body.cosmic-scope .footer-v3-claim { font-size: 15px; }
    body.cosmic-scope .footer-v3-pill { min-height: 44px; display: flex; align-items: center; justify-content: center; }
    body.cosmic-scope .footer-v3-legal p { font-size: 11px; }

    /* TOUCH TARGETS — tutti i bottoni almeno 44px */
    body.cosmic-scope .btn { min-height: 44px; padding: 11px 20px; }

    /* SCROLL stability — riduce padding orizzontale eccessivo */
    body.cosmic-scope .container { padding-left: 18px; padding-right: 18px; }

    /* ARTICLE BODY: respiro lettura su mobile */
    body.cosmic-scope.no-hero-page .article-layout { grid-template-columns: 1fr !important; gap: 32px !important; padding: 0 18px; }
    body.cosmic-scope.no-hero-page .article-body { padding: 0 !important; max-width: 100%; }
    body.cosmic-scope.no-hero-page .article-body h2 { font-size: clamp(22px, 5.5vw, 28px) !important; margin-top: 28px !important; }
    body.cosmic-scope.no-hero-page .article-body h3 { font-size: clamp(18px, 4.8vw, 22px) !important; }
    body.cosmic-scope.no-hero-page .article-body p { font-size: 16px !important; line-height: 1.65 !important; }
    body.cosmic-scope.no-hero-page .article-body li { font-size: 16px !important; line-height: 1.6 !important; }
    body.cosmic-scope.no-hero-page .article-hero h1 { font-size: clamp(26px, 6.8vw, 36px) !important; }
    body.cosmic-scope.no-hero-page .article-hero { padding: 90px 18px 32px !important; }
    body.cosmic-scope.no-hero-page .article-cat-row { flex-wrap: wrap; gap: 8px; }
    body.cosmic-scope.no-hero-page .sidebar-box { padding: 18px !important; }
    body.cosmic-scope.no-hero-page .cfo-tip { padding: 18px !important; }
    body.cosmic-scope.no-hero-page .article-quote { padding: 18px !important; }
    body.cosmic-scope.no-hero-page .related-grid { grid-template-columns: 1fr !important; }

    /* Padding top per pagine no-hero (compensare nav fissa) */
    body.cosmic-scope.no-hero-page { padding-top: 60px; }

    /* Video sezioni: rimuovo autoplay implicito su mobile via CSS (non si può ma riduco priorità visiva) */
    body.cosmic-scope .servizio-visual { height: 60vh !important; min-height: 380px; }

    /* Cosa facciamo: tolgo padding ulteriore se il container ne ha già */
    body.cosmic-scope .cf-full { padding: 0 !important; }
}

/* PICCOLO MOBILE 360 */
@media (max-width: 380px) {
    body.cosmic-scope .hero h1 { font-size: clamp(22px, 7vw, 30px) !important; }
    body.cosmic-scope .hero .hero-subtitle { font-size: 14px !important; }
    body.cosmic-scope .galaxy-item-inner strong { font-size: 10px !important; }
    body.cosmic-scope .galaxy-item-inner p { display: none; }
    body.cosmic-scope .galaxy-core { width: 76px; height: 76px; }
    body.cosmic-scope .galaxy-core-mark { width: 60px; height: 60px; }
}
