/*
 * satavirtual.org (2026) - folha de estilos do site publico.
 * Identidade inspirada na Azores Airlines (azul-marinho, azul, azul-ceu do passaro, amarelo de destaque, Open Sans).
 * Modo escuro pelo data-bs-theme do Bootstrap 5.3 (site.js guarda a escolha).
 */

/* ---------- Tokens ---------- */
:root {
	--sv-navy: #002857;
	--sv-ink: #001124;
	--sv-blue: #007db3;
	--sv-blue-dark: #005980;
	--sv-sky: #52c6e2;
	--sv-gold: #52c6e2; /* sem amarelo: o destaque e o azul-ceu do passaro */
	--sv-gold-dark: #2fb2d3;
	--sv-mist: #ecedf1;
	--sv-green: #2e9e6a;
	--sv-red: #cb2f26;

	--sv-radius: 16px;
	--sv-radius-sm: 10px;
	--sv-header-h: 76px;
	--sv-ease: cubic-bezier(.2, .7, .2, 1);
}

[data-bs-theme="light"] {
	--sv-bg: #ffffff;
	--sv-surface: #ffffff;
	--sv-surface-2: #f3f5f9;
	--sv-surface-3: #e8edf4;
	--sv-text: #17212f;
	--sv-heading: #002857;
	--sv-muted: #5b6778;
	--sv-border: #dde3eb;
	--sv-accent: #007db3;
	--sv-shadow: 0 1px 2px rgba(0, 40, 87, .06), 0 8px 24px rgba(0, 40, 87, .08);
	--sv-shadow-lg: 0 18px 48px rgba(0, 40, 87, .16);
	--sv-nav-solid: rgba(255, 255, 255, .96);
	--sv-nav-solid-text: #002857;

	--bs-body-bg: var(--sv-bg);
	--bs-body-color: var(--sv-text);
	--bs-secondary-color: var(--sv-muted);
	--bs-border-color: var(--sv-border);
	--bs-link-color: #007db3;
	--bs-link-color-rgb: 0, 125, 179;
	--bs-link-hover-color: #005980;
	--bs-link-hover-color-rgb: 0, 89, 128;
	--bs-primary: #007db3;
	--bs-primary-rgb: 0, 125, 179;
	--bs-tertiary-bg: var(--sv-surface-2);
}

