:root{
  --g1-red:#c4170c;
  --headerbar-bg: var(--g1-red);
  --menu-superior-bg:#ffffff;
  --footer-bg:#111111;
  --text:#111;
  --muted:#666;
  --border:#e6e6e6;
  --shadow:0 10px 30px rgba(0,0,0,.08);
}

*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color:var(--text);
  background:#fff;
  line-height:1.35;
}

a{color:inherit;}
.container{
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:0 16px;
}

.site-main{padding-bottom:40px;}

.g1-toplinks{border-bottom:1px solid var(--border);}
.g1-toplinks-list{
  margin:0; padding:8px 0; list-style:none;
  display:flex; gap:14px; align-items:center; flex-wrap:wrap;
}
.g1-toplinks-list a{
  font-size:12px; color:#444; text-decoration:none;
}
.g1-toplinks-list a:hover{text-decoration:underline;}

.g1-headerbar .container{position:relative;}
.g1-headerbar-grid{
  display:grid;
  grid-template-columns: 220px 1fr 260px;
  align-items:center;
  gap:12px;
  padding:12px 0;
}

.g1-menu-btn{
  display:inline-flex; align-items:center; gap:10px;
  background:transparent; border:0; color:#fff;
  font-weight:600; cursor:pointer;
  padding:10px 10px;
  border-radius:6px;
}
.g1-menu-btn:hover{background:rgba(255,255,255,.12);}
.g1-menu-icon{font-size:20px; line-height:1;}
.g1-menu-text{font-size:14px;}

.g1-logo-wrap{display:flex; justify-content:center;}
.g1-logo-wrap a{display:inline-flex; align-items:center; justify-content:center; text-decoration:none;}
.g1-logo-wrap img{height:auto; max-width:240px; display:block;}
.g1-site-title{color:#fff; font-weight:800; font-size:22px; letter-spacing:.2px;}

.g1-header-actions{display:flex; justify-content:flex-end; gap:10px;}
.g1-action-btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.35);
  border-radius:999px;
  text-decoration:none;
  background:transparent;
  color:#fff;
  font-weight:700;
  font-size:13px;
  cursor:pointer;
}
.g1-header-actions.is-white .g1-action-btn{
  border-color:rgba(255,255,255,.9);
}
.g1-action-btn:hover{background:rgba(255,255,255,.14);}
.g1-action-btn i{font-size:14px;}

.g1-search-panel{
  display:none;
  padding:12px 0 14px;
}
.g1-search-panel.is-open{display:block;}
.g1-searchform{display:flex; gap:8px;}
.g1-search-input{
  flex:1;
  padding:12px 12px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.25);
  background:#fff;
  outline:none;
}
.g1-search-submit{
  padding:12px 14px;
  border-radius:8px;
  border:0;
  background:#111;
  color:#fff;
  font-weight:700;
  cursor:pointer;
}

.g1-navrow{border-bottom:1px solid var(--border);}
.g1-navlist{
  margin:0; padding:0; list-style:none;
  display:flex; gap:18px; align-items:center;
  overflow:auto;
}
.g1-navlist > li{position:relative;}
.g1-navlist a{
  display:block;
  padding:12px 0;
  text-decoration:none;
  color:var(--home-links-color);
  font-weight:700;
  font-size:14px;
  white-space:nowrap;
}
.g1-navlist a:hover{color:var(--link-hover-color);}
.submenu-toggle{
  margin-left:8px;
  background:transparent;
  border:0;
  cursor:pointer;
  color:inherit;
  font-size:12px;
  padding:0 6px;
}
.g1-navlist .sub-menu{
  display:none;
  position:absolute;
  top:100%;
  left:0;
  min-width:220px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:10px;
  box-shadow:var(--shadow);
  padding:8px 0;
  z-index:50;
}
.g1-navlist li.is-open > .sub-menu{display:block;}
.g1-navlist .sub-menu a{padding:10px 14px; font-weight:600;}

