/* Ecrã de apresentação (TVs da escola). Palco fixo de 1920x1080, escalado pelo ecra.js ao tamanho do ecrã.
   Cores do tema escuro do website. CSS conservador: os navegadores das TVs podem ser antigos. */
:root {
    --fundo: #0d131c;
    --fundo2: #141c27;
    --texto: #e8edf3;
    --texto2: #a9b5c4;
    --borda: #243142;
    --marca: #b3262d;
    --marca-escuro: #7a1b22;
    --ouro: #e9c75a;
    --navy: #13304f;
    --titulos: 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;
    --corpo: 'Inter', 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; background: #000; overflow: hidden; cursor: none; }
body { font-family: var(--corpo); color: var(--texto); -webkit-font-smoothing: antialiased; }

#palco {
    position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; overflow: hidden;
    background: var(--fundo); transform-origin: 0 0;
}
#camadas { position: absolute; left: 0; top: 0; right: 0; bottom: 0; }

/* ---------- barra de topo ---------- */
#topo {
    position: absolute; left: 0; right: 0; top: 0; height: 132px; z-index: 20;
    display: flex; align-items: center; justify-content: space-between; padding: 0 64px;
    background: linear-gradient(180deg, rgba(8, 12, 18, .85) 0%, rgba(8, 12, 18, 0) 100%);
}
#topo .marca { display: flex; align-items: center; }
#topo .marca img { width: 84px; height: 84px; border-radius: 50%; margin-right: 22px; box-shadow: 0 4px 18px rgba(0, 0, 0, .5); }
#topo .marca strong { display: block; font-family: var(--titulos); font-size: 30px; font-weight: 700; }
#topo .marca span { display: block; font-size: 20px; color: var(--texto2); letter-spacing: .04em; }
#topo .relogio { text-align: right; }
#topo .relogio strong { display: block; font-family: var(--titulos); font-size: 46px; font-weight: 700; line-height: 1; }
#topo .relogio span { display: block; font-size: 20px; color: var(--texto2); margin-top: 6px; }

/* ---------- faixa de baixo ---------- */
#faixa {
    position: absolute; left: 0; right: 0; bottom: 0; height: 68px; z-index: 20;
    display: flex; background: var(--marca); box-shadow: 0 -6px 24px rgba(0, 0, 0, .35);
}
#faixa .rotulo {
    flex: 0 0 auto; display: flex; align-items: center; padding: 0 34px;
    background: var(--navy); font-family: var(--titulos); font-weight: 800; font-size: 26px;
    text-transform: uppercase; letter-spacing: .06em;
}
#faixa .corre { flex: 1 1 auto; overflow: hidden; position: relative; }
#faixaTexto {
    position: absolute; top: 0; left: 0; height: 68px; line-height: 68px; white-space: nowrap;
    font-size: 28px; font-weight: 600; will-change: transform;
}
#faixaTexto .sep { display: inline-block; margin: 0 34px; color: var(--ouro); }
#progresso { position: absolute; left: 0; right: 0; bottom: 68px; height: 5px; z-index: 21; background: rgba(255, 255, 255, .08); }
#progresso div { height: 100%; width: 0; background: var(--ouro); }

/* ---------- legenda (só com ?legendas=...) ---------- */
#legenda {
    position: absolute; left: 50%; bottom: 100px; z-index: 19; width: 1500px; margin-left: -750px;
    text-align: center; font-size: 30px; line-height: 1.4; padding: 14px 28px; border-radius: 14px;
    background: rgba(8, 12, 18, .78); color: #fff; opacity: 0; transition: opacity .6s;
}
#legenda.ver { opacity: 1; }

#semSom {
    position: absolute; left: 50%; top: 40px; width: 560px; margin-left: -280px; text-align: center; z-index: 30;
    padding: 12px 22px; border-radius: 40px;
    background: rgba(8, 12, 18, .85); border: 1px solid var(--borda); font-size: 22px; color: var(--texto2); display: none;
}
#semSom b { color: #fff; }
#semSom.ver { display: block; }
#aCarregar {
    position: absolute; left: 0; top: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: center;
    background: var(--fundo); font-family: var(--titulos); font-size: 40px; color: var(--texto2);
}
#aCarregar.fora { display: none; }

/* ---------- diapositivos ---------- */
.diapo { position: absolute; left: 0; top: 0; right: 0; bottom: 0; opacity: 0; transition: opacity 1.2s ease; overflow: hidden; }
.diapo.activo { opacity: 1; }

