/* --- VARIABILI E RESET --- */
:root {
    --accent: #0099ff;
    --accent-hover: #007acc;
    --dark: #121212;
    --grey: #1f1f1f;
    --white: #ffffff;
    --light-grey: #f4f4f4;
}

* { margin:0; padding:0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--white); color: var(--dark); line-height: 1.6; font-family: 'Inter', sans-serif; overflow-x: hidden; width: 100%; }
h1, h2, h3, h4, .brand-name { font-family: 'Montserrat', sans-serif; text-transform: uppercase; letter-spacing: -0.5px; }
a { text-decoration: none; transition: all 0.3s ease; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* --- NAVBAR & DROPDOWN --- */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 5%; background: rgba(18,18,18,0.98); position: fixed;
    width: 100%; top:0; z-index: 1000; border-bottom: 2px solid var(--accent);
}
.brand-name { font-size: 24px; color: var(--white); display: block; line-height: 1; }
.brand-sub { font-size: 10px; color: var(--accent); letter-spacing: 2px; font-weight: 800; }
.logo { display: flex; align-items: center; }
.logo i { color: var(--accent); font-size: 30px; margin-right: 12px; }

.menu-right { display: flex; align-items: center; }
.nav-links { display: flex; list-style: none; margin-right: 20px; align-items: center; }
.nav-links li a { color: white; margin: 0 15px; font-weight: 600; font-size: 14px; text-transform: uppercase; }

