/*
Theme Name: Grupopantanalms
Theme URI: https://grupopantanalms.com.br/
Author: Cleber de Miranda
Description: Tema WordPress personalizado revisado e reorganizado para o portal Grupopantanalms.
Version: 1.2.1
Text Domain: grupopantanalms
*/

/* ===============================
   RESET BÁSICO
=============================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  line-height: 1.6;
}

/* ===============================
   HEADER E FOOTER
=============================== */
header,
footer {
  background: #e74c3c; /* fundo em 100% */
  color: #fff;
}

.header-container{
  max-width: 1360px;
  margin: 0 auto;
  padding: 1px 20px 1px 20px;
}
.banner-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1px 20px 1px 20px;
  text-align: center;
}

/* Header interno */
.site-header {
  background: #fff;
  padding: 1px 20px 1px 20px;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  max-width: 1360px;
  margin: 0 auto;
}

/* ===============================
   BANNERS
=============================== */
.banner-top,
.banner-bottom {
  width: 100%;
  text-align: center;
  margin: 10px 0;
}

.banner-top img,
.banner-bottom img {
  max-width: 100%;
  height: auto;
}

.banner-ads {
  margin: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.banner-ads .banner-widget {
  max-width: 100%;
  text-align: center;
}

.banner-ads .banner-widget img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}

.banner-below-header {
	padding-top: 20px;
	
}
/* ===============================
   LAYOUT PRINCIPAL
=============================== */
.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px; /* conteúdo + sidebar */
  grid-gap: 20px;
  padding: 20px;
  align-items: start;
}

.layout {
  display: grid;
  grid-template-columns: 61% 39%; /* soma 100% */
  grid-gap: 20px;
  grid-column: 1;
}

.layout.layout-single {
  grid-template-columns: 1fr;
}

.layout.layout-single .content-left,
.layout.layout-single .content-right {
  width: 100%;
}

/* Colunas */
.content-left,
.content-right,
.sidebar {
  padding: 10px;
  box-sizing: border-box;
  background: #fff;
}

/* ===============================
   RESPONSIVIDADE
=============================== */
@media (min-width: 768px) and (max-width: 991px) {
  .container { grid-template-columns: 1fr; }
  .layout { grid-template-columns: 1fr 1fr; }
  .banner-ads { grid-column: 1; }
}

@media (max-width: 767px) {
  .container { grid-template-columns: 1fr; }
  .layout { grid-template-columns: 1fr; }
}

/* ===============================
   WIDGETS GERAIS
=============================== */
.widget { margin-bottom: 20px; }

.widget h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #e74c3c;
}

/* ===============================
   LATEST NEWS
=============================== */
.latest-news-widget { list-style: none; margin: 0; padding: 0; }

.latest-news-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
}

.latest-news-item:last-child { border-bottom: none; }

.latest-news-thumb img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.latest-news-thumb img:hover { transform: scale(1.05); }

.latest-news-content { flex: 1; }

.latest-news-title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
  color: #03A250; /* cor predominante */
}

.latest-news-link:hover .latest-news-title { color: #03A250; }

/* Latest News Custom Image Widget */
.latest-news-custom-image-widget .latest-news-item {
  position: relative;
  margin-bottom: 20px;
}

.latest-news-custom-image-widget .latest-news-thumb {
  width: 100%;
  height: 220px; /* altura fixa */
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.latest-news-custom-image-widget .latest-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.latest-news-custom-image-widget .latest-news-thumb .latest-news-title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px 15px;
  background: rgba(3,162,80,0.8);
  color: #fff;
  font-size: 18px;
  font-weight: bold;
}

.latest-news-custom-image-widget .latest-news-thumb .latest-news-excerpt {
  display: none;
}

@media (max-width: 768px) {
  .latest-news-custom-image-widget .latest-news-thumb { height: 160px; }
  .latest-news-custom-image-widget .latest-news-thumb .latest-news-title {
    font-size: 16px;
    padding: 8px 10px;
  }
}

/* ===============================
   SLIDER BANNER
=============================== */
.slider-banner {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 350px;
}

.slider-banner .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  text-align: center;
  background: #000;
  color: #fff;
}

.slider-banner .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-banner .slide.active { opacity: 1; }

.slide-title {
  position: absolute;
  bottom: 15px;
  left: 20px;
  font-size: 20px;
  background: #f0f0f0e6;
  padding: 8px 12px;
  border-radius: 4px;
}

