/* N10 News Portal - Home Moderna CSS */

/* ========================================================================
   ESTILOS ESPECÍFICOS PARA DESIGN MODERNO
   ======================================================================== */
body.modern-active {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    background-color: #f8f9fa !important;
}

body.modern-active .site-header {
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

body.modern-active .site-footer {
    background: #343a40 !important;
    color: #ffffff !important;
}

/* ========================================================================
   GLOBAL RESET & RESPONSIVITY
   - Remove scrollbars on X
   - Ensure box-sizing across elements
   ======================================================================== */
html, body {
  overflow-x: hidden;
}
*, *::before, *::after {
  box-sizing: border-box;
}

/* ========================================================================
   1. Layout geral
   ======================================================================== */
.home-grid {
  display: grid;
  grid-template-areas:
    "urgent urgent"
    "slider slider"
    "latest sidebar";
  grid-template-columns: 3fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
  padding: 1.5rem;
}

.home-grid.with-sidebar {
  grid-template-areas:
    "urgent urgent"
    "slider slider"
    "latest sidebar";
}

.home-grid.no-sidebar {
  grid-template-areas:
    "urgent urgent"
    "slider slider"
    "latest latest";
  grid-template-columns: 1fr;
}


/* ========================================================================
   URGENTE ► bloco acima do slider
   ======================================================================== */
.urgent-card-container {
  grid-area: urgent;    /* conecta ao “urgent” do grid-template-areas */
  margin-bottom: 2rem;  /* espaço entre urgência e slider */
}

.urgent-card {
  background: #e63946;
  color: #fff;
  padding: 1.5rem;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.urgent-label {
  align-self: flex-start;
  background: #d62828;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 2px;
}

.urgent-title {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
}

.urgent-title a {
  color: #fff;
  text-decoration: none;
}

.urgent-excerpt {
  font-size: 1rem;
  line-height: 1.5;
}

.urgent-cta {
  align-self: flex-start;
  background: #fff;
  color: #e63946;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.urgent-cta:hover {
  opacity: 0.85;
}

/* ========================================================================
   VARIAÇÕES DE GRID – style7 a style11
   ======================================================================== */

/* 0. Base do Featured Grid */
.featured-grid {
  grid-area: slider !important;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* ── 7) Hero + Dois Cards Laterais (ajustes de cor) ── */
.featured-grid.style7 {
  display: grid;
  grid-template-areas:
    "hero hero"
    "side1 side2";
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Hero */
.featured-grid.style7 .featured-item:nth-child(1) {
  grid-area: hero;
  height: 400px;
  position: relative;
}
.featured-grid.style7 .featured-item:nth-child(1) .featured-thumb {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.6);
  transition: filter .3s;
}
.featured-grid.style7 .featured-item:nth-child(1):hover .featured-thumb {
  filter: none;
}
.featured-grid.style7 .featured-item:nth-child(1) .featured-info {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  padding: 1.5rem;
}

/* Título branco só no Hero */
.featured-grid.style7 .featured-item:nth-child(1) .featured-info .featured-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
}

/* Categoria em amarelo para destacar */
.featured-grid.style7 .featured-item:nth-child(1) .featured-info .featured-cat {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;                           /* texto branco */
  background: var(--color-link);         /* cor de destaque do tema */
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* leve profundidade */
  margin-bottom: 0.75rem;
  white-space: nowrap;
}

/* Data em cinza-claro para contraste */
.featured-grid.style7 .featured-item:nth-child(1) .featured-info .featured-date {
  font-size: .85rem;
  color: #ddd; /* quase branco */
  margin-top: .5rem;
}

/* Cards laterais inalterados */
.featured-grid.style7 .featured-item:nth-child(2) { grid-area: side1; }
.featured-grid.style7 .featured-item:nth-child(3) { grid-area: side2; }
.featured-grid.style7 .featured-item:nth-child(n+2) {
  display: flex;
  flex-direction: column;
  height: 200px;
  overflow: hidden;
  position: relative;
}
.featured-grid.style7 .featured-item:nth-child(n+2) .featured-thumb {
  flex: 1;
  background-size: cover;
  background-position: center;
}
.featured-grid.style7 .featured-item:nth-child(n+2) .featured-info {
  background: #fff;
  padding: .75rem;
  color: #222;
}

@media (max-width: 767px) {
  .featured-grid.style7 {
    grid-template-areas:
      "hero"
      "side1"
      "side2";
    grid-template-columns: 1fr;
  }
}

/* ── 8) Card Vertical “Magazine” com Ribbon – AJUSTADO PARA 2 POSTS ── */
.featured-grid.style8 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1rem;
}

