:root {
  --laranja: #F26A21;
  --laranja-escuro: #D9500F;
  --laranja-claro: #FF8A3D;
  --amarelo: #FFC220;
  --preto: #1F1B18;
  --texto: #3A3532;
  --texto-fraco: #7C7570;
  --borda: #EFE7E1;
  --fundo: #FFFFFF;
  --fundo-cinza: #FBF6F2;
  --raio: 18px;
  --sombra: 0 2px 14px rgba(120, 70, 30, 0.09);
}

* { box-sizing: border-box; }

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

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

body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { line-height: 1.15; margin: 0; }

/* ------------------------------------------------------------- revelacao */

/* Os elementos nascem visiveis. A classe "com-revelacao" so e posta pelo
   js/site.js depois que ele roda -- assim, se o script falhar ou a pessoa
   estiver sem JavaScript, nada fica escondido. */
.com-revelacao .revela {
  opacity: 0;
  transform: translateY(22px);
}

.com-revelacao .revela--visivel {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Escalona os cards de cada grade, para entrarem em cascata e nao em bloco. */
.valores .revela--visivel,
.placar .revela--visivel,
.projetos .revela--visivel,
.marcos .revela--visivel { transition-delay: calc(var(--ordem, 0) * 70ms); }

.valores li:nth-child(2), .placar li:nth-child(2),
.projetos li:nth-child(2), .marcos .marco:nth-child(2) { --ordem: 1; }
.valores li:nth-child(3), .placar li:nth-child(3), .projetos li:nth-child(3) { --ordem: 2; }
.valores li:nth-child(4), .projetos li:nth-child(4) { --ordem: 3; }
.projetos li:nth-child(5) { --ordem: 1; }
.projetos li:nth-child(6) { --ordem: 2; }
.projetos li:nth-child(7) { --ordem: 3; }
.projetos li:nth-child(9) { --ordem: 1; }
.projetos li:nth-child(10) { --ordem: 2; }
.projetos li:nth-child(11) { --ordem: 3; }

@media (prefers-reduced-motion: reduce) {
  .com-revelacao .revela { opacity: 1; transform: none; }
}

/* --------------------------------------------------- propaganda eleitoral */

.legal {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 16px calc(10px + env(safe-area-inset-top));
  background: var(--laranja-escuro);
  color: #fff;
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.legal strong { font-size: 12.5px; font-weight: 900; letter-spacing: 0.08em; }

/* -------------------------------------------------------------------- menu */

.menu {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--borda);
  transition: box-shadow 0.25s ease, padding 0.25s ease;
}

/* Encolhe e ganha sombra assim que a pessoa comeca a rolar. */
.menu--rolado {
  padding-top: 9px;
  padding-bottom: 9px;
  box-shadow: 0 6px 22px rgba(120, 70, 30, 0.13);
}

.menu__marca {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: var(--preto);
}

.menu__marca strong { font-size: 14px; font-weight: 900; letter-spacing: 0.02em; }
.menu__marca span { font-size: 17px; font-weight: 900; color: var(--laranja); }

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

.menu__itens a {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--texto);
  text-decoration: none;
}

.menu__itens a:hover { color: var(--laranja-escuro); }

.menu__cta {
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--laranja);
  color: #fff !important;
  white-space: nowrap;
}

@media (max-width: 620px) {
  .menu { padding: 10px 14px; }
  .menu__itens { gap: 12px; }
  .menu__itens li:not(:last-child) { display: none; }
}

/* ------------------------------------------------------------------ capa */

.capa {
  position: relative;
  display: grid;
  gap: 32px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 44px 20px 52px;
}

/* Brilhos laranja bem suaves atras da capa, para o fundo nao ser branco seco.
   ATENCAO: nada de recuo negativo nas laterais aqui. Com "inset: -10% -40% 0"
   este bloco ficava 150 px mais largo que a tela no celular, criando rolagem
   lateral na pagina inteira -- e era isso que deixava o layout torto. */
