/*
Theme Name: Elo Theme One
Theme URI: https://elonews.com.br
Author: Elo News
Author URI: https://elonews.com.br
Description: Tema profissional ultra leve e responsivo para o portal Elo News. Inspirado nos melhores portais de notícias do Brasil (G1, R7, Metrópoles) com design moderno, tipografia jornalística e performance otimizada.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elo-theme
Tags: news, portal, responsive, lightweight, accessibility-ready
*/

/* ============================================
   CSS RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-variant-numeric: lining-nums; /* Raleway usa números "antigos" por padrão */
  font-size: 1rem;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #f5f5f5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

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

ul,
ol {
  list-style: none;
}

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
  /* Primary palette */
  --elo-primary: #0755B4;
  --elo-primary-dark: #063D80;
  --elo-primary-light: #2A7FD6;
  --elo-primary-ultra-light: #E8F1FC;
  --elo-primary-alpha-10: rgba(7, 85, 180, 0.1);
  --elo-primary-alpha-20: rgba(7, 85, 180, 0.2);

  /* Neutral palette */
  --elo-black: #0D0D0D;
  --elo-dark: #1a1a1a;
  --elo-gray-900: #212121;
  --elo-gray-800: #333333;
  --elo-gray-700: #424242;
  --elo-gray-600: #555555;
  --elo-gray-500: #757575;
  --elo-gray-400: #9e9e9e;
  --elo-gray-300: #bdbdbd;
  --elo-gray-200: #e0e0e0;
  --elo-gray-100: #f0f0f0;
  --elo-gray-50: #f5f5f5;
  --elo-white: #ffffff;

  /* Accent */
  --elo-accent: #F58220;

  /* Alert colors */
  --elo-urgente: #D32F2F;
  --elo-urgente-bg: #FFEBEE;
  --elo-ao-vivo: #E53935;
  --elo-destaque: #FF6F00;

  /* Typography */
  --font-headline: 'Raleway', 'Segoe UI', Roboto, Arial, sans-serif;
  --font-body: 'Raleway', 'Segoe UI', Roboto, Arial, sans-serif;
  --font-meta: 'Raleway', 'Segoe UI', Roboto, Arial, sans-serif;
  --font-sans: var(--font-body);      /* usada pelo Elo Post Meta */
  --elo-font-sans: var(--font-body);  /* usada pelo Elo Post Meta */

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Container */
  --container-max: 1280px;
  --container-narrow: 840px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.12);

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s ease;

  /* Header height */
  --header-height: 60px;
  --topbar-height: 36px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-headline);
  font-weight: 700;
  line-height: 1.25;
  color: var(--elo-dark);
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.125rem;
}

h5 {
  font-size: 1rem;
}

h6 {
  font-size: 0.875rem;
}

p {
  margin-bottom: var(--space-md);
  color: var(--elo-gray-700);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   LAYOUT
   ============================================ */
.elo-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.elo-grid {
  display: grid;
  gap: var(--space-lg);
}

.elo-grid--main {
  grid-template-columns: 1fr;
}

/* Sem isso, os itens da grid herdam min-width:auto e nunca encolhem
   além do conteúdo mais largo (ex: banner de anúncio 728px fixo),
   estourando a largura da coluna e da página inteira no mobile. */
.elo-grid--main > * {
  min-width: 0;
}

@media (min-width: 1280px) {
  .elo-grid--main {
    grid-template-columns: 1fr 320px;
  }
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.elo-progress-bar {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1001;
  width: 100%;
  height: 5px;
  background: var(--elo-accent);
  transition: background var(--transition-normal);
}

.elo-progress-bar.is-scrolling {
  background: var(--elo-primary-dark); /* trilho azul-escuro: o laranja mostra quanto já leu */
}

.elo-progress-bar__fill {
  height: 100%;
  width: 0;
  background: var(--elo-accent);
}

/* ============================================
   TOP BAR (Mobile Only — date, weather, social)
   ============================================ */
.elo-topbar {
  background: var(--elo-primary-dark);
  color: var(--elo-white);
  font-size: 0.72rem;
  font-family: var(--font-meta);
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1001;
}

/* Hide topbar on desktop */
@media (min-width: 1280px) {
  .elo-topbar {
    display: none;
  }
}

.elo-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.elo-topbar__info-mobile {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  opacity: 0.95;
}

.elo-topbar__info-mobile-col1,
.elo-topbar__info-mobile-col2 {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.elo-topbar__time {
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
}

.elo-topbar__greeting {
  font-size: 0.75rem;
  color: var(--elo-accent);
  line-height: 1;
}

.elo-topbar__info-mobile-sep {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 var(--space-xs);
}

.elo-topbar__date {
  font-weight: 500;
  font-size: 0.6rem;
  line-height: 1;
  white-space: nowrap;
}

.elo-topbar__weather {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  font-size: 0.6rem;
  line-height: 1;
}

.elo-topbar__weather svg {
  width: 10px;
  height: 10px;
}

.elo-topbar__social {
  display: flex;
  align-items: center;
  gap: 4px;
}

.elo-topbar__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--elo-white);
  transition: background var(--transition-fast);
}

.elo-topbar__social a:hover {
  background: rgba(255, 255, 255, 0.25);
  color: var(--elo-white);
}

/* ============================================
   HEADER
   ============================================ */
.elo-header {
  background: var(--elo-white);
  border-bottom: 3px solid var(--elo-primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition-normal), padding var(--transition-normal);
}

.elo-header.is-scrolled {
  box-shadow: var(--shadow-lg);
}

.elo-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-md) var(--space-md);
  transition: padding var(--transition-normal);
}

.elo-header.is-scrolled .elo-header__inner {
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
}

.elo-header__left,
.elo-header__right {
  display: flex;
  align-items: center;
  flex: 1;
}

.elo-header__left {
  justify-content: flex-start;
  gap: var(--space-md);
}

.elo-header__right {
  justify-content: flex-end;
  gap: var(--space-sm);
}

