/*
Theme Name: A Gazeta MG — Editorial TV
Theme URI: https://agazetamg.com/
Author: A Gazeta MG
Description: Tema editorial responsivo, com cards, categorias e páginas de matéria em estilo de portal de televisão. Sem anúncios e sem barra superior.
Version: 6.3.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: agztv
Tags: news, magazine, blog, custom-logo, custom-menu, featured-images, responsive-layout
*/

:root {
  --agz-blue: #1c9ddc;
  --agz-blue-dark: #075596;
  --agz-ink: #33363a;
  --agz-text: #36383b;
  --agz-muted: #6e7175;
  --agz-line: #dedede;
  --agz-soft: #f1f1f1;
  --agz-white: #fff;
  --agz-shell: 1180px;
  --agz-reading: 780px;
  --agz-logo-desktop: 430px;
  --agz-logo-mobile: 245px;
  --agz-font: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--agz-text);
  font-family: var(--agz-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.42;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.agz-menu-open,
body.agz-search-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--agz-blue-dark); }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
figure { margin: 0; }
h1, h2, h3, h4, h5, h6, a, p {
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  clip: auto !important; width: auto; height: auto; margin: 0; padding: 12px 16px;
  left: 8px; top: 8px; z-index: 99999; background: #fff; color: #111;
}
.agz-shell { width: min(calc(100% - 40px), var(--agz-shell)); margin-inline: auto; }
.agz-reading { width: min(calc(100% - 40px), var(--agz-reading)); margin-inline: auto; }
.agz-main { min-height: 60vh; }

