@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');
/* Sobre, Contacto e Inscrição Online com o mesmo design da home: abertura em meio-tom + secções escuras "liquid glass".
   Só muda o aspecto: formulários, ids e scripts ficam exactamente como estavam. */
html,body.hp-skin{overflow-x:clip}
body.hp-skin{background:#000}
body.hp-skin .main-content{--superficie:#06080d;--cinza-claro:rgba(255,255,255,.05);--cinza:#a3acbf;--texto:#eef1f7;--azul:#a9c6f0;--azul-medio:#3d6ba1;--azul-claro:#7aabdc;--borda:rgba(255,255,255,.14);--sombra:0 8px 28px rgba(0,0,0,.35);--sombra-hover:0 18px 46px rgba(0,0,0,.5);background:#000;color:var(--texto)}
.hp-ph{position:relative;display:flex;flex-direction:column;justify-content:flex-end;min-height:clamp(210px,27vh,290px);background:#0e2a52;color:#F1ECEA;overflow:hidden;padding:calc(var(--pt,66px) + 16px) clamp(20px,5vw,72px) clamp(18px,2.4vw,32px)}
.hp-ph.curto{min-height:clamp(190px,24vh,260px)}
.hp-ph .hero-media{position:absolute;inset:0;z-index:0}
.hp-ph .hero-media-layer{display:none}
.hp-ht{position:absolute;inset:0;width:100%;height:100%;z-index:1;opacity:0;transition:opacity 1s}.hp-ht.on{opacity:1}
.hp-ph-in{position:relative;z-index:2;animation:hpUp .9s cubic-bezier(.2,.8,.2,1) both}
@keyframes hpUp{from{opacity:0;transform:translateY(.4em)}}
.hp-ph .breadcrumb{position:absolute;z-index:2;left:clamp(20px,5vw,72px);top:calc(var(--pt,66px) + 14px);font-size:13px;color:rgba(241,236,234,.75)}
.hp-ph .breadcrumb a{color:#F1ECEA}
.hp-ph h1{font:400 clamp(38px,5.2vw,80px)/.95 'Instrument Serif',Georgia,serif;letter-spacing:-.025em;margin:0 0 8px;color:#fff}
.hp-ph h1 em{font-style:italic;color:rgba(241,236,234,.62)}
.hp-ph p{margin:0;max-width:34em;font-size:clamp(15px,1.3vw,18px);line-height:1.55;color:rgba(241,236,234,.85)}
/* secções escuras */
body.hp-skin section{background:transparent}
body.hp-skin .section-title{font:400 clamp(36px,4.6vw,68px)/1.02 'Instrument Serif',Georgia,serif;letter-spacing:-.02em;color:#fff}
body.hp-skin .section-tag{background:rgba(255,255,255,.07);color:#cfd6e4;border:0;letter-spacing:.14em}
body.hp-skin .valor-card,body.hp-skin .inscricao-form,body.hp-skin .contato-info-card,body.hp-skin .contato-info-card-compacta{position:relative;overflow:hidden;background:rgba(255,255,255,.035);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);border:0;border-radius:24px;box-shadow:inset 0 1px 1px rgba(255,255,255,.1);color:#eef1f7}
body.hp-skin .valor-card::before,body.hp-skin .inscricao-form::before,body.hp-skin .contato-info-card::before,body.hp-skin .contato-info-card-compacta::before{content:'';position:absolute;inset:0;border-radius:inherit;padding:1.4px;background:linear-gradient(180deg,rgba(255,255,255,.45) 0,rgba(255,255,255,.15) 20%,rgba(255,255,255,0) 40%,rgba(255,255,255,0) 60%,rgba(255,255,255,.15) 80%,rgba(255,255,255,.45) 100%);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none}
body.hp-skin .valor-card h4,body.hp-skin .contato-info-card h3{font:400 28px/1.1 'Instrument Serif',Georgia,serif;color:#fff}
body.hp-skin .form-group label{color:#cfd6e4}
body.hp-skin .form-group input,body.hp-skin .form-group select,body.hp-skin .form-group textarea{background:rgba(255,255,255,.05);color:#fff;border:1px solid rgba(255,255,255,.16);border-radius:14px;color-scheme:dark}
body.hp-skin .form-group input::placeholder,body.hp-skin .form-group textarea::placeholder{color:rgba(255,255,255,.4)}
body.hp-skin .form-group select option{background:#0e2a52;color:#fff}
body.hp-skin .form-group input:focus,body.hp-skin .form-group select:focus,body.hp-skin .form-group textarea:focus{outline:0;border-color:#d8f24d;box-shadow:0 0 0 3px rgba(216,242,77,.18)}
body.hp-skin .camera-hint{color:rgba(255,255,255,.55)}
@media (max-width:600px){.hp-ph h1{font-size:clamp(48px,15vw,84px)}}
@media (prefers-reduced-motion:reduce){.hp-ph-in{animation:none}}
body.hp-skin .inscricao-camera{position:relative;overflow:hidden;background:rgba(255,255,255,.035);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);border:0;border-radius:24px;box-shadow:inset 0 1px 1px rgba(255,255,255,.1);color:#eef1f7}
body.hp-skin .inscricao-camera::before{content:'';position:absolute;inset:0;border-radius:inherit;padding:1.4px;background:linear-gradient(180deg,rgba(255,255,255,.45) 0,rgba(255,255,255,.15) 20%,rgba(255,255,255,0) 40%,rgba(255,255,255,0) 60%,rgba(255,255,255,.15) 80%,rgba(255,255,255,.45) 100%);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none}
body.hp-skin .inscricao-camera h3,body.hp-skin .inscricao-camera h4{color:#fff}

/* ===== Novidades da home levadas para Sobre / Contacto / Inscrição ===== */
/* botões: ponto ciano que cresce até um círculo com seta (igual à home) */
body.hp-skin .btn-primary{position:relative;padding-right:58px}
body.hp-skin .btn-primary::after{content:'';position:absolute;right:20px;top:50%;width:9px;height:9px;margin-top:-4.5px;border-radius:50%;background:#2fe0d0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4.5 2.5 8 6l-3.5 3.5' fill='none' stroke='%230b1d3a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/0 no-repeat;box-shadow:0 0 10px rgba(47,224,208,.7);transition:width .45s cubic-bezier(.22,.7,.2,1),height .45s cubic-bezier(.22,.7,.2,1),margin .45s cubic-bezier(.22,.7,.2,1),right .45s cubic-bezier(.22,.7,.2,1),background-size .3s ease .05s,box-shadow .3s}
body.hp-skin .btn-primary:hover::after,body.hp-skin .btn-primary:focus-visible::after{width:32px;height:32px;margin-top:-16px;right:8px;background-size:13px;box-shadow:none}
/* cartões com a mesma elevação da home */
body.hp-skin .valor-card,body.hp-skin .contato-info-card,body.hp-skin .contato-info-card-compacta{transition:transform .5s cubic-bezier(.22,.7,.2,1)}
body.hp-skin .valor-card:hover{transform:translateY(-6px)}
@media (hover:none){body.hp-skin .valor-card:hover{transform:none}}
.hp-ph .hp-glow{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none}
.hp-ph-in{will-change:transform,opacity}

/* ===== Tema claro (igual à home: branco / azul clarinho) ===== */
html:not([data-theme="dark"]) body.hp-skin{background:#fff}
html:not([data-theme="dark"]) body.hp-skin .main-content{--superficie:#fff;--cinza-claro:#f3f7ff;--cinza:#4a5878;--texto:#0b2a6f;--azul:#1457e6;--azul-medio:#1457e6;--azul-claro:#1457e6;--borda:rgba(11,42,111,.12);--sombra:0 10px 30px rgba(14,42,82,.10);--sombra-hover:0 18px 46px rgba(14,42,82,.16);background:#fff;color:#0b2a6f}
html:not([data-theme="dark"]) .hp-ph{background:linear-gradient(180deg,#fff 0,#f3f7ff 100%);color:#0b2a6f}
html:not([data-theme="dark"]) .hp-ph .hp-ht{display:none}
html:not([data-theme="dark"]) body.hp-skin .section-title{color:#0b2a6f}
html:not([data-theme="dark"]) body.hp-skin .section-tag{background:rgba(20,87,230,.08);color:#1457e6}
html:not([data-theme="dark"]) body.hp-skin .valor-card,html:not([data-theme="dark"]) body.hp-skin .inscricao-form,html:not([data-theme="dark"]) body.hp-skin .contato-info-card,html:not([data-theme="dark"]) body.hp-skin .contato-info-card-compacta,html:not([data-theme="dark"]) body.hp-skin .inscricao-camera{background:#fff;border:1px solid rgba(11,42,111,.1);box-shadow:0 10px 30px rgba(14,42,82,.10);color:#0b2a6f;-webkit-backdrop-filter:none;backdrop-filter:none}
html:not([data-theme="dark"]) body.hp-skin .valor-card::before,html:not([data-theme="dark"]) body.hp-skin .inscricao-form::before,html:not([data-theme="dark"]) body.hp-skin .contato-info-card::before,html:not([data-theme="dark"]) body.hp-skin .contato-info-card-compacta::before,html:not([data-theme="dark"]) body.hp-skin .inscricao-camera::before{display:none}
html:not([data-theme="dark"]) body.hp-skin .valor-card h4,html:not([data-theme="dark"]) body.hp-skin .contato-info-card h3,html:not([data-theme="dark"]) body.hp-skin .inscricao-camera h3,html:not([data-theme="dark"]) body.hp-skin .inscricao-camera h4{color:#0b2a6f}
html:not([data-theme="dark"]) body.hp-skin .form-group label{color:#0b2a6f}
html:not([data-theme="dark"]) body.hp-skin .form-group input,html:not([data-theme="dark"]) body.hp-skin .form-group select,html:not([data-theme="dark"]) body.hp-skin .form-group textarea{background:#fff;color:#0b2a6f;border:1px solid rgba(11,42,111,.18);color-scheme:light}
html:not([data-theme="dark"]) body.hp-skin .form-group input::placeholder,html:not([data-theme="dark"]) body.hp-skin .form-group textarea::placeholder{color:rgba(11,42,111,.4)}
html:not([data-theme="dark"]) body.hp-skin .form-group select option{background:#fff;color:#0b2a6f}
html:not([data-theme="dark"]) body.hp-skin .form-group input:focus,html:not([data-theme="dark"]) body.hp-skin .form-group select:focus,html:not([data-theme="dark"]) body.hp-skin .form-group textarea:focus{border-color:#1457e6;box-shadow:0 0 0 3px rgba(20,87,230,.15)}
html:not([data-theme="dark"]) body.hp-skin .camera-hint{color:#4a5878}

/* hero: texto sempre branco sobre a foto + véu escuro para leitura (claro e escuro) */
.hp-ph::after{content:'';position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(6,12,28,.55) 0,rgba(6,12,28,.35) 45%,rgba(6,12,28,.7) 100%);pointer-events:none}
.hp-ph h1,.hp-ph h1 em,.hp-ph p,.hp-ph .breadcrumb,.hp-ph .breadcrumb a{color:#fff!important}
.hp-ph h1 em{opacity:.8}
.hp-ph .breadcrumb span{color:#fff}
.hp-ph .hp-glow{z-index:1}

/* tema claro: textos dos cartões (contacto, valores, inscrição) legíveis sobre fundo branco */
html:not([data-theme="dark"]) body.hp-skin .contato-info-card p,
html:not([data-theme="dark"]) body.hp-skin .contato-info-card-compacta p,
html:not([data-theme="dark"]) body.hp-skin .contato-info-card .info-item span:not(.material-symbols-outlined),
html:not([data-theme="dark"]) body.hp-skin .contato-info-card-compacta .info-item span:not(.material-symbols-outlined),
html:not([data-theme="dark"]) body.hp-skin .valor-card p,
html:not([data-theme="dark"]) body.hp-skin .valor-card li,
html:not([data-theme="dark"]) body.hp-skin .inscricao-form p,
html:not([data-theme="dark"]) body.hp-skin .inscricao-camera p{color:#4a5878!important}
html:not([data-theme="dark"]) body.hp-skin .contato-info-card strong,
html:not([data-theme="dark"]) body.hp-skin .contato-info-card-compacta strong{color:#0b2a6f!important}
html:not([data-theme="dark"]) body.hp-skin .info-icon{background:rgba(20,87,230,.08)!important;color:#1457e6!important}
html:not([data-theme="dark"]) body.hp-skin .info-icon svg{stroke:#1457e6}
html:not([data-theme="dark"]) body.hp-skin .social-link{background:rgba(20,87,230,.08)!important;color:#1457e6!important}
html:not([data-theme="dark"]) body.hp-skin .social-link:hover{background:#1457e6!important;color:#fff!important}
html:not([data-theme="dark"]) body.hp-skin .valor-icon{background:rgba(20,87,230,.08);color:#1457e6}

/* ===== Sem "camada por baixo" ao abrir a página =====
   O JS troca o .page-header azul antigo pelo hero novo (.hp-ph) só depois de a página
   pintar, e por isso o banner antigo piscava por baixo. Agora o banner antigo já nasce
   com o mesmo tamanho, fundo e posição do hero e com o conteúdo invisível: a troca é imperceptível. */
body.hp-skin .main-content{--pt0:66px}
@media (max-width:480px){body.hp-skin .main-content{--pt0:54px}}
@media (max-width:380px){body.hp-skin .main-content{--pt0:52px}}
body.hp-skin .main-content>.page-header{margin:calc(-1*var(--pt0)) 0 0;padding:0;border-radius:0;box-sizing:border-box;min-height:clamp(210px,27vh,290px);background:#0e2a52}
body.hp-skin .main-content>.page-header::before{display:none}
body.hp-skin .main-content>.page-header *{visibility:hidden}
html:not([data-theme="dark"]) body.hp-skin .main-content>.page-header{background:linear-gradient(180deg,#fff 0,#f3f7ff 100%)}
/* no tema claro o hero não precisa de véu escuro por cima (era a camada cinzenta) */
html:not([data-theme="dark"]) .hp-ph::after{background:linear-gradient(180deg,rgba(6,12,28,.28) 0,rgba(6,12,28,.12) 50%,rgba(6,12,28,.38) 100%)}

/* ===== Telemóvel (Sobre / Contacto / Inscrição): letras um pouco menores ===== */
@media (max-width:600px){
 .hp-ph h1{font-size:clamp(38px,11.5vw,54px)}
 .hp-ph p{font-size:14px}
 body.hp-skin .section-title{font-size:clamp(28px,8.6vw,38px)}
 body.hp-skin .valor-card h4,body.hp-skin .contato-info-card h3{font-size:24px}
 body.hp-skin .valor-card p,body.hp-skin .valor-card li{font-size:13px}
 body.hp-skin .form-group label{font-size:13px}
 body.hp-skin .form-group input,body.hp-skin .form-group select,body.hp-skin .form-group textarea{font-size:14px}
}
