/* Colégio Ômega — modelo de landing de eventos */
:root {
  --azul: #0D4D7D; --azul2: #1485DB; --navy: #08263A; --amarelo: #FF822B;
  --tx: #1B2733; --tx2: #5A6875; --fundo: #FFFFFF; --fundo2: #F4F7FA; --linha: #E3E9EF;
  --acc: #1A75B8; --acc2: #FF822B;
  --raio: 18px; --sombra: 0 10px 30px rgba(8, 38, 58, .12);
  --disp: 'Barlow Condensed', 'Barlow', sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
html, body { overflow-x: clip; }
html { background: #08263A; }
body { font: 17px/1.65 'Barlow', system-ui, sans-serif; color: var(--tx); background: var(--fundo); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3 { font-family: var(--disp); line-height: 1.05; letter-spacing: .2px; }
h2 { font-size: clamp(30px, 4.5vw, 48px); }

/* ---------- botões e chips ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--acc); color: var(--btn-tx, #fff); font-weight: 700; padding: 14px 26px; border-radius: 99px; text-decoration: none; box-shadow: 0 8px 24px color-mix(in srgb, var(--acc) 40%, transparent); transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px color-mix(in srgb, var(--acc) 55%, transparent); }
.btn-claro { --btn-tx: #fff;
   background: rgba(255, 255, 255, .15); backdrop-filter: blur(8px); box-shadow: none; border: 1px solid rgba(255, 255, 255, .5); }
.btn-whats { --btn-tx: #fff;
   background: #1FAF54; box-shadow: 0 8px 24px rgba(31, 175, 84, .35); }
.chip { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; padding: 4px 12px; border-radius: 99px; background: color-mix(in srgb, var(--acc) 14%, #fff); color: color-mix(in srgb, var(--acc) 80%, #000); }
.chip.grande { font-size: 13px; background: var(--acc); color: #fff; padding: 6px 16px; }
.sobre-tit { display: inline-block; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 2px; color: var(--acc); margin-bottom: 10px; }
.sobre-tit::before { content: ''; display: inline-block; width: 28px; height: 3px; background: var(--acc2); vertical-align: middle; margin-right: 10px; border-radius: 3px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; background: var(--navy); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 22s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 38, 58, .15) 0%, rgba(8, 38, 58, .35) 45%, color-mix(in srgb, var(--navy) 92%, transparent) 100%), linear-gradient(90deg, color-mix(in srgb, var(--acc) 45%, transparent), transparent 60%); }
.hero-in { position: relative; z-index: 2; width: min(1200px, 100%); margin: 0 auto; padding: 40px clamp(16px, 4vw, 48px) 28px; }
.voltar { display: inline-block; color: #fff; opacity: .85; text-decoration: none; font-weight: 600; font-size: 14px; margin-bottom: 18px; }
.voltar:hover { opacity: 1; }
.hero h1 { margin: 16px 0 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 18px; }
.hero h1 span { font-size: clamp(46px, 8vw, 104px); font-weight: 800; text-transform: uppercase; animation: sobe .8s both; }
.ano-grande { text-transform: uppercase; font-size: clamp(46px, 8vw, 104px); font-weight: 800; color: transparent; -webkit-text-stroke: 2px var(--acc2); animation: sobe .8s .15s both; }
.hero-frase { font-size: clamp(18px, 2.2vw, 24px); font-weight: 500; max-width: 640px; animation: sobe .8s .25s both; }
.hero-data { margin-top: 6px; opacity: .9; animation: sobe .8s .3s both; }
.hero-acoes { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; animation: sobe .8s .4s both; }
@keyframes sobe { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.anos-tabs { display: inline-flex; gap: 4px; margin-top: 26px; padding: 5px; border-radius: 99px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(10px); }
.anos-tabs a { text-decoration: none; color: #fff; font-weight: 700; padding: 8px 18px; border-radius: 99px; transition: .2s; }
.anos-tabs a:hover { background: rgba(255, 255, 255, .18); }
.anos-tabs a.atual { background: #fff; color: var(--navy); }
.hero-nums { position: relative; z-index: 2; display: flex; justify-content: center; gap: clamp(20px, 6vw, 80px); padding: 18px 16px 26px; background: linear-gradient(0deg, rgba(0, 0, 0, .25), transparent); }
.hero-nums div { text-align: center; }
.hero-nums b { display: block; font-family: var(--disp); font-size: clamp(32px, 4vw, 46px); line-height: 1; color: var(--acc2); }
.hero-nums span { font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; opacity: .85; }

/* mosaico de capas da página Eventos */
.hero-hub { min-height: min(70vh, 620px); }
.hero-mosaico { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); }
.hero-mosaico img { width: 100%; height: 100%; object-fit: cover; animation: mosaico 1.2s calc(var(--i) * .12s) both; }
@keyframes mosaico { from { opacity: 0; transform: scale(1.15); } to { opacity: 1; transform: none; } }

/* faixa animada */
.faixa { background: var(--acc); color: #fff; overflow: hidden; padding: 12px 0; transform: rotate(-1deg); margin: -10px -10px 0; position: relative; z-index: 3; }
.faixa-trilho { display: flex; gap: 28px; width: max-content; animation: corre var(--dur, 30s) linear infinite; font-family: var(--disp); font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; align-items: center; padding-right: 28px; }
.faixa-trilho i { font-style: normal; }
.faixa-trilho span:nth-of-type(odd) { color: var(--acc2); }
.faixa:hover .faixa-trilho { animation-play-state: paused; }
@keyframes corre { to { transform: translateX(-50%); } }

/* sub-navegação fixa */
.subnav { position: sticky; top: 108px; z-index: 40; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linha); margin-top: 22px; }
.subnav-in { width: min(1200px, 100%); margin: 0 auto; display: flex; gap: 6px; padding: 10px clamp(16px, 4vw, 48px); overflow-x: auto; scrollbar-width: none; }
.subnav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--tx2); padding: 7px 16px; border-radius: 99px; white-space: nowrap; transition: .2s; }
.subnav a.ativo { background: var(--acc); color: #fff; }

/* ---------- seções ---------- */
.sec-in, .sobre-in { width: min(1200px, 100%); margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
section.sobre, .videos, .fotos, .anos, .outros, .filtros-sec { padding: clamp(56px, 8vw, 96px) 0; }
.sec-cab { margin-bottom: 32px; }
.sobre-in { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(24px, 5vw, 72px); }
.sobre h2 { color: var(--navy); }
.sobre-txt p { color: var(--tx2); margin-bottom: 16px; }
.sobre-txt .lead { font-size: 21px; color: var(--tx); font-weight: 500; border-left: 4px solid var(--acc2); padding-left: 18px; }

/* vídeos: só carregam o player quando clica */
.videos { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.videos::before { content: ''; position: absolute; width: 600px; height: 600px; right: -200px; top: -200px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--acc) 45%, transparent), transparent 70%); }
.videos .sobre-tit { color: var(--acc2); }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16/9; border-radius: var(--raio); overflow: hidden; background: #000; text-align: left; }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .3s; opacity: .85; }
.yt:hover img { transform: scale(1.06); opacity: 1; }
.yt::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .75), transparent 55%); }
.play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 0 color-mix(in srgb, var(--acc) 60%, transparent); animation: pulsa 2s infinite; }
.play::after { content: ''; position: absolute; left: 26px; top: 20px; border-left: 18px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
@keyframes pulsa { 70% { box-shadow: 0 0 0 18px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.yt-tit { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 12px; font-weight: 600; font-size: 15px; line-height: 1.3; }
.yt-grande .play { width: 88px; height: 88px; margin: -44px 0 0 -44px; }
.yt-grande .play::after { left: 35px; top: 27px; border-left-width: 24px; border-top-width: 17px; border-bottom-width: 17px; }
.yt-grande .yt-tit { font-size: 22px; font-family: var(--disp); left: 24px; bottom: 20px; }
.video-dest { position: relative; margin-bottom: 18px; }
.video-grade { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }

/* reels do Instagram (vídeos verticais) */
.reel-grade { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.reel { position: relative; aspect-ratio: 9/16; border-radius: 18px; overflow: hidden; background: #000; }
.reel img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .5s, opacity .3s; }
.reel:hover img { transform: scale(1.06); opacity: 1; }
.reel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .55), transparent 45%); }
.reels-sub { opacity: .75; margin-top: 6px; }
.mv-caixa.vertical { width: min(420px, 94vw); aspect-ratio: auto; height: min(760px, 88vh); background: #fff; border-radius: 12px; overflow: hidden; }

/* topo de evento só com reels: capa desfocada no fundo + capa inteira em destaque */
.hero-mosaico-reel { display: grid; grid-template-columns: repeat(6, 1fr); }
.hero-mosaico-reel img { width: 100%; height: 100%; object-fit: cover; animation: mosaico 1.2s both; filter: blur(1.5px) saturate(1.1); }
.hero-mosaico-reel img:nth-child(2) { animation-delay: .1s; } .hero-mosaico-reel img:nth-child(3) { animation-delay: .2s; } .hero-mosaico-reel img:nth-child(4) { animation-delay: .3s; } .hero-mosaico-reel img:nth-child(5) { animation-delay: .4s; } .hero-mosaico-reel img:nth-child(6) { animation-delay: .5s; }
.hero-reel::after { background: linear-gradient(90deg, rgba(8, 38, 58, .95) 0%, rgba(8, 38, 58, .82) 45%, rgba(8, 38, 58, .6) 100%), linear-gradient(0deg, rgba(8, 38, 58, .9), transparent 40%); }
.hero-poster { position: absolute; z-index: 3; right: max(clamp(16px, 4vw, 48px), calc((100vw - 1200px) / 2 + 48px)); top: 50%; transform: translateY(-55%) rotate(3deg); width: min(300px, 24vw); aspect-ratio: 9/16; border-radius: 26px; overflow: hidden; border: 6px solid rgba(255, 255, 255, .9); box-shadow: 0 30px 60px rgba(0, 0, 0, .45); transition: transform .4s; animation: sobe .9s .3s both; }
.hero-poster:hover { transform: translateY(-55%) rotate(0) scale(1.03); }
.hero-poster img { width: 100%; height: 100%; object-fit: cover; }
.reel .play { display: none; }

/* galeria */
.fotos { background: var(--fundo2); }
.galeria { columns: 4 240px; column-gap: 14px; }
.foto { display: block; width: 100%; margin-bottom: 14px; border-radius: 14px; overflow: hidden; break-inside: avoid; position: relative; }
.foto img { width: 100%; transition: transform .5s; }
.foto:hover img { transform: scale(1.05); }
.foto::after { content: '⤢'; position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--navy); display: grid; place-items: center; opacity: 0; transition: .2s; }
.foto:hover::after { opacity: 1; }
.foto.oculta { display: none; }
.centro { text-align: center; margin-top: 26px; }

/* linha do tempo dos anos */
.linha { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; position: relative; }
.linha-item { text-decoration: none; display: block; position: relative; }
.linha-ano { font-family: var(--disp); font-weight: 800; font-size: 44px; color: var(--acc); display: block; }
.linha-img { aspect-ratio: 4/3; border-radius: var(--raio); overflow: hidden; }
.linha-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.linha-item:hover img { transform: scale(1.06); }
.linha-item.atual .linha-img { outline: 4px solid var(--acc); outline-offset: 4px; }
.linha-meta { display: block; margin-top: 10px; color: var(--tx2); font-size: 15px; font-weight: 600; }

/* cartões */
.card { display: flex; flex-direction: column; text-decoration: none; background: #fff; border-radius: var(--raio); overflow: hidden; box-shadow: var(--sombra); transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(8, 38, 58, .18); }
.card-img { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.card-img::after { content: ''; position: absolute; inset: auto 0 0; height: 5px; background: linear-gradient(90deg, var(--acc), var(--acc2)); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card-img img { transform: scale(1.08); }
.card-txt { padding: 16px 18px 18px; }
.card h3 { font-size: 28px; margin: 10px 0 2px; color: var(--navy); }
.card h3 em { font-style: normal; color: var(--acc); }
.card p { color: var(--tx2); font-size: 15px; }
.card-meta { display: flex; gap: 14px; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--tx2); }
.outros { background: var(--fundo2); }
.carrossel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 300px); gap: 20px; overflow-x: auto; padding: 6px 4px 24px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.carrossel .card { scroll-snap-align: start; }

/* página Eventos: filtros e grade */
.filtros { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.filtros button { padding: 9px 18px; border-radius: 99px; background: var(--fundo2); font-weight: 600; font-size: 15px; color: var(--tx2); border: 1px solid var(--linha); transition: .2s; }
.filtros button:hover { border-color: var(--acc); }
.filtros button.ativo { background: var(--acc); border-color: var(--acc); color: #fff; }
.filtros[data-filtro=ano] button { --acc: var(--navy); font-size: 17px; font-weight: 700; }
.bloco-ano { margin-top: 48px; }
.ano-tit { font-size: clamp(60px, 10vw, 120px); color: transparent; -webkit-text-stroke: 2px var(--linha); line-height: .9; margin-bottom: -18px; position: relative; z-index: 0; }
.grade { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.card.some, .bloco-ano.some { display: none; }
.vazio { text-align: center; color: var(--tx2); padding: 40px; }

/* chamada final */
.cta { padding: 0 clamp(16px, 4vw, 48px) clamp(56px, 8vw, 96px); }
.outros + .cta { background: var(--fundo2); }
.cta-in { width: min(1200px, 100%); margin: 0 auto; border-radius: 28px; padding: clamp(28px, 5vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; color: #fff; background: radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--acc) 70%, transparent), transparent 50%), var(--azul); }
.cta .sobre-tit { color: var(--amarelo); }
.cta h2 { font-size: clamp(28px, 4vw, 42px); max-width: 620px; }
.cta p { opacity: .9; margin-top: 6px; }

/* rodapé */
.rodape { background: var(--navy); color: rgba(255, 255, 255, .8); padding: 48px clamp(16px, 4vw, 48px) 24px; font-size: 15px; }
.rod-in { width: min(1200px, 100%); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.rod-logo { height: 54px; width: auto; margin-bottom: 12px; }
.rodape strong { color: #fff; }
.rodape a { color: #fff; }
.rod-copy { text-align: center; margin-top: 32px; font-size: 13px; opacity: .6; }

/* lightbox e vídeo */
.lightbox, .modal-video { position: fixed; inset: 0; z-index: 10000; background: rgba(4, 14, 22, .94); display: flex; align-items: center; justify-content: center; animation: aparece .25s; }
.lightbox[hidden], .modal-video[hidden] { display: none; }
@keyframes aparece { from { opacity: 0; } }
.lightbox figure { max-width: 92vw; max-height: 86vh; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 80vh; border-radius: 10px; margin: 0 auto; }
.lightbox figcaption { color: #fff; opacity: .7; margin-top: 10px; font-size: 14px; }
.lb-x { position: absolute; top: 14px; right: 18px; font-size: 40px; color: #fff; width: 52px; height: 52px; z-index: 2; }
.lb-ant, .lb-prox { position: absolute; top: 50%; transform: translateY(-50%); font-size: 54px; color: #fff; width: 60px; height: 90px; opacity: .8; }
.lb-ant { left: 6px; } .lb-prox { right: 6px; }
.mv-caixa { width: min(1100px, 94vw); aspect-ratio: 16/9; }
.mv-caixa iframe { width: 100%; height: 100%; border: 0; border-radius: 12px; }

/* aparecer ao rolar */
.revela { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--d, 0ms), transform .7s var(--d, 0ms); }
.revela.in { opacity: 1; transform: none; }

/* Baile Neon: tema escuro */
body.escuro { --fundo: #0B0618; --fundo2: #140B2A; --tx: #F1ECFF; --tx2: #B9AEDA; --linha: #2A1E4A; --navy: #070312; }
body.escuro .subnav { background: rgba(11, 6, 24, .9); }
body.escuro .card { background: #1A1033; }
body.escuro .card h3, body.escuro .sobre h2 { color: #fff; text-shadow: 0 0 18px color-mix(in srgb, var(--acc) 70%, transparent); }
body.escuro .ano-grande { filter: drop-shadow(0 0 12px var(--acc2)); }

/* Expotec: cinza com preto (grafite) */
body.grafite { --fundo: #0E0F11; --fundo2: #17181B; --tx: #ECEEF1; --tx2: #A3A9B1; --linha: #2A2C31; --navy: #050506; }
body.grafite .subnav { background: rgba(14, 15, 17, .92); }
body.grafite .card { background: #1D1F23; }
body.grafite .card h3, body.grafite .sobre h2 { color: #fff; text-shadow: none; }
body.grafite .ano-grande { filter: none; }
body.grafite .faixa { background: #2A2D32; }
body.grafite .chip { background: #2A2D32; color: #D7DBE0; }
body.grafite .chip.grande { background: #fff; color: #0E0F11; }
body.grafite .btn { background: #fff; color: #0E0F11; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
body.grafite .btn-claro { background: rgba(255, 255, 255, .12); color: #fff; }
body.grafite .btn-whats { background: #1FAF54; color: #fff; }
body.grafite .play { background: #fff; }
body.grafite .play::after { border-left-color: #0E0F11; }
body.grafite .subnav a.ativo { background: #fff; color: #0E0F11; }
body.grafite .hero::after { background: linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .45) 45%, rgba(5, 5, 6, .95) 100%); }

/* ---------- celular ---------- */
@media (max-width: 900px) {
  .sobre-in { grid-template-columns: 1fr; }
  .subnav { top: 100px; }
  .rod-in { grid-template-columns: 1fr; }
  .hero { min-height: 82vh; }
  .hero-mosaico { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 1fr); }
}
@media (max-width: 900px) { .hero-poster { display: none; } .hero-mosaico-reel { grid-template-columns: repeat(3, 1fr); } .hero-mosaico-reel img:nth-child(n+4) { display: none; } }
@media (max-width: 520px) {
  body { font-size: 16px; }
  .galeria { columns: 2; column-gap: 8px; }
  .foto { margin-bottom: 8px; border-radius: 10px; }
  .video-grade { grid-template-columns: 1fr 1fr; gap: 10px; }
  .reel-grade { grid-template-columns: 1fr 1fr; gap: 10px; }
  .video-grade .yt-tit { font-size: 12px; left: 8px; right: 8px; bottom: 6px; }
  .video-grade .play { width: 42px; height: 42px; margin: -21px 0 0 -21px; }
  .video-grade .play::after { left: 17px; top: 13px; border-left-width: 12px; border-top-width: 8px; border-bottom-width: 8px; }
  .yt-grande .yt-tit { font-size: 17px; left: 14px; bottom: 12px; }
  .hero-nums b { font-size: 30px; }
  .sobre-txt .lead { font-size: 18px; }
  .lb-ant, .lb-prox { display: none; }
}
