/*
Theme Name: Visual TV Portal
Theme URI: https://visualtv.online/
Author: Visual TV Grajaú
Description: Portal de notícias, recortes e programação da Visual TV.
 Version: 1.2.1
Requires at least: 6.4
Requires PHP: 8.1
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: visualtv-portal
Tags: news, custom-logo, featured-images, responsive-layout
*/

:root {
	--vtv-navy: #0a162d;
	--vtv-blue: #1556d1;
	--vtv-red: #e63946;
	--vtv-ink: #172238;
	--vtv-muted: #69768a;
	--vtv-paper: #f5f7fb;
	--vtv-line: #e0e5ee;
	--vtv-shadow: 0 16px 40px rgba(15, 32, 63, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--vtv-ink); background: var(--vtv-paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.vtv-container { width: min(1180px, calc(100% - 36px)); margin-inline: auto; }
.vtv-topbar { color: #d9e3f5; background: var(--vtv-navy); font-size: 12px; }
.vtv-topbar .vtv-container { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.vtv-topbar strong { color: #fff; }
.vtv-topbar a { color: #9dbaf8; font-weight: 700; }
.vtv-header { position: sticky; top: 0; z-index: 20; background: rgba(10,22,45,.98); border-bottom: 1px solid #22385f; backdrop-filter: blur(14px); }
.vtv-header-row { min-height: 82px; display: flex; align-items: center; gap: 28px; }
.vtv-logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.vtv-logo img { display: block; width: 168px; height: auto; }
.vtv-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 19px; margin-left: auto; font-size: 12px; font-weight: 750; }
.vtv-nav a { color: #d9e3f5; transition: color .18s ease; }
.vtv-nav a:hover, .vtv-nav .current-menu-item > a { color: #9dbaf8; }
.vtv-menu-toggle { display: none; margin-left: auto; border: 0; padding: 9px; color: #fff; background: transparent; font-size: 24px; cursor: pointer; }
.vtv-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 7px; padding: 11px 15px; color: #fff !important; background: var(--vtv-blue); font-size: 12px; font-weight: 800; }
.vtv-button:hover { filter: brightness(.94); }
.vtv-main { min-height: 60vh; }
.vtv-breaking { background: #fff; border-bottom: 1px solid var(--vtv-line); }
.vtv-breaking .vtv-container { min-height: 44px; display: flex; align-items: center; gap: 15px; overflow: hidden; }
.vtv-breaking-label { flex: 0 0 auto; color: var(--vtv-red); font-size: 10px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.vtv-breaking a { overflow: hidden; color: #46536a; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.vtv-section { padding: 40px 0; }
.vtv-section--tight { padding-top: 24px; padding-bottom: 24px; }
.vtv-section-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.vtv-kicker { margin: 0 0 7px; color: var(--vtv-blue); font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.vtv-section-title h1, .vtv-section-title h2 { margin: 0; color: var(--vtv-ink); font-size: clamp(25px, 3vw, 38px); line-height: 1.05; letter-spacing: -.045em; }
.vtv-section-title p { max-width: 500px; margin: 8px 0 0; color: var(--vtv-muted); font-size: 13px; line-height: 1.55; }
.vtv-link { color: var(--vtv-blue); font-size: 12px; font-weight: 800; }
.vtv-hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(270px, .75fr); gap: 30px; padding: 40px 0; }
.vtv-feature-slider { min-width: 0; }
.vtv-feature-slides { min-width: 0; }
.vtv-feature-slide { position: relative; display: none; min-width: 0; overflow: hidden; border-radius: 18px 18px 14px 14px; background: var(--vtv-navy); }
.vtv-feature-slide.is-active { display: block; animation: vtv-slide-in .35s ease both; }
@keyframes vtv-slide-in { from { opacity: .35; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }
.vtv-feature { min-width: 0; }
.vtv-cover, .vtv-card-image { display: block; }
.vtv-cover { position: relative; min-height: 370px; overflow: hidden; border-radius: 18px; background: linear-gradient(135deg, #162e61, #1556d1); box-shadow: var(--vtv-shadow); }
.vtv-cover img { width: 100%; height: 100%; min-height: 370px; display: block; object-fit: cover; }
.vtv-cover::after { position: absolute; inset: 0; content: ''; background: linear-gradient(180deg, transparent 35%, rgba(6, 16, 37, .84)); }
.vtv-cover-fallback { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 24px; color: rgba(255,255,255,.96); background: radial-gradient(circle at 82% 15%, rgba(99,151,255,.5), transparent 34%), linear-gradient(135deg, #112750, #1556d1 58%, #b93443); }
.vtv-cover-fallback small { margin-bottom: 9px; color: #c9d8ff; font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.vtv-cover-fallback strong { max-width: 92%; font-size: clamp(17px, 2.2vw, 29px); line-height: 1.08; letter-spacing: -.045em; }
.vtv-cover-fallback em { margin-top: 13px; color: rgba(255,255,255,.72); font-size: 10px; font-style: normal; }
.vtv-card-image .vtv-cover-fallback { padding: 17px; }
.vtv-card-image .vtv-cover-fallback strong { font-size: 19px; }
.vtv-cover-badge { position: absolute; z-index: 1; top: 16px; left: 16px; padding: 6px 9px; border-radius: 5px; color: #fff; background: var(--vtv-red); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.vtv-feature-copy { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; margin: 0; padding: 25px; color: #fff; }
.vtv-feature-copy .vtv-meta, .vtv-feature-copy .vtv-kicker { color: #b9ceff; }
.vtv-feature-copy h1 { max-width: 800px; margin: 0 0 12px; font-size: clamp(28px, 4vw, 50px); line-height: 1.01; letter-spacing: -.055em; }
.vtv-feature-copy p { max-width: 720px; margin: 0; color: #d7e0f1; font-size: 14px; line-height: 1.5; }
.vtv-slider-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 10px 16px; color: #fff; background: var(--vtv-navy); border-radius: 0 0 14px 14px; }
.vtv-slider-arrow { width: 34px; height: 34px; padding: 0; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; color: #fff; background: transparent; font-size: 25px; line-height: 27px; cursor: pointer; }
.vtv-slider-arrow:hover, .vtv-slider-arrow:focus-visible { border-color: #fff; background: rgba(255,255,255,.12); }
.vtv-slider-dots { display: flex; align-items: center; justify-content: center; gap: 8px; }
.vtv-slider-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #7788a6; cursor: pointer; }
.vtv-slider-dot.is-active { width: 24px; border-radius: 10px; background: var(--vtv-red); }
.vtv-meta { color: #8693a7; font-size: 11px; }
.vtv-side-news { padding-left: 26px; border-left: 1px solid var(--vtv-line); }
.vtv-side-news h2 { margin: 0; font-size: 20px; letter-spacing: -.04em; }
.vtv-side-item { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--vtv-line); }
.vtv-side-number { color: #bbc4d2; font-size: 21px; font-weight: 900; letter-spacing: -.07em; }
.vtv-side-item h3 { margin: 0 0 7px; font-size: 14px; line-height: 1.28; letter-spacing: -.025em; }
.vtv-live { color: #fff; background: var(--vtv-navy); }
.vtv-live .vtv-section-title h2 { color: #fff; }
.vtv-live .vtv-kicker { color: #90b0ff; }
.vtv-live .vtv-section-title p { color: #aebbd0; }
.vtv-live-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .75fr); gap: 28px; align-items: start; }
.vtv-player { overflow: hidden; border-radius: 14px; background: #000; box-shadow: 0 18px 46px rgba(0,0,0,.2); }
.vtv-player iframe { width: 100%; aspect-ratio: 16 / 9; display: block; border: 0; }
.vtv-player-caption { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; background: #111f39; }
.vtv-player-caption strong { font-size: 13px; }
.vtv-player-caption span { color: #aebbd0; font-size: 11px; }
.vtv-schedule { padding: 19px; border: 1px solid #263a62; border-radius: 14px; background: #112343; }
.vtv-schedule h3 { margin: 0 0 15px; font-size: 18px; }
.vtv-schedule-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid #293e65; color: #b5c1d7; font-size: 12px; }
.vtv-schedule-row strong { color: #fff; }
.vtv-schedule .vtv-button { width: 100%; margin-top: 10px; }
.vtv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.vtv-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--vtv-line); border-radius: 14px; background: #fff; box-shadow: 0 5px 18px rgba(15,32,63,.025); transition: transform .18s ease, box-shadow .18s ease; }
.vtv-card:hover { transform: translateY(-3px); box-shadow: var(--vtv-shadow); }
.vtv-card-image { position: relative; height: 180px; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #dce5f8, #aebbd3); }
.vtv-card-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.vtv-card-body { display: flex; flex: 1; flex-direction: column; padding: 17px; }
.vtv-card-body h2, .vtv-card-body h3 { margin: 0 0 9px; font-size: 18px; line-height: 1.18; letter-spacing: -.04em; }
.vtv-card-body p { margin: 0 0 13px; color: var(--vtv-muted); font-size: 12px; line-height: 1.48; }
.vtv-card-body .vtv-kicker { margin-bottom: 7px; }
.vtv-card-body .vtv-link { margin-top: auto; font-size: 11px; }
.vtv-category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.vtv-category { min-height: 104px; display: flex; flex-direction: column; justify-content: space-between; padding: 15px; border-radius: 13px; color: #fff; background: var(--vtv-blue); }
.vtv-category:nth-child(4n+2) { background: #b93443; }
.vtv-category:nth-child(4n+3) { background: #2b466e; }
.vtv-category:nth-child(4n+4) { background: #15735f; }
.vtv-category strong { font-size: 17px; letter-spacing: -.04em; }
.vtv-category span { color: rgba(255,255,255,.72); font-size: 10px; }
.vtv-ad { min-height: 96px; display: grid; place-items: center; border: 1px dashed #c9d1de; color: #96a2b2; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.vtv-empty { padding: 35px 20px; border: 1px dashed #cbd4e2; color: var(--vtv-muted); text-align: center; }
.vtv-archive-head { padding: 52px 0 30px; background: var(--vtv-navy); color: #fff; }
.vtv-archive-head h1 { margin: 0 0 10px; font-size: clamp(35px, 6vw, 60px); line-height: .98; letter-spacing: -.06em; }
.vtv-archive-head p { max-width: 580px; margin: 0; color: #b5c3d9; font-size: 14px; line-height: 1.55; }
.vtv-archive-head .vtv-kicker { color: #91b2ff; }
.vtv-article-wrap { max-width: 820px; margin: 0 auto; padding: 52px 0 70px; }
.vtv-article-wrap h1 { margin: 0 0 15px; font-size: clamp(35px, 5vw, 62px); line-height: 1; letter-spacing: -.06em; }
.vtv-article-dek { margin: 0 0 18px; color: var(--vtv-muted); font-size: 18px; line-height: 1.5; }
.vtv-article-hero { margin: 28px 0; }
.vtv-article-hero img { width: 100%; max-height: 500px; display: block; border-radius: 16px; object-fit: cover; }
.vtv-article-content { color: #2b374d; font-family: Georgia, serif; font-size: 19px; line-height: 1.75; }
.vtv-article-content p { margin: 0 0 22px; }
.vtv-article-content h2, .vtv-article-content h3 { font-family: Inter, ui-sans-serif, system-ui, sans-serif; line-height: 1.15; letter-spacing: -.04em; }
.vtv-article-content a { color: var(--vtv-blue); text-decoration: underline; }
.vtv-article-content img { height: auto; border-radius: 9px; }
.vtv-article-content iframe { width: 100%; max-width: 100%; min-height: 320px; aspect-ratio: 16 / 9; height: auto; border: 0; }
.vtv-article-content figure { max-width: 100%; margin: 1.5em 0; }
.vtv-article-source { display: flex; justify-content: space-between; gap: 14px; margin-top: 32px; padding-top: 15px; border-top: 1px solid var(--vtv-line); color: var(--vtv-muted); font-size: 11px; }
.vtv-footer { margin-top: 35px; padding: 45px 0 20px; color: #a9b8cf; background: var(--vtv-navy); }
.vtv-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.vtv-footer-logo img { width: 160px; margin-bottom: 14px; }
.vtv-footer p { max-width: 310px; margin: 0; color: #8797b2; font-size: 12px; line-height: 1.55; }
.vtv-footer h3 { margin: 0 0 14px; color: #dce5f5; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.vtv-footer li { margin-bottom: 9px; list-style: none; font-size: 12px; }
.vtv-footer ul { padding: 0; margin: 0; }
.vtv-footer-bottom { display: flex; justify-content: space-between; gap: 18px; margin-top: 35px; padding-top: 17px; border-top: 1px solid #243655; font-size: 10px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

@media (max-width: 860px) {
	.vtv-header-row { min-height: 70px; }
	.vtv-menu-toggle { display: block; }
	.vtv-nav { position: absolute; top: 70px; right: 18px; left: 18px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; border: 1px solid var(--vtv-line); border-radius: 12px; background: #fff; box-shadow: var(--vtv-shadow); }
	.vtv-nav.is-open { display: flex; }
	.vtv-nav a { min-height: 44px; display: flex; align-items: center; padding: 11px; color: var(--vtv-ink); }
	.vtv-nav a:hover { color: var(--vtv-blue); }
	.vtv-hero, .vtv-live-grid { grid-template-columns: 1fr; }
	.vtv-side-news { padding-left: 0; border-left: 0; }
	.vtv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.vtv-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.vtv-footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
@media (max-width: 720px) {
	.vtv-container { width: min(100% - 26px, 620px); }
	.vtv-cover { min-height: 0; aspect-ratio: 16 / 9; border-radius: 14px 14px 0 0; }
	.vtv-cover img { min-height: 0; aspect-ratio: 16 / 9; }
	.vtv-feature-copy { position: relative; right: auto; bottom: auto; left: auto; margin-top: 0; padding: 22px; border-radius: 0 0 14px 14px; background: var(--vtv-navy); }
	.vtv-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.vtv-container { width: min(100% - 26px, 480px); }
	.vtv-topbar .vtv-container { min-height: 31px; font-size: 10px; }
	.vtv-topbar span { display: none; }
	.vtv-logo img { width: 144px; }
	.vtv-header-row { min-height: 64px; gap: 14px; }
	.vtv-nav { top: 64px; right: 13px; left: 13px; }
	.vtv-hero { padding-top: 25px; }
	.vtv-cover { min-height: 0; aspect-ratio: 16 / 10; border-radius: 14px 14px 0 0; }
	.vtv-cover img { min-height: 0; aspect-ratio: 16 / 10; }
	.vtv-feature-copy { position: relative; right: auto; bottom: auto; left: auto; margin-top: 0; padding: 20px; border-radius: 0 0 14px 14px; background: var(--vtv-navy); }
	.vtv-feature-copy h1 { font-size: 31px; }
	.vtv-feature-copy p { font-size: 13px; }
	.vtv-grid, .vtv-category-grid { grid-template-columns: 1fr; }
	.vtv-card-image { height: auto; min-height: 200px; aspect-ratio: 16 / 10; }
	.vtv-card-body { height: auto; min-height: 170px; }
	.vtv-section-title { align-items: start; flex-direction: column; gap: 8px; }
	.vtv-player-caption { align-items: flex-start; flex-direction: column; }
	.vtv-footer-grid { grid-template-columns: 1fr 1fr; }
	.vtv-footer-brand { grid-column: 1 / -1; }
	.vtv-footer-bottom { flex-direction: column; }
	.vtv-article-wrap { padding-top: 32px; }
	.vtv-article-dek { font-size: 16px; }
	.vtv-article-content { font-size: 17px; }
	.vtv-article-content iframe { min-height: 190px; }
	.vtv-article-content img { width: 100%; }
	.vtv-article-source { align-items: flex-start; flex-direction: column; }
}
