/*
Theme Name: Júlio Pinheiro 13999
Theme URI: https://juliopinheiro13999.com.br
Author: Campanha Júlio Pinheiro
Description: Tema compacto para a campanha de Júlio Pinheiro (Deputado Estadual, 13999). Construído a partir do layout do Figma, com seção de notícias, carrosséis responsivos e animações de entrada.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: julio13
Tags: campanha, one-page, noticias, responsivo
*/

/* ==========================================================================
   0. Fontes (self-hosted)
   --------------------------------------------------------------------------
   Servidas do próprio tema em vez do Google Fonts: cortam o CSS externo
   bloqueante e a cadeia fonts.googleapis.com -> fonts.gstatic.com antes do
   primeiro render. São arquivos variáveis — um por família cobre todos os pesos.
   ========================================================================== */

@font-face {
	font-family: "Afacad";
	font-style: normal;
	font-weight: 500 700;
	font-display: swap;
	src: url("assets/fonts/afacad-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Afacad";
	font-style: normal;
	font-weight: 500 700;
	font-display: swap;
	src: url("assets/fonts/afacad-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-weight: 500 800;
	font-display: swap;
	src: url("assets/fonts/figtree-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-weight: 500 800;
	font-display: swap;
	src: url("assets/fonts/figtree-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
	--azul: #033ebe;
	--azul-escuro: #002a86;
	--vermelho: #d52a37;
	--vermelho-escuro: #ab1f2a;
	--roxo: #3e3b7a;
	--link: #0000b8;
	--verde: #4cbe35;
	/* Verde do Figma com branco em cima dá 2,41:1 — reprova em AA por larga
	   margem. Este tom escurecido chega a 5,15:1 e é usado só onde há texto. */
	--verde-texto: #2f7d21;
	--cinza: #595959;
	--escuro: #262626;
	--claro: #f5f5f5;
	--borda: #e6e6e6;
	--branco: #fff;

	--fonte: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
	--fonte-alt: "Afacad", var(--fonte);

	--container: 1248px;
	--raio: 10px;
	--raio-foto: 8px;

	--sec-y: clamp(64px, 8vw, 120px);
	--nav-h: 75px;

	--ease: cubic-bezier(0.16, 1, 0.3, 1);
	--dur: 0.7s;
}

/* ==========================================================================
   2. Base
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--nav-h) + 16px);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--fonte);
	font-size: 18px;
	line-height: 24px;
	font-weight: 500;
	color: var(--escuro);
	background: var(--branco);
	overflow-x: hidden;
}

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

a {
	color: var(--link);
	text-decoration: none;
	transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

a:hover {
	color: var(--vermelho);
}

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
}

:focus-visible {
	outline: 3px solid var(--verde);
	outline-offset: 3px;
	border-radius: 4px;
}

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: 24px;
}

.pular-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	background: var(--branco);
	color: var(--azul);
	padding: 12px 20px;
	font-weight: 700;
}

.pular-link:focus {
	left: 8px;
	top: 8px;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ==========================================================================
   3. Tipografia
   ========================================================================== */

.olho {
	margin: 0 0 8px;
	font-size: 12px;
	line-height: 1.2;
	font-weight: 500;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--cinza);
}

.titulo-1,
.titulo-2,
.titulo-3 {
	margin: 0;
	font-weight: 700;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.titulo-1 {
	font-size: clamp(40px, 5.2vw, 75px);
	line-height: 0.9;
	color: var(--vermelho);
}

.titulo-2 {
	font-size: clamp(32px, 4vw, 55px);
	line-height: 1.09;
}

.titulo-3 {
	font-size: clamp(24px, 2.4vw, 32px);
	line-height: 1.19;
}

.texto {
	margin: 0;
	font-size: 18px;
	line-height: 24px;
	font-weight: 500;
	color: var(--cinza);
}

/* ==========================================================================
   4. Botões e links
   ========================================================================== */

.botao {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 60px;
	padding: 15px 32px;
	border-radius: 15px;
	background: var(--vermelho);
	color: var(--branco);
	font-size: 16px;
	line-height: 30px;
	font-weight: 800;
	text-align: center;
	text-transform: uppercase;
	transition: background 0.25s var(--ease), transform 0.25s var(--ease),
		box-shadow 0.25s var(--ease);
}

.botao:hover {
	background: var(--vermelho-escuro);
	color: var(--branco);
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(213, 42, 55, 0.28);
}

.botao:active {
	transform: translateY(0);
}

.botao--azul {
	background: var(--azul);
}

.botao--azul:hover {
	background: var(--azul-escuro);
	box-shadow: 0 10px 24px rgba(3, 62, 190, 0.28);
}

.link-icone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	line-height: 30px;
	font-weight: 600;
	color: var(--link);
}

.link-icone img {
	width: 16px;
	height: 16px;
	flex: none;
	transition: transform 0.25s var(--ease);
}

.link-icone:hover img {
	transform: translateX(3px);
}

/* ==========================================================================
   5. Navegação
   ========================================================================== */

.topo {
	position: fixed;
	inset: 0 0 auto;
	z-index: 100;
	background: var(--azul);
	transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.topo.is-fixo {
	background: rgba(3, 62, 190, 0.96);
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
	backdrop-filter: blur(8px);
}

.topo__barra {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: var(--nav-h);
}

.topo__marca img {
	width: 98px;
	height: auto;
	transition: transform 0.3s var(--ease);
}

.topo__marca:hover img {
	transform: scale(1.04);
}

.topo__menu {
	display: flex;
	align-items: center;
	gap: 40px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.topo__menu a {
	position: relative;
	display: block;
	padding: 4px 0;
	font-size: 16px;
	line-height: 30px;
	font-weight: 600;
	color: var(--branco);
	white-space: nowrap;
}

.topo__menu a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 2px;
	background: var(--branco);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.3s var(--ease);
}

.topo__menu a:hover,
.topo__menu .current-menu-item > a {
	color: var(--branco);
}

.topo__menu a:hover::after,
.topo__menu .current-menu-item > a::after {
	transform: scaleX(1);
	transform-origin: left;
}

.zap {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 11px 16px;
	border-radius: var(--raio);
	background: var(--verde-texto);
	color: var(--branco);
	font-family: var(--fonte-alt);
	font-size: 20px;
	line-height: 1;
	font-weight: 700;
	letter-spacing: -0.01em;
	transition: transform 0.25s var(--ease), filter 0.25s var(--ease);
}

.zap:hover {
	color: var(--branco);
	transform: translateY(-2px);
	filter: brightness(1.06);
}

.zap img {
	width: 27px;
	height: 27px;
}

.zap span {
	font-weight: 500;
}

.zap b {
	font-weight: 700;
}

.topo__toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 10px;
	color: var(--branco);
}

.topo__toggle span {
	display: block;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform 0.3s var(--ease), opacity 0.2s linear;
}

.topo__toggle span + span {
	margin-top: 6px;
}

.topo__toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

.topo__toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.topo__toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   6. Hero
   ========================================================================== */

.hero {
	position: relative;
	margin-top: var(--nav-h);
	background: var(--vermelho) url("assets/img/hero-bg.webp") center / cover no-repeat;
	overflow: hidden;
}

.hero__palco {
	position: relative;
	aspect-ratio: 1920 / 843;
}

.hero__palco > * {
	position: absolute;
}

.hero__brilhos {
	top: 0;
	left: 95%;
	width: 6.67%;
	height: 108.3%;
	object-fit: cover;
}

.hero__marca {
	left: 8.75%;
	top: 16.25%;
	width: 35.99%;
}

.hero__numero {
	left: 11.15%;
	top: 63.7%;
	width: 32.45%;
}

.hero__slogan {
	left: 69.95%;
	top: 30.13%;
	width: 21.41%;
}

.hero__foto {
	left: 30%;
	top: 7.71%;
	width: 52.92%;
}

/* ==========================================================================
   7. Seções
   ========================================================================== */

.secao {
	position: relative;
	padding-block: var(--sec-y);
}

.secao--claro {
	background: var(--claro);
}

.secao--azul {
	background: var(--azul);
	color: var(--branco);
}

.secao--azul .olho,
.secao--azul .titulo-2 {
	color: var(--branco);
}

.secao__cabeca {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 40px;
}

.secao__cabeca--centro {
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.secao__acao {
	display: flex;
	align-items: center;
	gap: 24px;
}

/* --- Galeria ------------------------------------------------------------ */

.galeria .titulo-1 {
	max-width: 12ch;
}

.galeria__item {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--raio-foto);
	background: var(--borda);
	aspect-ratio: 444 / 407;
}

/* :not() mantém a lupa fora da regra da foto — ela tem tamanho próprio. */
.galeria__item img:not(.galeria__lupa) {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ease);
}

.galeria__item:hover img:not(.galeria__lupa) {
	transform: scale(1.06);
}

.galeria__item::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 45%;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent);
	opacity: 0;
	transition: opacity 0.4s var(--ease);
	pointer-events: none;
}

