.inst-hero {
  position: relative;
  padding: 11.5rem 0 5rem;
  background: linear-gradient(160deg, var(--cor-superficie), rgba(var(--cor-destaque-rgb), .08) 60%, var(--cor-fundo));
  overflow: hidden;
}
.inst-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--inst-hero-image) center/cover no-repeat;
  opacity: .07;
  pointer-events: none;
}
.inst-hero__deco {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(var(--tinta-rgb), .045);
  font: 700 clamp(4rem, 11vw, 9rem)/1 var(--font-heading);
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}
.inst-hero__title {
  max-width: 850px;
  margin: 0 0 .6rem;
  color: var(--cor-texto);
  font: 700 clamp(2.8rem, 7vw, 5rem)/1.05 var(--font-heading);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.inst-hero__title span { color: var(--cor-primaria); }
.inst-content { padding: 4.5rem 0 6rem; background: var(--cor-fundo); }
.inst-copy {
  max-width: 880px;
  padding: clamp(1.4rem, 3vw, 2.3rem);
  border: 1px solid rgba(var(--tinta-rgb), .1);
  border-radius: 18px;
  background: var(--cor-superficie);
  color: rgba(var(--tinta-rgb), .85);
  font-size: 1rem;
  line-height: 1.85;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.inst-video {
  max-width: 880px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(var(--tinta-rgb), .1);
  aspect-ratio: 16 / 9;
  background: #111;
}
.inst-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.inst-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(var(--tinta-rgb), .1);
  border-radius: 18px;
  background: var(--cor-superficie);
  box-shadow: var(--sombra-cartao);
}
.inst-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  padding: 1rem;
  background: rgba(var(--tinta-rgb), .035);
}
.inst-card__media img { display: block; width: 100%; max-height: 240px; object-fit: contain; }
/* Foto de pessoa cadastrada no painel (Diretoria, Comissão Técnica): retrato
   ocupando a moldura inteira, e não o logo/escudo centralizado acima. */
.inst-card__media--foto { padding: 0; height: 280px; }
.inst-card__media--foto img { height: 100%; max-height: none; object-fit: cover; object-position: center top; }
.inst-card__body { padding: 1.3rem 1.5rem 1.5rem; }
.inst-card__eyebrow {
  margin: 0 0 .4rem;
  color: var(--cor-primaria);
  font: 700 .7rem var(--font-heading);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.inst-card__title { margin: 0 0 .55rem; color: var(--cor-texto); font: 700 1.15rem var(--font-heading); }
.inst-card__text { margin: 0; color: rgba(var(--tinta-rgb), .7); font-size: .9rem; line-height: 1.6; white-space: pre-line; }
.inst-empty { color: rgba(var(--tinta-rgb), .55); text-align: center; padding: 3rem 1rem; }
@media (max-width: 767px) {
  .inst-hero { padding: 9.5rem 0 3.5rem; }
  .inst-content { padding: 3rem 0 4rem; }
  .inst-card__media { min-height: 150px; }
  .inst-card__media--foto { height: 240px; }
}

/* ══════════════════════════════════════════════════════════
   CHAMADA DE ABERTURA
   ══════════════════════════════════════════════════════════
   Para o parágrafo curto que abre a página. O `.inst-copy` é uma CAIXA
   para texto longo — com três linhas ele fica vazio e desequilibrado, e
   ainda preserva as quebras do arquivo (`white-space: pre-line`), o que
   deixa as linhas curtas e irregulares. Aqui o texto é centralizado,
   sem moldura, e quebra sozinho conforme a largura da tela. */
.inst-intro {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.inst-intro p {
  margin: 0;
  color: rgba(var(--tinta-rgb), .72);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.8;
}
.inst-intro strong {
  color: var(--cor-texto);
  font-weight: 600;
}
.inst-intro::after {
  content: '';
  display: block;
  width: 58px;
  height: 3px;
  margin: clamp(1.2rem, 2.5vw, 1.7rem) auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--cor-primaria), var(--cor-destaque));
}

/* ══════════════════════════════════════════════════════════
   LINHA DO TEMPO — evolução do escudo, fases da história
   ══════════════════════════════════════════════════════════
   Alterna imagem e texto dos dois lados de uma linha central, com o
   período marcado sobre a linha. No celular vira uma coluna só, com a
   linha à esquerda e um ponto por fase.

   Mora no core (e não dentro do template da página) porque o conteúdo
   vem de `config/clubes/<perfil>/conteudo/*.html`, que só escreve texto:
   as classes precisam chegar prontas para o clube. */
.inst-timeline { position: relative; padding: .5rem 0; }
.inst-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(180deg,
    transparent,
    rgba(var(--cor-primaria-rgb), .3) 5%,
    rgba(var(--cor-primaria-rgb), .3) 95%,
    transparent);
}

.inst-timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  align-items: center;
  margin-bottom: clamp(1.6rem, 3.5vw, 2.8rem);
}
.inst-timeline__item:last-child { margin-bottom: 0; }