.capa::before {
  content: '';
  position: absolute;
  inset: -10% 0 0;
  z-index: -1;
  background:
    radial-gradient(42% 46% at 78% 28%, rgba(242, 106, 33, 0.16), transparent 70%),
    radial-gradient(38% 42% at 12% 72%, rgba(255, 194, 32, 0.15), transparent 70%);
  pointer-events: none;
}

/* Entrada da capa: acontece uma vez, ao abrir a pagina. */
.capa__texto > * { animation: entra 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
.capa__olho { animation-delay: 0.05s; }
.capa h1 { animation-delay: 0.12s; }
.capa__linha { animation-delay: 0.2s; }
.capa__numero { animation-delay: 0.28s; }
.capa__acoes { animation-delay: 0.36s; }
.capa__arte { animation: entra 0.8s 0.2s cubic-bezier(0.22, 1, 0.36, 1) backwards; }

@keyframes entra {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .capa__texto > *, .capa__arte { animation: none; }
}

@media (min-width: 900px) {
  .capa { grid-template-columns: 1.15fr 0.85fr; padding: 64px 24px 72px; }
}

.capa__olho {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--laranja);
}

.capa h1 {
  font-size: clamp(30px, 6.5vw, 50px);
  font-weight: 900;
  color: var(--preto);
  letter-spacing: -0.015em;
}

.capa h1 em { font-style: normal; color: var(--laranja); display: block; }

.capa__linha {
  margin: 18px 0 0;
  font-size: 17.5px;
  color: var(--texto-fraco);
  max-width: 44ch;
}

.capa__numero {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 26px 0 0;
  flex-wrap: wrap;
}

.capa__numero span { font-size: 17px; font-weight: 800; color: var(--preto); letter-spacing: 0.02em; }
.capa__numero strong { font-size: 52px; font-weight: 900; color: var(--laranja); line-height: 1; }

.capa__acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.previa {
  position: relative;
  margin: 0;
  animation: flutua 6s ease-in-out infinite;
}