.galeria__item:hover::after {
	opacity: 1;
}

.galeria__lupa {
	position: absolute;
	right: 14px;
	bottom: 14px;
	z-index: 2;
	width: 36px;
	height: 36px;
	transform: translateY(6px);
	opacity: 0.85;
	transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}

.galeria__item:hover .galeria__lupa {
	transform: translateY(0);
	opacity: 1;
}

/* --- Bio ---------------------------------------------------------------- */

.bio__grade {
	display: grid;
	grid-template-columns: minmax(0, 725fr) minmax(0, 495fr);
	gap: clamp(32px, 5vw, 80px);
	align-items: center;
}

.bio__foto {
	position: relative;
	border-radius: var(--raio-foto);
	overflow: hidden;
	background: #000;
	aspect-ratio: 725 / 693;
}

.bio__foto img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.92;
}

/* A bio é um carrossel de capítulos: um slide por vez, largura total da coluna. */
.bio .carrossel__trilho {
	grid-auto-columns: 100%;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.bio .carrossel__trilho::-webkit-scrollbar {
	display: none;
}

.bio .carrossel__trilho > * {
	scroll-snap-align: start;
}

.bio .carrossel__nav {
	justify-content: flex-start;
}

.bio__slide .olho {
	color: var(--roxo);
}

.bio__slide .titulo-1 {
	margin-bottom: 24px;
}

.bio__slide .texto {
	color: var(--escuro);
}

/* --- Time --------------------------------------------------------------- */

.time .titulo-2 {
	color: var(--roxo);
}

.membro {
	display: flex;
	flex-direction: column;
}

.membro__foto {
	border-radius: var(--raio-foto);
	overflow: hidden;
	background: var(--borda);
	aspect-ratio: 295 / 215;
	margin-bottom: 16px;
}

.membro__foto img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	transition: transform 0.6s var(--ease);
}

