/* ==========================================
   1. VARIABILI E RESET GLOBALE
   ========================================== */
:root {
    --primary-blue: #1A365D;
    --secondary-blue: #2B6CB0;
    --light-blue: #EBF8FF;
    --accent-green: #38A169;
    --text-dark: #2D3748;
    --bg-light: #F7FAFC;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    background-color: #1A365D; /* Il blu del tuo header */
    /* Nessun blocco totale dello scroll, usiamo un comportamento nativo fluido */
}

body {
    color: var(--text-dark);
    /* Cambia questo con il colore di sfondo del tuo header/hero (es. se l'header è blu scuro metti il codice del blu, altrimenti se vuoi che lo sfondo elastico sia bianco o grigio chiaro puoi regolarlo qui) */
    background-color: #1A365D; /* Sostituisci con il colore di sfondo principale del tuo header o della tua hero */
    line-height: 1.6;
}

/* IMPORTANTE: Assicuriamoci che il contenitore principale o la prima sezione dopo il body abbia lo sfondo bianco, così il corpo della pagina resta bianco ma la "banda elastica" prende il colore dell'header */
.page-hero, header + section, header + div {
    background-color: var(--white);
}
/* BLINDAGGIO ANTI-SFORAMENTO MOBILE */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

section, .navbar, footer {
    width: 100%;
    max-width: 100%;
}


/* ==========================================
   2. HEADER & NAVBAR (DESKTOP)
   ========================================== */
/* --- HEADER FISSO (FORCE STICKY) --- */
header {
    position: fixed !important; /* Forza la posizione fissa */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999 !important; /* Massimo livello di sovrapposizione */
    background-color: #1A365D; /* Assicurati che lo sfondo sia pieno (non trasparente) */
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* IMPORTANTE: Dobbiamo dare uno spazio al corpo della pagina */
/* Altrimenti l'header fisso coprirebbe la parte iniziale del contenuto */
body {
    margin: 0;
    padding: 0; /* Via il padding-top precedente */
    background-color: #1A365D;
}

{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 3rem;
    position: relative;
}

/* Stile Logo e Nome */
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--white);
    z-index: 2;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Rende l'immagine completamente bianca */
}

.logo-text {
    font-size: 1.3rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* Pulsante Hamburger (Nascosto su Desktop) */
.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1002;
    background: none;
    border: none;
    padding: 0;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Menu di Navigazione Principale (Desktop) */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
}

.nav-links li {
    position: relative; /* Fondamentale per ancorare il sottomenu */
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--light-blue);
}


/* ==========================================
   3. MENU A TENDINA (DROPDOWN)
   ========================================== */
/* Sotto-menu a tendina nascosto di default */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-radius: 8px;
    list-style: none;
    /* Usiamo un padding-top generoso per coprire lo spazio ed evitare il distacco del mouse */
    padding: 0.75rem 0; 
    z-index: 1000;
}

/* Mostra il menu al passaggio del mouse (PC) oppure quando è attiva la classe via JS */
.dropdown:hover .dropdown-menu,
.dropdown.active-dropdown .dropdown-menu {
    display: block !important;
}

/* Stile dei singoli link dentro la tendina */
.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    color: var(--text-dark);
    padding: 0.75rem 1.25rem;
    display: block;
    font-size: 0.95rem;
    white-space: nowrap;
    font-weight: 400;
    transition: background-color 0.2s, color 0.2s;
}

.dropdown-menu li a:hover {
    background-color: var(--bg-light);
    color: var(--primary-blue);
}


/* ==========================================
   4. PULSANTE CTA HEADER
   ========================================== */
.btn-header-cta {
    background-color: var(--white);
    color: var(--primary-blue);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
    z-index: 2;
}

.btn-header-cta:hover {
    background-color: var(--light-blue);
}


/* ==========================================
   5. RESPONSIVE MOBILE (Sotto i 768px) - MENU HAMBURGER
   ========================================== */
