/*
Theme Name: Baixo Sao Francisco Online
Theme URI: https://baixosaofrancisco.online/
Author: Baixo Sao Francisco Online
Author URI: https://baixosaofrancisco.online/
Description: Tema jornalistico para portal de noticias do Baixo Sao Francisco, com banners editaveis, painel proprio do tema e compatibilidade com Elementor.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bsf-online
Tags: news, blog, custom-logo, custom-menu, featured-images, right-sidebar, elementor
*/
:root {
	--bsf-blue: #0874e8;
	--bsf-green: #21a66b;
	--bsf-cyan: #20bfd3;
	--bsf-red: #f15b5b;
	--bsf-ink: #1d2027;
	--bsf-muted: #69707d;
	--bsf-line: #e6e8ee;
	--bsf-bg: #f6f8fb;
	--bsf-white: #fff;
	--bsf-radius: 6px;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	color: var(--bsf-ink);
	background: var(--bsf-white);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 1.55;
}

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

a:hover {
	color: var(--bsf-blue);
}

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

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

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

.top-strip {
	border-bottom: 1px solid var(--bsf-line);
	background: #fff;
	font-size: 13px;
}

.top-strip__inner {
	display: grid;
	grid-template-columns: auto auto 1fr;
	gap: 14px;
	align-items: center;
	min-height: 39px;
}

.top-strip strong {
	align-self: stretch;
	display: inline-flex;
	align-items: center;
	padding: 0 16px;
	color: #fff;
	background: var(--bsf-red);
	text-transform: uppercase;
}

.ticker {
	overflow: hidden;
	color: #252933;
}

.ticker span {
	display: inline-block;
	min-width: 100%;
	animation: bsf-ticker 22s linear infinite;
	white-space: nowrap;
}

@keyframes bsf-ticker {
	from {
		transform: translateX(100%);
	}

	to {
		transform: translateX(-100%);
	}
}

.brand-row {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 34px;
	align-items: center;
	padding: 42px 0 34px;
}

.site-branding img {
	max-height: 140px;
	width: auto;
}

.site-title {
	display: block;
	color: var(--bsf-blue);
	font-size: 34px;
	font-weight: 800;
	line-height: 1;
}

.site-description {
	margin: 8px 0 0;
	color: var(--bsf-green);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
}

.brand-row__ad,
.bsf-ad {
	display: flex;
	justify-content: center;
	align-items: center;
}

.bsf-ad img {
	max-height: 160px;
	object-fit: contain;
}

.main-nav {
	position: sticky;
	top: 0;
	z-index: 20;
	background: var(--bsf-ink);
	box-shadow: 0 16px 28px rgba(29, 32, 39, 0.12);
}

.main-nav__inner {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: 65px;
}

.main-nav ul {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-nav li {
	display: flex;
}

.main-nav a,
.menu-toggle {
	display: inline-flex;
	align-items: center;
	min-height: 65px;
	padding: 0 11px;
	border: 0;
	color: #fff;
	background: transparent;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	cursor: pointer;
}

.main-nav .current-menu-item > a,
.main-nav a:hover {
	color: #fff;
	background: var(--bsf-blue);
}

.menu-toggle {
	display: none;
}

.search-form {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 0;
	min-width: 230px;
}

.search-field {
	width: 100%;
	height: 38px;
	border: 0;
	border-radius: 20px 0 0 20px;
	padding: 0 15px;
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
	outline: none;
}

.search-submit {
	height: 38px;
	border: 0;
	border-radius: 0 20px 20px 0;
	padding: 0 14px;
	color: #fff;
	background: rgba(255, 255, 255, 0.16);
	font-weight: 700;
	cursor: pointer;
}

.site-content {
	padding: 46px 0 0;
}

.ad-shell {
	margin-bottom: 30px;
	padding: 30px;
	border: 1px solid var(--bsf-line);
	background: #fff;
}

.ad-shell--compact {
	padding: 18px;
}

.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 370px;
	gap: 36px;
	align-items: start;
}

.main-column,
.sidebar {
	min-width: 0;
}

.section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
	border-bottom: 2px solid var(--bsf-line);
}

.section-head h1,
.section-head h2 {
	position: relative;
	margin: 0;
	padding: 0 0 16px;
	color: var(--bsf-blue);
	font-size: 22px;
	line-height: 1.2;
}

.section-head h1::after,
.section-head h2::after,
.widget-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 42px;
	height: 2px;
	background: var(--bsf-green);
}

.section-head a {
	color: var(--bsf-muted);
	font-size: 13px;
	font-weight: 700;
}

.featured-grid {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: 22px;
	margin-bottom: 34px;
}

.post-card {
	overflow: hidden;
	border: 1px solid var(--bsf-line);
	border-radius: var(--bsf-radius);
	background: #fff;
}

.post-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--bsf-bg);
}

.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.25s ease;
}

.post-card:hover .post-card__media img {
	transform: scale(1.04);
}