/* Oculta qualquer card além do segundo */
.featured-grid.style8 .featured-item:nth-child(n+3) {
  display: none;
}

/* Card individual */
.featured-grid.style8 .featured-item {
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.featured-grid.style8 .featured-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Imagem de capa */
.featured-grid.style8 .featured-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

/* Conteúdo do card */
.featured-grid.style8 .featured-info {
  padding: 0.75rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Categoria */
.featured-grid.style8 .featured-cat {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--color-link);
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  align-self: flex-start;
  margin-bottom: 0.5rem;
}

/* Título */
.featured-grid.style8 .featured-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-heading);
  margin: 0 0 0.5rem;
  line-height: 1.3;
  flex: 1;
}

/* Data */
.featured-grid.style8 .featured-date {
  font-size: 0.85rem;
  color: #666;
  margin-top: auto;
}

/* Responsividade */
@media (max-width: 767px) {
  .featured-grid.style8 {
    grid-template-columns: 1fr;
    padding: 0.5rem;
    gap: 0.75rem;
  }
  .featured-grid.style8 .featured-item:nth-child(n+3) {
    display: none; /* Continua ocultando além do segundo */
  }
}


/* ── 9) Grid Clássico de Portal + Hover de Texto – AJUSTADO PARA 2 POSTS ── */
.featured-grid.style9 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Oculta qualquer card além do segundo */
.featured-grid.style9 .featured-item:nth-child(n+3) {
  display: none;
}

.featured-grid.style9 .featured-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}
.featured-grid.style9 .featured-thumb {
  width: 100%;
  padding-top: 60%;
  background-size: cover;
  background-position: center;
  transition: transform .5s ease;
}
.featured-grid.style9 .featured-item:hover .featured-thumb {
  transform: scale(1.05);
}
.featured-grid.style9 .featured-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.4);
}
.featured-grid.style9 .featured-cat {
  font-size: .75rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.featured-grid.style9 .featured-title {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  color: #fff;
}
.featured-grid.style9 .featured-date {
  font-size: .85rem;
  margin-top: .5rem;
  color: #ddd;
}

/* Mobile */
@media (max-width: 767px) {
  .featured-grid.style9 {
    grid-template-columns: 1fr;
  }
  .featured-grid.style9 .featured-item:nth-child(n+3) {
    display: none;
  }
}


/* ── 10) Masonry Dinâmico – VISUAL UNIFORME ── */
.featured-grid.style10 {
  column-count: 3;
  column-gap: 1rem;
}
@media (max-width: 1023px) {
  .featured-grid.style10 {
    column-count: 2;
  }
}
@media (max-width: 767px) {
  .featured-grid.style10 {
    column-count: 1;
  }
}

.featured-grid.style10 .featured-item {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 1rem;
  transition: transform .3s, box-shadow .3s;
}

.featured-grid.style10 .featured-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.featured-grid.style10 .featured-thumb {
  width: 100%;
  padding-top: 75%;
  background-size: cover;
  background-position: center;
}

.featured-grid.style10 .featured-info {
  padding: 1rem;
}

.featured-grid.style10 .featured-cat {
  display: block;
  margin-bottom: .5rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--color-link);
  text-transform: uppercase;
}

.featured-grid.style10 .featured-title {
  margin: 0 0 .5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.3;
}

