/* --- RESET E STILI GLOBALI --- */
:root {
    --primary-color: #ffffff;
    --secondary-color: #fca311; /* Un colore d'accento che contrasta bene col nero */
    --background-dark: #121212;
    --background-light: #1e1e1e;
    --text-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-dark);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 { font-size: 2.8rem; line-height: 1.2; }
h2 { font-size: 2.2rem; text-align: center; margin-bottom: 40px; }
p { margin-bottom: 1rem; }
a { color: var(--secondary-color); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.section { padding: 80px 0; }
.section-dark { background-color: var(--background-light); }
.subtitle { text-align: center; margin-top: -30px; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--background-dark);
    padding: 12px 25px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
.btn:hover { background-color: #ffb742; transform: translateY(-2px); }

/* --- ANIMAZIONI --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-active {
    opacity: 1;
    transform: translateY(0);
}

/* --- HEADER --- */
.header {
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
.header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { height: 80px; width: auto; }

.nav { display: none; } /* Nascosto su mobile, gestito da JS e Media Query */
.hamburger { display: flex; flex-direction: column; justify-content: space-around; width: 30px; height: 25px; background: transparent; border: none; cursor: pointer; z-index: 1001; }
.hamburger span { width: 100%; height: 3px; background-color: var(--primary-color); border-radius: 5px; transition: all 0.3s ease-in-out; }
.hamburger.active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

.nav.active { display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; width: 100%; background-color: var(--background-light); }
.nav a { color: var(--primary-color); padding: 15px 20px; text-align: center; border-bottom: 1px solid #333; text-transform: uppercase; }
.nav a:hover { background-color: var(--secondary-color); color: var(--background-dark); }

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    background: linear-gradient(rgba(18, 18, 18, 0.7), rgba(18, 18, 18, 0.7)), url('../img/hero-bg.jpg') no-repeat center center/cover;
}
.hero-content p { font-size: 1.2rem; max-width: 600px; margin: 20px auto 30px auto; }

/* --- SERVIZI --- */
.services-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.service-card { background-color: var(--background-light); padding: 30px; border-radius: 8px; border-left: 5px solid var(--secondary-color); }

/* --- CHI SIAMO --- */
.about-content h3 { margin-bottom: 15px; margin-top: 30px; }
.about-content h3:first-child { margin-top: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.stat-item { text-align: center; }
.stat-number { font-size: 2.5rem; font-weight: bold; color: var(--secondary-color); font-family: 'Anton', sans-serif; }
.stat-label { font-size: 0.9rem; color: #aaa; margin-top: 5px; }

/* --- PORTFOLIO --- */
.portfolio-grid { display: grid; grid-template-columns: 1fr; gap: 15px; }
.portfolio-grid img { 
    width: 100%; 
    height: 250px; 
    object-fit: cover; 
    border-radius: 8px; 
    transition: transform 0.3s ease; 
    cursor: pointer;
}
.portfolio-grid img:hover { transform: scale(1.05); }

/* --- TESTIMONIANZE --- */
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.testimonial-card { background-color: var(--background-light); padding: 30px; border-radius: 8px; border-left: 5px solid var(--secondary-color); }
.testimonial-content .fas { color: var(--secondary-color); font-size: 1.5rem; margin-bottom: 15px; }
.testimonial-content p { font-style: italic; margin-bottom: 20px; line-height: 1.7; }
.testimonial-author strong { color: var(--secondary-color); }
.testimonial-author span { display: block; font-size: 0.9rem; color: #aaa; margin-top: 5px; }

/* --- LIGHTBOX --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}
.lightbox-close:hover { color: var(--secondary-color); }
#lightbox-img {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 8px;
}
#lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 20px;
    font-size: 1.1rem;
    max-width: 80%;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}
.lightbox-prev, .lightbox-next {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    pointer-events: all;
}
.lightbox-prev:hover, .lightbox-next:hover { background-color: var(--secondary-color); }

/* --- PULSANTE WHATSAPP --- */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}
.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.whatsapp-btn i {
    color: white;
    font-size: 1.8rem;
}

/* --- CONTATTI --- */
.contact-wrapper { display: flex; flex-direction: column; gap: 40px; }
.contact-info p { margin-bottom: 15px; }
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label { display: block; margin-bottom: 5px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px; background-color: var(--background-light); border: 1px solid #444; color: var(--text-color); border-radius: 5px; font-size: 1rem; }
.success-message { color: #2ecc71; background-color: #2c3e50; padding: 10px; border-radius: 5px; text-align: center; }
.error-message { color: #e74c3c; background-color: #3e2c2c; padding: 10px; border-radius: 5px; text-align: center; }

/* --- FOOTER --- */
.footer { background-color: var(--background-light); text-align: center; padding: 30px 20px; font-size: 0.9rem; color: #aaa; }
.footer p { margin-bottom: 5px; }

/* --- MEDIA QUERIES (Per schermi più grandi) --- */
@media (min-width: 768px) {
    h1 { font-size: 4rem; }
    .hamburger { display: none; }
    .nav { display: flex; position: static; width: auto; background: none; flex-direction: row; }
    .nav a { border: none; padding: 0 15px; }
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
    .portfolio-grid img { height: 200px; }
    .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
    .contact-wrapper { flex-direction: row; gap: 60px; }
    .contact-info, .contact-form { flex: 1; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    #lightbox-caption { font-size: 1.3rem; }
}