/* ============================================================
   style.css — Foglio stili comune Impronta Ecologica
   Posizione: /test/css/style.css
   ============================================================ */

/* ── RESET & VARIABILI ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary:      #1a3a1c;    /* Verde scuro — sfondo nav, footer, topbar */
    --accent:       #008000;    /* Verde puro — bottoni, badge, link attivi */
    --accent-light: #2d7a2d;    /* Verde medio — hover secondari */
    --white:        #ffffff;    /* Bianco puro */
    --light-gray:   #f5f5f0;    /* Grigio chiarissimo — sfondi sezione */
    --gray:         #e8e8e2;    /* Grigio medio — banner placeholder, input */
    --text:         #1a1a1a;    /* Nero quasi puro — testi principali */
    --text-light:   #555550;    /* Grigio scuro — testi secondari, meta */
    --border-color: #d4d4cc;    /* Grigio bordi — separatori, card border */
}

html { scroll-behavior: smooth; }

body {
    font-family: Georgia, Garamond, 'Times New Roman', serif;
    color: var(--text);
    background: #fff;
    font-size: 1.1rem;
    line-height: 1.65;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ── DEBUG BANNER ───────────────────────────────────────────── */
.debug-banner {
    background: #ffeb3b;
    color: #333;
    text-align: center;
    padding: 6px;
    font-size: 0.8rem;
    font-family: monospace;
    font-weight: 700;
    border-bottom: 2px solid #f57f17;
}

/* ── TOPBAR ─────────────────────────────────────────────────── */
.topbar {
    background: var(--primary);
    color: rgba(255,255,255,0.85);
    font-size: 0.78rem;
    padding: 6px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar-left  { display: flex; gap: 1.2rem; align-items: center; }
.topbar-right { display: flex; gap: 1rem; align-items: center; }

.topbar-social { display: flex; gap: 0.4rem; align-items: center; }
.topbar-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 3px;
    color: #ffffff;
    transition: color 0.2s, filter 0.2s;
    text-decoration: none;
}
.topbar-social a:hover {
    color: #ffffff;
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.8)) drop-shadow(0 0 12px rgba(255,255,255,0.4));
    text-decoration: none;
}

.topbar-search-btn,
.topbar-login {
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.85);
    padding: 4px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.78rem;
    font-family: Georgia, serif;
    transition: all 0.2s;
    text-decoration: none;
}
.topbar-search-btn:hover,
.topbar-login:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ── HEADER BRAND ───────────────────────────────────────────── */
.header-brand {
    background: url('/images/impronta_ecologica_header.jpg') center center / cover no-repeat;
    height: 200px;
    max-height: 200px;
    overflow: hidden;
    opacity: 1;
    transition: max-height 0.4s ease, opacity 0.35s ease;
}
.header-brand.hidden { max-height: 0; opacity: 0; }

/* ── NAVIGAZIONE ────────────────────────────────────────────── */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: url('/images/impronta_ecologica_menu.jpg') center center / cover no-repeat;
    transition: background 0.35s ease, box-shadow 0.35s ease;
}

.nav-logo-bar {
    background: var(--primary);
    text-align: center;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
}
.nav-logo-bar span {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    font-family: Georgia, serif;
    font-style: italic;
    letter-spacing: 0.3px;
}
.nav-logo-bar small {
    display: block;
    color: #ffffff !important;
    font-size: 0.62rem;
    font-weight: 400;
    font-style: normal;
    font-family: Georgia, serif;
    letter-spacing: 0.02em;
    margin-top: 1px;
    opacity: 1;
}

.site-nav-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: transparent;
}

.site-nav-ul { list-style: none; display: flex; gap: 0; margin: 0; padding: 0; }
.site-nav-ul a {
    display: block;
    padding: 13px 16px;
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    transition: background 0.2s ease;
    text-decoration: none;
}
.site-nav-ul a:hover,
.site-nav-ul a.active { background: rgba(255,255,255,0.1); }

.nav-compact-logo { display: none; }

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 8px 14px;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.site-nav.scrolled {
    background: var(--primary);
    box-shadow: 0 2px 12px rgba(0,0,0,0.22);
}
.site-nav.scrolled .nav-logo-bar {
    max-height: 80px;
    opacity: 1;
    padding: 10px 20px;
    justify-content: center;
    align-items: center;
}

.site-nav.compact {
    background: var(--primary);
    box-shadow: 0 2px 12px rgba(0,0,0,0.22);
}
.site-nav.compact .nav-logo-bar  { max-height: 0; opacity: 0; padding: 0; }
.site-nav.compact ul              { display: none; }
.site-nav.compact .nav-compact-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 700;
    font-family: Georgia, serif;
    font-style: italic;
    text-align: center;
}
.site-nav.compact .nav-hamburger { display: block; }
.site-nav.compact .site-nav-inner { min-height: 64px; }

/* ── DRAWER ─────────────────────────────────────────────────── */
.nav-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    background: var(--primary);
    z-index: 2000;
    transition: left 0.35s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 4px 0 24px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.nav-drawer.open { left: 0; }

.nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.nav-drawer-title  { color: var(--white); font-size: 1.1rem; font-weight: 700; font-family: Georgia,serif; font-style: italic; }
.nav-drawer-close  { background: none; border: none; color: rgba(255,255,255,0.8); font-size: 1.5rem; cursor: pointer; padding: 2px 6px; }

.nav-drawer ul  { list-style: none; padding: 12px 0; margin: 0; flex: 1; }
.nav-drawer li  { border-bottom: 1px solid rgba(255,255,255,0.07); }
.nav-drawer a   { display: block; padding: 14px 24px; color: rgba(255,255,255,0.88); font-size: 1rem; font-weight: 600; transition: all 0.2s; }
.nav-drawer a:hover { color: var(--white); background: rgba(255,255,255,0.08); padding-left: 30px; text-decoration: none; }

