/* =========================================================================
   Escola Profissional do Ave — sistema visual (estilo Apple)
   Um só ficheiro: tokens → base → navegação → secções → páginas.
   Para mudar cores/tamanhos mexe só nos tokens em :root.
   ========================================================================= */
/* Letra Inter alojada no próprio site (sem pedidos ao Google). Licença: assets/fonts/LICENSE-Inter.txt */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Fundos */
  --apple-bg-white: #FFFFFF;
  --apple-bg-light-gray: #F5F5F7;
  --apple-bg-elevated: #FBFBFD;
  --apple-bg-dark: #1D1D1F;
  --apple-bg-black: #000000;

  /* Texto */
  --apple-text-primary: #1D1D1F;
  --apple-text-secondary: #6E6E73;
  --apple-text-tertiary: #86868B;
  --apple-text-on-dark: #F5F5F7;

  /* Marca EP Ave (vermelho do logótipo) + links */
  --brand: #AC1516;        /* vermelho do logótipo Cenatex (23/11/2026) */
  --brand-hover: #C41E1F;
  --apple-link-blue: #0066CC;
  --apple-link-on-dark: #2997FF;
  --hairline: rgba(0, 0, 0, .1);

  /* Cores dos cursos (tiradas dos folhetos oficiais) */
  --c-moda: #E8705A;
  --c-textil: #EE8F1C;
  --c-interiores: #43A33A;
  --c-coordmoda: #A9719F;
  --c-eletronica: #2F6DB5;
  --c-eletricas: #E3A400;
  --c-aeronaves: #6F8494;
  --c-aeroestruturas: #8C8A66;

  /* Espaçamento */
  --apple-section-gap: clamp(80px, 11vw, 120px);
  --apple-component-gap-sm: 16px;
  --apple-component-gap-md: 32px;
  --apple-component-gap-lg: 48px;
  --apple-card-padding: clamp(24px, 3vw, 40px);
  --apple-content-max-width: 980px;
  --apple-content-max-width-lg: 1200px;
  --gutter: 22px;

  /* Tipografia */
  --apple-font-display: "SF Pro Display", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --apple-font-text: "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --apple-weight-title: 600;
  --apple-weight-title-bold: 700;
  --apple-weight-body: 400;
  --apple-weight-body-medium: 500;
  --apple-tracking-en-title: -0.015em;
  --apple-tracking-en-title-tight: -0.025em;
  --apple-leading-title: 1.07;
  --apple-leading-body: 1.53;
  --fs-hero: clamp(48px, 8vw, 96px);
  --fs-h1: clamp(40px, 6vw, 80px);
  --fs-h2: clamp(32px, 4.6vw, 56px);
  --fs-h3: clamp(24px, 2.4vw, 32px);
  --fs-lead: clamp(19px, 1.7vw, 24px);
  --fs-body: 17px;
  --fs-small: 14px;
  --fs-eyebrow: clamp(17px, 1.6vw, 21px);

  /* Raios e sombras */
  --apple-radius-card: 18px;
  --apple-radius-card-lg: 28px;
  --apple-radius-button: 980px;
  --apple-radius-badge: 8px;
  --apple-shadow-card: 0 2px 8px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .08);
  --apple-shadow-hover: 0 4px 12px rgba(0, 0, 0, .06), 0 12px 32px rgba(0, 0, 0, .12);
  --apple-shadow-modal: 0 8px 20px rgba(0, 0, 0, .08), 0 20px 60px rgba(0, 0, 0, .16);

  --ease: cubic-bezier(.28, .11, .32, 1);
  --nav-h: 56px;
  --localnav-h: 52px;

  /* Aliases usados pelo modal de pré-inscrição (modal.css) */
  --red: var(--brand);
  --red-soft: #FDECEC;
  --ink: var(--apple-text-primary);
  --ink-2: #424245;
  --muted: var(--apple-text-secondary);
  --line: #D2D2D7;
  --paper: var(--apple-bg-light-gray);
  --white: #FFFFFF;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --hero-pt: 112px;
  --header-h: 52px;
  --r-pill: 980px;
  --shadow: var(--apple-shadow-modal);
  --fs-small: 14px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + var(--localnav-h) + 8px); }
