/* ════════════════════════════════════════════════════════════════════════════
   FINHANCE — COSMIC FINANCE / THEME (all-dark editorial)
   Tutto bg-black, Instrument Serif italic come display dominante,
   pattern: hero video, featured-video, two-col video, services cards video.
   Caricato per ultimo. Tutto scopato sotto body.cosmic-scope.
════════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   GLOBAL RESET DARK — tutte le sezioni vanno su nero
═══════════════════════════════════════════════════════════════════════════ */
body.cosmic-scope { background: var(--black); color: var(--w-80); }
body.cosmic-scope .container { max-width: var(--container-wide); padding: 0 24px; }

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

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);
    font-weight: 400;
    color: var(--w-100);
    letter-spacing: -0.02em;
    line-height: 1.02;
}
body.cosmic-scope p {
    color: var(--w-60);
    font-family: var(--font-body);
    line-height: 1.7;
}
body.cosmic-scope strong { color: var(--w-90); font-weight: 600; }
body.cosmic-scope a { color: inherit; }

/* ═══════════════════════════════════════════════════════════════════════════
   ITALIC ACCENT — il cuore del linguaggio editoriale
   .highlight viene reso in Instrument Serif italic in white/40 nelle headline
   (sui blocchi dark) per replicare il pattern "Pioneering ideas for minds…"
═══════════════════════════════════════════════════════════════════════════ */
body.cosmic-scope .highlight {
    font-family: var(--font-display) !important;
    font-style: italic !important;
    font-weight: 400 !important;
    background: transparent !important;
    background-image: none !important;
    background-color: transparent !important;
    color: var(--w-40) !important;
    padding: 0 !important;
}

/* Hero highlight: bianco italic con micro sottolineatura verde glow */
body.cosmic-scope .hero h1 .highlight {
    color: var(--w-100) !important;
    position: relative;
    display: inline-block;
}
body.cosmic-scope .hero h1 .highlight::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0.06em;
    height: 2px;
    background: var(--green);
    border-radius: 2px;
    box-shadow: 0 0 18px rgba(7,249,104,0.6);
}

/* CGO/ebook: italic in verde brand */
body.cosmic-scope .cgo-hero .highlight,
body.cosmic-scope .ebook-section .highlight {
    color: var(--green) !important;
    text-shadow: 0 0 24px rgba(7,249,104,0.35);
}

/* ═══════════════════════════════════════════════════════════════════════════
   NAVBAR — pillola liquid-glass centrata in cima al hero
═══════════════════════════════════════════════════════════════════════════ */
body.cosmic-scope .header {
    background: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
    padding: 24px 24px !important;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
}
body.cosmic-scope .header-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 22px !important;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.01);
    background-blend-mode: luminosity;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
body.cosmic-scope .header-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.4px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.45) 0%,
        rgba(255, 255, 255, 0.15) 20%,
        rgba(255, 255, 255, 0.00) 40%,
        rgba(255, 255, 255, 0.00) 60%,
        rgba(255, 255, 255, 0.15) 80%,
        rgba(255, 255, 255, 0.45) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}
body.cosmic-scope .header.scrolled .header-container {
    background: rgba(255, 255, 255, 0.04);
}
body.cosmic-scope .nav-link,
body.cosmic-scope .logo-link {
    color: var(--w-80) !important;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
}
body.cosmic-scope .nav-link:hover { color: var(--w-100) !important; }
body.cosmic-scope .logo { filter: brightness(0) invert(1); max-height: 26px; width: auto; }

body.cosmic-scope .header-cta {
    background: var(--green) !important;
    color: var(--black) !important;
    border-radius: var(--radius-pill);
    padding: 10px 20px !important;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 13px !important;
    box-shadow: 0 6px 22px rgba(7,249,104,0.28);
    transition: transform 200ms var(--ease-soft), box-shadow 200ms ease;
}
body.cosmic-scope .header-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(7,249,104,0.4);
}

body.cosmic-scope .mobile-toggle span { background: var(--white) !important; }

