/*
Theme Name: Pocca-Theme
Author: Il Tuo Nome
Description: Tema custom per POCA.IT basato su un design statico.
Version: 2.0
*/

/* ═══════════════════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════════════════ */
:root {
    /* Brand */
    --primary: #ff00fc;
    --secondary: #8300bd;
    --accent-cyan: #0dcaf0;
    --accent-blue: #0d6efd;
    --accent-violet: #7952b3;

    /* Surfaces */
    --bg-void: #06020c;
    --bg-deep: #0a0614;
    --bg-card: rgba(16, 16, 30, 0.55);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --border-subtle: rgba(255, 255, 255, 0.07);

    /* Text */
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-tertiary: #6e6e73;

    /* Product palettes */
    --menu-glow: #ff00fc;
    --go-glow: #a71aac;
    --stay-glow: #0dcaf0;

    /* Spacing */
    --section-pad: clamp(5rem, 10vh, 8rem);

    /* Radius */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);

    /* Token della versione precedente del design, ancora usati dalle pagine servizi:
       mappati sul tema scuro attuale (prima non erano definiti → testo bianco su bianco). */
    --primary-glow: var(--primary);
    --secondary-glow: var(--accent-cyan);
    --text-dark: var(--text-primary);
    --text-light: var(--text-secondary);
    --bg-dark: var(--bg-card);
}

/* Le sezioni con l'utility Bootstrap .bg-light restano nel tema scuro (l'utility forza #f8f9fa). */
section.bg-light {
    background-color: var(--bg-deep) !important;
}

/* ═══════════════════════════════════════════════════════════
   GLOBAL RESET & BASE
═══════════════════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Sansation', 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-primary);
    background: var(--bg-void) !important;
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.content-wrapper { position: relative; z-index: 1; }

section {
    padding: var(--section-pad) 0;
    position: relative;
    overflow: hidden;
}

img { max-width: 100%; height: auto; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s var(--ease-out-quart);
}
a:hover { color: var(--text-primary); }

/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY SYSTEM
═══════════════════════════════════════════════════════════ */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(255, 0, 252, 0.08);
    border: 1px solid rgba(255, 0, 252, 0.15);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.1;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    text-align: center;
    max-width: 650px;
    margin: 0 auto 4rem;
    line-height: 1.65;
}

/* Gradient text for product titles */
.gradient-text {
    background: linear-gradient(135deg, #fff 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gradient-text-go {
    background: linear-gradient(135deg, #fff 30%, var(--go-glow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gradient-text-stay {
    background: linear-gradient(135deg, #fff 30%, var(--stay-glow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Word-by-word text reveal */
.word-reveal {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}
.text-revealed .word-reveal {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════ */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
    box-shadow: 0 8px 25px rgba(131, 0, 189, 0.25);
}
.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 0, 252, 0.35);
    color: #fff;
}
.cta-button:hover::before { opacity: 1; }

.cta-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    background: transparent;
    border: 1.5px solid var(--border-subtle);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.4s var(--ease-out-expo);
}
.cta-outline:hover {
    border-color: var(--primary);
    color: var(--text-primary);
    background: rgba(255, 0, 252, 0.05);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════════ */
.navbar {
    background: rgba(6, 2, 12, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    padding: 0.4rem 0;
    transition: all 0.4s var(--ease-out-expo);
}
.navbar.nav-scrolled {
    background: rgba(6, 2, 12, 0.92);
    border-bottom-color: var(--border-subtle);
    padding: 0.25rem 0;
}
.navbar-brand img { height: 35px; width: auto; }

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    margin: 0 0.3rem;
    border-radius: 8px;
    transition: all 0.3s var(--ease-out-quart);
}
.nav-link:hover, .nav-link.active, .current-menu-item > .nav-link {
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.05);
}
.navbar .cta-button { padding: 9px 20px; font-size: 0.85rem; }

/* ═══════════════════════════════════════════════════════════
   FLOWING LINES CANVAS (Google I/O inspired)
═══════════════════════════════════════════════════════════ */
#flowing-lines-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    #flowing-lines-canvas { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   CURSOR GLOW
═══════════════════════════════════════════════════════════ */
.cursor-glow {
    position: fixed;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255,0,252,0.06) 0%, rgba(13,110,253,0.03) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    will-change: transform;
    aspect-ratio: 1 / 1;
}

