/* ═══════════════════════════════════════════════════════════════════
   Blog Ismael Sousa — style.css
   Paleta: preto, branco, tons de cinza
   Fonte: Roboto (primaria) → DM Sans → sans-serif → Georgia, serif
═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;0,900;1,400&family=DM+Sans:wght@400;500;600;700&display=swap');

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

:root {
    --black:      #0a0a0a;
    --gray-900:   #111111;
    --gray-800:   #222222;
    --gray-700:   #333333;
    --gray-600:   #4a4a4a;
    --gray-500:   #6b6b6b;
    --gray-400:   #999999;
    --gray-300:   #c2c2c2;
    --gray-200:   #e0e0e0;
    --gray-100:   #f0f0f0;
    --gray-50:    #f7f7f7;
    --white:      #ffffff;

    /* Papel de jornal */
    --ink:        var(--gray-900);
    --ink-light:  var(--gray-600);
    --rule:       var(--gray-200);
    --bg:         var(--white);
    --bg-alt:     var(--gray-50);
    --surface:    var(--white);

    /* Acento — apenas para elementos interativos */
    --accent:     var(--gray-900);
    --accent-hover: var(--gray-700);

    /* Tipografia */
    --font-serif:    'Roboto', 'DM Sans', system-ui, sans-serif, Georgia, serif;
    --font-body:     'Roboto', 'DM Sans', system-ui, sans-serif, Georgia, serif;
    --font-ui:       'Roboto', 'DM Sans', system-ui, sans-serif;

    --radius:     4px;
    --container:  1200px;
    --sidebar-w:  310px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font-ui);
    font-size: 1rem;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--gray-600); }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ─── Utilitários ───────────────────────────────────────────── */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.text-muted { color: var(--gray-500); }
.fw-600 { font-weight: 600; }
.uppercase { text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; font-weight: 700; color: var(--gray-500); }

/* ─── Breaking ticker ──────────────────────────────────────── */
.breaking-bar {
    background: var(--gray-900);
    color: var(--white);
    padding: .35rem 0;
    font-family: var(--font-ui);
    font-size: .78rem;
    font-weight: 500;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.breaking-bar .breaking-label {
    background: var(--white);
    color: var(--gray-900);
    padding: .15rem .6rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: .7rem;
    letter-spacing: .08em;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 1rem;
    margin-left: 1.25rem;
}
.breaking-ticker { overflow: hidden; flex: 1; }
.breaking-ticker-inner {
    display: flex;
    gap: 2.5rem;
    animation: ticker 40s linear infinite;
    white-space: nowrap;
}
.breaking-ticker-inner a { color: var(--white); opacity: .9; }
.breaking-ticker-inner a:hover { opacity: 1; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.breaking-bar:hover .breaking-ticker-inner { animation-play-state: paused; }

/* ─── Header ────────────────────────────────────────────────── */
.site-header {
    background: var(--white);
    border-bottom: 2px solid var(--gray-900);
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 1.5rem;
}
.site-logo a {
    display: flex;
    align-items: center;
    line-height: 1;
}
.site-logo-img {
    height: 48px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}
@media (max-width: 480px) {
    .site-logo-img { height: 38px; max-width: 160px; }
}
.site-logo small {
    display: block;
    font-family: var(--font-ui);
    font-size: .65rem;
    font-weight: 500;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-top: 2px;
}

/* Nav principal */
.site-nav { display: flex; align-items: center; gap: .15rem; }
.site-nav a {
    font-family: var(--font-ui);
    font-size: .82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--gray-700);
    padding: .35rem .6rem;
    border-radius: var(--radius);
    transition: all .15s;
}
.site-nav a:hover,
.site-nav a.active { background: var(--gray-900); color: var(--white); }

/* Search bar */
.header-search { display: flex; align-items: center; gap: .5rem; }
.search-form { display: flex; border: 1.5px solid var(--gray-200); border-radius: 20px; overflow: hidden; background: var(--gray-50); }
.search-form input {
    border: none; background: transparent; padding: .4rem .9rem;
    font-family: var(--font-ui); font-size: .85rem; color: var(--ink); width: 180px; outline: none;
}
.search-form button {
    border: none; background: var(--gray-900); color: var(--white);
    padding: .4rem .85rem; cursor: pointer; font-size: .85rem;
    transition: background .15s;
}
.search-form button:hover { background: var(--gray-700); }

/* Mobile toggle */
.menu-toggle { display: none; background: none; border: 1.5px solid var(--gray-300); padding: .4rem .6rem; border-radius: var(--radius); cursor: pointer; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--gray-900); margin: 4px 0; transition: .2s; }

