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

:root {
    --primary: #ff3333;
    --dark: #0a0a0f;
    --darker: #050508;
    --light: #ffffff;
    --gray: #888888;
}

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--dark);
    color: var(--light);
    overflow: hidden;
    height: 100vh;
    position: relative;
}

/* NAVBAR */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 51, 51, 0.2);
}

.logo {
    font-family: "Orbitron", sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 3px;
    text-decoration: none;
    transition: opacity 0.3s;
    cursor: pointer;
}

.logo:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.2rem;
}

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

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

/* HAMBURGER MENU */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--light);
    transition: all 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    background: var(--primary);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background: var(--primary);
}

/* HERO */

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: url('macchina.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(3px);
    background: rgba(10, 10, 15, 0.4);
    z-index: 1;
}

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

/* === GLITCH ORIGINALE === */
.glitch {
    font-family: "Orbitron", sans-serif;
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    color: var(--light);
    position: relative;
    letter-spacing: 10px;
    text-transform: uppercase;
    animation: glitch 4s infinite;
}

@keyframes glitch {
    0%, 85%, 100% {
        text-shadow: 2px 2px var(--primary), -2px -2px cyan;
        transform: translate(0, 0);
    }

    86% {
        text-shadow: -6px 6px var(--primary), 6px -6px cyan;
        transform: translate(-2px, -2px);
    }
    88% {
        text-shadow: 8px -8px var(--primary), -8px 8px cyan;
        transform: translate(3px, -3px);
    }
    90% {
        text-shadow: -10px -4px var(--primary), 10px 4px cyan;
        transform: translate(-4px, 2px);
    }
    92% {
        text-shadow: 10px 4px var(--primary), -10px -4px cyan;
        transform: translate(4px, -2px);
    }
    94% {
        text-shadow: -6px 6px var(--primary), 6px -6px cyan;
        transform: translate(-2px, 2px);
    }
}

.tagline {
    font-size: 1.3rem;
    color: var(--light);
    margin-top: 1.5rem;
    margin-bottom: 3.6rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(255, 51, 51, 0.5);
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--primary);
    border: 2px solid var(--primary);
    color: var(--light);
    text-decoration: none;
    font-family: "Orbitron", sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.cta-button:hover {
    background: transparent;
    color: var(--primary);
    box-shadow: 0 0 30px rgba(255, 51, 51, 0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 5rem;
    font-size: 2rem;
    color: var(--primary);
    animation: bounce 2s infinite;
    z-index: 2;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* FUTURE SECTION: AUTO + TESTO */

.future-section {
    padding: 6rem 5% 5rem;
    background: var(--darker);
    display: flex;
    justify-content: center;
    align-items: center;
}

.future-inner {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.future-car {
    display: block;
    max-width: 70vw;
    width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 18px;
    border: 1px solid rgba(255, 51, 51, 0.6);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.95);
}

.future-caption {
    margin-top: 2.5rem;
    font-family: "Orbitron", sans-serif;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.7rem;
    color: var(--light);
    text-align: center;
    text-shadow:
        0 0 6px rgba(0, 0, 0, 0.8),
        0 0 14px rgba(255, 51, 51, 0.7);
}

/* CONTACT SECTION */

.contact-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 5%;
    background: var(--dark);
}

.contact-card {
    background: rgba(10, 10, 15, 0.8);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 3.5rem 4rem;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.contact-card h2 {
    font-family: "Orbitron", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 0.5rem;
    letter-spacing: 3px;
}

.location {
    color: var(--gray);
    font-size: 1rem;
    margin-bottom: 3rem;
    font-weight: 300;
}

.contact-block {
    margin-bottom: 2.5rem;
}

.contact-block:last-of-type {
    margin-bottom: 0;
}

.contact-label {
    color: var(--gray);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.contact-email {
    display: block;
    color: var(--primary);
    font-size: 1.1rem;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
    font-weight: 500;
}

.contact-email:hover {
    color: var(--light);
}

.contact-email:last-child {
    margin-bottom: 0;
}

/* FOOTER */

footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--darker);
    border-top: none;
    padding: 1rem 0;
    text-align: center;
    z-index: 10;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50%;
    width: 200%;
    height: 100px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 51, 51, 0.1) 25%, 
        rgba(255, 51, 51, 0.2) 50%, 
        rgba(255, 51, 51, 0.1) 75%, 
        transparent 100%);
    animation: wave 8s ease-in-out infinite;
    pointer-events: none;
}

footer::after {
    content: '';
    position: absolute;
    top: -30px;
    left: -50%;
    width: 200%;
    height: 80px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 255, 255, 0.05) 30%, 
        rgba(0, 255, 255, 0.1) 50%, 
        rgba(0, 255, 255, 0.05) 70%, 
        transparent 100%);
    animation: wave 12s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes wave {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    50% {
        transform: translateX(25%) translateY(-10px);
    }
}

footer p {
    color: var(--light);
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

/* RESPONSIVE */

/* iPhone 16 Pro e schermi simili (alti e stretti) */
@media (max-width: 430px) and (min-height: 850px) {
    .glitch {
        font-size: clamp(2.5rem, 11vw, 4.5rem);
        letter-spacing: 4px;
    }

    .tagline {
        font-size: 0.95rem;
        margin-top: 1.5rem;
        margin-bottom: 3rem;
    }

    .cta-button {
        padding: 1rem 2.5rem;
        font-size: 0.85rem;
    }

    footer p {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links { 
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(10px);
        width: 200px;
        padding: 2rem 0;
        gap: 0;
        border-left: 2px solid var(--primary);
        transition: right 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 51, 51, 0.1);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }

    .logo {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .navbar {
        padding: 1rem 4%;
    }

    .glitch {
        font-size: clamp(2rem, 12vw, 4rem);
        letter-spacing: 5px;
    }

    .tagline {
        font-size: 0.9rem;
        letter-spacing: 1px;
        padding: 0 1rem;
        margin-bottom: 2.5rem;
    }

    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 0.8rem;
    }

    .contact-card {
        padding: 2.5rem 2rem;
    }

    .contact-card h2 {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .contact-email {
        font-size: 0.95rem;
        word-break: break-all;
    }

    footer p {
        font-size: 0.75rem;
        padding: 0 1rem;
    }

    .future-section {
        padding: 4rem 4% 4rem;
    }

    .future-car {
        max-width: 90vw;
        border-radius: 14px;
    }

    .future-caption {
        font-size: 1.4rem;
        letter-spacing: 0.4rem;
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .glitch {
        font-size: clamp(1.8rem, 10vw, 3rem);
        letter-spacing: 3px;
    }

    .tagline {
        font-size: 0.8rem;
        margin-bottom: 2rem;
    }

    .cta-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    .contact-card {
        padding: 2rem 1.5rem;
    }

    .contact-card h2 {
        font-size: 1.3rem;
    }

    footer p {
        font-size: 0.7rem;
    }
}











