:root {
  --ink: #171717;
  --muted: #667085;
  --line: #e5e7eb;
  --brand: #c1121f;
  --brand-dark: #8f0d16;
  --green: #1b7f4c;
  --gold: #d99a1e;
  --surface: #ffffff;
  --soft: #f7f7f8;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; object-fit: cover; }
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px max(16px, calc((100vw - 1180px) / 2));
  color: #fff;
  background: var(--brand-dark);
  font-size: 14px;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px max(16px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand img { object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 22px; font-weight: 700; }
.nav-links a:hover { color: var(--brand); }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  width: 42px;
  height: 42px;
  font-size: 24px;
}
.site-main { padding: 28px 0 0; }
.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}
.content-column { min-width: 0; }
.site-sidebar { position: sticky; top: 108px; }
.ad-stack h2 {
  margin: 0 0 12px;
  font-size: 18px;
  border-left: 4px solid var(--brand);
  padding-left: 10px;
}
.ad-card, .ad-placeholder {
  display: block;
  border: 1px solid var(--line);
  background: var(--soft);
  margin-bottom: 16px;
  min-height: 190px;
}
.ad-card img { width: 100%; height: 170px; }
.ad-card span, .ad-placeholder {
  padding: 12px;
  color: var(--muted);
  font-size: 14px;
}
.hero-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
  min-height: 430px;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 650ms ease;
}
.carousel-slide.is-active { opacity: 1; position: relative; }
.carousel-slide img { width: 100%; height: 430px; filter: brightness(.68); }
.carousel-caption {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 34px;
  color: #fff;
  max-width: 720px;
}
.carousel-caption h1 {
  margin: 6px 0 10px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.02;
}
.eyebrow, .tag {
  display: inline-block;
  color: var(--brand);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 12px;
}
.carousel-caption .eyebrow { color: #fff; }
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.88);
  font-size: 30px;
}
.carousel-control.prev { left: 16px; }
.carousel-control.next { right: 16px; }
.content-section { margin-top: 34px; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--line);
}
.section-heading h2 {
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--brand);
  font-size: 25px;
}
.section-heading a { color: var(--brand); font-weight: 700; margin-bottom: 10px; }
.card-grid, .region-grid, .city-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.card-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.news-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}
.news-card img { width: 100%; height: 190px; }
.news-card div { padding: 14px; }
.news-card h3 { margin: 6px 0 8px; font-size: 19px; line-height: 1.25; }
.news-card p { margin: 0; color: var(--muted); font-size: 14px; }
.event-list { display: grid; gap: 10px; }
.event-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.event-row span { color: var(--muted); }
.page-hero {
  min-height: 270px;
  display: flex;
  align-items: end;
  padding: 34px;
  color: #fff;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(0,0,0,.7), rgba(0,0,0,.25)), url('../img/hero/h1_hero.jpg') center/cover;
}
.page-hero h1 { margin: 6px 0; font-size: clamp(34px, 5vw, 54px); line-height: 1.05; }
.page-hero p { max-width: 660px; margin: 0; }
.city-hero { background-image: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.22)), var(--hero-image); }
.region-card, .city-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  background: #222;
}
.region-card img, .city-card img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  filter: brightness(.68);
  transition: transform 250ms ease;
}
.region-card:hover img, .city-card:hover img { transform: scale(1.04); }
.region-card span, .city-card span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 38px;
  font-weight: 800;
  font-size: 22px;
}
.region-card small, .city-card small {
  position: absolute;
  left: 18px;
  bottom: 16px;
}
.search-panel {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}
.search-panel label { display: block; font-weight: 800; margin-bottom: 8px; }
.search-panel div { display: flex; gap: 10px; }
.search-panel input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
}
.search-panel button, .btn-primary, .newsletter button {
  border: 0;
  border-radius: 6px;
  padding: 12px 18px;
  color: #fff;
  background: var(--brand);
  font-weight: 800;
}
.regional-ads { display: grid; gap: 14px; margin-top: 22px; }
.wide-ad img { width: 100%; max-height: 180px; border-radius: 8px; }
.article-detail header { margin-bottom: 20px; }
.article-detail h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.04; margin: 8px 0 12px; }
.lead { font-size: 21px; color: var(--muted); }
.meta { color: var(--muted); font-size: 14px; }
.article-cover { width: 100%; border-radius: 8px; margin-bottom: 24px; }
.article-body { font-size: 19px; }
.article-body p { margin: 0 0 18px; }
.site-footer {
  margin-top: 48px;
  padding: 32px max(16px, calc((100vw - 1180px) / 2));
  color: #fff;
  background: #151515;
  display: flex;
  justify-content: space-between;
  gap: 30px;
}
.newsletter label { display: block; margin-bottom: 8px; font-weight: 800; }
.newsletter div { display: flex; gap: 8px; }
.newsletter input { min-width: 260px; border: 0; border-radius: 6px; padding: 12px; }