.post-card__placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	color: var(--bsf-blue);
	font-weight: 800;
	text-align: center;
}

.post-card__body {
	padding: 16px;
}

.post-card__meta,
.article-meta {
	color: var(--bsf-muted);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.post-card__title {
	margin: 6px 0 8px;
	font-size: 19px;
	line-height: 1.25;
	text-transform: uppercase;
}

.post-card p {
	margin: 0;
	color: var(--bsf-muted);
	font-size: 14px;
}

.post-card--lead {
	grid-row: span 3;
}

.post-card--lead .post-card__media {
	aspect-ratio: 4 / 3;
}

.post-card--lead .post-card__title {
	font-size: 28px;
}

.post-card--horizontal {
	display: grid;
	grid-template-columns: 260px 1fr;
	margin-bottom: 18px;
}

.post-card--horizontal .post-card__media {
	aspect-ratio: 4 / 3;
}

.news-block {
	margin-top: 34px;
}

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

.post-card--mini .post-card__title {
	font-size: 16px;
}

.sidebar .widget {
	margin-bottom: 28px;
	padding: 28px;
	border: 1px solid var(--bsf-line);
	background: #fff;
}

.widget-title {
	position: relative;
	margin: 0 0 24px;
	padding-bottom: 16px;
	font-size: 18px;
}

.widget-ad {
	padding: 14px;
}

.widget-ad .bsf-ad img {
	width: 100%;
	max-height: none;
}

.newsletter-box {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 14px;
	align-items: start;
	border-top: 4px solid var(--bsf-green);
	text-align: left;
}

.newsletter-box__icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	color: #fff;
	background: var(--bsf-green);
	font-size: 24px;
	line-height: 1;
}

