@charset "UTF-8";
/*!
Theme Name: Maricá em Destaque
Theme URI: https://mariacaemdestaque.com.br
Author: Equipe Maricá em Destaque
Author URI: https://mariacaemdestaque.com.br
Description: Tema de blog/portal de notícias responsivo para Maricá em Destaque, com suporte a modo claro e escuro. Layout inspirado no template MetaBlog (Home, Blog Listing e Single Post).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: marica-em-destaque
*/
:root {
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --border: #e7e9ee;
  --text: #1a1d29;
  --text-muted: #6b7280;
  --card-shadow: 0 1px 3px rgba(16, 20, 30, 0.06);
  --tag-bg: #eef0ff;
  --toggle-dot-x: 2px;
  color-scheme: light;
}

:root[data-theme=dark] {
  --bg: #0f1320;
  --bg-alt: #171b28;
  --border: #262b3d;
  --text: #f2f3f7;
  --text-muted: #9aa1b4;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  --tag-bg: rgba(54, 84, 240, .18);
  --toggle-dot-x: 18px;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --bg: #0f1320;
    --bg-alt: #171b28;
    --border: #262b3d;
    --text: #f2f3f7;
    --text-muted: #9aa1b4;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    --tag-bg: rgba(54, 84, 240, .18);
    --toggle-dot-x: 18px;
    color-scheme: dark;
  }
}
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  transition: background-color 0.2s ease, color 0.2s ease;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  overflow: hidden;
  height: 1px;
  width: 1px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: #3654f0;
  color: #fff;
}
.btn-primary:hover {
  background: #2b44c9;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover {
  border-color: #3654f0;
  color: #3654f0;
}

.tag {
  display: inline-block;
  padding: 0.28rem 0.55rem;
  border-radius: 4px;
  background: var(--tag-bg);
  color: #3654f0;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  background: linear-gradient(135deg, #3654f0, #2b44c9);
}
.thumb-placeholder span {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.post-meta img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
}
.post-meta .post-meta__sep {
  opacity: 0.5;
}

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}
.site-header .site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  white-space: nowrap;
}
.site-header .site-logo img {
  height: 32px;
  width: auto;
}

.site-logo-text {
  color: #3654f0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.main-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
}
.main-nav a:hover, .main-nav a.current-menu-item {
  color: #3654f0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.header-search input {
  border: none;
  background: transparent;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text);
  width: 140px;
}
.header-search input:focus {
  outline: none;
}
.header-search button {
  padding: 0.5rem 0.75rem;
  color: var(--text-muted);
}

.theme-toggle {
  width: 40px;
  height: 24px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  position: relative;
  flex-shrink: 0;
}
.theme-toggle .theme-toggle__dot {
  position: absolute;
  top: 2px;
  left: var(--toggle-dot-x);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #3654f0;
  transition: left 0.2s ease;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
}

.page-header {
  text-align: center;
  padding: 2.5rem 0 1.5rem;
}
.page-header h1 {
  font-size: 2rem;
  margin: 0 0 0.5rem;
}
.page-header .breadcrumb {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.page-header .breadcrumb a:hover {
  color: #3654f0;
}
.page-header .breadcrumb .sep {
  margin: 0 0.35rem;
}

.hero {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin-block: 1.5rem;
}

.hero-slides {
  position: relative;
  aspect-ratio: 16/7;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.hero-slide .hero-slide__link {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.hero-slide .hero-card {
  position: absolute;
  left: 1.75rem;
  bottom: 1.75rem;
  right: 1.75rem;
  max-width: 500px;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  border-radius: 6px;
  padding: 1.25rem;
  box-shadow: var(--card-shadow);
}
.hero-slide .hero-card .tag {
  margin-bottom: 0.6rem;
  background: #3654f0;
  color: #fff;
}
.hero-slide .hero-card h2 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 0 0 0.6rem;
}
.hero-slide .hero-card h2 a {
  color: var(--text);
}
.hero-slide .hero-card .post-meta {
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
}
.hero-slide .hero-card .post-meta span:not(.post-meta__sep) {
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 19, 32, 0.45);
  color: #fff;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}
.hero-arrow:hover {
  background: rgba(15, 19, 32, 0.7);
}
.hero-arrow--prev {
  left: 1rem;
}
.hero-arrow--next {
  right: 1rem;
}

.hero:hover .hero-arrow,
.hero-arrow:focus-visible {
  opacity: 1;
}

@media (hover: none) {
  .hero-arrow {
    opacity: 1;
  }
}
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 2;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-radius 0.35s ease, transform 0.15s ease;
}
.hero-dot:hover {
  transform: scale(1.2);
}
.hero-dot.is-active {
  width: 34px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.3);
}
.hero-dot.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left;
  animation: hero-dot-fill var(--hero-interval, 7s) linear forwards;
}

.hero.is-paused .hero-dot.is-active::after {
  animation-play-state: paused;
}

@keyframes hero-dot-fill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
.section-title {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 2rem 0 1.25rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.section-header .section-title {
  margin-bottom: 1.25rem;
}

.section-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #3654f0;
  white-space: nowrap;
}
.section-link:hover {
  text-decoration: underline;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.post-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.post-card .post-card__thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.post-card .post-card__thumb img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.post-card .thumb-placeholder {
  font-size: 0.8125rem;
}
.post-card .tag {
  padding-inline: 0.35rem;
  letter-spacing: 0.01em;
  align-self: flex-start;
}
.post-card .post-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}
.post-card h3 {
  font-size: 1.125rem;
  line-height: 1.4;
  margin: 0;
}
.post-card h3 a {
  color: var(--text);
}
.post-card h3 a:hover {
  color: #3654f0;
}
.post-card .post-meta {
  margin-top: auto;
}