/* Categorias bar */
.categories-bar {
    border-bottom: 1px solid var(--gray-200);
    background: var(--white);
}
.categories-bar-inner {
    display: flex;
    align-items: center;
    gap: .25rem;
    padding: .4rem 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.categories-bar-inner::-webkit-scrollbar { display: none; }
.cat-link {
    font-family: var(--font-ui);
    font-size: .76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--gray-600);
    padding: .25rem .6rem;
    white-space: nowrap;
    border-radius: 2px;
    transition: all .15s;
}
.cat-link:hover { color: var(--gray-900); background: var(--gray-100); }
.cat-link.active { color: var(--white); background: var(--gray-900); }

/* Mobile menu drawer */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
}
.mobile-nav.open { display: block; }
.mobile-nav-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.mobile-nav-drawer {
    position: absolute;
    top: 0; right: 0;
    width: min(320px, 90vw);
    height: 100%;
    background: var(--white);
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.mobile-nav-close { align-self: flex-end; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--gray-700); }
.mobile-nav-links { display: flex; flex-direction: column; gap: .25rem; }
.mobile-nav-links a { padding: .65rem 0; border-bottom: 1px solid var(--gray-100); font-weight: 500; color: var(--gray-700); }
.mobile-search { display: flex; border: 1.5px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; }
.mobile-search input { flex: 1; border: none; padding: .6rem .85rem; font-size: .9rem; outline: none; background: var(--gray-50); }
.mobile-search button { border: none; background: var(--gray-900); color: var(--white); padding: .6rem .9rem; cursor: pointer; }

/* ─── Hero (manchete principal) ────────────────────────────── */
.hero-section { padding: 2rem 0; }

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
}

.hero-main { position: relative; }
.hero-main .card-img-wrap {
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: var(--radius);
}
.hero-main .card-img-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s ease;
}
.hero-main:hover .card-img-wrap img { transform: scale(1.02); }

.hero-body { padding: 1.25rem 0 0; }
.hero-body .card-cat {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--gray-500);
    margin-bottom: .5rem;
}
.hero-body h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.18;
    color: var(--gray-900);
    margin-bottom: .65rem;
}
.hero-body h2 a { color: inherit; }
.hero-body h2 a:hover { color: var(--gray-600); }
.hero-body .card-excerpt {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--gray-600);
    line-height: 1.65;
    margin-bottom: .75rem;
}
.hero-body .card-meta { font-size: .78rem; color: var(--gray-400); }

/* Hero sidebar — 2 destaques verticais */
.hero-side { display: flex; flex-direction: column; gap: 1.25rem; border-left: 1px solid var(--gray-200); padding-left: 2rem; }
.side-card { display: flex; gap: 1rem; align-items: flex-start; }
.side-card .card-img-wrap { width: 110px; flex-shrink: 0; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius); }
.side-card .card-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.side-card-body { flex: 1; min-width: 0; }
.side-card-body .card-cat { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-500); display: block; margin-bottom: .3rem; }
.side-card-body h3 { font-family: var(--font-serif); font-size: .98rem; font-weight: 700; line-height: 1.3; color: var(--gray-900); }
.side-card-body h3 a { color: inherit; }
.side-card-body h3 a:hover { color: var(--gray-600); }
.side-card-body .card-meta { font-size: .72rem; color: var(--gray-400); margin-top: .3rem; }

/* Divisor entre seções */
.section-rule { border: none; border-top: 2px solid var(--gray-900); margin: 0 0 1.5rem; }
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.25rem; }
.section-title {
    font-family: var(--font-ui);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--gray-900);
    border-top: 3px solid var(--gray-900);
    padding-top: .5rem;
}
.section-more { font-size: .75rem; font-weight: 600; color: var(--gray-500); text-decoration: underline; text-underline-offset: 3px; }
.section-more:hover { color: var(--gray-900); }

/* ─── Grid de notícias ──────────────────────────────────────── */
.news-section { padding: 0 0 2.5rem; }
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