.nav-drawer-search { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.1); display: flex; }
.nav-drawer-search input {
    flex: 1;
    padding: 9px 12px;
    border: none;
    border-radius: 3px 0 0 3px;
    background: rgba(255,255,255,0.12);
    color: var(--white);
    outline: none;
    font-family: Georgia, serif;
    font-size: 0.9rem;
}
.nav-drawer-search button { background: var(--accent); border: none; color: var(--white); padding: 9px 14px; border-radius: 0 3px 3px 0; cursor: pointer; }

.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 1999; }
.nav-overlay.open { display: block; }

/* ── SEARCH BOX ─────────────────────────────────────────────── */
.search-box {
    background: var(--gray);
    border-bottom: 2px solid var(--border-color);
    padding: 14px 16px;
    display: none;
}
.search-box.open { display: block; }

.search-inner { max-width: 1358px; margin: 0 auto; display: flex; }
.search-inner input {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    border-right: none;
    border-radius: 3px 0 0 3px;
    font-family: Georgia, serif;
    font-size: 1rem;
    outline: none;
}
.search-inner input:focus { border-color: var(--accent); }
.search-inner button { background: var(--primary); color: var(--white); border: none; padding: 10px 20px; border-radius: 0 3px 3px 0; cursor: pointer; font-size: 1rem; }

/* ── CAROUSEL ───────────────────────────────────────────────── */
.carousel-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    height: 500px;
    overflow: hidden;
    background: var(--light-gray);
}

.carousel-slides {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.34,1.56,0.64,1);
}

.carousel-slide { min-width: 100%; height: 100%; display: flex; position: relative; }
.carousel-image { flex: 1; width: 100%; height: 100%; object-fit: cover; display: block; }

.carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15,40,18,0.72) 0%, rgba(0,0,0,0.15) 65%, transparent 100%);
}

.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 3.5rem 3rem;
    color: var(--white);
    max-width: 58%;
    z-index: 5;
}

.carousel-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 5px 13px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 1rem;
}

.carousel-slide h2 {
    font-size: 2.4rem;
    margin-bottom: 0.7rem;
    line-height: 1.2;
    font-weight: 800;
    text-shadow: 1px 2px 8px rgba(0,0,0,0.35);
    color: var(--white);
}

.carousel-slide p { font-size: 1.02rem; margin-bottom: 1.4rem; line-height: 1.55; opacity: 0.92; }

.carousel-link {
    display: inline-block;
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.75rem 1.6rem;
    border: 2px solid rgba(255,255,255,0.85);
    border-radius: 3px;
    transition: all 0.3s;
}
.carousel-link:hover { background: var(--white); color: var(--primary); text-decoration: none; }

.carousel-controls { position: absolute; bottom: 1.8rem; right: 2rem; display: flex; gap: 0.7rem; z-index: 10; }
.carousel-btn {
    width: 42px;
    height: 42px;
    border-radius: 4px;
    background: rgba(255,255,255,0.88);
    color: var(--primary);
    border: none;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: bold;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-btn:hover { background: var(--accent); color: var(--white); }

.carousel-indicators { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.indicator { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.45); cursor: pointer; transition: background 0.2s; }
.indicator.active { background: var(--white); }

/* ── TICKER ─────────────────────────────────────────────────── */
.ticker-wrapper { background: var(--accent); height: 38px; display: flex; align-items: center; overflow: hidden; }

.ticker-label {
    background: var(--primary);
    color: var(--white);
    padding: 0 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    height: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.ticker-track {
    display: flex;
    animation: ticker-scroll 40s linear infinite;
    white-space: nowrap;
}
.ticker-track:hover { animation-play-state: paused; }

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    font-size: 0.83rem;
    font-weight: 600;
    padding: 0 2.5rem;
    color: var(--white);
    display: inline-block;
    text-decoration: none;
}
.ticker-item::before {
    content: '●';
    margin-right: 0.8rem;
    font-size: 0.5rem;
    vertical-align: middle;
    opacity: 0.7;
}

/* ── BANNER PUBBLICITARI ─────────────────────────────────────── */
.banner-leaderboard {
    background: var(--light-gray);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    text-align: center;
}
.banner-leaderboard-inner {
    display: inline-block;
    width: 970px;
    max-width: 100%;
    height: 90px;
    background: var(--gray);
    border: 1px dashed var(--border-color);
    line-height: 90px;
    color: var(--text-light);
    font-size: 0.8rem;
}

.banner-ingrid {
    grid-column: 1 / -1;
    background: var(--gray);
    border: 1px dashed var(--border-color);
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.8rem;
}

.ad-banner-sidebar {
    background: var(--gray);
    border: 1px dashed var(--border-color);
    width: 300px;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.8rem;
    text-align: center;
    margin-bottom: 2rem;
}

/* ── LAYOUT PRINCIPALE ──────────────────────────────────────── */
.container {
    max-width: 1358px;
    margin: 0 auto;
    padding: 2rem 20px;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 970px 300px;
    gap: 24px;
}

.main-content  { min-width: 0; }
.sidebar-content { width: 300px; }

/* ── INTESTAZIONI SEZIONE ───────────────────────────────────── */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid var(--border-color);
    position: relative;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    position: relative;
    padding-bottom: 4px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.view-all { font-size: 0.8rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.5px; }

/* ── GRIGLIA ARTICOLI ───────────────────────────────────────── */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }

.article-box {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}
.article-box:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }

.article-image-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--light-gray);
}

.article-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.article-box:hover .article-image { transform: scale(1.04); }

.article-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-content { padding: 1.1rem; flex: 1; display: flex; flex-direction: column; }
.article-meta { font-size: 0.72rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.5rem; }

.article-content h3 { font-size: 1rem; line-height: 1.4; margin-bottom: 0.6rem; color: var(--text); font-weight: 700; }
.article-content h3 a { color: var(--text); }
.article-content h3 a:hover { color: var(--accent); text-decoration: none; }

.article-content p { font-size: 0.88rem; color: var(--text-light); line-height: 1.55; flex: 1; margin-bottom: 0.8rem; }

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.6rem;
    border-top: 1px solid var(--border-color);
}
.read-more      { font-size: 0.78rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.5px; }
.article-date-small { font-size: 0.72rem; color: var(--text-light); }

/* ── SEZIONI RUBRICA ─────────────────────────────────────────── */
.section-rubrica { margin-bottom: 3.5rem; }
.rubrica-mini-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.5rem; }
.rubrica-mini-grid .article-box:first-child .article-image-wrapper { height: 240px; }

/* ── SIDEBAR WIDGET ──────────────────────────────────────────── */
.weather-widget {
    background: linear-gradient(135deg, #1565c0, #42a5f5);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    text-align: center;
}
.weather-city   { font-size: 0.85rem; opacity: 0.85; margin-bottom: 4px; }
.weather-temp   { font-size: 3rem; font-weight: 700; line-height: 1; margin-bottom: 4px; }
.weather-desc   { font-size: 0.9rem; font-style: italic; opacity: 0.9; margin-bottom: 1rem; }
.weather-details { display: flex; justify-content: space-around; font-size: 0.8rem; opacity: 0.85; }

.featured-box {
    background: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1.3rem;
    margin-bottom: 2rem;
}
.featured-box h3 { font-size: 1rem; margin-bottom: 0.5rem; color: var(--primary); }
.featured-box p  { font-size: 0.85rem; color: var(--text-light); margin-bottom: 0.8rem; }
.featured-box input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-family: Georgia, serif;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}
.featured-box button {
    width: 100%;
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 9px;
    border-radius: 3px;
    cursor: pointer;
    font-family: Georgia, serif;
    font-size: 0.88rem;
    font-weight: 700;
}

.social-box {
    background: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1.3rem;
    margin-bottom: 2rem;
}
.social-box h4 { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.8rem; color: var(--primary); }
.social-icons-row { display: flex; gap: 0.5rem; }
.social-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background: var(--primary);
    color: var(--white);
    transition: background 0.2s, transform 0.2s;
    text-decoration: none;
}
.social-icon-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
}
.social-icon-btn:hover { background: var(--accent); text-decoration: none; }

/* ── FOOTER ──────────────────────────────────────────────────── */
.site-footer {
    background: var(--primary);
    color: #ffffff; /* Testo principale completamente bianco */
    padding: 3rem 20px 1.5rem;
    margin-top: 4rem;
}
.footer-inner  { max-width: 1358px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; margin-bottom: 2rem; }

.footer-col h4 { 
    color: #ffffff; /* Titoli delle colonne bianchi */
    font-size: 0.9rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    margin-bottom: 1rem; 
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { 
    color: #ffffff;
    font-size: 0.85rem;
    transition: font-weight 0.2s, text-shadow 0.2s;
}
.footer-col ul li a:hover {
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255,255,255,0.8), 0 0 16px rgba(255,255,255,0.4);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.78rem;
    color: #ffffff; /* Testo del copyright bianco */
}
.footer-cc { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.footer-cc p { font-size: 0.78rem; color: #ffffff; margin-bottom: 0.4rem; }

.cc-icons { display: flex; justify-content: center; gap: 0.3rem; margin-top: 0.6rem; }
.cc-icons a { display: flex; gap: 0.3rem; text-decoration: none; }
.cc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid #ffffff; /* Cerchi delle icone bianchi */
    background: transparent;
    font-size: 0.58rem;
    color: #ffffff; /* Icone Creative Commons bianche */
    font-weight: 900;
    transition: background 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.cc-icons a:hover .cc-icon {
    background: #ffffff;
    color: var(--primary);
    transform: scale(1.18);
    box-shadow: 0 0 10px rgba(255,255,255,0.45);
}

/* ── BACK TO TOP ─────────────────────────────────────────────── */
#back-to-top {
    position: fixed;
    bottom: 80px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s;
    z-index: 998;
}
#back-to-top.visible { display: flex; }
#back-to-top:hover   { background: var(--accent); transform: translateY(-3px); box-shadow: 0 0 10px rgba(255,255,255,0.8), 0 0 20px rgba(255,255,255,0.4); }

/* ── COOKIE MODAL ────────────────────────────────────────────── */
.cookie-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9999;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
}
.cookie-modal.show { display: flex; }

.cookie-box {
    background: var(--white);
    border-radius: 6px 6px 0 0;
    max-width: 700px;
    width: 100%;
    padding: 2rem;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
}
.cookie-box h3 { font-size: 1.1rem; margin-bottom: 0.8rem; color: var(--primary); }
.cookie-box p  { font-size: 0.87rem; color: var(--text-light); margin-bottom: 1.2rem; line-height: 1.55; }

.cookie-actions { display: flex; gap: 0.8rem; }
.cookie-btn-accept {
    flex: 1;
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 11px;
    border-radius: 3px;
    font-family: Georgia, serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}