.elo-header__center {
  display: flex;
  justify-content: center;
  flex: 0 0 auto;
}

/* Logo */
.elo-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
  transition: all var(--transition-normal);
}

.elo-logo img,
.elo-logo svg,
.elo-logo__img {
  height: 60px;
  width: auto;
  transition: height var(--transition-normal);
}

.elo-header.is-scrolled .elo-logo img,
.elo-header.is-scrolled .elo-logo svg,
.elo-header.is-scrolled .elo-logo__img {
  height: 52px;
}

@media (max-width: 1279px) {

  .elo-logo img,
  .elo-logo svg,
  .elo-logo__img {
    height: 48px;
  }

  .elo-header.is-scrolled .elo-logo img,
  .elo-header.is-scrolled .elo-logo svg,
  .elo-header.is-scrolled .elo-logo__img {
    height: 42px;
  }
}

.elo-logo__text {
  font-family: var(--font-headline);
  font-size: 2rem;
  font-weight: 900;
  color: var(--elo-primary);
  line-height: 1.05;
  letter-spacing: -0.03em;
  transition: font-size var(--transition-normal);
}

.elo-header.is-scrolled .elo-logo__text {
  font-size: 1.6rem;
}

@media (max-width: 1279px) {
  .elo-logo__text {
    font-size: 1.6rem;
  }

  .elo-header.is-scrolled .elo-logo__text {
    font-size: 1.4rem;
  }
}

.elo-logo__text span {
  display: block;
  font-size: 0.6rem;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--elo-gray-500);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: font-size var(--transition-normal);
}

.elo-header.is-scrolled .elo-logo__text span {
  font-size: 0.52rem;
}

/* Desktop: Greeting, Time, Date, Weather */
.elo-header__info {
  display: none;
  align-items: center;
  gap: var(--space-md);
  white-space: nowrap;
  font-family: var(--font-meta);
}

@media (min-width: 1280px) {
  .elo-header__info {
    display: flex;
  }
}

.elo-header__info-col1,
.elo-header__info-col2 {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.elo-header__info-col1 {
  align-items: flex-end;
}

.elo-header__time {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--elo-dark);
  line-height: 1;
}

.elo-header__greeting {
  color: var(--elo-primary);
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1;
  text-transform: uppercase;
}

.elo-header__info-sep {
  width: 1px;
  height: 24px;
  background: var(--elo-gray-200);
  margin: 0 4px;
}

.elo-header__date-text {
  color: var(--elo-gray-600);
  font-weight: 600;
  font-size: 0.72rem;
  line-height: 1;
}

.elo-header__weather {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--elo-gray-500);
  font-size: 0.65rem;
  line-height: 1;
}

.elo-header__weather-icon {
  display: flex;
  align-items: center;
}

.elo-header__weather-icon svg {
  width: 12px;
  height: 12px;
}

/* Topo: saudação em cima; data · clima · cidade embaixo */
.elo-header__info--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.elo-header__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.elo-header__meta-sep {
  width: 1px;
  height: 14px;
  background: var(--elo-accent);
}

.elo-header__info--stack .elo-header__date-text {
  font-size: 0.75rem;
}

.elo-header__info--stack .elo-header__weather {
  gap: 5px;
  font-size: 0.75rem;
  color: var(--elo-gray-600);
}

.elo-header__info--stack .elo-header__weather-icon svg {
  width: 17px;
  height: 17px;
  color: var(--elo-accent);
}

.elo-header__weather-temp {
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--elo-primary);
}

.elo-header__weather-city {
  font-weight: 600;
}

.elo-header__meta [hidden] {
  display: none !important;
}

/* Search — Minimal Style (always visible) */
.elo-search-btn-minimal {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--elo-dark);
  cursor: pointer;
  border-radius: 50%;
  transition: all var(--transition-fast);
  z-index: 2; /* To sit on top of the expanding input */
  position: relative;
}

.elo-search-btn-minimal:hover {
  background: var(--elo-primary-alpha-10);
  color: var(--elo-primary);
}

/* Header Search - Desktop Expandable */
.elo-header-search {
  display: flex;
  align-items: center;
  position: relative;
}

.elo-header-search__input {
  width: 0;
  opacity: 0;
  padding: 0;
  border: none;
  background: var(--elo-primary-alpha-10);
  color: var(--elo-dark);
  font-size: 0.9rem;
  border-radius: 20px;
  outline: none;
  transition: width 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
  position: absolute;
  right: 0; 
  padding-right: 36px; /* Space for the button */
  pointer-events: none;
  z-index: 1;
}

.elo-header-search.is-active .elo-header-search__input {
  width: 200px;
  padding: 8px 40px 8px 16px; 
  opacity: 1;
  pointer-events: auto;
}

.elo-header-search.is-active .elo-search-btn-minimal {
  background: transparent; /* No hover bg when active, or keep it, up to design */
  color: var(--elo-primary);
}

/* Mobile Search Bar (Below Header) */
.elo-mobile-search-bar {
  display: none;
  background: var(--elo-white);
  padding: 10px 15px;
  border-bottom: 1px solid var(--elo-gray-200);
}

.elo-mobile-search-bar.is-active {
  display: block;
}

.elo-mobile-search-bar form {
  display: flex;
  width: 100%;
}

.elo-mobile-search-bar input {
  width: 100%;
  border: none;
  background: var(--elo-primary-alpha-10);
  padding: 10px 15px;
  border-radius: 20px;
  outline: none;
  color: var(--elo-dark);
  font-size: 1rem;
}

@media (max-width: 767px) {
  .elo-header-search__input {
    display: none; /* Desktop input hidden on mobile, button stays visible */
  }
}

/* Desktop: Social Icons in Header */
.elo-header__social {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: var(--space-sm);
  flex-shrink: 0;
}

@media (min-width: 1280px) {
  .elo-header__social {
    display: flex;
  }
}

.elo-header__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--elo-gray-500);
  transition: all var(--transition-fast);
}