/* Dropdown menu */
body.cosmic-scope .dropdown-menu {
    background: rgba(0,0,0,0.85);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
}
body.cosmic-scope .dropdown-menu a { color: var(--w-70); }
body.cosmic-scope .dropdown-menu a:hover { color: var(--w-100); background: rgba(255,255,255,0.05); }

body.cosmic-scope .mobile-menu {
    background: rgba(0,0,0,0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}
body.cosmic-scope .mobile-menu-link { color: var(--w-80) !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   HERO — video full-screen, headline gigante con accent italic, glass CTA
═══════════════════════════════════════════════════════════════════════════ */
body.cosmic-scope .hero {
    min-height: 100vh;
    background: var(--black) !important;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    isolation: isolate;
}

.cosmic-hero-stage {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: var(--black);
}
.cosmic-hero-stage video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    opacity: 0;
}
.cosmic-hero-stage::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.0) 18%, rgba(0,0,0,0.0) 55%, rgba(0,0,0,0.55) 88%, var(--black) 100%);
    pointer-events: none;
    z-index: 1;
}

body.cosmic-scope .hero .container,
body.cosmic-scope .hero .hero-container {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 160px 24px 24px !important;
    width: 100%;
    max-width: 100%;
    margin: 0;
}
body.cosmic-scope .hero .hero-content {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

body.cosmic-scope .hero h1 {
    font-family: var(--font-display) !important;
    font-weight: 400 !important;
    font-size: var(--fs-hero) !important;
    line-height: 0.98 !important;
    letter-spacing: -0.03em !important;
    color: var(--w-100) !important;
    margin: 0 !important;
    max-width: 100% !important;
    text-align: center;
}

body.cosmic-scope .hero .hero-subtitle {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--w-70);
    max-width: 580px;
    margin: 0 auto;
    text-align: center;
}
body.cosmic-scope .hero .hero-subtitle strong { color: var(--w-100); font-weight: 500; }

body.cosmic-scope .hero .hero-buttons {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
body.cosmic-scope .hero .btn-primary {
    background: var(--green) !important;
    color: var(--black) !important;
    border-radius: var(--radius-pill) !important;
    padding: 14px 28px !important;
    font-family: var(--font-ui) !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    box-shadow: 0 8px 28px rgba(7,249,104,0.32);
    transition: transform 200ms var(--ease-soft), box-shadow 200ms ease;
    border: none !important;
}
body.cosmic-scope .hero .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(7,249,104,0.42);
}
body.cosmic-scope .hero .btn-outline {
    background: rgba(255, 255, 255, 0.01) !important;
    background-blend-mode: luminosity;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    color: var(--w-90) !important;
    border-radius: var(--radius-pill) !important;
    padding: 13px 28px !important;
    font-family: var(--font-ui) !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    border: none !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}
body.cosmic-scope .hero .btn-outline::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.4px;
    background: linear-gradient(180deg,
        rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 20%,
        rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%,
        rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.45) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

/* Hero visual originale spento */
body.cosmic-scope .hero .hero-visual { display: none !important; }

/* Social pills in fondo all'hero */
.cosmic-hero-social {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 40px 0 48px;
}
.cosmic-hero-social .social-pill {
    width: 52px; height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--w-80);
    transition: color 220ms ease;
}
.cosmic-hero-social .social-pill:hover { color: var(--w-100); }