/* ═══════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
═══════════════════════════════════════════════════════════ */
[data-reveal] {
    opacity: 0;
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

[data-reveal="up"] {
    transform: translateY(40px);
}
[data-reveal="up"].revealed {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal="left"] {
    transform: translateX(-50px);
}
[data-reveal="left"].revealed {
    opacity: 1;
    transform: translateX(0);
}

[data-reveal="right"] {
    transform: translateX(50px);
}
[data-reveal="right"].revealed {
    opacity: 1;
    transform: translateX(0);
}

[data-reveal="scale"] {
    transform: scale(0.92);
}
[data-reveal="scale"].revealed {
    opacity: 1;
    transform: scale(1);
}

[data-reveal="fade"] {
    /* just opacity */
}
[data-reveal="fade"].revealed {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════
   SVG SCROLL CONNECTOR LINES
═══════════════════════════════════════════════════════════ */
.scroll-lines-wrap {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.scroll-lines-wrap svg {
    position: absolute;
    width: 100%;
    height: 100%;
}
.scroll-draw-path {
    stroke-linecap: round;
    stroke-linejoin: round;
    will-change: stroke-dashoffset;
}
.path-fuchsia { stroke: var(--primary); filter: drop-shadow(0 0 6px rgba(255,0,252,0.4)); }
.path-violet  { stroke: var(--accent-violet); filter: drop-shadow(0 0 6px rgba(121,82,179,0.4)); }
.path-blue    { stroke: var(--accent-cyan); filter: drop-shadow(0 0 6px rgba(13,202,240,0.4)); }

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.hero-section {
    min-height: 100vh;
    padding: 10rem 0 6rem;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-title {
    font-size: clamp(3rem, 6.5vw, 5rem);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 2.5rem;
    line-height: 1.65;
}

.hero-image {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 60px rgba(131, 0, 189, 0.25));
}

/* Rocket */
.rocket-container { position: relative; perspective: 1000px; }

.rocket-launch {
    animation: gentle-float 4s ease-in-out infinite;
    position: relative;
    z-index: 10;
    filter: drop-shadow(0 20px 40px rgba(131, 0, 189, 0.3));
    zoom: 1.6;
}

@keyframes gentle-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25%  { transform: translateY(-8px) rotate(0.3deg); }
    50%  { transform: translateY(-14px) rotate(-0.2deg); }
    75%  { transform: translateY(-6px) rotate(0.1deg); }
}

/* Clouds */
.clouds-container,
.clouds-foreground {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.clouds-container { z-index: 1; }
.clouds-foreground { z-index: 15; }

.cloud {
    position: absolute;
    background: linear-gradient(135deg, rgba(255,255,255,0.6), rgba(220,235,255,0.3));
    border-radius: 50px;
    opacity: 0.5;
}
.cloud::before, .cloud::after {
    content: '';
    position: absolute;
    background: inherit;
    border-radius: 50px;
}

.cloud-1 { width: 80px; height: 30px; top: 15%; left: 35%; animation: float-1 8s ease-in-out infinite; z-index: 15; opacity: 0.35; }
.cloud-1::before { width: 40px; height: 40px; top: -15px; left: 10px; }
.cloud-1::after { width: 60px; height: 35px; top: -10px; right: 10px; }

.cloud-2 { width: 60px; height: 25px; top: 45%; right: 30%; animation: float-2 10s ease-in-out infinite; z-index: 15; opacity: 0.3; }
.cloud-2::before { width: 35px; height: 35px; top: -12px; left: 5px; }
.cloud-2::after { width: 45px; height: 30px; top: -8px; right: 5px; }

.cloud-3 { width: 70px; height: 28px; top: 25%; right: 35%; animation: float-3 12s ease-in-out infinite; z-index: 1; opacity: 0.5; }
.cloud-3::before { width: 38px; height: 38px; top: -14px; left: 8px; }
.cloud-3::after { width: 50px; height: 32px; top: -9px; right: 8px; }

.cloud-4 { width: 90px; height: 35px; top: 65%; left: 25%; animation: float-4 9s ease-in-out infinite; z-index: 15; opacity: 0.25; }
.cloud-4::before { width: 45px; height: 45px; top: -18px; left: 12px; }
.cloud-4::after { width: 65px; height: 40px; top: -12px; right: 12px; }

.cloud-5 { width: 55px; height: 22px; top: 35%; left: 45%; animation: float-5 11s ease-in-out infinite; z-index: 15; opacity: 0.35; }
.cloud-5::before { width: 30px; height: 30px; top: -10px; left: 5px; }
.cloud-5::after { width: 40px; height: 25px; top: -6px; right: 5px; }

.cloud-6 { width: 75px; height: 32px; top: 55%; right: 40%; animation: float-6 7s ease-in-out infinite; z-index: 1; opacity: 0.55; }
.cloud-6::before { width: 40px; height: 40px; top: -16px; left: 10px; }
.cloud-6::after { width: 55px; height: 35px; top: -10px; right: 10px; }

.cloud-front-1 { width: 120px; height: 45px; top: 20%; right: 25%; opacity: 0.2; animation: floatf-1 15s ease-in-out infinite; z-index: 15; }
.cloud-front-1::before { width: 60px; height: 60px; top: -22px; left: 15px; }
.cloud-front-1::after { width: 80px; height: 50px; top: -15px; right: 15px; }

.cloud-front-2 { width: 100px; height: 40px; bottom: 25%; left: 20%; opacity: 0.25; animation: floatf-2 13s ease-in-out infinite; z-index: 15; }
.cloud-front-2::before { width: 50px; height: 50px; top: -18px; left: 12px; }
.cloud-front-2::after { width: 70px; height: 45px; top: -12px; right: 12px; }

@keyframes float-1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(15px,20px)} }
@keyframes float-2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-20px,-15px)} }
@keyframes float-3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(25px,-10px)} }
@keyframes float-4 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(20px,-20px)} }
@keyframes float-5 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-15px,15px)} }
@keyframes float-6 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-10px,20px)} }
@keyframes floatf-1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-30px,15px)} }
@keyframes floatf-2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(25px,-20px)} }