/* Cabeçalho */
.agz-header {
  position: relative;
  z-index: 40;
  background: #fff;
  border-bottom: 4px solid var(--agz-blue);
}
.agz-header-inner {
  width: min(calc(100% - 40px), 1180px);
  min-height: 112px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 78px minmax(0,1fr) 78px;
  align-items: center;
  gap: 18px;
}
.agz-header-brand { display: grid; place-items: center; min-width: 0; }
.agz-brand-link { display: inline-block; line-height: 0; max-width: 100%; }
.agz-logo { width: auto; object-fit: contain; }
.agz-header .agz-logo { max-width: var(--agz-logo-desktop); max-height: 82px; }
.agz-logo--mobile { display: none; }
.agz-header-tool {
  border: 0;
  padding: 0;
  background: transparent;
  color: #111;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}
.agz-tool-icon { display: block; width: 46px; height: 46px; line-height: 0; }
.agz-tool-icon svg { width: 100%; height: 100%; }
.agz-header-tool small { font-size: 14px; font-weight: 400; line-height: 1; }
.agz-header-tool:hover { color: var(--agz-blue-dark); }


/* Faixa de editorias — visível no computador e compacta em telas médias */
.agz-channel-bar { background: #fff; border-bottom: 1px solid #d8d8d8; }
.agz-channel-bar-inner { min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 0; overflow-x: auto; scrollbar-width: none; }
.agz-channel-bar-inner::-webkit-scrollbar { display: none; }
.agz-channel-bar a { flex: 0 0 auto; padding: 12px 17px 11px; color: #34373b; font-size: 15px; font-weight: 600; line-height: 1; text-transform: uppercase; border-right: 1px solid #e2e2e2; }
.agz-channel-bar a:first-child { border-left: 1px solid #e2e2e2; }
.agz-channel-bar a:hover { background: #f3f3f3; color: var(--agz-blue-dark); }
/* Menu lateral */
.agz-drawer-backdrop {
  position: fixed; inset: 0; z-index: 88;
  background: rgba(0,0,0,.52);
  opacity: 0; visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}
.agz-drawer {
  position: fixed; z-index: 90; inset: 0 auto 0 0;
  width: min(510px, 78vw);
  background: #ececec;
  box-shadow: 10px 0 36px rgba(0,0,0,.2);
  overflow-y: auto;
  transform: translateX(-103%);
  transition: transform .25s ease;
}
.agz-menu-open .agz-drawer { transform: translateX(0); }
.agz-menu-open .agz-drawer-backdrop { opacity: 1; visibility: visible; }
.agz-drawer-head {
  height: 118px;
  display: grid;
  grid-template-columns: 70px minmax(0,1fr) 70px;
  gap: 10px;
  align-items: center;
  padding: 0 18px;
  background: #fff;
  border-bottom: 4px solid var(--agz-blue);
}
.agz-drawer-brand { display: grid; place-items: center; min-width: 0; }
.agz-drawer-brand .agz-logo { max-height: 75px; max-width: 310px; }
.agz-drawer-label { padding: 24px 29px 10px; color: #555; font-size: 28px; font-weight: 300; }
.agz-drawer-nav ul { margin: 0; padding: 0; list-style: none; }
.agz-drawer-nav > ul > li { position: relative; border-top: 1px solid #d1d1d1; }
.agz-drawer-nav > ul > li:last-child { border-bottom: 1px solid #d1d1d1; }
.agz-drawer-nav a {
  min-height: 61px;
  display: flex;
  align-items: center;
  padding: 9px 32px;
  background: #ededed;
  color: #333;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.05;
}
.agz-drawer-nav a:hover { background: #e2e2e2; color: var(--agz-blue-dark); }
.agz-drawer-nav .menu-item-has-children > a::after {
  content: "+";
  margin-left: auto;
  padding-left: 20px;
  color: #111;
  font-size: 27px;
}
.agz-drawer-nav .sub-menu { display: none; background: #ddd; }
.agz-drawer-nav .menu-item-has-children.is-open > .sub-menu { display: block; }
.agz-drawer-nav .sub-menu a { min-height: 51px; padding-left: 50px; font-size: 22px; font-weight: 500; background: #dedede; }
.agz-drawer-nav > ul > li:nth-child(3n+1) > a { color: #0b559d; }
.agz-drawer-nav > ul > li:nth-child(3n+2) > a { color: #a20a38; }
.agz-drawer-nav > ul > li:nth-child(3n+3) > a { color: #314e49; }

/* Busca */
.agz-search-overlay {
  position: fixed; inset: 0; z-index: 110;
  display: grid; place-items: start center;
  padding: 14vh 24px 40px;
  background: rgba(0,0,0,.9);
  opacity: 0; visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.agz-search-open .agz-search-overlay { opacity: 1; visibility: visible; }
.agz-search-panel { width: min(760px, 100%); position: relative; color: #fff; }
.agz-search-panel h2 { margin: 0 0 28px; font-size: 45px; font-weight: 600; }
.agz-search-close {
  position: absolute; right: 0; top: -72px;
  width: 50px; height: 50px; border: 0; border-radius: 50%;
  background: #fff; color: #111; font-size: 38px; line-height: 1;
}
.agz-search-form { display: grid; grid-template-columns: 1fr 58px; border-bottom: 3px solid #fff; }
.agz-search-form input {
  min-width: 0; border: 0; outline: 0; background: transparent;
  color: #fff; padding: 14px 0; font-size: 36px; font-weight: 300;
}
.agz-search-form input::placeholder { color: rgba(255,255,255,.55); }
.agz-search-form button { border: 0; background: transparent; color: #fff; }
.agz-search-form svg { width: 40px; height: 40px; }

/* Títulos das editorias */
.agz-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 22px;
}
.agz-section-heading h2 { margin: 0; display: flex; align-items: center; gap: 13px; line-height: 1; }
.agz-section-heading h2 span {
  display: inline-block;
  padding: 8px 13px 8px;
  border-radius: 5px;
  background: #34373b;
  color: #fff;
  font-size: 33px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.agz-section-heading h2 b { color: #0874a5; font-size: 43px; font-weight: 700; }
.agz-section-heading > a { padding-bottom: 6px; color: #5a5a5a; font-size: 15px; font-weight: 600; }
.agz-section-heading > a:hover { color: var(--agz-blue-dark); }

/* Destaques da home */
.agz-home-hero { padding-top: 36px; }
.agz-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(0, .78fr) minmax(0, .78fr);
  grid-template-rows: auto auto;
  gap: 28px 20px;
  align-items: start;
}
.agz-hero-card { min-width: 0; }
.agz-hero-card--1 { grid-column: 1; grid-row: 1 / span 2; }
.agz-hero-card--2 { grid-column: 2; grid-row: 1; }
.agz-hero-card--3 { grid-column: 3; grid-row: 1; }
.agz-hero-card--4 { grid-column: 2; grid-row: 2; }
.agz-hero-card--5 { grid-column: 3; grid-row: 2; }
.agz-hero-image,
.agz-card-image {
  position: relative;
  display: block;
  overflow: hidden;
  background: #ddd;
}
.agz-hero-image img,
.agz-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.agz-hero-image:hover img,
.agz-card-image:hover img { transform: scale(1.018); }
.agz-hero-card--1 .agz-hero-image { aspect-ratio: 16 / 10.1; }
.agz-hero-card:not(.agz-hero-card--1) .agz-hero-image { aspect-ratio: 16 / 9.4; }
.agz-card-badge {
  position: absolute;
  left: 18px;
  bottom: 15px;
  display: inline-block;
  max-width: calc(100% - 36px);
  padding: 6px 10px 5px;
  border-radius: 4px;
  background: var(--badge, #0a56b8);
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 4px rgba(0,0,0,.12);
}
.agz-hero-card--1 .agz-card-badge { font-size: 18px; }
.agz-hero-copy { padding: 11px 0 0; }
.agz-hero-copy h1,
.agz-hero-copy h2 { margin: 0; color: var(--agz-ink); font-weight: 700; letter-spacing: -.022em; }
.agz-hero-copy h1 { font-size: clamp(35px, 3.35vw, 47px); line-height: .99; }
.agz-hero-copy h2 { font-size: 22px; line-height: 1.03; }
.agz-hero-copy p { margin: 12px 0 0; color: #737373; font-size: 19px; font-weight: 300; line-height: 1.17; }
.agz-hero-card:not(.agz-hero-card--1) { padding-bottom: 21px; border-bottom: 1px solid var(--agz-line); }

/* Seções e cards da home */
.agz-home-section { padding-top: 66px; }
.agz-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.82fr) minmax(300px, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: 22px 28px;
  align-items: start;
}
.agz-section-grid .agz-card--lead { grid-column: 1; grid-row: 1 / span 3; }
.agz-section-grid > .agz-card:not(.agz-card--lead) {
  grid-column: 2;
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 21px;
}
.agz-card { min-width: 0; padding-bottom: 26px; border-bottom: 1px solid var(--agz-line); }
.agz-card-image { aspect-ratio: 16 / 10; }
.agz-card-copy { padding-top: 11px; }
.agz-card-title { margin: 0; color: var(--agz-ink); font-size: 23px; font-weight: 700; line-height: 1.035; letter-spacing: -.015em; }
.agz-card--lead .agz-card-title { font-size: 34px; line-height: 1; }
.agz-card-excerpt { margin: 9px 0 0; color: #686868; font-size: 17px; font-weight: 300; line-height: 1.3; }
.agz-section-grid > .agz-card:not(.agz-card--lead) .agz-card-image { aspect-ratio: 16 / 10.5; }
.agz-section-grid > .agz-card:not(.agz-card--lead) .agz-card-copy { padding-top: 0; }
.agz-section-grid > .agz-card:not(.agz-card--lead) .agz-card-title { font-size: 20px; }
.agz-section-grid > .agz-card:not(.agz-card--lead) .agz-card-badge { left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 4px 6px; font-size: 11px; }

/* Últimas notícias */
.agz-latest-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 50px; align-items: start; }
.agz-latest-feed { display: grid; gap: 25px; }
.agz-card--row { display: grid; grid-template-columns: 245px minmax(0,1fr); gap: 21px; padding-bottom: 25px; }
.agz-card--row .agz-card-image { aspect-ratio: 16 / 10; }
.agz-card--row .agz-card-copy { padding-top: 0; }
.agz-card--row .agz-card-title { font-size: 27px; }

/* Mais lidas */
.agz-popular-block .agz-section-heading { margin-bottom: 16px; }
.agz-popular-block .agz-section-heading h2 span { padding: 0; background: transparent; color: #314e49; font-size: 35px; }
.agz-popular-block .agz-section-heading h2 b { display: none; }
.agz-popular-list { display: grid; gap: 18px; }
.agz-popular-item { padding-bottom: 18px; border-bottom: 1px solid var(--agz-line); }
.agz-popular-image { display: block; margin-bottom: 9px; aspect-ratio: 16 / 9.5; overflow: hidden; }
.agz-popular-image img { width: 100%; height: 100%; object-fit: cover; }
.agz-popular-copy { display: grid; grid-template-columns: 30px 1fr; gap: 9px; align-items: start; }
.agz-popular-rank { color: var(--agz-blue); font-size: 32px; font-weight: 700; line-height: 1; }
.agz-popular-item h3 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.05; }

/* Categorias, tags e arquivos */
.agz-archive { padding-top: 66px; padding-bottom: 80px; }
.agz-archive-desc { width: min(760px,100%); margin: -6px 0 28px; color: #666; font-size: 19px; font-weight: 300; }
.agz-archive-lead-wrap { margin-bottom: 42px; }
.agz-card--archive-lead { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr); gap: 28px; align-items: start; }
.agz-card--archive-lead .agz-card-image { aspect-ratio: 16 / 10; }
.agz-card--archive-lead .agz-card-copy { padding-top: 4px; }
.agz-card--archive-lead .agz-card-title { font-size: 41px; line-height: .99; }
.agz-card--archive-lead .agz-card-excerpt { font-size: 20px; line-height: 1.25; }
.agz-archive-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 34px 26px; }
.navigation.pagination { margin-top: 48px; }
.nav-links { display: flex; justify-content: center; gap: 7px; }
.page-numbers { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 10px; border: 1px solid #ccc; font-weight: 600; }
.page-numbers.current, .page-numbers:hover { background: var(--agz-blue); border-color: var(--agz-blue); color: #fff; }

/* Matéria */
.agz-article { padding-bottom: 80px; }
.agz-article-breadcrumb-wrap { padding-top: 25px; }
.agz-breadcrumb {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-top: 1px solid #cfcfcf;
  border-bottom: 5px solid #075596;
  color: #214f84;
  font-size: 28px;
  font-weight: 300;
}
.agz-breadcrumb a { font-weight: 700; }
.agz-breadcrumb span { color: #075596; font-size: 43px; line-height: .7; }
.agz-breadcrumb b { font-weight: 300; }
.agz-article-grid {
  display: grid;
  grid-template-columns: minmax(0, 780px) 300px;
  gap: 56px;
  align-items: start;
  padding-top: 47px;
}
.agz-article-main { min-width: 0; }
.agz-article-header { margin-bottom: 18px; }
.agz-article-kicker { margin-bottom: 15px; color: #124b8d; font-size: 21px; font-weight: 400; text-transform: uppercase; }
.agz-article-header h1 {
  margin: 0;
  color: #292b2e;
  font-size: clamp(46px, 4.7vw, 62px);
  font-weight: 700;
  line-height: .97;
  letter-spacing: -.03em;
}
.agz-article-deck { margin: 17px 0 0; color: #686868; font-size: 23px; font-weight: 300; line-height: 1.15; }
.agz-article-byline { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-top: 22px; color: #555; font-size: 15px; }
.agz-article-byline strong { color: #111; }
.agz-featured { margin-top: 6px; }
.agz-photo-credit { margin-bottom: 3px; font-size: 13px; font-weight: 400; text-transform: uppercase; }
.agz-featured img { width: 100%; }
.agz-featured figcaption { margin-top: 7px; color: #5f5f5f; font-size: 17px; font-weight: 300; line-height: 1.15; }

/* Compartilhamento */
.agz-share { margin: 27px 0 33px; }
.agz-share-heading { display: block; margin-bottom: 9px; font-size: 18px; font-weight: 400; }
.agz-share-items { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.agz-share-item {
  min-width: 55px; border: 0; padding: 0; background: transparent;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: #064d91;
}
.agz-share-circle {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.agz-share-circle svg { width: 28px; height: 28px; }
.agz-share-item small { color: #333; font-size: 12px; font-weight: 300; }
.agz-share-whatsapp { color: #16bf63; }
.agz-share-x { color: #0395cd; }
.agz-share-linkedin { color: #0878b5; }
.agz-copy { color: #555; }

/* Conteúdo da matéria */
.agz-article-content {
  color: #333;
  font-size: 21px;
  font-weight: 300;
  line-height: 1.5;
}
.agz-article-content > *:first-child { margin-top: 0; }
.agz-article-content p { margin: 0 0 1.12em; }
.agz-article-content h2 { margin: 1.3em 0 .43em; color: #174f8f; font-size: 38px; font-weight: 700; line-height: 1.04; }
.agz-article-content h3 { margin: 1.22em 0 .4em; color: #333; font-size: 29px; font-weight: 700; line-height: 1.08; }
.agz-article-content a { color: #075596; text-decoration: underline; }
.agz-article-content blockquote { margin: 1.4em 0; padding: 6px 0 6px 22px; border-left: 5px solid var(--agz-blue); font-size: 25px; }
.agz-article-content ul, .agz-article-content ol { padding-left: 27px; }
.agz-article-content img { margin-block: 25px; }
.agz-article-content .wp-caption { max-width: 100%; }
.agz-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.agz-tags a { padding: 6px 10px; background: #eee; font-size: 14px; }
.agz-comment-cta {
  display: block;
  margin: 36px 0;
  padding: 12px 20px 13px;
  border-radius: 5px;
  background: #08669b;
  color: #fff;
  text-align: center;
  font-size: 25px;
  font-weight: 400;
}
.agz-comment-cta:hover { background: #064f79; color: #fff; }
.agz-author-box {
  display: grid;
  grid-template-columns: 155px 1fr;
  gap: 25px;
  align-items: center;
  padding: 27px 0 39px;
  border-bottom: 1px solid var(--agz-line);
}
.agz-author-avatar img { width: 145px; height: 145px; border-radius: 50%; object-fit: cover; }
.agz-author-copy p { margin: 0; font-size: 20px; font-weight: 300; line-height: 1.42; }
.agz-author-copy p strong { color: #111; font-weight: 700; }
.agz-author-copy > a { display: inline-block; margin-top: 5px; color: #111; font-size: 18px; font-style: italic; text-decoration: underline; }
.agz-weekly { padding-top: 34px; }
.agz-weekly > h2 { margin: 0 0 20px; color: #14569e; font-size: 45px; line-height: 1; }
.agz-weekly article { margin-bottom: 27px; }
.agz-weekly h3 { margin: 0 0 10px; font-size: 29px; font-weight: 700; line-height: 1.07; }
.agz-weekly p { margin: 0; font-size: 21px; font-weight: 300; line-height: 1.43; }
.agz-related { padding-top: 48px; }
.agz-related-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.agz-related .agz-card-title { font-size: 22px; }
.agz-mobile-popular { display: none; padding-top: 48px; }
.agz-article-sidebar { position: sticky; top: 22px; }
.agz-widget { margin-top: 33px; }
.agz-widget-title { font-size: 29px; }

/* Comentários */
.agz-comments { margin-top: 52px; padding-top: 32px; border-top: 1px solid var(--agz-line); }
.agz-comments h2, .comment-reply-title { font-size: 32px; }
.comment-list { padding: 0; list-style: none; }
.comment-list li { margin: 0 0 22px; padding: 20px; background: #f5f5f5; }
.comment-form label { display: block; margin-bottom: 5px; }
.comment-form input:not([type=submit]), .comment-form textarea { width: 100%; border: 1px solid #ccc; padding: 12px; }
.comment-form input[type=submit] { border: 0; padding: 11px 22px; background: var(--agz-blue-dark); color: #fff; }

/* Páginas e mensagens */
.agz-page { padding: 68px 0 88px; }
.agz-page h1 { margin: 0 0 27px; color: var(--agz-ink); font-size: 52px; line-height: 1; }
.agz-page-content { font-size: 20px; font-weight: 300; line-height: 1.52; }
.agz-empty, .agz-error { padding-top: 95px; padding-bottom: 115px; text-align: center; }
.agz-error > span { color: var(--agz-blue); font-size: 94px; font-weight: 700; }
.agz-empty h1, .agz-error h1 { margin: 0 0 12px; font-size: 45px; }
.agz-button { display: inline-block; margin-top: 20px; padding: 12px 22px; background: var(--agz-blue-dark); color: #fff; }
.agz-button:hover { color: #fff; background: #063e70; }

/* Rodapé */
.agz-footer { margin-top: 68px; background: #222; color: #fff; }
.agz-footer-grid { display: grid; place-items: center; padding-top: 43px; padding-bottom: 38px; text-align: center; }
.agz-footer-brand .agz-logo { max-width: 330px; max-height: 82px; }
.agz-footer-brand p { max-width: 520px; margin: 15px auto 0; color: #ccc; font-size: 17px; font-weight: 300; }
.agz-footer-nav { display: none; }
.agz-footer-bottom { padding: 17px 0; border-top: 1px solid #444; color: #aaa; font-size: 14px; text-align: center; }
.agz-back-top {
  position: fixed; z-index: 75; left: 12px; bottom: 0;
  width: 64px; height: 42px;
  border: 0; border-radius: 7px 7px 0 0;
  background: #fff; color: #666;
  box-shadow: 0 -2px 8px rgba(0,0,0,.15);
  font-size: 34px; line-height: 1;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.agz-back-top.is-visible { opacity: 1; pointer-events: auto; }

@media (max-width: 1080px) {
  .agz-hero-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, .78fr) minmax(0, .78fr); }
  .agz-article-grid { grid-template-columns: minmax(0,1fr) 285px; gap: 38px; }
  .agz-latest-layout { grid-template-columns: minmax(0,1fr) 305px; gap: 36px; }
  .agz-card--row { grid-template-columns: 225px minmax(0,1fr); }
}

@media (max-width: 900px) {
  body { font-size: 16px; }
  .agz-channel-bar { display: none; }
  .agz-shell, .agz-reading { width: min(calc(100% - 26px), var(--agz-shell)); }
  .agz-header-inner {
    width: 100%; min-height: 101px;
    grid-template-columns: 67px minmax(0,1fr) 67px;
    gap: 4px; padding: 0 12px;
  }
  .agz-header .agz-logo { max-width: var(--agz-logo-mobile); max-height: 70px; }
  .agz-logo--desktop + .agz-logo--mobile { display: block; }
  .agz-logo--desktop:has(+ .agz-logo--mobile) { display: none; }
  .agz-tool-icon { width: 44px; height: 44px; }
  .agz-header-tool small { font-size: 12px; }
  .agz-drawer { width: min(455px, 74vw); }
  .agz-drawer-head { height: 101px; grid-template-columns: 60px minmax(0,1fr) 60px; gap: 5px; padding: 0 9px; }
  .agz-drawer-brand .agz-logo { max-width: 230px; max-height: 67px; }
  .agz-drawer-label { padding: 21px 27px 9px; font-size: 25px; }
  .agz-drawer-nav a { min-height: 51px; padding: 8px 21px; font-size: 23px; }
  .agz-drawer-nav .sub-menu a { min-height: 45px; padding-left: 34px; font-size: 20px; }

  .agz-home-hero { width: 100%; padding-top: 0; }
  .agz-hero-grid { display: block; }
  .agz-hero-card { padding-bottom: 0; border: 0; }
  .agz-hero-card + .agz-hero-card { width: calc(100% - 26px); margin: 31px auto 0; padding-bottom: 27px; border-bottom: 1px solid var(--agz-line); }
  .agz-hero-card--1 .agz-hero-image,
  .agz-hero-card:not(.agz-hero-card--1) .agz-hero-image { aspect-ratio: 16 / 10; }
  .agz-hero-card--1 .agz-hero-copy { padding: 12px 13px 26px; border-bottom: 1px solid var(--agz-line); }
  .agz-hero-card:not(.agz-hero-card--1) .agz-hero-copy { padding-top: 11px; }
  .agz-card-badge { left: 24px; bottom: 17px; padding: 6px 10px 5px; font-size: 16px; }
  .agz-hero-copy h1 { font-size: 34px; line-height: .99; }
  .agz-hero-copy h2 { font-size: 27px; line-height: 1.02; }
  .agz-hero-copy p { margin-top: 12px; font-size: 20px; line-height: 1.15; }

  .agz-home-section { padding-top: 54px; }
  .agz-section-heading { margin-bottom: 15px; }
  .agz-section-heading h2 { gap: 11px; }
  .agz-section-heading h2 span { padding: 7px 11px; font-size: 30px; }
  .agz-section-heading h2 b { font-size: 37px; }
  .agz-section-heading > a { display: none; }
  .agz-section-grid,
  .agz-section-grid > .agz-card:not(.agz-card--lead),
  .agz-archive-grid { display: block; }
  .agz-section-grid .agz-card, .agz-archive-grid .agz-card { margin-bottom: 27px; }
  .agz-card { padding-bottom: 27px; }
  .agz-card-image { aspect-ratio: 16 / 10; }
  .agz-card-copy,
  .agz-section-grid > .agz-card:not(.agz-card--lead) .agz-card-copy { padding-top: 10px; }
  .agz-card-title,
  .agz-card--lead .agz-card-title,
  .agz-section-grid > .agz-card:not(.agz-card--lead) .agz-card-title { font-size: 27px; line-height: 1.03; }
  .agz-section-grid > .agz-card:not(.agz-card--lead) .agz-card-badge { left: 24px; bottom: 17px; max-width: calc(100% - 48px); padding: 6px 10px 5px; font-size: 16px; }

  .agz-latest-layout { display: block; }
  .agz-card--row { display: block; }
  .agz-card--row .agz-card-copy { padding-top: 10px; }
  .agz-card--row .agz-card-title { font-size: 27px; }
  .agz-home-popular { margin-top: 45px; }

  .agz-archive { padding-top: 54px; }
  .agz-card--archive-lead { display: block; }
  .agz-card--archive-lead .agz-card-copy { padding-top: 11px; }
  .agz-card--archive-lead .agz-card-title { font-size: 33px; }
  .agz-card--archive-lead .agz-card-excerpt { font-size: 19px; }

  .agz-breadcrumb { min-height: 54px; justify-content: center; gap: 9px; font-size: 23px; white-space: nowrap; overflow: hidden; padding-inline: 10px; }
  .agz-breadcrumb span { font-size: 36px; }
  .agz-breadcrumb b { overflow: hidden; text-overflow: ellipsis; }
  .agz-article-breadcrumb-wrap { padding-top: 0; width: 100%; }
  .agz-article-grid { display: block; padding-top: 28px; }
  .agz-article-kicker { margin-bottom: 12px; font-size: 18px; }
  .agz-article-header h1 { font-size: 42px; line-height: .98; }
  .agz-article-deck { font-size: 21px; }
  .agz-article-byline { font-size: 14px; }
  .agz-photo-credit { font-size: 12px; }
  .agz-featured figcaption { font-size: 16px; }
  .agz-share { margin: 24px 0 30px; }
  .agz-share-items { gap: 13px; }
  .agz-share-circle { width: 44px; height: 44px; }
  .agz-share-circle svg { width: 26px; height: 26px; }
  .agz-article-content { font-size: 20px; line-height: 1.48; }
  .agz-article-content h2 { font-size: 34px; }
  .agz-article-content h3 { font-size: 28px; }
  .agz-comment-cta { font-size: 23px; }
  .agz-author-box { grid-template-columns: 135px 1fr; gap: 21px; }
  .agz-author-avatar img { width: 130px; height: 130px; }
  .agz-author-copy p { font-size: 18px; }
  .agz-weekly > h2 { font-size: 39px; }
  .agz-weekly h3 { font-size: 27px; }
  .agz-weekly p { font-size: 19px; }
  .agz-related-grid { display: block; }
  .agz-related .agz-card { margin-bottom: 27px; }
  .agz-article-sidebar { display: none; }
  .agz-mobile-popular { display: block; }
  .agz-mobile-popular .agz-popular-copy { display: block; }
  .agz-mobile-popular .agz-popular-rank { display: none; }
  .agz-mobile-popular .agz-popular-item h3 { font-size: 27px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .agz-shell, .agz-reading { width: calc(100% - 26px); }
  .agz-header-inner { min-height: 98px; grid-template-columns: 58px minmax(0,1fr) 58px; padding-inline: 7px; }
  .agz-header .agz-logo { max-width: min(var(--agz-logo-mobile), calc(100vw - 124px)); }
  .agz-tool-icon { width: 42px; height: 42px; }
  .agz-header-tool small { font-size: 12px; }
  .agz-drawer { width: 76vw; min-width: 270px; }
  .agz-drawer-head { grid-template-columns: 52px minmax(0,1fr) 52px; padding-inline: 6px; }
  .agz-drawer-brand .agz-logo { max-width: calc(76vw - 116px); }
  .agz-drawer-nav a { font-size: 21px; }
  .agz-search-panel h2 { font-size: 35px; }
  .agz-search-form input { font-size: 27px; }
  .agz-card-badge,
  .agz-section-grid > .agz-card:not(.agz-card--lead) .agz-card-badge { left: 13px; bottom: 12px; max-width: calc(100% - 26px); font-size: 15px; }
  .agz-hero-copy h1 { font-size: 31px; }
  .agz-hero-copy h2 { font-size: 25px; }
  .agz-hero-copy p { font-size: 19px; }
  .agz-section-heading h2 span { font-size: 27px; }
  .agz-section-heading h2 b { font-size: 34px; }
  .agz-card-title,
  .agz-card--lead .agz-card-title,
  .agz-card--row .agz-card-title,
  .agz-section-grid > .agz-card:not(.agz-card--lead) .agz-card-title { font-size: 25px; }
  .agz-card-excerpt { font-size: 17px; }
  .agz-card--archive-lead .agz-card-title { font-size: 30px; }
  .agz-breadcrumb { font-size: 20px; }
  .agz-article-grid { padding-top: 25px; }
  .agz-article-kicker { font-size: 16px; }
  .agz-article-header h1 { font-size: 37px; }
  .agz-article-deck { font-size: 19px; }
  .agz-article-content { font-size: 19px; line-height: 1.47; }
  .agz-article-content h2 { font-size: 30px; }
  .agz-article-content h3 { font-size: 25px; }
  .agz-share-items { justify-content: space-between; gap: 7px; }
  .agz-share-item { min-width: 46px; }
  .agz-share-circle { width: 42px; height: 42px; }
  .agz-share-item small { font-size: 11px; }
  .agz-author-box { grid-template-columns: 100px 1fr; gap: 15px; }
  .agz-author-avatar img { width: 96px; height: 96px; }
  .agz-author-copy p { font-size: 17px; line-height: 1.39; }
  .agz-author-copy > a { font-size: 15px; }
  .agz-weekly > h2 { font-size: 35px; }
  .agz-weekly h3 { font-size: 24px; }
  .agz-weekly p { font-size: 18px; }
  .agz-popular-block .agz-section-heading h2 span { font-size: 34px; }
  .agz-popular-item h3 { font-size: 20px; }
  .agz-mobile-popular .agz-popular-item h3 { font-size: 25px; }
  .agz-footer-brand .agz-logo { max-width: 265px; }
}

/* Ajustes de fidelidade e robustez — versão 5 */
.agz-logo--default { display: block; width: 100%; height: auto; }
.agz-fallback-image { width: 100%; height: 100%; object-fit: cover; }
.agz-home-section { scroll-margin-top: 24px; }
.agz-section-grid .agz-card,
.agz-hero-card,
.agz-latest-feed .agz-card { content-visibility: auto; contain-intrinsic-size: 420px; }
.agz-share-divider {
  align-self: stretch;
  width: 1px;
  min-height: 49px;
  margin: 0 2px;
  background: #555;
}
.agz-share-service { color: #555; }
.agz-share-service small { max-width: 58px; line-height: 1.05; text-align: center; }
.agz-share-bottom { margin-top: 35px; padding-top: 3px; border-top: 1px solid var(--agz-line); }
.agz-share-bottom .agz-share { margin-bottom: 28px; }
.agz-article-content iframe,
.agz-article-content video { max-width: 100%; }

@media (min-width: 901px) {
  .agz-home-hero + .agz-home-section { padding-top: 72px; }
  .agz-home-section + .agz-home-section { padding-top: 72px; }
  .agz-section-grid > .agz-card:not(.agz-card--lead) .agz-card-title { font-size: 21px; font-weight: 700; }
  .agz-hero-copy h2 { font-size: 23px; }
  .agz-card--row .agz-card-excerpt { max-width: 590px; }
}

@media (max-width: 900px) {
  .agz-share-items { gap: 10px; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .agz-share-items::-webkit-scrollbar { display: none; }
  .agz-share-item { flex: 0 0 48px; min-width: 48px; }
  .agz-share-divider { flex: 0 0 1px; min-height: 45px; }
  .agz-share-service { flex-basis: 56px; min-width: 56px; }
  .agz-share-bottom { margin-top: 30px; }
  .agz-section-grid .agz-card,
  .agz-hero-card,
  .agz-latest-feed .agz-card { contain-intrinsic-size: 520px; }
}

@media (max-width: 520px) {
  .agz-share-items { gap: 7px; }
  .agz-share-circle { width: 40px; height: 40px; }
  .agz-share-circle svg { width: 24px; height: 24px; }
  .agz-share-item { flex-basis: 43px; min-width: 43px; }
  .agz-share-service { flex-basis: 54px; min-width: 54px; }
  .agz-share-divider { margin-inline: 0; }
  .agz-share-item small { font-size: 10px; }
}


/* Correções v5: home nunca reduzida à categoria Geral */
.agz-home-section .agz-section-heading { border-bottom: 0; }
.agz-section-grid { min-height: 1px; }
.agz-header-brand img, .agz-drawer-brand img, .agz-footer-brand img { isolation: isolate; }
@media (min-width: 901px) {
  .agz-home-hero { padding-top: 32px; }
  .agz-home-section { padding-top: 58px; }
  .agz-home-hero + .agz-home-section, .agz-home-section + .agz-home-section { padding-top: 62px; }
}


/* v6: correção da home, logo e cache */
.agz-home-hero { padding-top: 30px; }
.agz-hero-grid { gap: 25px 18px; }
.agz-home-section { padding-top: 58px; }
.agz-section-heading { margin-bottom: 18px; }
.agz-section-heading h2 span { font-size: 31px; padding: 7px 12px; }
.agz-hero-copy h1 { font-weight: 700; }
.agz-hero-copy h2,
.agz-card-title { font-weight: 700; }
.agz-card-badge { font-weight: 400; }
.agz-header-brand img,
.agz-drawer-brand img,
.agz-footer-brand img { object-position: center; }

@media (min-width: 901px) {
  .agz-header-inner { min-height: 104px; }
  .agz-header .agz-logo { max-height: 72px; }
  .agz-hero-grid { grid-template-columns: minmax(0,1.55fr) minmax(0,.72fr) minmax(0,.72fr); }
  .agz-hero-copy h1 { font-size: clamp(37px,3.1vw,45px); }
  .agz-hero-copy h2 { font-size: 21px; }
  .agz-section-grid { grid-template-columns: minmax(0,1.65fr) minmax(300px,1fr); }
}

@media (max-width: 900px) {
  .agz-home-section { padding-top: 48px; }
  .agz-section-heading h2 span { font-size: 29px; }
  .agz-hero-copy h1 { font-size: 33px; }
  .agz-hero-copy h2,
  .agz-card-title,
  .agz-card--lead .agz-card-title,
  .agz-section-grid > .agz-card:not(.agz-card--lead) .agz-card-title,
  .agz-card--row .agz-card-title { font-size: 26px; }
}

@media (max-width: 520px) {
  .agz-header-inner { min-height: 94px; }
  .agz-hero-copy h1 { font-size: 32px; }
  .agz-hero-copy h2,
  .agz-card-title,
  .agz-card--lead .agz-card-title,
  .agz-section-grid > .agz-card:not(.agz-card--lead) .agz-card-title,
  .agz-card--row .agz-card-title { font-size: 25px; }
  .agz-card-badge,
  .agz-section-grid > .agz-card:not(.agz-card--lead) .agz-card-badge { font-size: 15px; }
}


/* v6.1: resumo curto somente no destaque principal e logo maior/centralizada */
.agz-header-brand {
  width: 100%;
  justify-self: center;
  text-align: center;
}
.agz-header-brand .agz-brand-link {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
}
.agz-header .agz-logo {
  display: block;
  max-width: min(calc(var(--agz-logo-desktop) + 45px), 545px);
  max-height: 96px;
  margin-inline: auto;
}
.agz-hero-card--1 .agz-hero-copy p {
  max-width: 720px;
}
@media (min-width: 901px) {
  .agz-header-inner { min-height: 124px; }
}
@media (max-width: 900px) {
  .agz-header-inner {
    grid-template-columns: 60px minmax(0,1fr) 60px;
    min-height: 108px;
  }
  .agz-header .agz-logo {
    max-width: min(calc(var(--agz-logo-mobile) + 24px), calc(100vw - 112px));
    max-height: 82px;
  }
}
@media (max-width: 520px) {
  .agz-header-inner {
    grid-template-columns: 52px minmax(0,1fr) 52px;
    min-height: 104px;
  }
  .agz-header .agz-logo {
    max-width: min(calc(var(--agz-logo-mobile) + 20px), calc(100vw - 102px));
    max-height: 78px;
  }
  .agz-hero-copy p {
    font-size: 17px;
    line-height: 1.18;
  }
}


/* v6.2: logo centralizada de verdade e maior */
.agz-header-inner {
  grid-template-columns: 72px minmax(0,1fr) 72px;
}
.agz-header-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.agz-header-brand .agz-brand-link {
  width: auto;
  max-width: 100%;
}
.agz-header .agz-logo {
  max-width: min(560px, 100%);
  max-height: 92px;
}
.agz-drawer-brand .agz-logo {
  max-width: min(320px, 100%);
  max-height: 74px;
}
@media (max-width: 900px) {
  .agz-header-inner {
    grid-template-columns: 60px minmax(0,1fr) 60px;
    min-height: 112px;
    padding-inline: 10px;
  }
  .agz-header-brand .agz-brand-link {
    width: auto;
  }
  .agz-header .agz-logo {
    max-width: min(310px, calc(100vw - 136px));
    max-height: 84px;
  }
}
@media (max-width: 520px) {
  .agz-header-inner {
    grid-template-columns: 56px minmax(0,1fr) 56px;
    min-height: 108px;
    padding-inline: 6px;
  }
  .agz-header .agz-logo {
    max-width: min(300px, calc(100vw - 124px));
    max-height: 80px;
  }
}


/* v6.3: nova logo aplicada no código e visível no rodapé */
.agz-footer-brand .agz-logo { max-width: 430px; max-height: 92px; }
@media (max-width: 520px) { .agz-footer-brand .agz-logo { max-width: 300px; } }
