body {
    
    background-color: #166107;
    padding-top: 60px; 
}
@media (max-width: 992px) {
    body {
        padding-top: 60px; 
    }
}
    /*background-image: radial-gradient(#007F5D 2px, transparent 1px); /* puntini */
    /*background-size: 20px 20px; /* puntini */
    /*background-color: transparent;
    /* Un pattern di alberi stilizzati in formato SVG */
   /*  width: 100%;
   /*  height: 400px;
    
    /* Definiamo l'icona dell'albero 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23007F5D' d='M210.6 21c3.1-4.2 8-6.8 13.3-6.9s10.3 2.2 13.5 6.1l120 144c3.3 4 4.3 9.4 2.7 14.3s-6 8.7-11 9.8l-52.1 11.6 82.5 99c3.2 3.8 4.3 9.1 2.9 13.9s-5.9 8.6-10.8 9.7l-80.1 17.8V464c0 13.3-10.7 24-24 24s-24-10.7-24-24V350.5l-80.1-17.8c-4.9-1.1-9.4-4.9-10.8-9.7s-.3-10.1 2.9-13.9l82.5-99-52.1-11.6c-5-1.1-9.4-4.9-11-9.8s-.6-10.3 2.7-14.3l120-144z'/%3E%3C/svg%3E"), 
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23007F5D' d='M210.6 21c3.1-4.2 8-6.8 13.3-6.9s10.3 2.2 13.5 6.1l120 144c3.3 4 4.3 9.4 2.7 14.3s-6 8.7-11 9.8l-52.1 11.6 82.5 99c3.2 3.8 4.3 9.1 2.9 13.9s-5.9 8.6-10.8 9.7l-80.1 17.8V464c0 13.3-10.7 24-24 24s-24-10.7-24-24V350.5l-80.1-17.8c-4.9-1.1-9.4-4.9-10.8-9.7s-.3-10.1 2.9-13.9l82.5-99-52.1-11.6c-5-1.1-9.4-4.9-11-9.8s-.6-10.3 2.7-14.3l120-144z'/%3E%3C/svg%3E");

    /* Dimensione dell'albero */
    /* background-size: 80px 80px;*/
    /* color: var(--tree-color);*/
    /* La magia: la seconda immagine è spostata di metà dimensione (30px) */
   /*  background-position: 0 0, 40px 40px;*/
    
   /*  background-repeat: repeat;*/
}

/* =========================================
   1. HEADER & NAVIGAZIONE
   ========================================= */
.main-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 25px;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo i { color: var(--secondary); font-size: 1.7rem; }

/* NAVIGAZIONE DESKTOP */
.public-nav {
    display: flex;
    align-items: center;
    gap: 2px; /* Spazio ridotto per un allineamento più compatto */
    font-family: 'Inter', sans-serif;
}

/* Allineamento universale per tutti i link della barra */
.public-nav > a, 
.dropdown-trigger {
    text-decoration: none;
    color: #444;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    padding: 2px 5px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.public-nav a:hover, 
.dropdown-trigger:hover { color: var(--secondary); }

/* DROPDOWN DESKTOP */
.dropdown {
    position: relative;
    display: inline-flex; /* Fondamentale per non rompere la riga */
    align-items: center;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 280px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 1000;
    top: 100%;
    left: 0;
    border: 1px solid #eee;
}

.dropdown-content a {
    padding: 12px 20px;
    display: block;
    text-decoration: none;
    color: #444;
    font-size: 0.9rem;
}

@media (min-width: 1101px) {
    .dropdown:hover .dropdown-content {
        display: block;
        animation: fadeIn 0.3s ease;
    }
}

/* PULSANTE CTA */
.btn-cta {
    background: var(--secondary) !important;
    color: black !important;
    padding: 10px 22px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    margin-left: 10px;
}


/* ==========================================================================
   TEXTURE CARTA DA PARATI CON FONT AWESOME
   ========================================================================== */
.hero-section {
    position: relative;
    width: 100%;
    height: 50vh;
    display: flex;
    align-items: center;
    /*justify-content: center;
    /*background: url('https://www.giaccheverdi.veneto.it/new/img/foto/GVV-1.jpeg') no-repeat center center;*/
    background-size: cover;
    color: white;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    z-index: 1;
}

.hero-content { position: relative; z-index: 2; max-width: 900px; padding: 0 20px; }
.hero-content h1 { font-family: 'Montserrat', sans-serif; font-size: 3.5rem; font-weight: 700; margin-bottom: 20px;}

.slider-section { padding: 60px 20px; background: #fff; }
.slider-container {
    max-width: 1100px; margin: 0 auto; position: relative; height: 450px;
    overflow: hidden; border-radius: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.slide { position: absolute; width: 100%; height: 100%; opacity: 0; transition: opacity 0.8s; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: fixed; }

/* =========================================
   3. MOBILE RESPONSIVE
   ========================================= */
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--primary); }

@media (max-width: 1100px) {
    .menu-toggle { display: block; }
    
    .public-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        max-height: 90vh; /* Limita l'altezza all'80% dello schermo */
        overflow-y: auto;          /* Aggiunge la rotella se i titoli sono troppi */
        z-index: 1000;        
    }

    .public-nav.active { display: flex; }

    .public-nav a, .dropdown-trigger {
        width: 100%;
        padding: 15px 0px;
        border-bottom: 1px solid #f0f0f0;
        justify-content: flex-start;
    }

    .dropdown { flex-direction: column; align-items: flex-start; width: 100%; }
    
    .dropdown-content {
        position: static;
        display: block;
        background: #f9f9f9;
        padding-left: 10px;        
        width: 100%;
        padding: 0;
        border: none;
        box-shadow: none;
    }

    .dropdown-content a {
        padding-left: 10px;
        border-bottom: 1px solid #eee;
    }
}
*/
/* =========================================
   FOOTER A 3 COLONNE
   ========================================= */
