/* Carrossel de imagens reais dos avulsos da Missão (17/11/2026). Só CSS: scroll-snap horizontal (arrasta no celular,
   rola com o teclado); setas progressivas em static/js/vitrine_carrossel.js. */
.vit-carrossel { --vit-cor: #1971C2; margin: 0 auto; max-width: 1200px; padding: 0 32px; }
.mp-laranja .vit-carrossel, .hm-laranja .vit-carrossel { --vit-cor: #C2410C; }
.vit-topo h2 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .25rem; font-size: clamp(1.3rem, 2.4vw, 1.75rem); color: #03183F; }
.vit-topo h2 .icone { width: 1.4em; height: 1.4em; color: var(--vit-cor); }
.vit-dica { margin: 0 0 1rem; color: #495057; font-weight: 600; }
.vit-moldura { position: relative; }
.vit-trilho { list-style: none; margin: 0; padding: 0 0 .75rem; display: flex; gap: 1rem; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; }
.vit-trilho:focus-visible { outline: 3px solid #FFD43B; outline-offset: 4px; border-radius: 18px; }
.vit-slide { flex: 0 0 min(86%, 720px); scroll-snap-align: center; }
.vit-slide figure { margin: 0; height: 100%; display: flex; flex-direction: column; background: #fff; border-radius: 18px;
  border: 1px solid #dee2e6; box-shadow: 0 10px 26px rgba(3, 24, 63, .12); overflow: hidden; }
.vit-foto { background: #f1f3f5; display: flex; align-items: center; justify-content: center; height: clamp(260px, 58vh, 520px); }
.vit-foto img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: top center; }
.vit-slide figcaption { padding: .8rem 1rem 1rem; font-weight: 700; color: #212529; line-height: 1.35; border-top: 4px solid var(--vit-cor); }
.vit-num { display: inline-block; margin-right: .35rem; padding: .1rem .5rem; border-radius: 999px; background: var(--vit-cor);
  color: #fff; font-size: .8rem; font-weight: 800; vertical-align: 1px; }
.vit-seta { position: absolute; top: calc(clamp(260px, 58vh, 520px) / 2); transform: translateY(-50%); z-index: 2;
  width: 3rem; height: 3rem; border-radius: 50%; border: 0; cursor: pointer; display: flex; align-items: center;
  justify-content: center; background: var(--vit-cor); color: #fff; box-shadow: 0 6px 16px rgba(3, 24, 63, .3); }
.vit-seta[hidden] { display: none; }
.vit-seta .icone { width: 1.6rem; height: 1.6rem; }
.vit-seta:hover { filter: brightness(1.1); }
.vit-seta:focus-visible { outline: 3px solid #FFD43B; outline-offset: 2px; }
.vit-ant { left: -.6rem; }
.vit-prox { right: -.6rem; }
.vit-seta:disabled { opacity: .35; cursor: default; }
.vit-pontos { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.vit-pontos a { width: .8rem; height: .8rem; border-radius: 50%; background: #ced4da; }
.vit-pontos a:hover, .vit-pontos a:focus-visible, .vit-pontos a[aria-current="true"] { background: var(--vit-cor); }
.vit-nota { margin: .6rem 0 0; text-align: center; color: #6c757d; font-size: .82rem; }
.mp-vitrine { padding-top: 2.2rem; padding-bottom: .4rem; }
@media (max-width: 720px) {
  .vit-carrossel { padding: 0 20px; }
  .vit-slide { flex-basis: 92%; }
  .vit-foto { height: clamp(220px, 52vh, 420px); }
  .vit-seta { width: 2.5rem; height: 2.5rem; }
  .vit-ant { left: -.3rem; }
  .vit-prox { right: -.3rem; }
}
@media (prefers-reduced-motion: reduce) { .vit-trilho { scroll-behavior: auto; } }

/* Miniatura no card do avulso (página inicial e páginas de curso) */
.hm-card .vit-capa { display: block; margin: 0 0 .8rem; border-radius: 12px; overflow: hidden; border: 1px solid #dee2e6;
  aspect-ratio: 16 / 10; background: #f1f3f5; position: relative; }
.hm-card .vit-capa img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hm-card .vit-capa span { position: absolute; left: .5rem; bottom: .5rem; padding: .2rem .6rem; border-radius: 999px;
  background: rgba(3, 24, 63, .85); color: #fff; font-size: .78rem; font-weight: 800; }

/* Mini carrossel automático do card da página inicial (17/11/2026): as imagens passam sozinhas */
.hm-card .vit-auto img { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.hm-card .vit-auto img.ativa { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hm-card .vit-auto img { transition: none; } }
