/* RESET E VARIABILI */
:root {
    --primary-color: #e65100; /* Arancione Fuoco */
    --secondary-color: #212121; /* Grigio Scuro/Fuliggine */
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --text-color: #333333;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --container-width: 1100px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

/* UTILITIES */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: bold;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}
.btn-primary:hover { background-color: #bf360c; }

.btn-whatsapp {
    background-color: #25D366;
    color: var(--white);
    margin-left: 10px;
}
.btn-whatsapp:hover { background-color: #128C7E; }

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

/* HEADER */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
}
.logo .highlight { color: var(--primary-color); }

.main-nav ul {
    display: flex;
    gap: 20px;
    align-items: center;
}

.main-nav a {
    font-weight: 500;
    transition: var(--transition);
}
.main-nav a:hover { color: var(--primary-color); }

.btn-nav {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 8px 16px;
    border-radius: 4px;
}

.hamburger { display: none; cursor: pointer; }

/* HERO SECTION */
.hero-section {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    /* Colore di riserva se l'immagine non carica subito */
    background-color: #333; 
    /* Immagine di sfondo corretta */
    background-image: url('hero-bg.webp'); 
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6); /* Scurisce l'immagine per leggere il testo */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* TRUST SECTION */
.trust-section { padding: 60px 0; background-color: var(--light-bg); }
.trust-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}
.stat-box {
    background: var(--white);
    padding: 20px;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 10px;
}
.stat-number { display: block; font-size: 2rem; font-weight: bold; color: var(--primary-color); }

/* SERVICES */
.services-section { padding: 80px 0; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.icon-box {
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* METODO */
.method-section { padding: 80px 0; background-color: var(--secondary-color); color: var(--white); }
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* --- AGGIUNGI QUESTO BLOCCO QUI SOTTO --- */
.method-image img {
    max-width: 100%; /* L'immagine non supererà mai la larghezza della sua colonna */
    height: auto;    /* L'altezza si adatta in proporzione per non deformare la foto */
    display: block;  /* Rimuove piccoli spazi indesiderati sotto l'immagine */
    border-radius: var(--border-radius); /* Arrotonda gli angoli (opzionale, per coerenza) */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); /* Un'ombra per farla risaltare sullo sfondo scuro */
}
/* ---------------------------------------- */

.img-placeholder {
   /* ...questo puoi anche cancellarlo se hai messo l'immagine vera... */
    width: 100%;
    /* ... */
}
.section-title-white { color: var(--white); }
.check-list li { margin-bottom: 15px; }

/* ZONES */
.zones-section { padding: 60px 0; background: var(--light-bg); text-align: center; }
.zones-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.zone-card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    min-width: 250px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* FAQ */
.faq-section { padding: 80px 0; }
.faq-container { max-width: 800px; margin: 0 auto; }
details {
    background: var(--light-bg);
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
}
summary {
    padding: 20px;
    font-weight: bold;
    cursor: pointer;
    list-style: none; /* Rimuove freccina default */
    position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
    color: var(--primary-color);
}
details[open] summary::after { content: '-'; }
details p {
    padding: 0 20px 20px 20px;
    color: #555;
    border-top: 1px solid #eee;
    margin-top: 10px;
}

/* --- NUOVA SEZIONE: SICUREZZA --- */
.safety-section {
    padding: 80px 0;
    background-color: var(--white);
    border-bottom: 1px solid #eee;
}

.safety-intro {
    text-align: center;
    max-width: 700px;
    margin: -20px auto 50px auto; /* Avvicina al titolo e spinge giù la griglia */
    color: #666;
    font-size: 1.1rem;
}

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

.safety-card {
    background: #fff;
    padding: 30px;
    border-left: 4px solid var(--primary-color); /* Linea arancione laterale */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: 4px;
    transition: var(--transition);
}

.safety-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.safety-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

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

/* --- NUOVA SEZIONE: RECENSIONI --- */
.reviews-section {
    padding: 80px 0;
    background-color: var(--secondary-color); /* Sfondo scuro per stacco visivo */
    color: var(--white);
    text-align: center;
}

.reviews-section .section-title {
    color: var(--white); /* Forza il titolo bianco su sfondo scuro */
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.review-card {
    background: rgba(255, 255, 255, 0.1); /* Sfondo semitrasparente */
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: left;
}

.stars {
    color: #FFD700; /* Colore Oro */
    font-size: 1.2rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.review-text {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
    opacity: 0.9;
}

.review-author {
    font-weight: bold;
    color: var(--primary-color);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 10px 30px;
    border-radius: 50px;
    transition: var(--transition);
    display: inline-block;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--secondary-color);
}

/* --- SEZIONE SEO LOCALE --- */
.seo-locations-section {
    padding: 60px 0;
    background-color: #f9f9f9; /* Grigio molto chiaro, quasi bianco */
    border-top: 1px solid #eee;
    font-size: 0.9rem; /* Testo leggermente più piccolo del normale */
}

.seo-title {
    text-align: center;
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.seo-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.seo-col h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

.seo-col ul {
    list-style: none;
    padding: 0;
}

.seo-col li {
    margin-bottom: 8px;
    color: #555;
    padding-left: 0;
}

.seo-col li::before {
    content: "•";
    color: var(--primary-color);
    margin-right: 8px;
}

/* Tag Keywords Orizzontali */
.seo-tags {
    text-align: center;
    border-top: 1px solid #ddd;
    padding-top: 20px;
    color: #777;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.tag {
    background: #fff;
    border: 1px solid #ddd;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* FOOTER */
footer { background: #1a1a1a; color: #ccc; padding: 60px 0 20px 0; }
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h4 { color: var(--white); margin-bottom: 20px; }
.copyright { text-align: center; border-top: 1px solid #333; padding-top: 20px; font-size: 0.9rem; }

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 1001;
    }
    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--secondary-color);
        margin: 5px 0;
        transition: var(--transition);
    }
    
    .main-nav ul {
        position: fixed;
        top: 0; right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: var(--transition);
    }
    .main-nav ul.active { right: 0; }
    
    .hero-content h1 { font-size: 2rem; }
    .hero-buttons { display: flex; flex-direction: column; gap: 10px; }
    .btn-whatsapp { margin-left: 0; }
    
    .trust-grid, .split-layout { grid-template-columns: 1fr; }
    .method-image { order: -1; } /* Immagine sopra su mobile */
}

/* --- ANIMAZIONE MENU X (Incolla questo alla fine del CSS) --- */

/* La linea superiore ruota e scende */
.hamburger.toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

/* La linea centrale sparisce */
.hamburger.toggle span:nth-child(2) {
    opacity: 0;
}

/* La linea inferiore ruota e sale */
.hamburger.toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* --- COOKIE BANNER (CORRETTO PER MOBILE) --- */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: #222;
    color: #fff;
    padding: 15px 20px; /* Padding ridotto leggermente */
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    transition: bottom 0.5s ease-in-out;
    border-top: 3px solid var(--primary-color);
    
    /* FONDAMENTALE PER NON SBALLARE LA LARGHEZZA */
    box-sizing: border-box; 
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%; /* Assicura che usi lo spazio disponibile */
}

.cookie-text {
    flex: 1; /* Il testo occupa tutto lo spazio disponibile */
}

.cookie-text p {
    font-size: 0.85rem; /* Testo leggermente più piccolo per mobile */
    margin: 0;
    line-height: 1.4;
    color: #ddd;
}

.cookie-text a {
    color: var(--primary-color);
    text-decoration: underline;
    white-space: nowrap; /* Evita che il link si spezzi male */
}

.cookie-buttons {
    flex-shrink: 0; /* Il bottone non si schiaccia */
}

.btn-accept {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 25px; /* Tasto più facile da cliccare col dito */
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-accept:hover {
    background-color: #bf360c;
}

/* VERSIONE MOBILE SPECIFICA */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 20px;
    }

    .cookie-content {
        flex-direction: column; /* Impila testo e bottone */
        text-align: center;
        gap: 15px;
    }

    .cookie-text p {
        font-size: 0.9rem;
    }

    .cookie-buttons {
        width: 100%;
    }

    .btn-accept {
        width: 100%; /* Tasto a larghezza piena su mobile */
        padding: 12px;
    }
}

