:root {
    --primary-blue: #00B2FF;    /* Azzurro brillante */
    --primary-pink: #FF00B2;    /* Rosa brillante */
    --gradient-1: linear-gradient(45deg, var(--primary-blue), var(--primary-pink));
    --gradient-2: linear-gradient(135deg, var(--primary-blue), var(--primary-pink));
    --dark-bg: #000000;         /* Nero puro */
    --darker-bg: #0A0A0A;       /* Nero leggermente più chiaro per contrasto */
    --text-color: #FFFFFF;      /* Bianco */
    --light-text: #CCCCCC;      /* Grigio chiaro */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--dark-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: rgba(0, 0, 0, 0.95);
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 178, 255, 0.1);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 178, 255, 0.1);
}

.logo a {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

nav a:hover {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}





/* Services Grid */
.services-preview {
    padding: 4rem 0;
    background: var(--darker-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--dark-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 178, 255, 0.1);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-blue);
    box-shadow: 0 0 20px rgba(0, 178, 255, 0.2);
}

.service-card .icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card h3 {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-1);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 178, 255, 0.3);
}

/* Contact Form */
.contact-form {
    background: var(--darker-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 178, 255, 0.1);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--dark-bg);
    border: 1px solid rgba(0, 178, 255, 0.2);
    border-radius: 8px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 10px rgba(0, 178, 255, 0.1);
}

/* Footer */
footer {
    background: var(--darker-bg);
    color: var(--light-text);
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(0, 178, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3 {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

.footer-col a {
    color: var(--light-text);
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.footer-col a:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 178, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    header {
        position: static;
    }

    header .container {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero {
        min-height: auto;
        padding-top: 2rem;
    }
}

/* Top bar — nascosto */
.top-bar {
    display: none;
}
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: flex-end;
    padding: 0.4rem 0;
    font-size: 0.82rem;
    color: var(--light-text);
}

.contact-info-bar span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.contact-info-bar .fas {
    color: var(--primary-blue);
}

.contact-info-bar a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-info-bar a:hover {
    color: var(--primary-blue);
}

/* Stile generale per il contenitore dei link social */
.social-links {
    display: flex;
    gap: 15px; /* Spaziatura tra i link */
    justify-content: center; /* Centra i link orizzontalmente */
    align-items: center; /* Allinea verticalmente */
    margin: 20px 0; /* Spaziatura superiore e inferiore */
}

/* Stile per i link */
.social-links a {
    display: inline-flex; /* Permette di centrare le icone */
    justify-content: center;
    align-items: center;
    text-decoration: none; /* Rimuove la sottolineatura */
    color: #555; /* Colore iniziale delle icone */
    font-size: 20px; /* Dimensione delle icone */
    width: 40px; /* Dimensione del contenitore */
    height: 40px; /* Dimensione del contenitore */
    border: 2px solid #ddd; /* Bordo iniziale */
    border-radius: 50%; /* Forma circolare */
    transition: all 0.3s ease; /* Transizione per gli effetti */
}

/* Effetto al passaggio del mouse */
.social-links a:hover {
    color: #fff; /* Cambia il colore del testo */
    background-color: #007bff; /* Cambia il colore dello sfondo */
    border-color: #007bff; /* Cambia il colore del bordo */
    transform: scale(1.1); /* Leggero ingrandimento */
}

/* Stile per le icone (separato dal testo aggiunto) */
.social-links i {
    margin: 0; /* Rimuove margini interni */
}

/* Hero Section */
.hero {
    padding-top: 80px;
    min-height: 100vh;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 178, 255, 0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 4rem 0;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--light-text);
}


/* Stile personalizzato per il titolo SoDaTech */
.hero-content h1 {
    font-size: 4.5rem; /* Dimensione più grande per il titolo */
    font-family: 'Courier New', Courier, monospace; /* Stile font diverso */
    font-weight: 700; /* Grassetto marcato */
    text-transform: none; /* Mantiene il testo in maiuscolo/minuscolo originale */
    letter-spacing: 3px; /* Ridotta spaziatura tra lettere */
    position: relative; /* Necessario per l'animazione */
    animation: fadeIn 1.5s ease-in-out; /* Animazione di entrata più veloce */
    background: linear-gradient(45deg, #FF00B2, #00B2FF); /* Sfuma dal rosa al blu */
    -webkit-background-clip: text; /* Clip dello sfondo al testo */
    -webkit-text-fill-color: transparent; /* Rende il testo trasparente */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2); /* Leggera ombra per contrasto */
}

/* Effetti decorativi */
.hero-content h1::after {
    content: ''; /* Elemento decorativo */
    position: absolute;
    bottom: -15px; /* Posizionato sotto il titolo */
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 5px;
    background: linear-gradient(90deg, #00B2FF, #FF00B2); /* Linea sfumata */
    border-radius: 3px;
    animation: expandLine 1.5s ease-in-out forwards; /* Animazione */
}

/* Animazioni */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandLine {
    from {
        width: 0;
    }
    to {
        width: 120px;
    }
}

/* Contenitore del logo */
.logo {
    padding: 8px 0;
    position: relative;
    z-index: 1000;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

/* Dimensioni ottimizzate per desktop */
.logo img {
    height: 85px;  /* Altezza base */
    width: auto;
    transform: translateZ(0);  /* Ottimizzazione performance */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: drop-shadow(0 0 8px rgba(0, 178, 255, 0.2));
}

/* Effetto hover futuristico */
.logo a:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 12px rgba(0, 178, 255, 0.4)) 
            brightness(1.1);
}

/* Effetto glow al click */
.logo a:active img {
    transform: scale(0.98);
    filter: drop-shadow(0 0 15px rgba(255, 0, 178, 0.5)) 
            brightness(1.2);
    transition: all 0.1s ease;
}

/* Dimensioni responsive */
@media (max-width: 768px) {
    .logo img {
        height: 40px;  /* Leggermente più piccolo su tablet */
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 35px;  /* Ancora più piccolo su mobile */
    }
}

/* Dimensioni grandi per schermi molto larghi */
@media (min-width: 1440px) {
    .logo img {
        height: 100px;  /* Più grande su schermi ampi */
    }
}