/* ═══════════════════════════════════════════════════════════════════════════
   SEZIONI EDITORIAL (Cosa facciamo, Chi siamo, Servizio, Ecosistema, ecc.)
   Tutte bg-black con tipografia Instrument Serif gigante.
═══════════════════════════════════════════════════════════════════════════ */
body.cosmic-scope .cosa-facciamo,
body.cosmic-scope .chi-siamo,
body.cosmic-scope .servizio-main,
body.cosmic-scope .ecosistema,
body.cosmic-scope .metodologia,
body.cosmic-scope .trasformazione-valore,
body.cosmic-scope .team,
body.cosmic-scope .clienti,
body.cosmic-scope .blog-section,
body.cosmic-scope .cta-section,
body.cosmic-scope .ebook-section {
    background: var(--black) !important;
    color: var(--w-70);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

body.cosmic-scope .cosa-facciamo h2,
body.cosmic-scope .chi-siamo h2,
body.cosmic-scope .servizio-main h2,
body.cosmic-scope .ecosistema h2,
body.cosmic-scope .metodologia h2,
body.cosmic-scope .trasformazione-valore 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 {
    font-family: var(--font-display) !important;
    font-size: var(--fs-h2) !important;
    color: var(--w-100) !important;
    letter-spacing: -0.02em !important;
    line-height: 1.05 !important;
    font-weight: 400 !important;
    margin-bottom: 32px;
}

body.cosmic-scope h4 {
    font-family: var(--font-display);
    font-size: var(--fs-h4);
    color: var(--w-100);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.2;
}
body.cosmic-scope h5 {
    font-family: var(--font-ui);
    color: var(--w-40);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
}

/* Subtitle / lead */
body.cosmic-scope .subtitle,
body.cosmic-scope .cf-intro,
body.cosmic-scope .tv-sub,
body.cosmic-scope .ebook-desc {
    color: var(--w-50) !important;
    font-size: var(--fs-lead);
    line-height: 1.7;
}

/* Eyebrow / kicker */
body.cosmic-scope .cf-eyebrow,
body.cosmic-scope .ebook-eyebrow,
body.cosmic-scope .blog-kw {
    color: var(--w-40) !important;
    font-family: var(--font-ui) !important;
    font-size: 12px !important;
    letter-spacing: 0.22em !important;
    text-transform: uppercase !important;
    font-weight: 500 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   COSA FACCIAMO — 6 service card con liquid glass + hover scale
═══════════════════════════════════════════════════════════════════════════ */
body.cosmic-scope .cf-layout { display: grid; gap: 64px; grid-template-columns: 1fr; }
@media (min-width: 1024px) {
    body.cosmic-scope .cf-layout { grid-template-columns: 1fr 1.4fr; align-items: start; }
}
body.cosmic-scope .cf-left { padding-top: 12px; }
body.cosmic-scope .cf-target-dot { background: var(--green); box-shadow: 0 0 0 4px rgba(7,249,104,0.15); }
body.cosmic-scope .cf-target span { color: var(--w-70); }

body.cosmic-scope .cf-grid-6 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
body.cosmic-scope .cf-card {
    background: rgba(255, 255, 255, 0.01) !important;
    background-blend-mode: luminosity;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border: none !important;
    border-radius: var(--radius-xl);
    padding: 28px;
    color: var(--w-80);
    position: relative;
    overflow: hidden;
    transition: transform 380ms var(--ease-soft), background 380ms ease;
}
body.cosmic-scope .cf-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.4px;
    background: linear-gradient(180deg,
        rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 20%,
        rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%,
        rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.45) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}
body.cosmic-scope .cf-card:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    transform: translateY(-4px);
}
body.cosmic-scope .cf-card h4 {
    color: var(--w-100) !important;
    margin: 16px 0 8px;
}
body.cosmic-scope .cf-card p { color: var(--w-50); font-size: 14px; line-height: 1.6; }
body.cosmic-scope .cf-card-icon { stroke: var(--w-80); width: 26px; height: 26px; }
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: #07F968 !important; }

/* Teaser sezione metodologia rimanente in home dopo lo spostamento su /cfo-fractional/ */
body.cosmic-scope .metodologia-teaser { padding: 96px 0; }
body.cosmic-scope .metodologia-teaser-inner { text-align: center; max-width: 760px; margin: 0 auto; }
body.cosmic-scope .metodologia-teaser-inner h2 { margin-bottom: 16px; }
body.cosmic-scope .metodologia-teaser-inner .subtitle { margin: 0 auto 32px; text-align: center; }
body.cosmic-scope .metodologia-teaser-cta { display: inline-flex; align-items: center; gap: 8px; }

