/*
Theme Name: DigitalGuru
Author: DigitalGuru
Author URI: https://digitalguru.com.br/
Theme URI: https://digitalguru.com.br/
Description: Tema de notícias com manchetes em destaque, grade editorial, modo escuro e layouts responsivos.
Version: 1.0.0-dev.5
Text Domain: digitalguru
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
    --bg-color: #F8FAFC;
    --surface-color: #ffffff;
    
    --text-color: #4B5563;
    --title-color: #111827;
    --primary-color: #9370DB;
    --primary-hover: #FF7518; 
    --btn-color: #9370DB;
    --icon-color: #111827;
    
    --bg-grad-1: 147, 112, 219;
    --bg-grad-2: 255, 117, 24;

    --font-body: 'Inter', sans-serif;
    --font-headings: 'Inter Tight', sans-serif;
    --font-post-title: 'Inter Tight', sans-serif;
    --font-widget-title: 'Inter Tight', sans-serif;
    
    --weight-body: 400;
    --weight-headings: 800;
    --weight-post-title: 800;
    --weight-widget-title: 800;
    
    --size-body: 16px;
    --size-h1: 38px;
    --size-post-title: 44px;
    --size-widget-title: 20px;

    --text-muted: #6B7280;
    --drawer-bg: rgba(255, 255, 255, 0.98);
    --drawer-text: #111827;
    --border-color: #E5E7EB;
    
    --radius: 8px;
    --radius-sm: 8px;
    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ISOLAMENTO DO DARK MODE: Aplica apenas aos blocos do tema, blindando os plugins (como Chatbots) na raiz */
html.dark-mode .site-wrapper, html.dark-mode .drawer-menu, html.dark-mode .site-header {
    --bg-color: #0f172a;
    --surface-color: #1e293b;
    --text-color: #94a3b8;
    --title-color: #f8fafc;
    --icon-color: #f8fafc;
    --text-muted: #64748b;
    --drawer-bg: rgba(15, 23, 42, 0.98);
    --drawer-text: #f8fafc;
    --border-color: #334155;
}
html.dark-mode { background-color: #0f172a !important; }

/* Reset Seguro e Anti-overflow */
*, *::before, *::after { box-sizing: border-box; }
html { background-color: var(--bg-color); transition: background-color var(--transition); min-height: 100%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: hidden; }
body { margin: 0; padding: 0; background-color: transparent; overflow-x: hidden; position: relative; min-height: 100%; max-width: 100vw; }

/* ISOLAMENTO DE TEMA (Impede vazar para plugins externos como Chatbots) */
.site-wrapper, .drawer-menu, .site-header, .site-footer {
    font-family: var(--font-body); font-size: var(--size-body); font-weight: var(--weight-body); color: var(--text-color); line-height: 1.7; transition: color var(--transition);
}

/* Ocultar Barra Premium se for WP Admin / Login */
body:not(.login):not(.wp-admin)::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
    z-index: 999999;
}

.site-wrapper h1, .site-wrapper h2, .site-wrapper h3, .site-wrapper h4, .site-wrapper h5, .site-wrapper h6, .site-logo a, .drawer-nav-list a, .hero-title { 
    font-family: var(--font-headings); 
    font-weight: var(--weight-headings);
    color: var(--title-color);
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 0;
}
h1 { font-size: var(--size-h1); }

.single-title { font-family: var(--font-post-title); font-weight: var(--weight-post-title); font-size: var(--size-post-title); color: var(--title-color); }
.widget-title { font-family: var(--font-widget-title); font-weight: var(--weight-widget-title); font-size: var(--size-widget-title); color: var(--title-color); }