.membro:hover .membro__foto img {
	transform: scale(1.05);
}

.membro__nome {
	margin: 0 0 12px;
	font-size: 26px;
	line-height: 31px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--escuro);
}

.membro__texto {
	margin: 0 0 20px;
}

.redes {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.redes a {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.redes a:hover {
	transform: translateY(-3px);
	background: rgba(0, 0, 0, 0.06);
}

.redes img {
	width: 22px;
	height: 22px;
}

/* --- Reels -------------------------------------------------------------- */

.reels .secao__cabeca {
	margin-bottom: 48px;
}

.reel {
	position: relative;
	display: block;
	border-radius: 14px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.1);
	aspect-ratio: 301 / 537;
}

.reel img:not(.reel__play) {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ease);
}

.reel:hover img:not(.reel__play) {
	transform: scale(1.05);
}

.reel__play {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 68px;
	height: 68px;
	filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
	transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
	opacity: 0.95;
}

.reel:hover .reel__play {
	transform: scale(1.12);
	opacity: 1;
}

/* --- Apoie -------------------------------------------------------------- */

.apoie .titulo-2 {
	color: var(--vermelho);
}

.apoie__grade {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px;
	max-width: 1162px;
	margin-inline: auto;
}

.cartao {
	display: flex;
	flex-direction: column;
	padding: 48px 44px 40px;
	border-radius: var(--raio);
	background: var(--claro);
	transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.cartao:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.09);
}

