/* Topo da Home com a vitrine de cursos, as redes e os ícones maiores. Aprovado pelo Alex em 11/11/2026. */

.hero-content--vitrine {
  display: grid;
  grid-template-columns: minmax(0, 620px);
  gap: 22px;
  padding-top: calc(var(--header-height) + 30px);
  padding-bottom: 104px;
}
.hero-content--vitrine h1 { font-size: clamp(2.5rem, 3.9vw, 3.9rem); }
.hero-content--vitrine .hero-copy { max-width: 560px; margin-top: 14px; font-size: 0.98rem; line-height: 1.6; }
.hero-content--vitrine .hero-actions { margin-top: 0; }

.vitrine { position: relative; width: min(100%, 580px); }
.vitrine-palco {
  position: relative;
  height: 292px;
  touch-action: pan-y;
}
.vitrine-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: 236px;
  height: 282px;
  margin-left: -118px;
  transition: transform 0.8s cubic-bezier(0.22, 0.8, 0.2, 1), filter 0.8s ease, opacity 0.8s ease;
  will-change: transform, filter;
}
.vitrine-card a {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: radial-gradient(circle at 84% 8%, rgb(255 196 0 / 11%), transparent 42%), #151517;
  color: var(--white, #fff);
  text-decoration: none;
  box-shadow: 0 26px 60px rgb(0 0 0 / 50%);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.vitrine-card img { width: 62px; height: 62px; margin-bottom: 16px; border-radius: 17px; object-fit: contain; box-shadow: 0 12px 26px rgb(0 0 0 / 35%); }
.vitrine-tipo { color: var(--yellow); font-size: 0.64rem; font-weight: 850; letter-spacing: 0.14em; text-transform: uppercase; }
.vitrine-card strong { margin-top: 8px; font-size: 1.42rem; line-height: 1.08; letter-spacing: -0.03em; }
.vitrine-texto { margin-top: 10px; color: #bdbab3; font-size: 0.9rem; line-height: 1.5; }
.vitrine-cta { display: flex; justify-content: space-between; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); color: var(--yellow); font-size: 0.78rem; font-weight: 800; }

.vitrine-card[data-pos="centro"] { z-index: 3; transform: translateX(0) scale(1); filter: none; opacity: 1; }
.vitrine-card[data-pos="centro"] a { border-color: rgb(255 196 0 / 70%); box-shadow: 0 30px 70px rgb(0 0 0 / 55%), 0 16px 60px rgb(255 196 0 / 14%); }
.vitrine-card[data-pos="esquerda"],
.vitrine-card[data-pos="direita"] { z-index: 2; filter: blur(3px) brightness(0.7); opacity: 1; }
.vitrine-card[data-pos="esquerda"] { transform: translateX(-64%) scale(0.8); }
.vitrine-card[data-pos="direita"] { transform: translateX(64%) scale(0.8); }
.vitrine-card[data-pos="fora"] { z-index: 1; transform: scale(0.6); filter: blur(6px) brightness(0.5); opacity: 0; pointer-events: none; }
.vitrine-card[data-pos="esquerda"] a,
.vitrine-card[data-pos="direita"] a { cursor: pointer; }

.vitrine-controles { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; }
.vitrine-botao {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 50%;
  background: rgb(255 255 255 / 4%);
  color: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.vitrine-botao:hover, .vitrine-botao:focus-visible { border-color: var(--yellow); background: var(--yellow); color: var(--black); }
.vitrine-botao svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.vitrine-botao svg[hidden] { display: none; }
.vitrine-pontos { display: flex; gap: 8px; margin-inline: 6px; }
.vitrine-ponto { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / 28%); cursor: pointer; transition: width 0.3s ease, background-color 0.3s ease; }
.vitrine-ponto[aria-current="true"] { width: 26px; border-radius: 6px; background: var(--yellow); }

/* Redes logo abaixo da primeira dobra (pedido do Alex, 11/11/2026). */
.redes { padding: 54px 0; background: #0e0d0c; border-top: 1px solid var(--line); }
.redes-inner { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); align-items: center; gap: 40px; }
.redes h2 { margin: 0; font-family: "Arial Narrow", "Segoe UI", sans-serif; font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 850; letter-spacing: -0.05em; line-height: 1; color: #fff; }
.redes-lista { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rede {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.rede:hover, .rede:focus-visible { transform: translateY(-4px); border-color: rgb(255 196 0 / 65%); background: var(--surface-raised); }
.rede-logo { width: 58px; height: 58px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 16px; }
.rede-logo svg { width: 32px; height: 32px; }
.rede-youtube .rede-logo { background: #ff0033; }
.rede-youtube .rede-logo svg { fill: #fff; }
.rede-instagram .rede-logo { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.rede-instagram .rede-logo svg { fill: none; stroke: #fff; stroke-width: 2; }
.rede-instagram .rede-logo svg circle:last-child { fill: #fff; stroke: none; }
.rede-tiktok .rede-logo { background: #000; border: 1px solid rgb(255 255 255 / 16%); }
.rede-tiktok .rede-logo svg { fill: #fff; filter: drop-shadow(-1.5px -1.5px 0 #25f4ee) drop-shadow(1.5px 1.5px 0 #fe2c55); }
.rede-texto { display: grid; gap: 2px; min-width: 0; }
.rede-texto strong { font-size: 1.08rem; letter-spacing: -0.02em; }
.rede-texto span { color: var(--muted); font-size: 0.86rem; overflow-wrap: anywhere; }
.rede-seta { margin-left: auto; color: var(--yellow); font-weight: 800; }

/* Ícones maiores nos cards de cursos (pedido do Alex, 11/11/2026). */
.project-icon { width: 148px; height: 148px; margin-top: 30px; border-radius: 34px; box-shadow: 0 22px 48px rgb(0 0 0 / 38%); }

@media (max-width: 1100px) {
  .redes-inner { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 760px) {
  .redes { padding: 40px 0; }
  .redes-lista { grid-template-columns: 1fr; gap: 10px; }
  .project-icon { width: 120px; height: 120px; border-radius: 28px; }
  /* Pedido do Alex (11/11/2026): no celular o texto sobe e começa na altura do peito da foto,
     e a parte de baixo da foto escurece até o fundo para o texto ler bem. */
  .hero-content--vitrine { gap: 24px; padding-top: 318px; padding-bottom: 112px; }
  .hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgb(11 11 12 / 0%) 34%, rgb(11 11 12 / 62%) 56%, rgb(11 11 12 / 92%) 76%, #0b0b0c 94%);
  }
  .hero-content--vitrine h1 { font-size: clamp(2.45rem, 10vw, 3.6rem); }
  .vitrine { width: 100%; }
  .vitrine-palco { height: 300px; }
  .vitrine-card { width: 222px; height: 286px; margin-left: -111px; }
  .vitrine-card a { padding: 18px; }
  .vitrine-card[data-pos="esquerda"] { transform: translateX(-56%) scale(0.78); }
  .vitrine-card[data-pos="direita"] { transform: translateX(56%) scale(0.78); }
}

@media (prefers-reduced-motion: reduce) {
  .vitrine-card, .vitrine-card a, .vitrine-ponto { transition: none; }
}