/* =========================================
   HEADER BRANDING + HEADER INLINE
========================================= */

.branding-widget-container {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}

/* LOGO */
.branding {
  display: flex;
  align-items: center;
  flex: 0 0 28%;
  max-width: 320px;
  min-width: 180px;
}

/* LOGO IMG */
.site-logo img,
.custom-logo {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.site-logo img:hover,
.custom-logo:hover {
  transform: scale(1.03);
}

/* HEADER INLINE */
.header-inline-widget-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  width: 100%;
  min-width: 0;
  gap: 15px;
}

/* GARANTE QUE O CONTEÚDO OCUPE ESPAÇO */
.header-inline-widget-container .widget,
.header-inline-widget-container img,
.header-inline-widget-container iframe,
.header-inline-widget-container video,
.header-inline-widget-container ins {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

/* RESPONSIVO */
@media (max-width: 768px) {

  .branding-widget-container {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .branding {
    flex: 0 0 auto;
    max-width: 240px;
    width: 100%;
    justify-content: center;
  }

  .header-inline-widget-container {
    width: 100%;
    justify-content: center;
  }
}

/* Menu + data/hora */
.menu-widget-container {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.menu-widget-container.align-left { justify-content: flex-start; }
.menu-widget-container.align-center { justify-content: center; }
.menu-widget-container.align-right { justify-content: flex-end; }

/* Menu principal ocupa 68% */
.main-navigation {
  flex: 0 0 68%;
  display: flex;
  justify-content: flex-start;
}
.main-navigation .menu {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
}
.main-navigation .menu li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s, transform 0.3s;
}
.main-navigation .menu li a:hover { color: #007b5e; transform: scale(1.05); }

/* Widget ocupa 30% */
.header-widget {
  flex: 0 0 30%;
  display: flex;
  justify-content: flex-end; /* alinhado à direita por padrão */
  color: #007b5e;
  font-weight: bold;
  font-size: 0.9em;
  white-space: nowrap;
}
.header-widget.align-left { justify-content: flex-start; }
.header-widget.align-center { justify-content: center; }

/* Botão hambúrguer animado */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}
.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: #333;
  border-radius: 2px;
  transition: all 0.4s ease;
}
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ===== Mobile ===== */
@media (max-width: 768px) {
  /* Container logo + widget empilha no mobile */
  .branding-widget-container {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  /* Menu lateral fixo */
  .main-navigation {
    position: fixed;
    top: 0;
    right: -260px;
    height: 100%;
    width: 260px;
    background: #ffffff;
    flex-direction: column;
    gap: 25px;
    padding: 70px 20px;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -4px 0 15px rgba(0,0,0,0.2);
    z-index: 999;
  }

  /* Menu aberto */
  .main-navigation.menu-open { right: 0; }

  /* Toggle hambúrguer visível */
  .menu-toggle { display: flex; }

  /* Container menu + data/hora no mobile */
  .menu-widget-container { 
    flex-direction: column; 
    align-items: flex-start; 
    gap: 10px; 
  }

  /* Links do menu em coluna */
  .main-navigation .menu { 
    flex-direction: column !important; 
    display: flex !important;
    gap: 15px;
  }

  .main-navigation .menu li a {
    font-size: 1.1em;
  }

  /* Widget ocupa 100% no mobile */
  .header-widget {
    flex: 0 0 100%;
    justify-content: center;
  }
}

/* ===============================
   WIDGET MAIS LIDOS
=============================== */
.banner-grid-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.post-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.post-item:hover { transform: translateY(-2px); }

.post-thumbnail {
  position: relative;
  flex: 0 0 120px;
  height: 80px;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  overflow: hidden;
}

.post-number {
  position: absolute;
  top: 5px;
  left: 5px;
  background: #03A250;
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1;
  opacity: 0.9;
}

.post-item-content { flex: 1; }

.entry-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 5px;
  line-height: 1.3;
}

.entry-title a {
  color: #03A250;
  text-decoration: none;
}

.entry-title a:hover { color: #03A250; }

@media (max-width: 600px) {
  .post-item { flex-direction: column; align-items: flex-start; }
  .post-thumbnail { width: 100%; height: 150px; }
  .post-item-content { width: 100%; }
}

/* ===============================
   WIDGET RIO PARAGUAI
=============================== */
.rio-paraguai-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin: 15px 0;
}

.rio-paraguai-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 15px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.rio-paraguai-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.rio-paraguai-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: #03A250;
  font-weight: 600;
}