.main-footer {
    background: #007F5D;
    border-top: 2px solid #eee;
    padding: 50px 0;
    margin-top: 60px;
    color: #fff;
}

.footer-wrapper {
    display: flex;
    justify-content: space-between; /* Spazia i 3 blocchi */
    align-items: flex-start;        /* Allinea in alto */
    flex-wrap: wrap;               /* Permette di andare a capo su mobile */
    gap: 30px;
}

/* Ogni colonna occupa circa un terzo */
.footer-info, .footer-social {
    flex: 1;
    min-width: 250px; /* Impedisce che diventino troppo strette */
    text-align: center; 
    vertical-align: bottom;

}

/* Logo e Copyright */
.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
}

/* Testo Centrale (Indirizzi) */
.footer-info p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.0rem;
    line-height: 1.6;
    font-weight: 400;
    margin: 0;
    text-align: center;
    color: #fff;
}

/* Social (Terzo blocco) */
.footer-social  {
    margin-top: 70px;
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 1.8rem;
    line-height: 1.6;
    font-weight: 400;
    margin: 40;
    text-align: center;
    color: #fff;
}

.footer-social a {
margin-top: 50px;
    color: #fff;
    font-size: 1.8rem;
    transition: transform 0.3s;
    line-height: 1.6;
    font-weight: 400;
    margin: 0;
    text-align: center;
    color: #fff;
}

.footer-social a:hover {
    transform: translateY(-5px);
}

/* Responsive: su cellulare tutto centrato e incolonnato */
@media (max-width: 768px) {
    .footer-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-info, .footer-social {
        width: 100%;
    }
}


@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================
   5. articoli in griglia
   ========================================= */

.news-section {
    padding: 80px 20px;
    background-color: #166107;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.card-image {
    position: relative;
    height: 300px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-date {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--secondary);
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-body {
    padding: 15px;
}

.card-body h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.4;
}

.card-body p {
    font-family: 'Montserrat', sans-serif;    
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-video {
    padding: 25px;
}

.card-video h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: #fff;
    line-height: 1.4;
}

.card-video p {
    font-family: 'Montserrat', sans-serif;    
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    font-family: 'Montserrat', sans-serif;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    text-decoration: underline;
}

/* Messaggio se vuoto */
.no-news { text-align: center; grid-column: 1 / -1; color: #999; font-style: italic; }



.cat-nav {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.cat-link {
    padding: 8px 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 25px;
    text-decoration: none;
    color: #555;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cat-link:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

.cat-link.active {
    /*background: var(--secondary);*/
    background: #FFB202;
    color: black;
    border-color: var(--secondary);
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.2);
}

.month-link {
    display: inline-block;
    padding: 6px 15px;
    background: #fff;
    color: #666;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid #ddd;
    transition: 0.3s;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
}
.month-link.active {
    background: #FFB202;
    color: #fff;
    border-color: #666;
}

.articles-page-wrapper {
    min-height: 80vh; /* Evita che il footer salga troppo se ci sono pochi articoli */
}


/* --- STILE ARTICOLO SINGOLO --- */
/* --- STILE ARTICOLO SINGOLO PULITO --- */

/* Immagine di testa */
.post-hero-image {
    width: 100%;
    height: 50vh;
    overflow: hidden;
}

.post-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Header sotto l'immagine */
.post-header-simple {
    padding: 40px 0 20px 0;
}

.post-header-simple h1 {
    font-family: 'Montserrat', sans-serif; /* Font coerente */
    font-size: 2.8rem;
    color: #fff;
    margin: 15px 0;
    line-height: 1.2;
}

.post-category {
    background: var(--secondary);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.post-meta {
    font-family: 'Inter', sans-serif;
    color: #fff;
    font-size: 0.9rem;
}

/* Contenuto */
.post-container {
    max-width: 850px; /* Larghezza ottimale per la lettura */
    margin: 0 auto;
}

.content-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    line-height: 1.6;
    color: #fff;
    padding-bottom: 30px;
}

/* Divisore e Footer */
.post-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 30px 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-family: 'Montserrat', sans-serif; /* Carattere uguale al resto del sito */
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.back-link i {
    font-size: 0.9rem;
}

.back-link:hover {
    color: var(--secondary);
    transform: translateX(-5px); /* Effetto movimento verso sinistra */
}

/* Mobile */
@media (max-width: 768px) {
    .post-hero-image { height: 30vh; }
    .post-header-simple h1 { font-size: 2rem; }
}

/* =========================================
   SLIDER SECTION
   ========================================= */
.slider-section {
    padding: 60px 0;
    background: #fff;
}

.slider-container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    height: 500px; /* Altezza fissa per coerenza */
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    clear: both; /* Evita sovrapposizioni con elementi float */
}


.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Riempie lo spazio senza deformarsi */
}