.site-wrapper a, .drawer-menu a, .site-footer a { color: var(--primary-color); text-decoration: none; transition: color var(--transition); }
.site-wrapper a:hover, .drawer-menu a:hover, .site-footer a:hover { color: var(--primary-hover); }
input[type="submit"], .btn-primary { background-color: var(--btn-color); color: #fff; border-radius: var(--radius-sm); font-family: var(--font-headings); font-weight: 700; transition: var(--transition); border: none; }
input[type="submit"]:hover, .btn-primary:hover { background-color: var(--primary-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

.dark-mode-btn i, .drawer-trigger i, .drawer-socials a i, .footer-col i { color: var(--icon-color); transition: color 0.3s; }
.dark-mode-btn:hover i, .drawer-trigger:hover i, .footer-col a:hover i { color: var(--primary-hover); }
.drawer-socials a:hover i { color: #ffffff !important; }

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }
ul, ol { padding-left: 20px; margin-bottom: 25px; }

.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; overflow-x: hidden; width: 100%; }
.container { max-width: 1350px; margin: 0 auto; padding: 0 20px; width: 100%; box-sizing: border-box; }
@media(max-width: 768px) { .container { padding: 0 10px; } }

.content-area { flex: 1; padding: 110px 0 60px; width: 100%; max-width: 100vw; overflow-x: hidden; }

.layout-with-sidebar { display: grid; grid-template-columns: 1fr 340px; gap: 50px; align-items: start; width: 100%; }
@media(max-width: 992px) { .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
.layout-no-sidebar { display: block; max-width: 1000px; margin: 0 auto; width: 100%; }
.main-content { min-width: 0; max-width: 100%; overflow-x: hidden; }

/* ==========================================================================
   CABEÇALHO (HEADER) INTELIGENTE & CLIMA
   ========================================================================== */
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 0; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(0,0,0,0.02); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease; box-shadow: 0 4px 30px rgba(0,0,0,0.02); will-change: transform; transform: translateZ(0); }
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
.site-header.header-hidden { transform: translateY(-100%); opacity: 0; pointer-events: none; }
html.dark-mode .site-header { background: rgba(15, 23, 42, 0.85); border-bottom: 1px solid rgba(255,255,255,0.05); box-shadow: 0 4px 30px rgba(0,0,0,0.2); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1400px; margin: 0 auto; position: relative; height: 70px; padding: 0 20px; }
.site-logo { flex: 0 0 auto; display: flex; align-items: center; }
.site-logo a { font-size: 26px; letter-spacing: -0.04em; font-weight: 800; }
.site-logo img { max-height: 42px; width: auto; border-radius: 0; }

.header-nav { flex: 1; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.header-nav::-webkit-scrollbar { display: none; }
.header-nav.is-scrollable { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%); }
.header-menu { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; align-items: center; gap: 2px; width: max-content; }
.header-menu > li { flex: 0 0 auto; }
.header-menu > li { position: relative; }
.header-menu a { display: block; padding: 8px 12px; white-space: nowrap; font-family: var(--t-nav-font); font-size: var(--t-nav-size); font-weight: var(--t-nav-weight); color: var(--t-nav-color, var(--title-color)); text-transform: uppercase; letter-spacing: 0.5px; transition: color 0.25s; }
.header-menu > li > a::after { content: ''; display: block; height: 2px; margin-top: 3px; background: linear-gradient(90deg, var(--primary-color), var(--primary-hover)); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
.header-menu > li:hover > a::after, .header-menu > li.current-menu-item > a::after, .header-menu > li.current-menu-ancestor > a::after { transform: scaleX(1); }
.header-menu a:hover, .header-menu .current-menu-item > a, .header-menu .current-menu-ancestor > a { color: var(--primary-color); }
html.dark-mode .header-menu a { color: var(--title-color); }
html.dark-mode .header-menu a:hover, html.dark-mode .header-menu .current-menu-item > a, html.dark-mode .header-menu .current-menu-ancestor > a { color: var(--primary-color); }

.header-right { display: flex; justify-content: flex-end; align-items: center; gap: 15px; flex: 0 0 auto; }
.dark-mode-btn { background: none; border: none; font-size: 22px; cursor: pointer; transition: transform 0.2s; padding: 0 5px; }
.dark-mode-btn:hover { transform: scale(1.1); }
.drawer-trigger { background: none; border: none; font-size: 24px; cursor: pointer; transition: color 0.2s; display: flex; align-items: center; }
@media (max-width: 1100px) { .header-nav { display: none; } .header-right { margin-left: auto; } }

#weather-widget { display: flex; align-items: center; gap: 6px; font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--text-muted); }
.drawer-weather { padding: 0 30px 15px; }

/* ==========================================================================
   MENU LATERAL (DRAWER MENU) - PRIORIDADE MAXIMA
   ========================================================================== */
.drawer-overlay { position: fixed; inset: 0; background: rgba(17, 24, 39, 0.4); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; z-index: 99998; transition: opacity var(--transition); }
.drawer-overlay.active { opacity: 1; visibility: visible; }
.drawer-menu { position: fixed; top: 0; bottom: 0; left: -350px; width: 320px; max-width: 85%; height: 100vh; height: 100dvh; background: var(--drawer-bg); -webkit-backdrop-filter: blur(25px); backdrop-filter: blur(25px); color: var(--drawer-text); z-index: 99999; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s; visibility: hidden; padding: 40px 30px calc(40px + env(safe-area-inset-bottom, 0px)); box-shadow: 10px 0 40px rgba(0,0,0,0.08); display: flex; flex-direction: column; }
.drawer-menu > * { flex-shrink: 0; }
.drawer-menu.open { left: 0; visibility: visible; }
html.drawer-open, html.drawer-open body { overflow: hidden; height: 100%; }

.drawer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.drawer-logo img { max-height: 40px; width: auto; border-radius: 0; display: block; }
.close-drawer { background: none; border: none; color: var(--icon-color); font-size: 28px; cursor: pointer; transition: transform var(--transition); }
.close-drawer:hover { color: var(--primary-hover); transform: rotate(90deg); }
.drawer-nav-container { flex: 1 0 auto; }
.drawer-nav-list { display: flex; flex-direction: column; gap: 25px; list-style: none; padding: 0; margin: 0; }
.drawer-nav-list a { font-family: var(--font-drawer, var(--font-headings)); font-weight: var(--weight-drawer, 700); font-size: var(--size-drawer, 38px) !important; line-height: 1.2; letter-spacing: -0.02em; display: block; transition: color 0.2s, transform 0.2s; }
.drawer-nav-list a:hover { color: var(--primary-hover); transform: translateX(8px); }

.drawer-search-form { position: relative; margin-top: 30px; margin-bottom: 20px; width: 100%; display: flex; align-items: center; }
.drawer-search-input { width: 100%; padding: 12px 15px 12px 45px; border-radius: var(--radius); background: rgba(0,0,0,0.03); border: 1px solid var(--border-color); color: var(--drawer-text); font-family: inherit; font-size: 14px; outline: none; transition: border-color 0.3s; }
html.dark-mode .drawer-search-input { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); color: #fff; }
.drawer-search-input:focus { border-color: var(--primary-color); }
.drawer-search-btn { position: absolute; left: 16px; background: none; border: none; color: var(--text-muted); font-size: 15px; cursor: pointer; transition: color 0.3s; }
.drawer-search-btn:hover { color: var(--primary-hover); }

.drawer-socials { display: flex; gap: 15px; margin-top: 10px; padding-top: 25px; border-top: 1px solid var(--border-color); font-size: 20px; justify-content: flex-start; }
.drawer-socials a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: rgba(0,0,0,0.04); border-radius: 50%; color: var(--icon-color); transition: all 0.3s ease; }
html.dark-mode .drawer-socials a { background: rgba(255,255,255,0.05); }
.drawer-socials a:hover { background: var(--primary-color); color: #fff; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(147, 112, 219, 0.25); }

/* ==========================================================================
   HERO GRID 
   ========================================================================== */


.hero-slider-col .swiper { height: 100%; width: 100%; display: block; overflow: hidden; position: relative; }
.hero-slide { position: relative; display: block; height: 100%; width: 100%; overflow: hidden; }
.hero-slider .swiper-slide { pointer-events: none; }
.hero-slider .swiper-slide-active { pointer-events: auto; }
.hero-slide img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; border-radius: var(--radius); }
.hero-slide:hover img { transform: scale(1.03); }

.hero-static-card img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); border-radius: var(--radius); }

.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 45px; pointer-events: none; }

/* Categorias em Evidência na Hero Grid */
.hero-cat-badge { 
    display: inline-block; 
    align-self: flex-start; 
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover)); 
    border: 0;
    color: #fff; 
    font-size: 9px; 
    font-weight: 400; 
    padding: 4px 10px; 
    border-radius: var(--radius-sm); 
    text-transform: uppercase; 
    margin-bottom: 12px; 
    letter-spacing: 1px; 
    transition: 0.3s; 
    pointer-events: auto; 
    text-shadow: none; 
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

.hero-title { font-size: 40px; color: #fff !important; line-height: 1.2; margin-bottom: 0px; max-width: 85%; pointer-events: auto; font-weight: 800; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.hero-slide .hero-title span { transition: color 0.3s ease; }
.hero-slide:hover .hero-title span { color: var(--primary-color) !important; }
.hero-static-card .hero-title span { transition: color 0.3s ease; }
.hero-static-card:hover .hero-title span { color: var(--primary-color) !important; }

.swiper-pagination-bullet { background: rgba(255,255,255,0.5) !important; opacity: 1; border-radius: 999px; pointer-events: auto; transition: all 0.3s; width: 8px; height: 8px; }
.swiper-pagination-bullet-active { background: var(--primary-color) !important; width: 28px; }


/* ==========================================================================
   BANNERS ADS
   ========================================================================== */
.banner-wrapper { margin-bottom: 60px; text-align: center; width: 100%; display: block; }
.banner-wrapper img { width: 100%; height: auto; max-height: 150px; object-fit: cover; border-radius: var(--radius-sm); box-shadow: 0 8px 30px rgba(0,0,0,0.03); display: block; margin: 0 auto; }
.banner-wrapper a { display: inline-block; width: 100%; transition: transform 0.3s; }
.banner-wrapper a:hover { transform: translateY(-2px); }

/* ==========================================================================
   CARDS GRID (PADRÃO PREMIUM - LEIA MAIS)
   ========================================================================== */
.block-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 20px; margin-bottom: 50px; }

.clean-article-card { 
    border: none; background: transparent; border-radius: 0; box-shadow: none;
    transition: var(--transition); display: flex; flex-direction: column; overflow: visible; padding: 0;
}
html.dark-mode .clean-article-card { box-shadow: none; }
.clean-article-card:hover { transform: none; box-shadow: none; }
html.dark-mode .clean-article-card:hover { box-shadow: none; }

