/*
Theme Name: A Voz do Povo Ibiá - Editorial G1
Theme URI: https://avozdopovoibia.jonatasfenedy.com.br/
Author: Antigravity Editorial Team
Author URI: https://jonatasfenedy.com.br/
Description: Tema profissional de notícias para o portal A Voz do Povo Ibiá, fortemente inspirado na arquitetura editorial e visual do G1 (Globo). Desenvolvido com WordPress nativo, Gutenberg, responsivo, mobile-first e totalmente gerenciável pelo painel.
Version: 2.0.0
Tested up to: 6.7
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: a-voz-do-povo-g1
*/

/* ==============================================================
   1. RESET & VARIÁVEIS GLOBAIS
   ============================================================== */
:root {
    --avp-primary-red: #c4170c;
    --avp-headline-red: #8f0f08;
    --avp-hover-red: #a31208;
    --avp-dark-text: #111827;
    --avp-body-text: #222222;
    --avp-muted: #555555;
    --avp-light-muted: #767676;
    --avp-border: #e5e7eb;
    --avp-bg-light: #f8f9fa;
    --avp-white: #ffffff;
    --avp-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --avp-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --avp-font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--avp-font-main);
    color: var(--avp-body-text);
    background-color: var(--avp-white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.avp-container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ==============================================================
   2. CABEÇALHO SUPERIOR (PADRÃO G1)
   ============================================================== */
.avp-header-top {
    background-color: var(--avp-primary-red);
    height: 56px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.avp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.avp-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Botão MENU com hambúrguer */
.avp-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--avp-white);
    font-family: var(--avp-font-main);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.avp-menu-btn:hover {
    background: rgba(0, 0, 0, 0.15);
}

.avp-hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 18px;
    height: 14px;
}

.avp-hamburger-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--avp-white);
    border-radius: 2px;
}

/* Logotipo */
.avp-logo {
    display: flex;
    align-items: center;
    min-width: 0;
}

.avp-logo a {
    color: var(--avp-white);
    font-weight: 900;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    white-space: nowrap;
}

.avp-logo-text {
    white-space: nowrap;
}

.avp-logo-badge {
    background: var(--avp-white);
    color: var(--avp-primary-red);
    font-size: 0.72rem;
    font-weight: 900;
    padding: 2px 5px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    display: inline-block;
    line-height: 1.1;
    white-space: nowrap;
}

.avp-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avp-search-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.18);
    color: var(--avp-white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.avp-search-trigger:hover {
    background: rgba(0, 0, 0, 0.3);
}

.avp-city-badge {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.8rem;
    font-weight: 700;
    display: none;
}

@media (min-width: 768px) {
    .avp-city-badge {
        display: block;
    }
}

/* ==============================================================
   3. BARRA HORIZONTAL DE TÓPICOS / EDITORIAS
   ============================================================== */
.avp-sub-ticker {
    background: var(--avp-white);
    border-bottom: 1px solid var(--avp-border);
    padding: 8px 0;
    font-size: 0.84rem;
}

.avp-ticker-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.avp-ticker-nav::-webkit-scrollbar {
    display: none;
}

.avp-ticker-nav a {
    color: var(--avp-muted);
    font-weight: 700;
    text-transform: capitalize;
}

.avp-ticker-nav a:hover {
    color: var(--avp-primary-red);
}

.avp-ticker-nav a.active {
    color: var(--avp-primary-red);
    border-bottom: 2px solid var(--avp-primary-red);
}

/* ==============================================================
   4. ESPAÇOS PUBLICITÁRIOS (LEADERBOARDS E RETÂNGULOS)
   ============================================================== */
.avp-ad-container {
    width: 100%;
    margin: 20px auto;
    text-align: center;
}

.avp-ad-top {
    max-width: 970px;
}

.avp-ad-mid {
    max-width: 970px;
    margin: 28px auto;
}

.avp-ad-sidebar {
    max-width: 300px;
}

.avp-ad-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: var(--avp-light-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.avp-ad-content img {
    margin: 0 auto;
    max-width: 100%;
    border-radius: 4px;
    box-shadow: var(--avp-shadow-sm);
}

.avp-ad-placeholder {
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    padding: 20px;
    border-radius: 6px;
    color: #64748b;
}

/* Slider / Carrossel de Publicidade em Loop */
.avp-ad-slider-container {
    position: relative;
    user-select: none;
}

.avp-ad-slider-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    vertical-align: top;
    background: transparent;
    border: none;
    box-shadow: none;
}

.avp-ad-slides {
    position: relative;
    width: 100%;
    display: grid;
    background: transparent;
}

.avp-ad-slide {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
    width: 100%;
    z-index: 1;
    background: transparent;
}

.avp-ad-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.avp-ad-slide a {
    display: block;
    line-height: 0;
    border: none;
    outline: none;
}

.avp-ad-slide img {
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    display: block;
    border: none;
    outline: none;
    box-shadow: none;
    background: transparent;
}

/* ==============================================================
   5. ÁREA DE MANCHETES PRINCIPAIS (HERO G1 - 60% / 40%)
   ============================================================== */
.avp-hero-section {
    padding: 10px 0 20px;
}

.avp-hero-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 28px;
    align-items: start;
}

