/* V6 · acabamento premium: luz em movimento, arte geométrica, entradas animadas e brilho no toque.
   Tudo some sozinho em "Menos movimento" e quando o celular pede para reduzir animações. */
@property --v6-ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* ---------- faixa de luz (como em site de carro) nos destaques ---------- */
.ola, .login-arte, .v6-hero { isolation: isolate; }
.ola::after, .login-arte::after, .v6-hero::after {
  content: ""; position: absolute; z-index: 0; top: -60%; left: -30%; width: 38%; height: 220%; pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0) 30%, rgba(255, 214, 150, .22) 48%, rgba(255, 255, 255, .32) 50%, rgba(255, 214, 150, .18) 52%, transparent 70%);
  transform: rotate(14deg) translateX(-120%); animation: v6-luz 7s cubic-bezier(.6, 0, .2, 1) 1.2s infinite;
}
@keyframes v6-luz { 0% { transform: rotate(14deg) translateX(-120%); } 38%, 100% { transform: rotate(14deg) translateX(420%); } }
.ola > *, .login-arte > * { z-index: 1; }
.ola { background: radial-gradient(60% 120% at 100% 0, rgba(243, 146, 0, .45), transparent 55%), radial-gradient(50% 80% at 0 100%, rgba(26, 115, 232, .45), transparent 60%), linear-gradient(130deg, #031226, #0b2e5c 50%, #0a4a93); }
.ola h2 { background: linear-gradient(92deg, #fff 0%, #fff 55%, #ffd08a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.01em; }

/* arte: linhas de velocidade e anéis no fundo dos destaques */
.ola .v6-arte, .login-arte .v6-arte { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.v6-arte i { position: absolute; display: block; border-radius: 999px; }
.v6-arte .l1, .v6-arte .l2, .v6-arte .l3 { height: 2px; right: -10%; background: linear-gradient(90deg, transparent, rgba(255, 196, 110, .9), transparent); animation: v6-risco 3.8s linear infinite; }
.v6-arte .l1 { top: 22%; width: 42%; } .v6-arte .l2 { top: 58%; width: 30%; animation-delay: 1.3s; opacity: .7; } .v6-arte .l3 { top: 80%; width: 52%; animation-delay: 2.4s; opacity: .5; }
@keyframes v6-risco { from { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } to { transform: translateX(-260%); opacity: 0; } }
.v6-arte .an { width: 340px; height: 340px; right: -110px; top: -150px; border: 1.5px solid rgba(255, 255, 255, .14); animation: v6-gira 30s linear infinite; }
.v6-arte .an::after { content: ""; position: absolute; top: 18px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: #f39200; box-shadow: 0 0 18px 4px rgba(243, 146, 0, .8); }
.v6-arte .an2 { width: 520px; height: 520px; right: -230px; top: -250px; border: 1px dashed rgba(255, 255, 255, .1); animation: v6-gira 60s linear infinite reverse; }
@keyframes v6-gira { to { transform: rotate(360deg); } }

/* ---------- entradas em cascata ---------- */
.conteudo > *, .grade > *, .tipos > *, .lista > li, .salas-grade > *, .videos-g > *, .atencao-l > li, .grade.g4 > .kpi { animation: v6-sobe .55s cubic-bezier(.2, .8, .2, 1) both; }
.grade > *:nth-child(2), .tipos > *:nth-child(2), .lista > li:nth-child(2), .salas-grade > *:nth-child(2) { animation-delay: .05s; }
.grade > *:nth-child(3), .tipos > *:nth-child(3), .lista > li:nth-child(3), .salas-grade > *:nth-child(3) { animation-delay: .1s; }
.grade > *:nth-child(4), .tipos > *:nth-child(4), .lista > li:nth-child(4), .salas-grade > *:nth-child(4) { animation-delay: .15s; }
.grade > *:nth-child(n+5), .tipos > *:nth-child(n+5), .lista > li:nth-child(n+5), .salas-grade > *:nth-child(n+5) { animation-delay: .2s; }
@keyframes v6-sobe { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

/* ---------- cartões com borda de luz ao passar o mouse ---------- */
.card, .tipo, .kpi, .sala-c, .video-c { position: relative; }
@media (hover: hover) {
  .tipo::before, .kpi::before, a.item::before, .video-c::before {
    content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none; opacity: 0; transition: opacity .25s;
    background: conic-gradient(from var(--v6-ang), #f39200, #1a73e8, #0b2e5c, #f39200);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  }
  .tipo:hover::before, .kpi:hover::before, a.item:hover::before, .video-c:hover::before { opacity: 1; animation: v6-borda 2.4s linear infinite; }
  .tipo:hover, .kpi:hover, .video-c:hover { transform: translateY(-4px); box-shadow: 0 22px 48px rgba(11, 46, 92, .18); }
}
@keyframes v6-borda { to { --v6-ang: 360deg; } }
.kpi { transition: transform .2s, box-shadow .2s; }
.kpi b { font-variant-numeric: tabular-nums; }

/* ---------- botões: brilho e toque ---------- */
.btn { position: relative; overflow: hidden; transition: transform .15s, box-shadow .2s, background .2s; }
.btn:active { transform: scale(.97); }
.btn.pri { background: linear-gradient(135deg, #ffa31a, #f39200 45%, #e07b00); }
.btn.pri::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); transition: left .6s; }
.btn.pri:hover::after { left: 130%; }
.v6-onda { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255, 255, 255, .45); animation: v6-onda .55s ease-out forwards; pointer-events: none; }
@keyframes v6-onda { to { transform: scale(2.6); opacity: 0; } }

/* ---------- barra lateral: item ativo com luz ---------- */
.menu a[aria-current=page] { background: linear-gradient(90deg, rgba(243, 146, 0, .22), rgba(243, 146, 0, .04)); box-shadow: inset 3px 0 0 #f39200; }
.menu .rot { margin-top: 14px; }
.lado { background: radial-gradient(120% 50% at 0 0, rgba(26, 115, 232, .38), transparent 60%), radial-gradient(90% 40% at 100% 100%, rgba(243, 146, 0, .16), transparent 60%), linear-gradient(180deg, #031226, #0b2e5c); }

/* ---------- sistemas embutidos (ensalamento, aproveitamento…) dentro da Central ---------- */
.v6-embed { position: relative; background: #fff; border: 1px solid var(--borda); border-radius: 20px; overflow: hidden; box-shadow: var(--s1); height: calc(100vh - 150px); min-height: 520px; }
.v6-embed iframe { width: 100%; height: 100%; border: 0; display: block; background: #f3f6fb; }
.v6-embed .v6-carrega { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--mudo); font-weight: 700; background: linear-gradient(110deg, #f3f6fb 30%, #fff 50%, #f3f6fb 70%) 0 0 / 300% 100%; animation: v6-brilho 1.4s linear infinite; }
@keyframes v6-brilho { to { background-position: -300% 0; } }
.v6-embed-barra { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 12px; }
.v6-embed-barra .dica { color: var(--mudo); font-size: .88rem; }
@media (max-width: 900px) { .v6-embed { height: calc(100vh - 210px); border-radius: 14px; } }

/* ---------- respeito a quem pede menos movimento ---------- */
html.a11y-calma .ola::after, html.a11y-calma .login-arte::after, html.a11y-calma .v6-arte, html.a11y-calma .v6-hero::after { display: none; }
@media (prefers-reduced-motion: reduce) { .ola::after, .login-arte::after, .v6-arte, .v6-hero::after { display: none; } }
@media print { .conteudo > *, .grade > * { animation: none !important; } }

/* ---------- V6.1 · ensalamento dentro da Central, como se fosse a mesma página ---------- */
.v6-painel { display: none; position: relative; height: 100vh; background: #f3f6fb; }
.principal.modo-painel > .topo, .principal.modo-painel > .conteudo { display: none !important; }
.principal.modo-painel > .v6-painel { display: block; }
.v6-painel iframe { width: 100%; height: 100%; border: 0; display: block; }
.v6-painel .v6-carrega { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--mudo); font-weight: 700; background: linear-gradient(110deg, #f3f6fb 30%, #fff 50%, #f3f6fb 70%) 0 0 / 300% 100%; animation: v6-brilho 1.4s linear infinite; }
@media (max-width: 900px) { .v6-painel { height: calc(100vh - 68px); } }
.menu .cont[hidden] { display: none; }

.v6-arte .b1, .v6-arte .b2 { border-radius: 50%; filter: blur(6px); }
.v6-arte .b1 { width: 460px; height: 460px; left: -160px; bottom: -260px; background: radial-gradient(circle, rgba(26, 115, 232, .55), transparent 65%); animation: v6-flutua 14s ease-in-out infinite alternate; }
.v6-arte .b2 { width: 380px; height: 380px; right: 8%; top: -220px; background: radial-gradient(circle, rgba(243, 146, 0, .42), transparent 65%); animation: v6-flutua 18s ease-in-out -4s infinite alternate-reverse; }
@keyframes v6-flutua { from { transform: translate(0, 0) scale(1); } to { transform: translate(80px, -40px) scale(1.18); } }
.v6-menu-g { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important; } .v6-menu-g .tipo { min-height: 0; padding: 14px; } .v6-menu-g .tipo b { font-size: .95rem; }