.rio-paraguai-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.rio-paraguai-bar-container {
  width: 30px;
  height: 100px;
  background: #fdecea;
  border-radius: 6px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.rio-paraguai-bar {
  width: 100%;
  background: #03A250;
  border-radius: 6px 6px 0 0;
  transition: height 0.5s ease;
}

.rio-paraguai-altura {
  font-weight: bold;
  color: #03A250;
  font-size: 0.9rem;
}

.rio-paraguai-observacao {
  font-style: italic;
  color: #777;
  font-size: 0.85rem;
}

.rio-paraguai-data-unique {
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: #03A250;
}

/* ===============================
   LINKS GERAIS
=============================== */
a {
  text-decoration: none;
  color: #03A250;
  transition: color 0.3s, transform 0.3s;
}

a:hover {
  color: #03A250;
  transform: none;
}

/* ================================
   Cabeçalhos de Widgets
   (apenas o título principal gerado pelo before_title/after_title)
================================ */

/* Colunas dos layouts */
.coluna-esquerda > h3,
.coluna-direita > h3,
.coluna-esquerda-2 > h3,
.coluna-direita-2 > h3,
.coluna-esquerda-3 > h3,
.coluna-direita-3 > h3,
.coluna-esquerda-4 > h3,
.coluna-direita-4 > h3,

/* Sidebar principal */
.sidebar > h3,

/* Áreas de banners */
.banner-widget > h3 {
  position: relative;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  padding-bottom: 8px;
  color: #03A250; /* cor principal */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #03A250;
}

/* Linha decorativa abaixo dos títulos */
.coluna-esquerda > h3::after,
.coluna-direita > h3::after,
.coluna-esquerda-2 > h3::after,
.coluna-direita-2 > h3::after,
.coluna-esquerda-3 > h3::after,
.coluna-direita-3 > h3::after,
.coluna-esquerda-4 > h3::after,
.coluna-direita-4 > h3::after,
.sidebar > h3::after,
.banner-widget > h3::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: #03A250;
}

.latest-news-grid-widget {
    display: grid;
    gap: 20px;
}

.latest-news-grid-widget .latest-news-grid-item {
    display: block;
}

.latest-news-grid-widget .latest-news-grid-thumb {
    display: block;
    overflow: hidden;
    border-radius: 6px;
}

.latest-news-grid-widget .latest-news-grid-thumb img {
    display: block;
    width: 100%;
    height: auto;
}

.latest-news-grid-widget .latest-news-grid-title {
    margin: 10px 0 0;
    font-size: 16px;
    line-height: 1.4;
}

.latest-news-grid-widget .latest-news-grid-title a {
    text-decoration: none;
}

.latest-news-grid-widget.columns-1 {
    grid-template-columns: repeat(1, 1fr);
}

.latest-news-grid-widget.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.latest-news-grid-widget.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.latest-news-grid-widget.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.latest-news-grid-widget.columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

.latest-news-grid-widget.columns-6 {
    grid-template-columns: repeat(6, 1fr);
}

@media (max-width: 1024px) {
    .latest-news-grid-widget {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .latest-news-grid-widget {
        grid-template-columns: repeat(1, 1fr) !important;
    }
}



/* ===============================
   FOOTER
=============================== */
.site-footer {
  background: #e74c3c;
  color: #fff;
  margin-top: 30px;
}

.footer-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 16px 20px;
  text-align: center;
}

/* ===============================
   GRID WIDGET
=============================== */
.latest-news-grid-widget {
  display: grid;
  gap: 20px;
}

.latest-news-grid-widget .latest-news-grid-item {
  display: block;
}

.latest-news-grid-widget .latest-news-grid-thumb {
  display: block;
  overflow: hidden;
  border-radius: 6px;
}

.latest-news-grid-widget .latest-news-grid-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.latest-news-grid-widget .latest-news-grid-no-thumb {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eee;
}

.latest-news-grid-widget .latest-news-grid-title {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.4;
}

.latest-news-grid-widget .latest-news-grid-title a {
  text-decoration: none;
}