/* Card padrão */
.news-card {}
.news-card .card-img-wrap { aspect-ratio: 16/9; overflow: hidden; border-radius: var(--radius); margin-bottom: .85rem; }
.news-card .card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.news-card:hover .card-img-wrap img { transform: scale(1.03); }
.news-card .card-cat { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-500); display: block; margin-bottom: .4rem; }
.news-card h3 { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 700; line-height: 1.3; color: var(--gray-900); margin-bottom: .4rem; }
.news-card h3 a { color: inherit; }
.news-card h3 a:hover { color: var(--gray-600); }
.news-card .card-excerpt { font-size: .88rem; color: var(--gray-600); line-height: 1.55; margin-bottom: .45rem; }
.news-card .card-meta { font-size: .73rem; color: var(--gray-400); }

/* Card horizontal (listagem) */
.news-card-h { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--gray-100); }
.news-card-h:last-child { border-bottom: none; }
.news-card-h .card-img-wrap { width: 130px; flex-shrink: 0; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius); }
.news-card-h .card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.news-card-h:hover .card-img-wrap img { transform: scale(1.04); }
.news-card-h .card-body { flex: 1; min-width: 0; }
.news-card-h .card-cat { font-size: .67rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-500); display: block; margin-bottom: .3rem; }
.news-card-h h3 { font-family: var(--font-serif); font-size: 1rem; font-weight: 700; line-height: 1.35; color: var(--gray-900); margin-bottom: .3rem; }
.news-card-h h3 a { color: inherit; }
.news-card-h h3 a:hover { color: var(--gray-600); }
.news-card-h .card-excerpt { font-size: .83rem; color: var(--gray-600); line-height: 1.5; }
.news-card-h .card-meta { font-size: .72rem; color: var(--gray-400); margin-top: .3rem; }

/* Load more */
.load-more-wrap { text-align: center; margin: 2rem 0; }
.btn-load-more {
    display: inline-flex; align-items: center; gap: .5rem;
    background: none; border: 1.5px solid var(--gray-900);
    padding: .65rem 1.75rem; font-family: var(--font-ui);
    font-size: .85rem; font-weight: 600; color: var(--gray-900);
    border-radius: var(--radius); cursor: pointer;
    transition: all .15s;
    text-transform: uppercase; letter-spacing: .05em;
}
.btn-load-more:hover { background: var(--gray-900); color: var(--white); }
.btn-load-more.loading { opacity: .6; pointer-events: none; }

/* ─── Seção por categoria ───────────────────────────────────── */
.cat-section { padding: 1.5rem 0 2rem; border-top: 1px solid var(--gray-200); }

/* ─── Layout com sidebar ────────────────────────────────────── */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-w);
    gap: 3rem;
    align-items: start;
    padding: 2rem 0 3rem;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    color: var(--gray-400);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--gray-900); }
.breadcrumb-sep { font-size: .65rem; }

/* ─── Sidebar ───────────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 2rem; }
.sidebar-widget {}
.widget-title {
    font-family: var(--font-ui);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--gray-900);
    border-top: 3px solid var(--gray-900);
    padding-top: .5rem;
    margin-bottom: 1rem;
}

/* Sidebar card mini */
.sidebar-card { display: flex; gap: .75rem; align-items: flex-start; padding: .65rem 0; border-bottom: 1px solid var(--gray-100); }
.sidebar-card:last-child { border-bottom: none; }
.sidebar-card .card-img-wrap { width: 72px; flex-shrink: 0; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius); }
.sidebar-card .card-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-card h4 { font-family: var(--font-serif); font-size: .88rem; font-weight: 600; line-height: 1.3; color: var(--gray-900); }
.sidebar-card h4 a { color: inherit; }
.sidebar-card h4 a:hover { color: var(--gray-600); }
.sidebar-card .card-meta { font-size: .7rem; color: var(--gray-400); margin-top: .2rem; }

/* Categorias sidebar */
.cat-list { display: flex; flex-direction: column; gap: .25rem; }
.cat-list a {
    display: flex; justify-content: space-between; align-items: center;
    padding: .45rem 0; border-bottom: 1px solid var(--gray-100);
    font-size: .88rem; color: var(--gray-700); font-weight: 500;
}
.cat-list a:hover { color: var(--gray-900); }
.cat-list .cat-count { font-size: .73rem; color: var(--gray-400); }