/* Coluna Esquerda: Notícia Principal (60%) */
.avp-hero-main {
    background: var(--avp-white);
}

.avp-editoria-tag {
    display: inline-block;
    color: #4b5563;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.avp-editoria-tag:hover {
    color: var(--avp-primary-red);
}

.avp-hero-main-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin: 0 0 12px;
}

.avp-hero-main-title a {
    color: var(--avp-headline-red);
}

.avp-hero-main-title a:hover {
    color: var(--avp-primary-red);
}

.avp-hero-main-subtitle {
    font-size: 1.05rem;
    line-height: 1.5;
    color: #374151;
    margin: 0 0 14px;
}

.avp-hero-main-media {
    margin-top: 14px;
    border-radius: 8px;
    overflow: hidden;
}

.avp-hero-main-media img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 420px;
    border-radius: 8px;
}

.avp-time-badge {
    display: inline-block;
    font-size: 0.78rem;
    color: var(--avp-light-muted);
    font-weight: 500;
    margin-top: 6px;
}

.avp-time-badge .avp-meta-cat {
    color: #374151;
    font-weight: 600;
}

/* Coluna Direita: Duas Notícias Secundárias Empilhadas (40%) */
.avp-hero-stacked {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.avp-stacked-card {
    position: relative;
    height: 215px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #1e293b;
    box-shadow: var(--avp-shadow-sm);
}

.avp-stacked-card a.avp-stacked-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.avp-stacked-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.avp-stacked-card:hover img {
    transform: scale(1.04);
}

.avp-stacked-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 55%, rgba(0, 0, 0, 0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px;
}

.avp-stacked-cat {
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    text-transform: capitalize;
}

.avp-stacked-title {
    color: #ffffff;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

/* ==============================================================
   6. LAYOUT PRINCIPAL: FEED DE NOTÍCIAS (70%) + SIDEBAR (30%)
   ============================================================== */
.avp-main-layout {
    display: grid;
    grid-template-columns: 2.3fr 1fr;
    gap: 36px;
    margin: 28px auto 50px;
    align-items: start;
}

/* Coluna do Feed */
.avp-feed-col {
    min-width: 0;
}

.avp-feed-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--avp-border);
}

.avp-feed-item:first-child {
    padding-top: 0;
}

.avp-feed-thumb {
    flex: 0 0 250px;
    height: 145px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f1f5f9;
}

.avp-feed-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.avp-feed-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.avp-feed-thumb:hover img {
    transform: scale(1.03);
}