.foto-fundo {
    position: absolute; left: 0; top: 0; right: 0; bottom: 0; background-size: cover; background-position: center;
}
.diapo.activo .kb { animation-name: kenburns; animation-timing-function: linear; animation-fill-mode: both; }
@keyframes kenburns { from { transform: scale(1.0) translate(0, 0); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
.diapo.activo .kb2 { animation-name: kenburns2; animation-timing-function: linear; animation-fill-mode: both; }
@keyframes kenburns2 { from { transform: scale(1.12) translate(1.5%, 0); } to { transform: scale(1.0) translate(0, 0); } }

.veu-esq { position: absolute; left: 0; top: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(13, 19, 28, .97) 0%, rgba(13, 19, 28, .9) 38%, rgba(13, 19, 28, .25) 70%, rgba(13, 19, 28, .1) 100%); }
.veu-baixo { position: absolute; left: 0; top: 0; right: 0; bottom: 0;
    background: linear-gradient(0deg, rgba(13, 19, 28, .96) 0%, rgba(13, 19, 28, .55) 45%, rgba(13, 19, 28, .1) 75%); }
.veu-total { position: absolute; left: 0; top: 0; right: 0; bottom: 0; background: rgba(13, 19, 28, .84); }

.conteudo { position: absolute; left: 96px; right: 96px; top: 170px; bottom: 120px; }

.etiqueta {
    display: inline-block; padding: 10px 22px; border-radius: 40px; background: var(--marca);
    font-family: var(--titulos); font-weight: 700; font-size: 24px; letter-spacing: .05em; text-transform: uppercase;
}
.titulo { font-family: var(--titulos); font-weight: 800; font-size: 76px; line-height: 1.08; letter-spacing: -.01em; margin-top: 26px; }
.subtitulo { font-size: 36px; color: var(--texto2); margin-top: 20px; line-height: 1.35; }
.texto { font-size: 34px; color: var(--texto2); margin-top: 26px; line-height: 1.45; }

/* entrada escalonada dos elementos */
.entra { opacity: 0; }
.diapo.activo .entra { animation: subir .9s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes subir { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }

/* capa */
.capa .conteudo { top: auto; bottom: 150px; }
.capa .titulo { font-size: 108px; max-width: 1740px; }
.capa .subtitulo { font-size: 42px; }
.capa .linha-ouro { width: 160px; height: 6px; background: var(--ouro); border-radius: 3px; margin-top: 34px; }

/* foto + lista */
.lista { margin-top: 40px; list-style: none; }
.lista li { position: relative; font-size: 34px; line-height: 1.38; padding-left: 58px; margin-bottom: 22px; }
.lista li:before {
    content: ''; position: absolute; left: 0; top: 6px; width: 34px; height: 34px; border-radius: 50%;
    background: var(--ouro);
}
.lista li:after {
    content: ''; position: absolute; left: 11px; top: 13px; width: 10px; height: 17px;
    border: solid var(--fundo); border-width: 0 4px 4px 0; transform: rotate(45deg);
}
.foto .conteudo { right: auto; width: 1000px; }

/* cartões */
.cartoes-linha { display: flex; margin-top: 54px; }
.cartao {
    flex: 1 1 0; margin-right: 36px; background: rgba(20, 28, 39, .92); border: 1px solid var(--borda);
    border-radius: 24px; overflow: hidden; position: relative; box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}
.cartao:last-child { margin-right: 0; }
.cartao .img { height: 330px; background-size: cover; background-position: center; }
.cartao .corpo { padding: 30px 34px 36px; }
.cartao h3 { font-family: var(--titulos); font-size: 44px; font-weight: 800; }
.cartao p { font-size: 30px; color: var(--texto2); margin-top: 12px; line-height: 1.4; }
.cartao .destaque {
    position: absolute; right: 26px; top: 26px; background: var(--ouro); color: #1a1405; font-family: var(--titulos);
    font-weight: 800; font-size: 40px; padding: 8px 22px; border-radius: 16px;
}
.cartao.sem-img .corpo { padding-top: 54px; padding-bottom: 60px; }
.cartao.sem-img h3 { font-size: 56px; color: var(--ouro); }

/* mosaico */
.mosaico .conteudo { right: auto; width: 640px; }
.mosaico .titulo { font-size: 68px; }
.chips { margin-top: 36px; }
.chip {
    display: inline-block; margin: 0 14px 16px 0; padding: 12px 24px; border-radius: 40px; font-size: 28px; font-weight: 600;
    background: rgba(233, 199, 90, .12); border: 1px solid rgba(233, 199, 90, .45); color: var(--ouro);
}
.grelha { position: absolute; left: 790px; right: 64px; top: 150px; bottom: 110px; }
.grelha .celula { position: absolute; border-radius: 22px; overflow: hidden; background-size: cover; background-position: center;
    box-shadow: 0 14px 36px rgba(0, 0, 0, .45); }

/* números */
.numeros-linha { display: flex; margin-top: 90px; }
.numero { flex: 1 1 0; text-align: center; border-left: 1px solid var(--borda); padding: 10px 20px; }
.numero:first-child { border-left: 0; }
.numero strong { display: block; font-family: var(--titulos); font-size: 150px; font-weight: 800; color: var(--ouro); line-height: 1; }
.numero span { display: block; font-size: 36px; color: var(--texto); margin-top: 18px; }
.numeros .conteudo { text-align: center; top: 220px; }

/* passos */
.passos .conteudo { right: auto; width: 1120px; top: 160px; }
.passos .titulo { font-size: 66px; }
.passo { display: flex; align-items: flex-start; margin-top: 38px; }
.passo .n {
    flex: 0 0 auto; width: 84px; height: 84px; border-radius: 50%; background: var(--marca); margin-right: 30px;
    display: flex; align-items: center; justify-content: center; font-family: var(--titulos); font-size: 44px; font-weight: 800;
    box-shadow: 0 0 0 8px rgba(179, 38, 45, .25);
}
.passo h3 { font-family: var(--titulos); font-size: 42px; font-weight: 700; }
.passo p { font-size: 31px; color: var(--texto2); margin-top: 6px; line-height: 1.38; }
.lado { position: absolute; right: 110px; top: 230px; width: 520px; text-align: center; }
.qr-caixa { background: #fff; border-radius: 28px; padding: 26px; box-shadow: 0 18px 50px rgba(0, 0, 0, .5); }
.qr-caixa img { display: block; width: 100%; }
.lado .qr-texto { margin-top: 22px; font-size: 30px; color: var(--texto2); }
.lado .qr-url { margin-top: 6px; font-family: var(--titulos); font-size: 34px; font-weight: 700; color: var(--ouro); }

/* talão de referência (ilustrativo) */
.talao {
    background: #f5f1e6; color: #1b1b1b; border-radius: 14px; padding: 40px 40px 34px; text-align: left;
    font-family: 'Courier New', Courier, monospace; box-shadow: 0 18px 50px rgba(0, 0, 0, .5); transform: rotate(-2deg);
}
.talao .cab { text-align: center; font-weight: 700; font-size: 28px; border-bottom: 2px dashed #9a9384; padding-bottom: 16px; margin-bottom: 20px; }
.talao .l { font-size: 27px; line-height: 1.9; }
.talao .l b { display: inline-block; width: 200px; font-weight: 400; color: #5b574d; }
.talao .ok { margin-top: 16px; text-align: center; font-weight: 700; font-size: 26px; color: #15803d; border-top: 2px dashed #9a9384; padding-top: 16px; }

/* galeria */
.galeria .foto-fundo { opacity: 0; transition: opacity 1.4s ease; }
.galeria .foto-fundo.ver { opacity: 1; }
.galeria .conteudo { top: auto; bottom: 140px; width: 1300px; right: auto; }
.galeria .titulo { font-size: 80px; }

/* contactos */
.contactos .conteudo { right: auto; width: 1150px; }
.linha-contacto { display: flex; align-items: center; margin-top: 34px; font-size: 36px; }
.linha-contacto .ic {
    flex: 0 0 auto; width: 74px; height: 74px; border-radius: 20px; background: rgba(179, 38, 45, .22);
    border: 1px solid rgba(179, 38, 45, .6); display: flex; align-items: center; justify-content: center; margin-right: 28px;
}
.linha-contacto .ic svg { width: 38px; height: 38px; fill: none; stroke: #ff8f8f; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* vídeo */
/* vídeo entre a barra de topo e a faixa de baixo (não tapa as legendas gravadas no vídeo) */
.video video {
    position: absolute; left: 50%; top: 136px; width: 1536px; height: 864px; margin-left: -768px;
    object-fit: contain; background: #000; border-radius: 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}
