/* --- VARIABILI & RESET --- */
:root {
    --primary-color: #BAD253; /* AGGIORNATO: Verde Lime-Giallo */
    --secondary-color: #1a1a1a; /* Grigio Scuro */
    --bg-color: #0d0d0d; /* Nero quasi totale */
    --text-color: #f0f0f0;
    --accent-purple: #b026ff;
}

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

body {
    /* FONT AGGIORNATO: Roboto per il testo di corpo (ottima leggibilità) */
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    /* FONT AGGIORNATO: Blanka per tutti i titoli */
    font-family: 'Blanka', sans-serif; 
    text-transform: uppercase;
    letter-spacing: 2px;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- UTILITIES & LAYOUT --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-family: 'Orbitron', sans-serif; /* Mantenuto Orbitron per le CTA, per contrasto */
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--primary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.section-title span {
    border-bottom: 3px solid var(--primary-color);
}


/* --- HEADER --- */
header {
    background: rgba(13, 13, 13, 0.95);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    /* Logo in Blanka, ma più grande e con più spazio */
    font-size: 1.5rem;
    font-weight: 400; 
    color: var(--primary-color);
    /* OMBRA AGGIORNATA */
    text-shadow: 0 0 5px rgba(186, 210, 83, 0.5); 
    font-family: 'Blanka', sans-serif; 
    letter-spacing: 5px; 
}

.nav-links {
    display: flex;
    gap: 30px;
}

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

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('img/Neon-steampunk.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeIn 1.5s ease-in-out;
}

.hero-content span {
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- EFFETTO GLITCH (HACKER) --- */
.glitch {
    /* Il glitch viene applicato su h1, che ora usa Blanka */
    position: relative;
    color: var(--primary-color); 
    font-size: 3.5rem;
    animation: glitch-anim 2s infinite linear alternate-reverse; 
    /* OMBRA AGGIORNATA */
    text-shadow: 0 0 0px rgba(186, 210, 83, 0.7); 
}
/* (Keyframes e regole Glitch lasciate invariate) */
.glitch::before,
.glitch::after {
    content: attr(data-glitch); 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-family: 'Blanka', sans-serif; 
}

.glitch::before {
    left: 2px; 
    /* NUOVO COLORE 1: Viola Scuro */
    text-shadow: -2px 0 #843F91;
    clip: rect(44px, 450px, 56px, 0); 
    animation: glitch-anim-before 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px; 
    /* NUOVO COLORE 2: Blu Ghiaccio */
    text-shadow: -2px 0 #55BDDC;
    clip: rect(80px, 450px, 92px, 0); 
    animation: glitch-anim-after 4s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

@keyframes glitch-anim-before {
    0% { clip: rect(20px, 9999px, 50px, 0); }
    50% { clip: rect(10px, 9999px, 70px, 0); }
    100% { clip: rect(60px, 9999px, 30px, 0); }
}

@keyframes glitch-anim-after {
    0% { clip: rect(80px, 9999px, 10px, 0); }
    50% { clip: rect(40px, 9999px, 90px, 0); }
    100% { clip: rect(100px, 9999px, 20px, 0); }
}
/* --- FINE GLITCH --- */


/* --- HOW IT WORKS --- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    text-align: center;
}

.step-card {
    background: #1f1f1f;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #333;
    transition: transform 0.3s;
}

.step-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.step-card i {
    font-size: 3rem;
    color: #55bddc;
    margin-bottom: 20px;
}

/* --- SCENARIOS --- */
.scenarios {
    background: #161616;
}

.scenario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.scenario-card {
    background: #0d0d0d;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    position: relative;
}

.card-img {
    height: 200px;
    background-color: #333;
    background-size: cover;
    background-position: center;
}

/* Immagini placeholder (URL MANTENUTI) */
.img-van { background-image: url('https://i.postimg.cc/J49dqZSR/Gemini-Generated-Image-n2ist3n2ist3n2is.png'); }
.img-bunker { background-image: url('https://i.postimg.cc/52z97505/Hecate-portable.png'); }
.img-custom { background-image: url('https://i.postimg.cc/T3BLhYy5/Gemini-Generated-Image-639u0l639u0l639u.png'); }
.img-veleno { background-image: url('https://i.postimg.cc/6qrwdbwr/Veleno-e-champagne.png'); }
.img-ww1 { background-image: url('https://i.postimg.cc/YqCyNypG/ww1.png'); }
.img-hack { background-image: url('https://i.postimg.cc/YqvJgqfB/Hack.png'); }

.card-content {
    padding: 25px;
}

.card-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.tags {
    margin: 15px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background: #333;
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 4px;
}

/* --- CONTACT --- */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}

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

input, textarea {
    width: 100%;
    padding: 15px;
    background: #1f1f1f;
    border: 1px solid #333;
    color: white;
    font-family: 'Roboto', sans-serif; /* Torna a Roboto per leggibilità nei campi */
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid #333;
    color: #666;
    font-size: 0.9rem;
}

/* --- MOBILE & RESPONSIVE --- */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .nav-links { display: none; } 
    .logo { font-size: 1.2rem; letter-spacing: 2px; }
}

.btn.disabled {
    pointer-events: none;
    opacity: 0.5;
    filter: grayscale(1);
    border-style: dashed; /* Per indicare "in costruzione" */
}

/* Cursone che bussa" */
#escabo-logo {
  display: inline-flex;
  align-items: center;
  cursor: pointer;          /* NON grab */
  user-select: none;        /* BLOCCA selezione testo */
  -webkit-user-select: none;
  -moz-user-select: none;
}

#escabo-logo span {
  cursor: pointer;
  user-select: none;
}


/* Dashboard specific styles */
.dashboard .scenario-grid {
  margin-top: 80px; /* sposta le card sotto la banda nera */
}

.dashboard .scenario-card {
  height: auto; /* mantiene le stesse dimensioni della home */
}