.elo-header__social a:hover {
  background: var(--elo-primary-alpha-10);
  color: var(--elo-primary);
}

/* Hamburger */
.elo-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  gap: 5px;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
  flex-shrink: 0;
}

.elo-hamburger:hover {
  background: var(--elo-gray-100);
}

.elo-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--elo-gray-700);
  border-radius: 2px;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.elo-hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.elo-hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.elo-hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 1280px) {
  .elo-hamburger {
    display: none;
  }
}

/* ============================================
   MAIN NAVIGATION
   ============================================ */
.elo-nav {
  background: var(--elo-primary);
  position: relative;
  z-index: 999;
}

.elo-nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0;
}

.elo-nav__list {
  display: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 1280px) {
  .elo-nav__list {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .elo-nav__list::-webkit-scrollbar {
    display: none;
  }
}

.elo-nav__list .menu-item {
  position: relative;
  display: flex;
  align-items: stretch;
  flex: 1 1 auto;
}

.elo-nav__list .menu-item>a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem 0.5rem;
  color: var(--elo-white);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background var(--transition-fast);
}

.elo-nav__list .menu-item>a:hover,
.elo-nav__list .menu-item.current-menu-item>a {
  background: rgba(255, 255, 255, 0.15);
  color: var(--elo-white);
}

/* Tracinho laranja: item atual e hover */
.elo-nav__list .menu-item>a {
  position: relative;
}

.elo-nav__list .menu-item>a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--elo-accent);
  transform: translateX(-50%);
  transition: width var(--transition-fast);
}

.elo-nav__list .menu-item>a:hover::after,
.elo-nav__list .menu-item.current-menu-item>a::after {
  width: 60%;
}

.elo-nav__list .sub-menu .menu-item>a::after {
  display: none;
}

/* Dropdown */
.elo-nav__list .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--elo-white);
  border-top: 3px solid var(--elo-primary);
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  z-index: 100;
  padding: var(--space-xs) 0;
}

.elo-nav__list .menu-item:hover>.sub-menu {
  display: block;
  animation: elo-fadeDown 0.2s ease;
}

.elo-nav__list .sub-menu .menu-item>a {
  color: var(--elo-gray-800);
  font-size: 0.8rem;
  text-transform: none;
  font-weight: 500;
  padding: 0.55rem 1.2rem;
}

.elo-nav__list .sub-menu .menu-item>a:hover {
  background: var(--elo-primary-ultra-light);
  color: var(--elo-primary);
}

@keyframes elo-fadeDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile nav overlay */
.elo-mobile-nav {
  position: fixed;
  top: 0;
  left: -100%;
  width: 300px;
  height: 100vh;
  background: var(--elo-white);
  z-index: 10000;
  transition: left var(--transition-normal);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.elo-mobile-nav.is-open {
  left: 0;
}

.elo-mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md);
  border-bottom: 1px solid var(--elo-gray-200);
  background: var(--elo-primary);
}

.elo-mobile-nav__brand {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.elo-mobile-nav__logo {
  display: block;
  width: auto;
  max-width: 210px;
  max-height: 40px;
  object-fit: contain;
}

.elo-mobile-nav__close {
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: var(--elo-white);
  cursor: pointer;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.elo-mobile-nav__close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.elo-mobile-nav .menu-item>a {
  display: block;
  padding: 0.8rem var(--space-md);
  color: var(--elo-gray-800);
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid var(--elo-gray-100);
  transition: background var(--transition-fast);
}

.elo-mobile-nav .menu-item>a:hover {
  background: var(--elo-primary-ultra-light);
  color: var(--elo-primary);
}

.elo-mobile-nav .menu-item.current-menu-item>a {
  color: var(--elo-accent);
  box-shadow: inset 3px 0 0 var(--elo-accent);
}

.elo-mobile-nav .sub-menu {
  background: var(--elo-gray-50);
}

.elo-mobile-nav .sub-menu .menu-item>a {
  padding-left: calc(var(--space-md) + var(--space-md));
  font-size: 0.85rem;
  color: var(--elo-gray-600);
}

/* Mobile nav overlay bg */
.elo-mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.elo-mobile-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* Mobile search panel */
.elo-mobile-search {
  display: none;
  padding: var(--space-md);
  background: var(--elo-white);
  border-bottom: 1px solid var(--elo-gray-200);
}

.elo-mobile-search.is-open {
  display: block;
  animation: elo-fadeDown 0.2s ease;
}

.elo-search-form--mobile {
  max-width: 100%;
}

.elo-search-form--mobile .elo-search-form__submit {
  width: auto;
  border-radius: 100px;
  padding: 0 1rem;
  font-weight: 600;
  font-size: 0.82rem;
  font-family: var(--font-body);
}

/* ============================================
   BREAKING NEWS TICKER
   ============================================ */
.elo-ticker {
  background: var(--elo-urgente);
  color: var(--elo-white);
  overflow: hidden;
  position: relative;
  height: 36px;
  display: flex;
  align-items: center;
}

.elo-ticker__label {
  background: var(--elo-black);
  color: var(--elo-white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.elo-ticker__label::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 18px 0 18px 8px;
  border-color: transparent transparent transparent var(--elo-black);
}

.elo-ticker__scroll {
  display: flex;
  animation: elo-ticker-scroll 30s linear infinite;
  padding-left: var(--space-md);
}

.elo-ticker__item {
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 500;
  padding-right: 3rem;
}

.elo-ticker__item a {
  color: var(--elo-white);
}

.elo-ticker__item a:hover {
  text-decoration: underline;
  color: var(--elo-white);
}

@keyframes elo-ticker-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ============================================
   HERO SECTION (foto grande + mini matérias)
   ============================================ */
.elo-hero {
  padding: var(--space-lg) 0;
}

.elo-hero__top {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .elo-hero__top {
    grid-template-columns: 1.6fr 1fr;
  }
}

/* Foto grande */
.elo-hero__lead {
  position: relative;
  display: block;
  min-height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--elo-black);
  color: var(--elo-white);
  text-decoration: none;
}

@media (min-width: 900px) {
  .elo-hero__lead {
    min-height: 420px;
  }
}

.elo-hero__lead-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform var(--transition-slow);
}

.elo-hero__lead-img--empty {
  background: linear-gradient(135deg, var(--elo-primary-dark), var(--elo-primary-light));
}

.elo-hero__lead:hover .elo-hero__lead-img {
  transform: scale(1.03);
}

.elo-hero__lead-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--space-xl);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88) 45%);
}

