@charset "utf-8";/* 

/* ==========================================================================
   ipannellifotovoltaici.com - Style Green & Portale Editoriale 2026
   ========================================================================== */

:root {
    --primary: #059669;       /* Verde Smeraldo Solare */
    --primary-dark: #047857;  /* Verde Foresta */
    --primary-light: #10b981; /* Verde Brillante */
    --accent: #f59e0b;        /* Giallo Solare */
    --dark: #064e3b;          /* Verde Scuro Istituzionale Footer/Header */
    --dark-surface: #022c22;  /* Sfondo Footer Profondo */
    --text: #334155;          /* Testo Principale */
    --light-bg: #f0fdf4;      /* Sfondo Sezioni Chiari Green Tint */
    --border: #d1fae5;        /* Bordi Chiari */
    --radius: 10px;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Plus Jakarta Sans', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text);
    background-color: #ffffff;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* --- Top Bar --- */
.top-bar {
    background-color: var(--dark-surface);
    color: #a7f3d0;
    font-size: 0.85rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #065f46;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.top-links a {
    color: #ecfdf5;
    margin-left: 1rem;
    font-size: 0.82rem;
}

.top-links a:hover {
    color: var(--accent);
}

/* --- Header & Navigation --- */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--dark);
}

.logo-text span {
    color: var(--primary);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.main-nav a {
    color: var(--dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.main-nav a:hover {
    color: var(--primary);
}

/* --- Dropdown Menu Corretto --- */
.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    min-width: 240px;
    display: none !important;
    opacity: 0;
    visibility: hidden;
    flex-direction: column;
    padding: 0.5rem 0;
    z-index: 1050;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.dropdown li {
    padding: 0;
    list-style: none;
}

.dropdown a {
    padding: 0.7rem 1.2rem;
    display: block;
    font-size: 0.9rem;
    color: var(--dark);
    font-weight: 500;
}

.dropdown a:hover {
    background-color: var(--light-bg);
    color: var(--primary);
}

@media (min-width: 769px) {
    .has-dropdown:hover .dropdown {
        display: flex !important;
        opacity: 1;
        visibility: visible;
    }
}

.btn-header {
    background-color: var(--primary);
    color: #ffffff !important;
    padding: 0.6rem 1.3rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-header:hover {
    background-color: var(--primary-dark);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

/* --- Hero Page (Gradient Sfumato Green) --- */
.hero-page {
    background: linear-gradient(135deg, #022c22 0%, #059669 100%);
    color: #ffffff;
    padding: 3.8rem 0;
    text-align: center;
}

.hero-page h1 {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.hero-page p {
    font-size: 1.15rem;
    opacity: 0.95;
    max-width: 780px;
    margin: 0 auto;
    color: #ecfdf5;
}

/* --- Breadcrumb --- */
.breadcrumb {
    background-color: var(--light-bg);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}

.breadcrumb ol {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.breadcrumb li::after {
    content: "/";
    margin-left: 0.5rem;
    color: #a7f3d0;
}

.breadcrumb li:last-child::after {
    content: "";
}

/* --- Main Layout Grid --- */
.main-content {
    padding: 3rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
}

.article-body h2 {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    color: var(--dark);
    margin: 1.8rem 0 1rem 0;
}

.article-body h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin: 1.4rem 0 0.8rem 0;
}

.article-body p {
    margin-bottom: 1.2rem;
    color: #334155;
}

.article-body ul, .article-body ol {
    margin: 0 0 1.5rem 1.5rem;
    color: #334155;
}

.article-body li {
    margin-bottom: 0.4rem;
}

/* --- Sidebar & Widgets --- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.widget {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.35rem;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.05);
}

.widget h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 0.8rem;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 0.4rem;
}

.widget-download p {
    font-size: 0.88rem;
    color: #475569;
    margin-bottom: 1rem;
}

.btn-widget {
    display: inline-block;
    width: 100%;
    text-align: center;
    background-color: var(--primary);
    color: #ffffff !important;
    padding: 0.65rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.88rem;
}

.partner-list {
    list-style: none;
}

.partner-list li {
    padding: 0.8rem 0;
    border-bottom: 1px dashed var(--border);
}

.partner-list li:last-child {
    border-bottom: none;
}

.partner-list strong {
    display: block;
    font-size: 0.9rem;
    color: var(--dark);
}

.partner-list p {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.3rem;
}

.partner-list a {
    font-size: 0.82rem;
    font-weight: 700;
}

/* --- Box CTA Partner negli Articoli --- */
.cta-partner-box {
    background: var(--light-bg);
    border-left: 4px solid var(--primary);
    padding: 1.25rem;
    margin: 2rem 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.cta-partner-box h4 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.cta-partner-box p {
    font-size: 0.92rem;
    margin-bottom: 0.8rem;
}

/* ==========================================================================
   NUOVO FOOTER (Layout a 3 Colonne + Card Partner)
   ========================================================================== */

.site-footer {
    background-color: var(--dark-surface);
    color: #94a3b8;
    padding: 4rem 0 2rem 0;
    margin-top: 3.5rem;
    border-top: 4px solid var(--primary);
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    margin-top: 1rem;
    font-size: 0.92rem;
    line-height: 1.7;
    color: #cbd5e1;
}

.footer-block h4 {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-block h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-light);
}

.footer-block ul {
    list-style: none;
}

.footer-block li {
    margin-bottom: 0.6rem;
}

.footer-block a {
    color: #a7f3d0;
    font-size: 0.9rem;
}

.footer-block a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Fascia Partner Tecnologici (Layout a tessere orizzontali) */
.footer-partners-strip {
    background-color: #064e3b;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2.5rem;
}

.footer-partners-strip h4 {
    color: #ffffff;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    text-align: center;
}

.partners-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.partner-badge {
    background: #022c22;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    border: 1px solid #065f46;
    text-align: center;
}

.partner-badge strong {
    display: block;
    color: #ffffff;
    font-size: 0.88rem;
}

.partner-badge span {
    display: block;
    color: #6ee7b7;
    font-size: 0.78rem;
    margin-bottom: 0.4rem;
}

.partner-badge a {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
}

.footer-bottom {
    border-top: 1px solid #065f46;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.83rem;
    color: #6ee7b7;
}

.footer-legal a {
    color: #6ee7b7;
    margin-left: 1.2rem;
}

.footer-legal a:hover {
    color: #ffffff;
}

/* --- Google AdSense Containers --- */
.ads-container-top {
    margin: 1.5rem auto 0 auto;
    text-align: center;
    min-height: 90px;
}

.ads-container-in-article {
    margin: 2rem 0;
    text-align: center;
    min-height: 250px;
    background-color: var(--light-bg);
    border: 1px dashed #a7f3d0;
    border-radius: var(--radius);
    padding: 0.5rem;
}

.ads-container-bottom {
    margin: 2.5rem 0 1.5rem 0;
    text-align: center;
    min-height: 250px;
}

.widget-ads {
    text-align: center;
    min-height: 250px;
    padding: 0.5rem;
    background: #fafafa;
}

.ads-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Responsiveness Mobile --- */
@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 1rem 0;
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav a {
        padding: 0.8rem 1.25rem;
        display: block;
    }

    .btn-header {
        display: none;
    }
}