.load-more-wrap {
  text-align: center;
  margin: 2.5rem 0;
}

.ad-slot {
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: 6px;
  text-align: center;
  padding: 1.5rem;
  margin-block: 2rem;
  color: var(--text-muted);
}
.ad-slot strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
  margin: 0.25rem 0;
}
.ad-slot small {
  font-size: 0.75rem;
}

.post-article {
  max-width: 760px;
  margin-inline: auto;
  padding-block: 2rem;
}
.post-article .tag {
  margin-bottom: 1rem;
  padding-inline: 0.35rem;
  letter-spacing: 0.01em;
}
.post-article h1 {
  font-size: 2rem;
  line-height: 1.3;
  margin: 0 0 1rem;
}
.post-article .post-article__featured {
  border-radius: 10px;
  overflow: hidden;
  margin-block: 1.5rem;
}
.post-article .post-article__featured img {
  width: 100%;
  aspect-ratio: 16/9;
  -o-object-fit: cover;
     object-fit: cover;
}
.post-article .post-article__content {
  font-size: 1.0625rem;
  line-height: 1.8;
}
.post-article .post-article__content p {
  margin: 0 0 1.25rem;
}
.post-article .post-article__content h2, .post-article .post-article__content h3 {
  margin: 2rem 0 1rem;
  font-weight: 700;
}
.post-article .post-article__content blockquote {
  border-left: 3px solid #3654f0;
  background: var(--bg-alt);
  padding: 1.25rem 1.5rem;
  border-radius: 6px;
  font-style: italic;
  margin: 1.5rem 0;
}
.post-article .post-article__content img {
  border-radius: 10px;
  margin-block: 1.5rem;
}
.post-article .post-article__content a {
  color: #3654f0;
  text-decoration: underline;
}

.share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 1.1rem 0;
}
.share-bar__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.25rem;
  min-height: 2rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #fff;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.share-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}
.share-btn--whatsapp {
  background: #25d366;
}
.share-btn--facebook {
  background: #1877f2;
}
.share-btn--x {
  background: #15181c;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.share-btn--telegram {
  background: #229ed9;
}

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-block: 3rem;
}

.footer-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.footer-col h4 {
  font-size: 1rem;
  margin: 0 0 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--border);
}
.footer-col p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}
.footer-col li {
  margin-bottom: 0.6rem;
}
.footer-col a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  overflow-wrap: break-word;
}
.footer-col a:hover {
  color: #3654f0;
}
.footer-col:not(:first-child) {
  padding-left: 2.5rem;
  border-left: 1px solid var(--border);
}
.footer-col .footer-contact {
  margin-top: 1rem;
  font-size: 0.875rem;
}
.footer-col .footer-contact p {
  overflow-wrap: anywhere;
}
.footer-col .footer-contact strong {
  color: var(--text);
}

.newsletter-box {
  flex: 1;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
}
.newsletter-box h4 {
  margin: 0 0 0.4rem;
  padding: 0;
  border: none;
}
.newsletter-box p {
  flex: 0 0 auto;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.newsletter-box form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: auto;
}
.newsletter-box input[type=email] {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-alt);
  color: var(--text);
  font-size: 0.875rem;
}
.newsletter-box .btn-primary {
  width: 100%;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-block: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.footer-bottom .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--text);
}
.footer-bottom .footer-legal {
  display: flex;
  gap: 1.25rem;
}

@media (max-width: 992px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-col:nth-child(3) {
    border-left: none;
    padding-left: 0;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .header-search {
    display: none;
  }
  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem;
    gap: 1rem;
  }
  .hero-slides {
    aspect-ratio: 1/1;
  }
  .hero-slide .hero-card {
    left: 0.65rem;
    right: 0.65rem;
    bottom: 0.65rem;
    max-width: 100%;
    padding: 0.65rem 0.75rem;
  }
  .hero-slide .hero-card .tag {
    margin-bottom: 0.4rem;
  }
  .hero-slide .hero-card h2 {
    font-size: 0.9375rem;
    line-height: 1.25;
    margin-bottom: 0.4rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  .hero-slide .hero-card .post-meta {
    font-size: 0.6875rem;
  }
  .hero-dots {
    position: static;
    transform: none;
    justify-content: center;
    margin-top: 0.6rem;
  }
  .hero-arrow {
    width: 34px;
    height: 34px;
  }
  .hero-arrow--prev {
    left: 0.5rem;
  }
  .hero-arrow--next {
    right: 0.5rem;
  }
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .post-card .post-card__thumb {
    aspect-ratio: 4/3;
  }
  .post-card .post-card__body {
    padding: 0.65rem;
    gap: 0.4rem;
  }
  .post-card .tag {
    font-size: 0.625rem;
    padding: 0.2rem 0.5rem;
  }
  .post-card h3 {
    font-size: 0.8125rem;
    line-height: 1.35;
  }
  .post-card .post-meta {
    font-size: 0.625rem;
    gap: 0.3rem;
  }
  .post-card .post-meta img {
    width: 18px;
    height: 18px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    padding-block: 2rem;
    gap: 2rem;
  }
  .footer-col:not(:first-child) {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}
@media (max-width: 576px) {
  .post-article h1 {
    font-size: 1.5rem;
  }
}