@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 1rem;
        position: relative; /* Fondamentale per posizionare correttamente il menu a tendina sotto la navbar */
    }

    .logo-img {
        height: 32px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }

    /* Nasconde la CTA grande nell'header mobile */
    .btn-header-cta {
        display: none; 
    }

    /* Mostra l'hamburger */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        cursor: pointer;
        z-index: 1002;
    }

    /* Stile delle barre del menu hamburger */
    .menu-toggle .bar {
        height: 3px;
        width: 100%;
        background-color: var(--white, #ffffff); /* Assicurati che sia del colore giusto rispetto al tuo header */
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    /* Menu di navigazione nascosto di default su mobile */
    .nav-links {
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-blue);
        flex-direction: column;
        align-items: center;
        padding: 1.5rem 0;
        gap: 1.2rem;
        box-shadow: 0 10px 15px rgba(0,0,0,0.3);
        z-index: 1001;
        margin: 0;
        list-style: none;
    }

    /* Classe che si attiva con il JavaScript quando clicchi sull'hamburger */
    .nav-links.active {
        display: flex !important;
    }

    .nav-links a {
        font-size: 1.1rem;
        color: var(--white);
        text-decoration: none;
    }

    /* Adattamento tendina interna (es. Servizi / Infestanti) su mobile */
    .dropdown {
        width: 100%;
        text-align: center;
    }

    .dropdown-menu {
        display: none; /* Se vuoi che i sottomenu siano chiusi e si aprano al click o siano visibili a seconda della tua struttura */
        position: static;
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.05);
        border-radius: 0;
        margin-top: 0.5rem;
        width: 100%;
        padding: 0;
        list-style: none;
    }

    /* Se preferisci che i sottomenu si aprano quando il genitore è attivo o semplicemente compaiano fluidi */
    .dropdown:hover .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        color: var(--white);
        text-align: center;
        padding: 0.5rem 0;
        display: block;
    }

    .dropdown-menu li a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--white);
    }
}
/* HERO SECTION */
/* HERO SECTION */
.hero {
    background: linear-gradient(rgba(26, 54, 93, 0.68), rgba(26, 54, 93, 0.68)), 
                url('hero.jpg') center/cover no-repeat;
    color: var(--white);
    text-align: center;
    
    /* 1. Spingiamo la hero sotto l'header fisso */
    margin-top: 73px; /* Esattamente l'altezza del tuo header */
    
    /* 2. Occupiamo l'altezza esatta dello schermo rimasta libera */
    min-height: calc(100vh - 73px); 
    
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
}
 
.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-hero {
    margin-top: 73px !important; 
    background-color: #1A365D !important;
    padding-top: 2rem; /* Il padding interno normale */
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.badge-iva {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-blue);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}

.btn-call {
    background-color: var(--secondary-blue);
    color: white;
}

/* SERVICES SECTION */
.services {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    color: var(--primary-blue);
    font-size: 2.2rem;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    border-top: 4px solid var(--primary-blue);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 0.95rem;
    color: #4A5568;
    margin-bottom: 1.5rem;
}

.btn-card {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

/* WHY US SECTION */
.why-us {
    background-color: var(--light-blue);
    padding: 4rem 2rem;
    margin-top: 4rem;
}

.why-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.why-title {
    margin-bottom: 1rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.why-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.why-item i {
    font-size: 2rem;
    color: var(--accent-green);
    margin-bottom: 1rem;
}

.why-item h4 {
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.why-item p {
    font-size: 0.9rem;
    color: #4A5568;
    margin-top: 0.5rem;
}

.reviews-section {
    padding: 4rem 1rem;
    background-color: #f9fbfd;
}

.google-rating-summary {
    text-align: center;
    margin-bottom: 2.5rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.review-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Stile dell'avatar con le iniziali (stile Google) */
.reviewer-avatar {
    width: 42px;
    height: 42px;
    background-color: #1a365d; /* Blu istituzionale */
    color: white;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.reviewer-info h4 {
    font-size: 1rem;
    margin: 0;
    color: #2d3748;
}

.review-source {
    font-size: 0.75rem;
    color: #718096;
}

.stars.small {
    color: #f6ad55;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.review-text {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.5;
}

/* CONTACT SECTION / FORM */
.contact-section {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.contact-form {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.contact-subtitle {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-phone {
    color: var(--secondary-blue);
    font-weight: bold;
    text-decoration: none;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #CBD5E0;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    height: 120px;
}

.form-submit {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.form-submit:hover {
    background-color: var(--secondary-blue);
}

/* --- PULSANTE WHATSAPP FISSO --- */
/* --- PULSANTE WHATSAPP FISSO IN BASSO A SX --- */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 9999;
    background-color: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-family: inherit;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.05);
    background-color: #20ba5a;
}

.whatsapp-float svg {
    width: 24px;
    height: 24px;
    fill: white;
    flex-shrink: 0;
}

/* FOOTER */
footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 3rem 2rem 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 2rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-column p, .footer-column a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
}

/* FORZATURA TOTALE LARGHEZZA MOBILE */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

body * {
    max-width: 100vw; /* Nessun elemento al mondo può essere più largo dello schermo */
}






/* ==========================================
   1. PAGINA DISINFESTAZIONI
   ========================================== */
:root {
    --primary-blue: #1A365D;
    --secondary-blue: #2B6CB0;
    --light-blue: #EBF8FF;
    --accent-green: #38A169;
    --text-dark: #2D3748;
    --bg-light: #F7FAFC;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

section, .navbar, footer {
    width: 100%;
    max-width: 100%;
}


/* ==========================================
   2. HEADER & NAVBAR (DESKTOP)
   ========================================== */
header {
    background-color: var(--primary-blue);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 3rem;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--white);
    z-index: 2;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.logo-text {
    font-size: 1.3rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1002;
    background: none;
    border: none;
    padding: 0;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
    z-index: 1;
    margin: 0;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--light-blue);
}


/* ==========================================
   3. MENU A TENDINA (DROPDOWN)
   ========================================== */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-radius: 8px;
    list-style: none;
    padding: 0.5rem 0;
    z-index: 1000;
    margin-top: 0.5rem;
}

.dropdown:hover .dropdown-menu,
.dropdown.active-dropdown .dropdown-menu {
    display: block !important;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    color: var(--text-dark);
    padding: 0.75rem 1.25rem;
    display: block;
    font-size: 0.95rem;
    white-space: nowrap;
    font-weight: 400;
    transition: background-color 0.2s, color 0.2s;
}

.dropdown-menu li a:hover {
    background-color: var(--bg-light);
    color: var(--primary-blue);
}


/* ==========================================
   4. PULSANTE CTA HEADER
   ========================================== */
.btn-header-cta {
    background-color: var(--white);
    color: var(--primary-blue);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
    z-index: 2;
}

.btn-header-cta:hover {
    background-color: var(--light-blue);
}


/* ==========================================
   5. STRUTTURA PAGINA SERVIZI (Hero, Griglia, Form)
   ========================================== */
.page-hero {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
}

.page-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--light-blue);
    display: block;
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--light-blue);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-hero p {
    font-size: 1.1rem;
    color: var(--light-blue);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.service-main-section {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 3rem;
    align-items: start;
}

.service-content h2 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
}

.service-content h3 {
    color: var(--primary-blue);
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

.service-content p {
    margin-bottom: 1.2rem;
    color: var(--text-dark);
    font-size: 1.05rem;
}

/* Card del Form */
.service-form-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: sticky;
    top: 100px;
}

.service-form-card h2 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.form-intro {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Rimuove sottolineatura dal numero di telefono nel form e la riattiva all'hover */
.form-intro a,
.form-container a, 
.quote-form a, 
.form-box a {
    text-decoration: none;
    color: var(--secondary-blue);
    font-weight: bold;
}

.form-intro a:hover,
.form-container a:hover, 
.quote-form a:hover, 
.form-box a:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #CBD5E0;
    border-radius: 6px;
    font-size: 0.95rem;
    color: var(--text-dark);
    background-color: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.15);
}

.form-group-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.form-group-checkbox input {
    margin-top: 0.25rem;
}

.form-group-checkbox label {
    font-size: 0.85rem;
    color: var(--text-dark);
    line-height: 1.4;
}

/* Pulsante Invio del Form coerente */
button[type="submit"], 
.btn-submit, 
input[type="submit"] {
    width: 100%;
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 0.9rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-block;
}

button[type="submit"]:hover, 
.btn-submit:hover, 
input[type="submit"]:hover {
    background-color: var(--secondary-blue);
}


/* ==========================================
   6. FOOTER
   ========================================== */
.footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-content h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--light-blue);
}