[data-bs-theme="dark"] {
	--sv-bg: #061424;
	--sv-surface: #0c1f35;
	--sv-surface-2: #081a2d;
	--sv-surface-3: #13304f;
	--sv-text: #e3ebf4;
	--sv-heading: #ffffff;
	--sv-muted: #9db0c6;
	--sv-border: #1d3756;
	--sv-accent: #52c6e2;
	--sv-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
	--sv-shadow-lg: 0 18px 48px rgba(0, 0, 0, .45);
	--sv-nav-solid: rgba(6, 20, 36, .94);
	--sv-nav-solid-text: #ffffff;

	--bs-body-bg: var(--sv-bg);
	--bs-body-color: var(--sv-text);
	--bs-secondary-color: var(--sv-muted);
	--bs-border-color: var(--sv-border);
	--bs-link-color: #52c6e2;
	--bs-link-color-rgb: 82, 198, 226;
	--bs-link-hover-color: #8adcf0;
	--bs-link-hover-color-rgb: 138, 220, 240;
	--bs-primary: #2a9fd6;
	--bs-primary-rgb: 42, 159, 214;
	--bs-tertiary-bg: var(--sv-surface-2);
	--bs-emphasis-color: #ffffff;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--sv-header-h) + 12px); }
body {
	font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	background: var(--sv-bg);
	color: var(--sv-text);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { color: var(--sv-heading); font-weight: 700; letter-spacing: -.01em; }
a { text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; }
.text-muted, .text-secondary { color: var(--sv-muted) !important; }
.fw-light-title { font-weight: 300; }
.skip-link { position: absolute; top: 8px; left: 8px; z-index: 2000; background: var(--sv-gold); color: var(--sv-ink); padding: .5rem 1rem; border-radius: 999px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- Botoes ---------- */
.btn { font-weight: 600; letter-spacing: .01em; display: inline-flex; align-items: center; justify-content: center; }
.btn-lg { padding: .8rem 1.6rem; font-size: 1rem; }
.btn-primary {
	--bs-btn-bg: var(--sv-blue); --bs-btn-border-color: var(--sv-blue);
	--bs-btn-hover-bg: var(--sv-navy); --bs-btn-hover-border-color: var(--sv-navy);
	--bs-btn-active-bg: var(--sv-navy); --bs-btn-active-border-color: var(--sv-navy);
	--bs-btn-color: #fff; --bs-btn-hover-color: #fff;
}
[data-bs-theme="dark"] .btn-primary { --bs-btn-hover-bg: #2a9fd6; --bs-btn-hover-border-color: #2a9fd6; }
.btn-accent {
	--bs-btn-bg: var(--sv-sky); --bs-btn-border-color: var(--sv-sky); --bs-btn-color: var(--sv-navy);
	--bs-btn-hover-bg: #7fd6ea; --bs-btn-hover-border-color: #7fd6ea; --bs-btn-hover-color: var(--sv-navy);
	--bs-btn-active-bg: var(--sv-gold-dark); --bs-btn-active-border-color: var(--sv-gold-dark); --bs-btn-active-color: var(--sv-navy);
	--bs-btn-focus-shadow-rgb: 82, 198, 226;
	box-shadow: 0 6px 18px rgba(0, 40, 87, .18);
}
.btn-glass {
	--bs-btn-color: #fff; --bs-btn-border-color: rgba(255,255,255,.55); --bs-btn-bg: rgba(255,255,255,.08);
	--bs-btn-hover-color: var(--sv-navy); --bs-btn-hover-bg: #fff; --bs-btn-hover-border-color: #fff;
	--bs-btn-active-color: var(--sv-navy); --bs-btn-active-bg: #fff;
	backdrop-filter: blur(6px);
}
.btn-outline-brand {
	--bs-btn-color: var(--sv-accent); --bs-btn-border-color: var(--sv-accent);
	--bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--sv-blue); --bs-btn-hover-border-color: var(--sv-blue);
	--bs-btn-active-bg: var(--sv-blue); --bs-btn-active-color: #fff;
}
.btn-icon {
	width: 42px; height: 42px; padding: 0; border-radius: 50%;
	color: inherit; border: 1px solid transparent; font-size: 1.05rem;
}
.btn-icon:hover { background: rgba(127, 140, 160, .16); color: inherit; }
.link-arrow { font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.link-arrow i { transition: transform .2s var(--sv-ease); }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- Cabecalho ---------- */
.site-header {
	position: fixed; inset: 0 0 auto 0; z-index: 1030;
	transition: background-color .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
	color: #fff;
}
.site-header::before {
	content: ""; position: absolute; inset: 0 0 -40px 0; pointer-events: none;
	background: linear-gradient(180deg, rgba(0, 17, 36, .55), rgba(0, 17, 36, 0));
	transition: opacity .25s ease;
}
.site-header .navbar { min-height: var(--sv-header-h); padding: .5rem 0; }
.brand { display: flex; align-items: center; position: relative; z-index: 1; }
.brand-logo { height: 40px; width: auto; }
.brand-logo-solid { display: none; }
.site-header .nav-link {
	color: rgba(255, 255, 255, .92); font-weight: 600; font-size: .95rem;
	padding: .55rem .9rem !important; border-radius: 999px;
}
.site-header .nav-link:hover, .site-header .nav-link:focus-visible { color: #fff; background: rgba(255, 255, 255, .12); text-decoration: none; }
.site-header .nav-link.active { color: #fff; box-shadow: inset 0 -2px 0 var(--sv-gold); border-radius: 0; }
.site-header .dropdown-menu {
	border: 1px solid var(--sv-border); border-radius: 14px; padding: .5rem;
	box-shadow: var(--sv-shadow-lg); min-width: 15rem; margin-top: .4rem !important;
	background: var(--sv-surface);
}
.site-header .dropdown-item { border-radius: 8px; padding: .55rem .75rem; font-weight: 500; color: var(--sv-text); }
.site-header .dropdown-item i { color: var(--sv-accent); }
.site-header .dropdown-item:hover { background: var(--sv-surface-2); text-decoration: none; }
.site-header .dropdown-item.active, .site-header .dropdown-item:active { background: var(--sv-blue); color: #fff; }
.site-header .dropdown-item.active i, .site-header .dropdown-item:active i { color: #fff; }
.btn-outline-nav {
	--bs-btn-color: #fff; --bs-btn-border-color: rgba(255, 255, 255, .6);
	--bs-btn-hover-color: var(--sv-navy); --bs-btn-hover-bg: #fff; --bs-btn-hover-border-color: #fff;
	--bs-btn-active-color: var(--sv-navy); --bs-btn-active-bg: #fff;
}
.theme-toggle .icon-light { display: none; }
[data-bs-theme="dark"] .theme-toggle .icon-light { display: inline; }
[data-bs-theme="dark"] .theme-toggle .icon-dark { display: none; }

/* Barra solida depois do hero */
.site-header.is-solid {
	background: var(--sv-nav-solid); color: var(--sv-nav-solid-text);
	box-shadow: 0 1px 0 var(--sv-border), 0 6px 24px rgba(0, 17, 36, .08);
	backdrop-filter: saturate(160%) blur(12px);
}
.site-header.is-solid::before { opacity: 0; }
.site-header.is-solid .nav-link { color: var(--sv-nav-solid-text); }
.site-header.is-solid .nav-link:hover { background: var(--sv-surface-2); color: var(--sv-nav-solid-text); }
.site-header.is-solid .nav-link.active { color: var(--sv-nav-solid-text); }
.site-header.is-solid .btn-outline-nav {
	--bs-btn-color: var(--sv-nav-solid-text); --bs-btn-border-color: var(--sv-border);
	--bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--sv-blue); --bs-btn-hover-border-color: var(--sv-blue);
}
[data-bs-theme="light"] .site-header.is-solid .brand-logo-light { display: none; }
[data-bs-theme="light"] .site-header.is-solid .brand-logo-solid { display: block; }

/* Menu lateral (telemovel e tablet) */
.offcanvas-logo { height: 34px; width: auto; }
.logo-on-dark { display: none; }
[data-bs-theme="dark"] .logo-on-dark { display: block; }
[data-bs-theme="dark"] .logo-on-light { display: none; }
@media (max-width: 1199.98px) {
	.site-header .offcanvas-xl { background: var(--sv-surface); color: var(--sv-text); --bs-offcanvas-width: min(360px, 88vw); }
	.site-header .offcanvas-xl .nav-link { color: var(--sv-text); font-size: 1.05rem; border-radius: 10px; padding: .75rem 1rem !important; }
	.site-header .offcanvas-xl .nav-link:hover { background: var(--sv-surface-2); color: var(--sv-text); }
	.site-header .offcanvas-xl .nav-link.active { box-shadow: inset 3px 0 0 var(--sv-gold); border-radius: 0 10px 10px 0; color: var(--sv-heading); }
	.site-header .offcanvas-xl .dropdown-menu { box-shadow: none; border: 0; background: var(--sv-surface-2); margin: .25rem 0 .5rem !important; }
	.site-header .offcanvas-xl .nav-item { border-bottom: 1px solid var(--sv-border); }
}
@media (min-width: 1200px) {
	.site-header .offcanvas-xl { justify-content: flex-end; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; display: flex; align-items: flex-end; overflow: hidden; background: var(--sv-ink); isolation: isolate; }
.hero-full { min-height: 100vh; min-height: 100svh; }
.hero-page { min-height: 46vh; min-height: clamp(340px, 46svh, 480px); }
.hero-bg {
	position: absolute; inset: 0; z-index: -2;
	background-size: cover; background-position: center;
	transform: scale(1.06); animation: hero-zoom 18s ease-out forwards;
}
@keyframes hero-zoom { to { transform: scale(1); } }
.hero-shade {
	position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(90deg, rgba(0, 17, 36, .72) 0%, rgba(0, 17, 36, .25) 55%, rgba(0, 17, 36, 0) 100%),
		linear-gradient(180deg, rgba(0, 17, 36, .45) 0%, rgba(0, 17, 36, 0) 30%, rgba(0, 40, 87, .55) 100%);
}
.hero-inner { padding-top: calc(var(--sv-header-h) + 2rem); padding-bottom: 3.25rem; position: relative; }
.hero-full .hero-inner { padding-bottom: 7.5rem; }
.hero-kicker {
	display: inline-flex; align-items: center; gap: .5rem;
	font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	color: var(--sv-sky); margin-bottom: .85rem;
}
.hero-title { color: #fff; font-weight: 800; font-size: clamp(2rem, 4.2vw + .6rem, 4.25rem); line-height: 1.05; max-width: 16ch; margin: 0; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.hero-page .hero-title { font-size: clamp(1.9rem, 3vw + .8rem, 3.25rem); max-width: 22ch; }
.hero-title .thin { font-weight: 300; }
.hero-subtitle { font-size: clamp(1rem, .6vw + .85rem, 1.25rem); max-width: 46ch; margin: 1.1rem 0 0; color: rgba(255, 255, 255, .9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1.75rem; font-size: .9rem; color: rgba(255, 255, 255, .85); }
.hero-meta i { color: var(--sv-sky); margin-right: .4rem; }
.hero-scroll {
	position: absolute; left: 50%; bottom: 1.25rem; transform: translateX(-50%);
	width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
	color: #fff; border: 1px solid rgba(255, 255, 255, .45); animation: bob 2.4s ease-in-out infinite;
}
.hero-scroll:hover { background: rgba(255, 255, 255, .15); color: #fff; text-decoration: none; }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .7); animation: pulse 2s infinite; display: inline-block; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }

/* Breadcrumb dentro do hero das paginas */
.hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255, 255, 255, .6); --bs-breadcrumb-item-active-color: rgba(255, 255, 255, .85); margin-bottom: .75rem; font-size: .85rem; }
.hero .breadcrumb a { color: #fff; }

/* ---------- Seccoes ---------- */
.section { padding: clamp(3.5rem, 6vw, 6rem) 0; position: relative; }
.section-tight { padding: clamp(2.5rem, 4vw, 3.75rem) 0; }
.section-alt { background: var(--sv-surface-2); }
.section-navy { background: var(--sv-navy); color: #fff; }
[data-bs-theme="dark"] .section-navy { background: #0a2340; }
.section-navy h2, .section-navy h3 { color: #fff; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sv-accent); margin-bottom: .6rem; display: block; }
.section-navy .eyebrow { color: var(--sv-sky); }
.section-title { font-size: clamp(1.65rem, 1.6vw + 1rem, 2.5rem); font-weight: 800; line-height: 1.15; margin-bottom: .75rem; }
.section-title .thin { font-weight: 300; }
.section-lead { color: var(--sv-muted); font-size: 1.08rem; max-width: 62ch; }
.section-navy .section-lead { color: rgba(255, 255, 255, .78); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; margin-bottom: 2.25rem; }
.section-head > div { max-width: 720px; }

/* ---------- Cartoes ---------- */
.sv-card {
	background: var(--sv-surface); border: 1px solid var(--sv-border); border-radius: var(--sv-radius);
	box-shadow: var(--sv-shadow); color: var(--sv-text); height: 100%;
}
.sv-card-body { padding: 1.5rem; }
.sv-card-hover { transition: transform .25s var(--sv-ease), box-shadow .25s var(--sv-ease); }
.sv-card-hover:hover { transform: translateY(-4px); box-shadow: var(--sv-shadow-lg); }
.sv-card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: .35rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--sv-border); }
.card-head h3 { font-size: 1.05rem; margin: 0; }

/* Faixa de numeros (sobre o hero na home) */
.kpi-band { position: relative; z-index: 3; margin-top: -4.5rem; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--sv-surface); border-radius: var(--sv-radius); box-shadow: var(--sv-shadow-lg); border: 1px solid var(--sv-border); overflow: hidden; }
.kpi { padding: 1.6rem 1.5rem; display: flex; gap: 1rem; align-items: center; }
.kpi + .kpi { border-left: 1px solid var(--sv-border); }
.kpi-icon { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.2rem; color: var(--sv-blue); background: rgba(0, 125, 179, .1); }
[data-bs-theme="dark"] .kpi-icon { color: var(--sv-sky); background: rgba(82, 198, 226, .12); }
.kpi-value { font-size: clamp(1.6rem, 1.4vw + 1rem, 2.2rem); font-weight: 800; color: var(--sv-heading); line-height: 1; font-variant-numeric: tabular-nums; }
.kpi-label { font-size: .82rem; color: var(--sv-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-top: .3rem; }
@media (max-width: 991.98px) {
	.kpi-grid { grid-template-columns: repeat(2, 1fr); }
	.kpi:nth-child(3) { border-left: 0; }
	.kpi:nth-child(n+3) { border-top: 1px solid var(--sv-border); }
}
@media (max-width: 575.98px) {
	.kpi-band { margin-top: -3rem; }
	.kpi { padding: 1.1rem 1rem; flex-direction: column; align-items: flex-start; gap: .6rem; }
	.kpi-icon { width: 38px; height: 38px; flex-basis: 38px; font-size: 1rem; border-radius: 11px; }
}

/* Funcionalidades */
.feature { padding: 1.75rem; }
.feature-icon {
	width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.35rem; margin-bottom: 1.1rem;
	color: #fff; background: linear-gradient(135deg, var(--sv-blue), var(--sv-navy));
}
.feature h3 { font-size: 1.1rem; margin-bottom: .45rem; }
.feature p { color: var(--sv-muted); margin: 0; font-size: .95rem; }

/* Cartoes com fotografia (companhias, frota) */
.photo-card { position: relative; border-radius: var(--sv-radius); overflow: hidden; min-height: 360px; display: flex; align-items: flex-end; color: #fff; box-shadow: var(--sv-shadow); isolation: isolate; }
.photo-card .photo { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: -2; transition: transform .6s var(--sv-ease); }
.photo-card:hover .photo { transform: scale(1.05); }
.photo-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 17, 36, 0) 25%, rgba(0, 17, 36, .88) 100%); }
.photo-card-body { padding: 1.75rem; width: 100%; }
.photo-card .airline-logo { height: 34px; width: auto; margin-bottom: 1rem; }
.photo-card h3 { color: #fff; font-size: 1.4rem; margin-bottom: .4rem; }
.photo-card p { color: rgba(255, 255, 255, .85); margin-bottom: 1rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(4px); }
.chip-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip-soft { background: var(--sv-surface-2); color: var(--sv-text); border: 1px solid var(--sv-border); backdrop-filter: none; }
.chip-blue { background: rgba(0, 125, 179, .12); color: var(--sv-blue); border: 0; }
[data-bs-theme="dark"] .chip-blue { background: rgba(82, 198, 226, .14); color: var(--sv-sky); }

/* ---------- Tabelas ---------- */
.table-sv { --bs-table-bg: transparent; --bs-table-color: var(--sv-text); --bs-table-border-color: var(--sv-border); --bs-table-hover-bg: var(--sv-surface-2); --bs-table-hover-color: var(--sv-text); margin: 0; font-size: .93rem; }
.table-sv > thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--sv-muted); font-weight: 700; border-bottom-width: 1px; padding-top: .9rem; padding-bottom: .9rem; white-space: nowrap; background: var(--sv-surface-2); }
.table-sv > :not(caption) > * > * { padding: .8rem 1rem; vertical-align: middle; }
.table-sv tbody tr:last-child > * { border-bottom: 0; }
.rank-badge { width: 23px; height: 14px; border-radius: 2px; vertical-align: middle; margin-right: .5rem; }

/* Estados (quadro de voos, frota) */
.status { display: inline-flex; align-items: center; gap: .4rem; padding: .28rem .65rem; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-blue { color: #0a6fa0; background: rgba(0, 125, 179, .12); }
.status-green { color: #1d7a50; background: rgba(46, 158, 106, .14); }
.status-gold { color: #00628d; background: rgba(82, 198, 226, .2); }
.status-red { color: #b0261e; background: rgba(203, 47, 38, .12); }
.status-grey { color: var(--sv-muted); background: var(--sv-surface-3); }
[data-bs-theme="dark"] .status-blue { color: #7fd3ee; background: rgba(82, 198, 226, .14); }
[data-bs-theme="dark"] .status-green { color: #6fe0a6; background: rgba(46, 158, 106, .2); }
[data-bs-theme="dark"] .status-gold { color: #a9e6f4; background: rgba(82, 198, 226, .22); }
[data-bs-theme="dark"] .status-red { color: #ff8c84; background: rgba(203, 47, 38, .2); }

/* Quadro de partidas */
.board-flight { font-weight: 800; color: var(--sv-heading); font-variant-numeric: tabular-nums; }
.board-route { display: flex; align-items: center; gap: .65rem; }
.board-route .apt { line-height: 1.15; }
.board-route .apt strong { display: block; font-size: 1.02rem; color: var(--sv-heading); }
.board-route .apt small { color: var(--sv-muted); font-size: .76rem; max-width: 16ch; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-route .arrow { color: var(--sv-accent); font-size: .85rem; }
.board-progress { height: 4px; border-radius: 4px; background: var(--sv-surface-3); overflow: hidden; margin-top: .45rem; min-width: 90px; }
.board-progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--sv-blue), var(--sv-sky)); }
.board-empty { padding: 2.5rem 1.5rem; text-align: center; color: var(--sv-muted); }
.board-empty i { font-size: 1.8rem; color: var(--sv-accent); display: block; margin-bottom: .75rem; opacity: .8; }
.utc-clock { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--sv-heading); }

/* Listas de cartoes no telemovel (tabelas que viram cartoes) */
@media (max-width: 767.98px) {
	.table-stack thead { display: none; }
	.table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
	.table-stack tr { padding: .9rem 1rem; border-bottom: 1px solid var(--sv-border); }
	.table-stack tr:last-child { border-bottom: 0; }
	.table-stack > :not(caption) > * > * { padding: .2rem 0; border: 0; }
	.table-stack td[data-label]::before { content: attr(data-label); display: inline-block; min-width: 7.5rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sv-muted); font-weight: 700; }
	.table-stack td.stack-head { font-size: 1.02rem; padding-bottom: .4rem; }
}

/* Top 5 */
.top-list { list-style: none; margin: 0; padding: 0; }
.top-list li { display: flex; align-items: center; gap: .9rem; padding: .7rem 0; border-bottom: 1px dashed var(--sv-border); }
.top-list li:last-child { border-bottom: 0; }
.top-pos { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; background: var(--sv-surface-3); color: var(--sv-heading); }
.top-list li:first-child .top-pos { background: var(--sv-navy); color: #fff; }
[data-bs-theme="dark"] .top-list li:first-child .top-pos { background: var(--sv-sky); color: var(--sv-navy); }
.top-name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-name small { display: block; font-weight: 400; color: var(--sv-muted); font-size: .78rem; }
.top-count { font-weight: 800; color: var(--sv-accent); font-variant-numeric: tabular-nums; }

/* Mapa */
.map-frame { border-radius: var(--sv-radius); overflow: hidden; border: 1px solid var(--sv-border); box-shadow: var(--sv-shadow); background: #0b1b2b; position: relative; }
.map-frame iframe, .map-frame .leaflet-map { display: block; width: 100%; height: clamp(380px, 62vh, 640px); border: 0; }
.map-frame-cta { position: absolute; right: 1rem; top: 1rem; z-index: 500; }
.leaflet-container { font-family: inherit; }
.route-tip { font-weight: 700; }

/* Noticias */
.news-item { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--sv-border); }
.news-item:last-child { border-bottom: 0; }
.news-date { flex: 0 0 64px; text-align: center; border-radius: 12px; background: var(--sv-surface-2); padding: .45rem .25rem; line-height: 1.1; }
.news-date strong { display: block; font-size: 1.25rem; color: var(--sv-heading); }
.news-date span { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--sv-muted); font-weight: 700; }
.news-title { font-weight: 600; margin: .1rem 0 0; }

/* Faixa de chamada (recrutamento) */
.cta-band { position: relative; border-radius: calc(var(--sv-radius) + 6px); overflow: hidden; color: #fff; padding: clamp(2.25rem, 5vw, 4rem); isolation: isolate; }
.cta-band .photo { position: absolute; inset: 0; background-size: cover; background-position: center 60%; z-index: -2; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(0, 40, 87, .95) 0%, rgba(0, 40, 87, .78) 45%, rgba(0, 125, 179, .35) 100%); }
.cta-band h2 { color: #fff; font-weight: 800; font-size: clamp(1.6rem, 2vw + 1rem, 2.6rem); }
.cta-band p { color: rgba(255, 255, 255, .86); max-width: 52ch; font-size: 1.05rem; }

/* Frota */
.fleet-type { overflow: hidden; }
.fleet-photo { height: 220px; background-size: cover; background-position: center; position: relative; }
.fleet-photo .chip { position: absolute; left: 1rem; top: 1rem; background: rgba(0, 17, 36, .55); }
.fleet-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 1rem 0 1.25rem; }
.fleet-spec { background: var(--sv-surface-2); border-radius: 10px; padding: .65rem .75rem; }
.fleet-spec strong { display: block; font-size: 1.15rem; color: var(--sv-heading); font-variant-numeric: tabular-nums; }
.fleet-spec span { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sv-muted); font-weight: 700; }
.reg-list { display: flex; flex-wrap: wrap; gap: .45rem; }
.reg { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .82rem; font-weight: 600; padding: .3rem .6rem; border-radius: 8px; border: 1px solid var(--sv-border); background: var(--sv-surface); display: inline-flex; align-items: center; gap: .4rem; }
.reg .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sv-green); }
.reg .dot.mtce { background: var(--sv-red); }
.reg .dot.phase { background: #8a99ad; }
.reg .dot.flying { background: var(--sv-blue); box-shadow: 0 0 0 2px rgba(0,125,179,.25); }
.airline-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.airline-head img { height: 38px; width: auto; }
.logo-swap .on-dark { display: none; }
[data-bs-theme="dark"] .logo-swap .on-dark { display: inline-block; }
[data-bs-theme="dark"] .logo-swap .on-light { display: none; }

/* Separadores (pills) */
.nav-sv { gap: .4rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.nav-sv::-webkit-scrollbar { display: none; }
.nav-sv .nav-link { border-radius: 999px; font-weight: 600; color: var(--sv-text); border: 1px solid var(--sv-border); background: var(--sv-surface); white-space: nowrap; padding: .5rem 1.05rem; }
.nav-sv .nav-link:hover { text-decoration: none; border-color: var(--sv-accent); }
.nav-sv .nav-link.active { background: var(--sv-navy); color: #fff; border-color: var(--sv-navy); }
[data-bs-theme="dark"] .nav-sv .nav-link.active { background: var(--sv-blue); border-color: var(--sv-blue); }
.nav-sv .count { font-size: .75rem; opacity: .7; margin-left: .35rem; }

/* Formularios */
.form-control, .form-select { border-radius: 10px; border-color: var(--sv-border); background-color: var(--sv-surface); color: var(--sv-text); padding: .65rem .9rem; }
.form-control:focus, .form-select:focus { border-color: var(--sv-blue); box-shadow: 0 0 0 .2rem rgba(0, 125, 179, .2); }
.input-icon { position: relative; }
.input-icon i { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--sv-muted); pointer-events: none; }
.input-icon .form-control { padding-left: 2.5rem; }

/* Linha temporal (recrutamento) */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(4, 1fr); }
.steps li { position: relative; padding: 1.4rem 1.25rem 1.25rem; background: var(--sv-surface); border: 1px solid var(--sv-border); border-radius: var(--sv-radius); box-shadow: var(--sv-shadow); }
.steps li::before { counter-increment: step; content: counter(step); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--sv-navy); color: #fff; margin-bottom: .85rem; }
.steps h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.steps p { color: var(--sv-muted); font-size: .92rem; margin: 0; }
@media (max-width: 991.98px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .steps { grid-template-columns: 1fr; } }

.licence { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; border-radius: 12px; background: var(--sv-surface-2); }
.licence strong { min-width: 4.5rem; color: var(--sv-heading); font-size: 1.05rem; }
.licence span { color: var(--sv-muted); font-size: .9rem; }

/* Acordeao e texto longo */
.accordion { --bs-accordion-bg: var(--sv-surface); --bs-accordion-border-color: var(--sv-border); --bs-accordion-btn-color: var(--sv-heading); --bs-accordion-active-color: var(--sv-heading); --bs-accordion-active-bg: var(--sv-surface-2); --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(0, 125, 179, .2); --bs-accordion-border-radius: var(--sv-radius); --bs-accordion-inner-border-radius: calc(var(--sv-radius) - 1px); }
.accordion-button { font-weight: 700; padding: 1.1rem 1.35rem; }
.accordion-body { color: var(--sv-text); line-height: 1.7; padding: 1.25rem 1.35rem 1.5rem; }
.prose { line-height: 1.75; font-size: 1.02rem; }
.prose h2 { font-size: 1.35rem; margin-top: 2.25rem; margin-bottom: .75rem; }
.prose h3 { font-size: 1.08rem; margin-top: 1.5rem; margin-bottom: .4rem; }
.prose p, .prose ul, .prose ol { margin-bottom: 1rem; }
.toc { position: sticky; top: calc(var(--sv-header-h) + 1.5rem); }
.toc a { display: block; padding: .45rem .9rem; border-left: 2px solid var(--sv-border); color: var(--sv-muted); font-weight: 600; font-size: .92rem; }
.toc a:hover { color: var(--sv-heading); border-left-color: var(--sv-accent); text-decoration: none; }
.callout { border-radius: var(--sv-radius); padding: 1.25rem 1.4rem; background: rgba(0, 125, 179, .08); border: 1px solid rgba(0, 125, 179, .3); }
.callout-blue { background: rgba(0, 125, 179, .08); border-color: rgba(0, 125, 179, .3); }

/* Equipa */
.person { display: flex; gap: 1rem; align-items: center; padding: 1.25rem; }
.avatar { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 1.05rem; background: linear-gradient(135deg, var(--sv-blue), var(--sv-navy)); letter-spacing: .02em; }
.person h3 { font-size: 1.02rem; margin: 0 0 .15rem; }
.person .role { color: var(--sv-muted); font-size: .88rem; margin: 0; }
.person .mail { margin-left: auto; }
.avatar-honor { background: linear-gradient(135deg, #8a99ad, #4a5b70); }

/* Recursos */
.resource { display: flex; gap: 1.1rem; padding: 1.5rem; align-items: flex-start; }
.resource .feature-icon { margin: 0; flex: 0 0 56px; }
.resource h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.resource p { margin: 0; color: var(--sv-muted); font-size: .94rem; }
.credits { columns: 2 320px; column-gap: 2.5rem; color: var(--sv-muted); font-size: .92rem; }
.credits p { break-inside: avoid; margin-bottom: .7rem; }
.credits strong { color: var(--sv-text); }

/* Estatisticas */
.chart-box { position: relative; height: 320px; }
.chart-box-sm { height: 260px; }

/* ---------- Rodape ---------- */
.site-footer { background: var(--sv-ink); color: rgba(255, 255, 255, .72); padding: 4.5rem 0 2rem; margin-top: 0; }
[data-bs-theme="dark"] .site-footer { background: #030c17; border-top: 1px solid var(--sv-border); }
.footer-logos { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.footer-logos img { height: 34px; width: auto; }
.footer-tagline { font-size: .94rem; max-width: 40ch; }
.footer-partner { display: inline-flex; align-items: center; gap: .75rem; color: rgba(255, 255, 255, .6); font-size: .8rem; margin-top: .5rem; }
.footer-partner img { filter: brightness(0) invert(1); opacity: .85; }
.footer-partner:hover { text-decoration: none; }
.footer-title { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; margin-bottom: 1.1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li + li { margin-top: .6rem; }
.footer-links a { color: rgba(255, 255, 255, .78); font-size: .94rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 3.5rem; padding-top: 1.75rem; font-size: .84rem; }
.footer-disclaimer { color: rgba(255, 255, 255, .5); }
.footer-disclaimer a { color: rgba(255, 255, 255, .75); }

.back-to-top {
	position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1020; width: 46px; height: 46px; border-radius: 50%;
	background: var(--sv-navy); color: #fff; box-shadow: var(--sv-shadow-lg); opacity: 0; transform: translateY(12px); pointer-events: none;
	transition: opacity .25s ease, transform .25s ease;
}
[data-bs-theme="dark"] .back-to-top { background: var(--sv-blue); }
.back-to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { background: var(--sv-blue); color: #fff; }

/* Revelar ao fazer scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--sv-ease), transform .7s var(--sv-ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; transition: none; }
	.hero-bg { animation: none; transform: none; }
	.hero-scroll, .live-dot { animation: none; }
}

/* Telemovel */
@media (max-width: 575.98px) {
	:root { --sv-header-h: 64px; }
	.brand-logo { height: 32px; }
	.hero-full .hero-inner { padding-bottom: 6rem; }
	.hero-actions .btn { flex: 1 1 auto; }
	.sv-card-body, .feature { padding: 1.25rem; }
	.photo-card { min-height: 300px; }
	.card-head { padding: 1rem 1.1rem; }
	.person { padding: 1rem; }
}

/* Menu lateral aberto */
.site-header.menu-open { background: var(--sv-nav-solid); }

/* Contentor com margens generosas (ate 1360px) */
.container-xxl { --bs-gutter-x: clamp(2rem, 6vw, 6rem); max-width: 1440px; }
@media (max-width: 575.98px) { .container-xxl { --bs-gutter-x: 2rem; } }
.map-shield { position: absolute; inset: 0; z-index: 400; border: 0; background: transparent; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 1.25rem; cursor: pointer; }
.map-shield span { background: rgba(0, 17, 36, .78); color: #fff; padding: .55rem 1.1rem; border-radius: 999px; font-size: .88rem; font-weight: 600; backdrop-filter: blur(4px); transition: opacity .2s; }
.map-shield:hover span { background: var(--sv-blue); }
.map-frame.is-active .map-shield { display: none; }

/* Ajustes (revisao no browser) */
.hero-full .hero-scroll { bottom: calc(4.5rem + 1.25rem); }
@media (max-width: 767.98px) { .hero-scroll { display: none; } }
.photo-card::after { background: linear-gradient(180deg, rgba(0, 17, 36, .1) 0%, rgba(0, 17, 36, .45) 38%, rgba(0, 17, 36, .92) 100%); }
.photo-card-body { text-shadow: 0 1px 12px rgba(0, 17, 36, .45); }
.back-to-top { --bs-btn-bg: var(--sv-navy); --bs-btn-color: #fff; --bs-btn-border-color: transparent; --bs-btn-hover-bg: var(--sv-blue); --bs-btn-hover-color: #fff; --bs-btn-active-bg: var(--sv-blue); --bs-btn-active-color: #fff; }
[data-bs-theme="dark"] .back-to-top { --bs-btn-bg: var(--sv-blue); }
@media (max-width: 767.98px) {
	.table-stack td.stack-route { padding: .35rem 0 .5rem; }
	.table-stack td[data-label]::before { min-width: 6.5rem; }
	.table-stack td.stack-head { display: inline-block; width: auto; margin-right: .75rem; }
	.table-stack td.stack-inline { display: inline-block; width: auto; }
}

/* Logotipo do site (azoresairlines_logo_w.png sobre escuro, sata_azores_virtual.png sobre claro; o antigo azoresairlines_logo.png, so com a cauda, ja nao se usa) */
.brand-logo-light { height: 42px; }
.brand-logo-solid { height: 42px; } /* mesmas proporcoes que a versao branca */
.offcanvas-logo.logo-on-light { height: 34px; }
.offcanvas-logo.logo-on-dark { height: 34px; }
.footer-logos img { height: 44px; }
@media (max-width: 575.98px) { .brand-logo-light { height: 34px; } .brand-logo-solid { height: 34px; } }
.hero-title .tm, sup.tm { font-size: .35em; font-weight: 400; vertical-align: super; margin-left: .05em; top: -.2em; }
.seg { background: var(--sv-surface-2); border-radius: 999px; padding: 3px; gap: 2px; }
.seg .btn { border: 0; border-radius: 999px !important; font-size: .78rem; padding: .25rem .8rem; color: var(--sv-muted); font-weight: 600; }
.seg .btn.active { background: var(--sv-navy); color: #fff; }
[data-bs-theme="dark"] .seg .btn.active { background: var(--sv-blue); }
/* campo-isco do formulario de contacto (escondido de pessoas, visivel para robots) */
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--sv-red); }
.invalid-feedback { color: var(--sv-red); }

/* Rota (quadro e ultimos voos): colunas de largura fixa para os IATA ficarem alinhados entre linhas */
.board-route { display: grid; grid-template-columns: 8.5rem 1.25rem 8.5rem; align-items: center; gap: .5rem; }
.board-route .apt { min-width: 0; }
.board-route .apt small { max-width: 100%; }
.board-route .arrow { justify-self: center; }
@media (max-width: 575.98px) { .board-route { grid-template-columns: minmax(0, 1fr) 1.25rem minmax(0, 1fr); } }

/* Resources: sistemas e creditos (linha temporal) */
.sys-list { border-left: 2px solid var(--sv-border); margin-left: 3.2rem; }
.sys { display: flex; gap: 1.25rem; padding: .9rem 0 .9rem 1.25rem; position: relative; }
.sys::before { content: ""; position: absolute; left: -7px; top: 1.25rem; width: 12px; height: 12px; border-radius: 50%; background: var(--sv-surface); border: 2px solid var(--sv-blue); }
.sys-year { position: absolute; left: -4.6rem; top: 1rem; width: 3.6rem; text-align: right; font-size: .78rem; font-weight: 700; color: var(--sv-muted); font-variant-numeric: tabular-nums; }
.sys-body h3 { font-size: 1rem; margin: 0 0 .2rem; }
.sys-kids { list-style: none; padding: .5rem 0 0 .9rem; margin: 0; border-left: 2px dotted var(--sv-border); font-size: .9rem; }
.sys-kids li + li { margin-top: .25rem; }
.resource.is-locked .feature-icon { background: linear-gradient(135deg, #8a99ad, #4a5b70); }

/* Frota: matriculas clicaveis, frota historica com o logotipo da epoca em branco e janela de detalhes */
button.reg { cursor: pointer; color: var(--sv-text); transition: border-color .15s, background-color .15s; }
button.reg:hover { border-color: var(--sv-blue); background: var(--sv-surface-2); }
.reg-dark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .85); }
button.reg-dark:hover { background: rgba(255, 255, 255, .16); border-color: var(--sv-sky); color: #fff; }
.heritage-card { padding: 1.1rem 1.2rem; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); }
.era-logo { height: 38px; width: auto; max-width: 96px; object-fit: contain; filter: brightness(0) invert(1); opacity: .92; flex: 0 0 auto; }
.sv-modal { border: 0; border-radius: 18px; overflow: hidden; background: var(--sv-surface); color: var(--sv-text); box-shadow: var(--sv-shadow-lg); }
.ac-photo { position: relative; min-height: 220px; background-size: cover; background-position: center; display: flex; align-items: flex-end; color: #fff; }
.ac-photo .btn-close { position: absolute; top: 1rem; right: 1rem; z-index: 2; }
.ac-photo .era-logo { position: absolute; top: 1rem; left: 1.25rem; height: 44px; }
.ac-photo-in { padding: 1.25rem 1.5rem; }
.ac-photo .modal-title { color: #fff; font-size: 1.6rem; font-weight: 800; margin: .5rem 0 0; }
.ac-photo .modal-title .thin { font-weight: 300; }
.sv-modal .modal-body { padding: 1.5rem; }
.ac-facts { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.25rem; margin: 0; }
.ac-facts dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sv-muted); font-weight: 700; padding-top: .15rem; }
.ac-facts dd { margin: 0; }
@media (max-width: 575.98px) { .ac-facts { grid-template-columns: 1fr; } .ac-facts dd { margin-bottom: .4rem; } }
/* Rota: partida alinhada a direita e chegada a esquerda, aviao centrado entre os dois codigos */
.board-route .apt:first-child { text-align: right; }
.board-route .apt:last-child { text-align: left; }
/* SATA Virtual Light (Why fly with us) */
.light-band { padding: 1.5rem 1.75rem; border-radius: var(--sv-radius); border: 1px dashed rgba(0, 125, 179, .45); background: var(--sv-surface); }
.light-logo { height: 34px; width: auto; max-width: 100%; }

/* Eventos (como os cartoes do MUSEUM) */
.ev-card { overflow: hidden; }
.ev-card.is-past .ev-banner { filter: saturate(.7); }
.ev-banner { aspect-ratio: 2 / 1; background: var(--sv-navy) center / cover no-repeat; position: relative; color: #fff; }
.ev-gen { background-image: linear-gradient(100deg, rgba(0, 17, 36, .9) 0%, rgba(0, 40, 87, .62) 45%, rgba(0, 40, 87, .1) 100%), var(--ph); background-size: cover; }
.ev-wm { position: absolute; top: 14px; right: 16px; height: 22px; opacity: .9; }
.ev-net { position: absolute; top: 42px; right: 16px; font-size: .7rem; font-weight: 700; letter-spacing: .14em; color: var(--sv-sky); }
.ev-in { position: absolute; left: 6%; right: 30%; top: 50%; transform: translateY(-50%); }
.ev-in h3 { color: #fff; font-size: clamp(1.05rem, 2.2vw, 1.6rem); font-weight: 800; line-height: 1.12; margin: 0 0 .5rem; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.ev-row { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .85rem; font-weight: 600; }
.ev-route { font-size: .82rem; margin-top: .35rem; opacity: .9; }

/* Historia: linha temporal */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--sv-border); }
.timeline li { display: flex; gap: 1.25rem; padding: 0 0 1.5rem 1.5rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: .35rem; width: 14px; height: 14px; border-radius: 50%; background: var(--sv-surface); border: 3px solid var(--sv-blue); }
.timeline h3 { font-size: 1.05rem; margin: 0 0 .2rem; }
.timeline p { color: var(--sv-muted); margin: 0; }
.tl-year { flex: 0 0 3.4rem; font-weight: 800; color: var(--sv-accent); font-variant-numeric: tabular-nums; }
.tl-year-dark { color: var(--sv-sky); font-size: 1.25rem; }
.demo-badge { display: inline-block; margin-left: .5rem; padding: .1rem .5rem; border-radius: 999px; font-size: .68rem; letter-spacing: .1em; background: var(--sv-red); color: #fff; vertical-align: middle; }

/* Cartoes: altura igual nas grelhas so quando o cartao esta sozinho na coluna (senao empurrava o que vem a seguir
   para fora da seccao, ex. o callout do Contact por cima do rodape) */
.sv-card:not(:only-child) { height: auto; }
/* Mensagens do login do Certification Centre (cert/login.php volta com ?cert=...) */
.cert-alert { border-radius: 10px; padding: .65rem .8rem; border: 1px solid; }
.cert-alert-error { color: #9b241d; background: rgba(203, 47, 38, .08); border-color: rgba(203, 47, 38, .35); }
.cert-alert-info { color: var(--sv-text); background: rgba(0, 125, 179, .08); border-color: rgba(0, 125, 179, .3); }
[data-bs-theme="dark"] .cert-alert-error { color: #ffb3ad; }

/* Passos do PAB (cert/new_register.php, registerapply.php, register.php) */
.steps.steps-3 { grid-template-columns: repeat(3, 1fr); }
.steps li.is-current { border-color: var(--sv-blue); box-shadow: 0 0 0 2px rgba(0, 125, 179, .2), var(--sv-shadow); }
.steps li.is-done::before { content: "\2713"; background: var(--sv-blue); color: #fff; }
.steps li:not(.is-current):not(.is-done) { opacity: .7; }
@media (max-width: 575.98px) {
	.steps.steps-3 { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
	.steps.steps-3 li { padding: .75rem .6rem; text-align: center; }
	.steps.steps-3 li::before { width: 30px; height: 30px; margin: 0 auto .4rem; }
	.steps.steps-3 h3 { font-size: .85rem; margin: 0; }
	.steps.steps-3 p { display: none; }
}

/* Area do candidato (cert/main.php) */
.cert-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; position: relative; }
.cert-track::before { content: ""; position: absolute; left: 8%; right: 8%; top: 19px; height: 2px; background: var(--sv-border); z-index: 0; }
.cert-track li { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .15rem; }
.cert-track .dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--sv-surface); border: 2px solid var(--sv-border); color: var(--sv-muted); margin-bottom: .35rem; font-size: .9rem; }
.cert-track strong { font-size: .85rem; color: var(--sv-heading); }
.cert-track small { font-size: .72rem; color: var(--sv-muted); line-height: 1.25; }
.cert-track li.is-passed .dot { background: var(--sv-blue); border-color: var(--sv-blue); color: #fff; }
.cert-track li.is-current .dot { border-color: var(--sv-sky); color: var(--sv-blue); box-shadow: 0 0 0 4px rgba(82, 198, 226, .25); }
.cert-track li.is-failed .dot { border-color: var(--sv-red); color: var(--sv-red); }
@media (max-width: 767.98px) {
	.cert-track { grid-template-columns: 1fr; gap: .25rem; }
	.cert-track::before { left: 19px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; }
	.cert-track li { flex-direction: row; text-align: left; gap: .75rem; flex-wrap: wrap; }
	.cert-track .dot { margin: 0; flex: 0 0 40px; }
	.cert-track small { flex-basis: 100%; padding-left: 52px; margin-top: -.6rem; }
}
.exam-item { padding: 1rem 0; border-bottom: 1px solid var(--sv-border); }
.exam-item:first-child { padding-top: 0; }
.exam-item:last-child { border-bottom: 0; padding-bottom: 0; }
.exam-review { background: var(--sv-surface-2); border-radius: 12px; padding: 1rem; }
.chat { display: flex; flex-direction: column; gap: .6rem; max-height: 560px; overflow-y: auto; padding-right: .25rem; }
.chat-msg { max-width: 88%; padding: .6rem .8rem; border-radius: 14px; font-size: .92rem; }
.chat-msg.from-staff { align-self: flex-start; background: var(--sv-surface-2); border: 1px solid var(--sv-border); border-bottom-left-radius: 4px; }
.chat-msg.from-me { align-self: flex-end; background: rgba(0, 125, 179, .1); border: 1px solid rgba(0, 125, 179, .25); border-bottom-right-radius: 4px; }
.chat-msg.is-new { border-color: var(--sv-sky); box-shadow: 0 0 0 2px rgba(82, 198, 226, .25); }
.chat-meta { font-size: .72rem; color: var(--sv-muted); margin-bottom: .2rem; }
.chat-text { word-wrap: break-word; }

/* Exame teorico (cert/cert_test.php) */
.exam-bar { padding: 1rem 1.25rem; position: sticky; top: calc(var(--sv-header-h) + .5rem); z-index: 5; }
.exam-img { text-align: center; }
.exam-img img { max-width: 100%; max-height: 360px; border-radius: 10px; border: 1px solid var(--sv-border); }
.exam-options { display: grid; gap: .6rem; }
.exam-opt { display: flex; align-items: flex-start; gap: .8rem; text-align: left; width: 100%; padding: .75rem .9rem; border-radius: 12px; border: 1px solid var(--sv-border); background: var(--sv-surface); color: var(--sv-text); transition: border-color .15s, background-color .15s; }
.exam-opt:hover { border-color: var(--sv-blue); }
.exam-opt .letter { flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--sv-surface-3); color: var(--sv-heading); }
.exam-opt.is-chosen { border-color: var(--sv-blue); background: rgba(0, 125, 179, .08); box-shadow: 0 0 0 2px rgba(0, 125, 179, .2); }
.exam-opt.is-chosen .letter { background: var(--sv-blue); color: #fff; }
.exam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: .35rem; }
.exam-grid button { height: 36px; border-radius: 8px; border: 1px solid var(--sv-border); background: var(--sv-surface); color: var(--sv-text); font-size: .82rem; font-weight: 600; }
.exam-grid button.is-answered { background: rgba(0, 125, 179, .12); border-color: rgba(0, 125, 179, .4); color: var(--sv-blue); }
.exam-grid button.is-current { outline: 2px solid var(--sv-navy); outline-offset: 1px; }
[data-bs-theme="dark"] .exam-grid button.is-answered { color: var(--sv-sky); }
[data-bs-theme="dark"] .exam-grid button.is-current { outline-color: var(--sv-sky); }

/* ---------- Galeria (pages/gallery.php) e mosaico da home ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); grid-auto-flow: dense; gap: 1rem; }
.gallery-item { position: relative; display: block; border-radius: var(--sv-radius-sm); overflow: hidden; background: var(--sv-surface-3); aspect-ratio: 16 / 9; color: #fff; isolation: isolate; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--sv-ease); }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.05); }
.gallery-item:hover { text-decoration: none; }
.gallery-item:focus-visible { outline: 3px solid var(--sv-sky); outline-offset: 2px; }
.gallery-cap {
	position: absolute; inset: auto 0 0 0; padding: 2.5rem 1rem .85rem; font-size: .88rem; font-weight: 600; line-height: 1.3;
	background: linear-gradient(180deg, rgba(0, 17, 36, 0), rgba(0, 17, 36, .85)); text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
	display: flex; flex-direction: column; align-items: flex-start; gap: .4rem;
	opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease;
}
.gallery-item:hover .gallery-cap, .gallery-item:focus-visible .gallery-cap { opacity: 1; transform: none; }
@media (hover: none) { .gallery-cap { opacity: 1; transform: none; } }
.gallery-cap .chip { font-size: .68rem; padding: .2rem .55rem; }
@media (min-width: 768px) { .gallery-grid .gallery-item.is-wide { grid-column: span 2; grid-row: span 2; } }
.gallery-grid.is-filtered .gallery-item.is-wide { grid-column: auto; grid-row: auto; }
.gallery-grid .gallery-item[hidden] { display: none; }

/* Mosaico da home: uma grande + quatro (ate 1679px), uma grande + seis (ecras largos) */
.mosaic { display: grid; gap: 1rem; grid-template-columns: repeat(4, 1fr); }
.mosaic .gallery-item { aspect-ratio: 16 / 10; }
.mosaic .gallery-item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.mosaic .gallery-item:nth-child(n+6) { display: none; }
@media (max-width: 767.98px) {
	.mosaic { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
	.mosaic .gallery-item:first-child { grid-row: span 1; aspect-ratio: 16 / 9; }
	.mosaic .gallery-item:not(:first-child) .gallery-cap { display: none; }
}

/* Visualizador */
.lightbox { position: fixed; inset: 0; z-index: 2100; background: rgba(0, 10, 22, .94); display: flex; align-items: center; justify-content: center; padding: 3.5rem 4.5rem; backdrop-filter: blur(6px); }
.lightbox[hidden] { display: none; }
.lb-open, .lb-open body { overflow: hidden; }
.lb-figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.lb-img { max-width: 100%; max-height: calc(100vh - 9rem); max-height: calc(100svh - 9rem); object-fit: contain; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); background: #000; }
.lb-cap { color: rgba(255, 255, 255, .88); font-size: .95rem; text-align: center; display: flex; gap: .9rem; align-items: baseline; }
.lb-count { color: var(--sv-sky); font-weight: 700; font-size: .8rem; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; font-size: 1.1rem; transition: background-color .15s; }
.lb-btn:hover, .lb-btn:focus-visible { background: rgba(255, 255, 255, .2); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 575.98px) {
	.lightbox { padding: 4rem .5rem 5.5rem; }
	.lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; }
	.lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); }
}

/* Seccao azul com fotografia por tras (Heritage fleet) */
.section-photo { isolation: isolate; overflow: hidden; }
.section-photo-bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center 40%; opacity: .5; }
.section-photo-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--sv-navy) 0%, rgba(0, 40, 87, .55) 55%, rgba(0, 40, 87, .85) 100%); }
[data-bs-theme="dark"] .section-photo-bg::after { background: linear-gradient(90deg, #0a2340 0%, rgba(10, 35, 64, .55) 55%, rgba(10, 35, 64, .85) 100%); }

/* ---------- Ecras largos (>= 1680px e >= 2200px) ----------
   O contentor cresce, a letra sobe um pouco (tudo em rem acompanha) e as grelhas ganham colunas com .col-3xl-*. */
@media (min-width: 1680px) {
	html { font-size: 106.25%; }
	.container-xxl { max-width: 1680px; }
	.col-3xl-2 { flex: 0 0 auto; width: 16.66666667%; }
	.col-3xl-3 { flex: 0 0 auto; width: 25%; }
	.col-3xl-4 { flex: 0 0 auto; width: 33.33333333%; }
	.col-3xl-6 { flex: 0 0 auto; width: 50%; }
	.section-head > div { max-width: 880px; }
	.hero-page { min-height: clamp(380px, 50svh, 620px); }
	.hero-subtitle { max-width: 54ch; }
	.photo-card { min-height: clamp(400px, 26vw, 560px); }
	.fleet-photo { height: clamp(220px, 12vw, 300px); }
	.map-frame iframe, .map-frame .leaflet-map { height: clamp(480px, 68vh, 860px); }
	.chart-box { height: 400px; }
	.chart-box-sm { height: 320px; }
	.mosaic { grid-template-columns: repeat(5, 1fr); }
	.mosaic .gallery-item:nth-child(n+6) { display: block; }
	.gallery-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.25rem; }
	.board-route { grid-template-columns: 10rem 1.25rem 10rem; }
	.board-route .apt small { max-width: 100%; }
}
@media (min-width: 2200px) {
	html { font-size: 112.5%; }
	.container-xxl { max-width: 2080px; }
	.gallery-grid { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); }
}
.hero-full .hero-title { max-width: 20ch; }