/* Sfumatura sopra l'immagine per leggere meglio la didascalia */
.slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(transparent, rgba(0,0,0,0.5));
}

.slide-caption {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: white;
    z-index: 10;
    font-family: 'Montserrat', sans-serif;
}

.slide-caption h3 {
    font-size: 1.8rem;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* FRECCE DI NAVIGAZIONE */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary); /* Il tuo marrone/verde scuro */
    border: none;
    width: 50px;
    height: 50px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.prev:hover, .next:hover {
    background: var(--secondary); /* Il tuo verde brillante */
    color: white;
}

.prev { left: 20px; }
.next { right: 20px; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .slider-container {
        height: 350px;
        margin: 0 15px; /* Margine sui lati per piccoli schermi */
    }
    .slide-caption h3 {
        font-size: 1.2rem;
    }
    .prev, .next {
        width: 40px;
        height: 40px;
    }
}

/* Formattazione Testi */
.content-page {
    font-family: 'Montserrat', sans-serif;
    max-width: 900px;
    margin: 40px auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    line-height: 1.5;
}


/* Paragrafi */
p {
    margin-bottom: 1.2em;
    font-size: 1.1em;
    text-align: justify; /* Testo giustificato per ordine visivo */
}

/* Evidenziatori e Citazioni */
.highlight {
    background: linear-gradient(120deg, #20c997 0%, #20c997 100%);
    background-repeat: no-repeat;
    background-size: 100% 0.3em;
    background-position: 0 88%;
    font-weight: 600;
}

blockquote {
    border-left: 5px solid #20c997;
    margin: 20px 0;
    padding: 15px 25px;
    background: #f9fdfc;
    font-style: italic;
    color: #555;
}

.phone-link {
    color: #20c997; /* Il tuo verde distintivo */
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.phone-link:hover {
    color: #1aa179; /* Un verde leggermente più scuro */
    text-decoration: none;
}

.phone-link i {
    font-size: 1.1em;
}
.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    color: white;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Colore Blu/Verde per il Telefono */
.phone {
    background-color: #20c997; /* Il tuo verde */
}

/* Colore Verde Ufficiale WhatsApp */
.whatsapp {
    background-color: #25D366;
}

.btn-contact i {
    font-size: 1.2rem;
}
/* Stile specifico per l'email se vuoi differenziarla dal telefono */
.email-style {
    margin-bottom: 5px;
    text-decoration: none;
}

/* invia form */

.btn-invia {
    background-color: #20c997;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s ease;
}
.btn-invia:hover {
    background-color: #1aa179;
}
input:focus, textarea:focus {
    outline: none;
    border-color: #20c997 !important;
    box-shadow: 0 0 5px rgba(32, 201, 151, 0.3);
}

/* pop privacy */
.cookie-overlay {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 10000;
    display: none; /* Inizialmente nascosto, gestito da JS */
}

.cookie-container {
    max-width: 500px;
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-left: 5px solid #20c997;
    margin: 0 auto;
}

.cookie-content h3 {
    margin-top: 0;
    color: #333;
    font-family: 'Montserrat', sans-serif;
}

.cookie-content p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-accept {
    background: #20c997;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    flex: 2;
    transition: background 0.3s;
}

.btn-accept:hover {
    background: #1aa179;
}

.btn-close {
    background: #f1f1f1;
    color: #666;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    flex: 1;
}

@media (max-width: 768px) {
    .cookie-container { width: 100%; bottom: 0; left: 0; border-radius: 15px 15px 0 0; }
}
/* Barra flottante contatti */
.floating-contact-bar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

/* Stile comune ai bottoni */
.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.float-btn:hover {
    transform: scale(1.1);
    color: white;
}

/* Colore pulsante Chiamata */
.float-btn.call {
    background-color: #166107; /* Verde scuro Giacche Verdi */
}

/* Colore pulsante WhatsApp */
.float-btn.chat {
    background-color: #25D366; /* Verde tipico WhatsApp */
}

/* Adattamento per mobile (opzionale, li rende un po' più piccoli) */
@media (max-width: 768px) {
    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
}