/* ═══════════════════════════════════════════════════════════════════════════
   FEATURED VIDEO — pattern attorno alla sezione "Servizio CFO"
═══════════════════════════════════════════════════════════════════════════ */
body.cosmic-scope .servizio-main .servizio-header { text-align: center; margin-bottom: 56px; }
body.cosmic-scope .servizio-main .servizio-header h2 { text-align: center; }
body.cosmic-scope .servizio-main .subtitle { text-align: center; max-width: 720px; margin: 0 auto; }

body.cosmic-scope .servizio-visual {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    aspect-ratio: 16/9;
    margin: 0 auto 56px;
    max-width: 1200px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}
body.cosmic-scope .servizio-visual video,
body.cosmic-scope .servizio-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
body.cosmic-scope .servizio-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, transparent 50%);
    pointer-events: none;
}
.cosmic-featured-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 32px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    z-index: 2;
    flex-wrap: wrap;
}
.cosmic-featured-card {
    background: rgba(255, 255, 255, 0.01);
    background-blend-mode: luminosity;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 28px;
    max-width: 460px;
    position: relative;
    overflow: hidden;
}
.cosmic-featured-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.4px;
    background: linear-gradient(180deg,
        rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 20%,
        rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%,
        rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.45) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}
.cosmic-featured-card .label {
    color: var(--w-50);
    font-family: var(--font-ui);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.cosmic-featured-card p { color: var(--w-90); font-size: 15px; line-height: 1.55; margin: 0; }

/* Servizio grid 2x2 */
body.cosmic-scope .servizio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}
@media (min-width: 768px) { body.cosmic-scope .servizio-grid { grid-template-columns: 1fr 1fr; } }
body.cosmic-scope .servizio-col { display: flex; flex-direction: column; gap: 24px; }
body.cosmic-scope .card,
body.cosmic-scope .card-cream {
    background: rgba(255, 255, 255, 0.01) !important;
    background-blend-mode: luminosity;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    border-radius: var(--radius-xl);
    padding: 32px;
    color: var(--w-80);
    position: relative;
    overflow: hidden;
}
body.cosmic-scope .card::before,
body.cosmic-scope .card-cream::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.4px;
    background: linear-gradient(180deg,
        rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 20%,
        rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%,
        rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.45) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}
body.cosmic-scope .card h4,
body.cosmic-scope .card-cream h4 { color: var(--w-100) !important; margin-bottom: 12px; }
body.cosmic-scope .card p,
body.cosmic-scope .card-cream p { color: var(--w-60); font-size: 15px; }

/* ═══════════════════════════════════════════════════════════════════════════
   PHILOSOPHY (chi-siamo) — two-col video + text con divider sottile
═══════════════════════════════════════════════════════════════════════════ */
body.cosmic-scope .chi-siamo-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 80px;
}
@media (min-width: 900px) {
    body.cosmic-scope .chi-siamo-main {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}
body.cosmic-scope .chi-siamo-image {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 24px 60px rgba(0,0,0,0.55);
}
body.cosmic-scope .chi-siamo-image video,
body.cosmic-scope .chi-siamo-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
body.cosmic-scope .chi-siamo-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.5) 100%);
    pointer-events: none;
}
body.cosmic-scope .chi-siamo-content h2 {
    font-size: var(--fs-h2) !important;
    line-height: 1.02 !important;
}
body.cosmic-scope .chi-siamo-content p { color: var(--w-60); font-size: 17px; }

