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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

header {
    background: linear-gradient(135deg, #546E7A 0%, #37474F 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

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

.logo {
    font-size: 1.3rem;
    font-weight: 600;
}

.logo-name {
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
    font-weight: 500;
}

nav a:hover {
    opacity: 0.8;
}

.hero {
    background: linear-gradient(135deg, #546E7A 0%, #37474F 100%);
    color: white;
    padding: 150px 2rem 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 200px;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    animation: fadeInUp 1s;
    font-weight: 700;
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    font-weight: 400;
    animation: fadeInUp 1s 0.1s both;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s 0.2s both;
}

.systems {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    animation: fadeInUp 1s 0.3s both;
}

.system-badge {
    background: rgba(255,255,255,0.15);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: white;
    color: #546E7A;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInUp 1s 0.4s both;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 2rem;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #546E7A;
    font-weight: 700;
}

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

.servizio-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(84, 110, 122, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(84, 110, 122, 0.1);
}

.servizio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(84, 110, 122, 0.2);
}

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

.servizio-card h3 {
    color: #546E7A;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.3rem;
}

.servizio-card p {
    color: #666;
    line-height: 1.7;
}

.about {
    background: #f8f9fa;
}

.about-content {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #555;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #546E7A;
    box-shadow: 0 10px 30px rgba(84, 110, 122, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.about-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(84, 110, 122, 0.4);
}

.vantaggi {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.vantaggio {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.vantaggio-icon {
    font-size: 2rem;
    color: #546E7A;
}

.vantaggio h4 {
    color: #546E7A;
    margin-bottom: 0.3rem;
}

.vantaggio p {
    color: #666;
    font-size: 0.95rem;
}

.contatti {
    background: linear-gradient(135deg, #546E7A 0%, #37474F 100%);
    color: white;
    text-align: center;
}

.contatti h2 {
    color: white;
}

.contatti-info {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.contatto-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.contatto-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.contact-icon-img {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
}

.contatto-item strong {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.contatto-item a,
.contatto-item span {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: opacity 0.3s;
}

.contatto-item a:hover {
    opacity: 0.8;
}

footer {
    background: #263238;
    color: white;
    text-align: center;
    padding: 2rem;
}

footer p {
    opacity: 0.8;
}

footer a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

footer a:hover {
    opacity: 0.8;
}

.remote-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    margin-top: 1rem;
    border: 1px solid rgba(255,255,255,0.3);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

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

/* Media Queries */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero .subtitle {
        font-size: 1.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .systems {
        gap: 1rem;
    }

    .system-badge {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    nav ul {
        gap: 1rem;
    }

    .about-content {
        flex-direction: column;
    }

    .about-image img {
        width: 200px;
        height: 200px;
    }

    h2 {
        font-size: 2rem;
    }

    .contatti-info {
        gap: 2rem;
    }

    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #546E7A;
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }

    nav ul.active {
        display: flex;
    }

    nav li {
        padding: 0.5rem 0;
    }
}