/* AI4SI - Main Stylesheet */
/* Colors based on brand identity */

:root {
    --primary-blue: #00B4FF;
    --primary-magenta: #FF1493;
    --dark-bg: #0a0e1a;
    --darker-bg: #060912;
    --gray-text: #e0e0e0;
    --gray-medium: #a0a0a0;
    --white: #ffffff;
    --card-bg: #141824;
    --hover-bg: #1a1f2e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--dark-bg);
    color: var(--gray-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-magenta);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 180, 255, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo .four {
    color: var(--primary-magenta);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--gray-text);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: all 0.3s;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-magenta));
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 180, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-cta {
    background: var(--primary-magenta);
    color: var(--white);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-cta:hover {
    background: var(--primary-blue);
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    background: radial-gradient(ellipse at center, rgba(0, 180, 255, 0.1), transparent);
}

.hero-content {
    max-width: 900px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--white), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .tagline {
    font-size: 1.5rem;
    color: var(--gray-medium);
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

/* Section Base */
section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--gray-medium);
    max-width: 700px;
    margin: 0 auto;
}

/* Four SI Cards */
.four-si-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.si-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 180, 255, 0.1);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.si-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-magenta));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.si-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-blue);
    box-shadow: 0 10px 40px rgba(0, 180, 255, 0.2);
}

.si-card:hover::before {
    transform: scaleX(1);
}

.si-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-magenta);
    margin-bottom: 1rem;
}

.si-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.si-card p {
    color: var(--gray-medium);
    font-size: 1rem;
    line-height: 1.6;
}

/* Two Paths Section */
.two-paths {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.path-card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 2px solid rgba(0, 180, 255, 0.2);
    transition: all 0.3s;
}

.path-card:hover {
    border-color: var(--primary-blue);
    transform: scale(1.02);
    box-shadow: 0 15px 50px rgba(0, 180, 255, 0.3);
}

.path-icon {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.path-icon img {
    width: 100%;
    height: auto;
    display: block;
}

.path-card h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.path-card .subtitle {
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.path-card ul {
    list-style: none;
    margin: 2rem 0;
}

.path-card ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.path-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-magenta);
    font-weight: bold;
}

/* Process Section */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
}

.process-step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-magenta));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    color: var(--white);
}

.process-step h4 {
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    border-left: 4px solid var(--primary-magenta);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 5rem;
    color: var(--primary-blue);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 20px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info strong {
    color: var(--white);
    display: block;
}

.author-info span {
    color: var(--gray-medium);
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(0, 180, 255, 0.1), rgba(255, 20, 147, 0.1));
    padding: 5rem 2rem;
    text-align: center;
    border-radius: 20px;
    margin: 4rem 0;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Footer */
footer {
    background: var(--darker-bg);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(0, 180, 255, 0.1);
    margin-top: 6rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto 3rem;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li:not(:has(a)) {
    color: var(--gray-medium);
    opacity: 0.7;
}

.footer-section a {
    color: var(--gray-medium);
}

.footer-section a:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-medium);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--darker-bg);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        display: none;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .tagline {
        font-size: 1.2rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .two-paths {
        grid-template-columns: 1fr;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    /* I 4 SI diventano 2x2 su tablet */
    .four-si-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .si-card {
        padding: 1.5rem;
    }
    
    .path-card {
        padding: 2rem;
    }
    
    /* I 4 SI diventano 1 colonna su mobile */
    .four-si-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
