/* VOLTEC · versão 4.4 — estilo limpo, com modo claro e modo escuro
   Branco, títulos finos, imagens com um lado em curva, texto com fio lateral
   e um motivo de pequenos quadrados nas cores da marca. */
:root {
  --c1: #3D3938;   /* carvão */
  --c2: #7D222B;   /* bordô */
  --c3: #EC6E00;   /* laranja */
  --c4: #FCC916;   /* amarelo */
  --c5: #CADB03;   /* lima */
  --c6: #B6B6B6;   /* cinza */
  --ink: #2F2C2B;
  --text: #5B5856;
  --muted: #8E8A88;
  --line: #E8E5E2;
  --soft: #F6F5F3;
  --paper: #FFFFFF;
  --cta: #3D3938;
  --font-display: "Jost", "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.75; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; font-weight: 400; letter-spacing: -0.01em; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--c3); outline-offset: 3px; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.num { font-variant-numeric: tabular-nums; }
.demo { text-align: center; font-size: 0.76rem; color: var(--muted); padding: 6px 16px; border-bottom: 1px solid var(--line); }

/* Motivo dos quadrados */
.sq { display: inline-flex; gap: 5px; vertical-align: middle; }
.sq i { width: 9px; height: 9px; display: block; }
.sq i:nth-child(1) { background: var(--c1); } .sq i:nth-child(2) { background: var(--c2); } .sq i:nth-child(3) { background: var(--c3); }
.sq i:nth-child(4) { background: var(--c4); } .sq i:nth-child(5) { background: var(--c5); } .sq i:nth-child(6) { background: var(--c6); }
.sq.lg i { width: 12px; height: 12px; }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.kicker::before { content: ""; width: 9px; height: 9px; background: var(--k, var(--c3)); }
.deco { position: absolute; pointer-events: none; }
.deco svg { display: block; }

/* Botões e ligações */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 2px; font: inherit; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn-dark { background: var(--cta); color: #fff; }
.btn-dark:hover { background: #24211F; }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.more { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.92rem; color: var(--ink); text-decoration: none; letter-spacing: 0.02em; }
.more::after { content: ""; width: 22px; height: 1.5px; background: var(--c3); transition: width .2s; }
.more:hover::after { width: 34px; }

/* Cabeçalho */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,0.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 36px; height: 78px; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-fallback { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; grid-template-columns: repeat(3, 9px); gap: 3px; }
.brand-mark i { width: 9px; height: 9px; display: block; }
.brand-mark i:nth-child(1) { background: var(--c1); } .brand-mark i:nth-child(2) { background: var(--c2); } .brand-mark i:nth-child(3) { background: var(--c3); }
.brand-mark i:nth-child(4) { background: var(--c4); } .brand-mark i:nth-child(5) { background: var(--c5); } .brand-mark i:nth-child(6) { background: var(--c6); }
.brand-name { font-family: var(--font-display); font-weight: 500; font-size: 1.45rem; color: var(--ink); letter-spacing: 0.02em; line-height: 1; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.logo-img { display: none; height: 42px; width: auto; }
.brand.has-logo .logo-img { display: block; }
.brand.has-logo .brand-fallback { display: none; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--ink); position: relative; padding-block: 6px; white-space: nowrap; }
.nav-links > a::after, .has-sub > a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--c3); transition: width .2s; }
.nav-links > a:hover::after, .has-sub:hover > a::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.has-sub { position: relative; }
.has-sub > a { display: inline-flex; align-items: center; gap: 6px; }
.has-sub > a svg { width: 11px; height: 11px; }
.submenu { display: none; position: absolute; top: calc(100% + 14px); left: -18px; min-width: 320px; background: #fff; border: 1px solid var(--line); padding: 10px; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.25); }
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.has-sub:hover .submenu, .has-sub:focus-within .submenu { display: grid; }
.submenu a { display: grid; gap: 1px; padding: 12px 14px; white-space: normal; border-left: 3px solid transparent; }
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--soft); border-left-color: var(--c3); }
.submenu a b { font-weight: 700; color: var(--ink); }
.submenu a span { font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.submenu .all { margin-top: 6px; border-top: 1px solid var(--line); color: var(--c2); font-weight: 700; }
.nav-links a.only-mobile { display: none; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); padding: 9px 16px; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; border-radius: 2px; }
@media (max-width: 1020px) {
  .nav-links { display: none; position: absolute; top: 100%; left: -24px; right: -24px; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 6px 24px 16px; box-shadow: 0 20px 40px -24px rgba(0,0,0,0.25); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-links > a::after, .has-sub > a::after { display: none; }
  .has-sub > a { width: 100%; justify-content: space-between; }
  .submenu { display: grid; position: static; border: 0; box-shadow: none; padding: 0 0 6px 14px; min-width: 0; }
  .submenu a span, .submenu .all { display: none; }
  .nav-links a.only-mobile { display: block; }
  .nav-right .btn { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* Imagens: foto se existir; senão, fundo neutro discreto */
.media { position: relative; overflow: hidden; background: linear-gradient(135deg, #4A4644 0%, #6C6866 45%, #8F8B88 100%); }
.media.light { background: linear-gradient(135deg, #DEDAD6 0%, #EAE7E4 55%, #F3F1EF 100%); }
.media img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot { display: none; position: absolute; z-index: 2; left: 16px; top: 14px; background: rgba(255,255,255,0.9); color: var(--ink); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; padding: 4px 10px; }
.media.missing > .slot { display: inline-block; }

/* Topo da página inicial: texto à esquerda, imagem curva à direita */
.home-hero { display: grid; grid-template-columns: 0.95fr 1.05fr; align-items: center; min-height: 600px; position: relative; }
.home-hero .txt { padding: 72px 64px 72px max(24px, calc((100vw - 1200px) / 2)); display: grid; gap: 22px; align-content: center; }
.home-hero h1 { font-size: clamp(2.6rem, 4.8vw, 4.2rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.08; }
.home-hero h1 strong { font-weight: 500; color: var(--c2); }
.home-hero .lead { font-size: 1.15rem; max-width: 46ch; }
.home-hero .acts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.home-hero .media { height: 600px; border-radius: 50% 0 0 50% / 62% 0 0 38%; }
.home-hero .media .slot { left: 38%; top: 22px; }
@media (max-width: 1080px) { .home-hero .media .slot { left: 30%; } }

/* Topo das páginas interiores: imagem curva à esquerda, título à direita */
.page-top { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; min-height: 440px; position: relative; }
.page-top .media { height: 440px; border-radius: 0 50% 50% 0 / 0 38% 62% 0; }
.page-top .media .slot { left: auto; right: 24%; }
.page-top .ttl { padding-right: max(24px, calc((100vw - 1200px) / 2)); display: grid; gap: 14px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.85rem; color: var(--muted); }
.crumbs a { color: var(--text); text-decoration: none; }
.crumbs a:hover { color: var(--c3); }
.page-top h1 { font-size: clamp(2.5rem, 4.4vw, 3.8rem); font-weight: 300; letter-spacing: -0.02em; }
.page-top .lead { font-size: 1.08rem; max-width: 42ch; }
.page-top .sq { margin-top: 6px; }

/* Secções */
section { scroll-margin-top: 96px; }
.section { padding-block: 112px; position: relative; }
.section.soft { background: var(--soft); }
.head { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; margin-bottom: 56px; }
.head h2, .head-only h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 300; margin-top: 14px; }
.head p { max-width: 52ch; }
.head-only { margin-bottom: 48px; max-width: 760px; }
.head-link { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.head-link h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 300; margin-top: 14px; }
.rule-txt { border-left: 2px solid var(--line); padding-left: 30px; display: grid; gap: 14px; }
.rule-txt .lead { font-size: 1.12rem; color: var(--ink); }
.por-preencher { color: var(--muted); font-style: italic; }

/* Cartões de áreas */
.areas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.area-card { text-decoration: none; display: grid; gap: 18px; align-content: start; }
.area-card .media { aspect-ratio: 4 / 4.4; border-radius: 0 80px 0 0; transition: border-radius .35s; }
.area-card:hover .media { border-radius: 0 0 0 80px; }
.area-card h3 { font-size: 1.4rem; font-weight: 400; }
.area-card p { font-size: 0.97rem; }
.area-card .k { width: 26px; height: 3px; background: var(--k, var(--c3)); }

/* Empresa (resumo) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; }
.split.top { align-items: start; }
.split h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 300; margin-top: 14px; }
.facts { display: grid; }
.facts li { display: grid; grid-template-columns: 22px 150px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.facts li:first-child { border-top: 1px solid var(--line); }
.facts li::before { content: ""; width: 9px; height: 9px; background: var(--k, var(--c3)); transform: translateY(-1px); }
.facts small { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.facts strong { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; color: var(--ink); }
.split .media.tall { aspect-ratio: 4 / 4.6; border-radius: 0 0 120px 0; }

/* Projetos */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.work { text-decoration: none; display: grid; gap: 16px; align-content: start; }
.work .media { aspect-ratio: 4 / 3; }
.work:nth-child(3n+1) .media { border-radius: 0 0 0 70px; }
.work:nth-child(3n+2) .media { border-radius: 0 70px 0 0; }
.work:nth-child(3n) .media { border-radius: 0 0 70px 0; }
.work-type { display: inline-flex; align-items: center; gap: 10px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.work-type::before { content: ""; width: 9px; height: 9px; background: var(--k, var(--c3)); }
.work h3 { font-size: 1.35rem; font-weight: 400; }
.work .meta { font-size: 0.93rem; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-bottom: 44px; border-bottom: 1px solid var(--line); }
.filters button { font: inherit; font-weight: 700; font-size: 0.92rem; background: none; border: 0; padding: 12px 0; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.filters button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--c3); }

/* Destaque */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.feature .media { aspect-ratio: 5 / 4; border-radius: 0 50% 50% 0 / 0 40% 60% 0; }
.feature h2 { font-size: clamp(2rem, 3.2vw, 2.6rem); font-weight: 300; margin-top: 14px; }
.editable { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); border: 1px dashed var(--c6); padding: 3px 10px; margin-bottom: 6px; }

/* Missão, números, zona */
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.col { display: grid; gap: 12px; align-content: start; padding-top: 22px; border-top: 1px solid var(--line); position: relative; }
.col::before { content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 3px; background: var(--k, var(--c3)); }
.col small { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.col h3 { font-size: 1.45rem; font-weight: 400; line-height: 1.3; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat { display: grid; gap: 6px; }
.stat b { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.8rem, 5vw, 4.2rem); color: var(--ink); line-height: 1; letter-spacing: -0.02em; }
.stat i { display: block; width: 24px; height: 3px; background: var(--k, var(--c3)); }

/* Linhas alternadas (áreas) */
.rows { display: grid; gap: 112px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; }
.row .media { aspect-ratio: 5 / 4; border-radius: 0 50% 50% 0 / 0 40% 60% 0; }
.row:nth-child(even) .media { order: 2; border-radius: 50% 0 0 50% / 40% 0 0 60%; }
.row h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 300; margin-top: 14px; }
.row .rule-txt { margin-top: 20px; }
.ticks { display: grid; gap: 8px; }
.ticks li { display: flex; gap: 14px; align-items: baseline; color: var(--ink); }
.ticks li::before { content: ""; width: 7px; height: 7px; background: var(--k, var(--c3)); flex: none; transform: translateY(-2px); }

/* Página de área */
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; }
.svc li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 26px 0; border-top: 1px solid var(--line); }
.svc .n { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 500; font-size: 0.95rem; }
.svc b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; color: var(--ink); margin-bottom: 4px; }
.sectors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; margin-top: 8px; }
.sectors li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.sectors li::before { content: ""; width: 9px; height: 9px; background: var(--k, var(--c3)); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.steps::before { content: ""; position: absolute; top: 22px; left: 0; right: 0; height: 1px; background: var(--line); }
.step { position: relative; display: grid; gap: 10px; align-content: start; }
.step .n { width: 44px; height: 44px; display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; box-shadow: 0 0 0 10px var(--paper); }
.section.soft .step .n { box-shadow: 0 0 0 10px var(--soft); }
.step h3 { font-size: 1.25rem; font-weight: 400; margin-top: 10px; }

/* Contactos */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.cinfo li { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.cinfo li:first-child { border-top: 1px solid var(--line); }
.cinfo small { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.cinfo strong { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; color: var(--ink); }
.cinfo .big strong { font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 300; letter-spacing: -0.01em; }
.cinfo em { font-style: normal; font-size: 0.82rem; color: var(--muted); }
.map .media { aspect-ratio: 4 / 4.2; border-radius: 0 0 0 140px; }
.dept { margin-top: 48px; }
.dept h3 { font-size: 1.4rem; font-weight: 400; margin-bottom: 16px; }

/* Faixa de contacto */
.cta { position: relative; overflow: hidden; background: var(--soft); }
.cta .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; padding-block: 80px; }
.cta h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 300; max-width: 22ch; }

/* Texto legal (Política de cookies, Avisos legais, Política de gestão) */
.doc-body { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 64px; padding-block: 112px 120px; position: relative; }
.doc-side { position: relative; }
.doc-sec + .doc-sec { margin-top: 72px; }
.doc-sec h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); font-weight: 300; color: var(--c2); }
.doc-sec .rule-txt { margin-top: 18px; }
.doc-fn { display: grid; gap: 26px; margin-top: 8px; }
.doc-fn h3 { display: flex; align-items: center; gap: 12px; font-family: var(--font-body); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.16em; color: var(--ink); }
.doc-fn h3::before { content: ""; width: 9px; height: 9px; background: var(--k, var(--c3)); }
.doc-fn p { margin-top: 6px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.doc th, .doc td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-weight: 700; color: var(--ink); width: 38%; padding-right: 16px; }
.doc td { color: var(--muted); }
.sign { margin-top: 28px; }

/* Rodapé */
footer { background: var(--c1); color: rgba(255,255,255,0.7); margin-top: 0; position: relative; }
footer .topbar { display: flex; height: 6px; }
footer .topbar i { flex: 1; }
footer .topbar i:nth-child(1) { background: var(--c1); filter: brightness(1.35); } footer .topbar i:nth-child(2) { background: var(--c2); } footer .topbar i:nth-child(3) { background: var(--c3); }
footer .topbar i:nth-child(4) { background: var(--c4); } footer .topbar i:nth-child(5) { background: var(--c5); } footer .topbar i:nth-child(6) { background: var(--c6); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding-block: 72px 52px; }
footer .brand-name { color: #fff; }
footer .brand-name small { color: rgba(255,255,255,0.5); }
.foot p { font-size: 0.95rem; margin-top: 18px; max-width: 34ch; }
.foot h4 { color: #fff; font-family: var(--font-body); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 18px; }
.foot ul { display: grid; gap: 10px; font-size: 0.95rem; }
.foot a, .foot button.linklike { color: rgba(255,255,255,0.72); text-decoration: none; font: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.foot a:hover, .foot button.linklike:hover { color: #fff; }
.legal { border-top: 1px solid rgba(255,255,255,0.12); }
.legal .wrap { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; align-items: center; padding-block: 22px 26px; font-size: 0.85rem; }
.legal nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.legal a { color: rgba(255,255,255,0.85); text-decoration: none; }
.legal a:hover { color: #fff; }
.legal a.livro { border: 1px solid rgba(255,255,255,0.5); padding: 6px 14px; color: #fff; }
.legal a.livro:hover { background: #fff; color: var(--c1); }

/* Aviso de cookies */
.cookie { position: fixed; left: 20px; bottom: 20px; z-index: 60; width: min(420px, calc(100% - 40px)); background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--c3); padding: 22px; box-shadow: 0 30px 60px -24px rgba(0,0,0,0.3); display: grid; gap: 12px; }
.cookie h3 { font-size: 1.15rem; font-weight: 500; }
.cookie p { font-size: 0.9rem; line-height: 1.6; }
.cookie p a { color: var(--ink); font-weight: 700; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-actions .btn { padding: 10px 18px; font-size: 0.88rem; }
.prefs { display: grid; gap: 8px; }
.pref { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--soft); padding: 10px 14px; font-size: 0.9rem; }
.pref b { color: var(--ink); display: block; }
.pref span { font-size: 0.8rem; color: var(--muted); }
.switch { appearance: none; width: 40px; height: 22px; border-radius: 999px; background: #D5D1CE; position: relative; cursor: pointer; flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch:checked { background: var(--c1); }
.switch:checked::after { transform: translateX(18px); }
.switch:disabled { opacity: 0.6; cursor: not-allowed; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

/* Responsivo */
@media (max-width: 1080px) {
  .home-hero, .page-top { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .home-hero .media { order: -1; height: 320px; margin-left: 24px; border-radius: 0 0 0 50% / 0 0 0 60%; }
  .home-hero .txt { padding: 48px 24px 64px; }
  .page-top .media { height: 300px; margin-right: 24px; border-radius: 0 0 50% 0 / 0 0 60% 0; }
  .page-top .ttl { padding: 36px 24px 8px; }
  .head, .split, .feature, .row, .contact, .doc-body { grid-template-columns: 1fr; gap: 40px; }
  .row:nth-child(even) .media { order: 0; }
  .areas-grid { grid-template-columns: 1fr 1fr; }
  .works, .cols3 { grid-template-columns: 1fr 1fr; }
  .stats, .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .foot { grid-template-columns: 1fr 1fr; }
  .doc-side, .deco { display: none; }
  .doc-body { padding-block: 64px 80px; }
}
@media (max-width: 680px) {
  .wrap { width: min(1200px, 100% - 40px); }
  .section { padding-block: 76px; }
  .areas-grid, .works, .cols3, .svc, .sectors, .foot { grid-template-columns: 1fr; }
  .facts li { grid-template-columns: 22px 1fr; }
  .facts li strong { grid-column: 2; }
  .rows { gap: 72px; }
  .cookie { left: 10px; right: 10px; bottom: 10px; width: auto; padding: 18px; }
}

/* ===== Versão 4.3: topo das páginas interiores ===== */
.ptop { position: relative; overflow: hidden; min-height: 460px; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.ptop-bg { position: absolute; top: 0; right: 0; bottom: 0; width: 70%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.35) 22%, #000 55%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.35) 22%, #000 55%);
  background: linear-gradient(135deg, #8A8582 0%, #A9A4A0 50%, #C9C5C1 100%); }
.ptop-bg img.photo { filter: saturate(0.85); }
.ptop-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(255,255,255,0.18), rgba(255,255,255,0)); }
.ptop-bg .slot { left: auto; right: 22px; top: 18px; }
.ptop-in { position: relative; z-index: 1; display: grid; gap: 16px; padding-block: 88px; justify-items: start; }
.ptop-in h1 { font-size: clamp(2.7rem, 5.2vw, 4.6rem); font-weight: 300; letter-spacing: -0.025em; max-width: 14ch; }
.ptop-in .lead { font-size: 1.12rem; max-width: 44ch; border-left: 2px solid var(--c3); padding-left: 22px; color: var(--ink); background: rgba(255,255,255,0.72); backdrop-filter: blur(2px); padding-block: 4px; }
.ptop-in .sq { margin-top: 8px; }
@media (max-width: 1080px) {
  .ptop { min-height: 0; display: block; }
  .ptop-bg { width: 100%; bottom: auto; height: 260px;
    -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 45%, transparent 100%); }
  .ptop-in { padding-block: 190px 48px; }
}

/* Títulos pequenos nos textos legais (ex.: POLÍTICA DE PRIVACIDADE, Informação ao Consumidor – RAL) */
.doc-small h3 { display: flex; align-items: center; gap: 12px; font-family: var(--font-body); font-size: 0.92rem; font-weight: 800; letter-spacing: 0.1em; color: var(--ink); }
.doc-small h3::before { content: ""; width: 9px; height: 9px; background: var(--c3); flex: none; }
.doc-small .rule-txt { margin-top: 14px; }
.doc-sec + .doc-small, .doc-small + .doc-sec { margin-top: 64px; }

/* Certificações */
.certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cert { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: center; padding: 24px; border: 1px solid var(--line); text-decoration: none; position: relative; transition: border-color .2s, box-shadow .2s; }
.cert::before { content: ""; position: absolute; left: -1px; top: -1px; width: 40px; height: 3px; background: var(--k, var(--c3)); }
.cert:hover { border-color: #D6D1CD; box-shadow: 0 24px 50px -32px rgba(0,0,0,0.3); }
.badge { aspect-ratio: 1 / 1; background: none !important; }
.badge img.photo { object-fit: contain; }
.badge .badge-ph { display: none; position: absolute; inset: 0; }
.badge.missing .badge-ph { display: block; }
.badge .badge-ph svg { width: 100%; height: 100%; }
.badge .slot { top: auto; bottom: -2px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 0.62rem; padding: 2px 6px; }
.cert-txt { display: grid; gap: 4px; }
.cert-txt b { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; color: var(--ink); line-height: 1.1; }
.cert-txt span { font-size: 0.93rem; }
.cert-txt em { font-style: normal; font-weight: 700; font-size: 0.86rem; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.cert-txt em::after { content: "↗"; color: var(--c3); }
.sgi { margin-top: 72px; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 24px 64px; align-items: start; }
.sgi h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 300; color: var(--c2); }
.sgi-more { grid-column: 2; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sgi-more summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 700; color: var(--ink); }
.sgi-more summary::-webkit-details-marker { display: none; }
.sgi-more summary span { display: inline-flex; align-items: center; gap: 12px; }
.sgi-more summary span::before { content: ""; width: 9px; height: 9px; background: var(--c3); }
.sgi-more summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.sgi-more[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.sgi-body { padding: 0 0 22px 21px; display: grid; gap: 14px; }
@media (max-width: 1080px) { .certs { grid-template-columns: 1fr; } .sgi { grid-template-columns: 1fr; } .sgi-more { grid-column: auto; } }

.badge .slot { display: none !important; }

/* 3 áreas de atuação */
.areas-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1080px) { .areas-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .areas-grid, .areas-grid[style] { grid-template-columns: 1fr !important; } }

/* Qualificações (2 tipos) */
.quals { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.qual { background: #fff; border: 1px solid var(--line); padding: 34px 34px 18px; display: grid; gap: 12px; align-content: start; position: relative; }
.qual::before { content: ""; position: absolute; left: -1px; top: -1px; width: 40px; height: 3px; background: var(--k, var(--c3)); }
.qual-n { width: 34px; height: 34px; display: grid; place-items: center; color: #3D3938; font-family: var(--font-display); font-weight: 500; }
.qual h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); font-weight: 300; color: var(--ink); margin-top: 6px; }
.qual .sgi-more { margin-top: 10px; border-bottom: 0; grid-column: auto; }
@media (max-width: 1080px) { .quals { grid-template-columns: 1fr; } }

/* ===== Versão 4.4: botão de tema ===== */
.theme-toggle { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 1px solid var(--line); border-radius: 2px; color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s; }
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; }
[data-tema="escuro"] .theme-toggle .i-sun { display: block; }
[data-tema="escuro"] .theme-toggle .i-moon { display: none; }
.nav-right { display: flex; align-items: center; gap: 12px; }
body, .site-header, footer, .section.soft, .cta, .qual, .cert, .submenu, .cookie { transition: background-color .3s, color .3s, border-color .3s; }

/* ===== Modo escuro ===== */
[data-tema="escuro"] {
  --ink: #F1EEEA;
  --text: #C7C2BD;
  --muted: #8F8A85;
  --line: #36322F;
  --soft: #242120;
  --paper: #1B1918;
  --cta: #F1EEEA;
  color-scheme: dark;
}
[data-tema="escuro"] body { background: var(--paper); }
[data-tema="escuro"] .site-header { background: rgba(27,25,24,0.94); }
[data-tema="escuro"] .submenu { background: #242120; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.7); }
[data-tema="escuro"] .submenu a:hover, [data-tema="escuro"] .submenu a[aria-current="page"] { background: #2E2A28; }
[data-tema="escuro"] .nav-links { background: var(--paper); }
[data-tema="escuro"] .btn-dark { background: var(--ink); color: #1B1918; }
[data-tema="escuro"] .btn-dark:hover { background: #FFFFFF; }
[data-tema="escuro"] .btn-line:hover { background: var(--ink); color: #1B1918; }
[data-tema="escuro"] .btn-white { background: var(--ink); color: #1B1918; }
/* cor bordô mais clara para ler bem sobre fundo escuro */
[data-tema="escuro"] .hhero h1 strong, [data-tema="escuro"] .home-hero h1 strong, [data-tema="escuro"] .doc-sec h2,
[data-tema="escuro"] .sgi h3, [data-tema="escuro"] .submenu .all { color: #F08A3C; }
/* o primeiro quadrado (carvão) fica mais claro para continuar visível */
[data-tema="escuro"] .sq i:nth-child(1), [data-tema="escuro"] .brand-mark i:nth-child(1) { background: #8C8682; }
[data-tema="escuro"] .svc .n[style*="#3D3938"] { background: #8C8682 !important; }
/* imagens provisórias e topos */
[data-tema="escuro"] .media { background: linear-gradient(135deg, #2C2927 0%, #3A3634 50%, #4A4542 100%); }
[data-tema="escuro"] .media.light, [data-tema="escuro"] .px.light .media { background: linear-gradient(135deg, #2A2725 0%, #33302D 55%, #3C3835 100%); }
[data-tema="escuro"] .ptop-bg { background: linear-gradient(135deg, #3A3634 0%, #4A4542 50%, #5A5552 100%); }
[data-tema="escuro"] .ptop-bg::after { background: linear-gradient(0deg, rgba(27,25,24,0.25), rgba(27,25,24,0)); }
[data-tema="escuro"] .ptop-in .lead { background: rgba(27,25,24,0.7); }
[data-tema="escuro"] .slot { background: rgba(27,25,24,0.85); color: var(--ink); }
/* cartões */
[data-tema="escuro"] .qual, [data-tema="escuro"] .cert { background: #211E1D; }
[data-tema="escuro"] .badge-ph svg rect:first-child { stroke: #CFCAC6; }
[data-tema="escuro"] .badge-ph svg text:last-child { fill: #F1EEEA; }
[data-tema="escuro"] .qual-n { color: #1B1918; }
/* rodapé um pouco mais escuro que a página */
[data-tema="escuro"] footer { background: #121110; }
[data-tema="escuro"] footer .topbar i:nth-child(1) { background: #8C8682; filter: none; }
[data-tema="escuro"] .legal a.livro:hover { background: #fff; color: #121110; }
/* aviso de cookies */
[data-tema="escuro"] .cookie { background: #242120; }
[data-tema="escuro"] .pref { background: #2E2A28; }
[data-tema="escuro"] .switch { background: #4A4542; }
[data-tema="escuro"] .switch:checked { background: var(--c3); }
[data-tema="escuro"] .theme-toggle { color: var(--ink); }

@media (max-width: 520px) { .brand-name small { display: none; } .theme-toggle { width: 40px; height: 40px; } }

/* Mapa do Google incorporado (página Contactos) */
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
[data-tema="escuro"] .map-embed iframe { filter: invert(0.9) hue-rotate(180deg) saturate(0.7); }

/* Ligações de telefone, email e morada */
.cinfo a, .foot p a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
.cinfo a:hover, .foot p a:hover { border-bottom-color: var(--c3); }

.nota-tel { display: inline-block; font-size: 0.74rem; opacity: 0.7; margin-left: 4px; }

/* Certificações: só o símbolo, a ocupar o espaço todo do cartão */
.cert { display: block; padding: 0; border: 0; height: 130px; background: none !important; }
.cert::before { display: none; }
.cert:hover { box-shadow: none; opacity: 0.85; }
.cert .badge { width: 100%; height: 100%; aspect-ratio: auto; }
.cert .badge img.photo { object-fit: contain; object-position: center; }
.cert .badge-ph, .cert-txt { display: none !important; }


.logo-img { height: 60px; }


/* Qualificações: tamanhos de letra dos cartões 1 e 2 */
.qual h3 { font-size: 1.3rem; }                 /* título do cartão (ex.: "Alvará de construção") — atual até ~1.9rem */
.qual > p { font-size: 0.8rem; }               /* texto curto por baixo do título — atual ~1.06rem */
.qual .sgi-more summary { font-size: 0.8rem; } /* "Ver detalhes" */
.qual .sgi-body p, .qual .sgi-body li { font-size: 0.8rem; } /* texto que abre em "Ver detalhes" */
.qual-n { font-size: 0.75rem; }                  /* número 1 / 2 no quadrado */

/* Quadradinhos decorativos no rodapé */
.foot { position: relative; }
.deco-foot { right: 0; bottom: 34px; opacity: .9; }


/* Botões arredondados */
.btn, .theme-toggle { border-radius: 15px; }

/* Cor bordô (como no exemplo) */
.btn-dark { background: var(--c2); }
.btn-dark:hover { background: #5E1920; }
[data-tema="escuro"] .btn-dark { background: var(--c2); color: #fff; }
[data-tema="escuro"] .btn-dark:hover { background: #9A2C36; }

/* Texto em maiúsculas e um pouco mais pequeno */
.btn { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem; }

/* Números a branco nos quadrados bordô e laranja (Qualificações) */
.qual-n[style*="#7D222B" i], .qual-n[style*="#EC6E00" i] { color: #fff; }

/* Título a seguir a um pequeno título (kicker): tamanho e espaço iguais em todas as secções */
:where(.kicker) + h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 300; margin-top: 14px; }

/* Imagens das áreas: nunca mais altas do que o ecrã permite */
.area-card .media { max-height: 60vh; }
/* "Outras áreas" (2 cartões): imagens horizontais e mais baixas */
.areas-grid[style*="repeat(2"] .area-card .media { aspect-ratio: 4 / 3; max-height: 60vh; }

/* =====================================================================
   TOPOS COM IMAGEM POR TRÁS DO TEXTO (página inicial e restantes páginas)
   ===================================================================== */

/* --- Página inicial: imagem a toda a largura, a desvanecer da esquerda --- */
.home-hero { display: flex; align-items: center; min-height: clamp(520px, 74vh, 740px); overflow: hidden; }
.home-hero .media { position: absolute; inset: 0; height: auto; margin: 0; border-radius: 0; }
.home-hero .media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--paper) 0%, var(--paper) 26%, transparent 56%); }
.home-hero .media .slot { left: auto; right: 24px; top: 24px; z-index: 1; }
.home-hero .txt { position: relative; z-index: 1; width: min(1200px, calc(100% - 48px)); margin: 0 auto; padding: 96px 0; }
.home-hero .txt > * { max-width: 480px; }
.home-hero .txt > .acts { max-width: none; }

/* --- Restantes páginas: mesmo estilo, um pouco mais baixo --- */
.ptop { display: flex; align-items: center; min-height: clamp(400px, 56vh, 520px); }
.ptop-bg { inset: 0; width: auto; height: auto; -webkit-mask-image: none; mask-image: none; }
.ptop-bg img.photo { filter: none; }
.ptop-bg::after, [data-tema="escuro"] .ptop-bg::after { display: block;
  background: linear-gradient(90deg, var(--paper) 0%, var(--paper) 26%, transparent 56%); }
.ptop-in { padding-block: 88px; }
.ptop-in > * { max-width: 480px; }
.ptop-in .lead, [data-tema="escuro"] .ptop-in .lead { background: none; backdrop-filter: none; }

/* --- Telemóvel e tablet na vertical: imagem por trás de todo o texto, com véu claro --- */
@media (max-width: 900px) {
  .home-hero, .ptop { min-height: 0; }
  .home-hero .media::after, .ptop-bg::after, [data-tema="escuro"] .ptop-bg::after {
    background: color-mix(in srgb, var(--paper) 70%, transparent); }
  .home-hero .txt { padding: 72px 0 80px; }
  .ptop-in { padding-block: 64px 56px; }
}

/* --- Modo escuro: destaque do título da página inicial em branco --- */
[data-tema="escuro"] .home-hero h1 strong { color: #FFFFFF; }

/* =====================================================================
   PORTEFÓLIO · fotografia com área, título e local por cima + zoom ao passar o rato
   ===================================================================== */
.proj-grid { gap: 28px; }
.proj-grid .work { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-rows: 1fr auto auto; gap: 0;
  border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; isolation: isolate;
  transition: transform .35s ease, box-shadow .35s ease, filter .35s ease; }
.proj-grid .work .media { grid-area: 1 / 1 / -1 / -1; aspect-ratio: auto; height: 100%; border-radius: 0; z-index: -1; }
.proj-grid .work .slot { z-index: 1; }

/* Sombra só em baixo, para o texto se ler; o resto da foto fica com as cores naturais */
.proj-grid .work .media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,18,17,.78) 0%, rgba(20,18,17,.38) 28%, rgba(20,18,17,0) 52%); }

/* Texto: área em cima; título à esquerda e local à direita, na mesma linha */
.proj-grid .work-type, .proj-grid .work h3, .proj-grid .work .meta { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.proj-grid .work-type { grid-row: 2; grid-column: 1 / -1; padding-inline: 22px; color: rgba(255,255,255,.9); }
.proj-grid .work h3 { grid-row: 3; grid-column: 1; margin: 8px 0 20px; padding-left: 22px; font-weight: 500; }
.proj-grid .work .meta { grid-row: 3; grid-column: 2; align-self: end; margin: 0 0 22px; padding: 0 22px 0 16px;
  text-align: right; font-size: 0.88rem; color: rgba(255,255,255,.85); }

/* Ao passar o rato: a obra cresce e as outras recuam um pouco (só em computadores) */
@media (hover: hover) {
  .proj-grid .work:hover, .proj-grid .work:focus-visible { transform: scale(1.08); z-index: 2;
    box-shadow: 0 22px 44px rgba(0,0,0,.28); }
  .proj-grid:has(.work:hover) .work:not(:hover) { transform: scale(.97); filter: saturate(.75) brightness(.92); }
}

/* Menos espaço entre secções */
.section { padding-block: clamp(42px, 7vw, 60px); }

/* Obras das páginas das áreas e da página inicial: todas com o mesmo estilo */
.works:not(.proj-grid) .work .media { border-radius: 0 0 0 70px; }

/* Texto secundário, mais pequeno e discreto */
.col .nota { font-size: 0.86rem; line-height: 1.6; color: var(--muted); margin-top: 6px; }