/* Tendina Desktop - OTTIMIZZATA */
.dropdown { position: relative; }
.dropdown-content {
    display: none; position: absolute; background: #1a1a1a; 
    min-width: 240px; top: 100%; left: 0; box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    border-top: 3px solid var(--accent); z-index: 100;
}
.dropdown-content a { color: white !important; padding: 12px 16px; display: block; font-size: 12px !important; border-bottom: 1px solid #333; margin: 0 !important; text-align: left; }
.dropdown-content a:hover { background: var(--accent); }
.dropdown:hover .dropdown-content { display: block; }

.mobile-only-cta { display: none; }

.cta-nav { background: #e60000; color: white; padding: 12px 24px; border-radius: 4px; font-weight: 900; font-size: 13px; white-space: nowrap; animation: pulse-red 2s infinite;}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(230, 0, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(230, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 0, 0, 0); }
}

/* --- HERO - OTTIMIZZATA PER DESKTOP (Emanuele in vista) --- */
.hero {
    min-height: 100vh; 
    background: url('img/hero-bg.jpg') no-repeat center 20%/cover; /* 20% sposta l'inquadratura verso l'alto */
    display: flex; align-items: center; position: relative; color: white; padding: 100px 5% 50px;
}
.hero-overlay { position: absolute; top:0; left:0; width:100%; height:100%; background: linear-gradient(to right, rgba(18,18,18,0.95) 0%, rgba(18,18,18,0.7) 50%, rgba(18,18,18,0.3) 100%); }
.hero-container { position: relative; z-index: 2; max-width: 900px; margin-top: 50px; }
.status-badge { background: rgba(0, 153, 255, 0.2); color: var(--accent); padding: 8px 15px; border-radius: 20px; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; border: 1px solid var(--accent); }
.alert-icon { color: #ff3333; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero h1 { font-size: clamp(30px, 6vw, 60px); line-height: 1.1; margin: 20px 0; font-weight: 900; text-shadow: 2px 4px 10px rgba(0,0,0,0.8); }
.hero p { font-size: 18px; max-width: 600px; margin-bottom: 35px; text-shadow: 1px 2px 8px rgba(0,0,0,0.9); }
.hero-actions { display: flex; gap: 15px; flex-wrap: wrap; }
.btn-accent { background: var(--accent); color: white; padding: 15px 30px; border-radius: 5px; font-weight: 900; font-size: 16px; border: none; cursor: pointer; transition: 0.3s;}
.btn-accent:hover { background: var(--accent-hover); }
.btn-outline { border: 2px solid #25D366; background: rgba(37, 211, 102, 0.1); color: white; padding: 15px 30px; border-radius: 5px; font-weight: 700; font-size: 16px; }
.btn-outline:hover { background: #25D366; color: black; }
.hero-features { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 20px; font-weight: 600; font-size: 14px; }
.hero-features i { color: var(--accent); }
.accent { color: var(--accent); }

/* --- SEZIONI --- */
.section-dark { background: var(--dark); color: white; padding: 80px 0; }
.section-light { background: var(--light-grey); padding: 80px 0; }
.section-title { font-size: clamp(26px, 5vw, 42px); text-align: center; margin-bottom: 40px; font-weight: 900; padding: 0 10px; }

/* --- GRID SERVIZI --- */
.grid-services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; }
.card-link { text-decoration: none; color: inherit; display: block; }
.card { background: var(--grey); padding: 30px; border-radius: 10px; border-bottom: 4px solid var(--accent); transition: 0.4s; height: 100%; position: relative;}
.card:hover { transform: translateY(-10px); background: #2a2a2a; }
.card i { font-size: 40px; margin-bottom: 15px; color: var(--accent); display: block; }
.card h3 { font-size: 18px; margin-bottom: 10px; color: white; }
.card p { color: #ccc; font-size: 14px; margin-bottom: 15px;}
.read-more { color: var(--accent); font-weight: 700; font-size: 12px; text-transform: uppercase; }

/* --- RECENSIONI --- */
.rec-subtitle { text-align: center; margin-top: -30px; margin-bottom: 30px; color: #555; font-size: 14px; }
.grid-recensioni { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.card-rec { background: white; border: 1px solid #eee; padding: 15px; border-radius: 8px; height: fit-content; box-shadow: 0 4px 8px rgba(0,0,0,0.03); }
.stars { color: var(--accent); font-size: 14px; display: flex; gap: 2px; margin-bottom: 8px; white-space: nowrap; }
.stars i { display: inline !important; }
.card-rec p { color: #444; font-size: 13px; font-style: italic; margin-bottom: 8px; line-height: 1.4; }
.card-rec h4 { margin: 0; font-size: 12px; color: var(--accent-hover); font-weight: 800; }

/* --- PERCHE NOI --- */
.section-dark-special { background: #1a1a1a; color: white; padding: 80px 0; }
.content-box-center { text-align: center; margin-bottom: 40px; }
.sub-promise { color: var(--accent); font-weight: 800; letter-spacing: 2px; font-size: 12px; display: block; margin-bottom: 10px; }
.features-list-container { max-width: 600px; margin: 0 auto; }
.features-list { list-style: none; padding: 0; }
.features-list li { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; background: rgba(255,255,255,0.03); padding: 15px; border-radius: 8px; }
.features-list li strong { display: block; font-size: 16px; color: var(--accent); }
.features-list li span { color: #ccc; font-size: 13px; }

/* --- CTA ACCENT --- */
.cta-accent-section { background: var(--accent); padding: 80px 0; text-align: center; }
.cta-box { max-width: 800px; margin: 0 auto; padding: 0 20px; }
.cta-tag { background: #e60000; color: white; padding: 5px 15px; border-radius: 50px; font-weight: 900; text-transform: uppercase; font-size: 11px; }
.cta-btns { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin-top: 30px; }
.btn-dark { background: var(--dark); color: white; padding: 18px 35px; border-radius: 8px; font-weight: 800; }
.btn-white { background: white; color: #25D366; padding: 18px 35px; border-radius: 8px; font-weight: 800; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* --- FOOTER --- */
footer { background: #0a0a0a; color: #fff; padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.footer-brand h3 { font-size: 20px; margin-bottom: 15px; }
.footer-brand p { color: #888; font-size: 14px; }
.footer-info h4, .footer-links h4 { font-size: 14px; letter-spacing: 1px; margin-bottom: 20px; }
.footer-info ul, .footer-links ul { list-style: none; font-size: 14px; color: #888; }
.footer-info li, .footer-links li { margin-bottom: 10px; }
.footer-info a { color: white; font-weight: 700; }
.footer-bottom { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid #222; font-size: 12px; color: #777; }

/* --- WHATSAPP FLOATING BUTTON (VERSIONE UNIVERSALE) --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

/* Compatibilità con mobile-whatsapp-btn se usato nel tuo HTML */
.mobile-whatsapp-btn { 
    position: fixed; bottom: 20px; right: 20px; 
    background: #25D366; color: white; width: 60px; height: 60px; 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    font-size: 32px; z-index: 2000; box-shadow: 0 8px 20px rgba(37,211,102,0.4); 
    animation: pulse-whatsapp 1.5s infinite; 
}

@keyframes pulse-whatsapp { 0% { transform: scale(1); } 70% { transform: scale(1.1); box-shadow: 0 0 0 15px rgba(37,211,102,0); } 100% { transform: scale(1); } }

/* --- MEDIA QUERIES --- */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; }
.hamburger span { width: 25px; height: 3px; background: white; transition: 0.3s; }

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links {
        position: fixed; top: 0; right: -100%; background: #121212;
        width: 80%; height: 100vh; flex-direction: column; padding: 80px 30px;
        transition: 0.4s; border-left: 2px solid var(--accent); z-index: 999;
    }
    .nav-links.active { right: 0; }
    .nav-links li { margin: 15px 0; width: 100%; text-align: left; }
    
    /* Tendina Mobile */
    .dropdown-content { 
        position: static; 
        display: none; 
        background: rgba(255,255,255,0.05); 
        box-shadow: none; border: none; padding-left: 15px; margin-top: 10px;
    }
    .dropdown.active .dropdown-content { display: block; }
    .dropdown-content a { border: none; padding: 10px 0; color: var(--accent) !important; font-size: 14px !important; }
    
    .cta-nav.desktop-only { display: none; }
    .mobile-only-cta { display: block; border-top: 1px solid #333; padding-top: 10px; }
    .mobile-only-cta a { color: #ff3333 !important; font-weight: 800; }

    .grid-services, .grid-recensioni { grid-template-columns: 1fr; }
    
    /* MODIFICA FOTO HERO PER MOBILE */
    .hero { 
        padding-top: 100px; 
        text-align: center; 
        background-position: 80% center !important; /* Sposta la foto per inquadrare il soggetto a destra */
        background-size: cover;
    }
    
    .hero h1 { font-size: 32px; }
    .features-list li { flex-direction: column; text-align: center; gap: 10px; }

    /* Sposta il bottone whatsapp su mobile per non coprire altri tasti */
    .whatsapp-float, .mobile-whatsapp-btn {
        bottom: 85px;
    }
}