.elo-hero__lead-content h2 {
  color: var(--elo-white);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin: var(--space-sm) 0;
}

.elo-hero__lead-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.elo-hero__lead-content time {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Mini matérias ao lado */
.elo-hero__list {
  list-style: none;
  margin: 0;
  padding: var(--space-xs) var(--space-md);
  background: var(--elo-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.elo-hero__list li + li {
  border-top: 1px solid var(--elo-gray-200);
}

.elo-hero__item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-md) 0;
  color: inherit;
  text-decoration: none;
}

.elo-hero__item-img {
  display: block;
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--elo-gray-200);
}

.elo-hero__item-chapeu {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--elo-primary);
  margin-bottom: 2px;
}

.elo-hero__item-chapeu::before {
  content: '';
  flex: none;
  width: 3px;
  height: 0.9em;
  border-radius: 2px;
  background: var(--elo-accent);
}

.elo-hero__item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 4px;
  color: var(--elo-gray-900);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.elo-hero__item:hover h3 {
  color: var(--elo-primary);
}

.elo-hero__item time {
  font-size: 0.75rem;
  color: var(--elo-gray-500);
}

/* ============================================
   CATEGORY BADGE
   ============================================ */
.elo-category-badge {
  display: inline-block;
  background: var(--elo-primary);
  color: var(--elo-white);
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--font-meta);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  transition: background var(--transition-fast);
}

.elo-category-badge:hover {
  background: var(--elo-primary-light);
  color: var(--elo-white);
}

.elo-category-badge--urgente {
  background: var(--elo-urgente);
}

.elo-category-badge--destaque {
  background: var(--elo-destaque);
}

/* ============================================
   SECTION HEADER
   ============================================ */
.elo-section-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--elo-gray-200);
  position: relative;
}

.elo-section-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--elo-primary);
}

.elo-section-header h2 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--elo-primary);
  white-space: nowrap;
}

.elo-section-header a.elo-see-all {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--elo-primary);
  white-space: nowrap;
  transition: opacity var(--transition-fast);
}

.elo-section-header a.elo-see-all:hover {
  opacity: 0.7;
}

/* ============================================
   NEWS CARD
   ============================================ */
.elo-card {
  background: var(--elo-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.elo-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.elo-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.elo-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform var(--transition-slow);
}

.elo-card:hover .elo-card__image img {
  transform: scale(1.05);
}

.elo-card__image .elo-category-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  z-index: 2;
}

.elo-card__body {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.elo-card__title {
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: var(--space-sm);
  color: var(--elo-dark);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.elo-card__title a {
  color: inherit;
}

.elo-card__title a:hover {
  color: var(--elo-primary);
}

.elo-card__excerpt {
  font-size: 0.85rem;
  color: var(--elo-gray-600);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-sm);
}

.elo-card__meta {
  font-size: 0.72rem;
  color: var(--elo-gray-400);
  font-family: var(--font-meta);
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.elo-card__meta svg {
  width: 12px;
  height: 12px;
  opacity: 0.5;
}

/* Horizontal card variant */
.elo-card--horizontal {
  flex-direction: row;
}

.elo-card--horizontal .elo-card__image {
  width: 140px;
  min-width: 140px;
  aspect-ratio: auto;
}

@media (min-width: 768px) {
  .elo-card--horizontal .elo-card__image {
    width: 180px;
    min-width: 180px;
  }
}

.elo-card--horizontal .elo-card__body {
  padding: var(--space-sm) var(--space-md);
  justify-content: center;
}

.elo-card--horizontal .elo-card__title {
  font-size: 0.9rem;
  -webkit-line-clamp: 2;
}

.elo-card--horizontal .elo-card__excerpt {
  display: none;
}

/* Card grid layouts */
.elo-cards-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .elo-cards-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .elo-cards-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .elo-cards-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .elo-cards-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .elo-cards-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Coluna direita das seções de categoria: distribui os 3 cards horizontais
   do topo ao fundo da coluna, alinhando com a matéria destacada da esquerda */
.elo-category-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* ============================================
   LATEST POSTS / LIST STYLE
   ============================================ */
.elo-latest-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.elo-latest-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--elo-gray-100);
}

.elo-latest-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.elo-latest-item__number {
  font-family: var(--font-headline);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--elo-primary-alpha-20);
  line-height: 1;
  flex-shrink: 0;
  min-width: 32px;
}

.elo-latest-item__content {
  flex: 1;
}

.elo-latest-item__title {
  font-family: var(--font-headline);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: var(--space-xs);
  color: var(--elo-dark);
}

.elo-latest-item__title a:hover {
  color: var(--elo-primary);
}

.elo-latest-item__meta {
  font-size: 0.72rem;
  color: var(--elo-gray-400);
  font-family: var(--font-meta);
}

/* ============================================
   SIDEBAR
   ============================================ */
.elo-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

/* Home: a lateral começa na mesma altura do título da 1ª seção (que tem padding-top de --space-xl) */
@media (min-width: 1280px) {
  .elo-sidebar--home {
    padding-top: var(--space-xl);
  }
}

.elo-widget {
  background: var(--elo-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.elo-widget__title {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--elo-primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--elo-gray-200);
  position: relative;
}

.elo-widget__title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--elo-primary);
}

/* Thumbnail list widget */
.elo-thumb-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.elo-thumb-item {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--elo-gray-100);
  transition: background var(--transition-fast);
}

