/* Reset e Variabili */
:root {
    --bg-color: #05080f;
    --bg-darker: #020408;
    --primary-blue: #0055ff;
    --accent-cyan: #00d2ff;
    --silver: #e2e8f0;
    --text-muted: #8892b0;
    --font-main: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--silver);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Tipografia */
h1, h2, h3 {
    color: #ffffff;
    font-weight: 700;
}

.highlight {
    color: var(--accent-cyan);
    text-shadow: 0 0 15px rgba(0, 210, 255, 0.5);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.scrolled {
    background: rgba(5, 8, 15, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 210, 255, 0.2);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 0 10px rgba(0, 85, 255, 0.6));
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
}

.brand-sub {
    font-size: 0.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-muted);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--silver);
    font-weight: 400;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-cyan);
}

.btn-nav {
    border: 1px solid var(--accent-cyan);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    color: var(--accent-cyan) !important;
    transition: all 0.3s ease !important;
}

.btn-nav:hover {
    background: var(--accent-cyan);
    color: var(--bg-color) !important;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

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

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--silver);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 85, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--silver);
    border: 1px solid var(--text-muted);
}

.btn-secondary:hover {
    border-color: var(--silver);
    background: rgba(255, 255, 255, 0.05);
}

.hero-graphic {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Linee geometriche decorative */
.line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(0, 210, 255, 0.4), transparent);
}

.line-1 {
    width: 300px;
    height: 1px;
    top: 20%;
    right: 10%;
    transform: rotate(-45deg);
}

.line-2 {
    width: 400px;
    height: 1px;
    bottom: 30%;
    right: -50px;
    transform: rotate(45deg);
}

.glow-circle {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 85, 255, 0.15) 0%, transparent 70%);
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
}

/* Sezioni Generali */
.section {
    padding: 6rem 5%;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

/* Servizi */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 210, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 210, 255, 0.1);
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Chi Siamo */
.about-container {
    display: flex;
    justify-content: center;
    text-align: center;
}

.about-text {
    max-width: 800px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: #010204;
    padding: 3rem 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-logo {
    display: flex;
    flex-direction: column;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-cyan);
}

footer p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 900px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-graphic {
        opacity: 0.5;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(5, 8, 15, 0.98);
        padding: 2rem 0;
        border-bottom: 1px solid rgba(0, 210, 255, 0.2);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 100px;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
    }

    .hero-graphic {
        display: none;
    }
}
