/* --- OPTLYX PLAYGROUND THEME --- */
:root {
    --primary: #4f46e5; --primary-hover: #4338ca;
    --accent: #f97316;
    --text-main: #0f172a; --text-muted: #64748b;
    --bg-page: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.85);
    --border: #e2e8f0;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter Tight', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-body); background: var(--bg-page); color: var(--text-main); min-height: 100vh; }

/* REUSABLE BACKGROUND */
.accountant-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; background: #f8fafc; overflow: hidden; }
.grid-pattern { position: absolute; width: 100%; height: 100%; background-image: linear-gradient(rgba(79, 70, 229, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(79, 70, 229, 0.05) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(circle at center, black 40%, transparent 90%); }
.floating-symbol { position: absolute; font-family: var(--font-display); font-weight: 700; color: var(--primary); opacity: 0.08; user-select: none; animation: floatSymbol 20s infinite linear; }
.s1 { top: 15%; left: 10%; font-size: 8rem; animation-duration: 25s; }
.s2 { top: 60%; left: 5%; font-size: 10rem; color: var(--accent); }
.s3 { top: 20%; right: 10%; font-size: 6rem; }
.s4 { bottom: 10%; right: 20%; font-size: 9rem; }
.s5 { top: 50%; left: 50%; font-size: 12rem; transform: translate(-50%, -50%); opacity: 0.03; }
@keyframes floatSymbol { 0% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-40px) rotate(10deg); } 100% { transform: translateY(0) rotate(0deg); } }