/* O período fica sobre a linha e a cobre: o fundo opaco é o que faz o
   "marco" aparecer, no lugar de uma bolinha solta. */
.inst-timeline__ano {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  padding: .4rem .8rem;
  border: 1px solid rgba(var(--cor-primaria-rgb), .32);
  border-radius: 50px;
  background: var(--cor-fundo);
  box-shadow: 0 0 0 6px rgba(var(--cor-primaria-rgb), .06);
  color: var(--cor-primaria);
  font: 700 .72rem var(--font-heading);
  letter-spacing: .05em;
  white-space: nowrap;
  text-align: center;
}

/* Flex, e não `text-align`: a imagem é elemento de bloco, então alinhar
   pelo texto não a moveria — ela ficaria colada na borda da página em vez
   de perto da linha central. */
.inst-timeline__media {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  justify-content: flex-end;
  padding-right: clamp(1rem, 2.5vw, 2.2rem);
}
.inst-timeline__media img {
  width: auto;
  max-width: 100%;
  max-height: clamp(150px, 19vw, 210px);
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .2));
  transition: transform .35s ease;
}
.inst-timeline__item:hover .inst-timeline__media img {
  transform: translateY(-5px) scale(1.03);
}

.inst-timeline__body {
  grid-column: 3;
  grid-row: 1;
  padding-left: clamp(1rem, 2.5vw, 2.2rem);
}
.inst-timeline__titulo {
  margin: 0 0 .5rem;
  color: var(--cor-texto);
  font: 700 clamp(1.05rem, 1.9vw, 1.35rem) var(--font-heading);
}
.inst-timeline__texto {
  max-width: 46ch;
  margin: 0;
  color: rgba(var(--tinta-rgb), .7);
  font-size: .9rem;
  line-height: 1.65;
}

/* Os itens pares invertem: imagem à direita, texto à esquerda. */
.inst-timeline__item:nth-child(even) .inst-timeline__media {
  grid-column: 3;
  justify-content: flex-start;
  padding: 0 0 0 clamp(1rem, 2.5vw, 2.2rem);
}
.inst-timeline__item:nth-child(even) .inst-timeline__body {
  grid-column: 1;
  text-align: right;
  padding: 0 clamp(1rem, 2.5vw, 2.2rem) 0 0;
}
.inst-timeline__item:nth-child(even) .inst-timeline__texto { margin-left: auto; }

@media (max-width: 860px) {
  .inst-timeline::before { left: 9px; }
  .inst-timeline__item,
  .inst-timeline__item:nth-child(even) {
    grid-template-columns: 1fr;
    align-items: start;
    margin-bottom: 2.4rem;
    padding-left: 2.4rem;
  }
  .inst-timeline__item::before {
    content: '';
    position: absolute;
    left: 3px;
    top: .5rem;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--cor-primaria);
    box-shadow: 0 0 0 4px rgba(var(--cor-primaria-rgb), .15);
  }
  .inst-timeline__ano,
  .inst-timeline__media,
  .inst-timeline__body,
  .inst-timeline__item:nth-child(even) .inst-timeline__media,
  .inst-timeline__item:nth-child(even) .inst-timeline__body {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    justify-content: flex-start;
    padding: 0;
    text-align: left;
  }
  .inst-timeline__item:nth-child(even) .inst-timeline__texto { margin-left: 0; }
  .inst-timeline__ano { box-shadow: none; }
  .inst-timeline__media { margin: .85rem 0; }
  .inst-timeline__media img { max-height: 170px; }
}

/* ── Novo Manto ── */
.manto__intro {
  max-width: 680px;
  margin: 0 0 2.5rem;
  color: rgba(var(--tinta-rgb), .7);
  font-size: 1.05rem;
  line-height: 1.7;
}
.manto-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(var(--tinta-rgb), .1);
  border-radius: 20px;
  background: var(--cor-superficie);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .08);
  transition: transform .3s ease, box-shadow .3s ease;
}
.manto-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .14);
}
.manto-card__banner img {
  display: block;
  width: 100%;
  height: auto;
}
/* Espaço do banner enquanto a imagem não chega. */
.manto-card__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  aspect-ratio: 4 / 5;
  background:
    repeating-linear-gradient(135deg, rgba(var(--cor-destaque-rgb), .05) 0 14px, transparent 14px 28px),
    rgba(var(--cor-destaque-rgb), .08);
  color: rgba(var(--tinta-rgb), .45);
  font-family: var(--font-heading);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.manto-card__placeholder i { font-size: 2.4rem; }
.manto-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem;
}
.manto-card__title {
  margin: 0;
  color: var(--cor-texto);
  font: 700 1.4rem/1.2 var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.manto-card__desc {
  margin: .35rem 0 0;
  color: rgba(var(--tinta-rgb), .6);
}
.manto-card__cta {
  justify-content: center;
  width: 100%;
}
