/* ==========================================================================
   Colégio Estrela – Zimpeto · design v3 (Claude Design)
   Paleta quente: oliva, laranja, âmbar e azul-céu sobre creme.
   ========================================================================== */

:root {
  --cream: #FBF9F1;
  --cream-2: #F4F1DE;
  --sand: #EEEACB;
  --line: #E7E2C4;
  --line-2: #D6D0A4;
  --white: #FFFFFF;

  --ink: #22210E;
  --ink-2: #3F3E20;
  --ink-3: #55532F;
  --olive-text: #77741A;
  --olive: #8E8A12;
  --olive-dark: #3D3D0A;
  --olive-deep: #2B2A12;

  --orange: #E35A1E;
  --orange-dark: #C9481A;
  --rust: #A63A12;
  --peach: #FFD9A8;
  --amber: #F7A833;
  --sky: #2B9CC6;
  --sky-dark: #1F7EA3;
  --sky-light: #5CC6EC;
  --sky-bg: #E1F4FB;
  --wa: #25D366;
  --wa-ink: #0B2E17;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--orange-dark); text-decoration: none; }
a:hover { color: var(--olive); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(42px, 6vw, 80px); line-height: .98; letter-spacing: -.03em; }
h2 { font-weight: 800; font-size: clamp(32px, 4.2vw, 54px); line-height: 1.03; letter-spacing: -.02em; }
h3 { font-weight: 800; font-size: 27px; line-height: 1.05; letter-spacing: -.01em; }
.h-sm { font-weight: 700; font-size: 32px; }
.h-md { font-size: clamp(28px, 3vw, 38px); }
.on-dark { color: var(--white); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.section { padding-top: clamp(62px, 10vw, 104px); padding-bottom: clamp(62px, 10vw, 104px); }
.section-sm { padding-top: clamp(43px, 7vw, 72px); padding-bottom: clamp(43px, 7vw, 72px); }
.section-bottom { padding-bottom: clamp(62px, 10vw, 104px); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-lg { display: flex; flex-direction: column; gap: 48px; }
.grow { flex: 1; }
.text-lg { font-size: 18px; line-height: 1.65; color: var(--ink-3); text-wrap: pretty; }
.note { font-size: 14px; color: var(--olive-text); }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: 10px; }
.skip-link:focus { top: 1rem; color: #fff; }

.kicker { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-dark); }
.kicker-amber { color: var(--amber); }
.kicker-sky { color: var(--sky); }
.kicker-skydark { color: var(--sky-dark); }
.kicker-skylight { color: var(--sky-light); }
.kicker-peach { color: var(--peach); }

/* Texto por confirmar */
mark.tbc { background: none; color: inherit; padding: 0; }
html[data-draft] mark.tbc { background: rgba(247, 168, 51, .22); border-bottom: 1.5px dashed #B97A12; border-radius: 2px; cursor: help; }
.draft-bar { display: none; }
html[data-draft] .draft-bar { display: block; background: #FFF4D6; color: #5A4210; font-size: 13px; text-align: center; padding: 6px 16px; border-bottom: 1px solid #EEDDAA; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 999px; padding: 14px 24px; cursor: pointer;
  font-weight: 700; font-size: 16px; line-height: 1.2; text-align: center;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: scale(.97); }
.btn-lg { padding: 17px 28px; }
.btn-sm { padding: 11px 20px; font-size: 15px; align-self: flex-start; }
.btn-block { width: 100%; padding: 17px; font-size: 17px; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--amber); color: var(--ink); }
.btn-olive { background: var(--olive-dark); color: #fff; }
.btn-olive:hover { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--rust); }
.btn-white:hover { background: var(--amber); color: var(--ink); }
.btn-wa { background: var(--wa); color: var(--wa-ink); align-self: flex-start; }
.btn-wa:hover { background: #fff; color: var(--wa-ink); }
.btn-glass { background: rgba(255, 255, 255, .12); color: #fff; border: 1.5px solid rgba(255, 255, 255, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-weight: 600; }
.btn-glass:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.btn-outline { background: none; border: 1.5px solid var(--olive); color: var(--olive-dark); font-weight: 600; font-size: 15px; padding: 12px 22px; }
.btn-outline:hover { background: var(--sand); color: var(--olive-dark); }
.btn-ghost-light { background: transparent; color: #fff; border: 1px solid #4A4A0C; }
.btn-ghost-light:hover { color: var(--amber); }
.ico { width: 20px; height: 20px; flex: none; }
.text-link { font-weight: 700; font-size: 15px; color: var(--orange-dark); align-self: flex-start; }
.text-link:hover { color: var(--olive); }

/* ---------- Faixa de matrículas ---------- */
.banner {
  background: var(--orange); color: #fff; font-size: 14px;
  padding: 9px 16px; display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; text-align: center;
}
.banner strong { font-weight: 700; }
.banner mark.tbc { color: #fff; }
.banner-phone { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; }
.banner-phone .ico { width: 15px; height: 15px; }
.banner-phone:hover { color: var(--peach); }
.banner-btn { font-weight: 600; background: #fff; color: var(--orange-dark); border-radius: 999px; padding: 5px 14px; }
.banner-btn:hover { color: var(--orange-dark); background: var(--peach); }
@media (max-width: 859px) { .banner-extra, .banner-phone { display: none; } }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 249, 241, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(34, 33, 14, .08); }
.header-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
.header-inner { display: flex; align-items: center; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand img { width: 46px; height: 46px; object-fit: contain; transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.brand-text small { font-size: 11px; color: var(--olive-text); letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }

.nav { display: flex; gap: 4px; align-items: center; }
.nav a { position: relative; font-size: 15px; font-weight: 600; padding: 10px 14px; color: var(--ink); white-space: nowrap; border-radius: 10px; }
.nav a:hover { background: var(--sand); color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px; border-radius: 3px; background: var(--orange); }
.nav .nav-cta { background: var(--olive-dark); color: #fff; font-weight: 700; padding: 11px 20px; border-radius: 999px; margin-left: 8px; }
.nav .nav-cta:hover { background: var(--orange); color: #fff; }
.nav .nav-cta[aria-current="page"]::after { display: none; }

.lang-switch { display: inline-flex; background: var(--cream-2); border-radius: 999px; padding: 3px; flex: none; }
.lang-switch button { border: 0; background: none; cursor: pointer; min-width: 38px; min-height: 32px; border-radius: 999px; font-weight: 700; font-size: 12px; letter-spacing: .06em; color: var(--olive-dark); }
.lang-switch button[aria-pressed="true"] { background: var(--olive-dark); color: #fff; }
.lang-switch-dark { background: rgba(255, 255, 255, .08); align-self: center; margin-top: 4px; }
.lang-switch-dark button { color: #fff; }
.lang-switch-dark button[aria-pressed="true"] { background: var(--amber); color: var(--ink); }

.menu-btn {
  display: none; flex: none; width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line); background: #fff;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; padding: 0;
}
.menu-btn span { width: 20px; height: 2px; border-radius: 2px; background: var(--ink); }
.menu-btn span:last-child { width: 12px; background: var(--orange); margin-left: 8px; }

@media (max-width: 1000px) { .nav a { padding: 10px 10px; } .nav .nav-cta { margin-left: 4px; } }
@media (max-width: 859px) {
  .nav, .header-inner > .lang-switch { display: none; }
  .menu-btn { display: flex; }
}

/* Menu móvel em ecrã inteiro */
.mobile-menu {
  position: fixed; inset: 0; z-index: 50; background: var(--ink); color: #fff;
  display: flex; flex-direction: column; padding: 12px 20px 28px; overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mm-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--olive-dark); }
.mm-brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; font-size: 19px; }
.mm-logo { background: var(--cream); border-radius: 12px; padding: 4px; display: flex; }
.mm-logo img { width: 38px; height: 38px; object-fit: contain; }
.mm-close { width: 48px; height: 48px; border-radius: 14px; border: 1px solid #4A4A0C; background: transparent; color: #fff; font-size: 22px; cursor: pointer; }
.mm-nav { display: flex; flex-direction: column; padding: 16px 0; flex: 1; }
.mm-nav a { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #33320F; color: #fff; padding: 18px 0; }
.mm-nav a span:first-child { font-family: var(--font-display); font-weight: 800; font-size: 34px; letter-spacing: -.02em; }
.mm-nav a[aria-current="page"] span:first-child { color: var(--amber); }
.mm-arrow { color: var(--amber); font-size: 22px; }
.mm-actions { display: flex; flex-direction: column; gap: 10px; }
.mm-actions .btn-wa { align-self: stretch; }

/* ---------- Início ---------- */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; background: var(--olive-deep); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.js .hero-media { animation: hero-in 2.2s var(--ease) both; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(34, 33, 14, .85) 0%, rgba(34, 33, 14, 0) 70%), linear-gradient(90deg, rgba(34, 33, 14, .8) 0%, rgba(34, 33, 14, .2) 100%);
}
.hero-content { position: relative; padding-top: clamp(80px, 14vw, 120px); padding-bottom: clamp(40px, 8vw, 64px); display: flex; flex-direction: column; gap: clamp(18px, 3vw, 28px); }
.hero h1 { font-size: clamp(40px, 7vw, 92px); color: #fff; max-width: 900px; }
.hero-lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: #ECE9D2; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions .btn { flex: 1 1 auto; max-width: 320px; }
.hero mark.tbc { color: inherit; }

.marquee { background: var(--olive-dark); color: #F4F1D6; overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee-group { display: flex; }
.marquee-group > span:not(.star) { font-family: var(--font-display); font-weight: 700; font-size: clamp(17px, 2.4vw, 22px); padding: 0 22px; white-space: nowrap; }
.marquee .star { color: var(--amber); font-size: 18px; display: flex; align-items: center; }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.section-head > div { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.section-bottom > .section-head { margin-bottom: 32px; }

.levels { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.level { background: #fff; border: 1px solid var(--line); border-radius: 24px; display: flex; flex-direction: column; overflow: hidden; transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s; scroll-snap-align: start; }
.level:hover { transform: translateY(-6px); box-shadow: 0 24px 44px rgba(61, 61, 10, .12); }
.level-media { position: relative; aspect-ratio: 4 / 3; margin: 8px 8px 0; border-radius: 18px; overflow: hidden; background: var(--cream-2); }
.level-media img { width: 100%; height: 100%; object-fit: cover; }
.level-age { position: absolute; top: 12px; left: 12px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0, 0, 0, .12); }
.level-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.level-range { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--olive-text); }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-amber { background: var(--amber); } .dot-orange { background: var(--orange); } .dot-sky { background: var(--sky); } .dot-olive { background: var(--olive); }
.level-desc { font-size: 15px; color: #4A482A; flex: 1; }
.pill-link {
  margin-top: 6px; align-self: flex-start; display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 14px; color: var(--ink); border: 1.5px solid var(--line-2); padding: 8px 8px 8px 16px; border-radius: 999px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.pill-link:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill-arrow { width: 24px; height: 24px; border-radius: 50%; background: var(--sand); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 13px; }
@media (max-width: 859px) {
  .page-home .levels { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 4px 20px 12px; scroll-padding: 0 20px; scrollbar-width: none; }
  .page-home .levels::-webkit-scrollbar { display: none; }
}

.band-white { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; align-items: center; }
.split-top { align-items: start; }
.split-end { align-items: end; gap: 40px; }
.photo { border-radius: 28px; overflow: hidden; background: var(--sand); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-43 { aspect-ratio: 4 / 3; }
.photo-45 { aspect-ratio: 4 / 5; }
.photo-169 { aspect-ratio: 16 / 9; border-radius: 24px; }
.photo-1610 { aspect-ratio: 16 / 10; border-radius: 18px; }

.steps-card { background: var(--rust); border-radius: 28px; padding: clamp(28px, 4vw, 44px); color: #fff; }
.steps-card h2 { color: #fff; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.05; }
.steps-card .section-head { margin-bottom: 28px; }
.steps-card mark.tbc { color: inherit; }
.steps-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.step-mini { background: #fff; color: var(--ink); border-radius: 18px; padding: 18px 20px; display: flex; align-items: center; gap: 14px; transition: transform .25s, box-shadow .25s; }
.step-mini:hover { color: var(--ink); transform: translateY(-6px); box-shadow: 0 22px 40px rgba(60, 18, 4, .35); }
.step-num { flex: none; width: 44px; height: 44px; border-radius: 12px; background: #FBEBDD; color: var(--rust); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.step-title { font-family: var(--font-display); font-weight: 700; font-size: 20px; }

.moments { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.moment { position: relative; aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: var(--sand); color: #fff; }
.moment img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.moment:hover img { transform: scale(1.05); }
.moment span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(transparent, rgba(34, 33, 14, .8)); font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.moment:hover { color: #fff; }

/* ---------- Páginas internas ---------- */
.page-title { padding-top: clamp(58px, 10vw, 96px); padding-bottom: clamp(34px, 6vw, 56px); display: flex; flex-direction: column; gap: 20px; }
.page-title h1 { max-width: 960px; }

.prose { display: flex; flex-direction: column; gap: 22px; font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.timeline { border-left: 2px solid var(--line); margin-top: 8px; }
.timeline li { position: relative; padding: 0 0 22px 28px; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--amber); border: 3px solid var(--cream); }
.tl-year { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--orange-dark); }
.timeline p { margin-top: 2px; font-size: 16px; line-height: 1.55; color: var(--ink-3); }

.band-olive { background: var(--olive-dark); color: #F4F1D6; }
.band-olive mark.tbc { color: inherit; }
.mv { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.mv-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 28px; padding: 40px; display: flex; flex-direction: column; gap: 14px; }
.mv-card p:last-child { font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; color: #fff; }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; margin-top: 28px; }
.value { border-top: 3px solid var(--amber); padding: 20px 4px 0; display: flex; flex-direction: column; gap: 8px; }
.value h3 { font-weight: 700; font-size: 22px; color: #fff; }
.value p { font-size: 15px; line-height: 1.55; color: #D8D4B0; }
.band-olive .section-bottom > h2 { font-size: clamp(30px, 3.6vw, 44px); }

.quote { margin: 0; padding-left: 24px; border-left: 3px solid var(--amber); font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, 2vw, 25px); line-height: 1.45; color: var(--ink-2); }
.signature { display: flex; flex-direction: column; font-size: 15px; color: var(--olive-text); }
.signature strong { font-family: var(--font-display); font-size: 20px; color: var(--ink); }
.photo-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: linear-gradient(160deg, var(--olive-dark), var(--ink)); color: var(--peach); font-weight: 600; max-height: 560px; }
.photo-slot .slot-logo { width: 110px; height: auto; object-fit: contain; background: var(--cream); border-radius: 22px; padding: 10px; }
.team-photo { background: radial-gradient(90% 80% at 50% 100%, #FFF1D9, transparent 70%); border-radius: 28px; padding: 32px 20px 0; }

/* Ensino */
.level-rows { display: flex; flex-direction: column; gap: 12px; }
.level-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px 32px; }
.lr-name { display: flex; align-items: center; gap: 18px; }
.lr-name h2 { font-weight: 700; font-size: 26px; line-height: 1.1; letter-spacing: -.01em; }
.lr-name span:not(.lr-bar) { font-size: 14px; font-weight: 600; color: var(--olive-text); }
.lr-bar { width: 14px; height: 56px; border-radius: 8px; flex: none; }
.lr-ages { font-family: var(--font-display); font-weight: 800; font-size: 32px; }
.lr-ages span { font-size: 18px; }
.level-row > p { font-size: 16px; color: var(--ink-3); }

.band-sky { background: var(--sky-bg); }
.text-sky { color: #22404D; }
.why-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.why-card { background: #fff; border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.why-card > span { font-family: var(--font-display); font-weight: 800; font-size: 40px; color: var(--sky); line-height: 1; }
.why-card h3 { font-family: var(--font-body); font-weight: 700; font-size: 19px; }
.why-card p { font-size: 15px; color: #3F5560; }
.stages { background: #fff; border-radius: 22px; overflow: hidden; }
.stages-head { padding: 20px 28px; font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--sky-dark); border-bottom: 1px solid #D3ECF5; }
.stage-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 8px 24px; padding: 18px 28px; border-bottom: 1px solid #EEF7FB; font-size: 16px; }
.stage-row span { color: #3F5560; }

.rows { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.rows > div { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.rows > div > span:first-child { font-weight: 600; }
.rows strong { font-family: var(--font-display); font-weight: 700; color: var(--olive-dark); }
.rows-sm { border-top: 0; }
.rows-sm > div { padding: 12px 0; font-size: 16px; border-bottom-color: var(--sand); flex-wrap: nowrap; }
.rows-sm > div > span:last-child { color: var(--ink-3); text-align: right; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 12px 20px; font-weight: 600; transition: all .2s; }
.chips li:hover { background: var(--amber); border-color: var(--amber); }
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.service { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px 32px; display: flex; flex-direction: column; gap: 12px; }
.service h3 { font-size: 24px; }
.service p { color: var(--ink-3); }

/* Galeria */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.filters button { font-weight: 600; font-size: 15px; background: transparent; color: var(--olive-dark); border: 1.5px solid var(--line-2); padding: 10px 20px; border-radius: 999px; cursor: pointer; }
.filters button:hover { background: var(--sand); }
.filters button.is-active { background: var(--olive-dark); border-color: var(--olive-dark); color: #fff; font-weight: 700; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; padding-bottom: clamp(34px, 6vw, 56px); }
.g-item { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.g-item[hidden] { display: none; }
.g-link { display: block; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: var(--sand); }
.g-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.g-link:hover img { transform: scale(1.05); }
.g-item figcaption { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-3); }
.g-cap { font-weight: 600; color: var(--ink); }
.notice { background: #FFF4E0; border-radius: 20px; padding: 20px 24px; font-size: 15px; line-height: 1.6; color: #5A4210; }

.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; }
.lightbox::backdrop { background: rgba(34, 33, 14, .95); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 12px; padding: 72px 16px 80px; }
.lightbox img { max-width: min(1200px, 92vw); max-height: calc(100vh - 180px); width: auto; height: auto; border-radius: 16px; }
.lightbox figcaption { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.lb-btn { position: fixed; width: 50px; height: 50px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: #fff; font-size: 20px; cursor: pointer; }
.lb-btn:hover { background: var(--orange); border-color: var(--orange); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; translate: 0 -50%; }
.lb-next { right: 16px; top: 50%; translate: 0 -50%; }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: 16px; translate: none; } }

/* Matrículas */
.adm-hero { padding-bottom: clamp(43px, 7vw, 72px); }
.adm-hero .text-lg { color: #F4F1D6; }
.badge-orange { align-self: flex-start; background: var(--orange); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; }
.badge-orange mark.tbc { color: inherit; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.step {
  text-align: left; cursor: pointer; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px;
  display: flex; flex-direction: column; gap: 10px; min-height: 250px; transition: border-color .2s, background-color .3s, color .3s;
}
.step:hover { border-color: var(--orange); }
.step-big { font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--line-2); }
.step-name { font-family: var(--font-display); font-weight: 700; font-size: 24px; }
.step-text { display: none; font-size: 16px; line-height: 1.55; }
.step-more { font-size: 15px; color: var(--olive-text); }
.step.is-active { background: var(--orange); border-color: var(--orange); color: #fff; }
.step.is-active .step-big { color: #fff; }
.step.is-active .step-text { display: block; color: #FFF1E8; }
.step.is-active .step-more { display: none; }
.step mark.tbc { color: inherit; }
@media (max-width: 600px) { .step { min-height: 0; } .step-big { font-size: 36px; } }

.tabs { display: flex; gap: 6px; background: var(--cream-2); border-radius: 999px; padding: 5px; align-self: flex-start; flex-wrap: wrap; }
.tabs button { font-weight: 600; font-size: 14px; background: transparent; color: var(--olive-dark); border: 0; padding: 9px 16px; border-radius: 999px; cursor: pointer; }
.tabs button.is-active { background: var(--olive-dark); color: #fff; font-weight: 700; }
.docs li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--sand); font-size: 17px; line-height: 1.5; }
.tick { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--sand); color: var(--olive-dark); font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.dates { display: flex; flex-direction: column; gap: 10px; }
.date { display: flex; gap: 20px; align-items: center; background: var(--cream); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; font-size: 17px; font-weight: 600; }
.date-badge { flex: none; width: 84px; display: flex; flex-direction: column; align-items: center; background: #fff; border-radius: 12px; padding: 8px 0; border: 1px solid var(--line); }
.date-m { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--orange); }
.date-d { font-family: var(--font-display); font-weight: 800; font-size: 22px; }

.two-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 24px; align-items: stretch; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 36px; }
.card-olive { background: var(--olive-dark); color: #F4F1D6; border-color: var(--olive-dark); }
.card-olive .text-lg { color: #F4F1D6; }
.card-olive mark.tbc { color: inherit; }

.pre-form { background: var(--orange); color: #fff; border-radius: 32px; padding: clamp(32px, 6vw, 64px); gap: 40px; }
.pre-form h2 { color: #fff; font-size: clamp(32px, 4vw, 50px); }
.pre-form .text-lg { color: #fff; font-size: 17px; }
.wa-form, .form-done { background: #fff; color: var(--ink); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.wa-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.wa-form input, .wa-form select { font: inherit; font-weight: 400; font-size: 16px; padding: 12px 14px; border: 1.5px solid #DCD6AE; border-radius: 12px; background: var(--cream); color: var(--ink); min-height: 48px; }
.wa-form input:focus, .wa-form select:focus { outline: none; border-color: var(--orange); background: #fff; }
.wa-form input[aria-invalid="true"] { border-color: #B3261E; }
.form-error { color: #B3261E; font-size: 14px; font-weight: 600; }
.wa-form .btn { margin-top: 6px; }
.form-done[hidden], .wa-form[hidden], .form-error[hidden] { display: none; }
.done-title { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--olive-text); }

/* Contactos */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; align-items: stretch; }
.map { border-radius: 28px; overflow: hidden; min-height: clamp(300px, 70vw, 440px); background: var(--sand); border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: 100%; min-height: clamp(300px, 70vw, 440px); border: 0; }
.contact-cards { display: flex; flex-direction: column; gap: 12px; }
.contact-cards .card { border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.label { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--olive-text); }
.label-amber { color: var(--amber); }
.addr { font-size: 18px; font-weight: 600; line-height: 1.45; }
.contact-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.card-link { color: var(--ink); }
.card-link:hover { border-color: var(--orange); color: var(--ink); }
.card-link strong, .card-wa strong { font-size: 18px; }
.other-phones { font-size: 14px; color: var(--ink-3); }
.contact-cards .card-wa { background: var(--wa); color: var(--wa-ink); border-color: var(--wa); }
.card-wa .label { color: var(--wa-ink); }
.card-wa:hover { background: #1FB257; color: var(--wa-ink); }
.hours { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; }
.hours strong { color: #fff; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials .btn { flex: 1; min-width: 140px; background: #fff; border-color: var(--line); color: var(--ink); }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--ink); color: #D8D4B0; }
.footer-stripe { height: 8px; display: grid; grid-template-columns: 2fr 2fr 1fr 3fr; }
.footer-stripe span:nth-child(1) { background: var(--amber); }
.footer-stripe span:nth-child(2) { background: var(--orange); }
.footer-stripe span:nth-child(3) { background: var(--sky-light); }
.footer-stripe span:nth-child(4) { background: var(--olive); }
.footer-grid { padding-top: clamp(38px, 8vw, 64px); padding-bottom: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-logo { background: var(--cream); border-radius: 16px; padding: 8px; align-self: flex-start; }
.footer-logo img { width: 68px; height: 68px; object-fit: contain; }
.footer-brand strong { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: #fff; }
.footer-motto { font-size: 13px; color: var(--amber); letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.6; }
.footer-col h2 { font-family: var(--font-body); font-weight: 700; font-size: 15px; letter-spacing: 0; color: #fff; }
.footer-col a { color: #D8D4B0; }
.footer-col a:hover { color: var(--amber); }
.footer-col .btn-orange { color: #fff; }
.footer-col .btn-orange:hover { color: var(--ink); }
.site-footer mark.tbc { color: inherit; }
.footer-bottom { padding-top: 20px; padding-bottom: 32px; border-top: 1px solid var(--olive-dark); font-size: 13px; color: #A9A57E; }

/* ---------- Botões flutuantes ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 30; display: flex; align-items: center; gap: 10px;
  background: var(--wa); color: var(--wa-ink); font-weight: 700; font-size: 15px; padding: 14px 20px; border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .2); animation: pulse 2.4s infinite;
}
.wa-float:hover { background: #1FB257; color: var(--wa-ink); }
.mobile-bar { display: none; }
@media (max-width: 859px) {
  .wa-float { display: none; }
  .mobile-bar {
    position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 30;
    display: flex; gap: 8px; padding: 6px; background: rgba(34, 33, 14, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-radius: 999px; box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 15px; border-radius: 999px; padding: 14px 10px; }
  .mb-call { flex: none; width: 50px; padding: 0 !important; background: rgba(255, 255, 255, .12); color: #fff; }
  .mb-call:hover { color: var(--amber); }
  .mb-enrol { flex: 1; background: var(--orange); color: #fff; }
  .mb-enrol:hover { color: #fff; }
  .mb-wa { flex: 1; background: var(--wa); color: var(--wa-ink); }
  .mb-wa:hover { color: var(--wa-ink); }
  .footer-bottom { padding-bottom: 104px; }
}

/* ==========================================================================
   Animações
   Só transform/opacity/clip-path (GPU). Tudo desligado com prefers-reduced-motion.
   ========================================================================== */
:root {
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---- Transição entre páginas (View Transitions, Chrome/Edge/Safari recentes) ---- */
@view-transition { navigation: auto; }
.banner { view-transition-name: banner; }
.site-header { view-transition-name: header; }
.mobile-bar { view-transition-name: mobile-bar; }
.wa-float { view-transition-name: wa-float; }
::view-transition-old(root) { animation: vt-out .28s var(--ease-in-out) both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }

/* ---- Cabeçalho compacto ao descer ---- */
.header-inner { transition: padding .4s var(--ease-out); }
.site-header.is-scrolled .header-inner { padding-top: 6px; padding-bottom: 6px; }
.brand img { transition: transform .5s var(--ease), width .4s var(--ease-out), height .4s var(--ease-out); }
.site-header.is-scrolled .brand img { width: 40px; height: 40px; }
.nav a:not(.nav-cta) { transition: background-color .2s, color .2s; }
.nav a[aria-current="page"]::after { transform-origin: left; animation: underline-in .6s var(--ease-out) .2s both; }
.nav a:not(.nav-cta)::before {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px; border-radius: 3px;
  background: var(--amber); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out);
}
.nav a:not(.nav-cta):hover::before { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"]::before { display: none; }
@keyframes underline-in { from { transform: scaleX(0); } }

/* ---- Faixa de matrículas: entrada ---- */
.js .banner { animation: drop-in .7s var(--ease-out) both; }
@keyframes drop-in { from { transform: translateY(-100%); } }
.banner-btn { transition: background-color .2s, transform .3s var(--ease-spring); }
.banner-btn:hover { transform: translateX(3px); }

/* ---- Hero: imagem, parallax e texto palavra a palavra ---- */
.hero-media img { will-change: transform; transform: translate3d(0, var(--parallax, 0px), 0) scale(1.08); }
.js .hero-media { animation: hero-in 2.4s var(--ease-out) both; }
@keyframes hero-in { from { transform: scale(1.14); opacity: 0; filter: blur(6px); } to { transform: none; opacity: 1; filter: none; } }
.js .hero-shade { animation: fade-in 1.4s ease-out both; }

.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-words .wi { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--d, 0s) + var(--wi, 0) * 55ms); }
.split-words.is-split-in .wi { transform: none; }
.hero h1.split-words { --d: .35s; }

.js .hero .kicker, .js .hero-lead, .js .hero-actions > * { opacity: 0; transform: translateY(20px); animation: rise .9s var(--ease-out) both; }
.js .hero .kicker { animation-delay: .2s; }
.js .hero-lead { animation-delay: .85s; }
.js .hero-actions > :nth-child(1) { animation-delay: 1s; }
.js .hero-actions > :nth-child(2) { animation-delay: 1.1s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } }

/* Indicador de scroll no hero */
.hero::after {
  content: ""; position: absolute; left: 50%; bottom: 18px; width: 2px; height: 34px; border-radius: 2px;
  background: linear-gradient(var(--amber), transparent); transform-origin: top; animation: scroll-cue 2.2s var(--ease-in-out) 2s infinite both;
}
@keyframes scroll-cue { 0% { transform: scaleY(0); opacity: 1; } 50% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1) translateY(20px); opacity: 0; } }
@media (max-width: 859px) { .hero::after { display: none; } }

/* ---- Faixa animada ---- */
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .star { display: inline-flex; animation: spin-star 8s linear infinite; }
@keyframes spin-star { to { transform: rotate(360deg); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- Revelação ao fazer scroll ---- */
.js [data-reveal] {
  opacity: 0; transform: translateY(36px);
  transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out), clip-path 1.2s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Imagens: abrem como uma cortina de baixo para cima, com zoom a assentar */
.js .photo[data-reveal], .js .moment[data-reveal], .js .team-photo[data-reveal], .js .g-item[data-reveal] .g-link {
  clip-path: inset(18% 0 0 0 round 28px); transform: translateY(24px);
}
.js .photo[data-reveal] img, .js .moment[data-reveal] img, .js .g-item[data-reveal] .g-link img { transform: scale(1.15); transition: transform 1.6s var(--ease-out); }
.js .photo[data-reveal].is-in, .js .moment[data-reveal].is-in, .js .team-photo[data-reveal].is-in, .js .g-item[data-reveal].is-in .g-link { clip-path: inset(0 0 0 0 round 28px); transform: none; }
.js .photo[data-reveal].is-in img, .js .g-item[data-reveal].is-in .g-link img { transform: none; }
.js .moment[data-reveal].is-in img { transform: scale(1); }
.js .g-item[data-reveal] .g-link { transition: clip-path 1.2s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }

/* Cartões: sobem com uma ligeira escala */
.js .level[data-reveal], .js .step[data-reveal], .js .why-card[data-reveal], .js .service[data-reveal], .js .card[data-reveal], .js .mv-card[data-reveal] { transform: translateY(40px) scale(.97); }
.js .level[data-reveal].is-in, .js .step[data-reveal].is-in, .js .why-card[data-reveal].is-in, .js .service[data-reveal].is-in, .js .card[data-reveal].is-in, .js .mv-card[data-reveal].is-in { transform: none; }

/* Linhas de nível: entram da esquerda e a barra de cor cresce */
.js .level-row[data-reveal] { transform: translateX(-28px); }
.js .level-row[data-reveal].is-in { transform: none; }
.lr-bar { transform-origin: bottom; }
.js .level-row[data-reveal] .lr-bar { transform: scaleY(0); transition: transform .8s var(--ease-out) .35s; }
.js .level-row[data-reveal].is-in .lr-bar { transform: none; }

/* Valores: a linha âmbar desenha-se */
.value { border-top: 0; position: relative; }
.value::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--amber); transform-origin: left; }
.js .value[data-reveal]::before { transform: scaleX(0); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms + .2s); }
.js .value[data-reveal].is-in::before { transform: none; }

/* Linha do tempo: a linha desenha-se e os pontos aparecem */
.timeline { border-left: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--line); transform-origin: top; }
.timeline li::before { transform: scale(0); transition: transform .5s var(--ease-spring); }
.js [data-reveal] .timeline::before { transform: scaleY(0); transition: transform 1.4s var(--ease-out) .3s; }
.js [data-reveal].is-in .timeline::before { transform: none; }
.js [data-reveal].is-in .timeline li::before { transform: scale(1); }
.js [data-reveal].is-in .timeline li:nth-child(1)::before { transition-delay: .5s; }
.js [data-reveal].is-in .timeline li:nth-child(2)::before { transition-delay: .9s; }
.js [data-reveal].is-in .timeline li:nth-child(3)::before { transition-delay: 1.3s; }
html:not(.js) .timeline li::before { transform: none; }

/* Chips de actividades: entram em cascata */
.js [data-reveal] .chips li { opacity: 0; transform: translateY(12px) scale(.9); transition: opacity .5s var(--ease-out), transform .6s var(--ease-spring), background-color .2s, border-color .2s; transition-delay: calc(var(--ci, 0) * 45ms + .25s); }
.js [data-reveal].is-in .chips li { opacity: 1; transform: none; }
.chips li:hover { transform: translateY(-3px) !important; }

/* ---- Micro-interações ---- */
.btn { position: relative; overflow: hidden; isolation: isolate; transition: background-color .25s, color .25s, border-color .25s, transform .35s var(--ease-spring), box-shadow .3s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .1s; }
.btn-orange::after, .btn-wa::after, .btn-white::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn-orange:hover::after, .btn-wa:hover::after, .btn-white:hover::after { transform: translateX(120%); transition: transform .8s var(--ease-out); }
.btn-orange:hover { box-shadow: 0 12px 26px rgba(227, 90, 30, .35); }
.btn-wa:hover { box-shadow: 0 12px 26px rgba(37, 211, 102, .35); }

.arrow { display: inline-block; transition: transform .35s var(--ease-spring); }
a:hover .arrow, button:hover .arrow { transform: translateX(5px); }
.pill-arrow { transition: transform .4s var(--ease-spring), background-color .2s; }
.pill-link:hover .pill-arrow { transform: translateX(3px) rotate(-45deg); background: var(--amber); }

.level-media img { transition: transform 1s var(--ease-out); }
.level:hover .level-media img { transform: scale(1.07); }
.level-age { transition: transform .4s var(--ease-spring); }
.level:hover .level-age { transform: translateY(-2px) scale(1.05); }
.level { transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }

.moment span { transition: padding-bottom .5s var(--ease-out), background-color .4s; }
.moment:hover span { padding-bottom: 24px; }
.moment::after {
  content: "→"; position: absolute; right: 16px; bottom: 16px; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--amber); color: var(--ink); font-weight: 700;
  opacity: 0; transform: scale(.5) rotate(-45deg); transition: opacity .3s, transform .5s var(--ease-spring);
}
.moment:hover::after { opacity: 1; transform: none; }
.moment:hover img { transform: scale(1.08) !important; transition: transform 1.2s var(--ease-out) !important; }

.step-mini { transition: transform .45s var(--ease-spring), box-shadow .4s; }
.step-mini .step-num { transition: transform .5s var(--ease-spring), background-color .3s, color .3s; }
.step-mini:hover .step-num { transform: rotate(-8deg) scale(1.08); background: var(--orange); color: #fff; }

.g-item figcaption { transition: transform .4s var(--ease-out); }
.g-item:hover figcaption { transform: translateX(4px); }

.why-card, .service, .contact-cards .card { transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .2s, background-color .2s; }
.why-card:hover, .service:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(31, 126, 163, .12); }
.why-card > span { display: inline-block; transition: transform .5s var(--ease-spring); }
.why-card:hover > span { transform: scale(1.15) rotate(-6deg); }

.brand:hover img { transform: rotate(-8deg) scale(1.06); }

/* Botão de menu: as linhas mexem */
.menu-btn span { transition: width .35s var(--ease-out), margin .35s var(--ease-out); }
.menu-btn:hover span:last-child { width: 20px; margin-left: 0; }

/* ---- Matrículas: passos abrem com suavidade ---- */
.step-text { display: block; max-height: 0; opacity: 0; overflow: hidden; transform: translateY(8px); transition: max-height .6s var(--ease-out), opacity .4s, transform .5s var(--ease-out); }
.step.is-active .step-text { display: block; max-height: 14em; opacity: 1; transform: none; transition-delay: .08s; }
.step-big { transition: color .3s, transform .5s var(--ease-spring); }
.step.is-active .step-big { transform: scale(1.06); transform-origin: left; }
.step-more { transition: opacity .2s; }

/* Separadores dos documentos: indicador desliza */
.tabs { position: relative; }
.tabs .tab-pill { position: absolute; top: 5px; left: 0; height: calc(100% - 10px); border-radius: 999px; background: var(--olive-dark); transition: transform .45s var(--ease-out), width .45s var(--ease-out); z-index: 0; }
.tabs.has-pill button { position: relative; z-index: 1; transition: color .3s; }
.tabs.has-pill button.is-active { background: transparent; }
.docs.is-entering li { animation: doc-in .5s var(--ease-out) both; }
.docs.is-entering li:nth-child(2) { animation-delay: .04s; } .docs.is-entering li:nth-child(3) { animation-delay: .08s; }
.docs.is-entering li:nth-child(4) { animation-delay: .12s; } .docs.is-entering li:nth-child(5) { animation-delay: .16s; }
.docs.is-entering li:nth-child(6) { animation-delay: .2s; }
@keyframes doc-in { from { opacity: 0; transform: translateX(-14px); } }
.tick { transition: transform .4s var(--ease-spring); }
.docs li:hover .tick { transform: scale(1.2); background: var(--amber); }

/* Datas */
.date { transition: transform .4s var(--ease-out), border-color .2s, box-shadow .3s; }
.date:hover { transform: translateX(6px); border-color: var(--orange); box-shadow: 0 10px 24px rgba(61, 61, 10, .08); }

/* Formulário: confirmação */
.form-done:not([hidden]) { animation: pop-in .6s var(--ease-spring) both; }
@keyframes pop-in { from { opacity: 0; transform: scale(.92) translateY(10px); } }
.wa-form input, .wa-form select { transition: border-color .2s, background-color .2s, box-shadow .2s; }
.wa-form input:focus, .wa-form select:focus { box-shadow: 0 0 0 4px rgba(227, 90, 30, .15); }
.wa-form input[aria-invalid="true"] { animation: shake .4s var(--ease-in-out); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* Galeria: filtros e reordenação */
.filters button { transition: background-color .25s, color .25s, border-color .25s, transform .35s var(--ease-spring); }
.filters button:active { transform: scale(.95); }
.g-item.is-filter-in { animation: filter-in .55s var(--ease-out) both; }
@keyframes filter-in { from { opacity: 0; transform: scale(.92); } }

/* Lightbox */
.lightbox[open] { animation: fade-in .3s ease-out; }
.lightbox[open]::backdrop { animation: fade-in .35s ease-out; }
.lightbox[open] figure { animation: lb-in .55s var(--ease-out); }
.lightbox.is-closing { animation: fade-out .25s ease-in forwards; }
.lightbox.is-closing::backdrop { animation: fade-out .25s ease-in forwards; }
.lightbox img { transition: opacity .18s ease, transform .3s var(--ease-out); }
.lightbox img.is-swapping { opacity: 0; transform: scale(.98); }
@keyframes lb-in { from { opacity: 0; transform: scale(.94) translateY(16px); } }
@keyframes fade-out { to { opacity: 0; } }
.lb-btn { transition: background-color .2s, border-color .2s, transform .35s var(--ease-spring); }
.lb-btn:hover { transform: scale(1.08); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.08); translate: 0 0; }
@media (max-width: 600px) { .lb-prev:hover, .lb-next:hover { transform: scale(1.08); } }

/* Menu móvel: links reagem ao toque */
.mm-nav a .mm-arrow { transition: transform .35s var(--ease-spring); }
.mm-nav a:hover .mm-arrow, .mm-nav a:active .mm-arrow { transform: translateX(6px); }

/* Botões flutuantes: entram depois do conteúdo */
.js .wa-float { animation: float-in .8s var(--ease-spring) 1.6s both, pulse 2.4s 2.6s infinite; }
.js .mobile-bar { animation: bar-in .8s var(--ease-out) 1.2s both; }
.wa-float { transition: background-color .2s, transform .35s var(--ease-spring); }
.wa-float:hover { transform: translateY(-3px) scale(1.03); }
.wa-float .ico { transition: transform .5s var(--ease-spring); }
.wa-float:hover .ico { transform: rotate(-12deg) scale(1.1); }
@keyframes float-in { from { opacity: 0; transform: translateY(30px) scale(.8); } }
@keyframes bar-in { from { opacity: 0; transform: translateY(120%); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 10px 28px rgba(0, 0, 0, .2), 0 0 0 0 rgba(37, 211, 102, .5); } 50% { box-shadow: 0 10px 28px rgba(0, 0, 0, .2), 0 0 0 12px rgba(37, 211, 102, 0); } }

/* Rodapé: as cores da faixa crescem */
.footer-stripe span { transform-origin: left; }
.js .footer-stripe.is-in span { animation: stripe-in .9s var(--ease-out) both; }
.js .footer-stripe span { transform: scaleX(0); }
.js .footer-stripe.is-in span { transform: none; }
.footer-stripe.is-in span:nth-child(2) { animation-delay: .1s; }
.footer-stripe.is-in span:nth-child(3) { animation-delay: .2s; }
.footer-stripe.is-in span:nth-child(4) { animation-delay: .3s; }
@keyframes stripe-in { from { transform: scaleX(0); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .js [data-reveal], .js [data-reveal] .g-link, .js [data-reveal] img, .js [data-reveal] .chips li, .split-words .wi,
  .js .hero .kicker, .js .hero-lead, .js .hero-actions > *, .js .footer-stripe span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .hero-media img { transform: none; }
  .js [data-reveal] .timeline::before, .js .value[data-reveal]::before, .js .level-row[data-reveal] .lr-bar, .timeline li::before { transform: none !important; }
}

/* ==========================================================================
   Hero de um só ecrã + mais espaço entre secções
   ========================================================================== */
:root { --gutter: clamp(20px, 4.5vw, 56px); }
.wrap { padding-left: var(--gutter); padding-right: var(--gutter); max-width: calc(1240px + 2 * var(--gutter)); }

/* O hero ocupa exactamente o resto do ecrã abaixo da faixa e do cabeçalho
   (--hero-top é medido em JavaScript). svh = altura visível no telemóvel. */
.hero {
  min-height: 0;
  height: max(460px, calc(100vh - var(--hero-top, 120px)));
  height: max(460px, calc(100svh - var(--hero-top, 120px)));
  align-items: center;
}
.hero-content {
  padding-top: clamp(20px, 5svh, 72px);
  padding-bottom: clamp(28px, 7svh, 80px);
  gap: clamp(12px, 2.6svh, 28px);
  margin-top: auto;
}
.hero h1 { font-size: clamp(32px, min(7.2vw, 9svh), 92px); line-height: 1; }
.hero-lead { font-size: clamp(15px, min(1.6vw, 2.4svh), 20px); line-height: 1.55; max-width: 34em; }
.hero-actions .btn { padding: clamp(12px, 2svh, 17px) clamp(18px, 2.4vw, 28px); }
@media (max-width: 859px) {
  /* Deixa espaço para a barra fixa de baixo (Ligar · Matrículas · WhatsApp). */
  .hero-content { padding-bottom: calc(clamp(20px, 4svh, 40px) + 72px); }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 140px; max-width: none; font-size: 15px; }
}
@media (max-height: 640px) and (max-width: 859px) {
  .hero .kicker { display: none; }
}
@media (max-height: 600px) and (max-width: 859px) {
  /* Ecrãs muito baixos: os botões já estão na barra fixa de baixo. */
  .hero { height: max(320px, calc(100svh - var(--hero-top, 120px))); }
  .hero-actions { display: none; }
}

/* Mais respiração a partir da terceira secção */
.section { padding-top: clamp(80px, 11vw, 140px); padding-bottom: clamp(80px, 11vw, 140px); }
.section-sm { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); }
.section-bottom { padding-bottom: clamp(80px, 11vw, 140px); }
.section-head { margin-bottom: clamp(40px, 5vw, 64px); gap: 28px; }
.section-head > div { gap: 16px; }
.section-bottom > .section-head { margin-bottom: clamp(32px, 4vw, 48px); }
.stack { gap: 24px; }
.stack-lg { gap: clamp(48px, 6vw, 72px); }
.split { gap: clamp(48px, 7vw, 104px); }
.levels { gap: clamp(16px, 2vw, 28px); }
.level-body { padding: 26px 28px 30px; gap: 12px; }
.moments { gap: clamp(16px, 2vw, 28px); }
.steps-card { padding: clamp(32px, 5vw, 64px); }
.steps-mini { gap: clamp(14px, 1.6vw, 20px); }
.step-mini { padding: 22px 24px; }
.why-cards, .services, .two-cards, .contact, .mv { gap: clamp(16px, 2.2vw, 32px); }
.gallery { gap: clamp(16px, 2vw, 28px); }
.text-lg { line-height: 1.75; }
@media (max-width: 859px) {
  .page-home .levels { margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 16px; scroll-padding: 0 var(--gutter); grid-auto-columns: 82%; }
}

/* Mais espaço entre o bloco "Inscrever é simples: quatro passos" e "Momentos do Colégio" */
.section-sm + .section-bottom { padding-top: clamp(64px, 9vw, 128px); }

/* ==========================================================================
   Animações mais lentas (~1,6×) para se poderem apreciar.
   Os cliques e o feedback imediato continuam rápidos.
   ========================================================================== */
/* Mudança de página */
::view-transition-old(root) { animation-duration: .45s; }
::view-transition-new(root) { animation-duration: .95s; }

/* Entrada da página inicial */
.js .banner { animation-duration: 1.1s; }
.js .hero-media { animation-duration: 3.6s; }
.js .hero-shade { animation-duration: 2.2s; }
.split-words .wi { transition-duration: 1.6s; transition-delay: calc(var(--d, 0s) + var(--wi, 0) * 95ms); }
.hero h1.split-words { --d: .55s; }
.js .hero .kicker, .js .hero-lead, .js .hero-actions > * { animation-duration: 1.5s; }
.js .hero .kicker { animation-delay: .3s; }
.js .hero-lead { animation-delay: 1.45s; }
.js .hero-actions > :nth-child(1) { animation-delay: 1.7s; }
.js .hero-actions > :nth-child(2) { animation-delay: 1.88s; }

/* Revelação ao fazer scroll */
.js [data-reveal] {
  transition-duration: 1.5s, 1.8s, 2s;
  transition-delay: calc(var(--i, 0) * 150ms);
}
.js .photo[data-reveal] img, .js .moment[data-reveal] img, .js .g-item[data-reveal] .g-link img { transition-duration: 2.6s; }
.js .g-item[data-reveal] .g-link { transition-duration: 2s, 1.8s; transition-delay: calc(var(--i, 0) * 120ms); }
.js .level-row[data-reveal] .lr-bar { transition-duration: 1.3s; transition-delay: .6s; }
.js .value[data-reveal]::before { transition-duration: 1.6s; transition-delay: calc(var(--i, 0) * 150ms + .35s); }
.js [data-reveal] .timeline::before { transition-duration: 2.2s; transition-delay: .5s; }
.timeline li::before { transition-duration: .8s; }
.js [data-reveal].is-in .timeline li:nth-child(1)::before { transition-delay: .8s; }
.js [data-reveal].is-in .timeline li:nth-child(2)::before { transition-delay: 1.4s; }
.js [data-reveal].is-in .timeline li:nth-child(3)::before { transition-delay: 2s; }
.js [data-reveal] .chips li { transition-duration: .8s, 1s, .2s, .2s; transition-delay: calc(var(--ci, 0) * 80ms + .4s); }

/* Faixa animada */
.marquee-track { animation-duration: 64s; }

/* Detalhes que abrem/mudam */
.step-text { transition-duration: 1s, .7s, .8s; }
.docs.is-entering li { animation-duration: .8s; }
.docs.is-entering li:nth-child(2) { animation-delay: .08s; } .docs.is-entering li:nth-child(3) { animation-delay: .16s; }
.docs.is-entering li:nth-child(4) { animation-delay: .24s; } .docs.is-entering li:nth-child(5) { animation-delay: .32s; }
.docs.is-entering li:nth-child(6) { animation-delay: .4s; }
.tabs .tab-pill { transition-duration: .7s; }
.g-item.is-filter-in { animation-duration: .9s; }
.lightbox[open] figure { animation-duration: .85s; }
.lightbox img { transition-duration: .3s, .5s; }
.form-done:not([hidden]) { animation-duration: .9s; }

/* Passagem do rato: zoom e movimentos mais calmos */
.level-media img, .moment img, .g-link img { transition-duration: 1.6s; }
.moment:hover img { transition-duration: 1.8s !important; }
.level { transition-duration: .8s; }

/* Botões flutuantes */
.js .wa-float { animation: float-in 1.2s var(--ease-spring) 2.4s both, pulse 3s 3.6s infinite; }
.js .mobile-bar { animation-duration: 1.2s; animation-delay: 1.9s; }
.js .footer-stripe.is-in span { animation-duration: 1.5s; }
.footer-stripe.is-in span:nth-child(2) { animation-delay: .18s; }
.footer-stripe.is-in span:nth-child(3) { animation-delay: .36s; }
.footer-stripe.is-in span:nth-child(4) { animation-delay: .54s; }

/* ==========================================================================
   Animações ainda mais lentas (~1,5× sobre o bloco anterior, ~2,4× o original).
   ========================================================================== */
::view-transition-old(root) { animation-duration: .6s; }
::view-transition-new(root) { animation-duration: 1.4s; }

.js .banner { animation-duration: 1.6s; }
.js .hero-media { animation-duration: 5s; }
.js .hero-shade { animation-duration: 3.2s; }
.split-words .wi { transition-duration: 2.3s; transition-delay: calc(var(--d, 0s) + var(--wi, 0) * 140ms); }
.hero h1.split-words { --d: .8s; }
.js .hero .kicker, .js .hero-lead, .js .hero-actions > * { animation-duration: 2.2s; }
.js .hero .kicker { animation-delay: .45s; }
.js .hero-lead { animation-delay: 2.1s; }
.js .hero-actions > :nth-child(1) { animation-delay: 2.5s; }
.js .hero-actions > :nth-child(2) { animation-delay: 2.75s; }
.hero::after { animation-delay: 4s; animation-duration: 3s; }

.js [data-reveal] {
  transition-duration: 2.2s, 2.6s, 2.8s;
  transition-delay: calc(var(--i, 0) * 220ms);
}
.js .photo[data-reveal] img, .js .moment[data-reveal] img, .js .g-item[data-reveal] .g-link img { transition-duration: 3.6s; }
.js .g-item[data-reveal] .g-link { transition-duration: 2.8s, 2.6s; transition-delay: calc(var(--i, 0) * 180ms); }
.js .level-row[data-reveal] .lr-bar { transition-duration: 1.9s; transition-delay: .9s; }
.js .value[data-reveal]::before { transition-duration: 2.4s; transition-delay: calc(var(--i, 0) * 220ms + .5s); }
.js [data-reveal] .timeline::before { transition-duration: 3.2s; transition-delay: .7s; }
.timeline li::before { transition-duration: 1.1s; }
.js [data-reveal].is-in .timeline li:nth-child(1)::before { transition-delay: 1.1s; }
.js [data-reveal].is-in .timeline li:nth-child(2)::before { transition-delay: 2s; }
.js [data-reveal].is-in .timeline li:nth-child(3)::before { transition-delay: 2.9s; }
.js [data-reveal] .chips li { transition-duration: 1.2s, 1.5s, .2s, .2s; transition-delay: calc(var(--ci, 0) * 120ms + .6s); }

.marquee-track { animation-duration: 90s; }

.step-text { transition-duration: 1.4s, 1s, 1.2s; }
.docs.is-entering li { animation-duration: 1.2s; }
.docs.is-entering li:nth-child(2) { animation-delay: .12s; } .docs.is-entering li:nth-child(3) { animation-delay: .24s; }
.docs.is-entering li:nth-child(4) { animation-delay: .36s; } .docs.is-entering li:nth-child(5) { animation-delay: .48s; }
.docs.is-entering li:nth-child(6) { animation-delay: .6s; }
.tabs .tab-pill { transition-duration: 1s; }
.g-item.is-filter-in { animation-duration: 1.3s; }
.lightbox[open] figure { animation-duration: 1.2s; }
.form-done:not([hidden]) { animation-duration: 1.3s; }

.level-media img, .moment img, .g-link img { transition-duration: 2.2s; }
.moment:hover img { transition-duration: 2.6s !important; }
.level { transition-duration: 1.1s; }
.why-card, .service, .contact-cards .card, .date { transition-duration: .8s; }

.js .wa-float { animation: float-in 1.8s var(--ease-spring) 3.4s both, pulse 3.6s 5.2s infinite; }
.js .mobile-bar { animation-duration: 1.8s; animation-delay: 2.8s; }
.js .footer-stripe.is-in span { animation-duration: 2.2s; }
.footer-stripe.is-in span:nth-child(2) { animation-delay: .28s; }
.footer-stripe.is-in span:nth-child(3) { animation-delay: .56s; }
.footer-stripe.is-in span:nth-child(4) { animation-delay: .84s; }

/* ==========================================================================
   Primeiro ecrã = faixa laranja + cabeçalho + hero + faixa animada.
   (--hero-top e --marquee-h são medidos em JavaScript.)
   ========================================================================== */
.hero {
  height: max(420px, calc(100vh - var(--hero-top, 120px) - var(--marquee-h, 60px)));
  height: max(420px, calc(100svh - var(--hero-top, 120px) - var(--marquee-h, 60px)));
}
@media (max-width: 859px) {
  /* A faixa animada fica logo acima da barra fixa de baixo; o fundo oliva
     continua por baixo da barra, e o hero já não precisa de lhe reservar espaço. */
  .marquee { padding-bottom: calc(18px + 74px + env(safe-area-inset-bottom, 0px)); }
  .hero-content { padding-bottom: clamp(24px, 5svh, 48px); }
  .hero {
    height: max(300px, calc(100vh - var(--hero-top, 120px) - var(--marquee-h, 60px)));
    height: max(300px, calc(100svh - var(--hero-top, 120px) - var(--marquee-h, 60px)));
  }
}
@media (max-width: 859px) and (max-height: 700px) {
  .hero .kicker { display: none; }
  .hero-content { padding-top: 16px; gap: 12px; }
}
@media (max-width: 859px) and (max-height: 600px) {
  .hero { height: max(220px, calc(100svh - var(--hero-top, 120px) - var(--marquee-h, 60px))); }
  .marquee { padding-top: 12px; padding-bottom: calc(12px + 74px); }
}

/* ==========================================================================
   Ajustes para telemóvel
   ========================================================================== */
@media (max-width: 859px) {
  /* Botões do hero: um por baixo do outro, texto numa só linha */
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn { width: 100%; max-width: none; flex: none; white-space: nowrap; padding: 14px 20px; font-size: 16px; }

  /* Secções: menos vazio entre elas */
  .section { padding-top: 64px; padding-bottom: 64px; }
  .section-sm { padding-top: 48px; padding-bottom: 48px; }
  .section-bottom { padding-bottom: 64px; }
  .section-sm + .section-bottom { padding-top: 56px; }
  .section-head { margin-bottom: 32px; gap: 20px; }
  .section-bottom > .section-head { margin-bottom: 28px; }
  .page-title { padding-top: 48px; padding-bottom: 32px; gap: 14px; }
  .split { gap: 36px; }
  .stack-lg { gap: 40px; }
  h2 { font-size: clamp(30px, 8.4vw, 40px); }

  /* Quatro passos em grelha 2×2 */
  .steps-card { padding: 28px 20px; border-radius: 24px; }
  .steps-card .section-head { margin-bottom: 22px; }
  .steps-mini { grid-template-columns: 1fr 1fr; gap: 10px; }
  .step-mini { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; border-radius: 16px; }
  .step-num { width: 38px; height: 38px; font-size: 17px; }
  .step-title { font-size: 18px; }

  /* Momentos do Colégio em grelha 2×2 */
  .moments { grid-template-columns: 1fr 1fr; gap: 12px; }
  .moment { border-radius: 18px; }
  .moment span { font-size: 15px; padding: 28px 12px 10px; }
  .moment::after { display: none; }

  /* Níveis (página Ensino): cartões mais compactos */
  .level-row { padding: 22px; gap: 12px; border-radius: 20px; }
  .lr-name h2 { font-size: 22px; }
  .lr-ages { font-size: 26px; }
  .lr-bar { height: 44px; width: 10px; }

  /* Rodapé em duas colunas */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-brand, .footer-grid > .footer-col:last-child { grid-column: 1 / -1; }
  .footer-brand { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 12px 16px; }
  .footer-logo img { width: 52px; height: 52px; }
  .footer-motto { width: 100%; }

  /* Cartões e blocos com menos margem interna */
  .card { padding: 24px; border-radius: 22px; }
  .mv-card { padding: 26px; }
  .why-card { padding: 22px; }
  .service { padding: 22px; }
  .pre-form { padding: 28px 20px; border-radius: 24px; }
  .text-lg { font-size: 17px; }

  /* Animações: no telemóvel um pouco mais rápidas, para o ecrã nunca ficar vazio */
  .js .hero-media { animation-duration: 2.4s; }
  .split-words .wi { transition-duration: 1.2s; transition-delay: calc(var(--d, 0s) + var(--wi, 0) * 70ms); }
  .hero h1.split-words { --d: .3s; }
  .js .hero .kicker, .js .hero-lead, .js .hero-actions > * { animation-duration: 1.2s; }
  .js .hero .kicker { animation-delay: .15s; }
  .js .hero-lead { animation-delay: .9s; }
  .js .hero-actions > :nth-child(1) { animation-delay: 1.1s; }
  .js .hero-actions > :nth-child(2) { animation-delay: 1.25s; }
  .js [data-reveal] { transition-duration: 1s, 1.2s, 1.3s; transition-delay: calc(var(--i, 0) * 90ms); }
  .js .photo[data-reveal] img, .js .moment[data-reveal] img, .js .g-item[data-reveal] .g-link img { transition-duration: 1.8s; }
  .js .g-item[data-reveal] .g-link { transition-duration: 1.3s, 1.2s; transition-delay: calc(var(--i, 0) * 80ms); }
  .js .mobile-bar { animation-duration: 1s; animation-delay: 1s; }
}
@media (max-width: 859px) {
  .steps-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .moments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 360px) {
  .steps-card { padding: 24px 14px; }
  .step-mini { padding: 14px 12px; }
  .step-title { font-size: 16px; }
}

/* ==========================================================================
   Selector de idioma com bandeiras (Moçambique = português, Reino Unido = inglês)
   ========================================================================== */
.lang-switch { gap: 2px; padding: 4px; align-items: center; }
.lang-switch button {
  display: grid; place-items: center; min-width: 0; min-height: 0;
  width: 38px; height: 30px; padding: 0; border-radius: 999px;
  background: transparent; transition: background-color .25s, box-shadow .25s, transform .3s var(--ease-spring);
}
.lang-switch .flag {
  width: 24px; height: 16px; border-radius: 3px; display: block;
  box-shadow: 0 0 0 1px rgba(34, 33, 14, .18);
  filter: grayscale(.55); opacity: .6; transition: filter .25s, opacity .25s, transform .3s var(--ease-spring);
}
.lang-switch button:hover .flag { filter: none; opacity: 1; transform: scale(1.08); }
.lang-switch button[aria-pressed="true"] { background: #fff; box-shadow: 0 0 0 2px var(--orange), 0 2px 6px rgba(34, 33, 14, .15); }
.lang-switch button[aria-pressed="true"] .flag { filter: none; opacity: 1; }
.lang-switch-dark { padding: 6px; }
.lang-switch-dark button { width: 52px; height: 40px; }
.lang-switch-dark .flag { width: 32px; height: 21px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.lang-switch-dark button[aria-pressed="true"] { background: rgba(255, 255, 255, .12); box-shadow: 0 0 0 2px var(--amber); }

/* ==========================================================================
   Rodapé: ícones das redes sociais
   ========================================================================== */
.socials-row { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.social {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); color: #F4F1D6; border: 1px solid rgba(255, 255, 255, .14);
  transition: background-color .3s, color .3s, border-color .3s, transform .4s var(--ease-spring);
}
.social svg { width: 19px; height: 19px; }
.footer-col a.social:hover { color: #fff; transform: translateY(-3px); }
.social-fb:hover { background: #1877F2; border-color: #1877F2; }
.social-wa:hover { background: #25D366; border-color: #25D366; color: var(--wa-ink) !important; }
.social-ig:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); border-color: transparent; }
.social-tt:hover { background: #000; border-color: #000; box-shadow: -2px -2px 0 #25F4EE, 2px 2px 0 #FE2C55; }
/* Contas ainda por confirmar: visíveis mas sem ligação */
.social.is-pending { opacity: .45; cursor: help; }

/* Texto do hero um pouco mais acima */
.hero-content { padding-bottom: clamp(56px, 14svh, 150px); }
@media (max-width: 859px) {
  .hero-content { padding-bottom: clamp(36px, 9svh, 84px); }
}
@media (max-width: 859px) and (max-height: 700px) {
  .hero-content { padding-bottom: clamp(24px, 6svh, 44px); }
}