/* ═══════════════════════════════════════════════════════════
   MAGNETIC CARDS (3D Tilt + Glow)
═══════════════════════════════════════════════════════════ */
.mag-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo), border-color 0.5s var(--ease-out-expo);
    will-change: transform;
    position: relative;
    overflow: hidden;
}

/* Inner glow that follows mouse */
.mag-card::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,0,252,0.08), transparent 70%);
    top: var(--glow-y, 50%);
    left: var(--glow-x, 50%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}
.mag-card:hover::after { opacity: 1; }

.mag-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 0, 252, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

/* ═══════════════════════════════════════════════════════════
   SECTION BACKGROUNDS — Deep Dark Space Progression
═══════════════════════════════════════════════════════════ */
#benefits {
    background: radial-gradient(ellipse at 20% 50%, rgba(131,0,189,0.06) 0%, transparent 50%),
                rgba(0, 0, 0, 0.65);
}
#services {
    background: radial-gradient(ellipse at 80% 30%, rgba(255,0,252,0.04) 0%, transparent 50%),
                rgba(0, 0, 0, 0.65);
}
#case-studies {
    background: radial-gradient(ellipse at 50% 50%, rgba(121,82,179,0.05) 0%, transparent 50%),
                rgba(0, 0, 0, 0.65);
}
#how-it-works {
    background: radial-gradient(ellipse at 30% 70%, rgba(13,202,240,0.04) 0%, transparent 50%),
                rgba(0, 0, 0, 0.65);
}
#faq {
    background: radial-gradient(ellipse at 70% 30%, rgba(255,0,252,0.03) 0%, transparent 50%),
                rgba(0, 0, 0, 0.65);
}
.final-cta {
    background: radial-gradient(ellipse at 50% 50%, rgba(131,0,189,0.08) 0%, transparent 60%),
                rgba(0, 0, 0, 0.65);
    padding: 7rem 0;
}

/* ═══════════════════════════════════════════════════════════
   PRODUCT SECTIONS — Each with unique atmosphere
═══════════════════════════════════════════════════════════ */

/* Shared product styling */
.product-section { padding: var(--section-pad) 0; position: relative; overflow: hidden; }

.product-logo {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    padding: 6px;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.product-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.product-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.08;
    margin-bottom: 1.2rem;
}

.product-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 480px;
    line-height: 1.65;
    margin-bottom: 2rem;
}