.cookie-btn-reject {
    flex: 1;
    background: var(--white);
    color: var(--text);
    border: 2px solid var(--border-color);
    padding: 11px;
    border-radius: 3px;
    font-family: Georgia, serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

/* ── RUBRICA ─────────────────────────────────────────────────── */
.rubrica-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1rem;
    padding: 1.5rem;
    background: var(--primary);
    border-radius: 6px;
    color: var(--white);
}
.rubrica-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 900;
    flex-shrink: 0;
}
.rubrica-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 0.2rem; }
.rubrica-count { font-size: 0.85rem; opacity: 0.8; }

.featured-article {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}
.featured-img-wrap { position: relative; }
.featured-img-wrap img { width: 100%; height: 280px; object-fit: cover; display: block; }
.featured-text { padding: 1.5rem 1.5rem 1.5rem 0; display: flex; flex-direction: column; justify-content: center; }
.featured-text h2 { font-size: 1.4rem; line-height: 1.35; margin-bottom: 0.8rem; }
.featured-text h2 a { color: var(--text); }
.featured-text h2 a:hover { color: var(--accent); text-decoration: none; }
.featured-text p { font-size: 0.92rem; color: var(--text-light); line-height: 1.6; margin-bottom: 1rem; flex: 1; }
.btn-leggi { display: inline-block; background: var(--accent); color: var(--white); padding: 9px 20px; border-radius: 3px; font-size: 0.88rem; font-weight: 700; transition: background 0.2s; }
.btn-leggi:hover { background: var(--accent-light); text-decoration: none; }

.pagination {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}
.pag-btn {
    padding: 7px 13px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-size: 0.85rem;
    color: var(--text);
    background: var(--white);
    transition: all 0.2s;
}
.pag-btn:hover { background: var(--accent); color: var(--white); border-color: var(--accent); text-decoration: none; }
.pag-current {
    padding: 7px 13px;
    background: var(--accent);
    color: var(--white);
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: 700;
}

.breadcrumb { font-size: 0.82rem; color: var(--text-light); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--accent); }
.bc-sep { margin: 0 0.4rem; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .content-wrapper { grid-template-columns: 1fr; }
    .sidebar-content { width: 100%; }
    .ad-banner-sidebar { width: 100%; height: 150px; }
}

@media (max-width: 900px) {
    .carousel-wrapper { height: 380px; }
    .carousel-slide h2 { font-size: 1.6rem; }
    .carousel-content { max-width: 80%; padding: 2rem 1.5rem; }
    .articles-grid { grid-template-columns: repeat(2,1fr); }
    .rubrica-mini-grid { grid-template-columns: 1fr 1fr; }
    .rubrica-mini-grid .article-box:first-child .article-image-wrapper { height: 180px; }
    .footer-grid { grid-template-columns: repeat(2,1fr); }
    .featured-article { grid-template-columns: 1fr; }
    .featured-img-wrap img { height: 220px; }
    .featured-text { padding: 1.2rem; }
    .correlati-grid { grid-template-columns: repeat(2,1fr); }
    .gallery-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 600px) {
    .topbar { flex-direction: column; gap: 6px; padding: 8px 12px; }
    .topbar-right { flex-wrap: wrap; justify-content: center; }
    .header-brand { height: 120px; }
    .carousel-wrapper { height: 300px; }
    .carousel-slide h2 { font-size: 1.3rem; }
    .carousel-content { max-width: 90%; padding: 1.5rem 1rem; }
    .carousel-badge { display: none; }
    .articles-grid { grid-template-columns: 1fr; }
    .rubrica-mini-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .art-title { font-size: 1.5rem; }
    .art-meta-bar { flex-direction: column; gap: 0.5rem; }
    .art-share { margin-left: 0; }
    .correlati-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2,1fr); }
    .banner-leaderboard-inner { height: auto; line-height: normal; padding: 10px; }
    .container { padding: 1rem 12px; }
    .tts-player { flex-wrap: wrap; }
    .weather-widget { padding: 1rem; }
    .weather-temp { font-size: 2.2rem; }
    .featured-article { grid-template-columns: 1fr; }
    .nl-box { padding: 1.5rem; }
    .stats-grid { grid-template-columns: repeat(2,1fr); }

    /* Fix Nav Mobile */
    .site-nav {
        background: transparent;
        box-shadow: none;
    }
    .site-nav.scrolled,
    .site-nav.compact {
        background: var(--primary);
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }
    .site-nav-inner {
        background: transparent;
        min-height: 56px;
        justify-content: flex-end;
        padding: 0 12px;
        position: relative;
    }
    .site-nav.scrolled .site-nav-inner,
    .site-nav.compact .site-nav-inner {
        background: var(--primary);
        justify-content: space-between;
        min-height: 64px;
    }
    .nav-compact-logo {
        display: none !important;
    }
    .site-nav.scrolled .nav-compact-logo,
    .site-nav.compact .nav-compact-logo {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        text-align: center;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        color: #ffffff;
        font-size: 0.9rem;
        font-weight: 700;
        font-family: Georgia, serif;
        font-style: italic;
        width: 65%;
        white-space: normal;
        line-height: 1.3;
    }
    .site-nav.scrolled .nav-compact-logo small,
    .site-nav.compact .nav-compact-logo small {
        font-size: 0.58rem;
        color: #ffffff;
        white-space: normal;
        line-height: 1.3;
    }
    .nav-hamburger {
        display: block;
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
    }
    .nav-logo-bar, .site-nav-ul { display: none; }
}
/* ── Pagine statiche (chi-siamo, privacy, cookie, codice-etico) ── */
.pagina-testo{max-width:760px;}
.pagina-testo h1{font-size:2rem;color:var(--primary);margin-bottom:1.5rem;padding-bottom:0.8rem;border-bottom:3px solid var(--accent);}
.pagina-body{font-size:1rem;line-height:1.85;color:var(--text);}
.pagina-body h2{font-size:1.25rem;color:var(--primary);margin:2rem 0 0.6rem;padding-bottom:0.3rem;border-bottom:1px solid var(--border-color);}
.pagina-body h3{font-size:1.05rem;color:var(--primary);margin:1.5rem 0 0.4rem;}
.pagina-body p{margin-bottom:1.1rem;}
.pagina-body ul{margin:0.5rem 0 1.1rem 1.5rem;}
.pagina-body ul li{margin-bottom:0.4rem;}
.pagina-body a{color:var(--accent);}
.pagina-body em{color:var(--text-light);}
.cookie-table{width:100%;border-collapse:collapse;margin:0.8rem 0 1.2rem;font-size:0.88rem;}
.cookie-table th{background:var(--light-gray);padding:0.6rem 0.8rem;text-align:left;border:1px solid var(--border-color);font-weight:700;color:var(--primary);}
.cookie-table td{padding:0.6rem 0.8rem;border:1px solid var(--border-color);vertical-align:top;}