.featured-grid.style10 .featured-date {
  font-size: .85rem;
  color: var(--color-text);
}


/* Responsivo */
@media (max-width: 1023px) {
  .featured-grid.style10 { column-count: 2; }
}
@media (max-width: 767px) {
  .featured-grid.style10 { column-count: 1; }
}

/* ── 11) Split-Screen Reverso – AJUSTADO ── */
.featured-grid.style11 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.featured-grid.style11 .featured-item {
  display: flex;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform .3s, box-shadow .3s;
}

.featured-grid.style11 .featured-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Conteúdo primeiro, depois imagem */
.featured-grid.style11 .featured-info {
  order: 1;
  flex: 1;
  padding: 1rem;
}

.featured-grid.style11 .featured-thumb {
  order: 2;
  flex: 0 0 50%;
  background-size: cover;
  background-position: center;
}

.featured-grid.style11 .featured-cat {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-link);
  text-transform: uppercase;
}

.featured-grid.style11 .featured-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.3;
}

.featured-grid.style11 .featured-date {
  font-size: 0.85rem;
  color: var(--color-text);
}

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

/* =====================================================================
   Timeline Moderno v2 – Mobile-First (sem overflow e com breakpoint para desktop)
   ===================================================================== */

/* ---------------------------------------------------------------------
   1) Container geral da Timeline
   --------------------------------------------------------------------- */
.timeline {
  grid-area: latest;
  position: relative;
  padding: 0.2rem 0.5rem 0.5rem;   /* padding para mobile */
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  overflow-x: hidden;             /* Garante que nada ultrapasse a largura no mobile */
}

/* ---------------------------------------------------------------------
   2) Filtros – Ocupando 100% da largura interna e com background
   --------------------------------------------------------------------- */
.timeline-filters {
  margin-top: 0.2rem;
  width: 100%;
  background-color: #f5f5f5;       /* Leve fundo cinza para destacar */
  border-top-left-radius: 8px;     /* Mesmos cantos arredondados do .timeline */
  border-top-right-radius: 8px;
  padding: 1rem 1rem;              /* Espaço interno ao redor */
  box-sizing: border-box;
  display: flex;
  justify-content: center;         /* Centraliza horizontalmente */
  align-items: center;             /* Centraliza verticalmente, se houver múltiplos itens */
  margin-bottom: 0;                /* Sem margem abaixo, para conectar com .timeline-list */
}

/* ---------------------------------------------------------------------
   2.1) Estiliza “Mais recentes” como botão ampliado e centralizado
   --------------------------------------------------------------------- */
.filter-title {
  width: 100%;
  max-width: 480px;                /* Limita largura máxima em telas grandes */
  padding: 1rem 1.5rem;            /* Mais espaçamento interno para destacar */
  text-align: center;
  background-color: var(--color-link);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 20px;
  cursor: default;                 /* Sem ação de clique */
  user-select: none;               /* Evita seleção de texto indesejada */
  transition: background 0.2s;
}

/* Opcional: efeito hover apenas visual, sem alterar cursor */
.filter-title:hover {
  background-color: var(--color-link-hover);
}

/* ---------------------------------------------------------------------
   3) Linha vertical espessa
   --------------------------------------------------------------------- */
.timeline::before {
  content: "";
  position: absolute;
  top: 0.4rem;   /* Empurra para baixo dos filtros */
  left: 10px;
  width: 4px;
  bottom: 1rem;
  background: var(--color-link);
}

/* ---------------------------------------------------------------------
   4) Lista de cards sem bullet e em coluna única (mobile)
   --------------------------------------------------------------------- */
.timeline-list {
  list-style: none;          /* remove o bullet padrão */
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr; /* single column por padrão */
  row-gap: 0.5rem;
  /* Aqui, zera a margin-left e passa o offset para padding-left */
  margin-left: 0;            
  padding-left: 20px;        /* espaço para a linha vertical + bolinha */
  overflow: hidden;          /* impede que algum <li> ultrapasse por aqui */
}