body.cosmic-scope .valori-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    body.cosmic-scope .valori-grid {
        grid-template-columns: 1fr;
    }
}
body.cosmic-scope .valori-grid .card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 32px 0 !important;
    border-bottom: 1px solid var(--w-10) !important;
}
body.cosmic-scope .valori-grid .card::before { display: none; }
body.cosmic-scope .valori-grid .card:last-child { border-bottom: none !important; }
body.cosmic-scope .valori-grid .card h4 {
    font-family: var(--font-display);
    font-size: clamp(28px, 3vw, 44px);
    color: var(--w-100);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ECOSISTEMA — heading editoriale + CGO featured
═══════════════════════════════════════════════════════════════════════════ */
body.cosmic-scope .ecosistema-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}
@media (min-width: 768px) { body.cosmic-scope .ecosistema-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { body.cosmic-scope .ecosistema-grid { grid-template-columns: repeat(4, 1fr); } }

body.cosmic-scope .cgo-hero {
    margin-top: 56px;
    padding: 48px;
    border-radius: var(--radius-2xl);
    background: var(--black);
    color: var(--w-90);
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.55);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
body.cosmic-scope .cgo-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/slide-nebula.png');
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    mix-blend-mode: screen;
    pointer-events: none;
}
body.cosmic-scope .cgo-hero > * { position: relative; z-index: 1; }
body.cosmic-scope .cgo-hero h4 {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.5vw, 48px);
    color: var(--w-100);
    margin: 16px 0 12px;
    line-height: 1.1;
}
body.cosmic-scope .cgo-hero p { color: var(--w-70); }
body.cosmic-scope .cgo-hero strong { color: var(--w-100); }
body.cosmic-scope .cgo-badge {
    display: inline-block;
    background: var(--green);
    color: var(--black);
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
}

/* ═══════════════════════════════════════════════════════════════════════════
   COSMIC DIVIDER + visual
═══════════════════════════════════════════════════════════════════════════ */
body.cosmic-scope .cosmic-divider { display: none; }

/* Section-video divider full-bleed cinematic */
body.cosmic-scope .cosmic-section-video {
    background: var(--black) !important;
    padding: 60px 24px 60px !important;
    overflow: hidden;
}
.cosmic-section-video-frame {
    max-width: 1280px;
    margin: 0 auto;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    aspect-ratio: 21/9;
    position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.cosmic-section-video-frame video,
.cosmic-section-video-frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cosmic-section-video-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.5) 100%);
    pointer-events: none;
}

/* CGO featured con video di background */
.cgo-bg-video {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    opacity: 0.45;
    mix-blend-mode: screen;
    z-index: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   METODOLOGIA — timeline
═══════════════════════════════════════════════════════════════════════════ */
body.cosmic-scope .rm-step .rm-sq {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--w-20);
    color: var(--w-90);
    font-family: var(--font-display);
    font-weight: 400;
    border-radius: var(--radius-md);
    transition: all 280ms var(--ease-soft);
}
body.cosmic-scope .rm-step.act .rm-sq,
body.cosmic-scope .rm-step:hover .rm-sq {
    background: var(--w-100);
    color: var(--black);
    border-color: var(--w-100);
    box-shadow: 0 0 0 4px rgba(7,249,104,0.18);
}
body.cosmic-scope .rm-stit { color: var(--w-70); font-family: var(--font-ui); font-weight: 500; }
body.cosmic-scope .rm-conn svg line { stroke: var(--w-10); }
body.cosmic-scope .rm-tooltip {
    background: rgba(0,0,0,0.85);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--w-10);
    color: var(--w-90);
    border-radius: var(--radius-lg);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRIMA / DOPO
═══════════════════════════════════════════════════════════════════════════ */
body.cosmic-scope .pd-visual { color: var(--w-80); }
body.cosmic-scope .pd-half { padding: 24px; border-radius: var(--radius-lg); background: rgba(255,255,255,0.02); border: 1px solid var(--w-10); }
body.cosmic-scope .pd-half-label.prima { background: var(--w-10); color: var(--w-60); }
body.cosmic-scope .pd-half-label.dopo {
    background: var(--green);
    color: var(--black);
    font-weight: 700;
}
body.cosmic-scope .pd-row strong { color: var(--w-100); }
body.cosmic-scope .pd-row p { color: var(--w-50); font-size: 13px; }
body.cosmic-scope .pd-icon-sq.red { background: rgba(239,68,68,0.15); }
body.cosmic-scope .pd-icon-sq.grn { background: rgba(7,249,104,0.15); }
body.cosmic-scope .pd-arr svg { stroke: var(--w-100) !important; }