/* ── Pagine statiche (chi-siamo, privacy, cookie, codice-etico) ── */
.pagina-testo { max-width: 760px; }
.pagina-testo h1 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid var(--accent);
}
.pagina-body {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text);
}
.pagina-body h2 {
    font-size: 1.25rem;
    color: var(--primary);
    margin: 2rem 0 0.6rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--border-color);
}
.pagina-body h3 {
    font-size: 1.05rem;
    color: var(--primary);
    margin: 1.5rem 0 0.4rem;
}
.pagina-body p  { margin-bottom: 1.1rem; }
.pagina-body ul { margin: 0.5rem 0 1.1rem 1.5rem; }
.pagina-body ul li { margin-bottom: 0.4rem; }
.pagina-body a  { color: var(--accent); }
.pagina-body em { color: var(--text-light); }
.cookie-table { width: 100%; border-collapse: collapse; margin: 0.8rem 0 1.2rem; font-size: 0.88rem; }
.cookie-table th { background: var(--light-gray); padding: 0.6rem 0.8rem; text-align: left; border: 1px solid var(--border-color); font-weight: 700; color: var(--primary); }
.cookie-table td { padding: 0.6rem 0.8rem; border: 1px solid var(--border-color); vertical-align: top; }

/* ── Logo nav: seconda riga tagline ── */
.nav-compact-logo small {
    display: block;
    font-size: 0.62rem;
    font-weight: 400;
    color: #ffffff;
    font-style: normal;
    letter-spacing: 0.02em;
    margin-top: 2px;
}

/* ── Articolo ── */
#reading-progress{position:fixed;top:0;left:0;height:3px;background:var(--accent);width:0%;z-index:9999;transition:width 0.1s linear;}
.art-header{margin-bottom:2rem;}
.art-title{font-size:2.2rem;line-height:1.25;margin-bottom:0.8rem;color:var(--primary);}
.art-subtitle{font-size:1.15rem;color:var(--text-light);margin-bottom:1.2rem;font-style:italic;line-height:1.5;}
.art-meta-bar{display:flex;flex-wrap:wrap;gap:1rem;align-items:center;font-size:0.82rem;color:var(--text-light);padding:0.8rem 0;border-top:1px solid var(--border-color);border-bottom:1px solid var(--border-color);margin-bottom:1.5rem;}
.art-share{display:flex;gap:0.4rem;margin-left:auto;}
.share-btn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:4px;background:var(--primary);color:#fff;font-size:1rem;text-decoration:none;border:none;cursor:pointer;transition:background 0.2s;}
.share-btn:hover{background:var(--accent);}
.tts-player{display:flex;align-items:center;gap:0.7rem;background:var(--light-gray);border:1px solid var(--border-color);border-radius:4px;padding:0.7rem 1rem;margin-bottom:1.5rem;}
.tts-player button{background:var(--accent);color:#fff;border:none;border-radius:3px;width:34px;height:34px;cursor:pointer;}
.tts-player select{border:1px solid var(--border-color);border-radius:3px;padding:4px 6px;font-family:Georgia,serif;font-size:0.82rem;}
.tts-progress-wrap{flex:1;height:6px;background:var(--gray);border-radius:3px;overflow:hidden;}
.tts-progress{height:100%;background:var(--accent);width:0%;transition:width 0.3s;}
#ttsLabel{font-size:0.82rem;color:var(--text-light);}
.art-body{font-size:1.02rem;line-height:1.85;color:var(--text);margin-bottom:2rem;text-align:justify;}
.art-body p{margin-bottom:0.6rem;}
.art-body h2{font-size:1.5rem;margin:2rem 0 0.8rem;color:var(--primary);}
.art-body h3{font-size:1.2rem;margin:1.5rem 0 0.6rem;color:var(--primary);}
.art-body blockquote{border-left:4px solid var(--accent);padding:0.8rem 1.2rem;background:var(--light-gray);margin:1.5rem 0;font-style:italic;}
.art-tags{display:flex;flex-wrap:wrap;gap:0.5rem;margin-bottom:2rem;}
.tag-pill{background:var(--light-gray);border:1px solid var(--border-color);color:var(--text-light);padding:4px 12px;border-radius:20px;font-size:0.78rem;}
.art-gallery h3,.art-video h3,.art-correlati h3{font-size:1.3rem;margin-bottom:1rem;color:var(--primary);padding-bottom:0.5rem;border-bottom:2px solid var(--border-color);}
.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:0.8rem;margin-bottom:2rem;}
.gallery-item img{width:100%;height:140px;object-fit:cover;border-radius:3px;}
.video-wrap{position:relative;padding-bottom:56.25%;height:0;overflow:hidden;margin-bottom:2rem;}
.video-wrap iframe{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:4px;}
.correlati-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.2rem;margin-bottom:2rem;}
@media(max-width:600px){
    .art-title{font-size:1.6rem;}
    .correlati-grid{grid-template-columns:1fr;}
    .gallery-grid{grid-template-columns:repeat(2,1fr);}
    .art-share{margin-left:0;}
}

