/*
Theme Name: Cenário Cult Editorial
Theme URI: https://cenariocult.com.br/
Author: Editorial Glauciano
Author URI: https://cenariocult.com.br/
Description: Tema editorial responsivo para cultura e entretenimento, com home modular, matérias, categorias, busca, SEO social e identidade Cenário Cult.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: cenario-cult
License: GNU General Public License v2 or later
*/

:root {
  --cc-blue: #0756b9;
  --cc-blue-dark: #063b86;
  --cc-red: #d80017;
  --cc-ink: #111318;
  --cc-muted: #666b75;
  --cc-line: #e9e9ed;
  --cc-soft: #f5f6f8;
  --cc-white: #fff;
  --cc-radius: 8px;
  --cc-max: 1240px;
  --cc-shadow: 0 10px 30px rgba(17, 19, 24, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cc-white);
  color: var(--cc-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
body.menu-open, body.search-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--cc-blue); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.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;
}
.screen-reader-text:focus {
  clip: auto !important; width: auto; height: auto; margin: 0; padding: 12px 18px;
  left: 8px; top: 8px; z-index: 100000; background: #fff; color: #111;
}
.cc-container { width: min(calc(100% - 40px), var(--cc-max)); margin-inline: auto; }
.cc-section { padding: 54px 0; }
.cc-section + .cc-section { border-top: 1px solid var(--cc-line); }

