:root {
    --primary-gold: #d4af37;
    --accent-yellow: #ffcc00;
    --dark-bg: #0f0f0f;
    --card-bg: #1a1a1a;
    --text-light: #ffffff;
    --text-muted: #b3b3b3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(15, 15, 15, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo-brand {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 700; /* Più Bold come richiesto */
    font-size: 1.05rem; /* Più grande da computer */
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a:hover { color: var(--accent-yellow); }

.btn-gold-nav {
    background: var(--accent-yellow);
    color: #000;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.85rem;
}

.mobile-cta { display: none; }

/* HERO SECTION - INTERVENTO CHIRURGICO */
.hero {
    height: 100vh;
    /* Aggiunto gradiente laterale per proteggere la leggibilità del testo */
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%), url('home-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    padding: 0 5%;
    padding-top: 80px;
}

.hero-content { max-width: 800px; z-index: 2; }

.trust-stars { color: var(--accent-yellow); margin-bottom: 15px; font-size: 0.9rem; }

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5); /* Protezione testo */
}

.hero h1 span { color: var(--accent-yellow); display: block; }

.hero p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 30px; max-width: 600px; text-shadow: 1px 1px 5px rgba(0,0,0,0.5); }

.hero-btns { display: flex; gap: 20px; margin-bottom: 40px; }