/* =====================================================================
   5) Cartões (local e remoto) – mobile por padrão
   ===================================================================== */
.timeline-item.is-local-post,
.timeline-item.is-remote-post {
  position: relative;
}

/* 5.1) Dentro de cada <li>, o <a> vira o “cartão” clicável */
.timeline-item.is-local-post > a,
.timeline-item.is-remote-post > a {
  display: grid;
  grid-template-columns: 300px;   /* coluna única no mobile */
  gap: 0.5rem;                    /* gap interno menor para mobile */
  padding: 0.5rem;               /* padding interno para espaçar bem */
  background: #fff;
  border-radius: 40px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  width: 100%;                    /* garante 100% do container */
  max-width: 100%;                /* não deixa estourar além de 100% */
  box-sizing: border-box;
  overflow: hidden;               /* impede que conteúdos internos ultrapassem a largura */
}

/* 5.2) Hover em telas maiores (não afeta mobile) */
.timeline-item.is-local-post > a:hover,
.timeline-item.is-remote-post > a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 5.3) Marcador redondo (bolinha) antes de cada <li> */
.timeline-item.is-local-post::before,
.timeline-item.is-remote-post::before {
  content: "";
  position: absolute;
  top: 0.75rem;      /* posicionado para alinhar no mobile */
  left: 0;           /* colocamos a bolinha imediatamente antes do padding-left da lista */
  transform: translateX(-20px); /* desloca 20px para a esquerda, ficando alinhado à linha */
  width: 12px;
  height: 12px;
  background: var(--color-link);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--color-link);
}

/* 5.4) Thumbnail para mobile: widescreen 16:9 */
.timeline-thumb,
.timeline-thumb img {
  width: 300px;
  height: auto;
  max-width: 100%;                /* garante que a imagem nunca ultrapasse 100% do container */
  aspect-ratio: 16 / 9;           /* widescreen no mobile */
  object-fit: cover;
  border-radius: 40px;
  display: block;                 /* remove eventuais gaps inline */
}

/* =====================================================================
   6) Conteúdo textual (dentro do .timeline-info)
   ===================================================================== */
.timeline-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;     /* centraliza horizontalmente os itens filhos */
  text-align: center;      /* garante que textos longos sejam centralizados */
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

.timeline-info time {
  font-size: 0.85rem;
  color: var(--color-link);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.timeline-info h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.3;
  transition: color 0.2s;
  overflow-wrap: break-word;
  word-break: break-word;
}

.timeline-info h4 a:hover {
  color: var(--color-link);
}