.cartao__icone {
	width: 110px;
	height: auto;
	margin-bottom: 32px;
}

.cartao .titulo-3 {
	color: var(--vermelho);
	margin-bottom: 16px;
}

.cartao .texto {
	color: var(--escuro);
	margin-bottom: 28px;
	flex: 1;
}

.cartao .botao {
	width: 100%;
	padding-inline: 20px;
}

/* --- Notícias ----------------------------------------------------------- */

.noticias .titulo-2 {
	color: var(--roxo);
}

.noticia {
	display: flex;
	flex-direction: column;
	height: 100%;
	border-radius: var(--raio);
	overflow: hidden;
	background: var(--branco);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
	transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.noticia:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.noticia__thumb {
	position: relative;
	display: block;
	overflow: hidden;
	background: var(--borda);
	aspect-ratio: 3 / 2;
}

.noticia__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ease);
}

.noticia:hover .noticia__thumb img {
	transform: scale(1.06);
}

.noticia__corpo {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 24px 24px 28px;
}

.noticia__data {
	display: block;
	margin-bottom: 10px;
	font-size: 12px;
	line-height: 1.2;
	font-weight: 600;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--vermelho);
}

.noticia__titulo {
	margin: 0 0 12px;
	font-size: 22px;
	line-height: 27px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.noticia__titulo a {
	color: var(--escuro);
}

.noticia__titulo a:hover {
	color: var(--vermelho);
}

.noticia__resumo {
	margin: 0 0 20px;
	font-size: 16px;
	line-height: 23px;
	color: var(--cinza);
	flex: 1;
}

.noticia__mais {
	font-size: 15px;
	line-height: 20px;
	font-weight: 700;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	color: var(--link);
}

.noticia__mais::after {
	content: " →";
	display: inline-block;
	transition: transform 0.25s var(--ease);
}

.noticia:hover .noticia__mais::after {
	transform: translateX(4px);
}

/* ==========================================================================
   8. Carrossel (grade no desktop, deslize no mobile)
   ========================================================================== */

.carrossel {
	position: relative;
}

/* Padrão: grade de colunas iguais (desktop). */
.carrossel__trilho {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	gap: 26px;
}

.carrossel__trilho > * {
	min-width: 0;
}

/* Galeria e reels deslizam já no desktop: o layout mostra mais itens que a tela. */
.galeria .carrossel__trilho,
.reels .carrossel__trilho {
	grid-auto-columns: var(--cr-largura, 444px);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 4px;
}

.galeria .carrossel__trilho::-webkit-scrollbar,
.reels .carrossel__trilho::-webkit-scrollbar {
	display: none;
}

.galeria .carrossel__trilho > *,
.reels .carrossel__trilho > * {
	scroll-snap-align: start;
}

.galeria .carrossel {
	--cr-largura: 444px;
}

.reels .carrossel {
	--cr-largura: 301px;
}

/* Os controles só aparecem quando o trilho realmente rola — o JS marca o estado. */
.carrossel__nav {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 20px;
	margin-top: 28px;
}

[data-carrossel][data-cr-ativo="1"] .carrossel__nav {
	display: flex;
}

.secao__acao .carrossel__nav {
	margin-top: 0;
}

/* Setas cheias, como no Figma: círculo vermelho sólido com chevron branco. */
.carrossel__seta {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--vermelho);
	color: var(--branco);
	transition: transform 0.25s var(--ease), background 0.25s var(--ease),
		opacity 0.25s var(--ease);
}