/* Header */
.site-header {
  position: relative; z-index: 900; background: #fff; border-bottom: 1px solid var(--cc-line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.site-header.is-sticky { position: sticky; top: 0; box-shadow: 0 7px 24px rgba(0,0,0,.08); }
.cc-header-main { min-height: 118px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.cc-brand { display: inline-flex; align-items: center; justify-content: center; }
.cc-brand img, .custom-logo { width: auto; max-width: min(430px, 50vw); max-height: 92px; object-fit: contain; }
.cc-header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.cc-icon-button {
  width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--cc-soft);
  color: var(--cc-ink); display: inline-grid; place-items: center; transition: .2s ease;
}
.cc-icon-button:hover { color: #fff; background: var(--cc-blue); transform: translateY(-1px); }
.cc-icon-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; }
.cc-menu-toggle { display: none; }
.cc-primary-nav { background: var(--cc-ink); color: #fff; }
.cc-primary-nav .cc-container { display: flex; align-items: center; min-height: 52px; }
.cc-primary-nav ul { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; gap: 2px; }
.cc-primary-nav li { position: relative; }
.cc-primary-nav a {
  display: block; padding: 16px 18px; color: #fff; font-size: 13px; line-height: 20px;
  font-weight: 800; letter-spacing: .055em; text-transform: uppercase;
}
.cc-primary-nav a:hover, .cc-primary-nav .current-menu-item > a { background: var(--cc-blue); color: #fff; }
.cc-primary-nav .sub-menu {
  display: none; position: absolute; left: 0; top: 100%; width: 230px; background: #fff;
  padding: 8px; box-shadow: var(--cc-shadow); border-radius: 0 0 var(--cc-radius) var(--cc-radius);
}
.cc-primary-nav li:hover > .sub-menu { display: block; }
.cc-primary-nav .sub-menu a { color: var(--cc-ink); padding: 10px 12px; border-radius: 5px; }
.cc-primary-nav .sub-menu a:hover { color: #fff; }
.cc-trending { background: var(--cc-blue); color: #fff; }
.cc-trending-inner { display: flex; align-items: center; min-height: 40px; overflow: hidden; }
.cc-trending-label {
  flex: 0 0 auto; background: var(--cc-red); align-self: stretch; display: flex; align-items: center;
  position: relative; z-index: 2; padding: 0 16px; margin-right: 18px; font-size: 11px; font-weight: 900; letter-spacing: .08em;
}
.cc-trending-window { flex: 1 1 auto; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent); }
.cc-trending-track { display: flex; width: max-content; will-change: transform; animation: cc-ticker 32s linear infinite; }
.cc-trending-group { flex: 0 0 auto; display: flex; align-items: center; gap: 42px; padding-right: 42px; white-space: nowrap; font-size: 13px; font-weight: 700; }
.cc-trending-group a { position: relative; color: #fff; opacity: .98; }
.cc-trending-group a::after { content: "•"; position: absolute; right: -24px; color: rgba(255,255,255,.55); }
.cc-trending-track:hover { animation-play-state: paused; }
@keyframes cc-ticker { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }

/* Search */
.cc-search-overlay {
  position: fixed; inset: 0; z-index: 1200; display: none; place-items: center;
  background: rgba(8, 11, 18, .96); padding: 30px;
}
.search-open .cc-search-overlay { display: grid; }
.cc-search-panel { width: min(780px, 100%); position: relative; }
.cc-search-close { position: absolute; right: 0; top: -70px; color: #fff; background: transparent; border: 0; font-size: 40px; }
.cc-search-form { display: flex; border-bottom: 3px solid #fff; }
.cc-search-form input { flex: 1; min-width: 0; padding: 18px 0; border: 0; outline: 0; background: transparent; color: #fff; font-size: clamp(24px, 5vw, 46px); font-weight: 800; }
.cc-search-form input::placeholder { color: rgba(255,255,255,.5); }
.cc-search-form button { border: 0; background: transparent; color: #fff; padding: 0 10px; }

/* Hero */
.cc-hero { padding: 34px 0 50px; }
.cc-hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: repeat(2, 245px); gap: 16px; }
.cc-hero-card { position: relative; overflow: hidden; border-radius: var(--cc-radius); background: #222; isolation: isolate; }
.cc-hero-card:first-child { grid-row: 1 / 3; }
.cc-hero-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cc-hero-card:hover img { transform: scale(1.035); }
.cc-hero-card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 25%, rgba(0,0,0,.88) 100%); }
.cc-hero-copy { position: absolute; inset: auto 0 0; z-index: 2; padding: 24px; color: #fff; }
.cc-hero-card:first-child .cc-hero-copy { padding: 34px; }
.cc-kicker {
  display: inline-flex; align-items: center; min-height: 25px; padding: 4px 9px; margin-bottom: 10px;
  border-radius: 3px; background: var(--cc-blue); color: #fff; font-size: 10px; line-height: 1;
  font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
}
.cc-hero-title { margin: 0; font-size: clamp(21px, 2.2vw, 34px); line-height: 1.08; font-weight: 900; letter-spacing: -.025em; }
.cc-hero-card:not(:first-child) .cc-hero-title { font-size: clamp(18px, 1.45vw, 24px); }
.cc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 12px; color: var(--cc-muted); font-size: 12px; font-weight: 700; }
.cc-hero-card .cc-meta { color: rgba(255,255,255,.82); }

/* Section headings and cards */
.cc-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 25px; }
.cc-section-title { margin: 0; font-size: clamp(27px, 3vw, 42px); line-height: 1; font-weight: 900; letter-spacing: -.04em; }
.cc-section-title::after { content: ""; display: block; width: 48px; height: 6px; margin-top: 12px; background: var(--cc-red); border-radius: 4px; }
.cc-section-link { color: var(--cc-blue); font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.cc-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 24px; }
.cc-card { min-width: 0; }
.cc-card-media { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--cc-radius); background: var(--cc-soft); }
.cc-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.cc-card:hover .cc-card-media img { transform: scale(1.04); }
.cc-card-body { padding-top: 14px; }
.cc-card-title { margin: 0; font-size: clamp(19px, 1.55vw, 24px); line-height: 1.14; font-weight: 900; letter-spacing: -.025em; }
.cc-card-excerpt { margin: 10px 0 0; color: var(--cc-muted); font-size: 14px; line-height: 1.5; }
.cc-load-more-wrap { text-align: center; margin-top: 42px; }
.cc-button, .cc-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 25px;
  border: 2px solid var(--cc-ink); border-radius: 999px; background: #fff; color: var(--cc-ink);
  font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; transition: .2s ease;
}
.cc-button:hover, .cc-pagination .page-numbers:hover, .cc-pagination .current { background: var(--cc-ink); color: #fff; }
.cc-button[disabled] { opacity: .55; cursor: wait; }

/* Category feature bands */
.cc-feature-band:nth-of-type(even) { background: var(--cc-soft); }
.cc-feature-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 34px; }
.cc-lead-card .cc-card-media { aspect-ratio: 16 / 9; }
.cc-lead-card .cc-card-title { font-size: clamp(26px, 2.4vw, 38px); }
.cc-side-list { display: grid; gap: 18px; }
.cc-list-card { display: grid; grid-template-columns: 170px 1fr; gap: 16px; align-items: center; }
.cc-list-card .cc-card-media { aspect-ratio: 4 / 3; }
.cc-list-card .cc-card-body { padding: 0; }
.cc-list-card .cc-card-title { font-size: 18px; }

/* Archives */
.cc-page-header { padding: 55px 0 25px; }
.cc-page-title { margin: 0; font-size: clamp(34px, 5vw, 64px); line-height: 1; font-weight: 900; letter-spacing: -.055em; }
.cc-page-description { max-width: 760px; margin: 18px 0 0; color: var(--cc-muted); font-size: 17px; }
.cc-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 44px; }
.cc-pagination .page-numbers { min-width: 46px; padding: 0 14px; }
.cc-empty { padding: 80px 0; text-align: center; }
.cc-inline-search-form { display: flex; width: min(620px, 100%); margin: 28px auto 0; border: 2px solid var(--cc-ink); border-radius: 999px; overflow: hidden; background: #fff; }
.cc-inline-search-form input { flex: 1; min-width: 0; padding: 13px 20px; border: 0; outline: 0; color: var(--cc-ink); background: transparent; }
.cc-inline-search-form button { padding: 0 22px; border: 0; background: var(--cc-ink); color: #fff; font-size: 12px; font-weight: 900; text-transform: uppercase; }

/* Single */
.cc-single { padding: 38px 0 62px; }
.cc-article-head { width: min(980px, 100%); margin: 0 auto 22px; }
.cc-article-head .cc-kicker { display: flex; width: max-content; margin-bottom: 8px; }
.cc-article-title { margin: 0; max-width: 920px; font-size: clamp(32px, 4vw, 56px); line-height: 1.06; font-weight: 900; letter-spacing: -.038em; overflow-wrap: normal; word-break: normal; hyphens: none; }
.cc-article-deck { max-width: 850px; margin: 16px 0 0; color: #555b65; font-size: clamp(17px, 1.8vw, 22px); line-height: 1.38; }
.cc-byline { display: flex; align-items: center; gap: 10px; margin-top: 15px; color: var(--cc-muted); font-size: 13px; }
.cc-byline .avatar { width: 38px; height: 38px; border-radius: 50%; }
.cc-byline strong { color: var(--cc-ink); }
.cc-share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cc-share a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--cc-ink); font-size: 12px; font-weight: 900; }
.cc-share a:hover { background: var(--cc-blue); color: #fff; }
.cc-article-featured { width: min(1120px, 100%); margin: 0 auto 40px; overflow: hidden; border-radius: var(--cc-radius); }
.cc-article-featured img { width: 100%; }
.cc-article-layout { width: min(1120px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 760px) 1fr; gap: 64px; align-items: start; }
.cc-content { color: #24272d; font-family: Georgia, 'Times New Roman', serif; font-size: 20px; line-height: 1.76; }
.cc-content > *:first-child { margin-top: 0; }
.cc-content p { margin-top: 0; margin-bottom: 1.25em; }
.cc-content > p:empty,
.cc-content .wp-block-spacer,
.cc-content .adsbygoogle,
.cc-content .google-auto-placed,
.cc-content .advertisement,
.cc-content .ad-container,
.cc-content .code-block,
.cc-content [id^="google_ads"],
.cc-content [id^="div-gpt-ad"] { display: none !important; height: 0 !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; }
.cc-content h2, .cc-content h3, .cc-content h4 { color: var(--cc-ink); font-family: Arial, Helvetica, sans-serif; line-height: 1.15; letter-spacing: -.025em; }
.cc-content h2 { margin-top: 44px; font-size: 34px; }
.cc-content h3 { margin-top: 36px; font-size: 27px; }
.cc-content a { color: var(--cc-blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.cc-content blockquote { margin: 36px 0; padding: 4px 0 4px 26px; border-left: 6px solid var(--cc-red); color: #3c414a; font-size: 25px; line-height: 1.45; font-style: italic; }
.cc-content img, .cc-content figure { border-radius: var(--cc-radius); }
.cc-content iframe { max-width: 100%; }
.cc-content figcaption { color: var(--cc-muted); font: 12px/1.4 Arial, sans-serif; }
.cc-article-aside { position: sticky; top: 130px; }
.cc-aside-title { margin: 0 0 18px; padding-bottom: 11px; border-bottom: 5px solid var(--cc-blue); font-size: 18px; font-weight: 900; text-transform: uppercase; }
.cc-mini-post { display: grid; grid-template-columns: 94px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--cc-line); }
.cc-mini-post img { width: 94px; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.cc-mini-post h3 { margin: 0; font-size: 14px; line-height: 1.25; font-weight: 900; }
.cc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 25px; border-top: 1px solid var(--cc-line); }
.cc-tags a { padding: 7px 11px; border-radius: 4px; background: var(--cc-soft); color: var(--cc-ink); font: 700 12px/1 Arial, sans-serif; text-decoration: none; }
.cc-related { margin-top: 60px; padding-top: 46px; border-top: 1px solid var(--cc-line); }
.page .cc-article-layout { grid-template-columns: minmax(0, 800px); justify-content: center; }

/* Footer */
.site-footer { margin-top: 45px; padding: 52px 0 30px; background: var(--cc-ink); color: #fff; text-align: center; }
.cc-footer-logo { display: inline-flex; align-items: center; justify-content: center; }
.cc-footer-logo img { width: auto; max-width: min(390px, 78vw); max-height: 100px; object-fit: contain; }
.cc-copyright { margin: 24px 0 0; color: rgba(255,255,255,.64); font-size: 12px; }

/* Mobile drawer */
.cc-mobile-drawer { position: fixed; inset: 0 auto 0 0; z-index: 1100; width: min(86vw, 380px); padding: 26px; background: #fff; transform: translateX(-105%); transition: transform .28s ease; box-shadow: var(--cc-shadow); overflow-y: auto; }
.menu-open .cc-mobile-drawer { transform: translateX(0); }
.cc-drawer-backdrop { display: none; position: fixed; inset: 0; z-index: 1050; background: rgba(0,0,0,.58); }
.menu-open .cc-drawer-backdrop { display: block; }
.cc-drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.cc-drawer-head img { max-width: 215px; max-height: 70px; object-fit: contain; }
.cc-mobile-drawer ul { list-style: none; margin: 0; padding: 0; }
.cc-mobile-drawer a { display: block; padding: 13px 4px; border-bottom: 1px solid var(--cc-line); font-size: 15px; font-weight: 900; text-transform: uppercase; }
.cc-mobile-drawer .sub-menu { padding-left: 16px; }

@media (max-width: 980px) {
  .cc-header-main { min-height: 92px; }
  .cc-menu-toggle { display: inline-grid; }
  .cc-header-left { display: flex; }
  .cc-primary-nav { display: none; }
  .cc-brand img, .custom-logo { max-width: min(330px, 55vw); max-height: 72px; }
  .cc-hero-grid { grid-template-columns: 1.2fr 1fr; grid-template-rows: repeat(2, 205px); }
  .cc-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cc-article-layout { grid-template-columns: 1fr; }
  .cc-article-aside { display: none; }
}

@media (max-width: 680px) {
  .cc-container { width: min(calc(100% - 28px), var(--cc-max)); }
  .cc-header-main { min-height: 76px; grid-template-columns: 44px 1fr 44px; gap: 8px; }
  .cc-brand img, .custom-logo { max-width: min(230px, 54vw); max-height: 58px; }
  .cc-header-actions { gap: 0; }
  .cc-header-actions .cc-social-button { display: none; }
  .cc-icon-button { width: 40px; height: 40px; }
  .cc-trending-inner { min-height: 36px; }
  .cc-trending-label { padding: 0 10px; margin-right: 12px; font-size: 9px; }
  .cc-trending-window { mask-image: none; }
  .cc-trending-track { animation-duration: 22s; }
  .cc-trending-group { gap: 34px; padding-right: 34px; font-size: 12px; }
  .cc-trending-group a::after { right: -20px; }
  .cc-hero { padding: 16px 0 35px; }
  .cc-hero-grid { display: block; }
  .cc-hero-card { min-height: 280px; margin-bottom: 12px; }
  .cc-hero-card:not(:first-child) { min-height: 170px; }
  .cc-hero-copy, .cc-hero-card:first-child .cc-hero-copy { padding: 18px; }
  .cc-hero-card:first-child .cc-hero-title { font-size: 28px; }
  .cc-hero-card:not(:first-child) .cc-hero-title { font-size: 18px; }
  .cc-section { padding: 38px 0; }
  .cc-card-grid { grid-template-columns: 1fr; gap: 30px; }
  .cc-section-heading { align-items: center; }
  .cc-section-title { font-size: 30px; }
  .cc-feature-layout { grid-template-columns: 1fr; gap: 28px; }
  .cc-list-card { grid-template-columns: 120px 1fr; gap: 13px; }
  .cc-list-card .cc-card-title { font-size: 16px; }
  .cc-page-header { padding-top: 38px; }
  .cc-single { padding-top: 20px; padding-bottom: 48px; }
  .cc-article-head { margin-bottom: 16px; }
  .cc-article-head .cc-kicker { margin-bottom: 6px; }
  .cc-article-title { max-width: none; font-size: clamp(28px, 8vw, 37px); line-height: 1.08; letter-spacing: -.028em; }
  .cc-article-deck { margin-top: 12px; font-size: 17px; }
  .cc-byline { margin-top: 13px; }
  .cc-byline .avatar { width: 34px; height: 34px; }
  .cc-share { margin-top: 12px; }
  .cc-share a { width: 38px; height: 38px; }
  .cc-content { font-size: 18px; line-height: 1.65; }
  .cc-content h2 { font-size: 28px; }
  .cc-article-featured { margin-bottom: 22px; border-radius: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