.latest-news-grid-widget.columns-1 { grid-template-columns: repeat(1, 1fr); }
.latest-news-grid-widget.columns-2 { grid-template-columns: repeat(2, 1fr); }
.latest-news-grid-widget.columns-3 { grid-template-columns: repeat(3, 1fr); }
.latest-news-grid-widget.columns-4 { grid-template-columns: repeat(4, 1fr); }
.latest-news-grid-widget.columns-5 { grid-template-columns: repeat(5, 1fr); }
.latest-news-grid-widget.columns-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 1024px) {
  .latest-news-grid-widget {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .latest-news-grid-widget {
    grid-template-columns: repeat(1, 1fr) !important;
  }
}


/* =========================================
   Latest News Grid - Versão Destaque
========================================= */
.latest-news-grid-featured {
    display: grid;
    gap: 20px;
}

.latest-news-grid-featured.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.latest-news-grid-featured.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.latest-news-grid-featured.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.latest-news-grid-featured.columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

.latest-news-grid-featured.columns-6 {
    grid-template-columns: repeat(6, 1fr);
}

.latest-news-grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #111;
    min-width: 0;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.latest-news-grid-item.featured-main {
    grid-column: span 2;
    grid-row: span 2;
}

.latest-news-grid-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    background: #222;
}

.latest-news-grid-item.featured-main .latest-news-grid-thumb {
    aspect-ratio: 16 / 10;
}

.latest-news-grid-thumb img,
.latest-news-grid-no-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.latest-news-grid-no-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d9d9d9;
    color: #444;
    font-weight: 600;
}

.latest-news-grid-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.22) 50%, rgba(0,0,0,0.08) 100%);
    z-index: 1;
}

.latest-news-grid-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px;
    z-index: 2;
}

.latest-news-grid-title {
    margin: 0;
    line-height: 1.3;
}

.latest-news-grid-title span {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    display: block;
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.latest-news-grid-item.featured-main .latest-news-grid-title span {
    font-size: 28px;
    line-height: 1.2;
}

.latest-news-grid-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(190, 0, 0, 0.92);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.latest-news-grid-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.22);
}

.latest-news-grid-item img {
    transition: transform 0.45s ease;
}

.latest-news-grid-item:hover img {
    transform: scale(1.06);
}

@media (max-width: 1024px) {
    .latest-news-grid-featured.columns-3,
    .latest-news-grid-featured.columns-4,
    .latest-news-grid-featured.columns-5,
    .latest-news-grid-featured.columns-6 {
        grid-template-columns: repeat(2, 1fr);
    }

    .latest-news-grid-item.featured-main {
        grid-column: span 2;
        grid-row: span 1;
    }

    .latest-news-grid-item.featured-main .latest-news-grid-title span {
        font-size: 22px;
    }
}

@media (max-width: 640px) {
    .latest-news-grid-featured.columns-2,
    .latest-news-grid-featured.columns-3,
    .latest-news-grid-featured.columns-4,
    .latest-news-grid-featured.columns-5,
    .latest-news-grid-featured.columns-6 {
        grid-template-columns: 1fr;
    }

    .latest-news-grid-item.featured-main {
        grid-column: span 1;
        grid-row: span 1;
    }

    .latest-news-grid-item.featured-main .latest-news-grid-title span {
        font-size: 20px;
    }

    .latest-news-grid-title span {
        font-size: 15px;
    }
}

/* =========================================
   Latest News Grid Personalizado
========================================= */

.latest-news-custom-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(
            min(var(--lncg-min, 220px), 100%),
            1fr
        )
    );
    gap: 20px;
}

/* Limita visualmente a quantidade máxima de colunas */
.latest-news-custom-grid {
    max-width: 100%;
}

/* Card */
.latest-news-custom-grid-item {
    min-width: 0;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.latest-news-custom-grid-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.16);
}

/* Imagem */
.latest-news-custom-grid-thumb {
    display: block;
    width: 100%;
    height: var(--lncg-img-h, 180px);
    overflow: hidden;
    background: #eee;
}

.latest-news-custom-grid-thumb img,
.latest-news-custom-grid-no-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Sem imagem */
.latest-news-custom-grid-no-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    background: #ddd;
    font-weight: 600;
}

/* Título */
.latest-news-custom-grid-title {
    margin: 0;
    padding: 12px 14px 15px;
    font-size: 16px;
    line-height: 1.35;
}

.latest-news-custom-grid-title a {
    color: #111;
    text-decoration: none;
    font-weight: 700;
}

.latest-news-custom-grid-title a:hover {
    color: #b40000;
}