.carrossel__seta svg {
	width: 13px;
	height: 13px;
	fill: currentColor;
}

.carrossel__seta:hover:not(:disabled) {
	background: var(--vermelho-escuro);
	transform: scale(1.1);
}

.carrossel__seta:disabled {
	opacity: 0.35;
	cursor: default;
}

.secao--azul .carrossel__seta {
	background: var(--branco);
	color: var(--azul);
}

.secao--azul .carrossel__seta:hover:not(:disabled) {
	background: var(--branco);
	transform: scale(1.1);
}

.carrossel__pontos {
	display: flex;
	align-items: center;
	/* 10px de bolinha + 16px de intervalo = 26px de centro a centro, o mínimo
	   para que as áreas de toque de 24px não se sobreponham. */
	gap: 16px;
}

.carrossel__ponto {
	position: relative;
	width: 10px;
	height: 10px;
	padding: 0;
	border-radius: 50%;
	background: currentColor;
	color: var(--vermelho);
	opacity: 0.3;
	transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

/* A bolinha continua com 10px; só a área de toque cresce para os 24px que o
   WCAG 2.2 pede. Sem isso o alvo real fica menor que a ponta do dedo. */
.carrossel__ponto::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 24px;
	height: 24px;
	transform: translate(-50%, -50%);
}

.carrossel__ponto[aria-current="true"] {
	opacity: 1;
	transform: scale(1.2);
}

.secao--azul .carrossel__ponto {
	color: var(--branco);
}

/* ==========================================================================
   9. Rodapé
   ========================================================================== */

.rodape {
	background: var(--vermelho);
	color: var(--branco);
	padding-block: 48px;
}

.rodape__barra {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

.rodape__marca {
	display: flex;
	align-items: center;
	gap: 38px;
}

.rodape__marca img:first-child {
	width: 189px;
}

.rodape__marca img:last-child {
	width: 229px;
}

.rodape__redes {
	display: flex;
	align-items: center;
	gap: 8px;
}

.rodape__redes p {
	max-width: 142px;
	margin: 0 22px 0 0;
	font-size: 26px;
	line-height: 25px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.rodape__redes a {
	display: block;
	transition: transform 0.25s var(--ease);
}

.rodape__redes a:hover {
	transform: translateY(-4px);
}

.rodape__redes img {
	width: 50px;
	height: 50px;
}

.rodape__legal {
	margin-top: 36px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.25);
	font-size: 14px;
	line-height: 20px;
	/* Branco puro: rgba(255,255,255,.85) sobre o vermelho dá 3,95:1 e reprova em
	   AA. A hierarquia continua vindo do tamanho (14px) e do filete acima. */
	color: var(--branco);
}

/* ==========================================================================
   10. Arquivo e post único
   ========================================================================== */

.capa {
	margin-top: var(--nav-h);
	padding-block: clamp(48px, 6vw, 88px);
	background: var(--azul);
	color: var(--branco);
}

.capa .olho {
	color: rgba(255, 255, 255, 0.75);
}

.capa .titulo-2,
.capa .titulo-1 {
	color: var(--branco);
}

.capa__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin-top: 20px;
	font-size: 15px;
	color: rgba(255, 255, 255, 0.85);
}

.migalhas {
	margin-bottom: 16px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.8);
}

.migalhas a {
	color: var(--branco);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.lista-noticias {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
}

.paginacao {
	display: flex;
	justify-content: center;
	margin-top: 56px;
}

.paginacao .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding-inline: 12px;
	margin: 0 4px;
	border-radius: 8px;
	background: var(--claro);
	color: var(--escuro);
	font-weight: 700;
	transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.paginacao .page-numbers:hover,
.paginacao .page-numbers.current {
	background: var(--vermelho);
	color: var(--branco);
}

.artigo {
	max-width: 760px;
	margin-inline: auto;
}

.artigo__capa {
	margin: 0 0 40px;
	border-radius: var(--raio);
	overflow: hidden;
	background: var(--borda);
}

.artigo__capa img {
	width: 100%;
	height: auto;
}

.artigo__conteudo {
	font-size: 19px;
	line-height: 30px;
	color: var(--escuro);
}

.artigo__conteudo > * + * {
	margin-top: 24px;
}

.artigo__conteudo h2 {
	margin-top: 44px;
	font-size: 30px;
	line-height: 36px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--roxo);
}