.previa img {
  border-radius: var(--raio);
  box-shadow: 0 16px 44px rgba(120, 70, 30, 0.22);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.previa:hover img {
  transform: translateY(-6px) rotate(-0.6deg);
  box-shadow: 0 24px 56px rgba(120, 70, 30, 0.28);
}

@keyframes flutua {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .previa { animation: none; }
  .previa:hover img { transform: none; }
}

/* Tapa o sexto quadradinho do deputado estadual, que sobra na arte impressa.
   Porcentagens de 992 x 1411: x 619, y 545, 103 x 124. */
.previa__correcao {
  position: absolute;
  left: 62.4%;
  top: 38.62%;
  width: 10.38%;
  height: 8.79%;
  background: rgb(252, 252, 251);
}

/* O vao que sobrou depois de apagar o quadradinho recebe a foto do
   candidato -- exatamente o que o gerador faz. Sem ela fica um buraco branco
   no meio da linha, e parece defeito. Mesma posicao usada em
   ARTE.foto.posicoes.deputadoEstadual (cx 663, cy 606, 70 px). */
.previa__retrato {
  position: absolute;
  left: 63.31%;
  top: 40.47%;
  width: 7.06%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* ---------------------------------------------------------------- botoes */

.botao {
  display: inline-block;
  padding: 15px 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.botao--principal { background: var(--laranja); color: #fff; box-shadow: 0 4px 0 var(--laranja-escuro); }
.botao--principal:hover { background: var(--laranja-escuro); transform: translateY(-2px); box-shadow: 0 6px 0 #B23F09, 0 10px 22px rgba(120, 70, 30, 0.25); }
.botao--principal:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--laranja-escuro); }
.botao--vazado { background: #fff; color: var(--laranja-escuro); border: 2px solid var(--laranja); }
.botao--vazado:hover { background: var(--laranja); color: #fff; transform: translateY(-2px); }
.botao--grande { padding: 19px 34px; font-size: 18px; }

.menu__cta { transition: transform 0.2s ease, background-color 0.2s ease; }
.menu__cta:hover { background: var(--laranja-escuro); transform: translateY(-1px); }

/* ---------------------------------------------------------------- secoes */

.secao {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 20px;
}

/* O menu e fixo no topo: sem esta folga ele cobre o titulo da secao quando
   a pessoa chega por um link de ancora. */
[id] { scroll-margin-top: 78px; }

/* Seções de fundo inteiro. O conteúdo é alinhado por padding, e não por
   "margin: auto" nos filhos: qualquer regra depois que use a forma curta
   (margin: 0 0 10px) zera as laterais e desalinha só aquele elemento. Foi
   assim que o título ficou centralizado sozinho, com o resto na esquerda. */
.secao--cinza,
.secao--destaque {
  max-width: none;
  padding-left: max(20px, calc((100% - 1120px) / 2));
  padding-right: max(20px, calc((100% - 1120px) / 2));
}

.secao--cinza { background: var(--fundo-cinza); }

.secao--destaque {
  background: linear-gradient(135deg, var(--laranja) 0%, var(--laranja-claro) 100%);
  color: #fff;
}

/* Cabecalho das secoes centralizado. O texto dentro dos cards continua na
   esquerda de proposito: paragrafo centralizado com varias linhas e ruim de
   ler, porque o olho perde onde cada linha comeca. */
.secao__olho {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--laranja);
}

.secao--destaque .secao__olho { color: rgba(255, 255, 255, 0.92); }

.secao h2 {
  max-width: 22ch;
  margin-inline: auto;
  font-size: clamp(26px, 4.6vw, 38px);
  font-weight: 900;
  text-align: center;
  color: var(--preto);
  letter-spacing: -0.01em;
}

.secao--destaque h2 { color: #fff; }
.secao--destaque h2 strong { color: var(--amarelo); }

.secao__texto {
  max-width: 48ch;
  margin: 12px auto 0;
  font-size: 17.5px;
  text-align: center;
}

.eixos { justify-content: center; }

/* --------------------------------------------------------- eixos e valores */

.eixos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.eixos__icone {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  font-size: 16px;
}

.valores {
  display: grid;
  gap: 14px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) { .valores { grid-template-columns: 1fr 1fr; } }

.valores li {
  padding: 20px 22px;
  border-radius: var(--raio);
  background: rgba(255, 255, 255, 0.95);
  color: var(--texto);
}

.valores__cifra {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--laranja-escuro);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.valores__cifra strong { font-size: 40px; font-weight: 900; line-height: 1; }
.valores__texto { margin: 6px 0 0; font-size: 16px; }
.valores__texto b { color: var(--laranja-escuro); }

/* --------------------------------------------------------------- placar */

.placar {
  display: grid;
  gap: 14px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) { .placar { grid-template-columns: repeat(3, 1fr); } }

.placar li {
  padding: 24px;
  border: 2px solid var(--borda);
  border-radius: var(--raio);
  text-align: center;
}

/* O numero e o destaque; o "+ de" e so um qualificador.
   Antes a regra ".placar span" pegava tambem o numero e o jogava para 15px
   numa linha propria -- ficava o "+ de" gigante e o numero miudo. */
.placar__numero {
  margin: 0;
  font-weight: 900;
  color: var(--laranja);
  line-height: 1;
}

.placar__numero small {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--texto-fraco);
}

.placar__numero span { font-size: clamp(44px, 7vw, 58px); }

.placar__numero--texto { font-size: clamp(26px, 4vw, 32px); }

.placar__texto {
  margin: 12px 0 0;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--texto);
}

/* --------------------------------------------------------------- marcos */

.marcos { display: grid; gap: 16px; margin-top: 30px; }

@media (min-width: 820px) { .marcos { grid-template-columns: 1fr 1fr; } }

.marco {
  padding: 26px;
  border-radius: var(--raio);
  background: var(--fundo-cinza);
  border: 1px solid var(--borda);
}

.marco__tag,
.projetos__tag {
  display: inline-block;
  margin: 0 0 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--laranja);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.marco h3 { font-size: 21px; font-weight: 900; color: var(--preto); }
.marco p:last-child { margin: 12px 0 0; font-size: 16px; }

/* ------------------------------------------------------------- projetos */

.projetos {
  display: grid;
  gap: 14px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: projeto;
}

@media (min-width: 720px) { .projetos { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .projetos { grid-template-columns: repeat(3, 1fr); } }

.projetos li {
  position: relative;
  padding: 22px 22px 22px 24px;
  border-radius: var(--raio);
  background: #fff;
  border: 1px solid var(--borda);
  box-shadow: var(--sombra);
  counter-increment: projeto;
}

.projetos li::before {
  content: counter(projeto);
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 28px;
  font-weight: 900;
  color: var(--borda);
  line-height: 1;
}

.projetos h3 { font-size: 18px; font-weight: 900; color: var(--preto); padding-right: 34px; }
.projetos li p:last-child { margin: 10px 0 0; font-size: 15.5px; color: var(--texto-fraco); }

/* ----------------------------------------------------------- principios */

.secao--principios { text-align: center; }

.principios {
  display: grid;
  gap: 14px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) { .principios { grid-template-columns: repeat(3, 1fr); } }

.principios li {
  padding: 22px;
  border-radius: var(--raio);
  background: var(--fundo-cinza);
  font-size: 16.5px;
}

.principios strong { color: var(--laranja-escuro); font-weight: 900; }

.principios__fecho {
  max-width: 46ch;
  margin: 26px auto 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--preto);
}

/* -------------------------------------------------------------- chamada */

.chamada {
  max-width: none;
  padding: 58px 20px 66px;
  background: linear-gradient(135deg, var(--laranja-escuro) 0%, var(--laranja) 100%);
  color: #fff;
  text-align: center;
}

.chamada h2 {
  max-width: 20ch;
  margin: 0 auto;
  font-size: clamp(25px, 4.4vw, 36px);
  font-weight: 900;
}

.chamada p { max-width: 46ch; margin: 16px auto 28px; font-size: 17px; }
.chamada .botao--principal { background: #fff; color: var(--laranja-escuro); box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18); }

/* --------------------------------------------------------------- rodape */

.rodape {
  padding: 40px 20px calc(40px + env(safe-area-inset-bottom));
  background: var(--preto);
  color: #fff;
  text-align: center;
}

.rodape__numero { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: 0.02em; }
.rodape__numero strong { color: var(--laranja); font-size: 26px; font-weight: 900; }
.rodape__cargo { margin: 4px 0 22px; font-size: 14px; color: rgba(255, 255, 255, 0.7); }

.rodape__legal {
  margin: 0;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72);
}

/* ------------------------------------------------- reacoes ao passar o mouse */

.valores li,
.placar li,
.marco,
.projetos li {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.valores li:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(120, 70, 30, 0.2); }

.placar li:hover,
.marco:hover {
  transform: translateY(-5px);
  border-color: var(--laranja);
  box-shadow: 0 14px 30px rgba(120, 70, 30, 0.12);
}

.projetos li:hover {
  transform: translateY(-5px);
  border-color: var(--laranja);
  box-shadow: 0 16px 34px rgba(120, 70, 30, 0.16);
}

/* O numero grande do card acende junto. */
.projetos li::before { transition: color 0.25s ease; }
.projetos li:hover::before { color: var(--laranja); }

.eixos li { transition: transform 0.25s ease; }
.eixos li:hover { transform: translateY(-3px); }
.eixos__icone { transition: background-color 0.25s ease, transform 0.25s ease; }
.eixos li:hover .eixos__icone { background: rgba(255, 255, 255, 0.4); transform: scale(1.1); }

/* A chamada final pulsa de leve, so uma vez ao aparecer. */
.chamada .botao--principal { animation: respira 2.6s ease-in-out 3; }

@keyframes respira {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}

@media (prefers-reduced-motion: reduce) {
  .valores li:hover, .placar li:hover, .marco:hover,
  .projetos li:hover, .eixos li:hover,
  .botao--principal:hover, .botao--vazado:hover, .menu__cta:hover { transform: none; }
  .chamada .botao--principal { animation: none; }
}

/* ------------------------------------------------------------- historia */

/* Linha do tempo: uma linha vertical com marcadores, no lugar de um monte de
   caixas soltas. Resolve tambem o numero impar de etapas, que numa grade de
   duas colunas deixava a ultima orfa, ocupando meia largura. */
.linha-tempo {
  position: relative;
  max-width: 760px;
  margin: 36px auto 0;
  padding: 0 0 0 46px;
  list-style: none;
}

/* O fio que liga as etapas. */
.linha-tempo::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(var(--laranja), var(--amarelo));
}

.linha-tempo__etapa {
  position: relative;
  padding: 0 0 34px;
}

.linha-tempo__etapa:last-child { padding-bottom: 0; }

/* Marcador de cada etapa, em cima do fio. */
.linha-tempo__etapa::before {
  content: '';
  position: absolute;
  left: -46px;
  top: 4px;
  width: 15px;
  height: 15px;
  margin-left: 7px;
  border-radius: 50%;
  background: var(--laranja);
  box-shadow: 0 0 0 5px var(--fundo-cinza), 0 0 0 7px rgba(242, 106, 33, 0.28);
}

.linha-tempo__etapa h3 {
  margin-bottom: 10px;
  font-size: clamp(19px, 2.6vw, 23px);
  font-weight: 900;
  color: var(--laranja-escuro);
}

.linha-tempo__etapa p { margin: 0 0 10px; font-size: 16.5px; }
.linha-tempo__etapa p:last-child { margin-bottom: 0; }
.linha-tempo__etapa b { color: var(--preto); }

@media (max-width: 560px) {
  .linha-tempo { padding-left: 34px; }
  .linha-tempo::before { left: 7px; }
  .linha-tempo__etapa::before { left: -34px; margin-left: 0; }
}

.citacao {
  max-width: 760px;
  margin: 40px auto;
  padding: 30px 34px;
  border-left: 6px solid var(--laranja);
  background: #fff;
  border-radius: 0 var(--raio) var(--raio) 0;
  box-shadow: var(--sombra);
}

.citacao p {
  margin: 0;
  font-size: clamp(20px, 3.2vw, 27px);
  font-weight: 800;
  line-height: 1.3;
  color: var(--preto);
}

.citacao em { font-style: italic; color: var(--laranja); }

.proposito {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px;
  border-radius: var(--raio);
  background: #fff;
  border: 1px solid var(--borda);
  box-shadow: var(--sombra);
}

.proposito h3 {
  margin-bottom: 16px;
  font-size: 21px;
  font-weight: 900;
  color: var(--preto);
}

.proposito ul { margin: 0 0 18px; padding-left: 22px; }
.proposito li { margin-bottom: 6px; font-size: 16.5px; }
.proposito b { color: var(--laranja-escuro); }
.proposito p { font-size: 16.5px; }

.proposito__assinatura { margin: 20px 0 0; font-size: 16px; color: var(--texto-fraco); }
.proposito__assinatura strong { font-size: 20px; color: var(--laranja-escuro); }

/* -------------------------------------------------------------- jingle */

.jingle {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 30;
}

.jingle__botao {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--laranja);
  color: #fff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(120, 70, 30, 0.32);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.jingle__botao:hover { background: var(--laranja-escuro); transform: translateY(-2px); }

/* Tres barrinhas que "dancam" enquanto o jingle toca. */
.jingle__icone {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  width: 18px;
  height: 16px;
}

.jingle__icone::before,
.jingle__icone::after,
.jingle__botao::before {
  content: '';
  width: 4px;
  height: 6px;
  border-radius: 2px;
  background: #fff;
  align-self: flex-end;
}

.jingle__botao::before { order: -1; margin-right: -11px; height: 14px; }

.jingle--tocando .jingle__icone::before { animation: pulso 0.9s ease-in-out infinite; }
.jingle--tocando .jingle__icone::after { animation: pulso 0.9s 0.3s ease-in-out infinite; }
.jingle--tocando .jingle__botao::before { animation: pulso 0.9s 0.15s ease-in-out infinite; }

@keyframes pulso {
  0%, 100% { height: 5px; }
  50% { height: 16px; }
}

@media (max-width: 620px) {
  .jingle__texto { display: none; }
  .jingle__botao { padding: 14px; }
  .jingle__botao::before { margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .jingle--tocando .jingle__icone::before,
  .jingle--tocando .jingle__icone::after,
  .jingle--tocando .jingle__botao::before { animation: none; }
  .jingle__botao:hover { transform: none; }
}

/* Frase-sintese do candidato, sobre faixa laranja como no material dele. */
.proposito__destaque {
  margin: 22px 0 0;
  padding: 20px 24px;
  border-radius: var(--raio);
  background: linear-gradient(135deg, var(--laranja) 0%, var(--laranja-claro) 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
}

/* ---------------------------------------------------- recortes das fotos */

/* As fotos vieram dentro dos cartazes (assets/01.jpeg e 02.jpeg), nao como
   arquivos soltos. Em vez de gerar arquivos novos, cada foto e exibida como
   uma janela sobre o cartaz: o background-size amplia o cartaz e o
   background-position desliza ate a foto desejada.
   As medidas saem das coordenadas de cada foto no cartaz de 1086 x 1448. */
.foto {
  background-repeat: no-repeat;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(120, 70, 30, 0.16);
}

.foto--retrato { background-image: url("../assets/01.jpeg"); background-size: 185.32% 160.89%; background-position: 100% 5.47%; aspect-ratio: 586 / 900; }
.foto--menino { background-image: url("../assets/01.jpeg"); background-size: 324.18% 673.49%; background-position: 6.66% 75.02%; aspect-ratio: 335 / 215; }
.foto--militar { background-image: url("../assets/01.jpeg"); background-size: 350.32% 673.49%; background-position: 50.90% 75.02%; aspect-ratio: 310 / 215; }
.foto--jaleco { background-image: url("../assets/01.jpeg"); background-size: 339.38% 673.49%; background-position: 94.65% 75.02%; aspect-ratio: 320 / 215; }
.foto--mae { background-image: url("../assets/02.jpeg"); background-size: 425.88% 635.09%; background-position: 47.53% 29.10%; aspect-ratio: 255 / 228; }
.foto--estudando { background-image: url("../assets/02.jpeg"); background-size: 425.88% 818.08%; background-position: 47.53% 48.39%; aspect-ratio: 255 / 177; }
.foto--atendendo { background-image: url("../assets/02.jpeg"); background-size: 425.88% 946.41%; background-position: 47.53% 63.32%; aspect-ratio: 255 / 153; }
.foto--feira { background-image: url("../assets/02.jpeg"); background-size: 425.88% 905.00%; background-position: 47.53% 77.64%; aspect-ratio: 255 / 160; }

/* Retrato dele na abertura da historia. */
.historia__retrato {
  max-width: 300px;
  margin: 0 auto 8px;
  border-radius: var(--raio);
}

@media (min-width: 900px) {
  .historia__retrato { max-width: 340px; }
}

/* Foto ao lado de cada etapa da linha do tempo. */
.linha-tempo__foto {
  width: 100%;
  max-width: 300px;
  margin: 0 0 14px;
}

@media (min-width: 720px) {
  .linha-tempo__etapa {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 22px;
    align-items: start;
  }
  .linha-tempo__foto { margin: 4px 0 0; max-width: none; }
  .linha-tempo__etapa h3 { grid-column: 2; }
  .linha-tempo__etapa p { grid-column: 2; }
  .linha-tempo__foto { grid-row: 1 / span 10; }
}
