@font-face { font-family: 'Bebas Neue'; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/bebas-neue-400.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/poppins-400.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/poppins-600.woff2) format('woff2'); }
:root {
  --black: #050505;
  --panel: #111111;
  --border: #242424;
  --gold: #D5A033;
  --gold-hi: #F0BE45;
  --text: #CFCFCF;
  --radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body { background: var(--black); color: var(--text); font-family: 'Poppins', sans-serif; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: 'Bebas Neue', sans-serif; font-weight: 400; color: #fff; line-height: 1.1; }

.container { max-width: 1280px; margin: 0 auto; }
.narrow { max-width: 860px; }

/* buttons */
.btn { display: inline-block; font-family: 'Bebas Neue', sans-serif; font-size: 18px; padding: 12px 24px; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer; transition: .2s; text-align: center; }
.btn-lg { padding: 16px 32px; }
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: var(--gold-hi); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline:hover { background: var(--gold-hi); color: var(--black); }
.full { width: 100%; }

/* hero */
.hero { min-height: 760px; padding: 32px 64px 96px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(rgba(5,5,5,.55), rgba(5,5,5,.75)), url(img/hero.webp) center/cover, var(--black); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-bottom: 64px; width: 100%; position: relative; }
.logo img { width: 77px; border-radius: var(--radius); }
.nav { display: flex; gap: 32px; }
.nav a { font-family: 'Bebas Neue', sans-serif; font-size: 23px; letter-spacing: 1.5px; color: var(--gold-hi); }
.nav a:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; color: var(--gold-hi); font-size: 24px; cursor: pointer; }
.hero-body { width: 100%; }
.hero-text { max-width: 52%; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: 86px; line-height: .98; }
.hero p { font-size: 18px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; padding-top: 8px; }
.badge { font-family: 'Bebas Neue', sans-serif; line-height: 1.1; align-self: flex-start; font-size: 14px; letter-spacing: 1px; color: var(--gold); border: 1px solid rgba(213,160,51,.45); border-radius: var(--radius); padding: 8px 16px; }
.stats { display: flex; gap: 16px; padding-top: 24px; flex-wrap: wrap; }
.stat { flex: 0 1 auto; display: flex; align-items: center; gap: 14px; padding: 14px 24px; border-radius: 999px; background: rgba(17,17,17,.7); backdrop-filter: blur(6px); border-color: rgba(213,160,51,.35); }
.stat-num { font-family: 'Bebas Neue', sans-serif; font-weight: 400; color: var(--gold); font-size: 44px; line-height: 1; }
.stat p { font-size: 14px; line-height: 1.3; max-width: 90px; }

/* generic */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.section { padding: 96px 32px; }
.section.dark { background: var(--black); }
.section.mid { background: var(--panel); }
.section-title { text-align: center; font-size: 52px; margin-bottom: 16px; }
.section-title.left { text-align: left; }
.section-sub { text-align: center; margin: 0 auto 48px; }
.grid { display: grid; gap: 32px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.feature { padding: 32px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.ico { width: 1em; height: 1em; fill: currentColor; flex: none; }
.feature .ico { color: var(--gold); font-size: 24px; }
.feature h3, .step h3 { font-size: 28px; }
.mid .card, .section.dark .step { background: var(--panel); }
.mid .step { background: var(--black); }
.step { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.step h3 { color: var(--gold); }

/* ambiente */
.split { display: flex; gap: 48px; align-items: center; }
.split > * { flex: 1; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gallery img { border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.gallery-main { grid-column: 1 / -1; aspect-ratio: 16/10 !important; }
.split-text { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.split-text .section-title { margin-bottom: 0; }
.checks { list-style: none; display: flex; flex-direction: column; gap: 12px; color: #fff; }
.checks .ico { color: var(--gold); margin-right: 12px; vertical-align: -.125em; }

/* modalidades */
.class-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.class-card img { width: 100%; height: auto; aspect-ratio: 449 / 561; border-radius: var(--radius); }
.class-card div { padding: 24px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; flex: 1; }
.class-card h3 { font-size: 30px; }
.class-card p { flex: 1; }

/* faq */
.accordion { border: 1px solid #2A2A2A; border-radius: 4px; }
.accordion details + details { border-top: 1px solid #2A2A2A; }
.accordion summary { font-family: 'Bebas Neue', sans-serif; font-size: 24px; color: #fff; padding: 20px 24px; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 16px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::before { content: '+'; font-size: 32px; line-height: 1; width: 20px; }
.accordion details[open] summary { color: var(--gold); }
.accordion details[open] summary::before { content: '–'; }
.accordion details p { padding: 0 24px 20px 60px; font-size: 15px; }

/* inscrição */
.signup { background: linear-gradient(rgba(5,5,5,.8), rgba(5,5,5,.8)), url(img/ambiente.webp) center/cover, var(--black); }
.signup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.form { display: flex; flex-wrap: wrap; gap: 20px; padding: 32px; background: #DEDEDE; border-color: #DEDEDE; }
.field { flex: 1 1 calc(50% - 10px); display: flex; flex-direction: column; gap: 12px; }
.field label { color: #111; font-size: 14px; }
.field input { background: #0B0B0B; color: #fff; border: 1px solid #2A2A2A; border-radius: 8px; padding: 12px 14px; font: inherit; }
.field input:focus { outline: 0; border-color: var(--gold); }
.field input.invalid { border-color: #c0392b; }
.form-msg { width: 100%; font-size: 14px; color: #585858; }
.form .btn { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 16px; }

/* footer */
.footer { background: #070707; padding: 48px 32px 24px; }
.footer-grid { display: grid; grid-template-columns: 1fr 2fr 1.2fr; gap: 32px; align-items: start; }
.footer-logo { width: 48px; margin-bottom: 16px; }
.footer p { font-size: 15px; margin-bottom: 20px; color: #fff; }
.footer p strong { font-weight: 600; }
.credit a { color: var(--gold); }
.social { display: flex; gap: 8px; }
.social a { background: var(--gold); color: var(--black); font-size: 13px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 4px; }
.social a:hover { background: var(--gold-hi); }
.footer iframe { width: 100%; max-width: 310px; height: 148px; border: 0; border-radius: 8px; }
.credit { text-align: center; margin: 32px 0 0; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; }

/* responsivo */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 32px 32px 64px; }
  .hero-text { max-width: 100%; }
  .hero h1 { font-size: 64px; }
  .split, .signup-grid { flex-direction: column; grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav { gap: 20px; }
  .nav a { font-size: 19px; }
}
@media (max-width: 767px) {
  .hero { padding: 24px; min-height: 0; gap: 32px; }
  .topbar { padding-bottom: 24px; gap: 16px; }
  .logo img { width: 64px; }
  .topbar-cta { display: none; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); z-index: 10; text-align: center; }
  .nav.open { display: flex; }
  .nav a { padding: 14px; }
  .hero h1 { font-size: 48px; }
  .section { padding: 64px 20px; }
  .section-title { font-size: 36px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .field { flex-basis: 100%; }
  .hero-buttons .btn { flex: 1; }
}

/* barra de aviso fixa (ligada no /admin) */
.notice-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--gold); color: var(--black); text-align: center; padding: 14px 20px; font-weight: 600; font-size: 15px; box-shadow: 0 -4px 16px rgba(0,0,0,.4); }
body.has-notice { padding-bottom: 56px; }

/* focos de luz dourados: ficam atrás dos cards, por cima dos fundos, e passam de uma secção para a seguinte */
html, body { overflow-x: clip; }
.glow-anchor { position: relative; height: 0; z-index: 2; pointer-events: none; }
.glow-anchor i { position: absolute; left: var(--x, 50%); top: var(--y, 300px); width: var(--s, 1000px); aspect-ratio: 1.5; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(213, 160, 51, var(--a, .2)), rgba(213, 160, 51, 0) 100%); }
.section > .container { position: relative; z-index: 3; }
.hero > .container { position: relative; z-index: 4; }

@media (max-width: 767px) {
  .hero { background-image: linear-gradient(rgba(5,5,5,.55), rgba(5,5,5,.75)), url(img/hero-m.webp); }
  .signup { background-image: linear-gradient(rgba(5,5,5,.8), rgba(5,5,5,.8)), url(img/ambiente-m.webp); }
}

/* movimento suave: ícones a flutuar e secções que aparecem ao fazer scroll */
@keyframes rise { from { opacity: .01; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

@media (prefers-reduced-motion: no-preference) {
  .feature .ico { animation: float 5s ease-in-out infinite; }
  .feature:nth-child(2) .ico { animation-delay: -.8s; }
  .feature:nth-child(3) .ico { animation-delay: -1.6s; }
  .feature:nth-child(4) .ico { animation-delay: -2.4s; }
  .feature:nth-child(5) .ico { animation-delay: -3.2s; }
  .feature:nth-child(6) .ico { animation-delay: -4s; }

  .hero .topbar, .hero-text > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-text > :nth-child(2) { animation-delay: .08s; }
  .hero-text > :nth-child(3) { animation-delay: .16s; }
  .hero-text > :nth-child(4) { animation-delay: .24s; }
  .hero-text > :nth-child(5) { animation-delay: .32s; }
}

/* só esconde se o JavaScript estiver ativo (senão o conteúdo ficaria invisível) */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .section .section-title, .section .section-sub, .section .card, .section .gallery img, .section .split-text > *,
  .section .accordion, .signup-grid > div, .footer-grid > div, .credit {
    opacity: 0; transform: translateY(28px);
    transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1);
  }
  html .section .is-in, .signup-grid > .is-in, .footer-grid > .is-in, .credit.is-in { opacity: 1; transform: none; }
}

/* telemóveis estreitos: formulário nunca sai do ecrã; botões do topo mais baixos */
.signup-grid > * { min-width: 0; }
#ts { max-width: 100%; overflow: hidden; }
@media (max-width: 767px) {
  .form { padding: 24px 20px; }
  .hero-buttons { gap: 12px; }
  .hero-buttons .btn { display: flex; align-items: center; justify-content: center; padding: 12px 8px; font-size: 17px; line-height: 1.2; min-height: 48px; }
  .hero-buttons { align-items: stretch; }
}

/* página de privacidade e nota do formulário */
.legal-top { padding: 24px 32px; border-bottom: 1px solid var(--border); }
.legal-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.legal-bar .logo img { width: 56px; height: auto; }
.legal-body { max-width: 820px; padding: 56px 24px 72px; }
.legal-body h1 { font-size: 56px; margin-bottom: 4px; }
.legal-body h2 { font-size: 30px; color: var(--gold); margin: 36px 0 10px; }
.legal-body p, .legal-body li { margin-bottom: 12px; }
.legal-body ul { padding-left: 22px; margin-bottom: 12px; }
.legal-body a, .form-note a { color: var(--gold-hi); text-decoration: underline; }
.legal-date { font-size: 14px; opacity: .8; margin-bottom: 28px; }
.legal-foot { text-align: center; padding: 24px; border-top: 1px solid var(--border); font-size: 14px; }
.legal-foot a { color: var(--gold); }
.form-note { width: 100%; font-size: 13px; color: #444; line-height: 1.5; }
.form-note a { color: #111; }
@media (max-width: 767px) { .legal-body h1 { font-size: 40px; } .legal-top { padding: 16px 20px; } }

/* banner de privacidade (RGPD) e mapa com consentimento */
.consent { position: fixed; left: 16px; bottom: 16px; z-index: 60; width: min(440px, calc(100vw - 32px)); background: var(--panel); border: 1px solid rgba(213, 160, 51, .45); border-radius: var(--radius); padding: 20px; box-shadow: 0 10px 40px rgba(0, 0, 0, .55); font-size: 14px; line-height: 1.5; }
.consent[hidden] { display: none; }
body.has-notice .consent { bottom: 72px; }
.consent-title { font-family: 'Bebas Neue', sans-serif; font-size: 24px; color: #fff; line-height: 1.1; margin-bottom: 6px; }
.consent a { color: var(--gold-hi); text-decoration: underline; }
.consent-actions { display: flex; gap: 10px; margin-top: 14px; }
.btn-sm { font-size: 16px; padding: 8px 20px; }
.consent-actions .btn { flex: 1; }
.map-box { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.map-box p { font-size: 13px; margin: 0; color: var(--text); }
.map-box a { font-size: 13px; color: var(--gold-hi); text-decoration: underline; }
.map-box iframe { width: 100%; max-width: 310px; height: 148px; border: 0; border-radius: 8px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--gold); font: inherit; text-decoration: underline; cursor: pointer; }