.artigo__conteudo h3 {
	margin-top: 36px;
	font-size: 24px;
	line-height: 30px;
	font-weight: 700;
	color: var(--roxo);
}

.artigo__conteudo blockquote {
	margin-inline: 0;
	padding: 8px 0 8px 24px;
	border-left: 4px solid var(--vermelho);
	font-size: 22px;
	line-height: 32px;
	font-weight: 600;
	color: var(--roxo);
}

.artigo__conteudo img {
	border-radius: var(--raio-foto);
}

.artigo__conteudo ul,
.artigo__conteudo ol {
	padding-left: 22px;
}

.artigo__conteudo li + li {
	margin-top: 8px;
}

.artigo__rodape {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: 48px;
	padding-top: 28px;
	border-top: 1px solid var(--borda);
}

.vazio {
	padding-block: 40px;
	text-align: center;
}

.vazio .botao + .botao {
	margin-left: 12px;
}

/* ==========================================================================
   11. Animações de entrada
   ========================================================================== */

/* Tudo escopado em .js: sem JavaScript nada é escondido. */
.js .rv {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
	transition-delay: var(--d, 0s);
	will-change: opacity, transform;
}

.js .rv--esq {
	transform: translateX(-32px);
}

.js .rv--dir {
	transform: translateX(32px);
}

.js .rv--zoom {
	transform: scale(0.94);
}

.js .rv.is-visivel {
	opacity: 1;
	transform: none;
	will-change: auto;
}

/* Entrada do hero: dispara no carregamento, sem esperar scroll. */
.hero__marca,
.hero__numero,
.hero__slogan,
.hero__foto,
.hero__brilhos {
	opacity: 0;
	animation: sobe 0.9s var(--ease) forwards;
}

.hero__foto {
	animation-name: entra-dir;
	animation-delay: 0.1s;
}

.hero__marca {
	animation-delay: 0.25s;
}

.hero__numero {
	animation-delay: 0.4s;
}

.hero__slogan {
	animation-delay: 0.55s;
}

.hero__brilhos {
	animation-name: aparece;
	animation-delay: 0.7s;
}