.elo-thumb-item:last-child {
  border-bottom: none;
}

.elo-thumb-item:hover {
  background: var(--elo-gray-50);
}

.elo-thumb-item__img {
  width: 70px;
  height: 50px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.elo-thumb-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.elo-thumb-item__info {
  flex: 1;
  min-width: 0;
}

.elo-thumb-item__info h4 {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--elo-gray-800);
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.elo-thumb-item__info span {
  font-size: 0.68rem;
  color: var(--elo-gray-400);
  font-family: var(--font-meta);
}

/* Category tags widget */
.elo-category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.elo-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.3rem 0.7rem;
  background: var(--elo-gray-50);
  border: 1px solid var(--elo-gray-200);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--elo-gray-700);
  transition: all var(--transition-fast);
}

.elo-category-tag:hover {
  background: var(--elo-primary-ultra-light);
  border-color: var(--elo-primary);
  color: var(--elo-primary);
}

.elo-category-tag span {
  font-size: 0.65rem;
  color: var(--elo-gray-400);
  font-weight: 400;
}

/* Newsletter widget */
.elo-widget--newsletter {
  background: linear-gradient(135deg, var(--elo-primary-dark), var(--elo-primary));
  color: var(--elo-white);
}

.elo-widget--newsletter .elo-widget__title {
  color: var(--elo-white);
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.elo-widget--newsletter .elo-widget__title::after {
  background: var(--elo-accent);
}

.elo-newsletter__desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-md);
  line-height: 1.5;
}

.elo-newsletter__form {
  display: flex;
  gap: var(--space-sm);
}

.elo-newsletter__form input {
  flex: 1;
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  color: var(--elo-white);
  font-size: 0.82rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition-fast);
}

.elo-newsletter__form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.elo-newsletter__form input:focus {
  border-color: var(--elo-accent);
}

.elo-newsletter__form button {
  padding: 0.5rem 1rem;
  background: var(--elo-accent);
  color: var(--elo-dark);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.8rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background var(--transition-fast);
  white-space: nowrap;
}

.elo-newsletter__form button:hover {
  background: #DD6B10;
}

.elo-newsletter__msg {
  font-size: 0.78rem;
  color: var(--elo-accent);
  margin-top: var(--space-sm);
  font-weight: 600;
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.elo-section {
  padding: var(--space-xl) 0;
}

.elo-section--gray {
  background: var(--elo-gray-50);
}

.elo-section--white {
  background: var(--elo-white);
}

/* ============================================
   SINGLE POST
   ============================================ */
.elo-single {
  background: var(--elo-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.elo-single__header {
  padding: var(--space-xl) var(--space-xl) 0;
}

.elo-single__category {
  margin-bottom: var(--space-sm);
}

.elo-single__title {
  font-size: 1.8rem;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
  .elo-single__title {
    font-size: 2.2rem;
  }
}

.elo-single__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.82rem;
  color: var(--elo-gray-500);
  font-family: var(--font-meta);
  padding-bottom: calc(var(--space-md) / 2);
}

.elo-single__meta strong {
  color: var(--elo-dark);
  font-weight: 600;
}

.elo-single__featured-image {
  margin: var(--space-lg) 0;
}

.elo-single__featured-image img {
  width: 100%;
  border-radius: 0;
}

.elo-single__featured-image figcaption {
  font-size: 0.78rem;
  color: var(--elo-gray-500);
  padding: var(--space-sm) var(--space-xl);
  font-style: italic;
}

.elo-single__content {
  padding: 0 var(--space-xl) var(--space-xl);
  max-width: var(--container-narrow);
}

.elo-single__content p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: var(--space-lg);
  color: var(--elo-gray-800);
}

.elo-single__content h2 {
  font-size: 1.4rem;
  margin: var(--space-xl) 0 var(--space-md);
  padding-top: var(--space-md);
}

.elo-single__content h3 {
  font-size: 1.2rem;
  margin: var(--space-lg) 0 var(--space-md);
}

.elo-single__content blockquote {
  border-left: 4px solid var(--elo-primary);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
  background: var(--elo-primary-ultra-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--elo-gray-700);
}

.elo-single__content ul,
.elo-single__content ol {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.elo-single__content ul {
  list-style: disc;
}

.elo-single__content ol {
  list-style: decimal;
}

.elo-single__content li {
  margin-bottom: var(--space-sm);
  line-height: 1.7;
  color: var(--elo-gray-800);
}

.elo-single__content img {
  border-radius: var(--radius-md);
  margin: var(--space-lg) 0;
}

.elo-single__content a {
  color: var(--elo-primary);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--elo-primary-alpha-20);
  text-underline-offset: 2px;
  transition: text-decoration-color var(--transition-fast);
}

.elo-single__content a:hover {
  text-decoration-color: var(--elo-primary);
}

/* Share / Tags */
.elo-single__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--elo-gray-100);
}

.elo-tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--elo-gray-600);
  background: var(--elo-gray-100);
  border-radius: 100px;
  transition: all var(--transition-fast);
}

.elo-tag:hover {
  background: var(--elo-primary-ultra-light);
  color: var(--elo-primary);
}

/* ============================================
   PAGINATION
   ============================================ */
.elo-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-xl) 0;
}

/* WP gera nav.navigation > div.nav-links — precisa herdar o flex */
.elo-pagination .navigation,
.elo-pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-xs);
  width: 100%;
}

.elo-pagination a,
.elo-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 var(--space-sm);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.elo-pagination a {
  background: var(--elo-white);
  color: var(--elo-gray-700);
  box-shadow: var(--shadow-sm);
}

.elo-pagination a:hover {
  background: var(--elo-primary);
  color: var(--elo-white);
  box-shadow: var(--shadow-md);
}

.elo-pagination span.current {
  background: var(--elo-primary);
  color: var(--elo-white);
}

/* ============================================
   FOOTER
   ============================================ */