/* ── Rubrica ── */
.rubrica-header{display:flex;align-items:center;gap:1.2rem;margin-bottom:1rem;padding:1.5rem;background:var(--primary);border-radius:6px;color:var(--white);}
.rubrica-icon{width:56px;height:56px;border-radius:50%;background:var(--accent);display:flex;align-items:center;justify-content:center;font-size:1.8rem;font-weight:900;flex-shrink:0;}
.rubrica-title{font-size:1.8rem;font-weight:800;margin-bottom:0.2rem;}
.rubrica-count{font-size:0.85rem;opacity:0.8;}
.featured-article{display:grid;grid-template-columns:1.6fr 1fr;gap:1.5rem;margin-bottom:1.5rem;background:var(--white);border:1px solid var(--border-color);border-radius:6px;overflow:hidden;}
.featured-img-wrap{position:relative;}
.featured-img-wrap img{width:100%;height:280px;object-fit:cover;display:block;}
.featured-text{padding:1.5rem 1.5rem 1.5rem 0;display:flex;flex-direction:column;justify-content:center;}
.featured-text h2{font-size:1.4rem;line-height:1.35;margin-bottom:0.8rem;}
.featured-text h2 a{color:var(--text);}
.featured-text p{font-size:0.92rem;color:var(--text-light);line-height:1.6;margin-bottom:1rem;flex:1;}
.btn-leggi{display:inline-block;background:var(--accent);color:var(--white);padding:9px 20px;border-radius:3px;font-size:0.88rem;font-weight:700;}
.pagination{display:flex;gap:0.4rem;align-items:center;flex-wrap:wrap;margin-top:2.5rem;padding-top:1.5rem;border-top:1px solid var(--border-color);}
.pag-btn{padding:7px 13px;border:1px solid var(--border-color);border-radius:3px;font-size:0.85rem;color:var(--text);background:var(--white);}
.pag-current{padding:7px 13px;background:var(--accent);color:var(--white);border-radius:3px;font-size:0.85rem;font-weight:700;}
@media(max-width:600px){
    .featured-article{grid-template-columns:1fr;}
    .featured-text{padding:1rem;}
}