/* --- SEZIONE APPROFONDIMENTO TECNICO --- */
.info-technical-section {
    padding: 80px 0;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.info-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 15px;
    border-left: 4px solid var(--secondary-color);
    padding-left: 15px;
}

.info-card p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.info-card ul {
    list-style: disc;
    padding-left: 20px;
    color: #555;
}

.info-card li {
    margin-bottom: 8px;
}

/* --- SEZIONE GUIDA LEGNA/PELLET --- */
.info-guide-section {
    padding: 80px 0;
    background-color: #fcfcfc; /* Grigio chiarissimo */
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
    color: #666;
    font-size: 1.1rem;
}

.guide-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.guide-col {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.guide-header {
    padding: 20px;
    color: #fff;
    text-align: center;
}

.wood-bg { background-color: #8D6E63; } /* Marrone Legno */
.pellet-bg { background-color: #607D8B; } /* Grigio/Blu Tecnico */

.guide-header h3 { margin: 0; font-size: 1.5rem; }

.guide-body { padding: 30px; }

.guide-body h4 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    margin-top: 20px;
    font-size: 1.1rem;
}
.guide-body h4:first-child { margin-top: 0; }

.guide-body p { color: #666; line-height: 1.6; font-size: 0.95rem; }

.pro-tip {
    margin-top: 25px;
    background-color: #fff3e0; /* Arancione chiarissimo */
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    font-size: 0.9rem;
    color: #d84315;
}

/* Adattamento Mobile per la Guida */
@media (max-width: 768px) {
    .guide-wrapper {
        grid-template-columns: 1fr;
    }
}