/* --- NAVBAR "CRYSTAL CLEAR" --- */
.glass-navbar {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%; /* Leggermente più larga per accomodare il bottone */
    max-width: 1100px;
    height: 72px; /* Un po' più alta per il logo grande */
    z-index: 100;
    
    /* TRASPARENZA ESTREMA */
    background: rgba(255, 255, 255, 0.35); /* Molto trasparente */
    backdrop-filter: blur(16px); /* Blur sufficiente per leggerezza */
    -webkit-backdrop-filter: blur(16px);
    
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 100px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.03); /* Ombra leggerissima */
    
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-content {
    width: 100%;
    padding: 0 1.5rem 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO GRANDE */
.nav-logo-img {
    height: 42px; /* Ingrandito significativamente */
    width: auto;
    display: block;
    cursor: pointer;
    filter: drop-shadow(0 2px 4px rgba(255,255,255,0.5)); /* Per staccarlo dallo sfondo trasparente */
}

/* PARTE DESTRA (Bottone + Profilo) */
.nav-right-side {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

/* BOTTONE PRENOTA CALL */
.btn-book-call {
    text-decoration: none;
    background: var(--text-main); /* Nero/Blu scuro elegante */
    color: white;
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.btn-book-call:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(79, 70, 229, 0.25);
}

.btn-book-call i {
    width: 16px; height: 16px;
}

.separator-vertical {
    width: 1px;
    height: 24px;
    background: rgba(0,0,0,0.1);
}

.user-avatar { width: 38px; height: 38px; background: linear-gradient(135deg, var(--text-main), #334155); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.95rem; border: 2px solid rgba(255,255,255,0.8); box-shadow: 0 2px 5px rgba(0,0,0,0.1); }

/* LAYOUT PAGE */
.hub-container { padding-top: 160px; width: 90%; max-width: 1200px; margin: 0 auto; padding-bottom: 4rem; }

/* HEADER & TITLES */
.hub-header { text-align: center; margin-bottom: 4rem; }
.hub-title { font-family: var(--font-display); font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 1rem; color: var(--text-main); }
.hub-subtitle { color: var(--text-muted); font-size: 1.2rem; max-width: 600px; margin: 0 auto; }

/* SOPHRON GRADIENT */
.sophron-gradient {
    background: linear-gradient(90deg, #4f46e5 0%, #a855f7 25%, #ec4899 50%, #f97316 75%, #4f46e5 100%);
    background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: shineFlow 3s linear infinite; display: inline-block;
}
@keyframes shineFlow { to { background-position: 200% center; } }

/* GRID SYSTEM */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

/* CARDS DESIGN */
.app-card {
    background: rgba(255, 255, 255, 0.85); /* Fallback */
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex; flex-direction: column;
    min-height: 320px;
    backdrop-filter: blur(10px);
    overflow: hidden;
    --mouse-x: 0px;
    --mouse-y: 0px;
}
/* L'effetto luce che segue il mouse */
.app-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    padding: 2px; /* Spessore bordo luce */
    background: radial-gradient(
        800px circle at var(--mouse-x) var(--mouse-y),
        rgba(79, 70, 229, 0.4),
        transparent 40%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}
/* Luce di sfondo soffusa */
.app-card::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(
        600px circle at var(--mouse-x) var(--mouse-y),
        rgba(79, 70, 229, 0.05),
        transparent 40%
    );
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s;
}

.app-card:hover::before,
.app-card:hover::after {
    opacity: 1;
}
.app-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.1); border-color: #cbd5e1; background: #fff; }

.app-icon-container { width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; transition: 0.3s; }
.app-icon-container i { width: 28px; height: 28px; }

.icon-renamer { background: #e0e7ff; color: var(--primary); }
.active-card:hover .icon-renamer { background: var(--primary); color: white; transform: rotate(-5deg) scale(1.1); }
.icon-extractor { background: #ffedd5; color: var(--accent); }
.app-card:hover .icon-extractor { background: var(--accent); color: white; }
.icon-chat { background: #fdf4ff; color: #d946ef; } /* Base viola chiaro */
.app-card:hover .icon-chat { 
    background: #d946ef; /* Diventa fucsia acceso */
    color: white; 
    transform: rotate(10deg) scale(1.1); /* Piccola animazione */
}
.app-info { flex-grow: 1; }
.app-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.app-card h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--text-main); }
.app-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; }

.status-pill { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; padding: 4px 10px; border-radius: 100px; letter-spacing: 0.05em; }
.live { background: #dcfce7; color: #166534; }
.beta { background: #ffedd5; color: #9a3412; }
.coming { background: #f1f5f9; color: #64748b; }

.app-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }
.usage-stats { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; font-weight: 500; }
.usage-stats i { width: 14px; height: 14px; }

.btn-launch { background: var(--text-main); color: white; border: none; padding: 10px 20px; border-radius: 10px; font-weight: 600; cursor: pointer; transition: 0.3s; display: flex; align-items: center; gap: 6px; }
.btn-launch:hover { background: var(--primary); gap: 10px; }
.btn-launch.secondary { background: white; border: 1px solid var(--border); color: var(--text-main); }
.btn-launch.secondary:hover { border-color: var(--text-main); background: #f8fafc; }
.btn-launch.disabled { background: #f1f5f9; color: #94a3b8; cursor: not-allowed; }

.add-new-card { border-style: dashed; border-width: 2px; background: rgba(255,255,255,0.3); align-items: center; justify-content: center; text-align: center; }
.add-new-card:hover { border-color: var(--primary); background: rgba(79, 70, 229, 0.05); transform: translateY(-4px); }
.center-content i { width: 40px; height: 40px; color: var(--text-muted); margin-bottom: 1rem; }
.center-content h3 { font-size: 1.2rem; }

.hub-footer { text-align: center; padding-top: 2rem; color: var(--text-muted); font-size: 0.85rem; opacity: 0.7; }

@media (max-width: 768px) {
    .hub-title { font-size: 2.5rem; }
    .nav-content { justify-content: space-between; padding: 0 1rem; }
    .btn-book-call span { display: none; } /* Nasconde testo su mobile */
    .btn-book-call { padding: 10px; border-radius: 50%; }
    .separator-vertical { display: none; }
    .glass-navbar { top: 15px; width: 95%; height: 60px; }
    .nav-logo-img { height: 32px; }
}
/* --- NAVBAR AGGIORNATA --- */

.glass-navbar {
    /* (Manteniamo le impostazioni precedenti di posizione/sfondo) */
    position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
    width: 95%; max-width: 1200px; height: 76px; z-index: 1000;
    
    background: rgba(255, 255, 255, 0.75); 
    backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    border-radius: 100px;
    
    /* Layout Flexbox Distribuito */
    display: flex; align-items: center; justify-content: space-between; 
    padding: 0 1.5rem;
}

/* 1. LINK CENTRALI */
.nav-links-center {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: absolute; /* Trucco per centrarli perfettamente */
    left: 50%;
    transform: translateX(-50%);
}

.nav-item {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.nav-item:hover {
    color: var(--text-main);
}

/* Sottolineatura animata al passaggio del mouse */
.nav-item::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0%; height: 2px;
    background: var(--primary); transition: width 0.3s ease; border-radius: 2px;
}
.nav-item:hover::after { width: 100%; }


/* 2. PARTE DESTRA (Social + CTA) */
.nav-right-side {
    display: flex; align-items: center; gap: 12px;
}

/* Icona LinkedIn */
.social-btn {
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px;
    border-radius: 50%;
    color: #0077b5; /* LinkedIn Blue */
    background: rgba(0, 119, 181, 0.05); /* Sfondo blu chiarissimo */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid transparent;
}

.social-btn:hover {
    background: #0077b5;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

.social-btn i { width: 20px; height: 20px; }

/* Separatore Verticale */
.nav-sep {
    width: 1px; height: 24px;
    background: rgba(0,0,0,0.1);
    margin: 0 4px;
}

/* CTA Consulenza (Stile Glowing mantenuto) */
.btn-book-call {
    text-decoration: none; 
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 12px 24px; 
    border-radius: 100px; 
    font-size: 0.95rem; font-weight: 600;
    display: flex; align-items: center; gap: 10px; 
    transition: all 0.4s;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.2);
}
.btn-book-call:hover {
    background: linear-gradient(135deg, var(--primary), #4338ca);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px var(--primary-glow);
}

/* MOBILE RESPONSIVE */
@media (max-width: 900px) {
    /* Nascondi i link centrali su schermi piccoli */
    .nav-links-center { display: none; }
    
    /* Ottimizza spazio su mobile */
    .glass-navbar { padding: 0 1rem; width: 95%; }
    .btn-book-call span { display: none; } /* Solo icona */
    .btn-book-call { padding: 12px; border-radius: 50%; width: 44px; height: 44px; justify-content: center; }
    .btn-book-call i { width: 20px; height: 20px; margin: 0; }
    .nav-sep { display: none; }
}
/* --- TOAST NOTIFICATION --- */
#toast-container {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
    z-index: 9999; display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}

.toast {
    background: rgba(15, 23, 42, 0.9); /* Dark theme elegant */
    color: white;
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 0.9rem; font-weight: 500;
    display: flex; align-items: center; gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    
    /* Animazione Entrata */
    animation: toastPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0; transform: translateY(20px) scale(0.9);
}

.toast i { color: #4ade80; width: 18px; height: 18px; } /* Icona verde successo */

@keyframes toastPop {
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastFadeOut {
    to { opacity: 0; transform: translateY(-20px) scale(0.9); }
}
/* --- STATUS PULSE --- */
.status-indicator {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.75rem; font-weight: 700; color: #10b981;
    background: rgba(16, 185, 129, 0.1); padding: 6px 12px;
    border-radius: 100px; border: 1px solid rgba(16, 185, 129, 0.2);
}

.pulse-dot {
    width: 8px; height: 8px; background: #10b981; border-radius: 50%;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
    animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@media (max-width: 900px) {
    .status-indicator span { display: none; } /* Solo pallino su mobile */
}
/* --- SOPHRON FOOTER STYLE --- */
.sophron-footer {
    width: 100%;
    margin-top: 4rem;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    background: rgba(255, 255, 255, 0.4); /* Vetro leggerissimo */
    backdrop-filter: blur(10px);
    padding: 3rem 0 1.5rem 0;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1100px;
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
}

/* BRAND COLUMN */
.footer-brand {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
}

.footer-logo-img {
    height: 28px;
    opacity: 0.9;
    margin-bottom: 1rem;
    filter: grayscale(100%); /* Elegante in scala di grigi */
    transition: 0.3s;
}
.footer-logo-img:hover { filter: grayscale(0%); opacity: 1; }

.footer-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* P.IVA BADGE */
.vat-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.6);
    border: 1px solid #cbd5e1;
    padding: 6px 12px;
    border-radius: 8px;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.85rem;
    color: var(--text-main);
}
.vat-label {
    font-weight: 700;
    color: var(--text-muted);
    margin-right: 8px;
    font-size: 0.75rem;
    text-transform: uppercase;
}
.vat-number { font-weight: 600; letter-spacing: 0.05em; }

/* LINKS COLUMNS */
.footer-links {
    display: flex;
    gap: 4rem;
}

.link-column h5 {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-main);
    margin-bottom: 1.2rem;
    letter-spacing: 0.05em;
}

.link-column a {
    display: block;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    transition: all 0.2s;
}

.link-column a:hover {
    color: var(--primary);
    transform: translateX(3px);
}

/* BOTTOM BAR */
.footer-bottom {
    max-width: 1100px;
    width: 90%;
    margin: 2.5rem auto 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.social-tiny {
    display: flex; gap: 1rem;
}
.social-tiny a {
    color: var(--text-muted);
    transition: 0.3s;
}
.social-tiny a:hover { color: var(--primary); transform: translateY(-2px); }
.social-tiny i { width: 18px; height: 18px; }

/* MOBILE */
@media (max-width: 768px) {
    .footer-container { flex-direction: column; gap: 2rem; }
    .footer-links { flex-wrap: wrap; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
/* --- METRON CARD STYLES --- */

/* Contenitore Icona (Bianco pulito per far risaltare il logo) */
.icon-metron { 
    background: #ffffff; 
    border: 1px solid #e2e8f0;
    padding: 0; /* Rimuovi padding per gestire l'immagine */
    overflow: hidden;
    position: relative;
}

/* Immagine Logo Metron */
.metron-img {
    width: 60%; /* Dimensione logo interna */
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Animazione Hover sulla card */
.app-card:hover .metron-img {
    transform: scale(1.15) rotate(-3deg);
}

/* Tagline colorata */
.tagline-accent {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary); /* O usa un colore oro/scuro specifico */
    margin-bottom: 6px;
    display: block;
}

/* Badge Premium */
.status-pill.premium {
    background: linear-gradient(135deg, #0f172a, #334155);
    color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Glow Dorato Sottile per Metron */
.card-glow-gold {
    position: absolute; top: -50px; right: -50px;
    width: 150px; height: 150px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, transparent 70%);
    filter: blur(20px);
    z-index: 0;
    transition: 0.5s;
    opacity: 0.5;
}
.app-card:hover .card-glow-gold {
    opacity: 0.8; transform: scale(1.2);
}
/* =========================================
   AGGIUNTA: SPLASH SCREEN & ENTRY ANIMATIONS
   ========================================= */

/* Impedisci lo scroll durante il caricamento */
body.loading-state { overflow: hidden; }

/* CONTENITORE SPLASH SCREEN */
#app-launch-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #ffffff; /* Sfondo bianco pulito */
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.6s;
}

/* Quando la classe fade-out viene aggiunta dal JS, nascondi tutto */
#app-launch-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.launch-content { text-align: center; }

/* LOGO PULSANTE */
.launch-logo {
    width: 64px; height: 64px; margin-bottom: 2rem;
    animation: pulseLogo 1.5s infinite ease-in-out;
}
@keyframes pulseLogo {
    0% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(79, 70, 229, 0)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 15px rgba(79, 70, 229, 0.3)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(79, 70, 229, 0)); }
}

/* BARRA DI CARICAMENTO */
.launch-bar-container {
    width: 200px; height: 4px; background: #f1f5f9; border-radius: 4px; overflow: hidden; margin: 0 auto 1rem auto;
}
.launch-bar-fill {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
    animation: fillBar 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes fillBar { 0% { width: 0%; } 100% { width: 100%; } }

.launch-text {
    font-family: monospace; font-size: 0.8rem; color: var(--text-muted);
    opacity: 0; animation: fadeInText 0.5s 0.2s forwards;
}
@keyframes fadeInText { to { opacity: 1; } }


/* ANIMAZIONE A CASCATA (STAGGERED ENTRY) */
/* Stato iniziale: nascosto e spostato in basso */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Stato finale: visibile e in posizione */
.app-loaded .stagger-item {
    opacity: 1;
    transform: translateY(0);
}

/* RITARDI PER L'EFFETTO CASCATA */
.app-loaded .glass-navbar { transition-delay: 0s; }
.app-loaded .hub-header { transition-delay: 0.1s; }
.app-loaded .apps-grid .app-card:nth-child(1) { transition-delay: 0.2s; }
.app-loaded .apps-grid .app-card:nth-child(2) { transition-delay: 0.3s; }
.app-loaded .apps-grid .app-card:nth-child(3) { transition-delay: 0.4s; }
.app-loaded .apps-grid .app-card:nth-child(4) { transition-delay: 0.5s; }
.app-loaded .apps-grid .app-card:nth-child(5) { transition-delay: 0.6s; }
.app-loaded .sophron-footer { transition-delay: 0.7s; }
/* =========================================
   FIX CENTRATURA NAVBAR
   ========================================= */

/* Quando la navbar è nascosta (inizio animazione) */
.glass-navbar.stagger-item {
    /* Combiniamo la centratura (X) con lo spostamento in basso (Y) */
    transform: translate(-50%, -20px); 
}

/* Quando la navbar è visibile (fine animazione) */
.app-loaded .glass-navbar.stagger-item {
    /* Manteniamo la centratura (X) e azzeriamo lo spostamento (Y) */
    transform: translate(-50%, 0);
}
/* MAGIC CURSOR */
.cursor-glow {
    position: fixed;
    top: 0; left: 0;
    width: 400px; height: 400px; /* Grande raggio di luce */
    background: radial-gradient(circle, rgba(79, 70, 229, 0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none; /* Il click passa attraverso */
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: screen; /* Fusione luce */
    transition: width 0.3s, height 0.3s, background 0.3s;
}

/* Quando si clicca, la luce si intensifica */
.cursor-glow.active {
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.25), transparent 70%); /* Diventa arancione/caldo */
}

/* Nascondi su mobile (non serve il touch) */
@media (max-width: 768px) {
    .cursor-glow { display: none; }
}
/* LIVE ACTIVITY FEED */
.live-activity-feed {
    position: fixed; bottom: 30px; right: 30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    padding: 12px 20px; border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.1);
    display: flex; align-items: center; gap: 12px;
    z-index: 990; font-size: 0.85rem;
    transform: translateY(150%); /* Nascosto inizialmente */
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 300px;
}
.live-activity-feed.active { transform: translateY(0); }

.feed-icon {
    width: 32px; height: 32px; background: #eff6ff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: var(--primary);
}
.feed-content { display: flex; flex-direction: column; }
.feed-user { font-weight: 700; color: var(--text-main); font-size: 0.8rem; }
.feed-action { color: var(--text-muted); font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- OPTLYX NEURAL GRID (Stripe-like Integration) --- */

.neural-section {
    padding: 6rem 0;
    margin-top: 2rem;
    position: relative;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(248, 250, 252, 0.8));
}

.neural-container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
}

/* --- Lato Testo --- */
.neural-text-side { flex: 1; max-width: 380px; }

.badge-tech {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(79, 70, 229, 0.08); color: var(--primary);
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase; 
    padding: 6px 12px; border-radius: 100px; margin-bottom: 1.5rem; letter-spacing: 0.05em;
}

.neural-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    color: var(--text-main);
}

.neural-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

/* Info Box Dinamico */
.info-box-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex; gap: 16px; align-items: flex-start;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.05);
}

.info-box-glass.active {
    background: white;
    border-color: var(--primary);
    transform: translateX(10px);
    box-shadow: 0 15px 40px -5px rgba(79, 70, 229, 0.15);
}

.info-icon-wrapper {
    width: 44px; height: 44px;
    background: #f1f5f9; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); flex-shrink: 0;
    transition: 0.3s;
}

.info-box-glass.active .info-icon-wrapper {
    background: var(--primary); color: white;
}

#info-title { font-size: 1rem; font-weight: 700; color: var(--text-main); margin-bottom: 4px; }
#info-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; margin: 0; }


/* --- GRID WRAPPER --- */
.neural-grid-wrapper {
    flex: 1.6;
    height: 460px; /* Altezza fissa per contenere i nodi */
    position: relative;
    display: flex; justify-content: space-between;
}

.neural-col {
    display: flex; flex-direction: column; justify-content: space-between;
    height: 100%; padding: 10px 0;
    z-index: 2; /* Sopra le linee */
}
.center-col { justify-content: space-between; align-items: center; }

/* --- I NODI (Le Card Piccole) --- */
.neural-node {
    width: 150px; height: 100px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    position: relative;
}

.neural-node i { width: 24px; height: 24px; transition: 0.3s; opacity: 0.8; }
.neural-node span { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }

/* Nodo Centrale Speciale */
.center-node {
    width: 140px; height: 140px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 50%; /* Rotondo per distinguersi */
    z-index: 5;
    box-shadow: 0 20px 50px rgba(79, 70, 229, 0.15);
}
.center-node img { width: 50px; height: auto; z-index: 2; }
.core-label { font-size: 0.7rem !important; letter-spacing: 0.15em; color: var(--primary) !important; margin-top: 5px; font-weight: 800 !important; }

/* Glow dietro il core */
.core-glow {
    position: absolute; width: 100%; height: 100%; border-radius: 50%;
    background: radial-gradient(circle, rgba(79,70,229,0.2) 0%, transparent 70%);
    animation: pulseCore 3s infinite; z-index: 1;
}
@keyframes pulseCore { 0% { transform: scale(0.8); opacity: 0.5; } 50% { transform: scale(1.2); opacity: 0.8; } 100% { transform: scale(0.8); opacity: 0.5; } }


/* --- LOGICA DIMMING (Effetto Stripe) --- */
/* 1. Quando entri nella griglia, tutto diventa semi-trasparente */
.neural-grid-wrapper:hover .neural-node:not(:hover):not(.center-node) {
    opacity: 0.3;
    transform: scale(0.95);
    filter: grayscale(100%);
}

/* 2. Il nodo attivo esplode */
.neural-node:hover {
    background: white;
    border-color: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 15px 40px -10px rgba(79, 70, 229, 0.3);
    opacity: 1 !important;
    filter: grayscale(0%) !important;
    z-index: 10;
}

.neural-node:hover i { transform: scale(1.2); opacity: 1; }
.neural-node:hover span { color: var(--text-main); }

/* --- LINEE SVG --- */
.connections-layer {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
}
.connection-line {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2px;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000; /* Nascosta */
    opacity: 0.15;
    transition: stroke-dashoffset 0.8s ease-in-out, opacity 0.3s;
}

/* MOBILE */
@media (max-width: 960px) {
    .neural-container { flex-direction: column; padding: 2rem 1rem; }
    .neural-grid-wrapper { flex-direction: column; height: auto; gap: 1.5rem; width: 100%; }
    .neural-col { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 12px; width: 100%; }
    .center-col { order: -1; margin-bottom: 1rem; } /* Core in cima su mobile */
    .connections-layer { display: none; } /* No linee su mobile */
    .neural-node { width: 100px; height: 90px; }
    .neural-node span { font-size: 0.7rem; }
    .neural-text-side { width: 100%; text-align: center; }
    .badge-tech { margin: 0 auto 1rem auto; }
}
/* --- OPTLYX X-RAY LENS SECTION --- */

.xray-section {
    padding: 4rem 0 8rem 0;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at center, rgba(255,255,255,0.8) 0%, transparent 70%);
}

.xray-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.xray-header { margin-bottom: 3rem; }

/* STAGE (Contenitore fogli) */
.xray-stage {
    position: relative;
    width: 500px;
    height: 600px; /* Formato A4 circa */
    margin: 0 auto;
    cursor: none; /* Nascondiamo il mouse standard */
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* LAYERS COMUNI */
.doc-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex; justify-content: center; align-items: center;
    pointer-events: none; /* Lascia passare eventi */
}

/* FOGLIO DI CARTA (Base CSS) */
.paper-sheet {
    width: 100%; height: 100%;
    background: #fff;
    box-shadow: 0 20px 60px -10px rgba(0,0,0,0.2);
    border-radius: 4px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    text-align: left;
    transition: transform 0.1s;
}

/* --- STILE FOGLIO ORIGINALE (Caos) --- */
.original-layer .paper-sheet {
    background: #fdfbf7; /* Carta leggermente ingiallita */
    color: #334155;
    font-family: 'Courier New', monospace; /* Stile macchina da scrivere */
}

.paper-logo { width: 50px; height: 50px; background: #0f172a; border-radius: 50%; margin-bottom: 20px; opacity: 0.8; }
.paper-title { font-size: 1.5rem; font-weight: 900; margin-bottom: 40px; letter-spacing: -1px; }

.paper-row { display: flex; justify-content: space-between; margin-bottom: 20px; border-bottom: 1px dashed #cbd5e1; padding-bottom: 5px; }
.blur-text { filter: blur(0.5px); opacity: 0.8; } /* Leggermente sfocato per realismo */

.paper-total { margin-top: 100px; text-align: right; border-top: 3px solid #0f172a; padding-top: 10px; }
.total-amount { display: block; font-size: 2rem; font-weight: 800; }

/* Macchia di caffè (Dettaglio Amazing) */
.coffee-stain {
    position: absolute; bottom: 80px; left: 40px;
    width: 100px; height: 100px;
    border: 8px solid rgba(139, 69, 19, 0.1);
    border-radius: 50%;
    filter: blur(4px);
    transform: scale(1.2) rotate(30deg);
}


/* --- STILE FOGLIO AI (Visione Cyber) --- */
.ai-layer {
    z-index: 10;
    /* MASCHERA MAGICA: Inizialmente nasconde tutto */
    /* Verrà aggiornata dinamicamente via JS */
    mask-image: radial-gradient(
        circle 120px at var(--mouse-x, 50%) var(--mouse-y, 50%),
        black 0%,
        transparent 100%
    );
    -webkit-mask-image: radial-gradient(
        circle 120px at var(--mouse-x, 50%) var(--mouse-y, 50%),
        black 0%,
        transparent 100%
    );
}

.ai-layer .paper-sheet.dark-mode {
    background: #0f172a; /* Sfondo scuro tech */
    box-shadow: none; /* No ombra doppia */
    border: 1px solid var(--primary);
}

/* Elementi AI */
.ai-box {
    position: absolute;
    border: 2px solid var(--primary);
    background: rgba(79, 70, 229, 0.15);
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.4);
}
.ai-tag {
    position: absolute; top: -10px; right: -2px;
    background: var(--primary); color: white;
    font-size: 0.6rem; font-weight: 700; padding: 2px 6px;
    border-radius: 2px;
}
.json-snippet {
    font-family: monospace; color: #10b981; font-size: 0.8rem;
    position: absolute; bottom: 5px; right: 5px;
}
.ai-line {
    position: absolute; height: 14px; background: rgba(255,255,255,0.1); border-radius: 2px;
    left: 40px;
}

/* --- LENS CURSOR (L'anello che segue il mouse) --- */
.lens-cursor {
    position: absolute;
    top: 0; left: 0;
    width: 240px; height: 240px; /* Doppio del raggio della maschera */
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    pointer-events: none; /* Click-through */
    transform: translate(-50%, -50%); /* Centra sul cursore */
    z-index: 20;
    box-shadow: 
        0 0 0 4px rgba(79, 70, 229, 0.2),
        inset 0 0 20px rgba(79, 70, 229, 0.3);
    
    /* Muoviamo il cursore via CSS var per fluidità */
    left: var(--mouse-x, 50%);
    top: var(--mouse-y, 50%);
    
    opacity: 0; /* Nascosto se fuori */
    transition: opacity 0.2s;
}

/* Label che ruota sull'anello */
.lens-label {
    position: absolute; bottom: -25px; left: 50%; transform: translateX(-50%);
    background: black; color: white; padding: 4px 10px; border-radius: 10px;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
}

/* Mostra cursore quando sei sopra */
.xray-stage:hover .lens-cursor { opacity: 1; }

/* Mobile fallback */
@media (max-width: 768px) {
    .xray-stage { width: 300px; height: 420px; }
    .lens-cursor { width: 160px; height: 160px; }
    .ai-layer { 
        mask-image: radial-gradient(circle 80px at var(--mouse-x) var(--mouse-y), black 0%, transparent 100%);
        -webkit-mask-image: radial-gradient(circle 80px at var(--mouse-x) var(--mouse-y), black 0%, transparent 100%);
    }
}
/* --- FIX X-RAY ALIGNMENT --- */

/* Stile base per il foglio scuro AI */
.ai-layer .paper-sheet.dark-mode {
    background: #0f172a;
    border: 1px solid var(--primary);
    color: transparent; /* Nasconde il testo originale se presente */
    display: flex; flex-direction: column;
}

/* Box generico di scansione (bordi colorati) */
.ai-scan-box {
    border: 1px dashed var(--primary);
    background: rgba(79, 70, 229, 0.1);
    position: relative;
    display: flex; align-items: center; justify-content: center;
}

.ai-label {
    background: var(--primary); color: white;
    font-family: monospace; font-size: 0.6rem;
    padding: 2px 4px; position: absolute; top: -10px; left: -1px;
}
.ai-label.success { background: #10b981; }

/* Righe speculari */
.ai-row-scan {
    border-bottom: 1px solid rgba(79, 70, 229, 0.3);
    color: #cbd5e1; /* Testo visibile stile terminale */
    font-family: 'Courier New', monospace;
    align-items: center;
}

.ai-data-text {
    color: #a5b4fc; font-size: 0.8rem; letter-spacing: 1px;
}

/* Totale speculare */
.ai-total-scan {
    border-top: none; padding-top: 10px;
    margin-top: 100px; /* Deve matchare il margine originale */
    position: relative;
}

.ai-scan-box.full-width {
    width: 100%; height: 60px;
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

/* Fix per assicurare che il JSON sia visibile */
.json-snippet {
    position: absolute; bottom: 5px; right: 10px;
    font-size: 0.7rem; color: #10b981;
}
/* FIX ALLINEAMENTO LENS: Sposta giù il body e il totale */
.ai-layer .paper-body {
    margin-top: 25px; /* Spinge giù le righe (prima era 0 o default) */
}

.ai-layer .paper-total {
    margin-top: 115px; /* Aumentato leggermente rispetto all'originale per compensare lo spostamento sopra */
}
/* Stili per le nuove icone */
.icon-chronos { background: #ecfdf5; color: #059669; } /* Verde Smeraldo (Soldi/Crescita) */
.app-card:hover .icon-chronos { background: #059669; color: white; transform: scale(1.1); }

.icon-nexus { background: #f0f9ff; color: #0284c7; } /* Blu Ocean (Banca/Flow) */
.app-card:hover .icon-nexus { background: #0284c7; color: white; transform: rotate(180deg); } /* Animazione rotazione carina per lo scambio */

.icon-sentinel { background: #fef2f2; color: #dc2626; } /* Rosso (Alert/Security) */
.app-card:hover .icon-sentinel { background: #dc2626; color: white; transform: scale(1.1); }
/* RITARDI PER L'EFFETTO CASCATA */
.app-loaded .glass-navbar { transition-delay: 0s; }
.app-loaded .hub-header { transition-delay: 0.1s; }

/* Ritardi sequenziali per le Card nella griglia */
.app-loaded .apps-grid .app-card:nth-child(1) { transition-delay: 0.2s; }
.app-loaded .apps-grid .app-card:nth-child(2) { transition-delay: 0.3s; }
.app-loaded .apps-grid .app-card:nth-child(3) { transition-delay: 0.4s; }
.app-loaded .apps-grid .app-card:nth-child(4) { transition-delay: 0.5s; }
.app-loaded .apps-grid .app-card:nth-child(5) { transition-delay: 0.6s; }
.app-loaded .apps-grid .app-card:nth-child(6) { transition-delay: 0.7s; } /* Nexus */
.app-loaded .apps-grid .app-card:nth-child(7) { transition-delay: 0.8s; } /* Chronos */
.app-loaded .apps-grid .app-card:nth-child(8) { transition-delay: 0.9s; } /* Sentinel */
.app-loaded .apps-grid .app-card:nth-child(9) { transition-delay: 1.0s; }
.app-loaded .apps-grid .app-card:nth-child(10) { transition-delay: 1.1s; }

/* Il footer appare sempre per ultimo */
.app-loaded .sophron-footer { transition-delay: 1.2s; }
/* --- MATRIX OVERRIDE SYSTEM (NO SHAKE EDITION) --- */

/* 1. Classe Attivatrice */
body.matrix-mode {
    background-color: #000 !important;
    background-image: none !important;
    overflow-x: hidden;
    cursor: crosshair; /* Cursore stile puntamento */
}

/* Nasconde elementi decorativi originali */
body.matrix-mode .accountant-bg,
body.matrix-mode .grid-pattern,
body.matrix-mode .sophron-gradient,
body.matrix-mode .floating-symbol {
    opacity: 0 !important;
    animation: none !important;
    display: none !important;
}

/* Stile Terminale Globale */
body.matrix-mode * {
    color: #00ff41 !important; /* Matrix Green */
    font-family: 'Courier New', monospace !important;
    border-color: #003b00 !important;
    box-shadow: none !important;
    background: transparent !important;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.4);
}

/* Eccezione per le Card: Sfondo semitrasparente per leggerezza */
body.matrix-mode .app-card, 
body.matrix-mode .glass-navbar,
body.matrix-mode .sophron-footer,
body.matrix-mode .option-card,
body.matrix-mode .tycoon-window {
    background: rgba(0, 10, 0, 0.95) !important;
    border: 1px solid #00ff41 !important;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.15) !important;
}

/* Immagini come "Fantasmigiorni" verdi */
body.matrix-mode img {
    filter: grayscale(100%) brightness(0.6) sepia(100%) hue-rotate(50deg) saturate(500%) drop-shadow(0 0 5px #00ff41);
}

/* CRT MONITOR OVERLAY (Rimane, perché fa scena) */
#matrix-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 99999; pointer-events: none;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    opacity: 0; transition: opacity 0.5s;
}
body.matrix-mode #matrix-overlay { opacity: 1; }

/* CANVAS DI SFONDO */
#matrix-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; opacity: 0; transition: opacity 1s;
}
body.matrix-mode #matrix-canvas { opacity: 1; }

/* Stile speciale per testo in fase di "decodifica" */
.hacker-scramble {
    background: #00ff41 !important;
    color: #000 !important;
}
/* ROLE SELECTOR */
.role-selector {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.role-pill {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.role-pill i { width: 16px; height: 16px; opacity: 0.7; }

.role-pill:hover {
    background: white;
    transform: translateY(-2px);
    color: var(--text-main);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Stato Attivo */
.role-pill.active {
    background: var(--text-main); /* O un gradiente se preferisci */
    color: white;
    border-color: var(--text-main);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}
.role-pill.active i { opacity: 1; }

/* Animazione Filtraggio Card */
.app-card {
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: center top;
}

/* Classe per nascondere le card non pertinenti */
.app-card.hidden-card {
    display: none; /* O usa opacity/transform per animazioni più complesse */
    opacity: 0;
    transform: scale(0.9);
}

/* Matrix Mode Override (per mantenere coerenza con l'easter egg) */
body.matrix-mode .role-pill {
    background: black !important;
    border-color: #00ff41 !important;
    color: #00ff41 !important;
}
body.matrix-mode .role-pill.active {
    background: #003b00 !important;
    box-shadow: 0 0 10px #00ff41 !important;
}
/* FLOWNEXT STYLE */
.icon-flownext { 
    background: #ecfeff; /* Ciano molto chiaro */
    border: 1px solid #cffafe;
    position: relative;
    overflow: hidden;
}

.flownext-img {
    width: 60%; 
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Animazione Hover specifica per FlowNext (sensazione di velocità) */
.app-card:hover .flownext-img {
    transform: translateX(5px) scale(1.1); /* Si muove verso destra come un camion */
}

.app-card[data-category="logistics"]:hover {
    border-color: #06b6d4; /* Ciano scuro */
}
/* --- ULTIMATE FOOTER STYLES --- */

/* Reset e Base */
.sophron-footer {
    background: #ffffff; /* Sfondo pulito */
    border-top: 1px solid #e2e8f0;
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    flex-wrap: wrap;
}

/* Colonna Brand */
.footer-brand {
    max-width: 320px;
}
.footer-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Social Buttons */
.footer-social-row {
    display: flex; gap: 10px;
}
.f-social-btn {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: #f1f5f9;
    color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s;
}
.f-social-btn:hover {
    background: var(--text-main); color: white; transform: translateY(-3px);
}
.f-social-btn i { width: 18px; height: 18px; }

/* Links Grid */
.footer-links-wrapper {
    display: flex; gap: 4rem; flex-wrap: wrap;
}

.link-column h5 {
    color: var(--text-main);
    font-weight: 700; font-size: 0.9rem;
    margin-bottom: 1.2rem;
}
.link-column a {
    display: block; color: var(--text-muted); text-decoration: none;
    margin-bottom: 0.8rem; font-size: 0.95rem; transition: 0.2s;
}
.link-column a:hover {
    color: var(--primary); transform: translateX(4px);
}

.status-dot-mini {
    display: inline-block; width: 6px; height: 6px; background: #10b981;
    border-radius: 50%; margin-left: 4px;
}

/* Newsletter Mini */
.newsletter-mini p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 10px; max-width: 200px; }
.mini-input-group {
    display: flex; gap: 8px;
}
.mini-input-group input {
    background: #f8fafc; border: 1px solid #cbd5e1; padding: 8px 12px;
    border-radius: 8px; font-size: 0.9rem; outline: none; width: 100%;
}
.mini-input-group input:focus { border-color: var(--primary); }
.mini-input-group button {
    background: var(--text-main); color: white; border: none;
    border-radius: 8px; width: 36px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.mini-input-group button:hover { background: var(--primary); }

/* Bottom Bar */
.footer-bottom {
    margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #f1f5f9;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.85rem; color: var(--text-muted);
    max-width: 1100px; margin-left: auto; margin-right: auto; width: 90%;
}
.fb-left a { color: var(--text-muted); text-decoration: none; }
.fb-left a:hover { color: var(--text-main); }
.sep { margin: 0 8px; opacity: 0.3; }

/* Mobile Adjustments */
@media (max-width: 900px) {
    .footer-container { flex-direction: column; gap: 3rem; }
    .footer-links-wrapper { gap: 2rem; width: 100%; justify-content: space-between; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}