.footer-content p {
    font-size: 0.95rem;
    color: #E2E8F0;
    line-height: 1.5;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: #CBD5E0;
}

.footer-bottom a {
    color: var(--light-blue);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}


/* ==========================================
   7. RESPONSIVE MOBILE
   ========================================== */
@media (max-width: 992px) {
    .service-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-form-card {
        position: static;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 1rem;
    }

    .logo-img {
        height: 32px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }

    .btn-header-cta {
        display: none; 
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-blue);
        flex-direction: column;
        align-items: center;
        padding: 1.5rem 0;
        gap: 1.2rem;
        box-shadow: 0 10px 15px rgba(0,0,0,0.3);
        z-index: 1001;
        transform: none;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.05);
        border-radius: 0;
        margin-top: 0.5rem;
    }

    .dropdown-menu li a {
        color: var(--white);
        text-align: center;
    }

    .dropdown-menu li a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--white);
    }
}

/* --- MENU A TENDINA (DROPDOWN) --- */

/* Posizionatore del contenitore principale */
.nav-links .dropdown {
    position: relative;
}

/* Nascondi la tendina di default */
/* --- MENU A TENDINA SENZA BARRA DI SCORRIMENTO --- */
.nav-links .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1A365D; /* Sfondo coordinato con l'header */
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 0 0 8px 8px;
    list-style: none;
    padding: 0.3rem 0; /* Padding ridotto per occupare meno spazio */
    margin: 0;
    z-index: 1000;
}

/* Mostra la tendina al passaggio del mouse */
.nav-links .dropdown:hover .dropdown-menu {
    display: block;
}

/* Stile dei singoli link con altezza ottimizzata per farli star tutti comodi */
.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 7px 18px; /* Spaziatura interna ridotta per compattezza */
    color: white;
    text-decoration: none;
    font-size: 0.9rem; /* Testo leggermente più compatto */
    font-weight: normal;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

/* Effetto hover */
.dropdown-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Stacca la Home sotto l'header fisso */
.hero {
    margin-top: 73px; /* O l'altezza precisa del tuo header */
}

/* Stacca le pagine interne (es. Perizie, Disinfestazioni) per non tagliare le briciole di pane */
.page-hero {
    margin-top: 73px; 
}

/* CORREZIONE SOLO PER SMARTPHONE */
@media screen and (max-width: 768px) {
    /* Azzera qualsiasi margine che crea lo spazio bianco sopra la hero da mobile */
    .hero, .page-hero {
        margin-top: 0 !important;
        padding-top: 70px !important; /* Spazio giusto per non coprire il testo sotto l'header mobile */
    }
    
    body {
    background-color: #ffffff !important;
}