.timeline-excerpt {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* 6.1) Badge de site remoto (mobile) */
.remote-site-badge {
  display: inline-block;
  margin-top: 0;
  padding: 0.35rem 0.35rem 0.35rem;
  background: var(--color-link);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 8px;
  white-space: nowrap;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

/* 6.2) Badge de categoria para post local (opcional) */
.local-cat-badge {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.15rem 0.5rem;
  background: #333;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  white-space: nowrap;
}

/* ---------------------------------------------------------------------
   7) Botão “Carregar mais”
   --------------------------------------------------------------------- */
.timeline-load-more {
  display: block;
  margin: 1.5rem auto 0;
  padding: 0.5rem 1.5rem;
  background: var(--color-link);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}

.timeline-load-more:hover {
  background: var(--color-link-hover);
}

/* =====================================================================
   8) BREAKPOINT PARA DESKTOP (>= 768px)
   — A partir daqui, o cartão vira “thumbnail fixa de 280px à esquerda + texto à direita”
   ===================================================================== */
@media (min-width: 768px) {
  /* 8.1) Ajusta padding da timeline para desktop */
  .timeline {
    padding: 0.2rem 1rem 1rem;
  }

  .timeline::before {
    top: 0.2rem;
    left: 20px;
    bottom: 1rem;
  }
  
  
  .timeline-list {
    grid-template-columns: 1fr;   /* a lista continua 1fr, mas cada <li><a> vira grid interno */
    margin-left: 30px;            /* espaço maior para desktop */
    padding-left: 0;              /* zera o padding-left do mobile */
    overflow: visible;            /* volta a permitir overflow interno controlado nos cards */
  }

  /* 8.2) Dentro de cada <li>, o <a> ganha a coluna fixa de 280px */
  .timeline-item.is-local-post > a,
  .timeline-item.is-remote-post > a {
    grid-template-columns: 300px 1fr; /* Desktop: thumbnail fixa */
    gap: 1rem;
    padding: 1rem;
    overflow: hidden;                  /* garante que nada interno ultrapasse */
  }

  /* 8.3) Thumbnail volta a ser 4:3 no desktop */
  .timeline-thumb,
  .timeline-thumb img {
    aspect-ratio: 4 / 3;
    max-width: 100%;                   /* reforça contenção da imagem em desktop também */
    width: 100%;
    height: auto;
  }

  /* 8.4) Espaçamento do texto volta ao normal */
  .timeline-info time {
    margin-bottom: 0.75rem;
  }

  .timeline-info h4 {
    font-size: 1.1rem;
    line-height: 1.3;
  }

  .timeline-excerpt {
    margin-top: 0.75rem;
  }

  /* 8.5) Marcador (bolinha) junto à linha vertical no desktop */
  .timeline-item.is-local-post::before,
  .timeline-item.is-remote-post::before {
    left: -28px;    /* aproxima do centro do padding-left */
    top: 1rem;      /* volta a 1rem no desktop */
    transform: none;/* cancela o translateX do mobile */
  }
  
  /* 6.1) Badge de site remoto (mobile) */
.remote-site-badge {
  margin-top: 0.5rem;
  padding: 0.5rem 0.5rem 0.5rem;
  white-space: nowrap;
  margin-left: 0.5rem;
}
}



/* ========================================================================
   4. Sidebar elegante
   ======================================================================== */
.sidebar-primary {
  grid-area: sidebar !important;
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ==========================================================================  
   HOME BANNERS 336×336  
   ========================================================================== */

/* 1) Faz a seção de banners atravessar TODO o grid (duas colunas) */
.home-grid.with-sidebar .home-banners {
  grid-column: 1 / -1;
  margin-bottom: 2rem;
}

/* 2) Boxed-style + padded container só no wrapper interno */
.home-banners > .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform .3s ease, box-shadow .3s ease;
}
.home-banners > .container:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

/* 3) Layout flex em duas colunas até 336px cada e tudo centralizado */
.home-banners__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center; /* centraliza as colunas */
}
.home-banners__col {
  flex: 1 1 336px; 
  max-width: 336px;
  box-sizing: border-box;
  text-align: center; /* centraliza conteúdo interno */
}

/* 3.1) Garante que imagens se redimensionem proporcionalmente */
.home-banners__col img {
  max-width: 100%;        /* nunca ultrapassa a largura da coluna */
  max-height: 336px;      /* nunca ultrapassa 336px de altura */
  width: auto;
  height: auto;
  display: inline-block;  /* respeita o text-align:center do pai */
}

/* 4) Mobile: empilha abaixo de 768px */
@media (max-width: 768px) {
  .home-banners__inner {
    flex-direction: column;
  }
  .home-banners__col {
    flex: 1 1 100%;
    max-width: none;
  }
}



/* ========================================================================
   5. Responsividade geral
   ======================================================================== */
/* Mobile breakpoint */
@media (max-width: 768px) {
  /* garante o grid em coluna única para todas as variantes */
  .home-grid,
  .home-grid.with-sidebar,
  .home-grid.no-sidebar {
    display: grid !important;
    grid-template-areas:
      "urgent"
      "slider"
      "latest"
      "sidebar";
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }
  /* Sidebar card largura total */
  .sidebar-primary {
    grid-area: sidebar;
  }
}