body.cosmic-scope .tv-divider { background: var(--w-10); }
body.cosmic-scope .valore-stack .card h4 { font-size: 28px; }

/* ═══════════════════════════════════════════════════════════════════════════
   EBOOK — banner dark con texture e CTA verde
═══════════════════════════════════════════════════════════════════════════ */
body.cosmic-scope .ebook-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/slide-dust.png');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    mix-blend-mode: screen;
    pointer-events: none;
}
body.cosmic-scope .ebook-section .container { position: relative; z-index: 1; }
body.cosmic-scope .ebook-section h2 { color: var(--w-100) !important; font-size: var(--fs-h2) !important; }
body.cosmic-scope .ebook-section .ebook-eyebrow { color: var(--green) !important; }
body.cosmic-scope .ebook-section .ebook-point { color: var(--w-90); font-weight: 500; }
body.cosmic-scope .ebook-section .ebook-check {
    background: var(--green);
    border-radius: 50%;
    width: 22px; height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
body.cosmic-scope .ebook-section .ebook-input {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--w-20);
    color: var(--white);
    border-radius: var(--radius-pill);
    padding: 14px 22px;
    font-family: var(--font-body);
}
body.cosmic-scope .ebook-section .ebook-input::placeholder { color: var(--w-40); }
body.cosmic-scope .ebook-section .ebook-btn {
    background: var(--green) !important;
    color: var(--black) !important;
    border-radius: var(--radius-pill);
    padding: 14px 26px;
    font-family: var(--font-ui);
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(7,249,104,0.3);
}
body.cosmic-scope .ebook-section .ebook-btn:hover {
    background: var(--green-dark) !important;
    transform: translateY(-2px);
}
body.cosmic-scope .ebook-section .ebook-privacy { color: var(--w-40); }

/* ═══════════════════════════════════════════════════════════════════════════
   TEAM — card pulite su nero
═══════════════════════════════════════════════════════════════════════════ */
body.cosmic-scope .team-4col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}
@media (min-width: 600px) { body.cosmic-scope .team-4col { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { body.cosmic-scope .team-4col { grid-template-columns: repeat(4, 1fr); } }
body.cosmic-scope .team-card {
    background: rgba(255, 255, 255, 0.01);
    background-blend-mode: luminosity;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: transform 320ms var(--ease-soft);
}
body.cosmic-scope .team-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.4px;
    background: linear-gradient(180deg,
        rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 20%,
        rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%,
        rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.45) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}
body.cosmic-scope .team-card:hover { transform: translateY(-4px); }
body.cosmic-scope .team-photo-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
    aspect-ratio: 1;
    position: relative;
}
body.cosmic-scope .team-photo {
    width: 100%; height: 100%; object-fit: cover;
    filter: grayscale(0.15) contrast(1.05);
}
body.cosmic-scope .team-card h4 { color: var(--w-100); font-family: var(--font-display); font-size: 22px; margin-bottom: 4px; }
body.cosmic-scope .team-role { color: var(--w-50); font-family: var(--font-ui); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
body.cosmic-scope .team-bio { color: var(--w-60); font-size: 14px; line-height: 1.55; }
body.cosmic-scope .team-link {
    color: var(--w-80);
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
}
body.cosmic-scope .team-link:hover { color: var(--green); }
body.cosmic-scope .team-photo-line { display: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   CLIENTI — loghi su nero
═══════════════════════════════════════════════════════════════════════════ */
body.cosmic-scope .clienti-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
}
body.cosmic-scope .cliente-box {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--w-10);
    border-radius: var(--radius-md);
    color: var(--w-40);
    font-family: var(--font-ui);
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 28px 20px;
    text-align: center;
    transition: color 240ms ease, border-color 240ms ease, background 240ms ease;
}
body.cosmic-scope .cliente-box:hover {
    color: var(--w-100);
    border-color: var(--w-40);
    background: rgba(255,255,255,0.04);
}