.g1-drawer-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  opacity:0;
  pointer-events:none;
  transition:.2s ease;
  z-index:1000;
}
.g1-drawer{
  position:fixed;
  top:0; left:0;
  height:100%;
  width:320px;
  max-width:86vw;
  background:#fff;
  transform:translateX(-102%);
  transition:.2s ease;
  z-index:1001;
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
}
body.g1-menu-open .g1-drawer-overlay{opacity:1; pointer-events:auto;}
body.g1-menu-open .g1-drawer{transform:translateX(0);}
.g1-drawer-header{
  padding:12px 14px;
  border-bottom:1px solid var(--border);
  display:flex;
  justify-content:flex-end;
}
.g1-drawer-close{
  width:38px;height:38px;
  border-radius:10px;
  border:1px solid var(--border);
  background:#fff;
  cursor:pointer;
  font-size:24px;
  line-height:1;
}
.g1-drawer-nav{padding:10px 0; overflow:auto;}
.g1-drawer-nav ul{margin:0; padding:0; list-style:none;}
.g1-drawer-nav li{border-bottom:1px solid #f1f1f1;}
.g1-drawer-nav a{
  display:block;
  padding:12px 14px;
  text-decoration:none;
  font-weight:700;
  color:#111;
}
.g1-drawer-nav .sub-menu{display:none; padding-left:10px; background:#fafafa;}
.g1-drawer-nav li.is-open > .sub-menu{display:block;}
.g1-drawer-nav .submenu-toggle{float:right; padding:0 10px; font-size:14px;}

.home-hero{padding:22px 0 10px;}
.hero-grid{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap:18px;
  align-items:stretch;
}
.hero-main{
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:18px 18px;
}
.hero-main a{text-decoration:none;}
.hero-main-kicker{
  color:var(--category-color);
  font-weight:800;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.6px;
}
/* Hero: cores e links */
.hero-main a, .hero-side-card a{ text-decoration:none; color:inherit; }
.hero-main a:hover, .hero-side-card a:hover{ text-decoration:none; }
.hero-main-kicker a{ color:var(--category-color); text-decoration:none; }
.hero-main-kicker a:hover{ color:var(--link-hover-color); text-decoration:none; }
.hero-side-tag a{ color:var(--category-color); text-decoration:none; }
.hero-side-tag a:hover{ color:var(--link-hover-color); text-decoration:none; }
.featured-tag{ color:var(--category-color); }
.hero-main-title{
  margin:8px 0 10px;
  font-size:34px;
  line-height:1.1;
  color:var(--g1-red);
  font-weight:900;
}
.hero-title-link{color:inherit; text-decoration:none;}none;}
.hero-title-link:hover{text-decoration:none;}
.hero-main-excerpt{margin:0; color:#333; font-size:15px;}

.hero-side{display:grid; gap:12px;}
.hero-side-card{border-radius:16px; overflow:hidden; border:1px solid var(--border);}
.hero-side-thumb{position:relative; height:170px; background:#ddd;}
.hero-side-thumb img{width:100%; height:100%; object-fit:cover; display:block;}
.hero-side-thumb-link{display:block; width:100%; height:100%; color:inherit; text-decoration:none;}
.hero-side-thumb-link:hover{text-decoration:none;}
.thumb-placeholder{width:100%; height:100%; background:linear-gradient(135deg,#ddd,#f2f2f2);}
.hero-side-overlay{
  position:absolute; inset:0;
  background:linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0));
}
.hero-side-tag{
  position:absolute; left:12px; top:12px;
  background:rgba(255,255,255,.94);
  padding:6px 9px;
  border-radius:999px;
  font-weight:800;
  font-size:11px;
}
.hero-side-title{
  position:absolute; left:12px; right:12px; bottom:12px;
  margin:0;
  color:#fff;
  font-weight:900;
  font-size:18px;
  line-height:1.15;
}

.home-section{padding:18px 0;}
.section-head{
  display:flex; justify-content:space-between; align-items:flex-end;
  gap:12px;
  margin-bottom:12px;
  border-bottom:2px solid #f2f2f2;
  padding-bottom:8px;
}
.section-title{
  margin:0;
  font-size:22px;
  font-weight:900;
}
.section-title a{color:inherit; text-decoration:none;}
.section-title a:hover{color:var(--link-hover-color);}
.section-title a{text-decoration:none; color:#111;}
.section-title a:hover{color:var(--g1-red);}
.section-more{
  font-size:13px;
  color:var(--g1-red);
  text-decoration:none;
  font-weight:800;
}

.post-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.post-card{
  border:1px solid var(--border);
  border-radius:14px;
  overflow:hidden;
  background:#fff;
  transition:transform .12s ease, box-shadow .12s ease;
}
.post-card:hover{transform:translateY(-1px); box-shadow:var(--shadow);}
.post-card-link{text-decoration:none; display:block;}
.post-card .thumb{height:170px; background:#eee;}
.post-card .thumb img{width:100%; height:100%; object-fit:cover; display:block;}
.post-card .title{
  margin:0;
  padding:12px 12px 14px;
  font-size:18px;
  font-weight:900;
  line-height:1.15;
  color:var(--g1-red);
}
.home-main .post-card-row .title{font-size:26px;}

.featured-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:14px;
}
.featured-big{border-radius:16px; overflow:hidden; border:1px solid var(--border);}
.featured-thumb{position:relative; height:340px; background:#ddd;}
.featured-thumb img{width:100%; height:100%; object-fit:cover; display:block;}
.featured-overlay{position:absolute; inset:0; background:linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0));}
.featured-tag{
  position:absolute; left:12px; top:12px;
  background:rgba(255,255,255,.94);
  padding:6px 9px;
  border-radius:999px;
  font-weight:800;
  font-size:11px;
}
.featured-title{
  position:absolute; left:12px; right:12px; bottom:14px;
  margin:0;
  color:#fff;
  font-weight:900;
  font-size:22px;
  line-height:1.12;
}
.featured-list{
  border:1px solid var(--border);
  border-radius:16px;
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.featured-item a{text-decoration:none;}
.featured-item-title{font-weight:800; color:#111;}
.featured-item-title:hover{color:var(--g1-red);}
.btn-more{
  margin-top:auto;
  display:inline-flex;
  align-self:flex-start;
  padding:10px 12px;
  border-radius:999px;
  background:var(--see-more-btn-bg);
  color:#fff;
  text-decoration:none;
  font-weight:900;
  font-size:12px;
}

.home-layout{
  margin-top:18px;
  display:grid;
  grid-template-columns: 1fr 360px;
  gap:18px;
  align-items:start;
}
.sidebar-box{
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
  background:#fff;
}
.sidebar-latest{display:flex; flex-direction:column; gap:10px; margin-top:8px;}
.sidebar-latest-item a{text-decoration:none;}
.latest-title{margin:0; font-weight:900; font-size:22px; color:var(--home-links-color);}
.latest-text{font-weight:900; color:var(--home-links-color); font-size:18px;}
.latest-text:hover{text-decoration:none; color:var(--link-hover-color);}
.sidebar-more{
  display:inline-flex;
  margin-top:14px;
  font-size:13px;
  color:var(--home-more-contents-text);
  font-weight:900;
  text-decoration:none;
}

.home-feed2{
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
  background:#fff;
}
.home-feed2-head{border-bottom:1px solid #f2f2f2; padding-bottom:10px; margin-bottom:12px;}
.latest-item{border-bottom:1px solid #f2f2f2;}
.latest-item:last-child{border-bottom:0;}
.latest-link{
  display:grid;
  grid-template-columns: 220px 1fr;
  gap:12px;
  padding:12px 0;
  text-decoration:none;
}
.latest-thumb{height:140px; border-radius:12px; overflow:hidden; background:#eee;}
.latest-thumb img{width:100%; height:100%; object-fit:cover; display:block;}
.latest-body{min-width:0;}
.latest-kicker{font-size:11px; font-weight:900; color:#111; opacity:.8; text-transform:uppercase;}
.latest-excerpt{font-size:13px; color:#444; margin-top:6px;}
.latest-time{font-size:12px; color:var(--muted); margin-top:6px;}

.layout{
  display:grid;
  grid-template-columns: 1fr 340px;
  gap:18px;
  align-items:start;
  padding-top:22px;
}
.content{min-width:0;}
.sidebar .widget{
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
  margin-bottom:14px;
  background:#fff;
}
.widget-title{margin:0 0 10px; font-weight:900; font-size:18px;}

.single-article{
  border:1px solid var(--border);
  border-radius:16px;
  padding:18px;
  background:#fff;
}
.single-title{
  margin:0 0 10px;
  font-size:34px;
  line-height:1.1;
  font-weight:950;
  color:#111;
}
.single-meta{
  color:#555;
  font-size:13px;
  font-weight:700;
}
.single-thumb{margin:14px 0 0;}
.single-thumb img{width:100%; height:auto; border-radius:16px; display:block;}
.single-meta-mobile{
  display:none;
  margin:10px 0 0;
  color:#333;
  font-weight:800;
  font-size:13px;
  text-align:center;
}
.share-buttons{
  display:flex;
  gap:10px;
  margin-top:14px;
}
.share-buttons a{
  width:44px; height:44px;
  border-radius:12px;
  border:1px solid var(--border);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  background:#fff;
  color:#111;
  transition:background .12s ease, border-color .12s ease;
}
.share-buttons a i{font-size:18px;}
.single-content{margin-top:14px; font-size:16px; line-height:1.65;}
.single-content img{max-width:100%; height:auto;}

.related-posts{margin-top:22px;}
.related-posts .section-title{margin-bottom:12px; font-size:20px;}

.archive-header{padding-top:22px;}
.archive-title{margin:0; font-size:32px; font-weight:950;}
.archive-desc{margin-top:10px; color:#444;}
.category-first-grid{
  margin-top:14px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.category-latest{margin-top:18px;}
.cat-row{
  border-bottom:1px solid #f2f2f2;
}
.cat-row-link{
  display:grid;
  grid-template-columns:110px 1fr;
  gap:12px;
  padding:12px 0;
  text-decoration:none;
}
.cat-row-thumb{height:78px; border-radius:12px; overflow:hidden; background:#eee;}
.cat-row-thumb img{width:100%; height:100%; object-fit:cover; display:block;}
.cat-row-title{font-weight:950; color:var(--home-links-color);}
.cat-row-date{font-size:12px; color:var(--muted); margin-top:6px;}

.pagination{margin-top:18px;}
.pagination .nav-links{display:flex; gap:10px; flex-wrap:wrap;}
.pagination a, .pagination span{
  padding:8px 12px;
  border:1px solid var(--border);
  border-radius:10px;
  text-decoration:none;
  font-weight:800;
  font-size:13px;
}
.pagination .current{background:#111; color:#fff; border-color:#111;}

.site-footer{padding:28px 0 18px; color:#fff;}
.footer-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
  align-items:start;
}
.footer-logo img{max-width:200px; height:auto;}
.footer-site-name{color:#fff; font-weight:950; text-decoration:none; font-size:20px;}
.footer-desc{margin:10px 0 0; color:rgba(255,255,255,.78); max-width:520px;}
.footer-social-icons{display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap;}
.footer-social-link{
  width:40px; height:40px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.18);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  text-decoration:none;
}
.footer-social-link svg{width:18px; height:18px; fill:#fff;}
.footer-social-link:hover{border-color:rgba(255,255,255,.42);}

.footer-bottom{
  margin-top:18px;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.14);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.footer-copy{font-size:13px; color:rgba(255,255,255,.78);}

.kp-wa-float{
  position:fixed;
  z-index:1200;
  width:56px; height:56px;
  border-radius:999px;
  background:#25d366;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow:var(--shadow);
  text-decoration:none;
}
.kp-wa-float svg{width:26px; height:26px; fill:#fff;}

@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr; }
  .g1-headerbar-grid{grid-template-columns: 160px 1fr 180px;}
  .post-grid{grid-template-columns:repeat(2,1fr);}
  .category-first-grid{grid-template-columns:repeat(2,1fr);}
  .home-layout{grid-template-columns:1fr;}
  .layout{grid-template-columns:1fr;}
}

@media (max-width: 640px){
  .g1-headerbar-grid{grid-template-columns: 120px 1fr 140px;}
  .g1-action-btn span{display:none;}
  .hero-main-title{font-size:28px;}
  .post-grid{grid-template-columns:1fr;}
  .category-first-grid{grid-template-columns:1fr;}
  .featured-grid{grid-template-columns:1fr;}
  .featured-thumb{height:240px;}
  .hero-side-thumb{height:160px;}
  .single-title{font-size:28px;}
  .single-meta{display:none;}
  .single-meta-mobile{display:block;}
  .single-article{border:0; padding:0; background:transparent;}
  .single-thumb img{border-radius:16px;}
  .share-buttons{justify-content:center;}
  .footer-grid{grid-template-columns:1fr;}
  .footer-social-icons{justify-content:flex-start;}
}

/* Sidebar "Viu isso?" - miniatura ao lado do título */
.home-sidebar .sidebar-latest-item .sidebar-latest-link{
  display:flex;
  gap:12px;
  align-items:flex-start;
  text-decoration:none;
}
.home-sidebar .latest-post-thumb{
  width:90px;
  min-width:90px;
  height:70px;
  border-radius:8px;
  overflow:hidden;
  background:#eee;
  display:block;
}
.home-sidebar .latest-post-thumb img,
.home-sidebar .latest-post-thumb .thumb-placeholder{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}


/* ======================================================
   CORREÇÃO DEFINITIVA - ÚLTIMAS
====================================================== */

.home-feed2 .latest-link{
  display:flex !important;
  align-items:flex-start !important;
  gap:18px !important;
}

.home-feed2 .latest-link.has-thumb{
  flex-direction:row !important;
}

.home-feed2 .latest-link.no-thumb{
  display:block !important;
}

.home-feed2 .latest-thumb{
  flex:0 0 240px !important;
  height:150px !important;
  border-radius:12px !important;
  overflow:hidden !important;
}

.home-feed2 .latest-thumb img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block !important;
}

.home-feed2 .latest-body{
  flex:1 !important;
  min-width:0 !important;
}

/* Mobile */
@media(max-width:768px){
  .home-feed2 .latest-link{
    flex-direction:column !important;
  }

  .home-feed2 .latest-thumb{
    width:100% !important;
    height:200px !important;
  }
}

.hero-side-title a{color:var(--hero-small-link-color) !important; text-decoration:none;}
.hero-side-title a:hover{color:var(--hero-small-hover-color) !important; text-decoration:none;}


/* FIX: Hero menores - força cor do link/hover do Personalizar */
.hero-side-card .hero-side-title,
.hero-side-card .hero-side-title a.hero-title-link{
  color: var(--hero-small-link-color) !important;
  text-decoration: none !important;
}
.hero-side-card .hero-side-title a.hero-title-link:hover{
  color: var(--hero-small-hover-color) !important;
  text-decoration: none !important;
}

.btn-more:hover{background:var(--see-more-btn-hover-bg);}

.sidebar-more:hover{color:var(--link-hover-color); text-decoration:none;}

.btn-more{color:var(--see-more-btn-text);} .btn-more:hover{color:var(--see-more-btn-text);}

.sidebar-latest-link:hover .latest-title, .sidebar-latest-link:hover .latest-text{color:var(--link-hover-color);}
