:root {
    /* --primary: #00d9ff;*/
    --primary: #2f7626;
    /* Cyan elettrico */
    --secondary: #ff0080;
    /* Magenta vivace */
    --secondary-light: #ff00809e;
    --background: #0a0a0f;
    /* Quasi nero */
    --surface: #1a1a2e;
    /* Blu scuro */
    --text: #eee6ff;
    /* Bianco violaceo */
    /*--text-secondary: #a78bfa;*/
    --text-secondary: #40b63c;
    /* Viola chiaro */
    --accent: #00ff88;
    /* Verde neon */
    --transition: all 0.3s ease;
    /* Transizioni */
    --shadow-button: 2px 5px 20px var(--secondary);
    /* Ombra button */
    --shadow-button-light: 2px 5px 20px var(--secondary-light);
    --text2: #eee6ff6d;
    --shadow-text: 2px 5px 20px var(--text2);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.3);
    --shadow-card-hover: 0 20px 50px rgba(64, 182, 60, 0.4);
}

body {
    background-color: var(--surface);
}

/* === HERO SECTION === */
.hero {
    background: linear-gradient(135deg, var(--surface) 0%, var(--background) 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* === ANIMAZIONE CIRCUITI === */
.circuit-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.6;
}

/* Linee di circuito principali */
.circuit-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

/* Linee orizzontali */
.circuit-line.horizontal {
    height: 2px;
    width: 300px;
}

.circuit-line.horizontal-1 {
    top: 15%;
    left: -300px;
    animation: moveRight 8s infinite;
}

.circuit-line.horizontal-2 {
    top: 35%;
    right: -300px;
    animation: moveLeft 10s infinite;
    background: linear-gradient(90deg, transparent, #ff6b00, transparent);
}

.circuit-line.horizontal-3 {
    top: 55%;
    left: -300px;
    animation: moveRight 12s infinite;
    background: linear-gradient(90deg, transparent, #00ff88, transparent);
}

.circuit-line.horizontal-4 {
    bottom: 25%;
    right: -300px;
    animation: moveLeft 7s infinite;
    background: linear-gradient(90deg, transparent, #ff0099, transparent);
}

/* Linee verticali */
.circuit-line.vertical {
    width: 2px;
    height: 200px;
}

.circuit-line.vertical-1 {
    left: 20%;
    top: -200px;
    animation: moveDown 9s infinite;
    background: linear-gradient(180deg, transparent, #00d4ff, transparent);
}

.circuit-line.vertical-2 {
    right: 25%;
    bottom: -200px;
    animation: moveUp 11s infinite;
    background: linear-gradient(180deg, transparent, #ff6b00, transparent);
}

.circuit-line.vertical-3 {
    left: 60%;
    top: -200px;
    animation: moveDown 6s infinite;
    background: linear-gradient(180deg, transparent, #00ff88, transparent);
}

/* Keyframes per movimenti */
@keyframes moveRight {
    0% {
        transform: translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateX(calc(100vw + 300px));
        opacity: 0;
    }
}

@keyframes moveLeft {
    0% {
        transform: translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateX(calc(-100vw - 300px));
        opacity: 0;
    }
}

@keyframes moveDown {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(calc(100vh + 200px));
        opacity: 0;
    }
}

@keyframes moveUp {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(calc(-100vh - 200px));
        opacity: 0;
    }
}

/* === NODI DEI CIRCUITI === */
.circuit-nodes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.node {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.node-1 {
    top: 20%;
    left: 15%;
    background: #00d4ff;
    box-shadow: 0 0 20px #00d4ff;
    animation-delay: 0s;
}

.node-2 {
    top: 40%;
    right: 20%;
    background: #ff6b00;
    box-shadow: 0 0 20px #ff6b00;
    animation-delay: 0.5s;
}

.node-3 {
    bottom: 30%;
    left: 25%;
    background: #00ff88;
    box-shadow: 0 0 20px #00ff88;
    animation-delay: 1s;
}

.node-4 {
    top: 60%;
    left: 50%;
    background: #ff0099;
    box-shadow: 0 0 20px #ff0099;
    animation-delay: 1.5s;
}

.node-5 {
    bottom: 40%;
    right: 35%;
    background: #00d4ff;
    box-shadow: 0 0 20px #00d4ff;
    animation-delay: 0.8s;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.8);
        opacity: 0.6;
    }
}

@keyframes float1 {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
    }

    33% {
        transform: translateY(-30px) translateX(20px);
    }

    66% {
        transform: translateY(15px) translateX(-10px);
    }
}

@keyframes float2 {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
    }

    50% {
        transform: translateY(-40px) translateX(-25px);
    }
}

@keyframes float3 {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
    }

    25% {
        transform: translateY(20px) translateX(30px);
    }

    75% {
        transform: translateY(-25px) translateX(-15px);
    }
}

@keyframes float4 {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
    }

    50% {
        transform: translateY(-35px) translateX(40px);
    }
}