/* Tags cloud */
.tags-cloud { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag-item {
    display: inline-block;
    padding: .25rem .7rem;
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: all .15s;
}
.tag-item:hover { border-color: var(--gray-900); background: var(--gray-900); color: var(--white); }

/* Banner widget */
.banner-widget { border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; }
.banner-widget img { width: 100%; display: block; }
.banner-widget a { display: block; transition: opacity .15s; }
.banner-widget a:hover { opacity: .92; }

/* ─── Post individual ───────────────────────────────────────── */
.post-article { max-width: 760px; }

.post-header { margin-bottom: 1.5rem; }
.post-header .post-cat {
    font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
    color: var(--gray-500); display: block; margin-bottom: .65rem;
    text-decoration: underline; text-underline-offset: 3px;
}
.post-header h1 {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 800; line-height: 1.15; color: var(--gray-900);
    margin-bottom: .75rem;
}
.post-header .post-deck {
    font-family: var(--font-body);
    font-size: 1.15rem; color: var(--gray-600); line-height: 1.6; margin-bottom: 1rem;
}
.post-meta-bar {
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
    padding: .75rem 0; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200);
    font-size: .78rem; color: var(--gray-400);
}
.post-meta-bar .post-author { font-weight: 600; color: var(--gray-700); }

/* Hero image do post */
.post-hero { margin-bottom: 2rem; }
.post-hero img { width: 100%; border-radius: var(--radius); }
.post-hero figcaption { font-size: .75rem; color: var(--gray-500); margin-top: .4rem; text-align: center; font-style: italic; }

/* YouTube embed */
.video-embed { margin: 1.5rem 0; }
.video-embed-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius); background: var(--gray-900); }
.video-embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Post body */
.post-body {
    font-family: var(--font-body);
    font-size: 1.08rem;
    line-height: 1.82;
    color: var(--gray-800);
}
.post-body p { margin-bottom: .9em; }
.post-body p:empty,
.post-body p:has(> br:only-child) { margin: 0; height: 0; line-height: 0; }
.post-body h2 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; margin: 2em 0 .65em; color: var(--gray-900); }
.post-body h3 { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; margin: 1.75em 0 .5em; color: var(--gray-900); }
.post-body ul, .post-body ol { padding-left: 1.5em; margin-bottom: 1.35em; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { margin-bottom: .4em; }
.post-body blockquote {
    border-left: 4px solid var(--gray-300);
    padding: .75rem 1.25rem; margin: 1.5rem 0;
    background: var(--gray-50); border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic; color: var(--gray-600);
}
.post-body img { border-radius: var(--radius); margin: 1.5rem auto; }
.post-body a { color: var(--gray-900); text-decoration: underline; text-underline-offset: 3px; }
.post-body a:hover { color: var(--gray-600); }
.post-body strong { font-weight: 700; color: var(--gray-900); }

/* Share bar */
.share-bar {
    display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
    margin: 2rem 0; padding: 1.25rem 0;
    border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200);
}
.share-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-500); margin-right: .25rem; }
.share-btn {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .45rem 1rem; border-radius: 20px;
    font-size: .78rem; font-weight: 600;
    border: 1.5px solid var(--gray-200); color: var(--gray-700);
    transition: all .15s; cursor: pointer; background: none;
}
.share-btn:hover { border-color: var(--gray-900); background: var(--gray-900); color: var(--white); }
.share-btn svg { width: 14px; height: 14px; }

/* Tags do post */
.post-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.5rem 0; align-items: center; }
.post-tags .tag-item { font-size: .73rem; }

/* Posts relacionados */
.related-posts { margin-top: 3rem; padding-top: 1.5rem; border-top: 2px solid var(--gray-900); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1rem; }

/* Galeria */
.post-gallery { margin: 2rem 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.gallery-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); cursor: pointer; }

/* ─── Category / Tag / Search pages ────────────────────────── */
.page-header {
    padding: 2rem 0 1.5rem;
    border-bottom: 2px solid var(--gray-900);
    margin-bottom: 2rem;
}
.page-header h1 { font-family: var(--font-serif); font-size: 1.9rem; font-weight: 700; color: var(--gray-900); }
.page-header p { color: var(--gray-500); margin-top: .4rem; font-size: .9rem; }