.feature-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}
.feature-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 0.9rem;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.feature-checklist li i {
    font-size: 0.85rem;
    margin-top: 4px;
    flex-shrink: 0;
}

/* --- Pocca Menù --- */
.section-menu {
    background: radial-gradient(ellipse at 80% 20%, rgba(255,0,252,0.07) 0%, transparent 55%),
                radial-gradient(ellipse at 10% 80%, rgba(131,0,189,0.05) 0%, transparent 55%),
                rgba(0, 0, 0, 0.65);
}
.section-menu .feature-checklist i { color: var(--menu-glow); text-shadow: 0 0 10px rgba(255,0,252,0.5); }

/* Menu showcase cards */
.menu-showcase-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    transition: all 0.5s var(--ease-out-expo);
}
.menu-showcase-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 30px rgba(255,0,252,0.06);
    border-color: rgba(255,0,252,0.25);
}
.menu-showcase-card img {
    height: 180px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
}
.menu-showcase-card:hover img { transform: scale(1.06); }
.menu-card-body {
    padding: 1.2rem 1.4rem;
}
.menu-card-body h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}
.menu-card-body p {
    font-size: 0.88rem;
    color: var(--text-tertiary);
    margin: 0;
}

/* --- PoccaGO --- */
.section-go {
    background: radial-gradient(ellipse at 15% 20%, rgba(167,26,172,0.07) 0%, transparent 55%),
                radial-gradient(ellipse at 85% 80%, rgba(121,82,179,0.05) 0%, transparent 55%),
                rgba(0, 0, 0, 0.65);
}
.section-go .feature-checklist i { color: var(--go-glow); text-shadow: 0 0 10px rgba(167,26,172,0.5); }