.avp-feed-content {
    flex: 1;
    min-width: 0;
}

.avp-feed-title {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 4px 0 8px;
}

.avp-feed-title a {
    color: var(--avp-headline-red);
}

.avp-feed-title a:hover {
    color: var(--avp-primary-red);
}

/* Marcadores de Matérias Relacionadas (Padrão G1) */
.avp-related-bullets {
    list-style: none;
    padding: 0;
    margin: 6px 0 10px;
    font-size: 0.88rem;
}

.avp-related-bullets li {
    position: relative;
    padding-left: 14px;
    margin-bottom: 4px;
    color: #374151;
    line-height: 1.35;
}

.avp-related-bullets li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--avp-primary-red);
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1;
}

.avp-related-bullets a {
    color: #374151;
}

.avp-related-bullets a:hover {
    text-decoration: underline;
    color: #111;
}

/* Paginação */
.avp-pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.avp-pagination .page-numbers {
    padding: 8px 14px;
    border: 1px solid var(--avp-border);
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #334155;
}

.avp-pagination .page-numbers.current {
    background: var(--avp-primary-red);
    color: var(--avp-white);
    border-color: var(--avp-primary-red);
}

.avp-pagination .page-numbers:hover:not(.current) {
    background: #f1f5f9;
}

/* ==============================================================
   7. BARRA LATERAL (COMPONENTES DO G1)
   ============================================================== */
.avp-sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.avp-sidebar-card {
    background: var(--avp-white);
    border: 1px solid var(--avp-border);
    border-radius: 8px;
    padding: 16px 18px;
    box-shadow: var(--avp-shadow-sm);
}

.avp-card-header {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.avp-card-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.avp-blue-badge {
    background: #0284c7;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Widget: Leia Também */
.avp-leia-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.avp-leia-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.avp-leia-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.avp-leia-title {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    flex: 1;
}

.avp-leia-title a {
    color: var(--avp-headline-red);
}

.avp-leia-title a:hover {
    color: var(--avp-primary-red);
}

.avp-leia-thumb {
    flex: 0 0 64px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
    background: #f1f5f9;
}

.avp-leia-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Widget: Previsão do Tempo Ibiá-MG */
.avp-weather-body {
    font-size: 0.88rem;
}

.avp-weather-city {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.avp-weather-rain {
    color: #475569;
    font-size: 0.82rem;
    margin-bottom: 14px;
}

.avp-weather-periods {
    display: grid;
    grid-template-columns: repeat(3, 1fr) 1.2fr;
    gap: 8px;
    align-items: center;
    background: #f8fafc;
    padding: 10px;
    border-radius: 6px;
}

.avp-period-col {
    text-align: center;
}

.avp-period-icon {
    font-size: 1.3rem;
    display: block;
}

.avp-period-name {
    font-size: 0.72rem;
    color: #64748b;
    text-transform: capitalize;
}

.avp-temp-range {
    text-align: right;
    display: flex;
    flex-direction: column;
}

.avp-temp-max {
    font-weight: 800;
    color: #b91c1c;
    font-size: 0.95rem;
}

.avp-temp-min {
    font-weight: 600;
    color: #0284c7;
    font-size: 0.85rem;
}

.avp-weather-footer {
    margin-top: 10px;
    text-align: right;
    color: #94a3b8;
    font-size: 0.75rem;
}

/* Widget: Especiais / Podcasts */
.avp-podcast-body {
    display: flex;
    gap: 12px;
    align-items: center;
}

.avp-podcast-cover {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    background: linear-gradient(135deg, #c4170c, #450a0a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    flex-shrink: 0;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.avp-podcast-cover:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 12px rgba(196, 23, 12, 0.35);
}

.avp-podcast-cover.is-playing {
    animation: avpLivePulse 1.6s infinite;
    box-shadow: 0 0 0 3px rgba(196, 23, 12, 0.25);
}

.avp-podcast-footer-row {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.avp-podcast-live-status {
    font-size: 0.76rem;
    font-weight: 700;
    color: #64748b;
}

.avp-podcast-live-status.is-playing {
    color: #15803d;
}

.avp-podcast-live-status.is-error {
    color: #dc2626;
}

.avp-podcast-action-btn {
    background: transparent;
    border: none;
    padding: 4px 0;
    font-family: var(--avp-font-main);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--avp-primary-red);
    cursor: pointer;
}

.avp-podcast-action-btn:hover {
    text-decoration: underline;
}

.avp-podcast-info {
    flex: 1;
}

.avp-podcast-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--avp-headline-red);
    margin: 0 0 4px;
}

.avp-podcast-title-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--avp-headline-red);
    text-align: left;
    cursor: pointer;
    line-height: 1.35;
    display: inline;
}