.elo-footer { margin-top: var(--space-3xl); background: #062B5C; color: #dbe8f8; border-top: 4px solid var(--elo-accent); font-family: var(--font-body); }
.elo-footer a { color: #dbe8f8; text-decoration: none; transition: color .15s ease; }
.elo-footer a:hover { color: var(--elo-accent); }
.elo-footer a:focus-visible { outline: 2px solid var(--elo-accent); outline-offset: 3px; }

.elo-footer__marca { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: 36px 0 28px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.elo-footer__marca-esq { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.elo-footer__logo img { display: block; height: 52px; width: auto; }
.elo-footer__lema { margin: 0; font-family: var(--font-headline); font-size: clamp(24px, 3vw, 34px); font-weight: 900; line-height: 1.1; letter-spacing: -.02em; color: #fff; }
.elo-footer__lema em { font-style: normal; color: var(--elo-accent); }
.elo-footer a.elo-footer__anuncie { display: inline-block; padding: 12px 24px; border-radius: 6px; background: var(--elo-accent); color: #1a1a1a; font-weight: 800; transition: background .15s ease; }
.elo-footer a.elo-footer__anuncie:hover { background: #ff9638; color: #1a1a1a; }

.elo-footer__colunas { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; padding: 32px 0 36px; }
.elo-footer__titulo { margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #ffb877; }
.elo-footer__categories { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px 20px; font-size: 15px; font-weight: 600; }
.elo-footer__links { display: flex; flex-direction: column; gap: 10px; font-size: 15px; font-weight: 600; }
.elo-footer__redes { display: flex; flex-wrap: wrap; gap: 10px; }
.elo-footer__redes a { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; transition: background .15s ease, color .15s ease; }
.elo-footer__redes a:hover { background: var(--elo-accent); color: #1a1a1a; }

.elo-footer__bottom { background: #041F44; padding: 18px 0; font-size: 13px; }
.elo-footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.elo-footer__notice { margin: 0 0 4px; color: #b9cbe3; }
.elo-footer__copyright { color: #dbe8f8; }
.elo-footer .elo-footer__link-policy { color: #dbe8f8; text-decoration: underline; }

@media (max-width: 860px) {
    .elo-footer__colunas { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .elo-footer__coluna--editorias { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .elo-footer__marca { flex-direction: column; align-items: flex-start; }
    .elo-footer a.elo-footer__anuncie { display: block; width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    .elo-footer a, .elo-footer__redes a { transition: none; }
}

/* ============================================
   ARCHIVE/CATEGORY PAGE
   ============================================ */
.elo-archive-header {
  background: var(--elo-primary);
  color: var(--elo-white);
  padding: var(--space-xl) 0;
  margin-bottom: var(--space-lg);
}

.elo-archive-header h1 {
  font-size: 1.6rem;
  color: var(--elo-white);
}

.elo-archive-header p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* ============================================
   COMMENTS
   ============================================ */
.elo-comments {
  padding: var(--space-xl);
  background: var(--elo-white);
  border-radius: var(--radius-md);
  margin-top: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.elo-comments h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-lg);
}

.elo-comments .comment {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--elo-gray-100);
}

.elo-comments .comment-author {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--elo-dark);
}

.elo-comments .comment-meta {
  font-size: 0.75rem;
  color: var(--elo-gray-400);
  margin-bottom: var(--space-sm);
}

.elo-comments .comment-content p {
  font-size: 0.9rem;
  color: var(--elo-gray-700);
  margin-bottom: var(--space-sm);
}

/* Comment form */
.elo-comments .comment-form input[type="text"],
.elo-comments .comment-form input[type="email"],
.elo-comments .comment-form input[type="url"],
.elo-comments .comment-form textarea {
  width: 100%;
  border: 2px solid var(--elo-gray-200);
  border-radius: var(--radius-md);
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-family: var(--font-body);
  margin-bottom: var(--space-md);
  outline: none;
  transition: border-color var(--transition-fast);
}

.elo-comments .comment-form input:focus,
.elo-comments .comment-form textarea:focus {
  border-color: var(--elo-primary);
  box-shadow: 0 0 0 3px var(--elo-primary-alpha-10);
}

.elo-comments .comment-form .submit {
  background: var(--elo-primary);
  color: var(--elo-white);
  border: none;
  border-radius: var(--radius-md);
  padding: 0.7rem 2rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.elo-comments .comment-form .submit:hover {
  background: var(--elo-primary-dark);
}

/* ============================================
   SEARCH RESULTS
   ============================================ */
.elo-search-results__header {
  background: var(--elo-gray-50);
  padding: var(--space-xl) 0;
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--elo-gray-200);
}

.elo-search-results__header h1 {
  font-size: 1.3rem;
}

.elo-search-results__header h1 span {
  color: var(--elo-primary);
}

/* ============================================
   404 PAGE
   ============================================ */
.elo-404 {
  text-align: center;
  padding: var(--space-3xl) var(--space-md);
}

.elo-404 h1 {
  font-size: 5rem;
  color: var(--elo-primary-alpha-20);
  line-height: 1;
  margin-bottom: var(--space-md);
}

.elo-404 h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.elo-404 p {
  max-width: 480px;
  margin: 0 auto var(--space-xl);
}

.elo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background: var(--elo-primary);
  color: var(--elo-white);
  padding: 0.8rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.elo-btn:hover {
  background: var(--elo-primary-dark);
  color: var(--elo-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   UTILITIES
   ============================================ */
.elo-text-center {
  text-align: center;
}

.elo-mt-0 {
  margin-top: 0;
}

.elo-mb-0 {
  margin-bottom: 0;
}

.elo-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.elo-back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--elo-primary);
  color: var(--elo-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
  z-index: 500;
}

.elo-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.elo-back-to-top:hover {
  background: var(--elo-primary-dark);
  transform: translateY(-2px);
}

/* ============================================
   LOADING / SKELETON
   ============================================ */
@keyframes elo-shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.elo-skeleton {
  background: linear-gradient(90deg, var(--elo-gray-100) 25%, var(--elo-gray-200) 50%, var(--elo-gray-100) 75%);
  background-size: 200% 100%;
  animation: elo-shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ============================================
   WORDPRESS SPECIFIC OVERRIDES
   ============================================ */
.wp-block-image {
  margin: var(--space-lg) 0;
}

.wp-block-image img {
  border-radius: var(--radius-md);
}

.wp-block-quote {
  border-left: 4px solid var(--elo-primary);
  padding: var(--space-md) var(--space-lg);
  background: var(--elo-primary-ultra-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.wp-block-separator {
  border: none;
  border-top: 2px solid var(--elo-gray-200);
  margin: var(--space-xl) 0;
}

.alignwide {
  max-width: calc(var(--container-max) + 2rem);
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {

  .elo-topbar,
  .elo-header,
  .elo-nav,
  .elo-ticker,
  .elo-sidebar,
  .elo-footer,
  .elo-back-to-top,
  .elo-mobile-nav,
  .elo-mobile-overlay {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  .elo-single__content {
    max-width: 100%;
    padding: 0;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
}

/* ============================================
   COMMENT FORM CUSTOM LAYOUT
   ============================================ */
.elo-comments .comment-form {
  display: flex;
  flex-wrap: wrap;
  column-gap: 2%;
  margin-top: var(--space-md);
}

.elo-comments .comment-form > * {
  flex: 1 1 100%;
}

@media (min-width: 640px) {
  .elo-comments .comment-form .elo-col-50 {
    flex: 1 1 49%;
  }
}
/* ============================================
   Botão "Siga no Google" (menu mobile e lateral)
   ============================================ */
.elo-gfollow {
  display: flex;
}

.elo-gfollow__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: var(--elo-white, #fff);
  border: 1px solid var(--elo-gray-200, #e0e0e0);
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  color: #3c4043;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  transition: box-shadow var(--transition-normal, .2s), border-color var(--transition-normal, .2s);
}

.elo-gfollow__btn:hover,
.elo-gfollow__btn:focus-visible {
  border-color: var(--elo-primary);
  box-shadow: 0 3px 10px rgba(7, 85, 180, 0.18);
  text-decoration: none;
}

.elo-gfollow__siga {
  font-weight: 700;
  color: #202124;
}

.elo-gfollow__g {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.elo-gfollow--mobile {
  padding: var(--space-md);
  border-bottom: 2px solid var(--elo-accent);
}

.elo-gfollow--sidebar {
  justify-content: center;
  margin: var(--space-md) 0 calc(var(--space-md) * 1.5);
}

/* ============================================
   HOME — BLOCOS DE CATEGORIA (3 estilos alternados)
   a = foto cheia + lista | b = faixa azul + 4 colunas | c = revista
   ============================================ */
.elo-sec h2, .elo-sec h3 { text-wrap: balance; }
.elo-sec h3 a { color: inherit; }
.elo-sec h3 a:hover { color: var(--elo-primary); }
.elo-sec__foto { display: block; overflow: hidden; background: var(--elo-gray-100); }
.elo-sec__foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.elo-sec article:hover .elo-sec__foto img { transform: scale(1.04); }
.elo-sec__nofoto { width: 100%; height: 100%; min-height: 100%; background: linear-gradient(135deg, #e0e0e0, #bdbdbd); }
.elo-sec__txt { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.elo-sec__tempo { color: var(--elo-gray-500); font-size: .75rem; }

/* ---------- A: foto cheia + lista ---------- */
.elo-sec-a__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.elo-sec-a__head h2 { display: flex; align-items: center; gap: 10px; font-size: 1.6rem; font-weight: 900; letter-spacing: -.01em; color: var(--elo-dark); white-space: nowrap; }
.elo-sec-a__head h2::before { content: ""; width: 8px; height: 24px; background: var(--elo-accent); border-radius: 3px; }
.elo-sec-a__linha { flex: 1; height: 2px; background: linear-gradient(90deg, var(--elo-primary) 0 80px, var(--elo-gray-200) 80px); }
.elo-sec-a__ver { font-size: .78rem; font-weight: 700; color: var(--elo-primary); border: 1.5px solid var(--elo-primary); border-radius: 999px; padding: 6px 14px; white-space: nowrap; transition: background .2s, color .2s; }
.elo-sec-a__ver:hover { background: var(--elo-primary); color: #fff; }
.elo-sec-a__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; }
.elo-sec-a__grid--solo { grid-template-columns: 1fr; }
.elo-sec-a__big { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 400px; }
.elo-sec-a__big .elo-sec__foto { position: absolute; inset: 0; }
.elo-sec-a__big::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(6,61,128,0) 35%, rgba(6,30,60,.92) 100%); }
.elo-sec-a__over { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; color: #fff; }
.elo-sec-a__over h3 { font-size: 1.45rem; font-weight: 800; line-height: 1.2; }
.elo-sec-a__over h3 a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--elo-accent); text-underline-offset: 4px; }
.elo-sec-a__over .elo-sec__tempo { color: rgba(255,255,255,.75); }
.elo-sec-a__list { background: var(--elo-white); border-radius: var(--radius-lg); padding: 6px 18px; display: flex; flex-direction: column; }
.elo-sec-a__item { display: grid; grid-template-columns: 1fr 92px; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--elo-gray-200); flex: 1; }
.elo-sec-a__item:last-child { border-bottom: 0; }
.elo-sec-a__item h3 { font-size: .95rem; font-weight: 700; line-height: 1.3; }
.elo-sec-a__item .elo-sec__foto { width: 92px; height: 72px; border-radius: var(--radius-md); }

/* ---------- B: faixa azul + 4 colunas ---------- */
.elo-sec-b__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--elo-primary); border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 12px 18px; border-bottom: 4px solid var(--elo-accent); }
.elo-sec-b__head h2 { color: #fff; font-size: 1.05rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.elo-sec-b__head a { color: #fff; font-size: .78rem; font-weight: 700; opacity: .9; white-space: nowrap; }
.elo-sec-b__head a:hover { opacity: 1; text-decoration: underline; }
.elo-sec-b__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--elo-gray-200); border-radius: 0 0 var(--radius-lg) var(--radius-lg); overflow: hidden; }
.elo-sec-b__card { background: var(--elo-white); display: flex; flex-direction: column; }
.elo-sec-b__card .elo-sec__foto { aspect-ratio: 4 / 3; }
.elo-sec-b__card .elo-sec__txt { padding: 12px 14px 16px; }
.elo-sec-b__card h3 { font-size: .92rem; font-weight: 700; line-height: 1.3; }
.elo-sec-b__card:first-child h3 { font-size: 1rem; font-weight: 800; }

/* ---------- C: revista ---------- */
.elo-sec--c { display: grid; grid-template-columns: 170px 1fr; gap: 18px; }
.elo-sec-c__side { position: relative; overflow: hidden; background: var(--elo-primary-dark); color: #fff; border-radius: var(--radius-lg); padding: 22px 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.elo-sec-c__side::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px; border: 18px solid var(--elo-accent); border-radius: 50%; }
.elo-sec-c__side small { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #bcd3f2; }
.elo-sec-c__side h2 { font-size: 1.6rem; font-weight: 900; line-height: 1.05; margin-top: 6px; overflow-wrap: anywhere; }
.elo-sec-c__side a { position: relative; z-index: 1; align-self: flex-start; font-weight: 800; font-size: .82rem; background: #fff; color: var(--elo-primary-dark); border-radius: 999px; padding: 8px 14px; white-space: nowrap; }
.elo-sec-c__side a:hover { background: var(--elo-accent); color: #fff; }
.elo-sec-c__mos { display: grid; grid-template-columns: 1.3fr 1fr; grid-auto-rows: auto; gap: 18px; }
.elo-sec-c__big { grid-row: span 2; background: var(--elo-white); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.elo-sec-c__big .elo-sec__foto { height: 230px; }
.elo-sec-c__big .elo-sec__txt { padding: 16px 18px 20px; }
.elo-sec-c__big h3 { font-size: 1.25rem; font-weight: 800; line-height: 1.22; }
.elo-sec-c__big p { color: var(--elo-gray-600); font-size: .88rem; line-height: 1.45; }
.elo-sec-c__mid { background: var(--elo-white); border-radius: var(--radius-lg); overflow: hidden; display: grid; grid-template-columns: 110px 1fr; }
.elo-sec-c__mid .elo-sec__foto { height: 100%; min-height: 110px; }
.elo-sec-c__mid .elo-sec__txt { padding: 12px 14px; justify-content: center; gap: 6px; }
.elo-sec-c__mid h3 { font-size: .9rem; font-weight: 700; line-height: 1.3; }
.elo-sec-c__lista { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.elo-sec-c__lista a { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; font-size: .92rem; line-height: 1.3; color: var(--elo-dark); padding-top: 12px; border-top: 2px solid var(--elo-gray-200); }
.elo-sec-c__lista a::before { content: ""; flex: 0 0 14px; height: 3px; margin-top: .55em; background: var(--elo-accent); border-radius: 2px; }
.elo-sec-c__lista a:hover { color: var(--elo-primary); }

@media (max-width: 760px) {
  .elo-sec-a__head h2 { font-size: 1.3rem; }
  .elo-sec-a__grid, .elo-sec--c, .elo-sec-c__mos, .elo-sec-c__lista { grid-template-columns: 1fr; }
  .elo-sec-a__big { min-height: 320px; }
  .elo-sec-a__over h3 { font-size: 1.2rem; }
  .elo-sec-b__row { grid-template-columns: repeat(4, 78%); overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .elo-sec-b__card { scroll-snap-align: start; }
  .elo-sec-c__big { grid-row: auto; }
  .elo-sec-c__side { flex-direction: row; align-items: center; padding: 16px 18px; }
  .elo-sec-c__side::after { width: 90px; height: 90px; border-width: 12px; right: -30px; bottom: -40px; }
}
@media (prefers-reduced-motion: reduce) {
  .elo-sec__foto img { transition: none; }
  .elo-sec article:hover .elo-sec__foto img { transform: none; }
}
/* chapéu nos blocos novos: tamanho de card */
.elo-sec .elo-chapeu { font-size: .6rem; padding: 3px 9px; margin: 0; }
.elo-sec-a__big .elo-chapeu, .elo-sec-c__big .elo-chapeu { font-size: .66rem; padding: 4px 11px; }
/* títulos sobre fundo escuro: branco (o tema pinta h1-h6 de escuro) */
.elo-sec-a__over h3, .elo-sec-a__over h3 a { color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.elo-sec-c__side h2, .elo-sec-b__head h2 { color: #fff; }
/* matérias médias da Revista: foto um pouco mais larga */
.elo-sec-c__mid { grid-template-columns: 130px 1fr; }
/* Revista: arco laranja da logo Elo no canto do painel (no lugar da argola) */
.elo-sec-c__side::after { border: 0; border-radius: 0; background: url(assets/elo-arco.png) no-repeat center / contain; width: 210px; height: 210px; right: -70px; bottom: -70px; }
@media (max-width: 760px) { .elo-sec-c__side::after { width: 120px; height: 120px; right: -35px; bottom: -45px; } }
/* Revista: logo Elo em meia-lua, centralizada na altura e saindo pela borda direita (espelhada) */
.elo-sec-c__side::after { width: 300px; height: 300px; top: 50%; bottom: auto; right: -150px; transform: translateY(-50%) scaleX(-1); background: url(assets/elo-arco.png) no-repeat center / contain; border: 0; }
.elo-sec-c__side h2 { overflow-wrap: normal; }
.elo-sec-c__side--longo h2 { font-size: 1.2rem; }
@media (max-width: 760px) { .elo-sec-c__side::after { width: 140px; height: 140px; right: -70px; } }