.clean-article-card .card-thumbnail { overflow: hidden; position: relative; width: 100%; aspect-ratio: 16 / 9; margin-bottom: 0; height: auto; border-radius: var(--radius-sm); }
.clean-article-card .card-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); will-change: transform; transform: translateZ(0); }
.clean-article-card:hover .card-thumbnail img { transform: scale(1.05); }

.clean-article-info { display: flex; flex-direction: column; gap: 4px; padding: 10px 0 0; flex-grow: 1; }
.clean-article-info .clean-article-title { margin-bottom: 8px; }

.clean-article-cat { 
    color: #4b5563; font-size: 10px; font-weight: 400; text-transform: uppercase; 
    letter-spacing: 1px; font-family: var(--font-body); align-self: flex-start; line-height: 1.2;
}
html.dark-mode .clean-article-cat { color: var(--primary-color); }

.clean-article-title { font-size: 17px; font-weight: var(--weight-post-title); color: var(--title-color); line-height: 1.3; font-family: var(--font-post-title); transition: color 0.3s; margin: 0; }
.clean-article-card:hover .clean-article-title { color: var(--primary-color); }

.leia-mais-btn {
    display: inline-block; border: 0; background: none; color: var(--primary-color);
    padding: 8px 0; border-radius: 0; font-size: 13px; font-weight: 700;
    margin-top: 0; line-height: 1.2; transition: color 0.3s ease; align-self: flex-start; text-transform: uppercase; letter-spacing: 0.5px;
}
.clean-article-card:hover .leia-mais-btn { background: none; color: var(--primary-hover); border: 0; text-decoration: underline; }

@media(max-width: 992px) { .block-grid-3 { grid-template-columns: repeat(2, 1fr); gap: 24px 20px; } }
@media(max-width: 768px) { .block-grid-3 { grid-template-columns: 1fr; } }

/* ==========================================================================
   SIDEBAR E WIDGETS
   ========================================================================== */
.sidebar { display: flex; flex-direction: column; gap: 40px; min-width: 0; max-width: 100%; }
.widget { background: transparent; padding: 0; box-shadow: none; border: none; }
.widget-title { font-size: var(--size-widget-title); margin-bottom: 30px !important; display: block; text-transform: uppercase; letter-spacing: 1px; padding-bottom: 0; border-bottom: none; }
.widget ul { list-style: none; padding-left: 0; }
.widget ul li { padding: 15px 0; border-bottom: 1px solid var(--border-color); transition: var(--transition); }
.widget ul li:last-child { border-bottom: none; padding-bottom: 0; }
.widget ul li a { color: var(--text-color); font-weight: 500; }
.widget ul li a:hover { color: var(--primary-color); padding-left: 5px; }

.dgnews-widget-recent-posts { list-style: none; padding: 0; margin: 0; }
.dgnews-widget-recent-posts li { display: flex; gap: 15px; margin-bottom: 25px; align-items: center; border-bottom: none !important; padding: 0 !important; }
.dgnews-widget-recent-posts li:last-child { margin-bottom: 0; }
.dgnews-widget-recent-posts .thumb { flex-shrink: 0; width: 85px; height: 85px; border-radius: var(--radius-sm); overflow: hidden; position: relative; }
.dgnews-widget-recent-posts .thumb img { position: absolute; top:0; left:0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.dgnews-widget-recent-posts li:hover .thumb img { transform: scale(1.1); }
.dgnews-widget-recent-posts .info { flex: 1; min-width: 0; }
.dgnews-widget-recent-posts .info h4 { font-size: 15px; font-weight: 700; line-height: 1.4; margin: 0 0 6px; font-family: var(--font-headings); color: var(--title-color); transition: color 0.3s; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dgnews-widget-recent-posts li:hover .info h4 { color: var(--primary-color); }
.dgnews-widget-recent-posts .info span { font-size: 12px; color: var(--text-muted); font-weight: 600; display: block; }

.dgnews-tags-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.dgnews-tags-cloud a { background: rgba(0,0,0,0.04); padding: 8px 18px; border-radius: var(--radius); font-size: 13px; font-weight: 600; color: var(--text-color); transition: all 0.3s ease; }
html.dark-mode .dgnews-tags-cloud a { background: rgba(255,255,255,0.05); color: var(--text-color); }
.dgnews-tags-cloud a:hover { background: var(--primary-color); color: #fff; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(147, 112, 219, 0.25); }

/* ==========================================================================
   SINGLE POST E MAIS LIDOS
   ========================================================================== */
.single-container { background: transparent; border-radius: 0; padding: 0; box-shadow: none; border: none; overflow-wrap: break-word; word-wrap: break-word; max-width: 100%; }

@media(min-width: 992px) {
    /* Padding generoso exclusivo para desktop nas paginas de post */
    .single-container { padding: 0 40px; }
}

.single-header { margin-bottom: 40px; margin-top: 0; text-align: center; display: flex; flex-direction: column; gap: 35px; align-items: center; }
.single-title { font-size: var(--size-post-title); line-height: 1.2; margin: 0 !important; letter-spacing: -0.03em; }

.single-meta { display: flex; justify-content: center; gap: 15px; color: var(--color-meta, var(--text-muted)); font-family: var(--font-meta, var(--font-body)); font-weight: var(--weight-meta, 600); font-size: var(--size-meta, 14px); align-items: center; flex-wrap: wrap; text-transform: none; letter-spacing: 0.5px; margin: 0 !important; }
.single-meta a { color: var(--color-meta, var(--primary-color)); }
.single-meta a:hover { color: var(--primary-hover); }
.meta-sep { opacity: 0.4; margin: 0 2px; }

/* Botões A+ e A- */
.font-resizer { display: inline-flex; align-items: center; gap: 8px; margin-left: 15px; border-left: 1px solid var(--border-color); padding-left: 15px; }
.font-resizer button { background: var(--surface-color); border: 1px solid var(--border-color); border-radius: 4px; padding: 2px 8px; cursor: pointer; color: var(--text-color); font-weight: 600; transition: 0.3s; font-size: 12px; }
.font-resizer button:hover { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }

.single-thumbnail { margin-bottom: 30px; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.05); }
.single-thumbnail img { width: 100%; height: auto; border-radius: var(--radius); }

.single-content { line-height: 1.85; font-size: 17px; color: var(--text-color); transition: font-size 0.3s ease; max-width: 100%; overflow-x: hidden; }
.single-content h2, .single-content h3 { margin: 50px 0 25px; letter-spacing: -0.02em; color: var(--title-color); }
.single-content p { margin-bottom: 25px; }
.single-content img, .single-content iframe, .single-content video, .single-content table { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 35px 0; box-shadow: 0 8px 30px rgba(0,0,0,0.04); }
.single-content li { margin-bottom: 10px; }
.single-content pre { max-width: 100%; overflow-x: auto; }

.single-content figure { margin: 35px 0; max-width: 100%; text-align: center; }
.single-content figure img { margin: 0 auto 15px; }
.wp-caption-text, figcaption { font-size: 14px; color: var(--text-muted); font-style: normal; text-align: center; display: block; margin-top: 10px; font-weight: 500; }

.single-tags { margin: 50px 0; display: flex; gap: 10px; flex-wrap: wrap; }
.single-tags a { background: rgba(0,0,0,0.04); border: none; padding: 8px 18px; border-radius: var(--radius); font-size: 13px; font-weight: 600; color: var(--text-color); transition: all 0.3s ease; }
html.dark-mode .single-tags a { background: rgba(255,255,255,0.05); color: var(--text-color); }
.single-tags a:hover { background: var(--primary-color); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(147, 112, 219, 0.25); }

/* Bloco Relacionados / Mais Lidos */
.site-wrapper .related-posts-section { margin: 40px 0 0; padding: 35px 36px; background: var(--surface-color); border: 1px solid rgba(0,0,0,0.06); border-radius: var(--radius); box-shadow: none; box-sizing: border-box; clear: both; }
html.dark-mode .site-wrapper .related-posts-section { border-color: rgba(255,255,255,0.06); }
.site-wrapper .related-posts-section .related-posts-title { font-family: var(--font-headings); font-weight: 800; font-size: 20px; line-height: 1.2; text-transform: uppercase; letter-spacing: 1.5px; margin: 0 0 28px; padding: 0 0 14px; border: 0; border-bottom: 2px solid rgba(0,0,0,0.08); color: var(--title-color); }
html.dark-mode .site-wrapper .related-posts-section .related-posts-title { border-bottom-color: rgba(255,255,255,0.1); }

.site-wrapper .related-posts-section .most-read-list { list-style: none; margin: 0; padding: 0; }
.site-wrapper .related-posts-section .most-read-list li { display: block; margin: 0 0 20px; padding: 0; border: 0; list-style: none; }
.site-wrapper .related-posts-section .most-read-list li:last-child { margin-bottom: 0; }
.site-wrapper .related-posts-section .most-read-list a { display: flex; flex-direction: row; align-items: center; gap: 16px; padding: 0; text-decoration: none; }
.site-wrapper .related-posts-section .most-read-list a::before { content: none; }
.site-wrapper .related-posts-section .mr-thumb { flex: 0 0 76px; width: 76px; height: 76px; border-radius: var(--radius-sm); overflow: hidden; display: block; position: relative; }
.site-wrapper .related-posts-section .mr-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; border-radius: 0; box-shadow: none; transition: transform 0.5s; }
.site-wrapper .related-posts-section .most-read-list a:hover .mr-thumb img { transform: scale(1.1); }
.site-wrapper .related-posts-section .mr-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.site-wrapper .related-posts-section .mr-cat { display: block; font-size: 11px; font-weight: 700; line-height: 1.2; text-transform: uppercase; letter-spacing: 1px; color: var(--primary-hover); }
.site-wrapper .related-posts-section .mr-title { display: block; font-family: var(--font-post-title); font-weight: 700; font-size: 16px; line-height: 1.35; letter-spacing: -0.01em; color: var(--title-color); transition: color 0.3s; }
.site-wrapper .related-posts-section .most-read-list a:hover .mr-title { color: var(--primary-color); }
@media (max-width: 600px) { .site-wrapper .related-posts-section { padding: 25px 20px; } }

.author-box { display: flex; gap: 30px; align-items: center; margin-top: 60px; padding: 40px; background: var(--surface-color); border-radius: var(--radius); border: 1px solid rgba(0,0,0,0.02); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03); transition: var(--transition); }
html.dark-mode .author-box { border: 1px solid rgba(255,255,255,0.05); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2); }
.author-avatar img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 4px solid var(--primary-color); padding: 4px; background: var(--surface-color); }
.author-info h4 { font-size: 22px; margin-bottom: 10px; font-family: var(--font-headings); font-weight: var(--weight-headings); color: var(--title-color); letter-spacing: -0.02em; }
.author-info p { color: var(--text-color); font-size: 16px; line-height: 1.7; margin: 0; }

