/* Trace4 Dedicated Page Styles */

.trace4-page {
    background: #020e06;
}

.trace4-nav {
    background: rgba(2, 14, 6, 0.95) !important;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2) !important;
}

.trace4-nav .nav-logo h2 {
    color: #10b981;
}

.trace4-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.trace4-nav .nav-link:hover {
    color: #10b981;
}

.trace4-nav .nav-link::after {
    background-color: #10b981;
}

.active-trace4 {
    color: #10b981 !important;
}

.trace4-nav .hamburger .bar {
    background-color: white;
}

/* Hero */
.t4-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 var(--spacing-2xl);
}

.t4-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(52, 211, 153, 0.1) 0%, transparent 40%),
        linear-gradient(160deg, #021a0a 0%, #0a2e1a 30%, #041f0e 60%, #020e06 100%);
}

.t4-hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 15% 25%, rgba(16, 185, 129, 0.4), transparent),
        radial-gradient(2px 2px at 35% 65%, rgba(52, 211, 153, 0.3), transparent),
        radial-gradient(1px 1px at 55% 15%, rgba(16, 185, 129, 0.5), transparent),
        radial-gradient(1px 1px at 75% 55%, rgba(52, 211, 153, 0.4), transparent),
        radial-gradient(2px 2px at 85% 35%, rgba(16, 185, 129, 0.3), transparent),
        radial-gradient(1px 1px at 25% 85%, rgba(52, 211, 153, 0.5), transparent),
        radial-gradient(2px 2px at 65% 90%, rgba(16, 185, 129, 0.2), transparent),
        radial-gradient(1px 1px at 5% 50%, rgba(52, 211, 153, 0.3), transparent);
    animation: t4particles 20s ease-in-out infinite;
}

@keyframes t4particles {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-10px) translateX(5px); }
    50% { transform: translateY(-20px) translateX(0); }
    75% { transform: translateY(-10px) translateX(-5px); }
}

.t4-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.t4-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(52, 211, 153, 0.2));
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-lg);
}

.t4-hero-title {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    letter-spacing: -2px;
}

.t4-logo {
    background: linear-gradient(135deg, #10b981, #34d399, #6ee7b7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.t4-logo-eu {
    color: #6ee7b7;
    -webkit-text-fill-color: #6ee7b7;
}

.t4-hero-tagline {
    font-size: 1.8rem;
    color: #34d399;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 0 30px rgba(52, 211, 153, 0.3);
}

.t4-hero-desc {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
    line-height: 1.8;
}

.t4-hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-2xl);
    flex-wrap: wrap;
}

.btn-t4-hero {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

.btn-t4-hero:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5);
}

.btn-t4-ghost {
    background: transparent;
    color: #34d399;
    border: 2px solid rgba(52, 211, 153, 0.5);
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

.btn-t4-ghost:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
}

.t4-hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-2xl);
    flex-wrap: wrap;
}

.t4-stat {
    text-align: center;
}

.t4-stat h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #10b981;
    margin-bottom: 4px;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.t4-stat p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Problem / Solution */
.t4-problem {
    padding: var(--spacing-2xl) 0;
    background: #041f0e;
}

.t4-problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.t4-problem-card,
.t4-solution-card {
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    text-align: center;
}

.t4-problem-card {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.t4-solution-card {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.t4-problem-icon,
.t4-solution-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    font-size: 1.5rem;
}

.t4-problem-icon {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.t4-solution-icon {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.t4-problem-card h3,
.t4-solution-card h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.t4-problem-card p,
.t4-solution-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

/* Come Funziona */
.t4-how {
    padding: var(--spacing-2xl) 0;
    background: #020e06;
}

.t4-how .section-header h2 {
    color: white;
}

.t4-how .section-header p {
    color: rgba(255, 255, 255, 0.6);
}

.t4-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.t4-step {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    text-align: center;
    padding: var(--spacing-lg);
    position: relative;
}

.t4-step-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(16, 185, 129, 0.2);
    margin-bottom: var(--spacing-sm);
}

.t4-step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.t4-step-icon i {
    font-size: 1.2rem;
    color: white;
}

.t4-step h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
}

.t4-step p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.5;
}

.t4-step-connector {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #10b981, transparent);
    margin-top: 100px;
    flex-shrink: 0;
}

/* Features */
.t4-features {
    padding: var(--spacing-2xl) 0;
    background: #041f0e;
}

.t4-features .section-header h2 {
    color: white;
}

.t4-features .section-header p {
    color: rgba(255, 255, 255, 0.6);
}

.t4-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.t4-feature-card {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    transition: all 0.4s ease;
}

.t4-feature-card:hover {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15);
}

.t4-feature-card i {
    font-size: 2.5rem;
    color: #10b981;
    margin-bottom: var(--spacing-md);
    display: block;
}

.t4-feature-card h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
}

.t4-feature-card p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Settori */
.t4-sectors {
    padding: var(--spacing-2xl) 0;
    background: #020e06;
}

.t4-sectors .section-header h2 {
    color: white;
}

.t4-sectors .section-header p {
    color: rgba(255, 255, 255, 0.6);
}

.t4-sectors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.t4-sector {
    text-align: center;
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.t4-sector:hover {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
    transform: translateY(-3px);
}

.t4-sector i {
    font-size: 2.5rem;
    color: #34d399;
    margin-bottom: var(--spacing-md);
    display: block;
}

.t4-sector h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
}

.t4-sector p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* CTA */
.t4-cta-section {
    padding: var(--spacing-2xl) 0;
    background: #041f0e;
}

.t4-cta-box {
    text-align: center;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-2xl);
}

.t4-cta-box h2 {
    color: white;
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-md);
}

.t4-cta-box p {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-lg);
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
    line-height: 1.7;
}

.t4-cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 992px) {
    .t4-hero-title {
        font-size: 3.5rem;
    }
    
    .t4-features-grid,
    .t4-sectors-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .t4-problem-grid {
        grid-template-columns: 1fr;
    }
    
    .t4-step-connector {
        display: none;
    }
    
    .t4-steps {
        gap: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .t4-hero-title {
        font-size: 2.5rem;
    }
    
    .t4-hero-tagline {
        font-size: 1.3rem;
    }
    
    .t4-features-grid,
    .t4-sectors-grid {
        grid-template-columns: 1fr;
    }
    
    .t4-hero-stats {
        gap: var(--spacing-lg);
    }
    
    .t4-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .t4-step {
        max-width: 100%;
    }
}
