/* Reset e variabili */
:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #0066cc;
}

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

body {
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--primary-color);
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Sfondo tecnologico principale */
.tech-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/assets/tech-bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: -1;
}

/* Header e logo */
header {
    background-color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    backdrop-filter: blur(6px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.logo {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo-text span {
    color: var(--accent-color);
}

/* Sezione hero con sfondo tecnologico */
.hero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 102, 204, 0.1);
    text-align: center;
    padding: 3rem;
    background-image: url('/assets/tech-bg.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    margin: 2rem auto;
    max-width: 800px;
}

/* Overlay per far risaltare il testo */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    border-radius: 8px;
    backdrop-filter: blur(2px);
}

.hero-content h2, .hero-content p {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

.hero h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #111;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    position: relative;
}

.hero p {
    font-size: 1.1rem;
    color: #333;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
    position: relative;
}
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
    z-index: 0;
}

/* Footer */
footer {
    background-color: rgba(0, 0, 0, 0.88);
    color: var(--secondary-color);
    text-align: center;
    padding: 1.5rem;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .logo {
        height: 35px;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
    
    .hero {
        padding: 2rem 1rem;
        background-size: contain;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
}