:root{
  --g1-red:#c4170c;
  --text:#111;
  --muted:#6b7280;
  --border:#e5e7eb;
  --bg:#ffffff;
  --container:1180px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:Arial, Helvetica, sans-serif;color:var(--text);background:var(--bg);}
a{color:inherit;text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto;display:block}
.container{max-width:var(--container);margin:0 auto;padding:0 16px;}

/* Top links */
.g1-toplinks{font-size:12px;padding:10px 0;border-bottom:1px solid var(--border);}
.g1-toplinks .links{display:flex;gap:14px;align-items:center;flex-wrap:wrap;justify-content:center}
.g1-toplinks a{color:#1f2937;text-decoration:none}
.g1-toplinks a:hover{text-decoration:underline}

/* Header bar */
.g1-headerbar{background:var(--headerbar-bg, var(--g1-red));color:#fff;}
.g1-headerbar .bar{
  display:grid;
  grid-template-columns: 220px 1fr 260px;
  align-items:center;
  gap:12px;
  height:64px;
}
.g1-left{display:flex;align-items:center;gap:10px;}
.g1-burger{
  border:0;background:transparent;color:#fff;
  font-size:20px;line-height:1;cursor:pointer;
  padding:10px 8px;border-radius:8px;
}
.g1-burger:hover{background:rgba(255,255,255,.12)}
.g1-menu-label{font-weight:800;letter-spacing:.6px;font-size:12px;text-transform:uppercase}
.g1-logo-wrap{display:flex;justify-content:center;align-items:center}
.g1-logo-text{font-weight:900;font-size:34px;letter-spacing:-1px;color:#fff;text-decoration:none}
.g1-logo-wrap img{max-height:60px;width:auto;height:auto;}

.g1-right{display:flex;justify-content:flex-end;gap:10px;align-items:center}
.g1-btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:9px 12px;border-radius:10px;
  background:rgba(0,0,0,.16);
  border:1px solid rgba(255,255,255,.16);
  color:#fff;font-weight:800;font-size:12px;
  text-decoration:none;
}
.g1-btn:hover{background:rgba(0,0,0,.24);text-decoration:none}
.g1-btn svg{width:16px;height:16px;fill:#fff}

/* Menu panel */
.g1-mobile-panel .inner{padding:14px 0}
.g1-mobile-panel ul{list-style:none;margin:0;padding:0}
.g1-mobile-panel li{padding:10px 0;border-top:1px solid var(--border)}
.g1-mobile-panel li:first-child{border-top:0}
.g1-mobile-panel a{color:#111;font-weight:800;text-decoration:none}

/* Search panel */
.g1-search-panel{
  display:none;background:#fff;border-bottom:1px solid var(--border);
}
.g1-search-panel.is-open{display:block}
.g1-search-panel .inner{padding:12px 0}
.g1-search-panel input[type="search"]{
  width:100%;padding:12px 14px;border:1px solid var(--border);
  border-radius:12px;font-size:14px;
}

/* Layout */
main{padding:20px 0 40px}
.layout{display:grid;grid-template-columns: 1fr 320px;gap:22px;align-items:start;margin-top:10px}
@media(max-width:980px){.layout{grid-template-columns:1fr}}

/* Categorias: sem sidebar */
.category .layout{grid-template-columns:1fr !important;}

/* Categorias: lista de "Últimas matérias" */
.cat-latest-title{
  font-size:18px;
  margin:0 0 10px;
}
.cat-list{display:flex;flex-direction:column}
.cat-item{
  display:grid;
  grid-template-columns: 110px 1fr;
  gap:14px;
  align-items:center;
  padding:14px 0;
  border-top:1px solid var(--border);
}
.cat-item:first-child{border-top:0;padding-top:0}
.cat-item:last-child{padding-bottom:0}
.cat-thumb{
  display:block;
  width:110px;
  height:78px;
  border-radius:14px;
  overflow:hidden;
  border:1px solid var(--border);
  background:#fff;
}
.cat-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.cat-thumb-ph{display:block;width:100%;height:100%;background:#e5e7eb}
.cat-title{margin:0 0 6px;font-size:18px;line-height:1.2}
.cat-title a{color:var(--g1-red);font-weight:900;text-decoration:none}
.cat-title a:hover{text-decoration:underline}
.cat-date{font-size:12px;color:#666}

@media(max-width:560px){
  .cat-item{grid-template-columns: 92px 1fr;gap:12px}
  .cat-thumb{width:92px;height:66px;border-radius:12px}
  .cat-title{font-size:16px}
}

/* HERO */
.hero-wrap{padding:38px 0 6px}
.hero-grid{display:grid;grid-template-columns: 1.35fr .9fr;gap:22px;align-items:stretch}
.hero-main,.hero-side-card{border:1px solid var(--border);border-radius:16px;overflow:hidden;background:#fff}
.hero-main .content{padding:14px 16px}
.hero-main .kicker{color:var(--muted);font-size:12px;margin-bottom:6px}
.hero-main h2{font-size:34px;line-height:1.15;margin:0 0 10px;color:var(--g1-red)}
.hero-main p{margin:0;color:#374151;font-size:14px;line-height:1.5}
.hero-main a:hover{text-decoration:none}

.hero-side{display:grid;grid-template-rows: 1fr 1fr;gap:18px}
.hero-side-card{position:relative;min-height:150px}
.hero-side-card img{height:100%;width:100%;object-fit:cover}
.hero-side-card .overlay{position:absolute;inset:0;background:linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.65) 100%);}
.hero-side-card .content{position:absolute;left:14px;right:14px;bottom:14px;color:#fff}
.hero-side-card .tag{display:inline-block;font-size:11px;font-weight:900;letter-spacing:.4px;text-transform:uppercase;background:rgba(0,0,0,.35);padding:4px 8px;border-radius:999px;margin-bottom:10px}
.hero-side-card h3{margin:0;font-size:18px;line-height:1.25}
.hero-side-card a:hover{text-decoration:none}

/* Sections */
.section{margin-top:26px}
.section h2{font-size:20px;margin:0 0 14px;border-left:0;padding-left:0;display:flex;align-items:center;gap:10px}
.section h2::before{content:"";display:inline-block;flex:0 0 5px;width:5px;height:34px;border-radius:999px;background:var(--g1-red)}
.card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
@media(max-width:980px){.hero-grid{grid-template-columns:1fr}.hero-side{grid-template-columns:1fr 1fr;grid-template-rows:none}.card-grid{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.hero-main h2{font-size:28px}.hero-side{grid-template-columns:1fr}.card-grid{grid-template-columns:1fr}}

.post-card{border:1px solid var(--border);border-radius:14px;overflow:hidden;background:#fff}
.post-card .thumb{aspect-ratio:16/9;overflow:hidden}
.post-card .thumb img{width:100%;height:100%;object-fit:cover}
.post-card .meta{padding:10px 12px}
.post-card h3{margin:0;font-size:16px;line-height:1.25}
.section .more{display:inline-block;margin-top:10px;color:var(--g1-red);font-weight:900;text-decoration:none}
.section .more:hover{text-decoration:underline}

/* Single */
.single h1{font-size:34px;line-height:1.15;margin:0 0 10px}
.single .meta{color:var(--muted);font-size:17px;margin-bottom:12px}
.single .featured{margin:16px 0;border-radius:16px;overflow:hidden;border:1px solid var(--border)}
.single .content{font-size:16px;line-height:1.8}
.share-buttons{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0 18px}
.share-buttons a{display:inline-flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid var(--border);border-radius:12px;background:#fff;font-weight:800;font-size:13px;text-decoration:none}
.share-buttons a:hover{background:#f9fafb;text-decoration:none}
.related{margin-top:30px}
.related h3{margin:0 0 12px;font-size:18px}
.pagination{margin:18px 0}
.pagination .page-numbers{display:inline-block;padding:8px 10px;border:1px solid var(--border);border-radius:10px;margin-right:6px;text-decoration:none}
.pagination .current{background:var(--g1-red);color:#fff;border-color:var(--g1-red)}

/* Sidebar */
.sidebar .widget{border:1px solid var(--border);border-radius:14px;background:#fff;padding:14px;margin-bottom:16px}
.sidebar .widget h3{margin:0 0 10px}
.sidebar .mini{display:flex;gap:10px;margin:10px 0}
.sidebar .mini img{width:64px;height:48px;object-fit:cover;border-radius:10px;border:1px solid var(--border)}
.sidebar .mini a{font-weight:800;font-size:13px;line-height:1.2}

/* Footer */
.site-footer{background:var(--footer-bg,#111);color:#fff;padding:42px 0;margin-top:44px}
.site-footer .footer-inner{display:grid;grid-template-columns: 1fr 1fr 1fr;gap:18px}
.site-footer a{color:#fff}
.site-footer a:hover{text-decoration:underline}
.footer-social{display:flex;gap:10px;flex-wrap:wrap}
.footer-social a{display:inline-flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid rgba(255,255,255,.18);border-radius:12px;text-decoration:none}
.footer-social a:hover{text-decoration:underline}
.footer-bottom{margin-top:18px;border-top:1px solid rgba(255,255,255,.14);padding-top:16px;font-size:12px;color:rgba(255,255,255,.8)}

/* Nav row */
.g1-navrow a{
  color:#111;
  font-weight:900;
  font-size: 17px;
  text-decoration:none;
  white-space:nowrap;
}
.g1-navrow a:hover{text-decoration:underline}
@media(max-width:980px){
  .g1-navrow{background:var(--menu-superior-bg,#ffffff);display:none}
}

/* Custom logo in header */
.g1-logo-wrap .custom-logo-link{display:inline-flex;align-items:center;justify-content:center}
.g1-logo-wrap .custom-logo{width:auto;height:auto}

/* ===================================================================== */
/* ====================== DRAWER MENU (BRANCO) ========================== */
/* ===================================================================== */

.g1-drawer-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease;
  z-index:9998;
}

.g1-drawer{
  position:fixed;
  top:0;
  left:0;
  height:100vh;
  width:min(420px, 86vw);
  background:#fff;
  color:#111;
  transform:translateX(-105%);
  transition:transform .22s ease;
  z-index:9999;
  display:flex;
  flex-direction:column;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

/* abrir/fechar (seu JS adiciona g1-menu-open no body) */
body.g1-menu-open .g1-drawer{transform:translateX(0)}
body.g1-menu-open .g1-drawer-overlay{opacity:1;pointer-events:auto}

.g1-drawer-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 16px;
  border-bottom:1px solid var(--border);
}

.g1-drawer-title{
  font-size:14px;
  letter-spacing:.4px;
  text-transform:uppercase;
  color:#111;
  font-weight:800;
}

.g1-drawer-close{
  border:1px solid var(--border);
  background:#f3f4f6;
  color:#111;
  width:40px;height:40px;
  border-radius:12px;
  font-size:22px;
  line-height:1;
  cursor:pointer;
}
.g1-drawer-close:hover{background:#e5e7eb}

.g1-drawer-nav{padding:10px 16px;overflow:auto}
.g1-drawer-nav ul{list-style:none;margin:0;padding:0}
.g1-drawer-nav li{border-top:1px solid var(--border);padding:0}
.g1-drawer-nav li:first-child{border-top:0}

/* links principais */
.g1-drawer-nav a{
  color:#111;
  font-weight:900;
  text-decoration:none;
  font-size:26px;
  display:block;
  padding:14px 6px;
}
.g1-drawer-nav a:hover{text-decoration:underline}

/* =================== SUBMENU: ABRE SOMENTE AO CLICAR NA SETA =================== */
/* JS insere um botão .submenu-toggle dentro de cada LI com submenu.
   Clicar na seta abre/fecha sem navegar; clicar no texto do link navega. */

.g1-drawer-nav li.menu-item-has-children{ position:relative; }

/* dá espaço para a seta/botão */
.g1-drawer-nav li.menu-item-has-children > a{ padding-right:52px; }

/* botão da seta */
.g1-drawer-nav .submenu-toggle{
  position:absolute;
  right:6px;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  border:0;
  background:transparent;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--g1-red);
  border-radius:12px;
}
.g1-drawer-nav .submenu-toggle:hover{ background:#f3f4f6; }

/* ícone da seta */
.g1-drawer-nav .submenu-toggle::before{
  content:"\203A"; /* › */
  font-size:30px;
  font-weight:900;
  line-height:1;
}

/* submenu fechado */
.g1-drawer-nav .sub-menu{
  display:none;
  margin:0;
  padding:0 0 12px 0;
  list-style:none;
}

/* abre quando o LI ganha classe (controlado no JS) */
.g1-drawer-nav li.menu-item-has-children.is-open > .sub-menu{
  display:block;
}

/* gira seta quando aberto */
.g1-drawer-nav li.menu-item-has-children.is-open > .submenu-toggle{
  transform:translateY(-50%) rotate(90deg);
}

/* estilos dos links do submenu */
.g1-drawer-nav .sub-menu li{ border-top:0; }

.g1-drawer-nav .sub-menu a{
  font-size:20px;
  font-weight:700;
  color:#374151;
  padding:10px 22px;
  text-decoration:none;
}
.g1-drawer-nav .sub-menu a:hover{
  text-decoration:none;
  background:#f3f4f6;
}

/* =================== MENU SUPERIOR (#menu-superior) =================== */
/* Abre/fecha somente ao clicar na setinha (.submenu-toggle). */

#menu-superior li.menu-item-has-children{ position:relative; }

/* espaço para o botão seta */
#menu-superior li.menu-item-has-children > a{ padding-right:28px; }

/* botão da seta (fica fora do <a>) */
#menu-superior .submenu-toggle{
  position:absolute;
  right:2px;
  top:50%;
  transform:translateY(-50%);
  width:26px;
  height:26px;
  border:0;
  background:transparent;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--g1-red);
  border-radius:8px;
  z-index:5;
}
#menu-superior .submenu-toggle:hover{ background:rgba(0,0,0,.06); }
#menu-superior .submenu-toggle::before{
  content:"\203A"; /* › */
  font-size:22px;
  font-weight:900;
  line-height:1;
}

/* submenu fechado */
#menu-superior .sub-menu{
  display:none;
  position:absolute;
  left:0;
  top:100%;
  margin-top:10px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  min-width:220px;
  padding:8px;
  box-shadow:0 12px 24px rgba(0,0,0,.12);
  z-index:10000;
}

/* abre somente quando o JS coloca .is-open */
#menu-superior li.menu-item-has-children.is-open > .sub-menu{ display:block; }

/* garante que NÃO abre no hover */
#menu-superior li.menu-item-has-children:hover > .sub-menu{ display:none; }
#menu-superior li.menu-item-has-children.is-open:hover > .sub-menu{ display:block; }

/* itens do submenu */
#menu-superior .sub-menu li{ margin:0; padding:0; }
#menu-superior .sub-menu a{
  display:block;
  padding:10px 10px;
  border-radius:10px;
  font-size:14px;
  font-weight:800;
  color:#111;
  text-decoration:none;
  white-space:nowrap;
}
#menu-superior .sub-menu a:hover{ background:#f3f4f6; text-decoration:none; }

/* gira seta quando aberto */
#menu-superior li.menu-item-has-children.is-open > .submenu-toggle{
  transform:translateY(-50%) rotate(90deg);
}

/* ===================================================================== */
/* ======= RESTO DO SEU CSS (feeds, home etc.) MANTIDO COMO ESTAVA ======= */
/* ===================================================================== */

.g1-feed-section{padding:40px 0}
.g1-section-title{font-size:22px;margin-bottom:20px}
.g1-feed-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:24px;
}
.g1-feed-card img{width:100%;border-radius:12px}
.g1-feed-card h3{font-size:18px;margin-top:12px}
.g1-feed-card a{text-decoration:none;color:#c4170c;font-weight:700}

/* Feed 2 - Lista vertical estilo portal */
.g1-feed2{padding:28px 0}
.g1-vertical-list{display:flex;flex-direction:column;gap:22px}
.g1-vitem{display:grid;grid-template-columns: 360px 1fr;gap:18px;align-items:center;border-bottom:1px solid var(--border);padding-bottom:22px}
.g1-vitem:last-child{border-bottom:0;padding-bottom:0}
.g1-vthumb img{width:100%;height:auto;border-radius:14px;display:block}
.g1-vkicker{font-size:13px;font-weight:800;color:#333;margin-bottom:6px}
.g1-vtitle{margin:0 0 8px;font-size:26px;line-height:1.15}
.g1-vtitle a{color:#c4170c;text-decoration:none;font-weight:900}
.g1-vtitle a:hover{text-decoration:underline}
.g1-vexcerpt{margin:0 0 10px;color:#444;line-height:1.5}
.g1-vtime{font-size:12px;color:#666}
@media(max-width:980px){
  .g1-vitem{grid-template-columns: 1fr;gap:12px}
  .g1-vtitle{font-size:22px}
}

.g1-vthumb-ph{display:block;width:100%;aspect-ratio:16/9;border-radius:14px;background:#e5e7eb}

/* Remove sidebar layout on homepage */
.home .layout{grid-template-columns:1fr !important;}

.hero-main{display:flex;align-items:center;min-height:318px}
.hero-main .content{padding:26px}
.hero-main h2{font-size:44px;line-height:1.06}
.hero-main p{font-size:15px}
@media(max-width:980px){
  .hero-grid{grid-template-columns:1fr}
  .hero-main{min-height:auto}
  .hero-main h2{font-size:32px}
}

/* Sidebar nas categorias (abaixo da Hero) */
.home-sections .container{padding-top:26px;padding-bottom:26px}
.home-grid{display:grid;grid-template-columns:1fr 340px;gap:28px;align-items:start}
@media(max-width:1020px){.home-grid{grid-template-columns:1fr}}

.latest-more:hover{text-decoration:underline}

/* Sidebar "Viu isso?" (Últimas notícias) */
.latest-box{background:#fff;border:1px solid var(--border);border-radius:16px;padding:18px}
.latest-title{margin:0 0 16px;font-size:22px;line-height:1.1;font-weight:900;color:#222}
.latest-list{display:flex;flex-direction:column}
.latest-item{display:grid;grid-template-columns:1fr 90px;gap:14px;align-items:center;padding:18px 0;text-decoration:none;border-top:1px solid var(--border)}
.latest-item:first-child{border-top:none;padding-top:0}
.latest-item:last-child{padding-bottom:0}
.latest-text{color:#c4170c;font-weight:900;line-height:1.15;font-size:18px}
.latest-thumb{width:90px;height:90px;display:block}
.latest-thumb img{width:90px;height:90px;object-fit:cover;border-radius:16px;display:block}
.latest-thumb--placeholder{background:#f2f2f2;border-radius:16px}
.latest-more{display:inline-flex;margin-top:16px;color:#c4170c;text-decoration:none;font-weight:900}
.latest-more:hover{text-decoration:underline}

/* Home - categorias em lista vertical (1 por linha), estilo G1 */
.home-main .card-grid{display:flex;flex-direction:column;gap:22px}
.home-main .post-card-row{border:none;border-radius:0;background:transparent;overflow:visible}
.home-main .post-card-row a{display:grid;grid-template-columns: 420px 1fr;gap:22px;align-items:center;text-decoration:none}
.home-main .post-card-row .thumb{aspect-ratio:16/9;border-radius:18px;overflow:hidden}
.home-main .post-card-row .thumb img{width:100%;height:100%;object-fit:cover;display:block}
.home-main .post-card-row .meta{padding:0}
.home-main .post-card-row .kicker{font-size:14px;font-weight:800;color:#333;margin-bottom:8px}
.home-main .post-card-row .title{margin:0;color:#c4170c;font-weight:900;font-size:34px;line-height:1.08}
.home-main .post-card-row .time{margin-top:10px;color:#666;font-size:14px}

.home-main .section{border-bottom:1px solid var(--border);padding-bottom:22px;margin-bottom:22px}
.home-main .section:last-child{border-bottom:0}

@media(max-width:980px){
  .home-main .post-card-row a{grid-template-columns:1fr}
  .home-main .post-card-row .title{font-size:26px}
}

/* Ajuste tamanho imagem e título - categorias home */
.home-main .post-card-row a{grid-template-columns: 359.78px 1fr;}
.home-main .post-card-row .thumb{
  width:359.78px;max-width:359.78px;
  height:202.38px;max-height:202.38px;
  aspect-ratio:auto;
}
.home-main .post-card-row .thumb img{
  width:359.78px;height:202.38px;
  object-fit:cover;
}
.home-main .post-card-row .title{font-size:26px;line-height:1.15;}
@media(max-width:980px){
  .home-main .post-card-row a{grid-template-columns:1fr;}
  .home-main .post-card-row .thumb,
  .home-main .post-card-row .thumb img{width:100%;height:auto;}
}

/* Bloco alternado estilo G1 */
.section-title{display:flex;align-items:center;gap:12px;font-size:40px;font-weight:900;margin:0 0 18px}
.section-bar{display:none}
.section-featured{padding-top:8px;padding-bottom:18px}
.feature-grid{display:grid;grid-template-columns: 1.2fr .8fr;gap:22px;align-items:start}
.feature-big{position:relative;display:block;border-radius:22px;overflow:hidden;min-height:320px;text-decoration:none}
.feature-img, .feature-img img{width:100%;height:100%}
.feature-img img{object-fit:cover;display:block;min-height:320px}
.feature-overlay{position:absolute;inset:0;background:linear-gradient(0deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.05) 60%)}
.feature-big-title{position:absolute;left:22px;right:22px;bottom:22px;color:#fff;font-weight:900;font-size:28px;line-height:1.12}
.feature-tag{position:absolute;left:22px;top:18px;color:#fff;font-size:13px;font-weight:800;opacity:.95;background:rgba(0,0,0,.35);padding:6px 10px;border-radius:999px;backdrop-filter:saturate(120%) blur(2px)}

.feature-list{background:#fff;border:1px solid var(--border);border-radius:18px;overflow:hidden}
.feature-item{display:grid;grid-template-columns:72px 1fr;gap:14px;align-items:center;padding:18px;text-decoration:none;border-top:1px solid var(--border)}
.feature-item:first-child{border-top:none}
.feature-thumb{width:72px;height:72px;display:block}
.feature-thumb img{width:72px;height:72px;object-fit:cover;border-radius:16px;display:block}
.feature-thumb--placeholder{background:#f2f2f2;border-radius:16px}
.feature-text{color:#c4170c;font-weight:900;font-size:14px;line-height:1.25}

.feature-more{display:flex;justify-content:center;align-items:center;margin-top:22px;background:#c4170c;color:#fff;text-decoration:none;font-weight:900;border-radius:16px;height:64px;letter-spacing:.4px}
.feature-more:hover{filter:brightness(.95)}

@media(max-width:1020px){
  .section-title{font-size:30px}
  .feature-grid{grid-template-columns:1fr}
  .feature-big{min-height:240px}
  .feature-img img{min-height:240px}
}

/* Single - correções e layout */
.single-article{
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:22px;
}
@media(max-width:980px){.single-article{padding:16px}}
.single .content img,
.single .content figure img{max-width:100%;height:auto;}
.single .content a{color:#c4170c}
.single .content a:hover{text-decoration:underline}
.single .content h2{font-size:22px;margin:26px 0 10px}
.single .content h3{font-size:18px;margin:22px 0 10px}
.single .content ul,.single .content ol{padding-left:20px}

/* Sidebar - aplicar estilo "Viu isso?" nos widgets */
.sidebar .widget{
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:18px;
  margin-bottom:18px;
}
.sidebar .widget-title,
.sidebar .widget h2,
.sidebar .widget h3{
  margin:0 0 16px;
  font-size:22px;
  line-height:1.1;
  font-weight:900;
  color:#222;
}
.sidebar .widget a{color:#c4170c;text-decoration:none;font-weight:800}
.sidebar .widget a:hover{text-decoration:underline}

/* Listas padrão dos widgets */
.sidebar .widget ul{list-style:none;margin:0;padding:0}
.sidebar .widget ul li{
  display:flex;
  align-items:center;
  gap:14px;
  padding:16px 0;
  border-top:1px solid var(--border);
}
.sidebar .widget ul li:first-child{border-top:none;padding-top:0}
.sidebar .widget ul li:last-child{padding-bottom:0}

/* Imagens/avatares dentro de widgets (quando existir) */
.sidebar .widget img{border-radius:16px}

/* ===== SINGLE PAGE ===== */
.single-article{
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:24px;
}
.single h1{
  font-size:34px;
  font-weight:900;
  line-height:1.1;
  margin-bottom:12px;
}
.single .meta{
  font-size:13px;
  color:var(--muted);
  margin-bottom:18px;
}
.single .featured{
  border-radius:16px;
  overflow:hidden;
  margin:20px 0;
}
.single .content{
  font-size:16px;
  line-height:1.8;
}
.single .content img{
  max-width:100%;
  height:auto;
  border-radius:12px;
}
.single .content h2{
  font-size:22px;
  margin:28px 0 12px;
}
.single .content h3{
  font-size:18px;
  margin:22px 0 10px;
}
.single .content a{
  color:#c4170c;
  font-weight:600;
}
.single .content a:hover{text-decoration:underline}

/* ===== SIDEBAR WIDGET STYLE ===== */
.sidebar .widget{
  background:#fff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:20px;
  margin-bottom:22px;
}
.sidebar .widget-title,
.sidebar .widget h2,
.sidebar .widget h3{
  font-size:22px;
  font-weight:900;
  margin-bottom:18px;
}
.sidebar .widget ul{list-style:none;padding:0;margin:0}
.sidebar .widget ul li{
  display:flex;
  gap:14px;
  align-items:center;
  padding:16px 0;
  border-top:1px solid var(--border);
}
.sidebar .widget ul li:first-child{border-top:none;padding-top:0}
.sidebar .widget ul li:last-child{padding-bottom:0}
.sidebar .widget a{
  color:#c4170c;
  font-weight:800;
  text-decoration:none;
  font-size:14px;
}
.sidebar .widget a:hover{text-decoration:underline}
@media(max-width:980px){.single-article{padding:16px}}

/* Share buttons */
.share-buttons{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:14px;
  margin:18px 0 22px;
}
.share-btn{
  height:54px;
  border-radius:14px;
  border:1px solid #e6e6e6;
  background:#f3f3f3;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  color:#2b2b2b;
  cursor:pointer;
}
.share-btn .icon{display:inline-flex}
.share-fb{background:#1877f2;border-color:#1877f2;color:#fff;}
.share-wa{color:#1fa855;}
.share-wa svg{color:#1fa855;}
.share-more{background:#f3f3f3;}
.share-more.copied{outline:2px solid #c4170c;}
.share-buttons button.share-btn{appearance:none;-webkit-appearance:none;}
@media(max-width:980px){
  .share-buttons{gap:10px}
  .share-btn{height:50px;border-radius:12px}
}
.share-btn{
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.share-btn:hover{transform: translateY(-1px);}
.share-fb:hover{background:#0f5fd6;border-color:#0f5fd6;color:#fff;}
.share-wa{background:#f3f3f3;border-color:#e6e6e6;color:#1fa855;}
.share-wa:hover{background:#1fa855;border-color:#1fa855;color:#fff;}
.share-wa:hover svg{color:#fff;}
.share-more{background:#f3f3f3;border-color:#e6e6e6;color:#2b2b2b;}
.share-more:hover{background:#2b2b2b;border-color:#2b2b2b;color:#fff;}
.share-btn svg{display:block}
@media(max-width:980px){
  .g1-btn-login{display:none !important;}
}


/* ===== FIX MOBILE HEADER OVERFLOW (buscar) ===== */
@media(max-width:980px){
  .g1-headerbar .bar{
    grid-template-columns: auto 1fr auto;
    gap:8px;
  }
  .g1-right{gap:6px}
  .g1-btn{padding:9px 10px}
  .g1-btn span{display:none;}
}
@media(max-width:560px){
  .g1-headerbar .bar{grid-template-columns: auto 1fr auto;}
  .g1-logo-text{font-size:28px}
}


/* ================= Footer Social: ícones refinados ================= */
.footer-social{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}
.footer-social-link{
  width:42px;
  height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 42px;
  padding:0 !important;
  gap:0 !important;
  border:0 !important;
  border-radius:999px !important;
  background:rgba(255,255,255,.10) !important;
  color:var(--footer-text,#fff) !important;
  text-decoration:none !important;
  box-shadow:0 7px 20px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.14);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
  transition:transform .22s ease, background-color .22s ease, color .22s ease, box-shadow .22s ease;
}
.footer-social-link:hover{
  transform:translateY(-3px);
  background:#fff !important;
  color:var(--footer-bg,#111) !important;
  box-shadow:0 11px 26px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.5);
  text-decoration:none !important;
}
.footer-social-link:active{
  transform:translateY(-1px);
}
.footer-social-link:focus-visible{
  outline:2px solid rgba(255,255,255,.95);
  outline-offset:4px;
}
.footer-social-link svg{
  width:17px;
  height:17px;
  fill:currentColor;
  display:block;
  transition:transform .22s ease;
}
.footer-social-link:hover svg{
  transform:scale(1.08);
}

/* Cores oficiais/aproximadas das redes sociais no hover */
.footer-social-facebook:hover{background:#1877F2 !important;color:#fff !important;}
.footer-social-instagram:hover{background:linear-gradient(135deg,#833AB4 0%,#E1306C 52%,#F77737 100%) !important;color:#fff !important;}
.footer-social-x:hover{background:#000 !important;color:#fff !important;box-shadow:0 0 0 1px rgba(255,255,255,.32),0 11px 26px rgba(0,0,0,.28) !important;}
.footer-social-youtube:hover{background:#FF0000 !important;color:#fff !important;}
.footer-social-tiktok:hover{background:linear-gradient(135deg,#25F4EE 0%,#111 46%,#FE2C55 100%) !important;color:#fff !important;}
.footer-social-linkedin:hover{background:#0A66C2 !important;color:#fff !important;}
.footer-social-whatsapp:hover{background:#25D366 !important;color:#fff !important;}
.footer-social-telegram:hover{background:#229ED9 !important;color:#fff !important;}

/* ================= Contact Form 7: estilo amigável ================= */
.wpcf7 form.wpcf7-form{
  max-width: 720px;
}
.wpcf7 form.wpcf7-form p{
  margin: 0 0 14px;
}
.wpcf7 form.wpcf7-form label{
  display:block;
  font-weight:800;
  color:#111;
  margin-bottom:6px;
}
.wpcf7 .wpcf7-form-control-wrap{
  display:block;
  margin-top:6px;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 select,
.wpcf7 textarea{
  width:100%;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  font-size:15px;
  color:#111;
  outline:none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.wpcf7 textarea{
  min-height:160px;
  resize:vertical;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 input[type="number"]:focus,
.wpcf7 input[type="date"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus{
  border-color: var(--g1-red);
  box-shadow: 0 0 0 4px rgba(196,23,12,.12);
}

.wpcf7 .wpcf7-submit{
  height:52px;
  padding:0 18px;
  border-radius:14px;
  border:1px solid var(--g1-red);
  background: var(--g1-red);
  color:#fff;
  font-weight:900;
  font-size:15px;
  cursor:pointer;
  transition: filter .15s ease, transform .15s ease;
}
.wpcf7 .wpcf7-submit:hover{
  filter: brightness(.95);
  transform: translateY(-1px);
}
.wpcf7 .wpcf7-submit:active{
  transform: translateY(0);
}

.wpcf7 .wpcf7-spinner{
  margin-left:10px;
}

.wpcf7 .wpcf7-response-output{
  margin:16px 0 0;
  padding:14px 14px;
  border-radius:14px;
  border:1px solid var(--border);
}

.wpcf7-not-valid-tip{
  font-size:13px;
  margin-top:8px;
}


/* ================= WhatsApp flutuante ================= */
.kp-wa-float{
  position:fixed;
  right:20px;
  bottom:24px;
  width:56px;
  height:56px;
  border-radius:18px;
  background:#25d366;
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  box-shadow: 0 12px 26px rgba(0,0,0,.22);
  z-index:9999;
  transition: transform .15s ease, filter .15s ease;
}
.kp-wa-float:hover{
  transform: translateY(-2px);
  filter: brightness(.97);
}
.kp-wa-float svg{width:26px;height:26px;fill:#fff;display:block}


/* ================= Single: meta mobile abaixo da imagem ================= */
.single .meta-mobile{display:none;}
@media(max-width:980px){
  .single .meta-top{display:none;}
  .single .meta-mobile{
    display:block;
    margin-top:10px;
    font-size:13px;
    color:var(--muted);
    font-weight:700;
    text-align: center;
  }
}
@media (max-width: 980px){
  .single-article{
    border: none !important;
    border-radius: 0 !important;
  }
}


/* ================= Single: responsividade mobile ================= */
@media (max-width: 767px){
  body.single-post main.container{
    padding-left:14px;
    padding-right:14px;
  }

  body.single-post .layout{
    display:block;
    margin-top:0;
    min-width:0;
  }

  body.single-post .single,
  body.single-post .single-article,
  body.single-post .single .content{
    width:100%;
    max-width:100%;
    min-width:0;
  }

  body.single-post .single-article{
    padding:0 !important;
  }

  body.single-post .single h1{
    font-size:clamp(27px, 8vw, 34px);
    line-height:1.08;
    margin:0 0 12px;
    overflow-wrap:anywhere;
    word-break:normal;
  }

  body.single-post .single .featured{
    width:100%;
    max-width:100%;
    margin:16px 0 10px;
    border-radius:12px;
  }

  body.single-post .single .featured img{
    width:100%;
    height:auto;
    object-fit:cover;
  }

  body.single-post .single .meta-mobile{
    margin:10px 0 14px;
    line-height:1.45;
    overflow-wrap:anywhere;
  }

  body.single-post .share-buttons{
    width:100%;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:8px;
    margin:14px 0 20px;
  }

  body.single-post .share-btn{
    width:100%;
    min-width:0;
    height:48px;
  }

  body.single-post .single .content{
    font-size:17px;
    line-height:1.7;
    overflow-wrap:anywhere;
  }

  body.single-post .single .content p,
  body.single-post .single .content li,
  body.single-post .single .content a,
  body.single-post .single .content figcaption{
    overflow-wrap:anywhere;
  }

  body.single-post .single .content h2{
    font-size:24px;
    line-height:1.2;
    margin:26px 0 12px;
  }

  body.single-post .single .content h3{
    font-size:20px;
    line-height:1.25;
    margin:22px 0 10px;
  }

  body.single-post .single .content img,
  body.single-post .single .content figure,
  body.single-post .single .content video,
  body.single-post .single .content embed,
  body.single-post .single .content object{
    max-width:100%;
  }

  body.single-post .single .content figure{
    width:100% !important;
    margin-left:0;
    margin-right:0;
  }

  body.single-post .single .content iframe{
    max-width:100%;
  }

  body.single-post .single .content .wp-block-embed__wrapper,
  body.single-post .single .content .wp-video,
  body.single-post .single .content .wp-audio-shortcode{
    max-width:100%;
  }

  body.single-post .single .content .alignwide,
  body.single-post .single .content .alignfull{
    width:100% !important;
    max-width:100% !important;
    margin-left:0 !important;
    margin-right:0 !important;
  }

  body.single-post .single .content table{
    display:block;
    width:100%;
    max-width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }

  body.single-post .single .content pre,
  body.single-post .single .content code{
    max-width:100%;
  }

  body.single-post .single .content pre{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }

  body.single-post .related{
    width:100%;
    max-width:100%;
    margin-top:28px;
  }

  body.single-post .sidebar{
    width:100%;
    max-width:100%;
    margin-top:28px;
  }
}

@media (max-width: 380px){
  body.single-post main.container{
    padding-left:12px;
    padding-right:12px;
  }

  body.single-post .single h1{
    font-size:26px;
  }

  body.single-post .single .content{
    font-size:16px;
  }
}

/* ================= Single: correção de estouro horizontal do texto no mobile ================= */
@media (max-width: 767px){
  body.single-post{
    overflow-x:hidden;
  }

  body.single-post main.container,
  body.single-post .layout,
  body.single-post .single,
  body.single-post .single-article,
  body.single-post .single .content{
    width:100%;
    max-width:100%;
    min-width:0;
    box-sizing:border-box;
  }

  body.single-post .single .content{
    overflow:hidden;
  }

  body.single-post .single .content p,
  body.single-post .single .content div,
  body.single-post .single .content section,
  body.single-post .single .content article,
  body.single-post .single .content header,
  body.single-post .single .content footer,
  body.single-post .single .content aside,
  body.single-post .single .content blockquote,
  body.single-post .single .content ul,
  body.single-post .single .content ol,
  body.single-post .single .content li,
  body.single-post .single .content h1,
  body.single-post .single .content h2,
  body.single-post .single .content h3,
  body.single-post .single .content h4,
  body.single-post .single .content h5,
  body.single-post .single .content h6,
  body.single-post .single .content figure,
  body.single-post .single .content figcaption{
    max-width:100% !important;
    min-width:0 !important;
    box-sizing:border-box;
    overflow-wrap:anywhere;
    word-break:break-word;
  }

  body.single-post .single .content p,
  body.single-post .single .content blockquote,
  body.single-post .single .content ul,
  body.single-post .single .content ol,
  body.single-post .single .content figure,
  body.single-post .single .content .alignwide,
  body.single-post .single .content .alignfull{
    margin-left:0 !important;
    margin-right:0 !important;
  }

  body.single-post .single .content a,
  body.single-post .single .content span,
  body.single-post .single .content strong,
  body.single-post .single .content em{
    overflow-wrap:anywhere;
    word-break:break-word;
  }

  body.single-post .single .content [style*="width"],
  body.single-post .single .content [style*="min-width"]{
    max-width:100% !important;
    min-width:0 !important;
  }
}
/* Single page: sidebar “Viu isso?” somente no desktop */
body.single-post .single-viu-isso-sidebar{display:block;}
@media (max-width:980px){
  body.single-post .single-viu-isso-sidebar{display:none !important;}
}


/* Single page: mesmo aumento de espaçamento aplicado entre header e hero da Home */
body.single-post main.container{
  padding-top:40px;
}

/* Home: hero ainda mais compacta no desktop */
@media (min-width:981px){
  body.home .hero-main{min-height:220px;}
  body.home .hero-main .content{padding:18px 22px;}
  body.home .hero-main h2{font-size:36px;line-height:1.05;}
  body.home .hero-side{gap:14px;}
  body.home .hero-side-card{min-height:103px;}
}

/* Home: redução efetiva da altura da hero no desktop */
@media (min-width:981px){
  body.home .hero-grid{
    height:420px;
    min-height:0;
    align-items:stretch;
  }
  body.home .hero-main{
    height:420px;
    min-height:0;
    max-height:420px;
    overflow:hidden;
  }
  body.home .hero-side{
    height:420px;
    min-height:0;
    grid-template-rows:1fr 1fr;
    gap:10px;
  }
  body.home .hero-side-card{
    min-height:0;
    height:auto;
    max-height:none;
  }
}
