/*
Theme Name: Blog do Acélio
Theme URI: https://www.blogdoacelio.com.br/
Author: JOERI
Author URI: https://joeri.com.br/
Description: Tema jornalístico, responsivo e otimizado para o Blog do Acélio.
Version: 2.2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: blog-do-acelio
Tags: news, blog, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, right-sidebar
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
    --bda-primary: #015A9E;
    --bda-primary-dark: #003f70;
    --bda-primary-soft: #eaf5fc;
    --bda-accent: #f4b400;
    --bda-text: #16202a;
    --bda-muted: #687583;
    --bda-border: #e5eaf0;
    --bda-surface: #ffffff;
    --bda-bg: #f4f7fa;
    --bda-shadow: 0 14px 40px rgba(15, 35, 55, .09);
    --bda-radius: 16px;
    --bda-container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--bda-text);
    background: var(--bda-bg);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--bda-primary); text-decoration: none; }
a:hover { color: var(--bda-primary-dark); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden; padding: 0;
    position: absolute !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
    background: #fff; clip: auto !important; clip-path: none; color: #111;
    display: block; font-size: 14px; height: auto; left: 8px; padding: 12px 16px;
    top: 8px; width: auto; z-index: 99999; border-radius: 6px;
}
.bda-container { width: min(calc(100% - 32px), var(--bda-container)); margin-inline: auto; }

/* Cabeçalho */
.bda-topbar { background: var(--bda-primary-dark); color: rgba(255,255,255,.9); font-size: 13px; }
.bda-topbar-inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.bda-topbar-menu { display: flex; align-items: center; gap: 20px; margin: 0; padding: 0; list-style: none; }
.bda-topbar-menu a { color: #fff; font-weight: 650; }
.bda-topbar-right { display: flex; align-items: center; gap: 15px; white-space: nowrap; }
.bda-social-links { display: flex; align-items: center; gap: 8px; }
.bda-social-links a { display: grid; place-items: center; width: 28px; height: 28px; color: #fff; border-radius: 50%; background: rgba(255,255,255,.1); }
.bda-social-links a:hover { background: #fff; color: var(--bda-primary); transform: translateY(-1px); }
.bda-social-links svg { width: 14px; height: 14px; fill: currentColor; }

.bda-branding { background: #fff; }
.bda-branding-inner { min-height: 132px; display: grid; grid-template-columns: minmax(240px, 390px) 1fr; align-items: center; gap: 42px; padding-block: 22px; }
.bda-site-logo { display: inline-flex; align-items: center; max-width: 390px; }
.bda-site-logo img, .custom-logo { display: block; width: auto; max-width: 100%; max-height: 82px; }
.bda-site-title { margin: 0; font-size: clamp(28px, 4vw, 46px); line-height: 1; font-weight: 900; letter-spacing: -1.5px; }
.bda-site-description { margin: 8px 0 0; color: var(--bda-muted); font-size: 14px; }
.bda-header-banner { min-width: 0; }

.bda-main-nav { position: sticky; top: 0; z-index: 1000; color: #fff; background: var(--bda-primary); box-shadow: 0 9px 26px rgba(0, 56, 98, .16); }
.admin-bar .bda-main-nav { top: 32px; }
.bda-nav-inner { min-height: 58px; display: flex; align-items: stretch; }
.bda-home-link { width: 60px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: rgba(0,0,0,.1); }
.bda-home-link:hover { color: #fff; background: rgba(0,0,0,.2); }
.bda-home-link svg { width: 20px; height: 20px; fill: currentColor; }
.bda-nav-toggle { display: none; border: 0; color: #fff; background: transparent; padding: 0 18px; }
.bda-nav-toggle svg { width: 24px; height: 24px; fill: currentColor; }
.bda-primary-menu { flex: 1; min-width: 0; }
.bda-primary-menu ul { display: flex; align-items: stretch; margin: 0; padding: 0; list-style: none; height: 100%; }
.bda-primary-menu li { position: relative; display: flex; }
.bda-primary-menu a { display: flex; align-items: center; padding: 0 16px; color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.bda-primary-menu a:hover, .bda-primary-menu .current-menu-item > a, .bda-primary-menu .current-menu-ancestor > a { background: rgba(255,255,255,.12); color: #fff; }
.bda-primary-menu .sub-menu { position: absolute; top: 100%; left: 0; width: 230px; height: auto; display: none; flex-direction: column; background: #fff; box-shadow: var(--bda-shadow); border-radius: 0 0 12px 12px; overflow: hidden; }
.bda-primary-menu li:hover > .sub-menu, .bda-primary-menu li:focus-within > .sub-menu { display: flex; }
.bda-primary-menu .sub-menu li { display: block; }
.bda-primary-menu .sub-menu a { min-height: 46px; color: var(--bda-text); text-transform: none; font-size: 14px; border-bottom: 1px solid var(--bda-border); }
.bda-primary-menu .sub-menu a:hover { color: var(--bda-primary); background: var(--bda-primary-soft); }
.bda-search-toggle { width: 60px; border: 0; color: #fff; background: rgba(0,0,0,.1); display: grid; place-items: center; }
.bda-search-toggle svg { width: 20px; height: 20px; fill: currentColor; }
.bda-search-panel { display: none; position: absolute; inset: 100% 0 auto; background: #fff; box-shadow: var(--bda-shadow); padding: 16px; }
.bda-search-panel.is-open { display: block; }

/* Busca */
.bda-search-form { display: flex; width: min(100%, 760px); margin-inline: auto; border: 1px solid var(--bda-border); border-radius: 10px; overflow: hidden; background: #fff; }
.bda-search-form input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 13px 16px; color: var(--bda-text); }
.bda-search-form button { width: 52px; border: 0; color: #fff; background: var(--bda-primary); display: grid; place-items: center; }
.bda-search-form svg { width: 19px; height: 19px; fill: currentColor; }

/* Widgets e banners */
.widget { margin: 0 0 24px; }
.widget:last-child { margin-bottom: 0; }
.widget-title { margin: 0 0 16px; padding-bottom: 11px; border-bottom: 2px solid var(--bda-border); font-size: 17px; line-height: 1.2; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; position: relative; }
.widget-title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 55px; height: 2px; background: var(--bda-primary); }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li { padding: 10px 0; border-bottom: 1px solid var(--bda-border); }
.widget li:last-child { border-bottom: 0; }
.widget img { border-radius: 10px; }
.bda-banner-zone .widget, .bda-header-banner .widget { margin: 0; }
.bda-banner-zone img, .bda-header-banner img { width: 100%; display: block; object-fit: cover; }
.bda-widget-placeholder { min-height: 96px; display: grid; place-items: center; padding: 18px; color: #8190a0; background: repeating-linear-gradient(-45deg, #f8fafc, #f8fafc 10px, #f1f5f8 10px, #f1f5f8 20px); border: 1px dashed #cfd8e2; border-radius: 12px; text-align: center; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.bda-header-banner .bda-widget-placeholder { min-height: 90px; }
.bda-single-sidebar .bda-widget-placeholder { min-height: 420px; }

/* Home */
.bda-home-main { padding: 24px 0 60px; }
.bda-ticker { margin-bottom: 22px; display: grid; grid-template-columns: auto 1fr; min-height: 44px; background: #fff; border: 1px solid var(--bda-border); border-radius: 11px; overflow: hidden; box-shadow: 0 7px 24px rgba(17,39,61,.05); }
.bda-ticker-label { display: flex; align-items: center; gap: 8px; padding: 0 18px; color: #fff; background: var(--bda-primary); font-size: 12px; font-weight: 900; text-transform: uppercase; white-space: nowrap; }
.bda-ticker-label svg { width: 16px; height: 16px; fill: currentColor; }
.bda-ticker-items { overflow: hidden; display: flex; align-items: center; }
.bda-ticker-track { display: flex; align-items: center; min-width: max-content; animation: bdaTicker 36s linear infinite; }
.bda-ticker:hover .bda-ticker-track { animation-play-state: paused; }
.bda-ticker-item { display: inline-flex; align-items: center; gap: 9px; padding: 0 28px; color: var(--bda-text); font-size: 13px; font-weight: 750; }
.bda-ticker-item::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--bda-primary); }
@keyframes bdaTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .bda-ticker-track { animation: none; flex-wrap: wrap; min-width: 0; } }

.bda-hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) 315px; gap: 24px; align-items: stretch; margin-bottom: 30px; }
.bda-hero-news { min-width: 0; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .8fr); gap: 18px; }
.bda-hero-stack { display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 18px; }
.bda-featured-card { position: relative; min-height: 230px; overflow: hidden; border-radius: var(--bda-radius); background: #0c1b27; box-shadow: var(--bda-shadow); }
.bda-featured-card--main { min-height: 520px; }
.bda-featured-card a { display: block; height: 100%; color: #fff; }
.bda-featured-card img, .bda-featured-placeholder { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .55s ease; }
.bda-featured-card:hover img { transform: scale(1.045); }
.bda-featured-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 28%, rgba(4,15,24,.86) 100%); }
.bda-featured-content { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 24px; }
.bda-featured-card--small .bda-featured-content { padding: 18px; }
.bda-category-badge { display: inline-flex; align-items: center; min-height: 25px; padding: 4px 10px; border-radius: 999px; color: #fff; background: var(--bda-primary); font-size: 10px; line-height: 1; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.bda-featured-title { margin: 10px 0 8px; color: #fff; font-size: clamp(24px, 3vw, 38px); line-height: 1.13; letter-spacing: -.025em; font-weight: 900; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.bda-featured-card--small .bda-featured-title { font-size: 18px; margin-bottom: 6px; }
.bda-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; color: var(--bda-muted); font-size: 12px; }
.bda-featured-card .bda-post-meta { color: rgba(255,255,255,.8); }
.bda-post-meta span { display: inline-flex; align-items: center; gap: 5px; }
.bda-post-meta svg { width: 14px; height: 14px; fill: currentColor; }
.bda-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 38px 0 18px; }
.bda-section-heading h2 { margin: 0; font-size: 23px; line-height: 1.2; font-weight: 900; letter-spacing: -.02em; }
.bda-section-heading h2::before { content: ""; display: inline-block; width: 5px; height: 24px; margin-right: 10px; border-radius: 4px; vertical-align: -4px; background: var(--bda-primary); }
.bda-section-line { flex: 1; height: 1px; background: var(--bda-border); }
.bda-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.bda-post-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--bda-border); border-radius: var(--bda-radius); box-shadow: 0 10px 30px rgba(18,40,61,.06); transition: transform .22s ease, box-shadow .22s ease; }
.bda-post-card:hover { transform: translateY(-4px); box-shadow: 0 18px 45px rgba(15,35,55,.12); }
.bda-card-media { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: #dfe7ed; }
.bda-card-media img, .bda-card-placeholder { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .45s ease; }
.bda-post-card:hover .bda-card-media img { transform: scale(1.045); }
.bda-card-media .bda-category-badge { position: absolute; left: 14px; bottom: 14px; z-index: 2; }
.bda-card-body { padding: 19px 20px 21px; }
.bda-card-title { margin: 0 0 10px; font-size: 19px; line-height: 1.28; font-weight: 900; letter-spacing: -.018em; }
.bda-card-title a { color: var(--bda-text); }
.bda-card-title a:hover { color: var(--bda-primary); }
.bda-card-excerpt { margin: 12px 0 0; color: var(--bda-muted); font-size: 14px; line-height: 1.6; }
.bda-read-more { display: inline-flex; align-items: center; gap: 7px; margin-top: 15px; color: var(--bda-primary); font-size: 13px; font-weight: 850; }
.bda-read-more svg { width: 15px; height: 15px; fill: currentColor; transition: transform .2s ease; }
.bda-read-more:hover svg { transform: translateX(3px); }

/* Conteúdo interno */
.bda-content-area { padding: 34px 0 64px; }
.bda-page-header { margin-bottom: 24px; padding: 28px 30px; color: #fff; background: linear-gradient(135deg, var(--bda-primary-dark), var(--bda-primary)); border-radius: var(--bda-radius); box-shadow: var(--bda-shadow); }
.bda-page-header h1 { margin: 0; font-size: clamp(27px, 4vw, 42px); line-height: 1.15; font-weight: 900; letter-spacing: -.03em; }
.bda-page-header p { margin: 8px 0 0; color: rgba(255,255,255,.82); }
.bda-content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 30px; align-items: start; }
.bda-article, .bda-page-content { min-width: 0; padding: clamp(22px, 4vw, 44px); background: #fff; border: 1px solid var(--bda-border); border-radius: var(--bda-radius); box-shadow: var(--bda-shadow); }
.bda-article-header { margin-bottom: 22px; }
.bda-article-title { margin: 10px 0 14px; font-size: clamp(30px, 5vw, 48px); line-height: 1.12; font-weight: 950; letter-spacing: -.035em; }
.bda-article-excerpt { margin: 0 0 18px; color: var(--bda-muted); font-size: 18px; line-height: 1.6; }
.bda-article-featured { margin: 0 0 28px; overflow: hidden; border-radius: 14px; }
.bda-article-featured img { display: block; width: 100%; }
.bda-entry-content { font-size: 17px; line-height: 1.82; }
.bda-entry-content > *:first-child { margin-top: 0; }
.bda-entry-content h2, .bda-entry-content h3, .bda-entry-content h4 { line-height: 1.25; letter-spacing: -.02em; margin-top: 1.6em; }
.bda-entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.bda-entry-content blockquote { margin: 28px 0; padding: 18px 24px; border-left: 4px solid var(--bda-primary); color: #334252; background: var(--bda-primary-soft); border-radius: 0 12px 12px 0; }
.bda-entry-content table { width: 100%; border-collapse: collapse; }
.bda-entry-content th, .bda-entry-content td { padding: 10px 12px; border: 1px solid var(--bda-border); text-align: left; }
.bda-entry-content iframe { max-width: 100%; }
.bda-entry-footer { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--bda-border); }
.bda-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.bda-tags a { padding: 5px 10px; color: var(--bda-muted); background: var(--bda-bg); border-radius: 7px; font-size: 12px; font-weight: 700; }
.bda-tags a:hover { color: #fff; background: var(--bda-primary); }
.bda-single-sidebar { position: sticky; top: 86px; min-width: 0; padding: 18px; background: #fff; border: 1px solid var(--bda-border); border-radius: var(--bda-radius); box-shadow: var(--bda-shadow); }
.admin-bar .bda-single-sidebar { top: 118px; }
.bda-breadcrumbs { margin-bottom: 17px; color: var(--bda-muted); font-size: 13px; }
.bda-breadcrumbs a { color: var(--bda-muted); }
.bda-breadcrumbs a:hover { color: var(--bda-primary); }
.bda-breadcrumbs .sep { margin: 0 7px; color: #a5b0bb; }
.bda-author-box { margin-top: 30px; display: grid; grid-template-columns: 72px 1fr; gap: 18px; padding: 22px; background: var(--bda-bg); border-radius: 13px; }
.bda-author-box img { border-radius: 50%; }
.bda-author-box h3 { margin: 0 0 6px; font-size: 18px; }
.bda-author-box p { margin: 0; color: var(--bda-muted); font-size: 14px; }
.bda-post-navigation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.bda-post-navigation a { display: block; height: 100%; padding: 18px; color: var(--bda-text); background: var(--bda-bg); border-radius: 11px; font-weight: 800; }
.bda-post-navigation a:hover { color: var(--bda-primary); }
.bda-nav-label { display: block; margin-bottom: 4px; color: var(--bda-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }

/* Comentários */
.comments-area { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--bda-border); }
.comments-title, .comment-reply-title { margin: 0 0 20px; font-size: 22px; }
.comment-list { margin: 0; padding: 0; list-style: none; }
.comment-list .children { list-style: none; margin-left: 28px; }
.comment-body { margin-bottom: 18px; padding: 18px; background: var(--bda-bg); border-radius: 12px; }
.comment-meta { font-size: 13px; }
.comment-content { margin-top: 12px; }
.comment-form p { margin: 0 0 14px; }
.comment-form label { display: block; margin-bottom: 6px; font-weight: 750; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--bda-border); border-radius: 9px; outline: 0; background: #fff;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--bda-primary); box-shadow: 0 0 0 3px rgba(1,90,158,.1); }
.comment-form input[type="submit"] { border: 0; padding: 12px 20px; color: #fff; background: var(--bda-primary); border-radius: 9px; font-weight: 800; }

/* Paginação e estados */
.bda-pagination { margin-top: 34px; }
.bda-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; margin: 3px; padding: 0 12px; color: var(--bda-text); background: #fff; border: 1px solid var(--bda-border); border-radius: 9px; font-weight: 800; }
.bda-pagination .page-numbers.current, .bda-pagination a.page-numbers:hover { color: #fff; background: var(--bda-primary); border-color: var(--bda-primary); }
.bda-empty { padding: 44px 28px; text-align: center; background: #fff; border: 1px solid var(--bda-border); border-radius: var(--bda-radius); box-shadow: var(--bda-shadow); }
.bda-empty h2 { margin-top: 0; }
.bda-404-code { margin: 0; color: var(--bda-primary); font-size: clamp(80px, 16vw, 170px); line-height: .9; font-weight: 950; letter-spacing: -.08em; }

/* Rodapé */
.bda-footer { color: rgba(255,255,255,.78); background: #061d31; }
.bda-footer-main { padding: 54px 0 42px; }
.bda-footer-grid { display: grid; grid-template-columns: 1.15fr repeat(3, 1fr); gap: 34px; }
.bda-footer-brand img { max-width: 280px; max-height: 70px; filter: brightness(0) invert(1); opacity: .96; }
.bda-footer-brand p { margin: 17px 0 0; max-width: 360px; }
.bda-footer .widget-title { color: #fff; border-color: rgba(255,255,255,.12); }
.bda-footer .widget li { border-color: rgba(255,255,255,.1); }
.bda-footer a { color: rgba(255,255,255,.84); }
.bda-footer a:hover { color: #fff; }
.bda-footer-bottom { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }
.bda-footer-bottom-inner { display: flex; justify-content: space-between; gap: 22px; }
.bda-footer-credit { text-align: center; }
.bda-footer-credit a { color: #fff; font-weight: 850; }
.bda-footer-credit a:hover { color: rgba(255,255,255,.76); }
.bda-back-top { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 750; }

/* WordPress */
.alignleft { float: left; margin: 0 24px 18px 0; }
.alignright { float: right; margin: 0 0 18px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { color: var(--bda-muted); font-size: 13px; }
.sticky { position: relative; }
.bypostauthor { position: relative; }

/* Responsividade */
@media (max-width: 1120px) {
    .bda-hero-layout { grid-template-columns: 1fr; }
    .bda-primary-menu a { padding-inline: 12px; font-size: 12px; }
}
@media (max-width: 960px) {
    .bda-branding-inner { grid-template-columns: 1fr; gap: 20px; text-align: center; }
    .bda-site-logo { margin-inline: auto; }
    .bda-header-banner { width: 100%; }
    .bda-post-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .bda-content-layout { grid-template-columns: 1fr; }
    .bda-single-sidebar { position: static; }
    .bda-footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 782px) { .admin-bar .bda-main-nav { top: 46px; } }
@media (max-width: 760px) {
    .bda-container { width: min(calc(100% - 22px), var(--bda-container)); }
    .bda-topbar-menu { display: none; }
    .bda-topbar-inner { justify-content: center; }
    .bda-topbar-date { display: none; }
    .bda-branding-inner { min-height: auto; padding-block: 20px; }
    .bda-site-logo img, .custom-logo { max-height: 66px; }
    .bda-nav-toggle { display: grid; place-items: center; }
    .bda-primary-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 120px); overflow-y: auto; background: var(--bda-primary-dark); box-shadow: var(--bda-shadow); }
    .bda-primary-menu.is-open { display: block; }
    .bda-primary-menu ul { display: block; height: auto; }
    .bda-primary-menu li { display: block; }
    .bda-primary-menu a { min-height: 48px; padding: 0 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
    .bda-primary-menu .sub-menu { position: static; display: block; width: auto; box-shadow: none; border-radius: 0; background: rgba(0,0,0,.12); }
    .bda-primary-menu .sub-menu a { color: #fff; padding-left: 34px; border-color: rgba(255,255,255,.08); }
    .bda-primary-menu .sub-menu a:hover { color: #fff; background: rgba(255,255,255,.08); }
    .bda-home-link { width: 54px; }
    .bda-search-toggle { width: 54px; margin-left: auto; }
    .bda-ticker { grid-template-columns: 1fr; }
    .bda-ticker-label { justify-content: center; min-height: 38px; }
    .bda-ticker-track { animation-duration: 28s; }
    .bda-hero-news { grid-template-columns: 1fr; }
    .bda-featured-card--main { min-height: 430px; }
    .bda-hero-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
    .bda-featured-card--small { min-height: 250px; }
    .bda-post-grid { grid-template-columns: 1fr; }
    .bda-footer-grid { grid-template-columns: 1fr; }
    .bda-footer-bottom-inner { flex-direction: column; align-items: center; text-align: center; }
    .bda-post-navigation { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .bda-home-main { padding-top: 16px; }
    .bda-hero-stack { grid-template-columns: 1fr; }
    .bda-featured-card--main { min-height: 390px; }
    .bda-featured-card--small { min-height: 260px; }
    .bda-featured-content { padding: 20px; }
    .bda-featured-title { font-size: 26px; }
    .bda-featured-card--small .bda-featured-title { font-size: 20px; }
    .bda-article, .bda-page-content { padding: 22px 18px; }
    .bda-article-title { font-size: 31px; }
    .bda-author-box { grid-template-columns: 1fr; text-align: center; }
    .bda-author-box img { margin-inline: auto; }
    .alignleft, .alignright { float: none; display: block; margin: 0 auto 18px; }
}

/* =========================================================
   Layout premium e publicidade organizada — versão 2.2.0
   ========================================================= */

/* A descrição cadastrada em "Identidade do site" não é exibida abaixo da logo. */
.bda-site-description { display: none !important; }

/* Banner superior: usa a proporção natural da arte, sem corte e com cantos retos. */
.bda-header-banner {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: #f3f6f9;
    box-shadow: 0 12px 30px rgba(18, 40, 61, .08);
}
.bda-header-banner > .widget,
.bda-header-banner > .bda-widget-placeholder,
.bda-header-banner .widget > div,
.bda-header-banner .widget > figure,
.bda-header-banner .wp-block-image,
.bda-header-banner .wp-block-image a,
.bda-header-banner .widget_media_image a {
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
}
.bda-header-banner .widget-title { display: none; }
.bda-header-banner a { display: block; height: auto; }
.bda-header-banner img {
    display: block;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    border-radius: 0 !important;
    object-fit: contain;
    object-position: center;
}
.bda-header-banner .bda-widget-placeholder {
    min-height: 90px;
    border: 0;
    border-radius: 0;
}

/* Cinco destaques: uma notícia ampla e quatro cards quadrados. */
.bda-hero-layout {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-bottom: 32px;
    overflow: hidden;
}
.bda-hero-news {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(360px, 34vw, 440px);
    gap: 18px;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: clamp(360px, 34vw, 440px);
}
.bda-hero-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    aspect-ratio: auto;
}
.bda-featured-card--main,
.bda-featured-card--small {
    width: auto;
    min-height: 0;
    min-width: 0;
    height: auto;
    aspect-ratio: auto;
}
.bda-featured-card > a {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.bda-featured-card--small .bda-featured-content { padding: 16px; }
.bda-featured-card--small .bda-featured-title {
    display: -webkit-box;
    overflow: hidden;
    margin: 8px 0 5px;
    font-size: clamp(15px, 1.55vw, 20px);
    line-height: 1.16;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.bda-news-section { margin-top: 32px; }
.bda-hero-layout + .bda-news-section { margin-top: 0; }

/* Cards de publicidade: quatro colunas, com widgets empilhados em cada uma. */
.bda-ad-section {
    margin: 40px 0;
    padding: clamp(18px, 2.5vw, 28px);
    overflow: hidden;
    border: 1px solid #d7e6f1;
    border-radius: 20px;
    background:
        radial-gradient(circle at 92% 12%, rgba(1, 90, 158, .11), transparent 30%),
        linear-gradient(135deg, #edf5fa 0%, #f7fafc 100%);
    box-shadow: 0 16px 42px rgba(18, 40, 61, .07);
}
.bda-ad-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: #6f8190;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.bda-ad-section-heading::before,
.bda-ad-section-heading::after {
    content: "";
    height: 1px;
    background: rgba(1, 90, 158, .16);
}
.bda-ad-section-heading::before { width: 28px; }
.bda-ad-section-heading::after { flex: 1; }
.bda-ad-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}
.bda-ad-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 20px;
    min-width: 0;
}
.bda-ad-column > .widget,
.bda-ad-column > .bda-widget-placeholder {
    width: 100%;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 1 / 1;
    margin: 0;
    padding: 9px;
    overflow: hidden;
    border: 1px solid rgba(1, 90, 158, .1);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 9px 26px rgba(18, 40, 61, .07);
}
.bda-ad-column .widget-title { display: none; }
.bda-ad-column .widget > div,
.bda-ad-column .widget > figure,
.bda-ad-column .wp-block-image,
.bda-ad-column .wp-block-image a,
.bda-ad-column .widget_media_image a {
    width: 100%;
    height: 100%;
    margin: 0;
}
.bda-ad-column .widget a { display: block; height: 100%; }
.bda-ad-column img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    border-radius: 6px !important;
    object-fit: contain;
    object-position: center;
}
.bda-ad-column .bda-widget-placeholder {
    display: grid;
    place-items: center;
}

/* Sidebar exclusiva das postagens, preparada para vários banners verticais. */
.bda-single-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 18px;
}
.bda-single-sidebar > .widget {
    min-width: 0;
    margin: 0;
    padding: 9px;
    overflow: hidden;
    border: 1px solid var(--bda-border);
    border-radius: 12px;
    background: #fff;
}
.bda-single-sidebar .widget-title { display: none; }
.bda-single-sidebar .widget > div,
.bda-single-sidebar .widget > figure,
.bda-single-sidebar .wp-block-image,
.bda-single-sidebar .wp-block-image a,
.bda-single-sidebar .widget_media_image a {
    width: 100%;
    margin: 0;
}
.bda-single-sidebar img {
    display: block;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    border-radius: 6px !important;
    object-fit: contain;
}

/* Rodapé com quatro colunas publicitárias e identidade centralizada. */
.bda-footer-main { padding: 48px 0 44px; }
.bda-footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.bda-footer-brand .bda-site-logo { margin-inline: auto; }
.bda-footer-brand p { margin: 16px auto 0; }
.bda-footer-brand .bda-social-links { margin-top: 18px; }
.bda-ad-section--footer {
    margin: 36px 0 0;
    border-color: rgba(255, 255, 255, .12);
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 255, 255, .08), transparent 32%),
        rgba(255, 255, 255, .045);
    box-shadow: none;
}
.bda-ad-section--footer .bda-ad-section-heading { color: rgba(255, 255, 255, .62); }
.bda-ad-section--footer .bda-ad-section-heading::before,
.bda-ad-section--footer .bda-ad-section-heading::after { background: rgba(255, 255, 255, .14); }
.bda-ad-section--footer .bda-ad-column > .widget,
.bda-ad-section--footer .bda-ad-column > .bda-widget-placeholder {
    border-color: rgba(255, 255, 255, .12);
}
.bda-ad-section--footer .bda-ad-column img {
    filter: none;
    opacity: 1;
}
.bda-ad-section--footer .bda-widget-placeholder {
    color: rgba(255, 255, 255, .72);
    border-color: rgba(255, 255, 255, .22);
    background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .04) 10px, rgba(255, 255, 255, .08) 10px, rgba(255, 255, 255, .08) 20px);
}

@media (max-width: 960px) {
    .bda-hero-news {
        grid-template-columns: minmax(0, 1fr);
        height: auto;
    }
    .bda-featured-card--main {
        width: 100%;
        aspect-ratio: 16 / 9;
    }
    .bda-hero-stack {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-rows: minmax(0, 1fr);
        height: auto;
        aspect-ratio: auto;
    }
    .bda-featured-card--small {
        width: 100%;
        aspect-ratio: 1 / 1;
    }
    .bda-ad-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .bda-hero-stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(2, minmax(0, 1fr));
    }
    .bda-featured-card--main { aspect-ratio: 4 / 3; }
    .bda-featured-card--small .bda-featured-title { font-size: clamp(15px, 3.8vw, 19px); }
    .bda-ad-section { margin: 30px 0; padding: 16px; border-radius: 16px; }
    .bda-ad-grid, .bda-ad-column { gap: 16px; }
}

@media (max-width: 560px) {
    .bda-hero-news, .bda-hero-stack { gap: 11px; }
    .bda-featured-card--small .bda-featured-content { padding: 12px; }
    .bda-featured-card--small .bda-category-badge,
    .bda-featured-card--small .bda-post-meta { display: none; }
    .bda-featured-card--small .bda-featured-title {
        margin: 0;
        font-size: 15px;
        line-height: 1.18;
        -webkit-line-clamp: 3;
    }
    .bda-ad-grid { grid-template-columns: 1fr; }
    .bda-ad-column { width: min(100%, 420px); margin-inline: auto; }
}