body {
  margin: 0; background: var(--apple-bg-white); color: var(--apple-text-primary);
  font-family: var(--apple-font-text); font-size: var(--fs-body); line-height: var(--apple-leading-body);
  font-weight: var(--apple-weight-body); letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--apple-link-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { overflow-wrap: break-word; margin: 0; font-family: var(--apple-font-display); font-weight: var(--apple-weight-title); line-height: var(--apple-leading-title); letter-spacing: var(--apple-tracking-en-title); }
p, ul, ol { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--apple-link-blue); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; padding: 10px 16px; background: #fff; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--apple-content-max-width); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: var(--apple-content-max-width-lg); }
.section { padding-block: var(--apple-section-gap); }
.section--gray { background: var(--apple-bg-light-gray); }
.section--dark { background: var(--apple-bg-black); color: var(--apple-text-on-dark); }
.section--dark a { color: var(--apple-link-on-dark); }
.center { text-align: center; }

/* Tipografia utilitária */
.eyebrow { display: block; font-family: var(--apple-font-display); font-size: var(--fs-eyebrow); font-weight: var(--apple-weight-title); color: var(--brand); margin-bottom: 10px; letter-spacing: -0.01em; }
.section--dark .eyebrow { color: #FF6961; }
.headline { font-size: var(--fs-h2); font-weight: var(--apple-weight-title-bold); letter-spacing: var(--apple-tracking-en-title-tight); }
.headline--xl { font-size: var(--fs-h1); }
.lead { font-size: var(--fs-lead); line-height: 1.4; color: var(--apple-text-secondary); font-weight: var(--apple-weight-body); letter-spacing: -0.01em; }
.section--dark .lead { color: #A1A1A6; }
.center .lead { margin-inline: auto; max-width: 720px; }
.headline + .lead { margin-top: 20px; }
.muted { color: var(--apple-text-secondary); }
.gradient-text { background: linear-gradient(90deg, #E8705A, #AC1516 45%, #2F6DB5); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Botões e links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 11px 22px; border-radius: var(--apple-radius-button);
  font-size: var(--fs-body); font-weight: var(--apple-weight-body); line-height: 1; border: 0; cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--ease), color .2s;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-hover); }
.btn--secondary { background: transparent; color: var(--apple-link-blue); box-shadow: inset 0 0 0 1px currentColor; }
.btn--secondary:hover { background: var(--apple-link-blue); color: #fff; }
.section--dark .btn--secondary { color: var(--apple-link-on-dark); }
.section--dark .btn--secondary:hover { background: var(--apple-link-on-dark); color: #000; }
.btn--ghost { background: rgba(0, 0, 0, .06); color: var(--apple-text-primary); }
.btn--ghost:hover { background: rgba(0, 0, 0, .1); }
.btn--sm { min-height: 28px; padding: 6px 14px; font-size: 13px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; margin-top: 32px; }
.center .btn-row { justify-content: center; }
.link-more { font-size: var(--fs-body); white-space: nowrap; }
.link-more::after { content: " ›"; }
.accent { color: var(--brand); }

/* ---------- Navegação global ---------- */
.site-header { position: sticky; top: 0; z-index: 100; }
.globalnav {
  height: var(--nav-h); background: rgba(251, 251, 253, .8);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline); position: relative; z-index: 2;
}
.globalnav__inner { height: 100%; display: flex; align-items: center; gap: 24px; max-width: 1024px; margin-inline: auto; padding-inline: var(--gutter); }
.logo { display: flex; align-items: center; flex: none; }
.logo:hover { text-decoration: none; }
.logo img { display: block; height: 38px; width: auto; }
@media (min-width: 834px) { .logo img { height: 44px; } }
/* Cenatex + Escola Profissional do Ave, separados por uma linha fina */
.logo { gap: 12px; }
.logo .logo__cenatex { height: 32px; }
.logo__sep { width: 1px; height: 28px; background: rgba(0, 0, 0, .18); }
@media (min-width: 834px) { .logo .logo__cenatex { height: 36px; } }
.globalnav__list { display: none; flex: 1; justify-content: center; gap: 4px; }
.globalnav__link {
  display: flex; align-items: center; height: var(--nav-h); padding: 0 12px; font-size: 12.5px; color: rgba(0, 0, 0, .8);
  background: none; border: 0; cursor: pointer; letter-spacing: -0.01em; transition: color .2s;
}
.globalnav__link:hover, .globalnav__link[aria-current="page"] { color: #000; text-decoration: none; }
.globalnav__link[aria-current="page"] { font-weight: 600; }
.globalnav__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* Flyout de subsecções (desktop) */
.flyout {
  position: absolute; left: 0; right: 0; top: var(--nav-h); z-index: 1;
  background: rgba(251, 251, 253, .97); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility 0s linear .28s;
}
.globalnav__item.is-open .flyout { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.flyout__inner { max-width: 1024px; margin-inline: auto; padding: 36px var(--gutter) 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; } /* 4 colunas cabem a partir de ~760 px (menu de desktop só aparece a partir de 834 px) */
.flyout__group h3 { font-family: var(--apple-font-text); font-size: 12px; font-weight: 400; color: var(--apple-text-secondary); margin-bottom: 14px; letter-spacing: 0; }
.flyout__group li + li { margin-top: 8px; }
.flyout__group a { color: var(--apple-text-primary); font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
/* Menu: todos os títulos do mesmo tamanho (pedido da escola, 17/11); a hierarquia fica só no peso e na cor. */
.flyout__group--big a { font-size: 17px; }
.flyout__group--small a { font-size: 17px; font-weight: 400; color: var(--apple-text-secondary); }
.flyout__group--small a:hover { color: var(--apple-text-primary); }
.page-dim { position: fixed; inset: 0; background: rgba(232, 232, 237, .4); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s linear .3s; z-index: 90; }
body.flyout-open .page-dim { opacity: 1; visibility: visible; transition-delay: 0s; }

/* Botão do menu móvel */
.nav-toggle { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; margin-right: -12px; }
.nav-toggle__bars { display: block; width: 17px; }
.nav-toggle__bars span { display: block; width: 17px; height: 1.5px; border-radius: 1px; background: var(--apple-text-primary); transition: transform .3s var(--ease); }
.nav-toggle__bars span + span { margin-top: 5px; }
body.nav-open .nav-toggle__bars span:first-child { transform: translateY(3.25px) rotate(45deg); }
body.nav-open .nav-toggle__bars span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* Menu móvel */
.mobile-menu { position: fixed; inset: var(--nav-h) 0 0 0; background: var(--apple-bg-elevated); overflow-y: auto; padding: 16px var(--gutter) 48px; opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s linear .3s; z-index: 1; }
body.nav-open .mobile-menu { opacity: 1; visibility: visible; transition-delay: 0s; }
body.nav-open { overflow: hidden; }
.mobile-menu details { border-bottom: 1px solid var(--hairline); }
.mobile-menu summary, .mobile-menu__link { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font-family: var(--apple-font-display); font-size: 28px; font-weight: 600; letter-spacing: -0.02em; color: var(--apple-text-primary); list-style: none; cursor: pointer; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary::after { content: "›"; font-weight: 400; transition: transform .25s var(--ease); color: var(--apple-text-tertiary); }
.mobile-menu details[open] summary::after { transform: rotate(90deg); }
.mobile-menu__sub { padding: 0 0 18px 2px; }
.mobile-menu__sub a { display: block; padding: 7px 0; color: var(--apple-text-secondary); font-size: 17px; }
.mobile-menu__link { border-bottom: 1px solid var(--hairline); }
.mobile-menu__link:hover { text-decoration: none; }
.mobile-menu .btn { width: 100%; margin-top: 28px; }

@media (min-width: 834px) {
  :root { --nav-h: 64px; }
  .globalnav__list { display: flex; }
  .nav-toggle, .mobile-menu { display: none; }
}
@media (max-width: 833px) { .globalnav__actions .btn { display: none; } }

/* ---------- Navegação local (subsecções da página) ---------- */
.localnav {
  position: sticky; top: var(--nav-h); z-index: 80; height: var(--localnav-h);
  background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}
.localnav__inner { height: 100%; display: flex; align-items: center; gap: 20px; max-width: 1024px; margin-inline: auto; padding-inline: var(--gutter); }
.localnav__title { font-family: var(--apple-font-display); font-size: 21px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; color: inherit; }
.localnav__title:hover { text-decoration: none; }
.localnav__links { display: flex; gap: 22px; margin-left: auto; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 24px), transparent); padding-inline: 12px; }
.localnav__links::-webkit-scrollbar { display: none; }
.localnav__links a { font-size: 12px; color: var(--apple-text-primary); opacity: .75; white-space: nowrap; padding-block: 6px; position: relative; }
.localnav__links a:hover { opacity: 1; text-decoration: none; }
.localnav__links a.is-active { opacity: 1; }
.localnav__links a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; }
.localnav .btn { flex: none; }
@media (max-width: 733px) { .localnav__title { font-size: 17px; } .localnav .btn { display: none; } }

/* ---------- Hero ---------- */
/* Vídeo de apresentação na página inicial (até o filme da escola existir, mostra só o poster) */
.vhero { position: relative; display: grid; align-items: end; min-height: clamp(540px, 88vh, 880px); overflow: hidden; background: #0b0b0d; color: #fff; }
.vhero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vhero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 11, 13, .7), rgba(11, 11, 13, .25) 60%, rgba(11, 11, 13, 0)), linear-gradient(to bottom, rgba(11, 11, 13, .42), rgba(11, 11, 13, .1) 40%, rgba(11, 11, 13, .78)); }
.vhero__slides { position: absolute; inset: 0; overflow: hidden; }
.vhero__slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--p, 50% 50%); opacity: 0; transform-origin: var(--o, 50% 50%); animation: vhero-slide 24s linear infinite both; animation-delay: calc(var(--i) * 6s - 1.5s); }
.vhero__slides img:first-child { opacity: 1; }
@keyframes vhero-slide {
  0% { opacity: 0; transform: scale(1.02); }
  6.25% { opacity: 1; }
  25% { opacity: 1; }
  31.25% { opacity: 0; transform: scale(1.1); }
  100% { opacity: 0; transform: scale(1.1); }
}
@media (prefers-reduced-motion: reduce) { .vhero__slides img { animation: none; } }
.vhero__content { position: relative; width: 100%; padding-top: 110px; padding-bottom: clamp(44px, 9vh, 92px); }
/* Etiqueta do topo: sem a bolinha vermelha, alinhada com o título (pedido de 18/11/2026). */
.vhero__badge[hidden] { display: none; }
.vhero__badge { display: block; font-size: 14px; font-weight: 600; margin-bottom: 18px; color: #fff; }
.vhero__title { font-size: var(--fs-hero); font-weight: var(--apple-weight-title-bold); letter-spacing: -0.035em; line-height: 1.02; }
.vhero__lead { margin-top: 22px; max-width: 620px; font-size: var(--fs-lead); line-height: 1.45; color: rgba(255, 255, 255, .85); }
.vhero .btn-row { margin-top: 30px; }
.vhero .btn--secondary { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); }
.vhero .btn--secondary:hover { background: #fff; color: #1D1D1F; }

/* Hero de página interior */
.page-hero { padding: clamp(64px, 10vw, 120px) 0 clamp(48px, 7vw, 80px); text-align: center; }
.page-hero__title { font-size: var(--fs-h1); font-weight: var(--apple-weight-title-bold); letter-spacing: -0.03em; }
.page-hero .lead { margin: 22px auto 0; max-width: 700px; }

/* ---------- Faixa de números ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 24px; text-align: center; }
.stat__num { white-space: nowrap; font-family: var(--apple-font-display); font-size: clamp(40px, 5.4vw, 64px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.stat__label { margin-top: 10px; color: var(--apple-text-secondary); font-size: var(--fs-small); max-width: 22ch; margin-inline: auto; }
.section--dark .stat__label { color: #A1A1A6; }
@media (min-width: 734px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Grelha de cursos ---------- */
.area-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 36px 0 40px; }
.area-tab { border: 0; background: rgba(0, 0, 0, .05); color: var(--apple-text-primary); padding: 9px 18px; border-radius: var(--apple-radius-button); font-size: 14px; cursor: pointer; transition: background .2s, color .2s; }
.area-tab:hover { background: rgba(0, 0, 0, .09); }
.area-tab[aria-pressed="true"] { background: var(--apple-text-primary); color: #fff; }

.course-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 734px) { .course-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1068px) { .course-grid { grid-template-columns: repeat(4, 1fr); } }
/* Banners dos cursos (fotografias enviadas pela escola) */
.banner-grid { display: grid; gap: 16px; margin-top: 56px; grid-template-columns: 1fr; text-align: left; }
@media (min-width: 734px) { .banner-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } .course-banner--wide { grid-column: 1 / -1; } }
.course-banner { position: relative; display: flex; align-items: flex-end; aspect-ratio: 4 / 3; border-radius: var(--apple-radius-card-lg); overflow: hidden; color: #fff; isolation: isolate; box-shadow: var(--apple-shadow-card); }
@media (min-width: 734px) { .course-banner { aspect-ratio: 16 / 10; } .course-banner--wide { aspect-ratio: 21 / 9; } }
.course-banner[hidden] { display: none; }
.course-banner:hover { text-decoration: none; }
.course-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.course-banner:hover > img, .course-banner:focus-visible > img { transform: scale(1.05); }
.course-banner__veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .84), rgba(0, 0, 0, .42) 46%, rgba(0, 0, 0, .06) 78%); }
.course-banner__text { text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.course-banner__text { position: relative; display: grid; gap: 3px; padding: clamp(18px, 3vw, 30px); }
.course-banner__area { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.course-banner__area::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--brand)); }
.course-banner__name { font-family: var(--apple-font-display); font-size: clamp(22px, 2.6vw, 33px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; }
.course-banner__tag { font-size: 15px; color: rgba(255, 255, 255, .82); }
.course-banner__cta { margin-top: 10px; font-size: 15px; font-weight: 600; }
.course-banner__cta::after { content: " →"; }
.course-banner:hover .course-banner__cta { text-decoration: underline; }

/* ---------- Cartões de features ---------- */
.feature-grid { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 56px; }
@media (min-width: 734px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1068px) { .feature-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.feature-card { background: var(--apple-bg-white); border-radius: var(--apple-radius-card-lg); padding: var(--apple-card-padding); box-shadow: var(--apple-shadow-card); }
.section--gray .feature-card { box-shadow: none; }
.section--dark .feature-card { background: #1D1D1F; box-shadow: none; }
.feature-card--wide { grid-column: 1 / -1; }
.feature-card__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(172, 21, 22, .1); color: var(--brand); margin-bottom: 22px; }
.feature-card__icon svg { width: 22px; height: 22px; }
.feature-card .feature-card__big { font-family: var(--apple-font-display); font-size: clamp(40px, 5vw, 56px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin: 0 0 14px; color: var(--apple-text-primary); }
.feature-card .feature-card__big.accent { color: var(--brand); }
.section--dark .feature-card .feature-card__big { color: #F5F5F7; }
.feature-card h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.feature-card p { margin-top: 10px; color: var(--apple-text-secondary); font-size: 16px; }
.section--dark .feature-card p { color: #A1A1A6; }

/* ---------- Divisão texto + texto (subsecções) ---------- */
.split { display: grid; gap: 32px 64px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; } }
.split__body p + p { margin-top: 18px; }
.split__body p { color: var(--apple-text-secondary); font-size: 19px; line-height: 1.5; }
.split__body p strong { color: var(--apple-text-primary); font-weight: 600; }
.section--dark .split__body p { color: #A1A1A6; }
.section--dark .split__body p strong { color: #fff; }

/* Lista com marcador */
.ticks li { position: relative; padding: 13px 0 13px 32px; border-bottom: 1px solid var(--hairline); font-size: 17px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 17px; width: 20px; height: 20px; border-radius: 50%; background: var(--c, var(--brand)); opacity: .14; }
.ticks li::after { content: ""; position: absolute; left: 7px; top: 21px; width: 6px; height: 10px; border: solid var(--c, var(--brand)); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Linha do tempo */
.timeline { margin-top: 48px; }
.timeline__item { display: grid; grid-template-columns: 96px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--hairline); }
.timeline__year { font-family: var(--apple-font-display); font-weight: 600; color: var(--apple-text-secondary); font-size: 15px; padding-top: 3px; }
.timeline__item h3 { font-size: 21px; }
.timeline__item p { margin-top: 6px; color: var(--apple-text-secondary); font-size: 16px; }
.section--dark .timeline__item { border-color: rgba(255, 255, 255, .14); }
.section--dark .timeline__item p, .section--dark .timeline__year { color: #A1A1A6; }

/* Citações */
.quotes { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 56px; }
@media (min-width: 734px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { margin: 0; background: var(--apple-bg-white); border-radius: var(--apple-radius-card-lg); padding: var(--apple-card-padding); display: flex; flex-direction: column; gap: 22px; }
.quote blockquote { margin: 0; font-family: var(--apple-font-display); font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.quote figcaption { margin-top: auto; font-size: 14px; color: var(--apple-text-secondary); }
.quote figcaption strong { display: block; color: var(--apple-text-primary); font-weight: 600; }

/* Nuvem de nomes (parcerias) */
.partner-groups { display: grid; gap: 40px; margin-top: 56px; }
@media (min-width: 900px) { .partner-groups { grid-template-columns: 1fr 1fr; } }
.partner-groups h3 { font-size: 21px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips li { padding: 7px 14px; border-radius: var(--apple-radius-button); background: var(--apple-bg-light-gray); font-size: 14px; }
.section--gray .chips li { background: var(--apple-bg-white); }

/* Documentos */
.doc-list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--hairline); color: var(--apple-text-primary); font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.doc-list a::after { content: "↗"; color: var(--apple-link-blue); font-weight: 400; }
.doc-list a:hover { text-decoration: none; color: var(--apple-link-blue); }
.doc-list li > a::after { content: "→"; }
.doc-list li:has(> span) { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding: 20px 0; border-bottom: 1px solid var(--hairline); font-size: 19px; font-weight: 600; letter-spacing: -0.02em; color: var(--apple-text-secondary); }
.doc-list li em { font-style: normal; font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--apple-text-secondary); }

/* Financiamento: fichas das operações */
.fund-grid { display: grid; gap: 20px; margin-top: 56px; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .fund-grid { grid-template-columns: 1fr 1fr; } }
.fund-card { display: flex; flex-direction: column; background: #1D1D1F; border-radius: var(--apple-radius-card-lg); padding: var(--apple-card-padding); min-width: 0; }
.fund-card__prog { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: #A1A1A6; }
.fund-card h3 { margin-top: 10px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; color: #F5F5F7; }
.fund-card dl { margin-left: 0; margin-right: 0; margin-bottom: 0; }
.fund-card dt { font-size: 13px; color: #86868B; }
.fund-card dd { margin: 4px 0 0; }
.fund-card__meta { display: grid; gap: 14px; margin-top: 24px; }
.fund-card__meta dd { font-size: 16px; color: #F5F5F7; line-height: 1.4; }
.fund-card__text { margin-top: 20px; font-size: 15px; line-height: 1.6; color: #A1A1A6; }
/* Valores em linhas (descrição à esquerda, montante à direita): nunca se sobrepõem, em nenhuma largura */
.fund-card__nums { display: grid; gap: 0; margin-top: auto; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .14); }
.fund-card__text + .fund-card__nums { margin-top: 28px; }
.fund-card__nums div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.fund-card__nums dt { font-size: 14px; }
.fund-card__nums dd { margin: 0; margin-left: auto; font-family: var(--apple-font-display); font-size: clamp(19px, 2vw, 24px); font-weight: 600; letter-spacing: -0.02em; color: #F5F5F7; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fund-card__nums div:last-child dd { color: #FF6961; }
.fund-card__code { margin-top: 20px; font-size: 13px; color: #86868B; }
.fund-card__code span { display: block; margin-top: 2px; font-size: 15px; color: #F5F5F7; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
/* Barra oficial de logótipos (feita para fundo branco): cartão branco logo a seguir ao título */
.fund-logos { margin: 48px 0 0; padding: clamp(6px, 1.5vw, 14px) clamp(12px, 4vw, 48px); border-radius: var(--apple-radius-card-lg); background: #fff; overflow: hidden; }
.fund-logos img { display: block; width: 100%; height: auto; }
.fund-logos + .fund-grid { margin-top: 20px; }

/* Destinos */
.destinations { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 48px; }
@media (min-width: 734px) { .destinations { grid-template-columns: repeat(5, 1fr); } }
.destination { padding: 26px 20px; border-radius: var(--apple-radius-card); background: #1D1D1F; }
.destination__country { font-size: 13px; color: #A1A1A6; }
.destination__city { font-family: var(--apple-font-display); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin-top: 4px; }

/* CTA final */
.cta-final { text-align: center; }
.cta-final .btn-row { justify-content: center; }
.cta-final .headline { font-size: var(--fs-h1); }

/* ---------- Página de cursos: secção pegajosa com o 3D ---------- */
.course { position: relative; --c: var(--brand); }
.course + .course { border-top: 1px solid var(--hairline); }
.course__intro { padding: var(--apple-section-gap) var(--gutter) 24px; text-align: center; }
.course__area { font-family: var(--apple-font-display); font-size: var(--fs-eyebrow); font-weight: 600; color: var(--c); }
.course__title { margin-top: 10px; font-size: var(--fs-h1); font-weight: 700; letter-spacing: -0.035em; }
.course__tagline { margin: 18px auto 0; max-width: 680px; }
.course__pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
a.pill { color: var(--apple-text-primary); text-decoration: none; }
a.pill:hover { background: #ebebef; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: var(--apple-radius-button); background: var(--apple-bg-light-gray); font-size: 14px; font-weight: 500; }
.pill strong { color: var(--c); font-weight: 700; }

.course__body { display: grid; grid-template-columns: 1fr; max-width: var(--apple-content-max-width-lg); margin-inline: auto; padding-inline: var(--gutter); }
.course__stage { position: sticky; top: calc(var(--nav-h) + var(--localnav-h)); height: 48vh; z-index: 1; pointer-events: none; }
.course__stage .model3d { position: absolute; inset: 0; }
.course__hint { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); font-size: 12px; color: var(--apple-text-tertiary); white-space: nowrap; }
.course__panels { position: relative; z-index: 2; padding-bottom: var(--apple-section-gap); }
.panel { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; }
.panel__card { background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-radius: var(--apple-radius-card-lg); padding: var(--apple-card-padding); box-shadow: var(--apple-shadow-card); }
.panel .panel__label { margin: 0; font-size: 13px; font-weight: 600; color: var(--c); text-transform: uppercase; letter-spacing: .08em; }
.panel h3 { margin-top: 8px; font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.025em; }
.panel p { margin-top: 14px; color: var(--apple-text-secondary); font-size: 18px; }
.panel .ticks { margin-top: 18px; }
.panel .btn-row { margin-top: 26px; }
.panel dl { margin: 18px 0 0; display: grid; gap: 14px; }
.panel dt { font-size: 13px; color: var(--apple-text-secondary); }
.panel dd { margin: 2px 0 0; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }

@media (min-width: 900px) {
  .course__body { grid-template-columns: 1fr 1fr; gap: 48px; }
  .course__stage { order: 2; height: calc(100vh - var(--nav-h) - var(--localnav-h)); }
  .course__panels { order: 1; }
  .panel { min-height: 92vh; }
  .panel__card { background: transparent; box-shadow: none; padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .course--flip .course__stage { order: 1; }
  .course--flip .course__panels { order: 2; }
}

/* Contentor dos modelos 3D (o canvas é único e fica por cima, ver models3d.js) */
.model3d { position: relative; }
.model3d__fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.model3d__fallback span { width: 38%; aspect-ratio: 1; border-radius: 28%; background: var(--c, #ddd); opacity: .15; }
/* O 3D aparece por cima do poster quando o primeiro desenho fica pronto; o poster sai depois */
.model3d > canvas { opacity: 0; transition: opacity .5s ease; }
.model3d.is-ready > canvas { opacity: 1; }
.model3d.is-ready .model3d__fallback { visibility: hidden; transition: visibility 0s linear .6s; }
/* Posters dos cartões (imagem estática enquanto o 3D carrega; gerados a partir do próprio 3D) */
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 50; }

/* ---------- Contactos ---------- */
.contact-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 5fr 7fr; } }
.contact-card { background: var(--apple-bg-light-gray); border-radius: var(--apple-radius-card-lg); padding: var(--apple-card-padding); }
.contact-card dl { margin: 0; display: grid; gap: 22px; }
.contact-card dt { font-size: 13px; color: var(--apple-text-secondary); }
.contact-card dd { margin: 4px 0 0; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.contact-card dd a { color: var(--apple-text-primary); }
.contact-card dd small { display: block; font-size: 13px; font-weight: 400; color: var(--apple-text-secondary); letter-spacing: 0; }
.map { border-radius: var(--apple-radius-card-lg); overflow: hidden; min-height: 380px; background: var(--apple-bg-light-gray); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

.form { display: grid; gap: 16px; }
.form__row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 734px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: 13px; color: var(--apple-text-secondary); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid #D2D2D7; background: #fff; font-size: 17px; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--apple-link-blue); box-shadow: 0 0 0 4px rgba(0, 102, 204, .15); }
.field__error { min-height: 1em; font-size: 13px; color: var(--brand); margin-top: 4px; }
.form__status { font-size: 15px; color: var(--apple-text-secondary); }
.form__check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--apple-text-secondary); }
.form__check input { margin-top: 3px; accent-color: var(--brand); width: 18px; height: 18px; flex: none; }
.hp { position: absolute; left: -9999px; }

/* Texto longo (privacidade) */
.prose { max-width: 720px; margin-inline: auto; }
.prose h2 { font-size: 28px; margin: 48px 0 12px; }
.prose p, .prose li { color: var(--apple-text-secondary); font-size: 17px; }
.prose p + p { margin-top: 14px; }
.prose ul { list-style: disc; padding-left: 22px; margin-top: 10px; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--apple-bg-light-gray); color: var(--apple-text-secondary); font-size: 12px; line-height: 1.4; padding: 40px 0 28px; }
.site-footer a { color: var(--apple-text-secondary); }
.site-footer a:hover { color: var(--apple-text-primary); }
.footer__note { padding-bottom: 18px; border-bottom: 1px solid #D2D2D7; }
.footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid #D2D2D7; }
@media (min-width: 734px) { .footer__cols { grid-template-columns: repeat(4, 1fr); } }
.footer__cols h3 { font-family: var(--apple-font-text); font-size: 12px; font-weight: 600; color: var(--apple-text-primary); margin-bottom: 10px; letter-spacing: 0; }
.footer__cols li + li { margin-top: 8px; }
.footer__logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; margin: 22px 0; padding: 18px 26px; border-radius: 18px; background: #fff; }
.footer__funding { display: block; flex: 0 1 380px; }
.footer__funding img { display: block; width: 100%; height: auto; }
.footer__funding:hover { opacity: .85; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 16px; }
.footer__legal ul { display: flex; flex-wrap: wrap; gap: 6px 0; }
.footer__legal li + li::before { content: "|"; margin: 0 8px; color: #D2D2D7; }
/* Assinatura discreta da agência, no fundo de todas as páginas (23/11/2026). */
.footer__legal-end { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.footer__credit { margin-left: auto; font-size: 10px; letter-spacing: .02em; white-space: nowrap; }

/* ---------- Animações ---------- */
/* Plano B: se o site.js não correr (ficheiro antigo em cache, erro, browser sem JS), os textos aparecem
   sozinhos ao fim de 2,5 s. Quando o site.js corre, põe .reveal-on no <html> e este plano B desliga-se. */
[data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); animation: reveal-plano-b .6s var(--ease) 2.5s forwards; }
html.reveal-on [data-reveal] { animation: none; }
@keyframes reveal-plano-b { to { opacity: 1; transform: none; } }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal-delay="2"] { transition-delay: .2s; }
[data-reveal-delay="3"] { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; animation: none; }
  .btn { transition: none; }
}

/* Imagens e 3D: não se arrastam, não se selecionam e o toque prolongado não abre "Guardar imagem".
   Nas imagens decorativas o clique passa para o elemento de trás (o botão direito já não vê a imagem). */
img, picture, canvas, svg, .model3d, .model3d__fallback { -webkit-user-drag: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.vhero__media, .fund-logos img, .footer__funding img, .inst-band img, .footer__inst img, .course-banner > img, .model3d > canvas { pointer-events: none; }

/* Mapa antes do clique: morada + botão (a Google só carrega depois) */
.map--off { display: grid; place-items: center; text-align: center; padding: 32px 24px; background: radial-gradient(circle at 50% 38%, #fff 0, var(--apple-bg-light-gray) 70%); }
.map__cover { max-width: 360px; }
.map__pin { position: relative; width: 40px; height: 40px; margin: 0 auto 16px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--brand); }
.map__pin::after { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: #fff; }
.map__addr { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.map__load { margin-top: 18px; }
.map__note { margin-top: 16px; font-size: 13px; line-height: 1.5; color: var(--apple-text-secondary); }

/* ===================== Conteúdos novos (documento da escola, nov 2026) ===================== */
.lead--spaced { margin-top: 20px; }
.ticks--compact li { padding: 9px 0 9px 30px; font-size: 15px; line-height: 1.45; }
.ticks--compact li::before { top: 11px; width: 18px; height: 18px; }
.ticks--compact li::after { left: 6px; top: 14px; width: 5px; height: 9px; }
.ticks--dark li { border-color: rgba(255, 255, 255, .12); color: #D2D2D7; }

/* Documentos: subtítulo da ligação (tamanho, páginas) */
.doc-list a { flex-wrap: wrap; }
.doc-list a small { order: 3; flex-basis: 100%; margin-top: 3px; font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--apple-text-secondary); }
.doc-list--compact a, .doc-list--compact li:has(> span) { padding: 14px 0; font-size: 17px; }
.split > div > .doc-list--compact { margin-top: 24px; }

/* Cursos: requisitos e o que oferecem */
.req-grid { display: grid; gap: 16px; }
@media (min-width: 734px) { .req-grid { grid-template-columns: 1fr 1fr; } }
.req-card { background: var(--apple-bg-white); border-radius: var(--apple-radius-card-lg); padding: var(--apple-card-padding); }
.req-card h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }

/* Calendário escolar */
.cal { display: grid; gap: 16px; }
.cal__block { background: var(--apple-bg-white); border-radius: var(--apple-radius-card-lg); padding: clamp(20px, 3vw, 32px); }
.cal__block h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.cal__rows { margin: 0; }
.cal__rows > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.cal__rows > div:last-child { border-bottom: 0; }
.cal__rows dt { font-size: 15px; color: var(--apple-text-secondary); }
.cal__rows dd { margin: 0; font-size: 17px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.cal__rows dd small { display: block; font-size: 13px; font-weight: 400; color: var(--apple-text-secondary); }

/* EMAEI */
.table-title { font-size: 15px; font-weight: 600; color: var(--apple-text-secondary); margin-bottom: 10px; }
.team-list { margin: 0; }
.team-list > div { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
@media (min-width: 734px) { .team-list > div { grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: baseline; } }
.team-list dt { font-size: 15px; color: var(--apple-text-secondary); }
.team-list dd { margin: 0; font-size: 17px; font-weight: 600; }

/* Qualidade: selo e anos letivos */
.seal { margin: 28px 0 0; display: inline-block; padding: 12px 16px; border-radius: 14px; background: #fff; }
.seal img { display: block; width: 220px; height: auto; }
.year { border-bottom: 1px solid var(--hairline); }
.year > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 20px 0; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.year > summary::-webkit-details-marker { display: none; }
.year > summary::after { content: "+"; font-weight: 400; font-size: 26px; color: var(--apple-link-blue); transition: transform .3s var(--ease); }
.year[open] > summary::after { transform: rotate(45deg); }
.year .doc-list { padding-bottom: 12px; }

/* A Escola: atalhos para as páginas de documentos */
.link-grid { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 734px) { .link-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1068px) { .link-grid { grid-template-columns: repeat(4, 1fr); } }
.link-card { display: flex; flex-direction: column; gap: 8px; padding: var(--apple-card-padding); border-radius: var(--apple-radius-card-lg); background: var(--apple-bg-white); color: var(--apple-text-primary); box-shadow: var(--apple-shadow-card); transition: transform .4s var(--ease); }
.link-card:hover { text-decoration: none; transform: translateY(-4px); }
.link-card__eyebrow { font-size: 13px; font-weight: 600; color: var(--brand); }
.link-card h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.link-card p:last-child { color: var(--apple-text-secondary); font-size: 15px; }
.link-card::after { content: "→"; margin-top: auto; padding-top: 8px; color: var(--apple-link-blue); font-size: 19px; }

/* Financiamento: fichas por ano letivo */
.fund-logos--hero { margin-top: clamp(32px, 5vw, 56px); }
.fund-strategic { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 28px auto 0; max-width: 560px; text-align: left; }
.fund-strategic img { flex: none; width: 112px; height: auto; }
.fund-strategic p { margin: 0; }
@media (max-width: 733px) { .fund-strategic { flex-direction: column; text-align: center; gap: 12px; } .fund-strategic img { width: 104px; } }
.fund-list { display: grid; gap: 20px; margin-top: 56px; }
.fund-card--wide { display: grid; gap: 28px; }
@media (min-width: 900px) { .fund-card--wide { grid-template-columns: 1.5fr 1fr; align-items: start; gap: 48px; } .fund-card--wide .fund-card__nums { margin-top: 0; } }
.fund-card__label { margin-top: 22px; font-size: 13px; font-weight: 600; color: #86868B; }
.fund-card__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.doc-pill { display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 18px; border-radius: 980px; background: rgba(255, 255, 255, .1); color: #F5F5F7; font-size: 15px; font-weight: 600; }
.doc-pill small { font-size: 12px; font-weight: 400; color: #A1A1A6; }
.doc-pill:hover { text-decoration: none; background: rgba(255, 255, 255, .18); }
.section--dark .doc-pill { color: #F5F5F7; }
.fund-card--light { background: var(--apple-bg-light-gray); }
.fund-card--light h3, .fund-card--light .fund-card__meta dd, .fund-card--light .fund-card__nums dd, .fund-card--light .fund-card__code span { color: var(--apple-text-primary); }
.fund-card--light .fund-card__text { color: var(--apple-text-secondary); }
.fund-card--light .fund-card__nums, .fund-card--light .fund-card__nums div { border-color: var(--hairline); }
.fund-card--light .fund-card__nums div:last-child dd { color: var(--brand); }
.fund-card--light .doc-pill { background: var(--apple-bg-white); color: var(--apple-text-primary); box-shadow: 0 0 0 1px var(--hairline); }
.fund-card--light .doc-pill small { color: var(--apple-text-secondary); }

/* Separadores (Formação de Adultos) */
.tabs { margin-top: 40px; }
.tabs__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; width: fit-content; max-width: 100%; margin: 0 auto; padding: 4px; border-radius: 24px; background: var(--apple-bg-light-gray); }
.tabs__list [role="tab"] { padding: 10px 20px; border: 0; border-radius: 980px; background: transparent; font: inherit; font-size: 15px; font-weight: 600; color: var(--apple-text-secondary); cursor: pointer; }
.tabs__list [role="tab"][aria-selected="true"] { background: var(--apple-bg-white); color: var(--apple-text-primary); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.tabs__list [role="tab"]:focus-visible { outline: 2px solid var(--apple-link-blue); outline-offset: 2px; }
.tabs__panel { margin-top: 28px; }
.tabs--main > .tabs__list { position: sticky; top: calc(var(--nav-h) + var(--localnav-h) + 12px); z-index: 5; box-shadow: 0 6px 24px rgba(0, 0, 0, .10); }
.tabs--main > .tabs__list [role="tab"] { padding: 12px 26px; font-size: 17px; }
.tabs--main > .tabs__panel { margin-top: clamp(32px, 5vw, 56px); }
.tabs--inner { margin-top: 28px; }
/* Links do menu para um ano (#cp-2025-2026) ou para os separadores de dentro: parar abaixo da barra de separadores fixa
   e mostrar logo o cartão (sem a animação de entrada, que o deixava 32 px mais acima). */
.tabs--main .fund-card[id], .tabs--main .tabs--inner { scroll-margin-top: 96px; }
.tabs--main .fund-card[data-reveal]:target { opacity: 1; transform: none; transition: none; animation: none; }
.headline--sub { font-size: clamp(26px, 3.4vw, 40px); }
@media (max-width: 733px) { .tabs--main > .tabs__list { display: grid; grid-template-columns: 1fr 1fr; width: 100%; } .tabs--main > .tabs__list [role="tab"] { padding: 12px 10px; font-size: 15px; } .tabs--inner > .tabs__list { display: grid; grid-template-columns: 1fr 1fr; width: 100%; } .tabs--inner > .tabs__list [role="tab"] { font-size: 14px; padding: 10px 8px; } }
.fund-card--light .video__play { background: var(--apple-bg-white); color: var(--apple-text-primary); box-shadow: 0 0 0 1px var(--hairline); }
.fund-card--light .video__play:hover { background: var(--apple-bg-white); box-shadow: 0 0 0 1px var(--apple-text-secondary); }
.fund-card--light .fund-card__prog { color: var(--apple-text-secondary); }

/* Vídeos: YouTube só depois do clique; vídeo próprio sem botão de descarregar */
.video { margin-top: 22px; }
.video__play { display: flex; align-items: center; gap: 14px; width: 100%; padding: 18px 20px; border: 0; border-radius: 18px; background: rgba(255, 255, 255, .08); color: #F5F5F7; font: inherit; font-size: 17px; font-weight: 600; text-align: left; cursor: pointer; }
.video__play:hover { background: rgba(255, 255, 255, .14); }
.video__icon { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); position: relative; }
.video__icon::after { content: ""; position: absolute; left: 17px; top: 13px; border-style: solid; border-width: 9px 0 9px 14px; border-color: transparent transparent transparent #fff; }
.video__note { margin-top: 8px; font-size: 12px; color: #86868B; }
.video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 18px; background: #000; }
.video-local { margin: 24px 0 0; }
.video-local video { display: block; width: 100%; height: auto; border-radius: 18px; background: #000; }
.video-local figcaption { margin-top: 8px; font-size: 13px; color: var(--apple-text-secondary); }

/* Erasmus+: edições */
.editions { display: grid; gap: 12px; max-width: 860px; margin: 48px auto 0; }
.edition { border-radius: var(--apple-radius-card); background: var(--apple-bg-white); }
.edition > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 18px; padding: 20px 24px; }
.edition > summary::-webkit-details-marker { display: none; }
.edition > summary::after { content: "+"; margin-left: auto; font-size: 24px; color: var(--apple-link-blue); transition: transform .3s var(--ease); }
.edition[open] > summary::after { transform: rotate(45deg); }
.edition__year { flex: none; font-size: 15px; font-weight: 600; color: var(--brand); font-variant-numeric: tabular-nums; }
.edition__name { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.edition__body { padding: 0 24px 22px; color: var(--apple-text-secondary); font-size: 16px; line-height: 1.55; }
.edition__body p + p { margin-top: 10px; }
.edition__body .edition__label { margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--apple-text-primary); }

/* Rodapé e menu móvel */
.footer__sub { margin-top: 22px; }
.mobile-menu__link--small { font-size: 17px; color: var(--apple-text-secondary); }


/* Reconhecimento (prémios) e entidades — página inicial */
.award-grid { display: grid; gap: 16px; margin-top: 56px; grid-template-columns: 1fr; }
@media (min-width: 734px) { .award-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.award-card { display: flex; flex-direction: column; gap: 10px; padding: var(--apple-card-padding); border-radius: var(--apple-radius-card-lg); background: var(--apple-bg-light-gray); }
.award-card__visual { display: grid; place-items: center; height: 156px; margin-bottom: 14px; border-radius: 18px; background: #fff; }
.award-card__visual img { height: 64px; width: auto; }
.award-card__visual svg { width: 60px; height: 60px; }
.award-card__visual--eco { background: linear-gradient(140deg, #EAF6EE, #D4EEDD); color: #1E7A46; }
.award-card__visual--pub { background: linear-gradient(140deg, #EEF1F7, #DFE5F0); color: #283B5E; }
.award-card h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.award-card p { color: var(--apple-text-secondary); font-size: 15px; line-height: 1.5; }
.award-card .link-more { font-size: 15px; margin-top: auto; padding-top: 8px; }
.inst-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px 56px; margin-top: 32px; padding: 26px 32px; border-radius: var(--apple-radius-card-lg); background: var(--apple-bg-white); box-shadow: inset 0 0 0 1px var(--hairline); }
.inst-band img { width: auto; }
.inst-band__min { height: 50px; }
.inst-band__tex { height: 22px; }
.inst-band__fund { height: 60px; }
.inst-band__selo { height: 88px; }
@media (max-width: 733px) { .inst-band { gap: 22px 32px; padding: 22px 18px; } .inst-band__min { height: 42px; } .inst-band__tex { height: 22px; } .inst-band__fund { height: auto; width: 100%; max-width: 300px; } }
.footer__inst { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; }
.footer__inst img { width: auto; }
.footer__inst-cenatex { height: 34px; }
.footer__inst-escola { height: 34px; }
.footer__inst-min { height: 34px; }
.footer__inst-tex { height: 18px; }

/* Página de cursos: imagem de cada cena 3D enquanto carrega (e se o telemóvel não tiver WebGL ou o site abrir como ficheiro) */
.course__stage .model3d__fallback { background: center / contain no-repeat; }
.course__stage .model3d__fallback span { display: none; }
.course__stage .model3d[data-model="moda"] .model3d__fallback { background-image: url("../img/cursos3d/moda.webp"); }
.course__stage .model3d[data-model="textil"] .model3d__fallback { background-image: url("../img/cursos3d/textil.webp"); }
.course__stage .model3d[data-model="coordmoda"] .model3d__fallback { background-image: url("../img/cursos3d/coordmoda.webp"); }
.course__stage .model3d[data-model="interiores"] .model3d__fallback { background-image: url("../img/cursos3d/interiores.webp"); }
.course__stage .model3d[data-model="eletronica"] .model3d__fallback { background-image: url("../img/cursos3d/eletronica.webp"); }
.course__stage .model3d[data-model="eletricas"] .model3d__fallback { background-image: url("../img/cursos3d/eletricas.webp"); }
.course__stage .model3d[data-model="aeronaves"] .model3d__fallback { background-image: url("../img/cursos3d/aeronaves.webp"); }
.course__stage .model3d[data-model="aeroestruturas"] .model3d__fallback { background-image: url("../img/cursos3d/aeroestruturas.webp"); }

/* Asterisco e nota do subsídio (pedido da escola, 17/11) */
.ast { font-size: .45em; vertical-align: super; margin-left: .08em; line-height: 0; }
.footnote { margin-top: 20px; font-size: 13px; line-height: 1.5; color: var(--apple-text-secondary); text-align: center; }
.section--dark .footnote { color: #A1A1A6; }
.footnote--card { margin-top: 12px; text-align: left; font-size: 12px; }
.footnote--pills { margin-top: 10px; font-size: 12px; text-align: center; }

/* Aviso informativo (Erasmus+ suspenso, 17/11) */
.notice { display: flex; align-items: flex-start; gap: 12px; max-width: 620px; margin: 28px auto 0; padding: 16px 20px; border-radius: 18px; background: #FFF6E5; color: #5C3D00; font-size: 15px; line-height: 1.5; text-align: left; box-shadow: inset 0 0 0 1px #F5D9A8; }
.notice__icon { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: #B26B00; color: #fff; font-size: 13px; font-weight: 700; font-style: italic; font-family: Georgia, serif; }
.notice--dark { background: rgba(255, 196, 92, .12); color: #FFE2AE; box-shadow: inset 0 0 0 1px rgba(255, 196, 92, .35); }
.notice--dark .notice__icon { background: #FFC45C; color: #1D1D1F; }
