/*
Theme Name: SeligaMT News Elementor
Theme URI: https://seligamt.com.br
Author: SeligaMT
Description: Tema WordPress do SeligaMT com estrutura compatível com Elementor, portal de notícias, áreas de publicidade e sidebar para clima e bolsa.
Version: 3.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: seligamt-news-elementor
*/

:root {
  --seliga-navy: #0B132B;
  --seliga-navy-soft: #14213D;
  --seliga-navy-dark: #071025;
  --seliga-gold: #F2C94C;
  --seliga-gold-dark: #D9A918;
  --seliga-green: #27A65A;
  --seliga-red: #D64545;
  --seliga-border: #E5E7EB;
  --seliga-muted: #4B5563;
  --seliga-light: #F8FAFC;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  color: #111827;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: var(--seliga-navy);
  text-decoration: none;
}

a:hover { color: var(--seliga-gold-dark); }

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

.container {
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
}

.site-header {
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--seliga-border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
}

.header-inner {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 86px;
}

.logo-wrap img {
  max-height: 66px;
  width: auto;
  display: block;
}

.site-title-fallback {
  font-weight: 950;
  letter-spacing: -.04em;
  color: var(--seliga-navy);
  font-size: 30px;
}

.site-title-fallback span { color: var(--seliga-gold-dark); }

.main-nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.main-nav a {
  color: var(--seliga-navy);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  position: relative;
  padding: 8px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  height: 3px;
  width: 0;
  background: var(--seliga-gold);
  transition: width .2s ease;
}

.main-nav a:hover::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--seliga-light);
  border: 1px solid var(--seliga-border);
  font-size: 20px;
}

.login-button,
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--seliga-navy);
  color: #fff;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.login-button:hover { color: #fff; background: var(--seliga-navy-soft); }

.button-primary {
  border-radius: 14px;
  background: var(--seliga-gold);
  color: var(--seliga-navy);
}

.button-primary:hover {
  background: var(--seliga-gold-dark);
  color: var(--seliga-navy);
}

.content-area { padding: 36px 0 70px; }

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) 360px;
  gap: 34px;
  align-items: start;
  padding: 30px 0 64px;
}

.hero-card {
  min-height: 420px;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(135deg, var(--seliga-navy) 0%, var(--seliga-navy-dark) 75%);
  box-shadow: 0 22px 54px rgba(11,19,43,.18);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(242,201,76,.22), transparent 34%),
    linear-gradient(180deg, rgba(11,19,43,.10), rgba(11,19,43,.90));
}

.hero-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .58;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 42px;
  color: #fff;
  max-width: 820px;
}

.badge {
  display: inline-flex;
  align-items: center;
  background: var(--seliga-gold);
  color: var(--seliga-navy);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 18px;
}

.hero-content h1 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1;
  letter-spacing: -.05em;
}

.hero-content h1 a { color: #fff; }

.hero-content p {
  margin: 0 0 26px;
  font-size: 19px;
  color: rgba(255,255,255,.86);
}

.section-title {
  color: var(--seliga-navy);
  font-size: 26px;
  line-height: 1.15;
  margin: 34px 0 18px;
  letter-spacing: -.035em;
  font-weight: 950;
  border-left: 6px solid var(--seliga-gold);
  padding-left: 14px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.news-card {
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--seliga-border);
  box-shadow: 0 12px 34px rgba(11,19,43,.06);
  overflow: hidden;
}

.news-card .wp-post-image {
  width: 100%;
  height: 185px;
  object-fit: cover;
  display: block;
}

.news-thumb {
  min-height: 185px;
  background: linear-gradient(135deg, var(--seliga-navy), var(--seliga-gold));
}

.news-card-body { padding: 18px; }

.news-card h2,
.news-card h3 {
  margin: 10px 0 10px;
  color: var(--seliga-navy);
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -.03em;
  font-weight: 950;
}

.news-card p { color: var(--seliga-muted); margin: 0 0 12px; }

.meta {
  font-size: 12px;
  color: #6B7280;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.sidebar-widget,
.widget {
  background: #fff;
  border: 1px solid var(--seliga-border);
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 12px 34px rgba(11,19,43,.05);
}

.sidebar-widget h2,
.sidebar-widget h3,
.widget-title {
  margin: 0 0 18px;
  color: var(--seliga-navy);
  font-size: 20px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-left: 6px solid var(--seliga-gold);
  padding-left: 12px;
}

.latest-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.latest-list li {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--seliga-border);
}

.latest-list li:last-child { border-bottom: 0; }

.time-pill {
  background: var(--seliga-navy);
  color: #fff;
  border-radius: 999px;
  font-weight: 950;
  font-size: 12px;
  display: inline-flex;
  height: 34px;
  align-items: center;
  justify-content: center;
}

.latest-list a {
  color: var(--seliga-navy);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 950;
}

.ad-slot {
  min-height: 92px;
  margin: 22px 0;
  border: 1px dashed #CBD5E1;
  background: #F8FAFC;
  color: #64748B;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 800;
}

.ad-sidebar { min-height: 250px; }
.ad-sidebar-tall { min-height: 600px; }

.article {
  max-width: 860px;
  margin: 0 auto;
}

.article h1 {
  color: var(--seliga-navy);
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -.055em;
  margin: 0 0 18px;
}

.article .entry-content {
  font-size: 20px;
  color: #374151;
}

.site-footer {
  background: var(--seliga-navy-dark);
  color: #fff;
  padding: 52px 0 24px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
}

.site-footer h3 {
  color: var(--seliga-gold);
  margin: 0 0 14px;
  font-size: 18px;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--seliga-gold); }

.footer-logo img {
  max-height: 82px;
  background: #fff;
  border-radius: 16px;
  padding: 8px;
}

.copyright {
  margin-top: 34px;
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 18px;
  font-size: 13px;
  color: rgba(255,255,255,.76);
  text-align: center;
}

.elementor-page .content-area,
.elementor-page .page-content {
  padding-top: 0;
}

.elementor-template-full-width .container.elementor-container-wrap {
  width: 100%;
  max-width: none;
}

@media (max-width: 1024px) {
  .header-inner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 0;
  }

  .main-nav ul { justify-content: flex-start; }
  .main-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 22px, 1180px); }
  .news-grid { grid-template-columns: 1fr; }
  .header-actions { display: none; }
  .hero-card { min-height: 470px; }
  .hero-content { padding: 28px; }
  .hero-content h1 { font-size: 36px; }
}