/* ── Contatti ── */
.ct-title{font-size:2rem;color:var(--primary);margin-bottom:0.5rem;}
.ct-intro{color:var(--text-light);margin-bottom:1.5rem;}
.ct-wrap{background:var(--light-gray);border:1px solid var(--border-color);border-radius:6px;padding:2rem;max-width:720px;margin-bottom:2rem;}
.ct-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem;}
.ct-field{margin-bottom:1.1rem;}
.ct-field label{display:block;font-size:0.85rem;font-weight:700;color:var(--primary);margin-bottom:0.35rem;}
.ct-field input,.ct-field select,.ct-field textarea{width:100%;padding:10px 12px;border:1px solid var(--border-color);border-radius:4px;font-family:Georgia,serif;font-size:0.95rem;color:var(--text);background:#fff;transition:border-color 0.2s;}
.ct-field input:focus,.ct-field select:focus,.ct-field textarea:focus{outline:none;border-color:var(--accent);}
.ct-field input.error,.ct-field select.error,.ct-field textarea.error{border-color:#dc2626;}
.ct-field textarea{resize:vertical;}
.ct-err{display:block;font-size:0.75rem;color:#dc2626;margin-top:3px;min-height:16px;}
.ct-check{margin-bottom:1.2rem;}
.ct-check label{display:flex;gap:0.6rem;align-items:flex-start;font-size:0.85rem;color:var(--text-light);cursor:pointer;line-height:1.5;}
.ct-check input[type=checkbox]{margin-top:2px;flex-shrink:0;width:16px;height:16px;}
.ct-check a{color:var(--accent);}
.ct-btn{display:inline-block;background:var(--accent);color:#fff;padding:12px 32px;border:none;border-radius:4px;font-family:Georgia,serif;font-size:1rem;font-weight:700;cursor:pointer;transition:background 0.2s;}
.ct-btn:hover{background:var(--accent-light);}
.ct-error{background:#fee2e2;color:#dc2626;border:1px solid #fecaca;padding:0.9rem 1rem;border-radius:4px;margin-bottom:1.2rem;font-size:0.88rem;max-width:720px;}
.ct-success{text-align:center;padding:3rem 0;max-width:500px;}
.ct-icon{font-size:3rem;color:var(--accent);margin-bottom:1rem;}
.ct-success h1{font-size:1.8rem;color:var(--primary);margin-bottom:0.8rem;}
.ct-success p{color:var(--text-light);margin-bottom:1.5rem;}
@media(max-width:600px){
    .ct-row{grid-template-columns:1fr;}
    .ct-wrap{padding:1.2rem;}
}

/* ── Search ── */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0;}
.search-page-box{margin-bottom:2rem;}
.search-page-form{display:flex;gap:0;}
.search-page-form input{flex:1;padding:12px 16px;border:2px solid var(--border-color);border-right:none;border-radius:4px 0 0 4px;font-family:Georgia,serif;font-size:1rem;outline:none;}
.search-page-form input:focus{border-color:var(--accent);}
.search-page-form button{background:var(--primary);color:var(--white);border:none;padding:12px 20px;border-radius:0 4px 4px 0;font-size:1rem;cursor:pointer;transition:background 0.2s;}
.search-page-form button:hover{background:var(--accent);}
.search-header{color:var(--text-light);font-size:0.9rem;margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:1px solid var(--border-color);}
.search-noresult{text-align:center;padding:3rem 0;color:var(--text-light);}
.search-noresult h2{font-size:1.4rem;color:var(--primary);margin-bottom:0.8rem;}
.search-results{display:flex;flex-direction:column;gap:1.2rem;margin-bottom:2rem;}
.search-item{display:grid;grid-template-columns:120px 1fr;gap:1.2rem;background:var(--white);border:1px solid var(--border-color);border-radius:4px;overflow:hidden;transition:box-shadow 0.2s;}
.search-item:hover{box-shadow:0 4px 16px rgba(0,0,0,0.08);}
.search-img img{width:120px;height:80px;object-fit:cover;display:block;}
.search-text{padding:0.8rem 1rem 0.8rem 0;}
.search-text h3{font-size:1rem;margin-bottom:0.4rem;line-height:1.4;}
.search-text h3 a{color:var(--text);}
.search-text h3 a:hover{color:var(--accent);text-decoration:none;}
.search-text p{font-size:0.85rem;color:var(--text-light);line-height:1.55;margin-bottom:0.4rem;}
.search-meta{font-size:0.75rem;color:var(--text-light);}
mark{background:#fff3cd;color:var(--text);padding:0 2px;border-radius:2px;}
@media(max-width:600px){
    .search-item{grid-template-columns:80px 1fr;}
    .search-img img{width:80px;height:65px;}
}

/* ── Newsletter ── */
.nl-box{max-width:600px;background:var(--white);border:1px solid var(--border-color);border-radius:8px;padding:2.5rem;margin:1rem 0 2rem;}
.nl-icon{font-size:2.5rem;margin-bottom:0.8rem;}
.nl-box h1{font-size:1.7rem;color:var(--primary);margin-bottom:0.8rem;}
.nl-box > p{color:var(--text-light);margin-bottom:1.5rem;line-height:1.7;}
.nl-form{text-align:left;}
.nl-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem;}
.nl-field{margin-bottom:1.1rem;}
.nl-field label{display:block;font-size:0.85rem;font-weight:700;color:var(--primary);margin-bottom:0.35rem;}
.nl-field input{width:100%;padding:10px 12px;border:1px solid var(--border-color);border-radius:4px;font-family:Georgia,serif;font-size:0.95rem;transition:border-color 0.2s;}
.nl-field input:focus{outline:none;border-color:var(--accent);}
.nl-field input.error{border-color:#dc2626;}
.nl-field input.ok{border-color:#16a34a;}
.nl-err-msg{display:block;font-size:0.75rem;color:#dc2626;margin-top:3px;min-height:16px;}
.nl-ok-msg{display:block;font-size:0.75rem;color:#16a34a;margin-top:3px;min-height:16px;}
.nl-check{margin-bottom:1.2rem;}
.nl-check label{display:flex;gap:0.6rem;align-items:flex-start;font-size:0.85rem;color:var(--text-light);cursor:pointer;line-height:1.5;}
.nl-check input[type=checkbox]{margin-top:2px;flex-shrink:0;width:16px;height:16px;cursor:pointer;}
.nl-check a{color:var(--accent);}
.nl-btn{display:inline-block;background:var(--accent);color:var(--white);padding:12px 36px;border:none;border-radius:4px;font-family:Georgia,serif;font-size:1rem;font-weight:700;cursor:pointer;text-decoration:none;margin-bottom:1rem;transition:background 0.2s;}
.nl-btn:hover{background:var(--accent-light);text-decoration:none;}
.nl-btn:disabled{background:#ccc;cursor:not-allowed;}
.nl-error{background:#fee2e2;color:#dc2626;border:1px solid #fecaca;padding:0.8rem 1rem;border-radius:4px;margin-bottom:1rem;font-size:0.88rem;}
.nl-info{font-size:0.78rem;color:var(--text-light);line-height:1.6;}
@media(max-width:600px){
    .nl-row{grid-template-columns:1fr;}
    .nl-box{padding:1.5rem;}
}

/* ── Login ── */
.login-box{max-width:420px;margin:0 auto;background:#fff;border:1px solid var(--border-color);border-radius:8px;padding:2.5rem;box-shadow:0 4px 20px rgba(0,0,0,0.08);}
.login-title{font-size:1.5rem;color:var(--primary);text-align:center;margin-bottom:0.3rem;}
.login-sub{text-align:center;color:var(--text-light);font-size:0.88rem;margin-bottom:1.8rem;}
.login-error{background:#fee2e2;color:#dc2626;border:1px solid #fecaca;padding:0.8rem 1rem;border-radius:4px;margin-bottom:1.2rem;font-size:0.88rem;}
.login-field{margin-bottom:1.1rem;}
.login-field label{display:block;font-size:0.85rem;font-weight:700;color:var(--primary);margin-bottom:0.35rem;}
.login-field input{width:100%;padding:10px 12px;border:1px solid var(--border-color);border-radius:4px;font-family:Georgia,serif;font-size:0.95rem;transition:border-color 0.2s;}
.login-field input:focus{outline:none;border-color:var(--accent);}
.login-btn{width:100%;background:var(--accent);color:#fff;border:none;padding:11px;border-radius:4px;font-family:Georgia,serif;font-size:1rem;font-weight:700;cursor:pointer;transition:background 0.2s;}
.login-btn:hover{background:var(--primary);}
.login-footer{text-align:center;margin-top:1.2rem;font-size:0.82rem;color:var(--text-light);}
.login-footer a{color:var(--accent);}

/* ══════════════════════════════════════════════════════════════
   DARK MODE
   ══════════════════════════════════════════════════════════════ */

/* Titoli articoli in bianco in dark mode */
/* Sezioni rubriche — titolo rubrica rimane verde */
/* Link articoli in bianco */

/* Bottone dark mode toggle */
.dark-toggle {
    background: none;
    border: none;
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    line-height: 1;
}
.dark-toggle:hover {
    color: #fff;
    background: rgba(255,255,255,0.12);
}

/* ── Sidebar eco-idee ── */
.sidebar-section { margin-bottom: 1.5rem; }
.sidebar-section-title { font-size: 0.95rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.8rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--accent); }
.sidebar-news-item { padding: 0.6rem 0; border-bottom: 1px solid var(--border-color); }
.sidebar-news-item a { font-size: 0.85rem; color: var(--text); line-height: 1.4; display: block; margin-bottom: 0.2rem; }
.sidebar-news-item a:hover { color: var(--accent); text-decoration: none; }
.sidebar-news-date { font-size: 0.72rem; color: var(--text-light); }

/* ── Sidebar Facebook ── */
.sidebar-fb-box { margin-bottom: 1.5rem; }
.sidebar-fb-box .fb-page { display: block; max-width: 100%; }


/* ══════════════════════════════════════════════════════════════
   DARK MODE — COMPLETO
   ══════════════════════════════════════════════════════════════ */
body.dark {
    --primary:      #1a3a1c;
    --accent:       #66bb6a;
    --accent-light: #4caf50;
    --white:        #1e1e1e;
    --light-gray:   #2a2a2a;
    --gray:         #333333;
    --text:         #ffffff;
    --text-light:   #ffffff;
    --border-color: #3a3a3a;
    background:     #121212;
    color:          #ffffff;
}

/* Testi e link */
body.dark a { color: var(--accent); }
body.dark p,
body.dark li,
body.dark span,
body.dark .article-meta,
body.dark .article-date-small,
body.dark .read-more { color: #ffffff; }

/* Titoli — TUTTI bianchi tranne sezioni rubrica */
body.dark h1,
body.dark h2,
body.dark h3,
body.dark h4 { color: #ffffff; }

/* Titoli sezioni e rubriche — verde */
body.dark .section-title,
body.dark .rubrica-title,
body.dark .view-all { color: #66bb6a; }

/* Link titoli articoli — bianchi */
body.dark .article-box h3 a { color: #ffffff !important; }
body.dark .article-box h3 a:hover { color: #66bb6a !important; }
body.dark .article-box h3 { color: #ffffff !important; }
body.dark h1, body.dark h2, body.dark h3, body.dark h4 { color: #ffffff !important; }
body.dark .section-title { color: #66bb6a !important; }
body.dark .rubrica-title { color: #66bb6a !important; }
body.dark .art-title { color: #ffffff !important; }
body.dark .art-subtitle { color: #ffffff !important; }

/* Card articoli */
body.dark .article-box { background: #1e1e1e; border-color: #3a3a3a; }

/* Carousel — testo sempre bianco */
body.dark .carousel-slide h2,
body.dark .carousel-slide p,
body.dark .carousel-content,
body.dark .carousel-link { color: #ffffff; }
body.dark .carousel-overlay { background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 65%, transparent 100%); }

/* Nav */
body.dark .nav-hamburger { color: #ffffff; }
body.dark .nav-compact-logo,
body.dark .nav-compact-logo span,
body.dark .nav-compact-logo small { color: #ffffff; }
body.dark .nav-logo-bar span,
body.dark .nav-logo-bar small { color: #ffffff !important; }

/* Sidebar */
body.dark .weather-widget { background: linear-gradient(135deg, #1a3a1e, #0d2410); }
body.dark .featured-box,
body.dark .social-box,
body.dark .sidebar-section { background: #1e1e1e; }

/* Footer */
body.dark .site-footer { background: #0d1f0e; }

/* Forms */
body.dark input,
body.dark textarea,
body.dark select { background: #2a2a2a; color: #ffffff; border-color: #3a3a3a; }

/* Paginazione */
body.dark .pag-btn { background: #1e1e1e; color: #ffffff; border-color: #3a3a3a; }

/* Ricerca */
body.dark mark { background: #5a4a00; color: #ffffff; }

/* Cookie banner */
body.dark .cookie-box { background: #1e1e1e; color: #ffffff; }

/* Bottone dark toggle */
.dark-toggle {
    background: none;
    border: none;
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    line-height: 1;
}
.dark-toggle:hover {
    color: #fff;
    background: rgba(255,255,255,0.12);
}

/* ── Nav drawer social ── */
.nav-drawer-social { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 0; }
.nav-drawer-social h5 { color: rgba(255,255,255,0.6); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; margin: 0.8rem 24px 0.2rem; font-weight: 600; }
.nav-drawer-social ul { list-style: none; padding: 0; margin: 0; }
.nav-drawer-social ul li a { display: block; padding: 14px 24px; color: rgba(255,255,255,0.88); font-size: 1rem; font-weight: 600; text-decoration: none; transition: all 0.2s; border-bottom: 1px solid rgba(255,255,255,0.07); }
.nav-drawer-social ul li a:hover { color: var(--white); background: rgba(255,255,255,0.08); padding-left: 30px; text-decoration: none; }