@keyframes float5 {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
    }

    40% {
        transform: translateY(-20px) translateX(-35px);
    }

    80% {
        transform: translateY(30px) translateX(10px);
    }
}

@keyframes float6 {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
    }

    33% {
        transform: translateY(25px) translateX(-20px);
    }

    66% {
        transform: translateY(-15px) translateX(25px);
    }
}

/* === CONTENUTO === */
.banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    text-shadow: var(--shadow-text);
    width: 90%;
    max-width: 800px;
}

.banner-text h1 {
    color: var(--text-secondary);
    font-size: 3.4rem;
    padding-bottom: 40px;
}

.banner-text p {
    color: var(--text);
    font-size: 1.6rem;
    padding-bottom: 40px;
}

.btn-banner {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.btn-portfolio,
.btn-preventivo {
    width: 220px;
    height: 60px;
    font-size: 18px;
    border-radius: 40px;
    font-weight: bold;
    transition: var(--transition);
}

.btn-portfolio {
    background-color: var(--primary);
    color: var(--surface);
}

.btn-portfolio:hover {
    background-color: var(--text-secondary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-button);
}

.btn-preventivo {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-preventivo:hover {
    color: var(--text-secondary);
    border: 2px solid var(--text-secondary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-button);
}

@media (max-width: 1280px) {
    .hero {
        margin-top: 0;
    }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .circuit-line.horizontal {
        width: 200px;
    }

    .circuit-line.vertical {
        height: 150px;
    }


    .banner-text h1 {
        font-size: 2.5rem;
    }

    .banner-text p {
        font-size: 1.4rem;
    }

    .hero {
        min-height: 100vh;
        margin-top: 0;
    }
}

body {
    background-color: var(--surface);
}


.body-content {
    font-size: 1.3rem;
    color: var(--text);
}

.introduction {
    margin: 120px;
    line-height: 1.6;
    text-align: justify;
}

/* === SEZIONE CONTATTI === */
.contacts-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    gap: 40px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    background: var(--background);
    padding: 40px;
    border: 1px solid rgba(64, 182, 60, 0.2);
    box-shadow: var(--shadow-card);
    border-radius: 20px;
    transition: var(--transition);
}

.contact-info:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--text-secondary);
}

.contact-info h2 {
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 10px;
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(47, 118, 38, 0.1);
}

.contact-item i {
    font-size: 1.8rem;
    color: var(--primary);
    margin-right: 20px;
    width: 40px;
    text-align: center;
}

.contact-item .text {
    flex: 1;
}

.contact-item h3 {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.contact-item p,
.contact-item a {
    color: var(--text);
    text-decoration: none;
    font-size: 1.1rem;
}

.contact-item a:hover {
    color: var(--text-secondary);
}

.social-section {
    margin-top: 40px;
}

.social-section h3 {
    color: var(--primary);
    margin-bottom: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(47, 118, 38, 0.5);
}

.contact-form-container {
    flex: 1;
    min-width: 300px;
    background: var(--background);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(64, 182, 60, 0.2);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.contact-form-container:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--text-secondary);
}

.contact-form-container h2 {
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--surface);
    border: 1px solid rgba(47, 118, 38, 0.3);
    border-radius: 10px;
    color: var(--text);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(47, 118, 38, 0.3);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: var(--surface);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--text-secondary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-button);
}

@media (max-width: 1024px) {
    .contacts-container {
        display: flex;
        flex-direction: column;
    }

    .contact-info {
        padding: 20px;

    }

    .introduction {
        margin: 40px;
    }
}