/* ─── Paginação ─────────────────────────────────────────────── */
.pagination {
    display: flex; justify-content: center; align-items: center; gap: .4rem;
    margin: 2.5rem 0;
}
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: var(--radius);
    border: 1.5px solid var(--gray-200); font-size: .85rem;
    color: var(--gray-700); font-weight: 500;
    transition: all .15s;
}
.pagination a:hover { border-color: var(--gray-900); background: var(--gray-900); color: var(--white); }
.pagination .current { background: var(--gray-900); border-color: var(--gray-900); color: var(--white); }

/* ─── Footer ────────────────────────────────────────────────── */
.site-footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 3rem 0 0;
    margin-top: 3rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}
.footer-brand .footer-logo {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: .5rem;
}
.footer-brand p { font-size: .85rem; line-height: 1.65; color: var(--gray-400); }
.footer-col h4 {
    font-family: var(--font-ui);
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--gray-400);
    margin-bottom: .85rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid var(--gray-700);
}
.footer-col ul { display: flex; flex-direction: column; gap: .35rem; }
.footer-col ul a { font-size: .85rem; color: var(--gray-400); transition: color .15s; }
.footer-col ul a:hover { color: var(--white); }

/* Social icons footer */
.footer-social { display: flex; gap: .6rem; margin-top: 1rem; }
.footer-social a {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid var(--gray-700); color: var(--gray-400);
    font-size: .9rem; transition: all .15s;
}
.footer-social a:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.1); }

/* Copyright bar */
.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .78rem;
    color: var(--gray-500);
    flex-wrap: wrap;
    gap: .5rem;
}
.footer-bottom a { color: var(--gray-500); }
.footer-bottom a:hover { color: var(--gray-300); }

/* ─── Scroll to top ─────────────────────────────────────────── */
.scroll-top {
    position: fixed; bottom: 1.5rem; right: 1.5rem;
    width: 40px; height: 40px; background: var(--gray-900); color: var(--white);
    border-radius: 50%; border: none; cursor: pointer; display: none;
    align-items: center; justify-content: center; font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.25); transition: background .15s;
    z-index: 99;
}
.scroll-top.visible { display: flex; }
.scroll-top:hover { background: var(--gray-700); }

/* ─── Loading skeleton ──────────────────────────────────────── */
.skeleton { background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%); background-size: 200% 100%; animation: skeleton-shine 1.4s ease infinite; border-radius: var(--radius); }
@keyframes skeleton-shine { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ─── 404 ───────────────────────────────────────────────────── */
.error-page { text-align: center; padding: 5rem 1rem; }
.error-page h1 { font-family: var(--font-serif); font-size: 5rem; font-weight: 700; color: var(--gray-200); line-height: 1; }
.error-page h2 { font-family: var(--font-serif); font-size: 1.5rem; color: var(--gray-900); margin: 1rem 0 .5rem; }
.error-page p { color: var(--gray-500); margin-bottom: 1.5rem; }
.btn-home {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .65rem 1.5rem; background: var(--gray-900); color: var(--white);
    border-radius: var(--radius); font-weight: 600; font-size: .9rem;
    transition: background .15s;
}
.btn-home:hover { background: var(--gray-700); color: var(--white); }

/* ─── Responsivo ────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr 280px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .site-header-inner { height: 56px; }
    .site-nav { display: none; }
    .header-search { display: none; }
    .menu-toggle { display: block; }
    .categories-bar { display: none; }

    .hero-grid { grid-template-columns: 1fr; }
    .hero-side { border-left: none; padding-left: 0; border-top: 1px solid var(--gray-200); padding-top: 1.25rem; flex-direction: row; gap: 1rem; overflow-x: auto; }
    .side-card { min-width: 220px; }

    .content-with-sidebar { grid-template-columns: 1fr; gap: 2rem; }
    .news-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

@media (max-width: 480px) {
    .related-grid { grid-template-columns: 1fr; }
    .post-header h1 { font-size: 1.5rem; }
    .hero-side { flex-direction: column; }
    .side-card { min-width: unset; }
}

/* ═══════════════════════════════════════════════════════════════
   HOME GRID — grade uniforme dentro do layout com sidebar
═══════════════════════════════════════════════════════════════ */

.home-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.75rem;
    padding: 1.5rem 0 1rem;
}

.home-card {
    display: flex;
    flex-direction: column;
}

.home-card-img {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--gray-100);
}

.home-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
    display: block;
}

.home-card:hover .home-card-img img {
    transform: scale(1.03);
}