/* Browser mockup */
.browser-frame {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(16,16,30,0.7);
    box-shadow: 0 30px 70px rgba(0,0,0,0.45), 0 0 50px rgba(167,26,172,0.08);
    transition: transform 0.5s var(--ease-out-expo);
}
.browser-frame:hover { transform: translateY(-6px) rotateX(1deg); }
.browser-topbar {
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 10px 16px;
    display: flex;
    align-items: center;
}
.browser-dots-wrap { display: flex; gap: 6px; margin-right: 14px; }
.dot-r { width: 10px; height: 10px; border-radius: 50%; background: #ff5f56; }
.dot-y { width: 10px; height: 10px; border-radius: 50%; background: #ffbd2e; }
.dot-g { width: 10px; height: 10px; border-radius: 50%; background: #27c93f; }
.browser-url {
    flex: 1;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    font-family: monospace;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.browser-frame img { width: 100%; display: block; }

/* --- PoccaStay --- */
.section-stay {
    background: radial-gradient(ellipse at 85% 20%, rgba(13,110,253,0.07) 0%, transparent 55%),
                radial-gradient(ellipse at 15% 80%, rgba(13,202,240,0.05) 0%, transparent 55%),
                rgba(0, 0, 0, 0.65);
}
.section-stay .feature-checklist i { color: var(--stay-glow); text-shadow: 0 0 10px rgba(13,202,240,0.5); }

.kpi-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(13,202,240,0.12);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.kpi-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(13,202,240,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.kpi-value {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -2px;
    color: var(--stay-glow);
    text-shadow: 0 0 20px rgba(13,202,240,0.35);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.kpi-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.kpi-mini-label { font-weight: 800; color: var(--text-primary); font-size: 1rem; }
.kpi-mini-sub { font-size: 0.8rem; color: var(--text-tertiary); }

/* App store badges */
.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.82rem;
    transition: all 0.3s var(--ease-out-quart);
}
.app-badge:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.15);
    color: #fff;
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════
   BENEFIT & SERVICE CARDS
═══════════════════════════════════════════════════════════ */
.benefit-icon {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
    width: 56px; height: 56px;
    display: grid; place-items: center;
    background: rgba(255, 0, 252, 0.08);
    border-radius: var(--radius-sm);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
}
.service-icon {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
    width: 52px; height: 52px;
    display: grid; place-items: center;
    background: rgba(255, 0, 252, 0.08);
    border-radius: var(--radius-sm);
}
.mag-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; }
.mag-card h4 { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; }
.mag-card p { color: var(--text-secondary); line-height: 1.6; font-size: 0.95rem; }

/* ═══════════════════════════════════════════════════════════
   CASE STUDY CARDS
═══════════════════════════════════════════════════════════ */
.case-study-metric {
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.case-study-description {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
}
.case-study-quote {
    font-style: italic;
    border-left: 2px solid var(--secondary);
    padding-left: 1rem;
    margin-bottom: 1rem;
    text-align: left;
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.client-name {
    font-weight: 700;
    text-align: left;
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════════
   STEP TIMELINE
═══════════════════════════════════════════════════════════ */
.step-card {
    border-left: 2px solid var(--border-subtle);
    padding: 0 0 2.5rem 2rem;
    position: relative;
}
.step-card::before {
    content: attr(data-step);
    position: absolute;
    left: -22px; top: -6px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: grid; place-items: center;
    font-size: 1.3rem; font-weight: 900;
    border: 3px solid var(--bg-deep);
    box-shadow: 0 0 20px rgba(255,0,252,0.2);
}
.step-card h3 { font-size: 1.3rem; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; }
.step-card p { color: var(--text-secondary); }
.step-card:last-child { border-left-color: transparent; padding-bottom: 0; }

/* ═══════════════════════════════════════════════════════════
   FAQ ACCORDION
═══════════════════════════════════════════════════════════ */
.accordion-item {
    background: var(--bg-card) !important;
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius-md) !important;
    margin-bottom: 0.8rem;
    overflow: hidden;
}
.accordion-button {
    background: transparent !important;
    color: var(--text-primary) !important;
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius-md) !important;
    box-shadow: none !important;
}
.accordion-button:not(.collapsed) {
    color: var(--primary) !important;
}
.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ff00fc'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}
.accordion-body {
    color: var(--text-secondary) !important;
    padding: 0.5rem 1.5rem 1.5rem;
}

/* ═══════════════════════════════════════════════════════════
   ADMIN WELCOME BAR
═══════════════════════════════════════════════════════════ */
.admin-welcome-section {
    padding: 2rem 0;
    background: linear-gradient(-120deg, var(--primary), var(--secondary));
}
.admin-welcome-section[hidden] { display: none; }
.admin-welcome-title { color: #fff; font-size: 1.6rem; font-weight: 700; margin: 0; }
.admin-welcome-subtitle { color: rgba(255,255,255,0.85); margin: 0.25rem 0 0; }
.cta-button-light {
    display: inline-block;
    padding: 10px 20px;
    background: #fff;
    color: var(--bg-void);
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}
.cta-button-light:hover { background: var(--primary); color: #fff; transform: scale(1.03); }
.btn-dev {
    display: inline-block;
    padding: 10px 20px;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.4);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}
.btn-dev:hover { background: var(--secondary); border-color: var(--secondary); color: #fff; }
.btn-dev i, .cta-button i, .cta-button-light i { margin-right: 0.5rem; }

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.footer { padding: 4rem 0 2rem; background: #030108; }
.footer-logo { height: 35px; margin-bottom: 1.5rem; }
.footer p, .footer a { color: var(--text-secondary); text-decoration: none; transition: color 0.3s; }
.footer a:hover { color: var(--primary); }
.footer h5 { color: var(--text-primary); font-weight: 700; margin-bottom: 1rem; }
.footer .list-unstyled li { margin-bottom: 0.5rem; }
/* ─── Blocco dati societari ───
   Obbligo di legge: deve essere leggibile ma non competere col resto del
   footer. Una riga fluida di coppie etichetta/valore, separate da un filetto
   sottile, invece di una griglia di riquadri o di un muro di puntini. */
.footer-legal {
    border-top: 1px solid var(--border-subtle);
    padding-top: 1.75rem;
    margin-top: 2.5rem;
}

.footer-legal-name {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
    padding: 0.28rem 0.8rem;
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    background: var(--bg-glass);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary) !important;
    white-space: nowrap;
}
.footer-legal-name::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

.footer-legal-data {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem 1.5rem;
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.5;
}
.footer-legal-data li {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    margin-bottom: 0 !important;
}
/* filetto verticale al posto dei separatori puntati */
.footer-legal-data li + li::before {
    content: "";
    position: absolute;
    left: -0.75rem;
    top: 0.15em;
    bottom: 0.15em;
    width: 1px;
    background: var(--border-subtle);
}
.footer-legal-key {
    flex: 0 0 auto;
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}
.footer-legal-val {
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    border-top: 1px solid var(--border-subtle);
    padding-top: 1.5rem;
    margin-top: 2rem;
    font-size: 0.82rem;
}
.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 1.5rem;
    margin: 0;
}
.footer-legal-links li { margin-bottom: 0 !important; }
.footer-legal-links a { text-decoration: underline; text-underline-offset: 3px; }
.footer-copy { margin: 0; color: var(--text-tertiary) !important; }

/* Su schermi stretti le coppie vanno a capo: il filetto diventa di troppo
   e le etichette stanno meglio sopra il valore. */
@media (max-width: 767.98px) {
    .footer-legal-data {
        gap: 0.9rem 1.75rem;
        justify-content: center;
        text-align: center;
    }
    .footer-legal-data li {
        flex-direction: column;
        align-items: center;
        gap: 0.1rem;
    }
    .footer-legal-data li + li::before { display: none; }
    .footer-legal { text-align: center; }
    .footer-bottom { justify-content: center; text-align: center; }
    .footer-legal-links { justify-content: center; }
}
}

/* ═══════════════════════════════════════════════════════════
   DROPDOWN MENU
═══════════════════════════════════════════════════════════ */
.dropdown-menu {
    background: rgba(16,16,30,0.95);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0;
    margin-top: 0.75rem !important;
}
.dropdown-item {
    color: var(--text-secondary);
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s;
}
.dropdown-item:hover { color: var(--primary); background: rgba(255,0,252,0.08); }

/* ═══════════════════════════════════════════════════════════
   GENERIC CONTENT PAGES
═══════════════════════════════════════════════════════════ */
main { color: var(--text-primary); }
main p, main li { color: var(--text-secondary); }
main h1, main h2, main h3, main h4, main h5, main h6 { color: var(--text-primary); }

.page-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}
/* ═══════════════════════════════════════════════════════════
   WEBGL BACKGROUND
═══════════════════════════════════════════════════════════ */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.7; /* Regolabile in base a quanto contrasto serve */
}

/* ═══════════════════════════════════════════════════════════
   GENERIC CONTENT PAGES
═══════════════════════════════════════════════════════════ */
.glass-content-container {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    overflow: hidden;
}
.entry-content p { color: var(--text-secondary); }
.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6 {
    color: var(--text-primary);
    margin-top: 1.5rem; margin-bottom: 1rem;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .cloud { transform: scale(0.6); }
    .cloud-front-1, .cloud-front-2 { display: none; }
    .rocket-launch { zoom: 1.2; }
    .kpi-grid { grid-template-columns: 1fr; }
    .glow-orb { filter: blur(40px); transform: scale(0.6); }
    .section-bezier-wrap { opacity: 0.5; }
}

@media (max-width: 576px) {
    .cloud { transform: scale(0.4); }
    .hero-section { min-height: auto; padding: 7rem 0 4rem; }
    .glow-orb { display: none; }
    .section-bezier-wrap { display: none; }
}
/* ═══════════════════════════════════════════════════════════
   AWWWARDS LAYER — Editorial typography & micro-interactions
═══════════════════════════════════════════════════════════ */
:root {
    --font-display: 'Space Grotesk', 'Sansation', system-ui, sans-serif;
}

::selection { background: var(--primary); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--secondary), var(--primary));
    border-radius: 99px;
    border: 2px solid var(--bg-void);
}