.avp-podcast-title-btn:hover {
    text-decoration: underline;
}

.avp-podcast-desc {
    font-size: 0.8rem;
    color: #475569;
    margin: 0;
}

.avp-podcast-embed-box {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 6px;
}

.avp-podcast-embed-box iframe,
.avp-podcast-embed-box audio {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 6px;
}

/* Player Nativo Inline para Rádios (TuneYou / Stream Direto sem sair da página) */
.avp-native-radio-widget {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.avp-native-radio-widget.is-playing {
    border-color: var(--avp-radio-accent, var(--avp-primary-red));
    box-shadow: 0 2px 10px rgba(196, 23, 12, 0.14);
    background: #ffffff;
}

.avp-native-radio-play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--avp-radio-accent, var(--avp-primary-red));
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    padding: 0;
    transition: transform 0.15s ease, opacity 0.2s ease;
}

.avp-native-radio-play-btn:hover {
    transform: scale(1.06);
}

.avp-native-radio-widget.is-playing .avp-native-radio-play-btn {
    animation: avpLivePulse 1.5s infinite;
}

.avp-native-radio-logo-wrap {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.avp-native-radio-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avp-native-radio-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.avp-native-radio-title-btn {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    text-align: left;
    font-family: var(--avp-font-main);
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.avp-native-radio-title-btn:hover {
    color: var(--avp-radio-accent, var(--avp-primary-red));
}

.avp-native-radio-sub {
    font-size: 0.74rem;
    color: #64748b;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.avp-native-radio-widget.is-playing .avp-native-radio-sub {
    color: #15803d;
}

.avp-native-radio-widget.is-error .avp-native-radio-sub {
    color: #dc2626;
}

/* ==============================================================
   8. GAVETA DE NAVEGAÇÃO LATERAL (OFF-CANVAS DRAWER)
   ============================================================== */
.avp-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.avp-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.avp-nav-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 320px;
    max-width: 85vw;
    background: #ffffff;
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.2);
}

.avp-nav-drawer.active {
    transform: translateX(0);
}

.avp-nav-drawer-header {
    background: var(--avp-primary-red);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.avp-nav-drawer-header strong {
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.avp-drawer-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.avp-drawer-search {
    padding: 16px 20px;
    border-bottom: 1px solid var(--avp-border);
}

.avp-drawer-search form {
    display: flex;
}

.avp-drawer-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px 0 0 4px;
    font-size: 0.9rem;
}

.avp-drawer-search button {
    background: var(--avp-primary-red);
    color: #fff;
    border: none;
    padding: 0 14px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.avp-drawer-menu {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.avp-drawer-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.avp-drawer-menu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    color: #1e293b;
    font-weight: 700;
    font-size: 0.95rem;
    border-bottom: 1px solid #f1f5f9;
}

.avp-drawer-menu li a:hover {
    background: #f8fafc;
    color: var(--avp-primary-red);
}

.avp-drawer-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--avp-border);
    font-size: 0.8rem;
    color: #64748b;
    background: #f8fafc;
}