.home-card-body {
    padding: .75rem 0 0;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.home-card-body .card-cat {
    font-family: var(--font-ui);
    font-size: .67rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--gray-500);
    text-decoration: none;
}
.home-card-body .card-cat:hover { color: var(--gray-900); }

.home-card-body h2 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.28;
    color: var(--gray-900);
    margin: 0;
}
.home-card-body h2 a { color: inherit; text-decoration: none; }
.home-card-body h2 a:hover { color: var(--gray-600); }

.home-card-body .card-excerpt {
    font-family: var(--font-body);
    font-size: .84rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin: .1rem 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-card-body .card-meta {
    font-size: .71rem;
    color: var(--gray-400);
    margin-top: .15rem;
}

/* Primeiro card — destaque (ocupa linha inteira) */
.home-card:first-child {
    grid-column: span 2;
    flex-direction: row;
    gap: 1.25rem;
    align-items: flex-start;
}
.home-card:first-child .home-card-img {
    width: 55%;
    flex-shrink: 0;
    aspect-ratio: 16/9;
}
.home-card:first-child .home-card-body {
    padding: .25rem 0 0;
    justify-content: flex-start;
}
.home-card:first-child .home-card-body h2 {
    font-size: 1.45rem;
    line-height: 1.22;
}
.home-card:first-child .home-card-body .card-excerpt {
    font-size: .95rem;
    -webkit-line-clamp: 4;
}

/* Responsivo */
@media (max-width: 900px) {
    .home-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .home-card:first-child { grid-column: span 2; flex-direction: column; }
    .home-card:first-child .home-card-img { width: 100%; }
    .home-card:first-child .home-card-body h2 { font-size: 1.2rem; }
}
@media (max-width: 600px) {
    .home-grid { grid-template-columns: 1fr; gap: 1.75rem; }
    .home-card:first-child { grid-column: span 1; }
}

/* ═══════════════════════════════════════════════════════════════
   PAGINAÇÃO — com setas prev/next
═══════════════════════════════════════════════════════════════ */

.pagination-wrap {
    display: flex;
    justify-content: center;
    margin: 2.5rem 0;
    padding: 0 1rem;
}

.pagination {
    display: flex;
    align-items: center;
    gap: .3rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
}

.pagination a,
.pagination span.current,
.pagination span.dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 .5rem;
    border-radius: var(--radius);
    border: 1.5px solid var(--gray-200);
    font-size: .84rem;
    font-weight: 500;
    color: var(--gray-700);
    text-decoration: none;
    transition: all .15s;
    white-space: nowrap;
}

.pagination a:hover {
    border-color: var(--gray-900);
    background: var(--gray-900);
    color: var(--white);
}

.pagination span.current {
    background: var(--gray-900);
    border-color: var(--gray-900);
    color: var(--white);
    font-weight: 700;
}

.pagination span.dots {
    border-color: transparent;
    color: var(--gray-400);
    pointer-events: none;
}

.pagination .pag-prev,
.pagination .pag-next {
    gap: .3rem;
    font-weight: 600;
    padding: 0 .85rem;
}

.pagination .pag-disabled {
    opacity: .35;
    pointer-events: none;
}

/* --- Banner Sidebar --- */
.banner-sidebar {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-100);
    transition: opacity .15s;
}
.banner-sidebar a {
    display: block;
}
.banner-sidebar a:hover {
    opacity: .92;
}
.banner-sidebar img {
    width: 100%;
    height: auto;
    display: block;
}

/* header-banner-topo removido */

/* --- Banner TOPO (acima do ticker) --- */
.topo-banner-wrap {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
    padding: .5rem 0;
}
.topo-banner-inner {
    /* Alinha com o espaço entre logo e busca:
       logo ≈ 200px, search ≈ 220px, gaps ≈ 60px → banner fica centralizado no meio */
    margin: 0 auto;
    max-width: calc(var(--container) - 480px);
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.topo-banner-img {
    width: 100%;
    line-height: 0;
}
.topo-banner-img a {
    display: block;
    width: 100%;
}
.topo-banner-img img {
    width: 100%;
    max-height: 90px;
    object-fit: contain;
    display: block;
}

/* --- Label "Publicidade" --- */
.ad-label {
    display: block;
    font-family: var(--font-ui);
    font-size: .62rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gray-400);
    margin-bottom: .2rem;
    line-height: 1;
}

@media (max-width: 768px) {
    .topo-banner-wrap { display: none; }
}