/* Mobile */
@media (max-width: 640px) {
    .latest-news-custom-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .latest-news-custom-grid-thumb {
        height: 190px;
    }
}

/* =========================================
   Latest News Grid Horizontal - Responsivo
========================================= */

.latest-news-grid-horizontal {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(min(var(--lngh-min, 320px), 100%), 1fr)
    );
    gap: 16px;
    width: 100%;
    max-width: 100%;
}

.latest-news-grid-horizontal-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    padding: 8px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.latest-news-grid-horizontal-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.15);
}

/* FOTO */
.latest-news-grid-horizontal-thumb {
    flex: 0 0 var(--lngh-img-w, 120px);
    width: var(--lngh-img-w, 120px);
    height: var(--lngh-img-h, 90px);
    overflow: hidden;
    border-radius: 8px;
    background: #eee;
}

.latest-news-grid-horizontal-thumb img,
.latest-news-grid-horizontal-no-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ÁREA DO TEXTO */
.latest-news-grid-horizontal-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

/* TÍTULO */
.latest-news-grid-horizontal-title {
    margin: 0;
    font-size: 13px;
    line-height: 1.3;
    max-height: calc(13px * 1.3 * 4);
    overflow: hidden;
}
.latest-news-grid-horizontal-title a {
    color: #111;
    text-decoration: none;
    font-weight: 700;

    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.latest-news-grid-horizontal-title a:hover {
    color: #b40000;
}

/* SEM IMAGEM */
.latest-news-grid-horizontal-no-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ddd;
    color: #555;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

/* TABLET */
@media (max-width: 900px) {
    .latest-news-grid-horizontal {
        grid-template-columns: repeat(2, 1fr);
    }

    .latest-news-grid-horizontal-thumb {
        flex-basis: 110px;
        width: 110px;
        height: 82px;
    }

    .latest-news-grid-horizontal-title {
        font-size: 14px;
    }

    .latest-news-grid-horizontal-title a {
        -webkit-line-clamp: 3;
    }
}

/* CELULAR */
@media (max-width: 600px) {
    .latest-news-grid-horizontal {
        grid-template-columns: 1fr;
    }

    .latest-news-grid-horizontal-item {
        gap: 10px;
        padding: 7px;
    }

    .latest-news-grid-horizontal-thumb {
        flex-basis: 100px;
        width: 100px;
        height: 75px;
    }

    .latest-news-grid-horizontal-title {
		font-size: 12px;
		line-height: 1.25;
	}

    .latest-news-grid-horizontal-title a {
        -webkit-line-clamp: 3;
    }
}

/* CELULAR PEQUENO */
@media (max-width: 420px) {
    .latest-news-grid-horizontal-thumb {
        flex-basis: 90px;
        width: 90px;
        height: 68px;
    }

    .latest-news-grid-horizontal-title {
		font-size: 13px;
	}

    .latest-news-grid-horizontal-title a {
        -webkit-line-clamp: 3;
    }
}


/* === Sistema Global de Cores === */
:root{
 --gp-primary:#b40000;
 --gp-secondary:#111111;
 --gp-accent:#f5c400;
 --gp-text:#222222;
 --gp-bg:#ffffff;
 --gp-border:#e5e5e5;
}

body{
 background:var(--gp-bg);
 color:var(--gp-text);
}

a{color:var(--gp-primary);}
a:hover{color:var(--gp-secondary);}

button,
input[type="submit"],
.btn{
 background:var(--gp-primary);
 color:#fff;
 border:none;
}

/* Widgets horizontal responsiva */
.latest-news-grid-horizontal {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(min(var(--lngh-min,320px),100%),1fr));
    gap:16px;
}
.latest-news-grid-horizontal-item{
 display:flex;
 align-items:center;
 gap:12px;
 min-width:0;
 background:#fff;
 border-radius:10px;
 overflow:hidden;
 padding:8px;
 box-shadow:0 3px 12px rgba(0,0,0,.08);
}
.latest-news-grid-horizontal-thumb{
 flex:0 0 var(--lngh-img-w,120px);
 width:var(--lngh-img-w,120px);
 height:var(--lngh-img-h,90px);
 overflow:hidden;
 border-radius:8px;
}
.latest-news-grid-horizontal-thumb img{
 width:100%;
 height:100%;
 object-fit:cover;
 display:block;
}
.latest-news-grid-horizontal-content{
 flex:1;
 min-width:0;
 overflow:hidden;
}
.latest-news-grid-horizontal-title{
 margin:0;
 font-size:13px;
 line-height:1.3;
 max-height:calc(13px * 1.3 * 4);
 overflow:hidden;
}
.latest-news-grid-horizontal-title a{
 text-decoration:none;
 font-weight:700;
 color:#111;
 display:-webkit-box;
 -webkit-line-clamp:4;
 -webkit-box-orient:vertical;
 overflow:hidden;
}
@media(max-width:600px){
 .latest-news-grid-horizontal{grid-template-columns:1fr;}
 .latest-news-grid-horizontal-thumb{
   flex-basis:100px;
   width:100px;
   height:75px;
 }
 .latest-news-grid-horizontal-title{
   font-size:12px;
 }
}