/* ==============================================================
   9. PÁGINA INTERNA DA NOTÍCIA (SINGLE.PHP)
   ============================================================== */
.avp-single-article {
    max-width: 840px;
    margin: 30px auto;
}

.avp-single-header {
    margin-bottom: 24px;
}

.avp-single-title {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--avp-headline-red);
    margin: 10px 0 14px;
}

.avp-single-subtitle {
    font-size: 1.2rem;
    line-height: 1.45;
    color: #4b5563;
    margin-bottom: 18px;
}

.avp-single-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-top: 1px solid var(--avp-border);
    border-bottom: 1px solid var(--avp-border);
    font-size: 0.85rem;
    color: #64748b;
    gap: 12px;
}

.avp-share-bar {
    display: flex;
    gap: 8px;
}

.avp-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.avp-share-wa { background: #25d366; }
.avp-share-fb { background: #1877f2; }
.avp-share-tw { background: #000000; }
.avp-share-copy { background: #475569; }

.avp-single-featured-image {
    margin: 24px 0;
    border-radius: 8px;
    overflow: hidden;
}

.avp-single-featured-image img {
    width: 100%;
    height: auto;
}

.avp-image-caption {
    font-size: 0.82rem;
    color: #64748b;
    margin-top: 6px;
    font-style: italic;
}

.avp-single-body {
    font-size: 1.12rem;
    line-height: 1.8;
    color: #1f2937;
}

.avp-single-body p {
    margin-bottom: 1.4em;
}

.avp-single-body h2, .avp-single-body h3 {
    color: #0f172a;
    font-weight: 800;
    margin-top: 1.6em;
    margin-bottom: 0.6em;
}

.avp-source-box {
    background: #f8fafc;
    border-left: 4px solid var(--avp-primary-red);
    padding: 14px 18px;
    margin: 32px 0;
    border-radius: 0 6px 6px 0;
    font-size: 0.9rem;
    color: #334155;
}

.avp-source-box a {
    color: var(--avp-primary-red);
    font-weight: 600;
    text-decoration: underline;
}

/* ==============================================================
   10. RODAPÉ DO PORTAL
   ============================================================== */
.avp-footer {
    background: #111827;
    color: #e5e7eb;
    padding: 44px 0 24px;
    margin-top: 60px;
    border-top: 4px solid var(--avp-primary-red);
}

.avp-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 36px;
}

.avp-footer-logo strong {
    font-size: 1.4rem;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.avp-footer-logo p {
    color: #9ca3af;
    font-size: 0.88rem;
    margin: 8px 0 0;
}

.avp-footer-col h4 {
    color: #ffffff;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 16px;
}

.avp-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.avp-footer-col li {
    margin-bottom: 8px;
}

.avp-footer-col a {
    color: #9ca3af;
    font-size: 0.88rem;
}

.avp-footer-col a:hover {
    color: #ffffff;
}

.avp-footer-bottom {
    border-top: 1px solid #1f2937;
    padding-top: 20px;
    text-align: center;
    font-size: 0.82rem;
    color: #6b7280;
}

/* ==============================================================
   11. RESPONSIVIDADE (MOBILE & TABLET)
   ============================================================== */
@media (max-width: 992px) {
    .avp-hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .avp-hero-main-title {
        font-size: 1.85rem;
    }

    .avp-main-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .avp-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .avp-header-top {
        height: 52px;
    }

    .avp-header-left {
        gap: 8px;
    }

    .avp-menu-btn {
        padding: 6px 8px;
        font-size: 0.75rem;
    }

    .avp-logo a {
        font-size: 0.95rem;
        white-space: nowrap;
        gap: 4px;
    }

    .avp-logo-badge {
        font-size: 0.65rem;
        padding: 1px 4px;
    }

    .avp-search-trigger {
        padding: 5px 8px;
        font-size: 0.75rem;
    }

    .avp-search-trigger span:last-child {
        display: none; /* Exibe apenas a lupa em telas estreitas para não espremer o logo */
    }

    .avp-hero-main-title {
        font-size: 1.55rem;
    }

    .avp-feed-item {
        flex-direction: column;
        gap: 12px;
    }

    .avp-feed-thumb {
        flex: auto;
        width: 100%;
        height: 190px;
    }

    .avp-feed-title {
        font-size: 1.15rem;
    }

    .avp-stacked-card {
        height: 180px;
    }

    .avp-single-title {
        font-size: 1.7rem;
    }

    .avp-404-number {
        font-size: 3rem;
    }

    .avp-404-title {
        font-size: 1.6rem;
    }

    .avp-404-search-form {
        flex-direction: column;
    }

    .avp-404-search-btn {
        padding: 12px;
        justify-content: center;
    }
}

/* ==============================================================
   PÁGINA 404 PERSONALIZADA & BREADCRUMBS (PADRÃO EDITORIAL G1)
   ============================================================== */
.avp-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    color: #64748b;
    margin: 16px 0 20px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.avp-breadcrumb a {
    color: var(--avp-headline-red);
    font-weight: 600;
}

.avp-breadcrumb a:hover {
    text-decoration: underline;
}

.avp-breadcrumb-separator {
    color: #94a3b8;
    font-size: 0.95rem;
}

.avp-breadcrumb-current {
    color: #334155;
    font-weight: 600;
}

.avp-404-hero-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 4px solid var(--avp-primary-red);
    border-radius: 8px;
    padding: 36px 32px;
    margin-bottom: 36px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.avp-404-badge-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.avp-404-tag {
    display: inline-block;
    background: #fee2e2;
    color: #991b1b;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.avp-404-number {
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--avp-headline-red);
    line-height: 1;
    margin: 0;
    font-family: var(--avp-font-main);
    letter-spacing: -0.04em;
}

.avp-404-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 14px 0 12px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.avp-404-desc {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 680px;
    margin: 0 0 28px;
}

.avp-404-search-box {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 28px;
}

.avp-404-search-label {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.avp-404-search-form {
    display: flex;
    gap: 8px;
}

.avp-404-search-input {
    flex: 1;
    padding: 12px 16px;
    font-size: 0.95rem;
    border: 1px solid #94a3b8;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #ffffff;
}

.avp-404-search-input:focus {
    border-color: var(--avp-primary-red);
    box-shadow: 0 0 0 3px rgba(196, 23, 12, 0.15);
}

.avp-404-search-btn {
    background: var(--avp-primary-red);
    color: #ffffff;
    border: none;
    padding: 0 24px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
}

.avp-404-search-btn:hover {
    background: var(--avp-headline-red);
}

.avp-404-pills-section {
    border-top: 1px solid #e2e8f0;
    padding-top: 24px;
}

.avp-404-pills-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 12px;
}

.avp-404-pills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.avp-404-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    color: #1e293b;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.avp-404-pill:hover {
    background: var(--avp-primary-red);
    color: #ffffff;
    border-color: var(--avp-primary-red);
}

.avp-404-pill.avp-pill-home {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.avp-404-pill.avp-pill-home:hover {
    background: var(--avp-primary-red);
    border-color: var(--avp-primary-red);
}

.avp-404-feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 32px 0 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--avp-primary-red);
}

.avp-404-feed-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.01em;
}

.avp-404-empty-editoria {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 40px 24px;
    text-align: center;
    margin: 20px 0;
}

/* ==============================================================
   12. OCULTAÇÃO DO ÍCONE FLUTUANTE DE COOKIES APÓS ACEITE
   Remove o botão flutuante persistente na lateral / canto inferior
   ============================================================== */
.cookieadmin_re_consent,
.cookieadmin_reconsent_img,
#cmplz-manage-consent,
.cmplz-manage-consent-container,
#cmplz-manage-consent-container-bottom-left {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