@media (max-width: 980px) {
  .page-shell { grid-template-columns: 1fr; }
  .site-sidebar { position: static; }
  .card-grid, .region-grid, .city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .topbar { display: none; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav-links {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links.is-open { display: flex; }
  .hero-carousel, .carousel-slide img { min-height: 360px; height: 360px; }
  .carousel-caption { left: 20px; right: 20px; bottom: 24px; }
  .card-grid, .card-grid.compact, .region-grid, .city-grid { grid-template-columns: 1fr; }
  .event-row, .site-footer, .search-panel div { flex-direction: column; }
  .newsletter input { min-width: 0; width: 100%; }
}

/* MVC bindings for the original News template. */
body { font-family: "Roboto", Arial, sans-serif; color: #051441; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 9999; padding: 12px 16px; background: #051441; color: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #fc3f00; outline-offset: 3px; }
.site-main { padding: 44px 0 10px; }
.site-main > .container { max-width: 1200px; }
.header-top { min-height: 44px; }
.header-info-left ul, .header-info-right ul { margin: 0; }
.header-info-left li { color: #fff; }
.header-mid { padding: 22px 0; }
.site-wordmark { display: inline-flex; flex-direction: column; color: #051441; line-height: 1; }
.site-wordmark strong { font-size: 34px; font-weight: 900; letter-spacing: 0; }
.site-wordmark strong::first-letter { color: #fc3f00; }
.site-wordmark span { margin-top: 8px; color: #506172; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0; }
.site-wordmark:hover { color: #051441; }
.site-wordmark.compact strong { font-size: 22px; }
.site-wordmark.compact span { margin-top: 4px; font-size: 9px; }
.header-banner img { max-height: 90px; object-fit: cover; }
.header-bottom { background: #fff; border-top: 1px solid #f0f0f0; border-bottom: 1px solid #e9e9e9; }
.main-menu ul li a { color: #051441; }
.main-menu ul li { margin-left: 20px; }
.main-menu ul li:first-child { margin-left: 0; }
.main-menu ul li .submenu { width: 230px; max-height: 430px; overflow-y: auto; }
.main-menu ul li .submenu li { margin-left: 0; }
.sticky-logo img { max-width: 160px; }
.legacy-mobile-toggle { width: 100%; padding: 11px 14px; border: 0; background: #4c4c4c; color: #fff; text-align: right; font-weight: 700; }
.legacy-mobile-menu { display: none; background: #4c4c4c; padding: 5px 16px 14px; }
.legacy-mobile-menu.is-open { display: flex; flex-direction: column; }
.legacy-mobile-menu a { color: #fff; padding: 9px 6px; border-bottom: 1px solid rgba(255,255,255,.12); }
.mvc-trending { margin-bottom: 28px; min-height: 40px; display: flex; align-items: center; }
.mvc-trending strong { flex: 0 0 auto; }
.mvc-trending p { margin: 0 0 0 20px; color: #506172; }
.hero-carousel { min-height: 430px; margin-bottom: 45px; border-radius: 0; }
.carousel-slide img { height: 430px; }
.carousel-caption { left: 36px; right: 36px; bottom: 38px; }
.carousel-caption h1 { font-family: "Roboto", Arial, sans-serif; font-size: 40px; font-weight: 700; line-height: 1.18; }
.carousel-control { border-radius: 0; background: rgba(0,0,0,.45); color: #fff; }
.content-section { margin-top: 0; padding: 28px 0 22px; }
.section-tittle { border-bottom: 1px solid #e7e7e7; margin-bottom: 25px; }
.section-tittle h3 { display: inline-block; margin: 0; padding-bottom: 13px; border-bottom: 3px solid #fc3f00; color: #051441; font-size: 25px; font-weight: 700; }
.card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 22px; }
.news-card, .legacy-news-card { border: 0; border-radius: 0; overflow: visible; }
.news-card img { height: 210px; transition: transform .3s ease; }
.news-card a { overflow: hidden; display: block; }
.news-card a:hover img { transform: scale(1.03); }
.news-card div { padding: 18px 0 0; }
.news-card .tag { background: #fff9c6; color: #fc3f00; padding: 5px 10px; text-transform: none; font-weight: 500; }
.news-card h3 { color: #051441; font-size: 20px; line-height: 1.35; font-weight: 700; }
.news-card h3 a:hover { color: #fc3f00; }
.news-card p { color: #506172; line-height: 1.6; }
.site-sidebar { position: static; padding-left: 20px; }
.ad-stack { margin-top: 68px; }
.ad-stack h2 { border-left: 0; border-bottom: 3px solid #fc3f00; padding: 0 0 12px; color: #051441; font-size: 22px; }
.ad-card, .ad-placeholder { border: 0; background: #f6f6f6; margin-bottom: 30px; }
.ad-card img { width: 100%; height: auto; min-height: 180px; }
.ad-card span { display: block; padding: 11px 0; color: #506172; }
.event-row { border: 0; border-radius: 0; border-bottom: 1px solid #eee; padding: 16px 0; }
.page-hero, .region-card, .city-card, .article-cover, .wide-ad img { border-radius: 0; }
.search-panel { border-radius: 0; border-color: #e7e7e7; }
.search-panel button, .btn-primary, .newsletter button { border-radius: 0; background: #fc3f00; }
.footer-area { margin-top: 60px; }
.page-heading { padding: 20px 0 25px; border-bottom: 1px solid #eee; }
.page-heading h1 { margin: 8px 0; color: #051441; font-size: 42px; }
.page-heading p, .empty-state { color: #506172; }

/* Single post, based on single-blog.html. */
.article-breadcrumb { margin: 8px 0 30px; font-size: 14px; color: #506172; }
.article-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.article-breadcrumb a { color: #fc3f00; text-decoration: underline; text-underline-offset: 3px; }
.accessible-article { color: #102039; }
.article-header { margin-bottom: 28px; }
.article-kicker { display: inline-block; margin-bottom: 14px; padding: 6px 11px; background: #fc3f00; color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.article-header h1 { margin: 0; color: #051441; font-size: 44px; line-height: 1.12; font-weight: 800; }
.article-deck { margin: 18px 0; color: #506172; font-size: 21px; line-height: 1.55; }
.article-byline { display: flex; flex-wrap: wrap; gap: 12px 22px; padding-top: 16px; border-top: 1px solid #eee; color: #667085; font-size: 14px; }
.article-byline i { margin-right: 6px; color: #fc3f00; }
.article-feature { margin: 0 0 30px; }
.article-feature img { width: 100%; max-height: 540px; object-fit: cover; }
.article-feature figcaption { padding-top: 8px; color: #667085; font-size: 13px; }
.accessible-article .blog_details { padding: 0; box-shadow: none; }
.article-summary { margin: 0 0 30px; padding: 22px 24px; border-left: 4px solid #fc3f00; background: #f7f7f7; }
.article-summary h2 { margin: 0 0 8px; color: #051441; font-size: 20px; }
.article-summary p { margin: 0; color: #344054; font-size: 17px; line-height: 1.6; }
.accessible-article .article-body { max-width: 760px; color: #25364d; font-size: 18px; line-height: 1.85; }
.accessible-article .article-body p { margin-bottom: 24px; }
.accessible-article .article-body .excert { color: #102039; font-size: 20px; font-weight: 500; }
.context-note { display: flex; gap: 14px; margin: 30px 0; padding: 18px 20px; border: 1px solid #e5e7eb; background: #fff; }
.context-note i { margin-top: 3px; color: #fc3f00; font-size: 20px; }
.context-note div { display: flex; flex-direction: column; gap: 3px; }
.context-note span { color: #506172; }
.article-actions { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 38px; padding: 20px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.article-actions p { margin: 0; color: #667085; }
.share-links { display: flex; align-items: center; gap: 9px; }
.share-links > span { margin-right: 4px; font-weight: 700; }
.share-links a { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid #d0d5dd; color: #051441; }
.share-links a:hover { border-color: #fc3f00; background: #fc3f00; color: #fff; }
.accessible-article .blog-author { display: flex; align-items: center; gap: 20px; margin: 35px 0 55px; padding: 26px; background: #fbf9ff; }
.author-avatar { display: grid; flex: 0 0 72px; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: #051441; color: #fff; font-size: 26px; }
.blog-author h2 { margin: 0 0 8px; color: #051441; font-size: 20px; }
.blog-author p { margin: 0; color: #506172; line-height: 1.6; }
.related-content { margin-bottom: 30px; }
.related-content .section-tittle { margin-bottom: 25px; }
.related-content .section-tittle h2 { display: inline-block; margin: 0; padding-bottom: 12px; border-bottom: 3px solid #fc3f00; color: #051441; font-size: 25px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.related-card { min-width: 0; }
.related-card img { width: 100%; height: 150px; object-fit: cover; }
.related-card div { padding-top: 12px; }
.related-card span { color: #fc3f00; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.related-card h3 { margin: 7px 0; color: #051441; font-size: 17px; line-height: 1.35; }
.related-card h3 a:hover { color: #fc3f00; }
.related-card p { margin: 0; color: #667085; font-size: 13px; line-height: 1.5; }
.newsletter div { display: flex; }
.newsletter input { min-width: 0; flex: 1; border-radius: 0; }
.newsletter button { flex: 0 0 auto; }

@media (max-width: 991px) {
  .site-sidebar { padding-left: 0; }
  .ad-stack { margin-top: 25px; }
}
@media (max-width: 767px) {
  .site-main { padding-top: 24px; }
  .mvc-trending { display: block; }
  .mvc-trending p { margin: 12px 0 0; }
  .hero-carousel, .carousel-slide img { height: 340px; min-height: 340px; }
  .carousel-caption h1 { font-size: 27px; }
  .card-grid, .card-grid.compact { grid-template-columns: 1fr; }
  .news-card img { height: 230px; }
  .article-header h1 { font-size: 34px; }
  .article-deck { font-size: 18px; }
  .article-actions { align-items: flex-start; flex-direction: column; }
  .accessible-article .blog-author { align-items: flex-start; flex-direction: column; }
  .related-grid { grid-template-columns: 1fr; }
  .related-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; }
  .related-card img { height: 100px; }
  .related-card div { padding-top: 0; }
}

/* Home keeps the original index.html composition while data comes from MVC. */
.home-main { padding-top: 0; }
.site-main > .trending-area { padding-top: 0; }
.trending-area .hero-carousel { min-height: 466px; margin-bottom: 30px; }
.trending-area .carousel-slide,
.trending-area .carousel-slide .trend-top-img,
.trending-area .carousel-slide .trend-top-img img { height: 466px; }
.trending-area .carousel-slide .trend-top-img img { width: 100%; object-fit: cover; }
.trending-area .carousel-caption { left: 30px; right: 30px; bottom: 25px; max-width: 650px; }
.trending-area .carousel-caption h1 { margin: 8px 0; color: #fff; font-size: 34px; }
.trending-area .carousel-caption p { color: #fff; margin: 0; }
.trending-bottom .trend-bottom-img img { width: 100%; height: 170px; object-fit: cover; }
.trand-right-single { min-height: 100px; }
.trand-right-img { flex: 0 0 120px; }
.trand-right-img img { width: 120px; height: 100px; object-fit: cover; }
.trand-right-cap { min-width: 0; }
.trand-right-cap h4 { line-height: 1.3; }
.home-horizontal-grid { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.weekly-single, .weekly2-single { min-width: 0; }
.weekly-img img, .weekly2-img img { width: 100%; height: 210px; object-fit: cover; }
.weekly-caption h4, .weekly2-caption h4 { margin-top: 8px; font-size: 18px; line-height: 1.35; }
.home-editorial-section { margin-bottom: 15px; }
.single-what-news .what-img img { width: 100%; height: 220px; object-fit: cover; }
.single-what-news .what-cap { padding-top: 16px; }
.single-what-news .what-cap h4 { margin: 8px 0; font-size: 20px; line-height: 1.35; }
.single-what-news .what-cap p { color: #506172; line-height: 1.6; }
.whats-news-area .site-sidebar { padding-left: 20px; }
.whats-news-area .ad-stack { margin-top: 0; }
.weekly2-news-area { padding-top: 55px; padding-bottom: 55px; }
.youtube-area .video-img img { width: 100%; height: 315px; object-fit: cover; }
.youtube-area .col-lg-4 .video-img img { height: 190px; }
.youtube-area .video-caption h3 { font-size: 21px; line-height: 1.35; }
.recent-articles { padding: 65px 0; }

@media (max-width: 991px) {
  .home-horizontal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .whats-news-area .site-sidebar { padding-left: 0; }
  .trand-right-single { margin-top: 15px; }
}
@media (max-width: 767px) {
  .site-main > .trending-area { padding-top: 0; }
  .trending-area .hero-carousel,
  .trending-area .carousel-slide,
  .trending-area .carousel-slide .trend-top-img,
  .trending-area .carousel-slide .trend-top-img img { height: 360px; min-height: 360px; }
  .trending-area .carousel-caption h1 { font-size: 26px; }
  .home-horizontal-grid { grid-template-columns: 1fr; }
  .weekly-img img, .weekly2-img img, .single-what-news .what-img img { height: 230px; }
}

/* ==========================================================================
   Novas Funcionalidades: Busca, Contato, Comentários, Enquete, Paginação
   ========================================================================== */

/* 1. Busca Funcional no Header */
.search-toggle-btn {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--ink);
  font-size: 18px;
  transition: color 0.2s ease;
}
.search-toggle-btn:hover {
  color: var(--brand);
}
.header-search-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  padding: 16px max(16px, calc((100vw - 1180px) / 2));
  z-index: 100;
  display: none;
  border-top: 1px solid var(--line);
  border-bottom: 2px solid var(--brand);
}
.header-search-panel.is-open {
  display: block;
  animation: searchSlideDown 0.25s ease-out forwards;
}
@keyframes searchSlideDown {
  from { transform: translateY(-10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.header-search-form {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-search-input {
  flex: 1;
  border: 1px solid var(--line);
  padding: 12px 16px;
  font-size: 16px;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s ease;
}
.header-search-input:focus {
  border-color: var(--brand);
}
.header-search-submit, .header-search-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--muted);
  padding: 8px;
  transition: color 0.2s ease;
}
.header-search-submit:hover { color: var(--brand); }
.header-search-close:hover { color: #dc3545; }

/* Página de resultados de busca & empty state */
.search-count {
  color: var(--muted);
  font-size: 15px;
  margin-top: 5px;
}
.search-empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--soft);
  border-radius: 8px;
  margin: 30px 0;
}
.search-empty i {
  color: var(--muted);
  margin-bottom: 16px;
  opacity: 0.5;
}
.search-empty p {
  font-size: 16px;
  color: var(--muted);
  margin: 4px 0;
}

/* 2. Formulário de Contato e Elementos de Form */
.contact-page-wrap {
  margin-bottom: 50px;
}
.site-form .form-control {
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 4px;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-form .form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(193, 18, 31, 0.15);
  outline: none;
}
.site-form label {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
}
.site-form .required {
  color: var(--brand);
  margin-left: 2px;
}
.char-counter {
  display: block;
  text-align: right;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.char-counter.counter-over {
  color: #dc3545;
  font-weight: bold;
}
.btn-submit-primary {
  background: var(--brand);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-submit-primary:hover {
  background: var(--brand-dark);
}
.btn-submit-primary:active {
  transform: scale(0.98);
}
.btn-submit-primary:disabled {
  background: var(--muted);
  cursor: not-allowed;
}

/* Informações de contato lateral */
.contact-info-box {
  background: var(--soft);
  padding: 30px;
  border-radius: 8px;
  border-top: 4px solid var(--brand);
  margin-top: 30px;
}
.contact-info-box h3 {
  margin-top: 0;
  font-size: 20px;
  margin-bottom: 20px;
}
.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.contact-info-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 15px;
}
.contact-info-list li i {
  color: var(--brand);
  width: 16px;
}
.contact-social {
  display: flex;
  gap: 12px;
}
.contact-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  transition: all 0.2s ease;
}
.contact-social a:hover {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
}

/* 3. Tags no Artigo */
.article-tags {
  margin: 24px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.article-tags i {
  color: var(--muted);
  margin-right: 4px;
}
.tag-chip {
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 16px;
  color: var(--ink);
  transition: all 0.2s ease;
}
.tag-chip:hover {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
}
.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(193, 18, 31, 0.1);
  color: var(--brand);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

/* 4. Comentários */
.comments-section {
  border-top: 2px solid var(--line);
  padding-top: 30px;
  margin-top: 40px;
}
.comments-list {
  margin-bottom: 40px;
}
.comment-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.comment-avatar {
  width: 44px;
  height: 44px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  flex-shrink: 0;
}
.comment-body {
  flex-grow: 1;
}
.comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
.comment-meta strong {
  color: var(--ink);
  font-size: 15px;
}
.comment-city {
  background: var(--soft);
  font-size: 11px;
  color: var(--muted);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--line);
}
.comment-meta time {
  font-size: 12px;
  color: var(--muted);
  margin-left: auto;
}
.comment-body p {
  margin: 0;
  font-size: 14.5px;
  color: #333333;
}
.comments-empty {
  text-align: center;
  padding: 30px;
  color: var(--muted);
  background: var(--soft);
  border-radius: 8px;
  margin-bottom: 40px;
  font-style: italic;
}
.comment-form-wrap {
  background: var(--soft);
  padding: 30px;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.comment-form-wrap h3 {
  margin-top: 0;
  font-size: 20px;
  margin-bottom: 20px;
}
.comment-notice {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

/* 5. Enquetes na Sidebar */
.sidebar-poll {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.sidebar-poll h2 {
  margin: 0 0 16px;
  font-size: 18px;
  border-left: 4px solid var(--brand);
  padding-left: 10px;
  color: var(--ink);
}
.poll-question {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 16px;
  color: var(--ink);
}
.poll-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.poll-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
  background: var(--soft);
}
.poll-option:hover {
  border-color: var(--brand);
  background: #ffffff;
}
.poll-option input[type="radio"] {
  accent-color: var(--brand);
}
.poll-submit {
  width: 100%;
  background: var(--brand);
  color: #ffffff;
  border: none;
  padding: 10px;
  font-weight: 700;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.poll-submit:hover {
  background: var(--brand-dark);
}
.poll-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.poll-result-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  background: var(--soft);
}
.poll-result-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: rgba(193, 18, 31, 0.12);
  width: 0;
  width: var(--pct);
  transition: width 0.6s cubic-bezier(0.1, 0.8, 0.2, 1);
}
.poll-result-label {
  position: relative;
  z-index: 2;
}
.poll-result-pct {
  position: relative;
  z-index: 2;
  color: var(--brand);
  font-weight: 700;
}
.poll-results small {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
  display: block;
}

/* Newsletter no Footer */
.footer-newsletter-desc {
  color: #a0aec0;
  font-size: 14px;
  margin-bottom: 12px;
}
.newsletter-row {
  display: flex;
  gap: 8px;
}
.newsletter-row input {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  padding: 10px 14px;
  font-size: 14px;
  border-radius: 4px;
  outline: none;
}
.newsletter-row input:focus {
  border-color: var(--brand);
}
.newsletter-row button {
  background: var(--brand);
  color: #ffffff;
  border: none;
  padding: 10px 16px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.newsletter-row button:hover {
  background: var(--brand-dark);
}
.newsletter-privacy {
  display: block;
  color: #718096;
  font-size: 11px;
  margin-top: 6px;
}

/* 6. Paginação Pública */
.site-pagination {
  margin: 30px 0;
  display: flex;
  justify-content: center;
}
.site-pagination ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 6px;
  align-items: center;
}
.site-pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  font-weight: 600;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.2s ease;
}
.site-pagination a:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--soft);
}
.site-pagination a.active {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
  cursor: default;
}
.site-pagination .ellipsis {
  color: var(--muted);
  padding: 0 4px;
  font-weight: bold;
}

/* Alerts customizados */
.site-alert {
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 14.5px;
  line-height: 1.4;
}
.site-alert.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.site-alert.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ==========================================================================
   Acessibilidade WCAG 2.1 AA & Alto Contraste
   ========================================================================== */
.accessibility-bar {
  background: #f8f9fa;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  font-size: 13px;
  color: #4a5568;
}
.accessibility-label {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.accessibility-controls {
  display: flex;
  gap: 8px;
}
.accessibility-controls button {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  color: #4a5568;
  transition: all 0.2s ease;
}
.accessibility-controls button:hover {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
}

/* Regras Globais de Alto Contraste */
body.high-contrast {
  --ink: #ffffff !important;
  --muted: #e2e8f0 !important;
  --line: #475569 !important;
  --brand: #ffff00 !important;
  --brand-dark: #ffff00 !important;
  --green: #00ff00 !important;
  --gold: #ffff00 !important;
  --surface: #000000 !important;
  --soft: #0f172a !important;
  background: #000000 !important;
  color: #ffffff !important;
}
body.high-contrast * {
  background-color: #000000 !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
body.high-contrast a, body.high-contrast a * {
  color: #ffff00 !important;
  text-decoration: underline !important;
}
body.high-contrast a:hover, body.high-contrast a:hover * {
  color: #00ffff !important;
}
body.high-contrast button, body.high-contrast input, body.high-contrast select, body.high-contrast textarea {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 1px solid #ffffff !important;
}
body.high-contrast .btn-submit-primary,
body.high-contrast .primary-action,
body.high-contrast .poll-submit,
body.high-contrast .btn-favorite-city,
body.high-contrast .btn-banner-action {
  background-color: #ffff00 !important;
  color: #000000 !important;
  font-weight: bold !important;
  text-decoration: none !important;
}
body.high-contrast .btn-submit-primary *,
body.high-contrast .primary-action *,
body.high-contrast .poll-submit *,
body.high-contrast .btn-favorite-city *,
body.high-contrast .btn-banner-action * {
  color: #000000 !important;
}

/* 4 Font Size Categories */
body.font-size-sm { font-size: 13.5px !important; }
body.font-size-md { font-size: 15.5px !important; }
body.font-size-lg { font-size: 18px !important; }
body.font-size-xl { font-size: 21px !important; }

/* Skip Link styling */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--brand);
  color: #ffffff;
  padding: 12px 24px;
  z-index: 10000;
  font-weight: 700;
  border-radius: 4px;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
  outline: 3px solid #ffeb3b;
}

/* ==========================================================================
   Fact-Checking Module ("Fato ou Fake")
   ========================================================================== */
.factcheck-box {
  border-left: 6px solid #a0aec0;
  border-radius: 6px;
  padding: 20px;
  margin: 24px 0;
  background: var(--soft);
}
.factcheck-header {
  margin-bottom: 12px;
}
.factcheck-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  margin: 0;
}
.factcheck-claim {
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 6px 0;
}
.factcheck-source {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* Status variants */
.factcheck-fato {
  border-left-color: #319795;
  background: #e6fffa;
}
.factcheck-fato .factcheck-badge {
  color: #234e52;
}
.factcheck-fake {
  border-left-color: #e53e3e;
  background: #fff5f5;
}
.factcheck-fake .factcheck-badge {
  color: #742a2a;
}
.factcheck-impreciso {
  border-left-color: #dd6b20;
  background: #fffaf0;
}
.factcheck-impreciso .factcheck-badge {
  color: #7b341e;
}

/* ==========================================================================
   Dashboard local (city.php)
   ========================================================================== */
.city-dashboard-wrap {
  margin-top: 30px;
  margin-bottom: 30px;
}
.dashboard-local-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  height: 100%;
}
.dashboard-local-card h3 {
  margin-top: 0;
  font-size: 17px;
  border-left: 4px solid var(--brand);
  padding-left: 10px;
  margin-bottom: 20px;
  color: var(--ink);
}
.local-alerts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.alert-item {
  display: flex;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 6px;
  border-left: 4px solid #cbd5e1;
  background: #f8fafc;
}
.alert-item.severity-info {
  border-left-color: #3182ce;
  background: #ebf8ff;
}
.alert-item.severity-info .alert-icon { color: #2b6cb0; }
.alert-item.severity-warning {
  border-left-color: #dd6b20;
  background: #fffaf0;
}
.alert-item.severity-warning .alert-icon { color: #dd6b20; }
.alert-item.severity-danger {
  border-left-color: #e53e3e;
  background: #fff5f5;
}
.alert-item.severity-danger .alert-icon { color: #c53030; }

.alert-icon {
  font-size: 18px;
  flex-shrink: 0;
}
.alert-content {
  flex-grow: 1;
}
.alert-content strong {
  display: block;
  font-size: 14.5px;
  color: var(--ink);
  margin-bottom: 4px;
}
.alert-content p {
  margin: 0 0 6px 0;
  font-size: 13.5px;
  color: #4a5568;
  line-height: 1.4;
}
.alert-content small {
  color: var(--muted);
  font-size: 11px;
}
.empty-alerts {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}
.empty-alerts i {
  color: #48bb78;
  margin-bottom: 12px;
  opacity: 0.8;
}
.empty-alerts p {
  margin: 0;
  font-size: 14px;
}

/* Clima Card */
.weather-card .weather-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px 0;
}
.weather-info .temp {
  font-size: 40px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
}
.weather-info .condition {
  font-weight: 700;
  font-size: 15px;
  margin: 8px 0 4px;
}
.weather-info small {
  color: var(--muted);
  font-size: 12px;
}

/* Telefones úteis */
.utility-phones {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.utility-phones li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  font-size: 13.5px;
}
.utility-phones li:last-child {
  border-bottom: none;
}
.utility-phones span {
  color: #4a5568;
}
.utility-phones strong {
  color: var(--brand);
}

/* Personalização Favorito */
.favorite-action-wrap {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.btn-favorite-city {
  background: var(--brand);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-favorite-city:hover {
  background: var(--brand-dark);
}
.btn-favorite-city.remove {
  background: #cbd5e1;
  color: #475569;
}
.btn-favorite-city.remove:hover {
  background: #94a3b8;
}
.badge-favorite-city {
  background: #2f855a;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Banner de cidade favorita na Home */
.favorite-city-banner {
  background: #2d3748;
  color: #ffffff;
  padding: 12px 0;
  font-size: 14.5px;
  border-bottom: 2px solid var(--brand);
}
.favorite-city-banner .btn-banner-action {
  background: var(--brand);
  color: #ffffff;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  transition: background 0.2s ease;
}
.favorite-city-banner .btn-banner-action:hover {
  background: var(--brand-dark);
  text-decoration: none;
}

/* Ticker de Alertas na Home */
.home-local-alerts {
  background: #fff5f5;
  border: 1px solid #feb2b2;
  border-radius: 6px;
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.alerts-heading {
  font-weight: 800;
  color: #c53030;
  font-size: 13px;
  flex-shrink: 0;
}
.alerts-ticker {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ticker-item {
  font-size: 13.5px;
  line-height: 1.3;
}
.ticker-item.severity-danger { color: #9b2c2c; }
.ticker-item.severity-warning { color: #dd6b20; }
.ticker-item.severity-info { color: #2b6cb0; }
.empty-news {
  text-align: center;
  color: var(--muted);
  padding: 30px;
  font-style: italic;
}

/* ==========================================================================
   Carrossel de Publicidade Responsivo (1920x400)
   ========================================================================== */
.advertising-carousel-container {
  width: 100%;
  margin-bottom: 20px;
  background: #f1f5f9;
}
.advertising-carousel {
  width: 100%;
  position: relative;
  aspect-ratio: 1920 / 400;
  overflow: hidden;
  outline: none;
}
.advertising-carousel:focus-visible {
  outline: 3px solid var(--brand);
}
.carousel-inner {
  width: 100%;
  height: 100%;
  position: relative;
}
.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.8s ease-in-out;
  pointer-events: none;
}
.carousel-item.active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}
.carousel-link {
  display: block;
  width: 100%;
  height: 100%;
}
.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Controles de Navegação (Setas) */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff !important;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.carousel-control:hover {
  background: rgba(0, 0, 0, 0.7);
}
.carousel-control.prev { left: 16px; }
.carousel-control.next { right: 16px; }

/* Indicadores de Posição (Bullets) */
.carousel-indicators {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}
.indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.2);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease;
}
.indicator-dot.active {
  background: #ffffff;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}
.indicator-dot:focus {
  outline: 2px solid var(--brand);
}

/* Botão Oculto para Pular Carrossel (Leitores de tela / Teclado) */
.skip-carousel-btn {
  position: absolute;
  top: -100px;
  left: 10px;
  z-index: 999;
  background: var(--brand);
  color: #000000;
  font-weight: bold;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  transition: top 0.2s ease;
}
.skip-carousel-btn:focus {
  top: 10px;
  outline: 3px solid #ffff00;
}