.newsletter-box__label {
	margin: 0 0 4px;
	color: var(--bsf-muted);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.newsletter-box h2,
.newsletter-box h3 {
	margin: 0;
	font-size: 21px;
	line-height: 1.25;
}

.newsletter-form {
	grid-column: 1 / -1;
	display: grid;
	gap: 10px;
}

.newsletter-form input,
.newsletter-form button {
	min-height: 44px;
	border: 1px solid var(--bsf-line);
	padding: 0 14px;
}

.newsletter-form button {
	border-color: var(--bsf-ink);
	color: #fff;
	background: var(--bsf-ink);
	font-weight: 800;
	cursor: pointer;
	text-transform: uppercase;
}

.popular-list,
.side-news-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.popular-list li,
.side-news-list li {
	padding: 13px 0;
	border-bottom: 1px solid var(--bsf-line);
	font-weight: 700;
}

.side-news-list a {
	display: grid;
	grid-template-columns: 86px 1fr;
	gap: 12px;
	align-items: center;
}

.side-news-list img {
	width: 86px;
	height: 62px;
	border-radius: 4px;
	object-fit: cover;
	background: var(--bsf-bg);
}

.side-news-list span {
	font-size: 13px;
	line-height: 1.35;
}

.single-article {
	padding: 34px;
	border: 1px solid var(--bsf-line);
	background: #fff;
}

.single-article h1 {
	margin: 8px 0 22px;
	font-size: clamp(30px, 4vw, 48px);
	line-height: 1.1;
}

.article-cover {
	margin: 0 0 26px;
}

.article-content {
	font-size: 18px;
}

.article-content p {
	margin-top: 0;
	margin-bottom: 18px;
}

.article-content a {
	color: var(--bsf-blue);
	text-decoration: underline;
}

.article-content img {
	border-radius: var(--bsf-radius);
}

.article-ad {
	margin: 28px 0;
	padding: 18px;
	border: 1px solid var(--bsf-line);
	background: var(--bsf-bg);
}

.article-ad .bsf-ad img {
	margin: 0 auto;
}

.article-footer {
	margin-top: 28px;
	padding-top: 18px;
	border-top: 1px solid var(--bsf-line);
}

.article-taxonomy {
	color: var(--bsf-muted);
	font-size: 13px;
}

.article-taxonomy p {
	margin: 0 0 8px;
}

.article-taxonomy strong,
.share-row strong {
	color: var(--bsf-green);
	text-transform: uppercase;
}

.share-row {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	align-items: center;
	margin-top: 16px;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.share-row a {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 3px;
	color: #fff;
	font-size: 13px;
	text-transform: none;
}

.share-row a:hover {
	color: #fff;
	filter: brightness(0.95);
}

.share-row__whatsapp {
	background: #21a66b;
}

.share-row__facebook {
	background: #1877f2;
}

.share-row__twitter {
	background: #1d2027;
}

.share-row__linkedin {
	background: #0a66c2;
}

.page-shell {
	max-width: 960px;
}

.contact-hero {
	margin-top: -46px;
	padding: 70px 0;
	color: #fff;
	background: linear-gradient(135deg, var(--bsf-ink), #254f67 55%, var(--bsf-green));
}

.contact-hero p {
	margin: 0 0 8px;
	color: #b9f4dd;
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
}

.contact-hero h1 {
	margin: 0;
	font-size: clamp(42px, 6vw, 70px);
	line-height: 1;
}

.contact-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	gap: 34px;
	align-items: start;
	margin-top: 42px;
}

.contact-panel {
	padding: 34px;
	border: 1px solid var(--bsf-line);
	background: #fff;
}

.contact-copy {
	display: grid;
	grid-template-columns: 0.8fr 1fr;
	gap: 30px;
	margin-bottom: 26px;
}

.contact-copy h2 {
	margin: 0;
	color: var(--bsf-blue);
	font-size: 34px;
	line-height: 1.1;
}

.contact-copy p {
	margin: 0;
	color: var(--bsf-muted);
	font-size: 18px;
}

.contact-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.contact-form label {
	display: grid;
	gap: 7px;
	color: var(--bsf-muted);
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
	width: 100%;
	min-height: 48px;
	border: 1px solid var(--bsf-line);
	border-radius: 4px;
	padding: 0 14px;
	background: #fff;
	color: var(--bsf-ink);
	font: inherit;
}

.contact-form textarea {
	padding-top: 12px;
	resize: vertical;
}

.contact-form__wide,
.contact-form button {
	grid-column: 1 / -1;
}

.contact-form button {
	min-height: 52px;
	border: 0;
	border-radius: 4px;
	color: #fff;
	background: var(--bsf-green);
	font-weight: 900;
	text-transform: uppercase;
	cursor: pointer;
}

.form-notice {
	margin-bottom: 18px;
	padding: 14px;
	border-left: 4px solid var(--bsf-red);
	background: #fff4f4;
	font-weight: 700;
}

.form-notice--success {
	border-left-color: var(--bsf-green);
	background: #f0fff8;
}

.contact-aside {
	display: grid;
	gap: 18px;
}

.contact-card {
	padding: 22px;
	border: 1px solid var(--bsf-line);
	border-radius: var(--bsf-radius);
	background: var(--bsf-bg);
}

.contact-card strong {
	display: block;
	margin-bottom: 8px;
	color: var(--bsf-blue);
	font-size: 18px;
}

.contact-card p {
	margin: 0;
	color: var(--bsf-muted);
}

.elementor-full-width {
	width: 100%;
}

.navigation,
.pagination {
	margin: 28px 0;
}

.site-footer {
	margin-top: 56px;
	color: #d8dce3;
	background: #171a21;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr repeat(3, 1fr);
	gap: 30px;
	padding: 42px 0;
}

.site-footer h3,
.site-footer .widget-title {
	color: #fff;
}

.site-footer a:hover {
	color: #fff;
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 13px;
}

.footer-bottom .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 18px 0;
}

.footer-bottom ul {
	display: flex;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.back-to-top {
	position: fixed;
	right: 22px;
	bottom: 22px;
	width: 46px;
	height: 46px;
	border: 0;
	border-radius: 50%;
	color: #fff;
	background: var(--bsf-blue);
	box-shadow: 0 12px 24px rgba(8, 116, 232, 0.3);
	font-size: 24px;
	cursor: pointer;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (max-width: 980px) {
	.brand-row,
	.layout,
	.footer-grid,
	.contact-layout,
	.contact-copy {
		grid-template-columns: 1fr;
	}

	.brand-row {
		padding: 26px 0;
		text-align: center;
	}

	.site-branding img {
		margin: 0 auto;
	}

	.main-nav__inner {
		flex-wrap: wrap;
		padding: 10px 0;
	}

	.menu-toggle {
		display: inline-flex;
		min-height: 44px;
		background: var(--bsf-blue);
	}

	.main-nav ul {
		display: none;
		width: 100%;
	}

	.main-nav.is-open ul {
		display: grid;
	}

	.main-nav a {
		width: 100%;
		min-height: 46px;
	}

	.search-form {
		min-width: 0;
		flex: 1 1 240px;
	}

	.featured-grid,
	.mini-grid {
		grid-template-columns: 1fr;
	}

	.post-card--lead .post-card__title {
		font-size: 22px;
	}
}

@media (max-width: 640px) {
	.container {
		width: min(100% - 22px, 1170px);
	}

	.top-strip__inner {
		grid-template-columns: 1fr;
		gap: 0;
		padding: 8px 0;
	}

	.top-strip strong {
		justify-content: center;
		min-height: 34px;
	}

	.site-content {
		padding-top: 24px;
	}

	.ad-shell,
	.sidebar .widget,
	.single-article {
		padding: 18px;
	}

	.post-card--horizontal {
		grid-template-columns: 1fr;
	}

	.contact-panel {
		padding: 20px;
	}

	.contact-form {
		grid-template-columns: 1fr;
	}

	.footer-bottom .container {
		align-items: flex-start;
		flex-direction: column;
	}
}