/* --- Banner TOPO inline na noticia (abaixo da foto) --- */
.post-topo-banner {
    margin: 1.25rem 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.post-topo-banner > div {
    width: 100%;
    line-height: 0;
    border-radius: var(--radius);
    overflow: hidden;
}
.post-topo-banner a {
    display: block;
    width: 100%;
}
.post-topo-banner img {
    width: 100%;
    max-height: 120px;
    object-fit: contain;
    object-position: left center;
    display: block;
}

/* --- "Veja também" — 2 colunas x 3 linhas --- */
.related-grid-2col {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem 1.25rem;
    margin-top: 1rem;
    width: 100%;
}
.related-grid-2col .news-card {
    min-width: 0;
}
.related-grid-2col .news-card .card-img-wrap {
    aspect-ratio: 16/9 !important;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: .75rem;
}
.related-grid-2col .news-card .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (max-width: 580px) {
    .related-grid-2col {
        grid-template-columns: 1fr !important;
    }
}

/* --- Embeds no corpo da notícia --- */
.post-embed {
    margin: 1.75rem 0;
    width: 100%;
}
.post-embed-video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--gray-900);
}
.post-embed-video iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}
.post-embed-instagram,
.post-embed-twitter,
.post-embed-tiktok {
    display: flex;
    justify-content: center;
}
.post-embed-instagram blockquote,
.post-embed-twitter blockquote {
    margin: 0 auto !important;
}

/* --- Classes de alinhamento do Quill Editor (post-body) --- */
.post-body .ql-align-center, .post-body p.ql-align-center,
.post-body h1.ql-align-center, .post-body h2.ql-align-center,
.post-body h3.ql-align-center { text-align: center; }

.post-body .ql-align-right, .post-body p.ql-align-right,
.post-body h2.ql-align-right, .post-body h3.ql-align-right { text-align: right; }

.post-body .ql-align-justify, .post-body p.ql-align-justify,
.post-body h2.ql-align-justify, .post-body h3.ql-align-justify { text-align: justify; }

.post-body .ql-align-left, .post-body p.ql-align-left { text-align: left; }

/* Espaçamento entre parágrafos no corpo do post */
.post-body p { margin-bottom: 1.2em; }
.post-body p:last-child { margin-bottom: 0; }

/* Classes de indentação do Quill */
.post-body .ql-indent-1 { padding-left: 2em; }
.post-body .ql-indent-2 { padding-left: 4em; }
.post-body .ql-indent-3 { padding-left: 6em; }

/* ─── Widget "Relembre este dia" ─────────────────────────────── */
.widget-relembre .widget-desc {
    font-size: .78rem;
    color: var(--gray-500);
    line-height: 1.5;
    margin: -.25rem 0 .85rem;
}

.relembre-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}

.relembre-track {
    display: flex;
    transition: transform .4s cubic-bezier(.25,.46,.45,.94);
    will-change: transform;
}

.relembre-slide {
    flex: 0 0 100%;
    min-width: 0;
}

.relembre-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.relembre-link:hover .relembre-titulo {
    color: var(--gray-600);
}

.relembre-img-wrap {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--gray-100);
    margin-bottom: .6rem;
}
.relembre-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s;
}
.relembre-link:hover .relembre-img-wrap img {
    transform: scale(1.04);
}

.relembre-year {
    position: absolute;
    top: .45rem;
    left: .45rem;
    background: rgba(0,0,0,.72);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: .15rem .5rem;
    border-radius: 3px;
    letter-spacing: .04em;
}

.relembre-titulo {
    font-family: var(--font-serif);
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--gray-900);
    margin: 0 0 .25rem;
}

.relembre-data {
    font-size: .7rem;
    color: var(--gray-400);
    display: block;
}

/* Controles */
.relembre-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: .75rem;
}

.relembre-btn {
    background: var(--gray-100);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: .85rem;
    line-height: 1;
    color: var(--gray-700);
    transition: background .15s;
    flex-shrink: 0;
}
.relembre-btn:hover {
    background: var(--gray-200);
}

.relembre-dots {
    display: flex;
    gap: .3rem;
    flex-wrap: wrap;
    justify-content: center;
}
.relembre-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gray-300);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .15s, transform .15s;
}
.relembre-dot.active {
    background: var(--gray-900);
    transform: scale(1.3);
}
