@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Roboto:wght@300;400;700&display=swap');

:root {
    --dark-base: #050505;
    --dark-surface: #111111;
    --deep-red: #8b0000;       /* Rosso scuro più profondo */
    --vibrant-red: #b30000;
    --ice-cyan: #a0d8f1;       /* Azzurro cristallo */
    --text-main: #e0e0e0;
    --font-heading: 'Orbitron', sans-serif; /* Font tecnico/racing */
    --font-body: 'Roboto', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--dark-base);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* --- ANIMAZIONI --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal { opacity: 0; }
.reveal.active { animation: fadeInUp 1s forwards cubic-bezier(0.19, 1, 0.22, 1); }

/* --- HEADER & NAV --- */
header {
    position: fixed; width: 100%; top: 0; padding: 20px 5%;
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(0,0,0,0.9); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139, 0, 0, 0.3); z-index: 1000;
    transition: 0.4s;
}
header.scrolled { padding: 10px 5%; background: var(--dark-base); }

.logo-box img { height: 70px; filter: drop-shadow(0 0 5px var(--deep-red)); transition: 0.3s; }
header.scrolled .logo-box img { height: 50px; }

nav ul { display: flex; list-style: none; gap: 30px; }
nav a {
    color: #fff; text-decoration: none; font-family: var(--font-heading);
    font-size: 0.8rem; letter-spacing: 1px; transition: 0.3s;
}
nav a:hover { color: var(--vibrant-red); text-shadow: 0 0 10px var(--vibrant-red); }

/* --- HERO SECTION --- */
.hero {
    height: 100vh; position: relative; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.9)), url('foto3.JPG'); /* Foto di sfondo */
    background-size: cover; background-position: center; text-align: center;
}
.hero-content { z-index: 5; padding: 0 20px; }
.hero h1 {
    font-family: var(--font-heading); font-size: clamp(2.5rem, 8vw, 6rem);
    line-height: 1.1; margin-bottom: 20px; text-transform: uppercase;
}
.hero h1 span { color: var(--vibrant-red); }
.hero p { font-size: 1.2rem; letter-spacing: 2px; text-transform: uppercase; color: var(--ice-cyan); margin-bottom: 40px; }

.btn-cta {
    padding: 18px 40px; background: transparent; border: 2px solid var(--vibrant-red);
    color: #fff; text-decoration: none; font-family: var(--font-heading); font-weight: 700;
    position: relative; overflow: hidden; transition: 0.4s; z-index: 1;
}

.btn-cta:hover::before { left: 0; }

/* --- SECTIONS --- */
section { padding: 120px 8%; position: relative; }
.sec-title {
    font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: 60px;
    text-align: center; border-left: 5px solid var(--vibrant-red); padding-left: 20px;
    display: inline-block;
}

/* --- SERVICES --- */
.services-container {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px;
}
.s-card {
    background: var(--dark-surface); padding: 40px; border: 1px solid #222;
    transition: 0.5s; position: relative; overflow: hidden;
}
.s-card:hover { border-color: var(--vibrant-red); transform: scale(1.03); }
.s-card i { font-size: 3rem; color: var(--vibrant-red); margin-bottom: 20px; }
.s-card h3 { font-family: var(--font-heading); margin-bottom: 15px; font-size: 1.2rem; color: var(--ice-cyan); }
.s-card p { color: #888; font-size: 0.9rem; }

/* --- PROCESSO (Dettagli) --- */
.process-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.step { flex: 1; min-width: 200px; text-align: center; padding: 20px; background: #080808; border-bottom: 3px solid #222; }
.step:hover { border-color: var(--ice-cyan); }
.step .num { font-size: 3rem; font-family: var(--font-heading); color: rgba(255,255,255,0.05); display: block; }

/* --- GALLERY --- */
.gallery-grid {
    columns: 4 250px; column-gap: 15px;
}
.gallery-grid img {
    width: 100%; margin-bottom: 15px; border-radius: 4px; filter: grayscale(40%); transition: 0.5s;
}
.gallery-grid img:hover { filter: grayscale(0%); transform: scale(1.02); }

/* --- FOOTER --- */
footer {
    background: #000; padding: 80px 8% 30px; border-top: 2px solid var(--vibrant-red);
}
.footer-content {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 50px; margin-bottom: 50px;
}
.footer-logo img { height: 80px; margin-bottom: 20px; }
.footer-info h4 { font-family: var(--font-heading); color: var(--vibrant-red); margin-bottom: 20px; }
.footer-info p { margin-bottom: 10px; color: #777; }

/* --- MOBILE --- */

@media (max-width: 768px) {
    /* Mostra l'hamburger */
    .hamburger { display: block; }

    /* Configura il menu a tendina (nascosto di default a destra) */
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.6s cubic-bezier(0.19, 1, 0.22, 1);
        z-index: 1500;
    }

    /* Classe che viene attivata dal JavaScript per mostrare il menu */
    nav ul.active { right: 0; }

    /* Stile dei link nel menu mobile */
    nav ul li { margin: 20px 0; }
    nav a { font-size: 1.5rem; letter-spacing: 2px; }

    /* Adattamenti per schermi piccoli */
    .hero h1 { font-size: 3rem; }
    .gallery-grid { columns: 2; }
    section { padding: 80px 5%; }
    .sec-title { font-size: 2rem; }
}

/* =========================================
   HAMBURGER ICON (Visibile solo su Mobile)
   ========================================= */
.hamburger {
    display: none; /* Nascondilo su Computer */
    font-size: 2rem;
    color: var(--vibrant-red);
    cursor: pointer;
    z-index: 2000;
    transition: 0.3s;
}
.hamburger:hover {
    color: var(--ice-cyan);
}

/* =========================================
   MOBILE RESPONSIVE (Smartphone)
   ========================================= */
@media (max-width: 768px) {
    /* 1. Mostra l'icona Hamburger */
    .hamburger {
        display: block;
    }

    /* 2. Assicurati che il contenitore NAV NON sia nascosto */
    nav {
        display: block;
    }

    /* 3. Stile del menu a tendina (nascosto a destra fuori dallo schermo) */
    nav ul {
        position: fixed;
        top: 0;
        right: -100%; /* Fuori dallo schermo */
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.6s cubic-bezier(0.19, 1, 0.22, 1);
        z-index: 1500;
    }

    /* 4. Quando si clicca, la classe 'active' fa entrare il menu */
    nav ul.active {
        right: 0;
    }

    /* 5. Stile dei link nel menu mobile */
    nav ul li { margin: 20px 0; }
    nav a { font-size: 1.5rem; letter-spacing: 2px; }

    /* Adattamenti testo e sezioni per schermi piccoli */
    .hero h1 { font-size: 3rem; }
    .gallery-grid { columns: 2; }
    section { padding: 80px 5%; }
    .sec-title { font-size: 2rem; }
}
a{
    color: var(--ice-cyan) !important;
}