.hero-title, .section-title, .product-title,
.mega-cta-title, .hero-stat-value,
.case-study-metric, .kpi-value {
    font-family: var(--font-display);
}

/* ─── Film grain overlay ─── */
body::after {
    content: '';
    position: fixed;
    inset: -50%;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.035;
    pointer-events: none;
    z-index: 9990;
    animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(-2%, 1%); }
    50%  { transform: translate(1%, -2%); }
    75%  { transform: translate(-1%, 2%); }
    100% { transform: translate(0, 0); }
}

/* ─── Cursore ───────────────────────────────────────────────
   Il cursore di sistema resta SEMPRE visibile: niente "cursor: none".
   L'anello e' solo un alone decorativo che segue il puntatore, quindi
   non deve mai essere l'unico indizio di dove si trova il mouse.
─────────────────────────────────────────────────────────── */
.cursor-ring { display: none; }

@media (pointer: fine) {
    .cursor-ring {
        display: block;
        position: fixed;
        top: 0; left: 0;
        width: 34px; height: 34px;
        border-radius: 50%;
        border: 1.5px solid rgba(255, 0, 252, 0.45);
        pointer-events: none;
        z-index: 10000;
        transform: translate(-50%, -50%);
        transition: width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo),
                    border-color 0.3s, background 0.3s, opacity 0.3s;
    }
    .cursor-ring.is-hover {
        width: 60px; height: 60px;
        border-color: rgba(13, 202, 240, 0.8);
        background: rgba(13, 202, 240, 0.06);
    }
}