.share-container { margin: 50px 0; padding: 35px; background: var(--surface-color); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03); display: flex; align-items: center; gap: 25px; flex-wrap: wrap; border: 1px solid rgba(0,0,0,0.02); }
html.dark-mode .share-container { border: 1px solid rgba(255,255,255,0.05); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2); }
.share-title { font-size: 18px; font-weight: 800; font-family: var(--font-headings); color: var(--title-color); margin: 0; text-transform: uppercase; letter-spacing: 0.5px; }
.share-buttons { display: flex; gap: 15px; flex-wrap: wrap; }
.share-buttons a { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; font-size: 20px; color: #ffffff !important; transition: transform 0.3s, box-shadow 0.3s; text-decoration: none; }
.share-buttons a i { color: #ffffff !important; }
.share-buttons a:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,0.15); }
.share-wa { background-color: #25D366; }
.share-fb { background-color: #1877F2; }
.share-tg { background-color: #229ED9; }
.share-in { background-color: #0A66C2; }

@media(max-width: 768px) { 
    .single-title { font-size: 32px !important; } 
    .author-box { flex-direction: column; text-align: center; } 
    .share-container { flex-direction: column; align-items: center; gap: 20px; text-align: center; }
    .font-resizer { margin: 10px 0 0 0; border: none; padding: 0; justify-content: center; width: 100%; }
}

/* ==========================================================================
   COMENTÁRIOS E RESULTADOS PESQUISA
   ========================================================================== */
.search-no-results { text-align:center; width:100%; grid-column: 1 / -1; padding: 50px; background: var(--surface-color); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0,0,0,0.03); }

#comments { margin-top: 60px; padding-top: 60px; border-top: 1px solid var(--border-color); }
.comments-title, .comment-reply-title { font-size: 28px; margin-bottom: 40px; font-family: var(--font-headings); font-weight: var(--weight-headings); color: var(--title-color); letter-spacing: -0.02em; }

.comment-list { padding: 0; margin: 0; list-style: none; }
.comment-list li.comment { margin-bottom: 30px; }
.comment-body { padding: 30px; background: var(--surface-color); border-radius: var(--radius); border: 1px solid rgba(0,0,0,0.02); box-shadow: 0 8px 30px rgba(0,0,0,0.02); }
html.dark-mode .comment-body { border: 1px solid rgba(255,255,255,0.05); }
.comment-meta { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.comment-meta img { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--bg-color); }
.comment-author b { font-size: 17px; font-family: var(--font-headings); color: var(--title-color); }
.comment-metadata a { font-size: 13px; color: var(--text-muted); margin-left: 10px; font-weight: 500; }
.comment-content p { margin-bottom: 15px; line-height: 1.7; color: var(--text-color); }
.reply a { display: inline-block; font-size: 13px; font-weight: 700; color: var(--primary-color); background: rgba(147, 112, 219, 0.1); padding: 8px 20px; border-radius: var(--radius); transition: var(--transition); text-transform: uppercase; letter-spacing: 0.5px; }
.reply a:hover { color: #fff; background: var(--primary-color); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(147, 112, 219, 0.3); }
.children { margin-left: 50px; list-style: none; padding-left: 0; margin-top: 30px; border-left: 2px solid var(--border-color); padding-left: 30px; }

#respond { margin-top: 60px; background: var(--surface-color); padding: 45px; border-radius: var(--radius); border: 1px solid rgba(0,0,0,0.02); box-shadow: 0 8px 30px rgba(0,0,0,0.03); }
html.dark-mode #respond { border: 1px solid rgba(255,255,255,0.05); }

.comment-form { display: grid; gap: 25px; }
.comment-form label { display: block; margin-bottom: 10px; font-weight: 600; font-size: 15px; color: var(--title-color); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 16px 20px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--bg-color); color: var(--text-color); font-family: inherit; font-size: 15px; transition: all 0.3s; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 4px rgba(147, 112, 219, 0.1); background: var(--surface-color); }
.comment-form textarea { resize: vertical; min-height: 150px; }
.form-submit { margin-top: 15px; }
.form-submit input[type="submit"] { border: none; padding: 16px 35px; border-radius: var(--radius-sm); font-weight: 700; font-size: 16px; cursor: pointer; transition: all 0.3s; letter-spacing: 0.5px; }

/* ==========================================================================
   RODAPÉ (FOOTER)
   ========================================================================== */
.site-footer { position: relative; overflow: hidden; width: 100%; margin-top: auto; padding: 90px 0 0; color: #e5e7eb; border-radius: var(--radius) var(--radius) 0 0;
    background:
        radial-gradient(ellipse 55% 70% at 0% 0%, rgba(var(--bg-grad-1), 0.30), transparent 70%),
        radial-gradient(ellipse 55% 70% at 100% 100%, rgba(var(--bg-grad-2), 0.26), transparent 70%),
        linear-gradient(180deg, #0f172a 0%, #030712 100%); }
.site-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, rgb(var(--bg-grad-1)), var(--primary-color), rgb(var(--bg-grad-2))); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; margin-bottom: 60px; position: relative; z-index: 10; }
.footer-col { word-break: break-word; }
.footer-col .widget { background: transparent; border: none; box-shadow: none; padding: 0; }
.footer-col h3.widget-title { position: relative; font-size: 18px; color: #ffffff !important; margin-bottom: 28px !important; padding-bottom: 14px; letter-spacing: 1px; border: none; }
.footer-col h3.widget-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 44px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--primary-color), var(--primary-hover)); }
.footer-brand { margin-bottom: 18px; }
.footer-brand a { font-size: 28px; font-weight: 800; color: #fff; letter-spacing: -0.04em; }
.footer-brand img { max-height: 46px; width: auto; border-radius: 0; }
.footer-col p, .footer-col ul { color: #9ca3af; line-height: 1.8; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 12px; border-bottom: none; padding: 0; }
.footer-col a { color: #9ca3af; font-weight: 400; transition: color 0.3s, transform 0.3s; }
.footer-col ul li a { display: inline-block; }
.footer-col ul li a:hover { color: #fff; transform: translateX(5px); padding-left: 0; }
.footer-col i { color: var(--primary-hover); transition: color 0.3s; }
.footer-social { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; font-size: 20px; border-radius: var(--radius); background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.08); transition: transform 0.3s, background 0.3s, box-shadow 0.3s; }
.footer-social a i { color: #fff; }
.footer-social a:hover { transform: translateY(-5px) rotate(-4deg); background: linear-gradient(135deg, var(--primary-color), var(--primary-hover)); box-shadow: 0 12px 22px -8px rgba(var(--bg-grad-2), 0.9); }
.footer-bottom { position: relative; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; border-top: 1px solid rgba(255,255,255,0.08); color: #6b7280; font-size: 14px; }
.footer-bottom p { margin: 0; }
.footer-links { display: flex; align-items: center; gap: 25px; }
.footer-bottom a { color: #9ca3af; }
.footer-bottom a:hover { color: #fff; }
.footer-top-btn { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 0; cursor: pointer; border-radius: var(--radius); background: linear-gradient(135deg, var(--primary-color), var(--primary-hover)); color: #fff; font-size: 15px; box-shadow: 0 10px 20px -8px rgba(var(--bg-grad-2), 0.9); transition: transform 0.3s; }
.footer-top-btn:hover { transform: translateY(-4px); }
.footer-top-btn i { color: #fff; }
@media(max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-col:first-child { grid-column: 1 / -1; } }
@media(max-width: 768px) { .site-footer { padding-top: 70px; } .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; } .footer-col h3.widget-title::after { left: 50%; transform: translateX(-50%); } .footer-social { justify-content: center; } .footer-bottom { flex-direction: column; gap: 18px; text-align: center; } .footer-links { flex-wrap: wrap; justify-content: center; } }

.pagination { display: flex; gap: 12px; margin-top: 60px; justify-content: center; }
.pagination .page-numbers { background: var(--surface-color); border: none; border-radius: var(--radius-sm); width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--text-color); transition: var(--transition); box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
html.dark-mode .pagination .page-numbers { background: rgba(255,255,255,0.05); color: #f8fafc; }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: linear-gradient(135deg, var(--primary-color), var(--primary-hover)); color: #fff; box-shadow: 0 8px 25px rgba(147, 112, 219, 0.3); transform: translateY(-2px); }


/* ===== Blocos dinâmicos da Home (destaque + lista + abas) ===== */
.dyn-block { margin-bottom: 55px; }
.dyn-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; flex-wrap: wrap; margin-bottom: 25px; border-bottom: 1px solid rgba(128,128,128,0.2); }
.site-wrapper .dyn-head .dyn-title { margin: 0; padding: 0 0 12px; line-height: 1.2; position: relative; margin-bottom: -1px; border-bottom: 3px solid var(--primary-color); }
.dyn-tabs { display: flex; flex-wrap: wrap; gap: 4px 16px; padding-bottom: 12px; }
.dyn-tab { background: none; border: 0; padding: 4px 0; cursor: pointer; font-family: var(--font-body); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: #6b7280; transition: color 0.3s; }
.dyn-tab:hover, .dyn-tab.is-active { color: var(--primary-color); }
.dyn-panel { display: none; }
.dyn-panel.is-active { display: block; animation: dynFade 0.35s ease; }
@keyframes dynFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.dyn-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: stretch; }
.dyn-feature { position: relative; display: block; min-height: 340px; border-radius: var(--radius); overflow: hidden; }
.dyn-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform 0.6s ease; }
.dyn-feature:hover img { transform: scale(1.05); }
.dyn-feature-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0) 100%); }
.dyn-feature-overlay .hero-cat-badge { margin-bottom: 10px; }
.site-wrapper .dyn-feature-title { font-size: 24px; line-height: 1.25; font-weight: 700; color: #fff; margin: 0 0 8px; transition: color 0.3s; }
.dyn-feature:hover .dyn-feature-title { color: var(--primary-color); }

.dyn-list { display: flex; flex-direction: column; }
.dyn-item { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(128,128,128,0.2); }
.dyn-item:first-child { padding-top: 0; }
.dyn-item:last-child { border-bottom: 0; padding-bottom: 0; }
.dyn-thumb { flex: 0 0 96px; width: 96px; height: 96px; border-radius: var(--radius-sm); overflow: hidden; display: block; }
.dyn-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform 0.5s; }
.dyn-item:hover .dyn-thumb img { transform: scale(1.1); }
.dyn-item-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1; }
.dyn-item-title { display: block; font-family: var(--font-post-title); font-weight: var(--weight-post-title); font-size: 16px; line-height: 1.3; color: var(--title-color); transition: color 0.3s; }
.dyn-item:hover .dyn-item-title { color: var(--primary-color); }
.dyn-meta-light { color: rgba(255,255,255,0.8); }
html.dark-mode .dyn-tab { color: #9ca3af; }
html.dark-mode .dyn-tab:hover, html.dark-mode .dyn-tab.is-active { color: var(--primary-color); }
.dyn-empty { color: #6b7280; }

@media (max-width: 992px) {
    .dyn-grid { grid-template-columns: 1fr; gap: 20px; }
    .dyn-feature { align-self: start; width: 100%; min-height: 240px; aspect-ratio: 16 / 10; }
    .dyn-tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; white-space: nowrap; }
}


/* ===== Tipografia estilo portal (controlada em Personalizar > Tipografia da Home) ===== */
.site-wrapper .hero-slide .hero-title { font-family: var(--t-hero-main-font); font-size: var(--t-hero-main-size); font-weight: var(--t-hero-main-weight); color: var(--t-hero-main-color, #fff) !important; letter-spacing: 0; line-height: 1.12; }
.site-wrapper .hero-static-card .hero-title { font-family: var(--t-hero-side-font); font-size: var(--t-hero-side-size); font-weight: var(--t-hero-side-weight); color: var(--t-hero-side-color, #fff) !important; letter-spacing: 0; line-height: 1.15; }
.site-wrapper .hero-cat-badge { font-family: var(--t-hero-cat-font); font-size: var(--t-hero-cat-size); font-weight: var(--t-hero-cat-weight); color: var(--t-hero-cat-color, #fff); letter-spacing: 1px; }
.site-wrapper .dyn-feature-title { font-family: var(--t-dyn-feature-font); font-size: var(--t-dyn-feature-size); font-weight: var(--t-dyn-feature-weight); color: var(--t-dyn-feature-color, #fff); letter-spacing: 0; line-height: 1.15; }
.site-wrapper .dyn-item-title { font-family: var(--t-dyn-item-font); font-size: var(--t-dyn-item-size); font-weight: var(--t-dyn-item-weight); color: var(--t-dyn-item-color, var(--title-color)); letter-spacing: 0; line-height: 1.2; }
.site-wrapper .clean-article-title { font-family: var(--t-card-title-font); font-size: var(--t-card-title-size); font-weight: var(--t-card-title-weight); color: var(--t-card-title-color, var(--title-color)); letter-spacing: 0; line-height: 1.2; }
.site-wrapper .clean-article-cat { font-family: var(--t-card-cat-font); font-size: var(--t-card-cat-size); font-weight: var(--t-card-cat-weight); color: var(--t-card-cat-color, #4b5563); }
.site-wrapper .dyn-meta { font-family: var(--font-meta); font-size: var(--size-meta); font-weight: var(--weight-meta); }
.site-wrapper .dyn-meta:not(.dyn-meta-light) { color: var(--color-meta); }
html.dark-mode .site-wrapper .dyn-meta:not(.dyn-meta-light) { color: #9ca3af; }
.site-wrapper .leia-mais-btn { font-family: var(--t-readmore-font); font-size: var(--t-readmore-size); font-weight: var(--t-readmore-weight); color: var(--t-readmore-color, var(--primary-color)); }
.site-wrapper .home-section-title { margin: 0; font-family: var(--t-section-font); font-size: var(--t-section-size); font-weight: var(--t-section-weight); color: var(--t-section-color, var(--title-color)); letter-spacing: 0; }
.hero-overlay .dyn-meta { margin-top: 8px; pointer-events: none; }
.clean-article-info .dyn-meta { display: block; }
.clean-article-info .clean-article-title + .dyn-meta { margin-bottom: 2px; }
@media (max-width: 768px) {
    .site-wrapper .hero-slide .hero-title { font-size: min(var(--t-hero-main-size), 28px); }
    .site-wrapper .hero-static-card .hero-title { font-size: min(var(--t-hero-side-size), 20px); }
    .site-wrapper .dyn-feature-title { font-size: min(var(--t-dyn-feature-size), 24px); }
}

.pagination .page-numbers.disabled { opacity: 0.35; pointer-events: none; }

/* Modo escuro: textos com cor automática ignoram cor personalizada (feita para fundo claro) */
html.dark-mode .site-wrapper .clean-article-title,
html.dark-mode .site-wrapper .dyn-item-title,
html.dark-mode .site-wrapper .home-section-title { color: var(--title-color); }
html.dark-mode .site-wrapper .clean-article-card:hover .clean-article-title,
html.dark-mode .site-wrapper .dyn-item:hover .dyn-item-title { color: var(--primary-color); }


/* ===== Barra lateral fixa (sticky) ===== */
/* overflow-x: clip evita criar um container de rolagem (que quebraria o sticky) */
@supports (overflow: clip) {
    body, .site-wrapper, .content-area { overflow-x: clip; }
}
@media (min-width: 993px) {
    body.dgnews-sticky-sidebar .layout-with-sidebar > .sidebar { position: sticky; top: 130px; align-self: start; }
}


/* ==========================================================================
   HERO POP: slide (3 artigos) + 4 cards
   ========================================================================== */
.hero-grid-wrapper { display: grid; grid-template-columns: 1.5fr 1fr 1fr; grid-template-rows: repeat(2, 1fr); gap: 6px; height: 520px; width: 100%; margin-bottom: 70px; }
.hero-grid-wrapper.no-static { grid-template-columns: 1fr; }
.hero-slider-col { grid-column: 1; grid-row: 1 / span 2; min-width: 0; height: 100%; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 45px -20px rgba(var(--bg-grad-1), 0.65); }
.hero-slider-col::before { content: 'Em destaque'; position: absolute; top: 18px; left: 18px; z-index: 5; padding: 6px 14px; border-radius: var(--radius); background: rgba(255,255,255,0.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-family: var(--font-headings); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; pointer-events: none; }
.hero-slide .hero-overlay { background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.35) 50%, rgba(var(--bg-grad-1), 0.12) 100%); }
.hero-slider .swiper-pagination { text-align: right; padding-right: 30px; bottom: 26px; }

.hero-static-col { display: contents; }
.hero-static-card { position: relative; display: block; min-width: 0; min-height: 0; border-radius: var(--radius); overflow: hidden; isolation: isolate; box-shadow: 0 16px 30px -16px rgba(var(--bg-grad-1), 0.6); transition: transform 0.35s ease, box-shadow 0.35s ease; }
.hero-card-2, .hero-card-3 { box-shadow: 0 16px 30px -16px rgba(var(--bg-grad-2), 0.6); }
.hero-static-card img { border-radius: 0; }
.hero-static-card::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(150deg, rgba(var(--bg-grad-1), 0.42) 0%, rgba(var(--bg-grad-1), 0) 55%); }
.hero-card-2::after, .hero-card-3::after { background: linear-gradient(150deg, rgba(var(--bg-grad-2), 0.42) 0%, rgba(var(--bg-grad-2), 0) 55%); }
.hero-static-card .hero-overlay { z-index: 2; padding: 20px; background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0) 100%); }
.hero-static-card .hero-cat-badge { margin-bottom: 8px; }
.hero-static-card .hero-title { max-width: 100%; margin-bottom: 0; }
.hero-static-card:hover { transform: translateY(-6px) rotate(-0.5deg); }
.hero-static-card:hover img { transform: scale(1.08); }

@media (max-width: 992px) {
    .hero-grid-wrapper { grid-template-columns: repeat(2, 1fr); grid-template-rows: 420px 230px 230px; height: auto; }
    .hero-slider-col { grid-column: 1 / -1; grid-row: 1; }
}
@media (max-width: 600px) {
    .hero-grid-wrapper { grid-template-rows: 360px 200px 200px; gap: 6px; }
    .hero-overlay { padding: 22px; }
    .hero-static-card .hero-overlay { padding: 14px; }
    .site-wrapper .hero-static-card .hero-title { font-size: min(var(--t-hero-side-size), 15px); }
}

/* ==========================================================================
   FUNDO: gradiente suave entre as duas cores do tema (exceto cabeçalho e rodapé)
   ========================================================================== */
.content-area {
    background:
        radial-gradient(ellipse 65% 55% at 0% 0%, rgba(var(--bg-grad-1), 0.20), transparent 70%),
        radial-gradient(ellipse 65% 55% at 100% 100%, rgba(var(--bg-grad-2), 0.18), transparent 70%),
        radial-gradient(ellipse 55% 45% at 100% 0%, rgba(var(--bg-grad-2), 0.09), transparent 70%),
        radial-gradient(ellipse 55% 45% at 0% 100%, rgba(var(--bg-grad-1), 0.09), transparent 70%),
        linear-gradient(135deg, rgba(var(--bg-grad-1), 0.10) 0%, rgba(var(--bg-grad-2), 0.10) 100%),
        var(--bg-color);
}
html.dark-mode .content-area {
    background:
        radial-gradient(ellipse 65% 55% at 0% 0%, rgba(var(--bg-grad-1), 0.20), transparent 70%),
        radial-gradient(ellipse 65% 55% at 100% 100%, rgba(var(--bg-grad-2), 0.17), transparent 70%),
        radial-gradient(ellipse 55% 45% at 100% 0%, rgba(var(--bg-grad-2), 0.09), transparent 70%),
        radial-gradient(ellipse 55% 45% at 0% 100%, rgba(var(--bg-grad-1), 0.09), transparent 70%),
        linear-gradient(135deg, rgba(var(--bg-grad-1), 0.11) 0%, rgba(var(--bg-grad-2), 0.11) 100%),
        var(--bg-color);
}
@media (min-width: 993px) { .content-area, html.dark-mode .content-area { background-attachment: fixed; } }


/* ==========================================================================
   TICKER "ÚLTIMAS" (acima do grid principal)
   ========================================================================== */
.news-ticker-wrapper { display: flex; align-items: center; height: 46px; margin-bottom: 18px; background: var(--surface-color); border: 1px solid rgba(128,128,128,0.15); border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 28px -16px rgba(var(--bg-grad-1), 0.55); }
.news-ticker-label { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; height: 100%; padding: 0 18px; background: linear-gradient(135deg, var(--primary-color), var(--primary-hover)); color: var(--t-ticker-label-color, #fff); font-family: var(--t-ticker-label-font); font-size: var(--t-ticker-label-size); font-weight: var(--t-ticker-label-weight); text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; }
.news-ticker-scroll { flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); }
.news-ticker-inner { display: flex; align-items: center; width: max-content; animation: dgnTicker 60s linear infinite; }
.news-ticker-inner:hover { animation-play-state: paused; }
.ticker-group { display: flex; align-items: center; gap: 44px; padding: 0 22px; flex: 0 0 auto; }
.site-wrapper .news-ticker-item { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; font-family: var(--t-ticker-item-font); font-size: var(--t-ticker-item-size); font-weight: var(--t-ticker-item-weight); color: var(--t-ticker-item-color, var(--title-color)); transition: color 0.25s; }
.site-wrapper .news-ticker-item:hover { color: var(--primary-color); }
.news-ticker-item img { width: 22px; height: 22px; border-radius: var(--radius); object-fit: cover; flex-shrink: 0; }
html.dark-mode .site-wrapper .news-ticker-item { color: var(--title-color); }
html.dark-mode .site-wrapper .news-ticker-item:hover { color: var(--primary-color); }
@keyframes dgnTicker { to { transform: translate3d(-50%, 0, 0); } }
@media (max-width: 600px) { .news-ticker-wrapper { height: 42px; } .news-ticker-label { padding: 0 12px; } }

/* ==========================================================================
   WIDGET: MAIS ACESSADOS DA SEMANA
   ========================================================================== */
.pop-widget { position: relative; padding: 22px; border-radius: var(--radius); background: var(--surface-color); border: 1px solid rgba(128,128,128,0.15); box-shadow: 0 24px 45px -26px rgba(var(--bg-grad-1), 0.7); overflow: hidden; }
.pop-widget::before { content: ''; position: absolute; top: -70px; right: -70px; width: 190px; height: 190px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--bg-grad-2), 0.35), transparent 70%); pointer-events: none; }
.pop-head { position: relative; display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.pop-fire { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius); background: linear-gradient(135deg, var(--primary-color), var(--primary-hover)); color: #fff; font-size: 18px; box-shadow: 0 10px 20px -8px rgba(var(--bg-grad-2), 0.9); transform: rotate(-6deg); }
.site-wrapper .pop-head .pop-title { margin: 0; flex: 1; font-family: var(--font-widget-title); font-size: var(--size-widget-title); font-weight: var(--weight-widget-title); text-transform: uppercase; letter-spacing: 0.5px; line-height: 1.1; }
.pop-chip { padding: 4px 10px; border-radius: var(--radius); background: rgba(var(--bg-grad-1), 0.14); color: var(--primary-color); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }

.pop-list { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; counter-reset: none; }
.pop-item a { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--radius); transition: transform 0.3s ease, background 0.3s ease; }
.pop-item a:hover { background: rgba(128,128,128,0.08); transform: translateX(4px); }
.pop-rank { flex: 0 0 auto; min-width: 26px; text-align: center; font-family: var(--font-headings); font-size: 34px; font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--primary-color), var(--primary-hover)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.pop-thumb { flex: 0 0 62px; width: 62px; height: 62px; border-radius: var(--radius); overflow: hidden; display: block; }
.pop-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform 0.5s; }
.pop-item a:hover .pop-thumb img { transform: scale(1.12); }
.pop-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.pop-name { display: block; font-family: var(--t-popular-font); font-size: var(--t-popular-size); font-weight: var(--t-popular-weight); color: var(--t-popular-color, var(--title-color)); line-height: 1.2; transition: color 0.25s; }
html.dark-mode .pop-name { color: var(--title-color); }
.pop-item a:hover .pop-name { color: var(--primary-color); }
.pop-views { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.pop-views i { color: var(--primary-hover); font-size: 11px; }

/* 1º lugar em destaque: imagem grande */
.pop-first a { display: block; padding: 0; border-radius: var(--radius); overflow: hidden; }
.pop-first a:hover { transform: translateY(-3px); background: none; }
.pop-first .pop-thumb { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: var(--radius); }
.pop-first .pop-rank { position: absolute; top: 12px; left: 12px; z-index: 3; min-width: 0; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); font-size: 22px; background: linear-gradient(135deg, var(--primary-color), var(--primary-hover)); -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: #fff; color: #fff; box-shadow: 0 10px 20px -6px rgba(0,0,0,0.5); }
.pop-first .pop-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 40px 16px 14px; background: linear-gradient(to top, rgba(0,0,0,0.92), rgba(0,0,0,0)); border-radius: 0 0 var(--radius) var(--radius); }
.pop-first .pop-name, .site-wrapper .pop-first .pop-name { color: #fff; font-size: calc(var(--t-popular-size) + 3px); }
.pop-first .pop-views { color: rgba(255,255,255,0.85); }
.pop-first .clean-article-cat { color: #fff; }


/* ==========================================================================
   BARRA LATERAL POP
   ========================================================================== */
.sidebar { gap: 28px; }
.sidebar .widget_search, .sidebar .widget_recent_entries, .sidebar .widget_categories, .sidebar .widget_archive, .sidebar .widget_tag_cloud, .sidebar .widget_pages, .sidebar .widget_nav_menu, .sidebar .widget_meta, .sidebar .widget_recent_comments, .sidebar .widget_calendar, .sidebar .widget_rss {
    position: relative; padding: 24px; overflow: hidden; background: var(--surface-color); border: 1px solid rgba(128,128,128,0.15); border-radius: var(--radius); box-shadow: 0 22px 40px -28px rgba(var(--bg-grad-1), 0.75);
}
.sidebar .widget-title { position: relative; display: flex; align-items: center; gap: 10px; margin-bottom: 22px !important; padding-bottom: 14px; border-bottom: 1px solid rgba(128,128,128,0.18); }
.sidebar .widget-title::before { content: ''; flex: 0 0 auto; width: 6px; height: 22px; border-radius: 3px; background: linear-gradient(180deg, var(--primary-color), var(--primary-hover)); }
.sidebar .widget-title::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 70px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--primary-color), var(--primary-hover)); }
.sidebar .widget_categories li, .sidebar .widget_archive li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sidebar .widget ul li:hover { transform: none; }
.sidebar .widget_search input[type="search"], .sidebar .widget_search input[type="text"] { width: 100%; padding: 12px 14px; border-radius: var(--radius); border: 1px solid rgba(128,128,128,0.25); background: rgba(128,128,128,0.06); color: var(--text-color); }
.sidebar .widget_search input[type="submit"], .sidebar .widget_search button { margin-top: 10px; padding: 11px 18px; border: 0; cursor: pointer; background: linear-gradient(135deg, var(--primary-color), var(--primary-hover)); color: #fff; }
.sidebar .tagcloud a { display: inline-block; margin: 0 6px 8px 0; padding: 7px 14px; border-radius: var(--radius); background: rgba(128,128,128,0.1); color: var(--text-color); font-size: 13px !important; font-weight: 600; transition: transform 0.25s, background 0.25s, color 0.25s; }
.sidebar .tagcloud a:hover { transform: translateY(-3px); background: linear-gradient(135deg, var(--primary-color), var(--primary-hover)); color: #fff; }

/* ==========================================================================
   WIDGET: PERFIL DO INSTAGRAM
   ========================================================================== */
.ig-widget { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface-color); border: 1px solid rgba(128,128,128,0.15); box-shadow: 0 24px 45px -26px rgba(220,39,67,0.6); }
.ig-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; color: #fff; background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.ig-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 46px; height: 46px; border-radius: var(--radius); background: rgba(255,255,255,0.2); font-size: 24px; }
.ig-icon i { color: #fff; }
.ig-info { min-width: 0; }
.site-wrapper .ig-title { margin: 0; color: #fff; font-size: 18px; line-height: 1.15; }
.site-wrapper .ig-user { color: rgba(255,255,255,0.9); font-size: 14px; font-weight: 600; }
.site-wrapper .ig-user:hover { color: #fff; text-decoration: underline; }
.ig-frame { padding: 0; background: #fff; }
.ig-frame iframe { display: block; width: 100%; border: 0; border-radius: 0; background: #fff; }
.site-wrapper .ig-follow { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 14px; padding: 12px 18px; border-radius: var(--radius); color: #fff; font-weight: 700; background: linear-gradient(135deg, #f09433, #dc2743 55%, #bc1888); transition: transform 0.3s, box-shadow 0.3s; }
.site-wrapper .ig-follow i { color: #fff; font-size: 18px; }
.site-wrapper .ig-follow:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 14px 24px -10px rgba(220,39,67,0.8); }

/* Redes sociais com cores originais (widget do rodapé) */
.footer-social.dgnews-social--brand a { background: var(--brand); border-color: transparent; }
.footer-social.dgnews-social--brand a:hover { background: var(--brand); filter: brightness(1.15); }

/* Acessibilidade: primeiro link de salto visível quando recebe foco. */
.dgnews-skip-link { position: fixed; top: -100px; left: 12px; z-index: 1000000; padding: 12px 18px; color: #111827; background: #fff; border: 2px solid #111827; text-decoration: none; }
.dgnews-skip-link:focus { top: 12px; }
#content:focus { outline: none; }

/* DigitalGuru: slider local com transição fade; mantém o hero e a paginação originais. */
.hero-slider .swiper-wrapper { position: relative; width: 100%; height: 100%; }
.hero-slider .swiper-slide { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; visibility: hidden; z-index: 0; transition: opacity .45s ease, visibility .45s ease; }
.hero-slider .swiper-slide.swiper-slide-active { opacity: 1; visibility: visible; z-index: 1; }
.hero-slider .swiper-pagination { position: absolute; z-index: 4; left: 0; right: 0; display: flex; justify-content: flex-end; gap: 7px; align-items: center; }
.hero-slider .swiper-pagination-bullet { display: inline-block; cursor: pointer; padding: 0; border: 0; min-width: 8px; height: 8px; }
.hero-slider .swiper-pagination-bullet:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .hero-slider .swiper-slide { transition: none; } }

/* Ícones essenciais locais em SVG: arquivo relativo ao próprio tema, sem dependência externa. */
.dg-icon { display: inline-block; width: 1em; height: 1em; flex: 0 0 auto; background-color: currentColor; vertical-align: -0.125em; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.dg-icon-moon { -webkit-mask-image: url('assets/icons/moon.svg'); mask-image: url('assets/icons/moon.svg'); }
.dg-icon-sun { -webkit-mask-image: url('assets/icons/sun.svg'); mask-image: url('assets/icons/sun.svg'); }
.dg-icon-menu { -webkit-mask-image: url('assets/icons/menu.svg'); mask-image: url('assets/icons/menu.svg'); }
.dg-icon-close { -webkit-mask-image: url('assets/icons/close.svg'); mask-image: url('assets/icons/close.svg'); }
.dg-icon-search { -webkit-mask-image: url('assets/icons/search.svg'); mask-image: url('assets/icons/search.svg'); }
.dg-icon-arrow-left { -webkit-mask-image: url('assets/icons/arrow-left.svg'); mask-image: url('assets/icons/arrow-left.svg'); }
.dg-icon-arrow-right { -webkit-mask-image: url('assets/icons/arrow-right.svg'); mask-image: url('assets/icons/arrow-right.svg'); }
.dg-icon-arrow-up { -webkit-mask-image: url('assets/icons/arrow-up.svg'); mask-image: url('assets/icons/arrow-up.svg'); }
.dg-icon-bolt { -webkit-mask-image: url('assets/icons/bolt.svg'); mask-image: url('assets/icons/bolt.svg'); }
.dark-mode-btn .dg-icon, .drawer-trigger .dg-icon { color: var(--icon-color); transition: color 0.3s; }
.dark-mode-btn:hover .dg-icon, .drawer-trigger:hover .dg-icon { color: var(--primary-hover); }