@keyframes sobe {
	from {
		opacity: 0;
		transform: translateY(32px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes entra-dir {
	from {
		opacity: 0;
		transform: translateX(48px) scale(1.02);
	}
	to {
		opacity: 1;
		transform: translateX(0) scale(1);
	}
}

@keyframes aparece {
	to {
		opacity: 1;
	}
}

/* ==========================================================================
   12. Responsivo
   ========================================================================== */

@media (max-width: 1180px) {
	.topo__menu {
		gap: 24px;
	}

	.topo__menu a {
		font-size: 15px;
	}
}

@media (max-width: 980px) {
	:root {
		--nav-h: 64px;
	}

	.topo__toggle {
		display: block;
	}

	.topo__nav {
		position: fixed;
		inset: var(--nav-h) 0 auto;
		max-height: 0;
		overflow: hidden;
		background: var(--azul);
		transition: max-height 0.4s var(--ease);
	}

	.topo__nav.is-aberto {
		max-height: calc(100vh - var(--nav-h));
		overflow-y: auto;
		box-shadow: 0 18px 30px rgba(0, 0, 0, 0.25);
	}

	.topo__menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px 24px 24px;
	}

	.topo__menu li + li {
		border-top: 1px solid rgba(255, 255, 255, 0.15);
	}

	.topo__menu a {
		padding: 14px 0;
		font-size: 17px;
	}

	.topo__menu a::after {
		display: none;
	}

	.zap {
		font-size: 17px;
		padding: 9px 12px;
	}

	.zap img {
		width: 22px;
		height: 22px;
	}

	/* Hero empilhado */
	.hero__palco {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
		aspect-ratio: auto;
		padding: 40px 24px 0;
	}

	.hero__palco > * {
		position: static;
		width: auto;
	}

	.hero__brilhos {
		display: none;
	}

	/* A ordem do DOM prioriza a foto (LCP). No empilhado, a marca vem primeiro. */
	.hero__marca {
		order: 1;
		width: min(72%, 340px);
	}

	.hero__numero {
		order: 2;
		width: min(62%, 290px);
	}

	.hero__slogan {
		order: 3;
		width: min(48%, 220px);
	}

	.hero__foto {
		order: 4;
		align-self: center;
		width: min(108%, 540px);
		margin-top: 4px;
		margin-bottom: -2px;
	}

	.bio__grade {
		grid-template-columns: minmax(0, 1fr);
	}

	.apoie__grade {
		grid-template-columns: minmax(0, 1fr);
		max-width: 480px;
	}

	.lista-noticias {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rodape__barra {
		justify-content: center;
		text-align: center;
	}

	.rodape__marca {
		gap: 24px;
	}

	.rodape__marca img:first-child {
		width: 140px;
	}

	.rodape__marca img:last-child {
		width: 170px;
	}

	.rodape__redes {
		flex-wrap: wrap;
		justify-content: center;
	}

	.rodape__redes p {
		width: 100%;
		max-width: none;
		margin: 0 0 8px;
		font-size: 22px;
	}
}

/* A grade de 4 colunas só cabe com a largura de card do Figma (295px) acima de
   ~1250px. Abaixo disso ela espremia os cards até 190px, então vira carrossel. */
@media (max-width: 1199px) {
	.carrossel__trilho {
		grid-auto-columns: var(--cr-largura, 295px);
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		padding-bottom: 4px;
	}

	.carrossel__trilho::-webkit-scrollbar {
		display: none;
	}

	.carrossel__trilho > * {
		scroll-snap-align: start;
	}
}

@media (max-width: 900px) {
	.carrossel {
		--cr-largura: 78%;
	}

	.carrossel__trilho {
		gap: 20px;
	}

	.galeria .carrossel,
	.reels .carrossel {
		--cr-largura: 76%;
	}

	.secao__cabeca {
		flex-direction: column;
		align-items: flex-start;
	}

	.secao__cabeca--centro {
		align-items: center;
	}

	.secao__acao .carrossel__nav {
		margin-top: 8px;
	}

	.cartao {
		padding: 36px 28px 32px;
	}
}

@media (max-width: 640px) {
	body {
		font-size: 17px;
	}

	.container {
		padding-inline: 20px;
	}

	.lista-noticias {
		grid-template-columns: minmax(0, 1fr);
	}

	.carrossel {
		--cr-largura: 86%;
	}

	.reels .carrossel {
		--cr-largura: 68%;
	}

	.artigo__conteudo {
		font-size: 18px;
		line-height: 28px;
	}

	.rodape__marca {
		flex-direction: column;
	}
}

/* ==========================================================================
   13. Acessibilidade: movimento reduzido
   ========================================================================== */

/* Impressão e captura de página inteira não disparam o IntersectionObserver:
   sem isto, tudo que não passou pela viewport sai em branco no papel/PDF. */
@media print {
	.js .rv,
	.hero__marca,
	.hero__numero,
	.hero__slogan,
	.hero__foto,
	.hero__brilhos {
		opacity: 1 !important;
		transform: none !important;
		animation: none !important;
	}

	.topo,
	.carrossel__nav {
		display: none !important;
	}

	.carrossel__trilho {
		overflow: visible !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}

	.rv,
	.hero__marca,
	.hero__numero,
	.hero__slogan,
	.hero__foto,
	.hero__brilhos {
		opacity: 1 !important;
		transform: none !important;
	}
}