/* ─── Scroll progress bar ─── */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 3px;
    z-index: 10001;
    pointer-events: none;
}
.scroll-progress span {
    display: block;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--primary));
    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
}

/* ─── Hero editoriale ─── */
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    padding: 8px 20px;
    margin-bottom: 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(8px);
}
.kicker-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: kicker-pulse 2s ease-in-out infinite;
}
@keyframes kicker-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-section .hero-title {
    font-size: clamp(3.2rem, 8.5vw, 7.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 0.98;
    margin-bottom: 3rem;
}
.hero-line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.08em;
    margin-bottom: -0.08em;
}
.hero-line-inner {
    display: inline-block;
    will-change: transform;
}

.stroke-text {
    color: transparent;
    -webkit-text-stroke: 2px rgba(245, 245, 247, 0.85);
}
.gradient-em, .gradient-em-cyan {
    font-style: normal;
    background: linear-gradient(110deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.gradient-em-cyan {
    background: linear-gradient(110deg, var(--accent-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-cta-row { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.hero-stat {
    background: rgba(10, 6, 20, 0.6);
    backdrop-filter: blur(12px);
    padding: 1.4rem 1.2rem;
    text-align: center;
}
.hero-stat-value {
    display: block;
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #fff 40%, var(--accent-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-stat-label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-top: 0.3rem;
}

.hero-scroll-hint {
    position: absolute;
    bottom: -3.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 70px;
    overflow: hidden;
}
.hero-scroll-hint span {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--primary));
    animation: scroll-hint 2s var(--ease-out-quart) infinite;
}
@keyframes scroll-hint {
    0% { transform: translateY(-100%); }
    60%, 100% { transform: translateY(100%); }
}

/* ─── Section titles: word reveal mask ─── */
.title-word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
}
.title-word-inner {
    display: inline-block;
    will-change: transform;
}

/* ─── Mega CTA finale ─── */
.final-cta { padding: 9rem 0; }
.mega-cta-title {
    margin: 1.5rem 0 0;
    line-height: 1;
}
.mega-link {
    display: inline-flex;
    align-items: baseline;
    gap: 0.15em;
    font-size: clamp(3.5rem, 12vw, 9.5rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    color: transparent;
    -webkit-text-stroke: 2px rgba(245, 245, 247, 0.9);
    text-decoration: none;
    transition: color 0.5s var(--ease-out-expo), -webkit-text-stroke-color 0.5s;
    position: relative;
}
.mega-link .mega-arrow {
    -webkit-text-stroke: 0;
    color: var(--primary);
    display: inline-block;
    transition: transform 0.5s var(--ease-out-expo);
}
.mega-link:hover {
    color: var(--text-primary);
    -webkit-text-stroke-color: transparent;
    background: linear-gradient(110deg, var(--accent-cyan), var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.mega-link:hover .mega-arrow {
    transform: translateX(0.2em) rotate(-45deg);
    -webkit-text-fill-color: var(--primary);
}
.mega-cta-btn-wrap { margin-top: 2.8rem; }
.mega-cta-btn { font-size: 1.05rem; padding: 16px 44px; }

/* ─── Riduzione movimento ─── */
@media (prefers-reduced-motion: reduce) {
    body::after { animation: none; }
    .hero-scroll-hint, .cursor-ring { display: none !important; }
    #webgl-canvas { display: none; }
}

/* ─── Responsive hero ─── */
@media (max-width: 991px) {
    .hero-stats { margin-top: 1rem; }
    .hero-scroll-hint { display: none; }
}
@media (max-width: 576px) {
    .hero-kicker { font-size: 0.68rem; letter-spacing: 2px; }
    .hero-stats { grid-template-columns: 1fr; }
}

/* ─── Page hero (pagine interne: Contatti, Prodotti, ecc.) ─── */
.page-hero {
    padding: 9rem 0 4rem;
    position: relative;
}
.page-hero .page-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 1.5rem;
}
.page-hero .lead {
    color: var(--text-secondary);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    max-width: 680px;
    line-height: 1.65;
}

/* Pill nav interna (ancore di pagina) */
.pill-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2.5rem;
}
.pill-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: all 0.35s var(--ease-out-expo);
}
.pill-link i { color: var(--accent-cyan); }
.pill-link:hover {
    color: var(--text-primary);
    border-color: rgba(255, 0, 252, 0.4);
    background: rgba(255, 0, 252, 0.06);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Logo app grande nelle card prodotto */
.app-logo-xl {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    margin-bottom: 1.6rem;
}
.mag-card .card-num {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-tertiary);
    display: block;
    margin-bottom: 1rem;
}

/* ═══════════════════════════════════════════════════════════
   CHARTS — Grafici animati di efficienza (pagina Prodotti)
═══════════════════════════════════════════════════════════ */
.chart-card { padding: 2.2rem; }
.chart-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}
.chart-sub {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-bottom: 1.8rem;
}

/* Barre verticali */
.vbar-row {
    display: flex;
    align-items: flex-end;
    gap: 4%;
    height: 220px;
}
.vbar {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    text-align: center;
}
.vbar-value {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.vbar-fill {
    border-radius: 8px 8px 3px 3px;
    background: linear-gradient(to top, var(--secondary), var(--primary));
    box-shadow: 0 0 18px rgba(255, 0, 252, 0.25);
    transform-origin: bottom center;
    will-change: transform;
}
.vbar.muted .vbar-fill {
    background: linear-gradient(to top, rgba(255,255,255,0.10), rgba(255,255,255,0.22));
    box-shadow: none;
}
.vbar-label {
    font-size: 0.72rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-top: 8px;
}
.chart-legend {
    display: flex;
    gap: 1.4rem;
    margin-top: 1.4rem;
    flex-wrap: wrap;
}
.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-secondary);
}
.legend-dot {
    width: 12px; height: 12px;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}
.legend-dot.muted { background: rgba(255,255,255,0.18); }
.legend-dot.cyan { background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan)); }