.btn-main {
    background: var(--accent-yellow);
    color: #000;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-main:hover { transform: scale(1.05); }

.btn-outline {
    border: 2px solid var(--text-light);
    color: var(--text-light);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    background: rgba(0,0,0,0.2); /* Leggera base per staccare dal fondo */
}

.hero-features { display: flex; gap: 30px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }
.hero-features span { font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.hero-features i { color: var(--accent-yellow); }

/* SERVICES SECTION */
.services-section { padding: 100px 5%; text-align: center; }
.section-tag { color: var(--accent-yellow); font-weight: 700; font-size: 0.8rem; letter-spacing: 2px; }
.section-title { font-size: 2.5rem; margin: 10px 0 40px; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    text-align: left;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.05);
}

.service-card:hover { transform: translateY(-10px); border-color: var(--accent-yellow); }

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.icon-blue { background: #0066ff; color: white; }
.icon-yellow { background: var(--accent-yellow); color: black; }
.icon-red { background: #ff4444; color: white; }

.service-card h3 { margin-bottom: 15px; font-size: 1.5rem; }
.service-card ul { list-style: none; margin-bottom: 25px; }
.service-card ul li { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 8px; }
.service-card ul li i { color: var(--accent-yellow); margin-right: 10px; }

.btn-text { color: var(--accent-yellow); text-decoration: none; font-weight: 700; font-size: 0.9rem; }

/* TASTO PRONTO INTERVENTO ROSSO */
.btn-call-red {
    background: #ff0000;
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    border: none;
}
.btn-call-red:hover { background: #cc0000; transform: scale(1.05); }

/* MAP SECTION */
.map-section { padding: 0; background: #000; height: 400px; width: 100%; }

/* CTA BOX - STILI BASE (PC) */
.cta-box-section {
    padding: 80px 5%;
}

.cta-container {
    background: linear-gradient(145deg, #1a1a1a, #000);
    padding: 60px;
    border-radius: 30px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.cta-title {
    font-size: 3rem;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
}

.cta-text {
    color: var(--text-muted);
    margin: 0 auto 35px auto;
    max-width: 700px;
    font-size: 1.1rem;
}

.cta-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* FOOTER NUOVO */
footer#contatti {
    background: #0a0a0a;
    padding: 80px 5% 30px;
    border-top: 2px solid rgba(255,255,255,0.05);
}

.footer-container { max-width: 1200px; margin: 0 auto; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-info h4, .footer-links h4 {
    color: var(--accent-yellow);
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.footer-info ul, .footer-links ul { list-style: none; }
.footer-info ul li { margin-bottom: 15px; color: var(--text-muted); font-size: 0.9rem; display: flex; gap: 10px; }
.footer-links ul li { margin-bottom: 12px; }
.footer-links ul li a { color: var(--text-muted); text-decoration: none; transition: 0.3s; font-size: 0.9rem; }
.footer-links ul li a:hover { color: #fff; padding-left: 5px; }

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #555;
    font-size: 0.8rem;
}

/* WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    z-index: 1000;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* RESPONSIVE & MOBILE MENU CORRETTO */
.menu-toggle { 
    display: none; /* CORREZIONE: Nasconde il burger su PC */
    cursor: pointer; 
    color: white; 
    font-size: 1.5rem; 
}

/* ADATTAMENTI TABLET E SCHERMI MEDI */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-info ul li { justify-content: center; }
    .hero h1 { font-size: 3rem; }
}

/* ADATTAMENTI SPECIFICI PER SMARTPHONE (NON TOCCA IL PC) */
@media (max-width: 768px) {
    /* INTERVENTO CHIRURGICO MOBILE HERO */
    .hero { 
        background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)), url('home-bg.jpg');
        background-position: 85% center !important; /* Sposta l'inquadratura sul tecnico e Duomo */
        background-attachment: scroll; 
        padding-top: 100px; 
        text-align: center; 
        justify-content: center; 
    }
    .hero h1 { font-size: 2.3rem; }
    .hero p { font-size: 1rem; margin-bottom: 25px; }
    .hero-content { align-items: center; display: flex; flex-direction: column; }
    
    .menu-toggle { display: block; } /* Appare SOLO su telefono/tablet */

    .desktop-only { display: none; }
    .mobile-cta { display: block; margin-top: 10px; }

    /* MENU LATERALE MOBILE */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 15, 15, 0.98);
        padding: 20px;
        text-align: center;
        border-bottom: 2px solid var(--accent-yellow);
    }

    .nav-links.active { display: flex; }
    .nav-links li { margin: 15px 0; }
    .nav-links a { font-size: 1.1rem; }

    /* BOTTONI FULL-WIDTH SU TELEFONO PER FACILITARE IL TOCCO */
    .hero-btns { flex-direction: column; width: 100%; }
    .hero-btns .btn-main, .hero-btns .btn-outline { width: 100%; justify-content: center; text-align: center; }
    .btn-call-red { width: 100%; justify-content: center; margin-bottom: 15px; }
    
    .hero-features { flex-direction: column; align-items: center; gap: 15px; }
    
    /* RIDUZIONE SPAZIATURE E PADDING GIGANTI SU TELEFONO */
    .services-section { padding: 60px 5%; }
    .section-title { font-size: 2rem; margin-bottom: 30px; }
    .service-card { padding: 25px; text-align: center; } /* Testo centrato e box più compatti */
    .icon-box { margin: 0 auto 20px auto; }
    
    /* ADATTAMENTO PER TELEFONO (MOBILE) BOX CTA */
    .cta-box-section {
        padding: 40px 5%; /* Meno spazio esterno */
    }

    .cta-container {
        padding: 40px 20px; /* Più respiro interno */
        border-radius: 20px;
    }

    .cta-title {
        font-size: 1.8rem; /* Titolo più leggibile */
        line-height: 1.2;
    }

    .cta-text {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .cta-btns {
        flex-direction: column; /* Bottoni uno sopra l'altro */
        gap: 15px;
        width: 100%;
    }

    .cta-btns .btn-main, 
    .cta-btns .btn-outline {
        width: 100%; /* Bottoni larghi tutto lo schermo */
        justify-content: center;
        padding: 18px; /* Più facili da cliccare */
    }
    
    footer#contatti { padding: 60px 5% 30px; }
}

/* ADATTAMENTI PER SCHERMI MOLTO PICCOLI (es. iPhone SE) */
@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .logo-brand { font-size: 1.2rem; }
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
        right: 20px;
    }
}