/* ═══════════════════════════════════════════════════════════════════════════
   BLOG
═══════════════════════════════════════════════════════════════════════════ */
body.cosmic-scope .blog-section { background: var(--black) !important; }
body.cosmic-scope .blog-kw { color: var(--w-40); font-family: var(--font-ui) !important; }
body.cosmic-scope .blog-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
body.cosmic-scope .blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}
@media (min-width: 768px) { body.cosmic-scope .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { body.cosmic-scope .blog-grid { grid-template-columns: repeat(3, 1fr); } }

body.cosmic-scope .blog-card {
    background: rgba(255, 255, 255, 0.01);
    background-blend-mode: luminosity;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 0;
    position: relative;
    overflow: hidden;
    display: block;
    transition: transform 320ms var(--ease-soft);
}
body.cosmic-scope .blog-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.4px;
    background: linear-gradient(180deg,
        rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 20%,
        rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%,
        rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.45) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}
body.cosmic-scope .blog-card:hover { transform: translateY(-4px); }
body.cosmic-scope .blog-card-inner { padding: 28px; }
body.cosmic-scope .blog-card h4 { color: var(--w-100); font-family: var(--font-display); font-size: 22px; line-height: 1.2; margin: 12px 0 10px; font-weight: 400; }
body.cosmic-scope .blog-card p { color: var(--w-60); font-size: 14px; }
body.cosmic-scope .blog-cat { color: var(--w-40); font-family: var(--font-ui); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; }
body.cosmic-scope .blog-date { color: var(--w-40); font-family: var(--font-ui); font-size: 11px; }
body.cosmic-scope .blog-card-top { display: flex; justify-content: space-between; align-items: center; }
body.cosmic-scope .blog-cta { color: var(--w-80); display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-family: var(--font-ui); font-size: 13px; font-weight: 500; }
body.cosmic-scope .blog-cta:hover { color: var(--green); }
body.cosmic-scope .blog-all-link { color: var(--w-80); font-family: var(--font-ui); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
body.cosmic-scope .blog-all-link:hover { color: var(--green); }

/* ═══════════════════════════════════════════════════════════════════════════
   CTA / CONTATTI
═══════════════════════════════════════════════════════════════════════════ */
body.cosmic-scope .cta-container { display: grid; grid-template-columns: 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; }
@media (min-width: 900px) { body.cosmic-scope .cta-container { grid-template-columns: 1fr 1.2fr; } }
body.cosmic-scope .cta-contact-photo { border-radius: 50%; width: 56px; height: 56px; object-fit: cover; }
body.cosmic-scope .cta-contact-item { color: var(--w-80); display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
body.cosmic-scope .cta-contact-item strong { color: var(--w-100); }
body.cosmic-scope .cta-contact-item span { color: var(--w-50); font-size: 13px; }
body.cosmic-scope .cta-contact-links { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
body.cosmic-scope .cta-contact-links a { color: var(--w-90); font-weight: 500; }
body.cosmic-scope .cta-contact-links a:hover { color: var(--green); }
body.cosmic-scope .cta-calendar iframe {
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: 0 24px 60px rgba(0,0,0,0.55);
}

/* Generic btn-primary fuori dall'hero (rimane verde brand) */
body.cosmic-scope .btn.btn-primary:not(.header-cta) {
    background: var(--green) !important;
    color: var(--black) !important;
    border-radius: var(--radius-pill);
    padding: 14px 28px;
    font-family: var(--font-ui);
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(7,249,104,0.24);
    border: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
body.cosmic-scope .btn.btn-outline {
    background: rgba(255, 255, 255, 0.01) !important;
    background-blend-mode: luminosity;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1) !important;
    color: var(--w-90) !important;
    border: none !important;
    border-radius: var(--radius-pill);
    padding: 13px 28px;
    font-family: var(--font-ui);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER (già footer-dark) — refinement
═══════════════════════════════════════════════════════════════════════════ */
body.cosmic-scope .footer {
    background: var(--black) !important;
    color: var(--w-60);
    padding: 96px 0 32px;
    border-top: 1px solid var(--w-10);
    position: relative;
    overflow: hidden;
}
body.cosmic-scope .footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/slide-nebula.png');
    background-size: cover;
    background-position: center;
    opacity: 0.08;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 0;
}
body.cosmic-scope .footer .container { position: relative; z-index: 1; }
body.cosmic-scope .footer h5 { color: var(--w-100); font-family: var(--font-ui); }
body.cosmic-scope .footer p,
body.cosmic-scope .footer li,
body.cosmic-scope .footer a { color: var(--w-60); }
body.cosmic-scope .footer a:hover { color: var(--green); }
body.cosmic-scope .footer-bottom { border-top: 1px solid var(--w-10); padding-top: 24px; margin-top: 48px; color: var(--w-40); font-size: 13px; }
body.cosmic-scope .footer-logo-large { filter: brightness(0) invert(1); max-width: 160px; }
body.cosmic-scope .footer .social-link {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--w-10);
    width: 44px; height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}
body.cosmic-scope .footer .social-link:hover { background: var(--green); color: var(--black); }

/* ═══════════════════════════════════════════════════════════════════════════
   REVEAL ANIMATIONS — discrete, scaglionate
═══════════════════════════════════════════════════════════════════════════ */
body.cosmic-scope .animate-on-scroll,
body.cosmic-scope .cosmic-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
    will-change: opacity, transform;
}
body.cosmic-scope .animate-on-scroll.visible,
body.cosmic-scope .cosmic-reveal.visible {
    opacity: 1;
    transform: none;
}
body.cosmic-scope .animate-on-scroll.delay-1 { transition-delay: 100ms; }
body.cosmic-scope .animate-on-scroll.delay-2 { transition-delay: 200ms; }
body.cosmic-scope .animate-on-scroll.delay-3 { transition-delay: 300ms; }
@media (prefers-reduced-motion: reduce) {
    body.cosmic-scope .animate-on-scroll,
    body.cosmic-scope .cosmic-reveal { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    body.cosmic-scope .header { padding: 16px !important; }
    body.cosmic-scope .header-container { padding: 8px 16px !important; }
    body.cosmic-scope .nav-list { display: none; }
    body.cosmic-scope .hero .container,
    body.cosmic-scope .hero .hero-container { padding: 140px 20px 16px !important; }
    body.cosmic-scope .hero h1 { font-size: clamp(48px, 13vw, 96px) !important; }
    body.cosmic-scope .hero .hero-buttons { width: 100%; }
    body.cosmic-scope .hero .btn-primary,
    body.cosmic-scope .hero .btn-outline { width: 100%; text-align: center; min-height: 48px; }
    body.cosmic-scope .cosa-facciamo,
    body.cosmic-scope .chi-siamo,
    body.cosmic-scope .servizio-main,
    body.cosmic-scope .ecosistema,
    body.cosmic-scope .metodologia,
    body.cosmic-scope .trasformazione-valore,
    body.cosmic-scope .team,
    body.cosmic-scope .clienti,
    body.cosmic-scope .blog-section,
    body.cosmic-scope .cta-section,
    body.cosmic-scope .ebook-section { padding: 80px 0; }
    body.cosmic-scope .servizio-visual { aspect-ratio: 4/3; }
    .cosmic-featured-overlay { padding: 18px; }
    .cosmic-featured-card { padding: 20px; }
}

/* Touch targets minimi */
body.cosmic-scope a,
body.cosmic-scope button { min-height: 44px; }
body.cosmic-scope .footer a,
body.cosmic-scope .nav-link,
body.cosmic-scope .footer-policy-links a,
body.cosmic-scope .blog-cta,
body.cosmic-scope .dropdown-menu a { min-height: 0; }