/* =========================================
   HEADER INLINE LINKS
========================================= */

.header-inline-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: nowrap;
    width: 100%;
}

.header-inline-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.header-inline-item img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: transform 0.25s ease;
}

.header-inline-item img:hover {
    transform: scale(1.05);
}

/* BAND FM */
.bandfm-img {
    transform: rotate(15deg);
}

/* RESPONSIVO */
@media (max-width: 768px) {

    .header-inline-links {
        justify-content: center;
        gap: 8px;
    }

    .header-inline-item {
        flex: 1 1 30%;
    }
}

/* =========================================
   Custom Banner Widget
========================================= */

.custom-banner-widget {
    width: 100%;
    text-align: center;
    overflow: hidden;
}

.custom-banner-widget img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    transition: transform 0.25s ease;
}

.custom-banner-widget img:hover {
    transform: scale(1.01);
}

/* RESPONSIVO */
@media (max-width: 768px) {

    .custom-banner-widget img {
        border-radius: 6px;
    }
}

/* =========================================
   MENU PRINCIPAL - ÁREA DESTACADA
========================================= */

.menu-widget-container {
    background: linear-gradient(135deg, #03A250 0%, #027a3d 100%);
    padding: 10px 18px;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-bottom: 2px solid rgba(255,255,255,0.12);
}

/* Menu */
.menu-widget-container .main-navigation .menu {
    align-items: center;
}

.menu-widget-container .main-navigation .menu li a {
    color: #fff;
    font-weight: 700;
    padding: 8px 10px;
    display: block;
    transition: all 0.25s ease;
}

.menu-widget-container .main-navigation .menu li a:hover {
    background: rgba(255,255,255,0.16);
    color: #fff;
    transform: translateY(-2px);
}

/* Data/hora ou widget ao lado do menu */
.menu-widget-container .header-widget {
    color: #fff;
}

/* Botão hambúrguer */
.menu-widget-container .menu-toggle span {
    background: #fff;
}

/* Mobile */
@media (max-width: 768px) {
    .menu-widget-container {
        border-radius: 8px;
        padding: 10px 14px;
    }

    .main-navigation {
        background: #027a3d;
    }

    .main-navigation .menu li a {
        color: #fff;
    }
}


/* =========================================
   Sistema de Cores - Base estática
   As variáveis abaixo são sobrescritas pelo Customizer.
========================================= */
:root {
  --gp-primary: #03A250;
  --gp-secondary: #027a3d;
  --gp-accent: #f5c400;
  --gp-text: #222222;
  --gp-bg: #f4f4f4;
  --gp-surface: #ffffff;
  --gp-border: #e5e5e5;
  --gp-menu-text: #ffffff;
}

body {
  background: var(--gp-bg);
  color: var(--gp-text);
}

.site-header,
.content-left,
.content-right,
.sidebar,
.rio-paraguai-card,
.latest-news-custom-grid-item,
.latest-news-grid-horizontal-item,
.post-item {
  background: var(--gp-surface);
  border-color: var(--gp-border);
}

a,
.latest-news-title,
.entry-title a,
.rio-paraguai-card-header,
.rio-paraguai-altura,
.rio-paraguai-data-unique,
.widget h3,
.coluna-esquerda > h3,
.coluna-direita > h3,
.coluna-esquerda-2 > h3,
.coluna-direita-2 > h3,
.coluna-esquerda-3 > h3,
.coluna-direita-3 > h3,
.coluna-esquerda-4 > h3,
.coluna-direita-4 > h3,
.sidebar > h3,
.banner-widget > h3 {
  color: var(--gp-primary);
}

a:hover,
.latest-news-custom-grid-title a:hover,
.latest-news-grid-horizontal-title a:hover {
  color: var(--gp-secondary);
}

button,
input[type="submit"],
.btn,
.post-number,
.latest-news-grid-badge {
  background: var(--gp-primary);
  color: #fff;
}

header,
footer,
.site-footer {
  background: var(--gp-secondary);
  color: #fff;
}

.menu-widget-container {
  background: linear-gradient(135deg, var(--gp-primary) 0%, var(--gp-secondary) 100%);
}

.menu-widget-container .main-navigation .menu li a,
.menu-widget-container .header-widget {
  color: var(--gp-menu-text);
}

.menu-widget-container .main-navigation .menu li a:hover {
  color: var(--gp-menu-text);
}

.menu-widget-container .menu-toggle span,
.rio-paraguai-bar,
.coluna-esquerda > h3::after,
.coluna-direita > h3::after,
.coluna-esquerda-2 > h3::after,
.coluna-direita-2 > h3::after,
.coluna-esquerda-3 > h3::after,
.coluna-direita-3 > h3::after,
.coluna-esquerda-4 > h3::after,
.coluna-direita-4 > h3::after,
.sidebar > h3::after,
.banner-widget > h3::after {
  background: var(--gp-primary);
}

.coluna-esquerda > h3,
.coluna-direita > h3,
.coluna-esquerda-2 > h3,
.coluna-direita-2 > h3,
.coluna-esquerda-3 > h3,
.coluna-direita-3 > h3,
.coluna-esquerda-4 > h3,
.coluna-direita-4 > h3,
.sidebar > h3,
.banner-widget > h3 {
  border-bottom-color: var(--gp-primary);
}

/* =========================================
   STICKY HEADER
========================================= */

.gp-sticky-header {
    position: fixed;
    top: -140px;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: var(--gp-sticky-bg, #ffffff);
    box-shadow: 0 4px 18px rgba(0,0,0,0.18);
    transition: all 0.35s ease;
    opacity: 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.gp-sticky-header.is-visible {
    top: 0;
    opacity: 1;
}

.gp-sticky-header-inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 6px 20px;
    display: flex;
    align-items: center;
    gap: 25px;
}

/* LOGO */
.gp-sticky-logo {
    flex: 0 0 auto;
    max-width: 220px;
}

.gp-sticky-logo img,
.gp-sticky-logo .custom-logo {
    max-height: var(--gp-sticky-logo-height, 65px);
    width: auto;
    display: block;
}

/* MENU */
.gp-sticky-menu {
    flex: 1;
    min-width: 0;
}

.gp-sticky-menu .sticky-navigation {
    width: 100%;
}

.gp-sticky-menu .sticky-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.gp-sticky-menu .sticky-menu li {
    margin: 0;
}

.gp-sticky-menu .sticky-menu li a {
    color: var(--gp-primary, #03A250);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.25s ease;
}

.gp-sticky-menu .sticky-menu li a:hover {
    opacity: 0.8;
}

/* HEADER INLINE */
.gp-sticky-inline-widget {
    flex: 0 0 auto;
    max-width: 320px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.gp-sticky-inline-widget img,
.gp-sticky-inline-widget iframe,
.gp-sticky-inline-widget video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* DATE TIME */
.gp-sticky-datetime {
    flex: 0 0 auto;
    color: var(--gp-primary, #03A250);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.gp-sticky-datetime .widget {
    margin: 0;
}

/* RESPONSIVO */
@media (max-width: 1100px) {

    .gp-sticky-header-inner {
        gap: 15px;
    }

    .gp-sticky-menu .sticky-menu {
        gap: 12px;
    }

    .gp-sticky-menu .sticky-menu li a {
        font-size: 13px;
    }
}

@media (max-width: 768px) {

    .gp-sticky-header.hide-mobile {
        display: none;
    }

    .gp-sticky-header-inner {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 10px 15px;
    }

    .gp-sticky-logo {
        max-width: 180px;
    }

    .gp-sticky-menu {
        width: 100%;
    }

    .gp-sticky-menu .sticky-menu {
        justify-content: center;
    }

    .gp-sticky-inline-widget {
        max-width: 100%;
        justify-content: center;
    }
	
	.gp-sticky-datetime {
        white-space: normal;
        text-align: center;
    }
}
}   