/* Barre orizzontali (confronto prima/dopo) */
.hbar-group { margin-bottom: 1.6rem; }
.hbar-group:last-child { margin-bottom: 0; }
.hbar-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}
.hbar-label { font-size: 0.85rem; color: var(--text-secondary); }
.hbar-value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}
.hbar-track {
    height: 14px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
}
.hbar-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    box-shadow: 0 0 14px rgba(255, 0, 252, 0.35);
    transform-origin: left center;
    will-change: transform;
}
.hbar-fill.muted {
    background: linear-gradient(90deg, rgba(255,255,255,0.14), rgba(255,255,255,0.26));
    box-shadow: none;
}
.hbar-fill.go {
    background: linear-gradient(90deg, var(--accent-violet), var(--go-glow));
    box-shadow: 0 0 14px rgba(167, 26, 172, 0.4);
}

/* Gauge circolare */
.gauge-wrap {
    position: relative;
    width: 230px;
    height: 230px;
    margin: 0 auto;
}
.gauge-wrap svg { transform: rotate(-90deg); }
.gauge-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 14;
}
.gauge-ring {
    fill: none;
    stroke: url(#gauge-grad);
    stroke-width: 14;
    stroke-linecap: round;
    filter: drop-shadow(0 0 8px rgba(13, 202, 240, 0.5));
    will-change: stroke-dashoffset;
}
.gauge-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.gauge-value {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--stay-glow);
    text-shadow: 0 0 25px rgba(13, 202, 240, 0.4);
    line-height: 1;
}
.gauge-label {
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-top: 8px;
    max-width: 140px;
}

/* Layout righe risultati */
.result-row { margin-top: 5rem; }
.result-row:first-of-type { margin-top: 1rem; }
.result-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
}
.result-row .hero-stats { margin-top: 1.8rem; }

@media (max-width: 576px) {
    .vbar-row { height: 160px; }
    .vbar-value { font-size: 0.65rem; }
    .gauge-wrap { width: 190px; height: 190px; }
}
