/* Pallagencia website
   Layout follows the ON.energy reference (styles.refero.design): full-bleed acts in three modes
   (dark, Pall red statement, light content), light headlines with tight tracking, small radii,
   no shadows, no gradients. Colours and letters are those of the Pall brand (the pallagencia.com page). */

/* Public Sans and IBM Plex Mono (SIL OFL 1.1, assets/fontes/OFL-*.txt), self-hosted */
@font-face {
  font-family: 'Public Sans'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fontes/public-sans-100-900-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Public Sans'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fontes/public-sans-100-900-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans'; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url(fontes/public-sans-100-900-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Public Sans'; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url(fontes/public-sans-100-900-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fontes/ibm-plex-mono-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fontes/ibm-plex-mono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fontes/ibm-plex-mono-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fontes/ibm-plex-mono-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fontes/ibm-plex-mono-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fontes/ibm-plex-mono-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Pall red in the role of ON.energy "caution yellow". */
  --vermelho: #B80020;
  --vermelho-escuro: #900818;
  --vermelho-claro: #F9E6E9;
  --vermelho-fantasma: rgba(255, 255, 255, .3);   /* ghost text on red */
  --branco: #FFFFFF;
  --texto: #2A2A2A;                          /* text on light */
  --preto: #141414;                          /* dark canvas */
  --carbono: #2A2A2A;                        /* dark buttons, dark cards */
  --carbono-2: #1F1F1F;
  --aco: #444444;                            /* hairlines on dark */
  --aluminio: #B5B5B5;                       /* secondary text on dark */
  --claro: #F5F5F5;                          /* text on dark */
  --claro-2: #F9E6E9;
  --linha-clara: #DDDDDD;
  --texto-2: #666666;

  --letra: 'Public Sans', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --r-botao: 6px;
  --r-cartao: 9px;
  --r-imagem: 16px;
  --r-seccao: 24px;

  --margem: clamp(16px, 3vw, 40px);
  --gap-seccao: clamp(72px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
/* Page change as on ON.energy: the menu stays, the content fades out (0.8s), the next page or
   section is already in place (no scrolling) and fades in (assets/site.js, "Page change") */
main, .rodape { animation: paginaEntra .6s ease both; }
html.saindo main, html.saindo .rodape { animation: paginaSai .8s ease forwards; }
@keyframes paginaEntra { from { opacity: 0; } to { opacity: 1; } }
@keyframes paginaSai { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  main, .rodape, html.saindo main, html.saindo .rodape { animation: none; }
}
body {
  margin: 0;
  background: var(--preto);
  color: var(--claro);
  font-family: var(--letra);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.38;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--vermelho); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.display, h1 {
  font-weight: 300;
  font-size: clamp(40px, 6.2vw, 92px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0;
}
h2, .titulo {
  font-weight: 300;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
}
h3 {
  font-weight: 300;
  font-size: 24px;
  line-height: 1.17;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
p { margin: 0 0 16px; }
.corpo { max-width: 34em; }
.pequeno { font-size: 14px; line-height: 1.3; }
.etiqueta { font-family: var(--mono); font-size: 13px; letter-spacing: .02em; color: var(--aluminio); margin: 0 0 20px; }
.claro .etiqueta { color: var(--texto-2); }

/* ---------- Navigation (ON.energy: logo, row of equal dark buttons, one yellow action) ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 6px;
  padding: 12px var(--margem);
  transition: background-color .3s ease;
}
.nav.solido { background: var(--preto); }
.nav__logo { flex: 0 0 auto; display: flex; align-items: center; height: 50px; padding-right: 18px; }
.nav__logo img { height: clamp(38px, 3.5vw, 50px); width: auto; }
.nav > nav { flex: 1; min-width: 0; }
.nav__itens { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nav__itens > li { flex: 1; position: relative; }
/* ON.energy: translucent light buttons, the pointed one turns light, the rest fade to half */
.nav__botao {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; height: 37px; padding: 0 14px;
  background: rgba(237, 237, 237, .2);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  color: var(--claro); text-decoration: none; font: inherit; font-size: 14px; white-space: nowrap;
  border: 0; border-radius: 8px; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, opacity .15s ease;
}
.nav__itens:hover .nav__botao { color: rgba(245, 245, 245, .5); }
.nav__itens .nav__botao:hover, .nav__itens .nav__grupo.aberto .nav__botao { background: var(--claro); color: var(--preto); }
.nav__botao[aria-current="page"], .nav__botao.actual { box-shadow: inset 0 -2px 0 var(--vermelho); }
.nav__botao svg { width: 10px; height: 10px; opacity: .7; flex: 0 0 auto; transition: transform .3s cubic-bezier(.16,1,.3,1); }
.nav__grupo.aberto .nav__botao svg { transform: rotate(180deg); }

/* Dropdown: separate pills that drop in one after another */
.nav__sub {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 100%; width: max-content; max-width: 340px;
  display: flex; flex-direction: column; gap: 4px;
  margin: 0; padding: 0; list-style: none;
  visibility: hidden; pointer-events: none;
  transition: visibility 0s linear .25s;
}
.nav__grupo.aberto .nav__sub { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.nav__sub li {
  opacity: 0; transform: translateY(-10px);
  transition: opacity .2s ease, transform .2s ease;
}
.nav__grupo.aberto .nav__sub li {
  opacity: 1; transform: none;
  transition: opacity .5s cubic-bezier(.16,1,.3,1), transform .5s cubic-bezier(.16,1,.3,1);
  transition-delay: calc(var(--i) * 50ms + 60ms);
}
.nav__sub a {
  display: block; padding: 10px 14px; font-size: 14px; line-height: 1.2; white-space: nowrap;
  text-decoration: none; color: var(--claro);
  background: rgba(40, 40, 40, .62);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-radius: 8px;
  transition: background-color .2s ease, color .2s ease;
}
.nav__sub:hover a { color: rgba(245, 245, 245, .55); }
.nav__sub a:hover, .nav__sub a:focus-visible { background: var(--claro); color: var(--preto); outline: none; }
.nav__accao { flex: 0 0 auto; }
.botao {
  display: inline-flex; align-items: center; gap: 10px;
  height: 36px; padding: 0 16px;
  font: inherit; font-size: 14px; text-decoration: none; white-space: nowrap;
  border: 0; border-radius: var(--r-botao); cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.botao--vermelho { background: var(--vermelho); color: var(--branco); }
.botao--vermelho:hover { background: var(--vermelho-escuro); }
.botao--escuro { background: var(--carbono); color: var(--claro); }
.botao--escuro:hover { background: var(--aco); }
.botao--preto { background: var(--preto); color: var(--claro); }
.botao--preto:hover { background: var(--carbono); }
.botao svg { width: 12px; height: 12px; }
.nav__menu { display: none; }

@media (max-width: 960px) {
  .nav__itens, .nav__accao { display: none; }
  .nav { justify-content: space-between; }
  .nav__menu { display: inline-flex; }
}
.gaveta {
  position: fixed; inset: 0; z-index: 60; background: var(--preto);
  display: flex; flex-direction: column; padding: 12px var(--margem) 32px;
  transform: translateY(-100%); transition: transform .35s ease; visibility: hidden;
}
.gaveta.aberta { transform: none; visibility: visible; }
.gaveta__topo { display: flex; justify-content: space-between; align-items: center; height: 36px; margin-bottom: 40px; }
.gaveta__topo img { height: 40px; }
.gaveta ul { list-style: none; margin: 0; padding: 0; }
.gaveta li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--aco); text-decoration: none; font-size: 28px; font-weight: 300; letter-spacing: -0.03em; }
.gaveta li ul a { font-size: 17px; font-weight: 400; letter-spacing: 0; padding: 10px 0 10px 16px; color: var(--aluminio); }
.gaveta .botao { margin-top: 32px; align-self: flex-start; height: 44px; }

/* ---------- Hero (full-bleed dark photograph) ---------- */
.heroi {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px var(--margem) clamp(28px, 4vw, 48px);
  overflow: hidden; isolation: isolate;
}
.heroi--pagina { min-height: 72vh; min-height: 72svh; }
.heroi__foto {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.12) brightness(.5);
}
video.heroi__foto { pointer-events: none; }
/* Home hero video (black and white clip with the flare in colour): keep the colour, frame the flare boom */
video.heroi__video { filter: contrast(1.06) brightness(.62); object-position: 100% 86%; background: #2a2a2a; }

/* Live scene (assets/cena.js): the photo stays fixed; a WebGL canvas over it moves only the sea, clouds and flare */
.heroi__cena { position: absolute; inset: 0; z-index: -1; }
.heroi__cena .heroi__foto { z-index: 0; transition: opacity .8s ease; }
.heroi__gl {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  opacity: 0; transition: opacity .8s ease;
}
.heroi__cena.gl-pronto .heroi__gl { opacity: 1; }
.heroi__cena.gl-pronto .heroi__foto { opacity: 0; }
/* Photo of the menu item being pointed at, laid over the live scene (assets/site.js) */
.heroi__troca { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.heroi__troca img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.12) brightness(.5);
  opacity: 0; transform: scale(1.06);
  transition: opacity .6s cubic-bezier(.16,1,.3,1), transform 1.4s cubic-bezier(.16,1,.3,1);
}
.heroi__troca img.on { opacity: 1; transform: none; }
.heroi__texto, .heroi__fundo { will-change: translate, opacity; }
.heroi__texto .pal {
  display: inline-block; opacity: 0; transform: translateY(.35em); filter: blur(8px);
  animation: sobe 1s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: calc(var(--i) * 90ms + 250ms);
}
@keyframes sobe { to { opacity: 1; transform: none; filter: none; } }
.heroi__texto { max-width: 15ch; }
/* Home: the headline sits at the vertical middle, on the left; the strip below stays at the bottom */
/* Size and spacing as in the ON.energy hero title (.title): 9.6vw on phones, 4.44vw (at least 80px) from 834px */
.heroi:not(.heroi--pagina) .heroi__texto {
  margin-block: auto;
  font-size: clamp(2.8rem, 9.6vw, 9.6vw); letter-spacing: -.02em; line-height: 1.167;
}
@media (min-width: 834px) {
  .heroi:not(.heroi--pagina) .heroi__texto {
    position: absolute; left: max(var(--margem), 2.5vw); top: 50%; transform: translateY(-50%); margin: 0;
    font-size: clamp(5rem, 4.44444vw, 4.44444vw); letter-spacing: -.04em; line-height: 1.125;
  }
}
.heroi--pagina .heroi__texto { max-width: 18ch; }
.heroi__fundo {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-top: clamp(32px, 6vw, 80px);
}
.heroi__fundo .pequeno { color: #E2E2E2; max-width: 30em; margin: 0; }
.destaque {
  display: flex; gap: 14px; align-items: stretch;
  width: min(360px, 100%); padding: 12px; text-decoration: none;
  background: var(--vermelho); color: var(--branco); border-radius: var(--r-cartao);
  transition: transform .2s ease;
}
.destaque:hover { transform: translateY(-2px); }
.destaque__texto { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; font-size: 13px; line-height: 1.25; }
.destaque__texto strong { font-weight: 400; font-size: 15px; }
.destaque img { width: 84px; height: 84px; object-fit: cover; border-radius: 6px; }
@media (max-width: 720px) {
  .heroi__fundo { flex-direction: column; align-items: flex-start; }
}

/* ---------- Yellow statement (full-bleed, ghost words light up on scroll) ---------- */
.declaracao {
  background: var(--vermelho); color: var(--branco);
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: var(--gap-seccao) var(--margem);
}
.declaracao p {
  margin: 0; max-width: 24ch;
  font-weight: 300; font-size: clamp(30px, 4.4vw, 64px); line-height: 1.08; letter-spacing: -0.04em;
}
.declaracao .p { color: var(--vermelho-fantasma); transition: color .25s linear; }
.declaracao .p.acesa { color: var(--branco); }
.declaracao--curta { min-height: 0; }

/* ---------- Sections ---------- */
.seccao { padding: var(--gap-seccao) var(--margem); }
.claro { background: var(--branco); color: var(--texto); }
.escuro { background: var(--preto); color: var(--claro); }
.carbono { background: var(--carbono-2); color: var(--claro); }
.escuro p, .carbono p { color: var(--aluminio); }
.escuro h2, .escuro h3, .carbono h2, .carbono h3 { color: var(--claro); }

.duas { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.duas--centro { align-items: center; }
@media (max-width: 860px) { .duas { grid-template-columns: 1fr; } }

.cabeca { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 6vw, 96px); align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.cabeca h2 { margin: 0; }
.cabeca p { margin: 0; max-width: 32em; }
@media (max-width: 860px) { .cabeca { grid-template-columns: 1fr; } }

.foto { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-imagem); background: var(--claro-2); }
.foto--alta { aspect-ratio: 4 / 5; }
.foto--larga { aspect-ratio: 16 / 9; }

/* Service cards */
.grelha { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 16px; }
@media (max-width: 960px) { .grelha { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grelha { grid-template-columns: 1fr; } }
.cartao { text-decoration: none; display: block; transition: transform .25s ease; transform-style: preserve-3d; will-change: transform; }
.cartao .foto { margin-bottom: 18px; }

/* Photos are monochrome until touched, then the colour comes back (ON.energy restraint, Pall red on hover) */
.cartao .foto, .ferramentas img, .noticia .foto, .duas > .foto, .duas .foto, .linha .foto, .banda__foto img {
  filter: grayscale(1) contrast(1.06);
  transition: filter .6s ease, transform .6s cubic-bezier(.2,.7,.2,1);
}
.cartao:hover .foto, .cartao:focus-visible .foto,
.ferramentas figure:hover img,
.noticia:hover .foto,
.duas .foto:hover, .linha:hover .foto,
.banda:hover .banda__foto img { filter: none; }
.ferramentas figure { overflow: hidden; border-radius: var(--r-imagem); }
.ferramentas figure img { border-radius: var(--r-imagem); }
.ferramentas figure:hover img { transform: scale(1.04); }
.banda__foto img { transform: scale(1.02); }
.banda:hover .banda__foto img { transform: scale(1.06); }
@media (hover: none) {
  .cartao .foto, .ferramentas img, .noticia .foto, .duas .foto, .linha .foto { filter: grayscale(.35); }
}
.cartao h3 { margin: 0 0 6px; }
.cartao span { font-size: 14px; color: var(--texto-2); display: inline-flex; align-items: center; gap: 8px; }
.cartao span svg { width: 12px; height: 12px; transition: transform .2s ease; }
.cartao:hover span svg { transform: translateX(3px); }

.mais { margin-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--linha-clara); }
.mais__linha { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--linha-clara); }
.mais__linha p { margin: 0; }
.mais ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 18px; font-weight: 300; }
@media (max-width: 640px) { .mais__linha { grid-template-columns: 1fr; } }

/* Split image band (text left, photo bleeding right) */
.banda { display: grid; grid-template-columns: 1fr 1.25fr; min-height: 90vh; background: var(--preto); }
.banda__texto { padding: var(--gap-seccao) var(--margem); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.banda__texto h2 { font-size: clamp(36px, 4.8vw, 72px); line-height: 1.02; }
.banda__foto { position: relative; overflow: hidden; }
.banda__foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.85) contrast(1.08) brightness(.82); }
@media (max-width: 860px) {
  .banda { grid-template-columns: 1fr; min-height: 0; }
  .banda__foto { aspect-ratio: 4 / 3; }
}

/* Hairline rows (lists of places, pillars, equipment) */
.linhas { border-top: 1px solid var(--aco); }
.claro .linhas, .claro .linhas .linha { border-color: var(--linha-clara); }
.linha { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--aco); }
.linha h3 { margin: 0; }
.linha p { margin: 0; }
.linha address { font-style: normal; color: var(--aluminio); }
.claro .linha address { color: var(--texto-2); }
@media (max-width: 720px) { .linha { grid-template-columns: 1fr; gap: 8px; } }

.lista { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linha-clara); }
.lista li { padding: 12px 0; border-bottom: 1px solid var(--linha-clara); font-size: 17px; }
.escuro .lista, .escuro .lista li, .carbono .lista, .carbono .lista li { border-color: var(--aco); color: var(--claro); }
.lista--duas { columns: 2; column-gap: 32px; border-top: 0; }
.lista--duas li { break-inside: avoid; }
.lista--duas li:first-child, .lista--duas li { border-top: 0; }
@media (max-width: 560px) { .lista--duas { columns: 1; } }

/* Tools grid (product shots) */
.ferramentas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 16px; }
@media (max-width: 960px) { .ferramentas { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .ferramentas { grid-template-columns: repeat(2, 1fr); } }
.ferramentas figure { margin: 0; }
.ferramentas img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-imagem); }
.ferramentas figcaption { margin-top: 12px; font-size: 18px; font-weight: 300; letter-spacing: -0.02em; }

/* News */
.noticias { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 16px; }
@media (max-width: 860px) { .noticias { grid-template-columns: 1fr; } }
.noticia .foto { margin-bottom: 20px; aspect-ratio: 16 / 10; }
.noticia p { color: var(--texto-2); max-width: 36em; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-imagem); overflow: hidden; background: var(--carbono); margin-bottom: 20px; }
.video iframe, .video button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video button { padding: 0; cursor: pointer; background: var(--carbono); }
.video button img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.7); }
.video button span {
  position: absolute; left: 20px; bottom: 20px;
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px;
  background: var(--vermelho); color: var(--branco); border-radius: var(--r-botao); font: 400 14px var(--letra);
}
.video button span svg { width: 12px; height: 12px; }

/* Values (three words on yellow) */
.valores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.valor { padding-top: 20px; border-top: 1px solid rgba(0,0,0,.35); }
.valor h3 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.04em; margin-bottom: 16px; }
.valor p { color: var(--preto); }
@media (max-width: 860px) { .valores { grid-template-columns: 1fr; } }

/* Section anchors bar on services page */
.indice { display: flex; flex-wrap: wrap; gap: 6px; }
.indice a { text-decoration: none; }

/* Contact form */
.formulario { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.formulario label { display: block; font-size: 14px; color: var(--texto-2); padding-top: 18px; }
.formulario .inteiro { grid-column: 1 / -1; }
.formulario input, .formulario textarea {
  width: 100%; margin-top: 6px; padding: 10px 0;
  background: transparent; color: var(--preto); font: 300 20px var(--letra); letter-spacing: -0.01em;
  border: 0; border-bottom: 1px solid var(--linha-clara); border-radius: 0;
}
.formulario textarea { min-height: 120px; resize: vertical; }
.formulario input:focus, .formulario textarea:focus { outline: none; border-bottom-color: var(--preto); }
.formulario .botao { margin-top: 32px; height: 44px; }
.formulario__nota { grid-column: 1 / -1; font-size: 14px; color: var(--texto-2); margin-top: 16px; }
@media (max-width: 640px) { .formulario { grid-template-columns: 1fr; } }

/* ---------- Footer (yellow panel, big mark) ---------- */
.rodape { background: var(--preto); padding: 16px; }
.rodape__painel {
  background: var(--vermelho); color: var(--branco); border-radius: var(--r-seccao);
  padding: clamp(24px, 4vw, 48px);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; min-height: 70vh;
}
.rodape__marca { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.rodape__marca p { font-weight: 300; font-size: clamp(26px, 3vw, 40px); line-height: 1.08; letter-spacing: -0.04em; max-width: 14ch; margin: 0; }
.rodape__marca img { width: min(100%, 228px); height: auto; }
.rodape__links { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.rodape__links ul { list-style: none; margin: 0; padding: 0; }
.rodape__links li a { display: block; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.35); text-decoration: none; font-size: clamp(20px, 2vw, 26px); font-weight: 300; letter-spacing: -0.02em; }
.rodape__links li a:hover { padding-left: 6px; transition: padding .2s ease; }
.rodape__fim { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; }
.rodape__fim a { text-decoration: none; }
@media (max-width: 860px) { .rodape__painel { grid-template-columns: 1fr; min-height: 0; } }

/* ---------- Reveal on scroll ---------- */
.surge { opacity: 0; transform: translateY(18px); filter: blur(6px); transition: opacity .8s ease, transform .8s ease, filter .8s ease; }
.surge.vista { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) { .surge { opacity: 1; transform: none; filter: none; transition: none; } }

/* Photos are never cropped: the whole photo sits inside its frame, and the space left over
   shows a blurred copy of the same photo (assets/fotos/fundo, set by assets/site.js) */
img.inteira {
  object-fit: contain !important;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}

/* Photo sheet: the photo whole on the left, what it shows and its service on the right (assets/site.js) */
.abre-ficha { cursor: zoom-in; }
[data-ficha] { cursor: pointer; }
.ficha {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(12px, 3vw, 40px);
  background: rgba(0, 0, 0, .78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility 0s linear .35s;
}
.ficha.aberta { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.ficha__caixa {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  width: min(1240px, 100%); max-height: 100%;
  background: var(--carbono); border-radius: var(--r-cartao); overflow: hidden;
  transform: translateY(14px) scale(.98);
  transition: transform .6s cubic-bezier(.16,1,.3,1);
}
.ficha.aberta .ficha__caixa { transform: none; }
.ficha__foto { background: #1c1c1c; display: flex; align-items: center; justify-content: center; min-height: 0; }
.ficha__foto img { width: 100%; height: 100%; max-height: calc(100vh - 80px); object-fit: contain; display: block; }
.ficha__texto { display: flex; flex-direction: column; gap: 14px; padding: clamp(20px, 3vw, 36px); overflow-y: auto; color: var(--claro); }
.ficha__texto > * {
  margin: 0; opacity: 0; transform: translateY(-10px);
  transition: opacity .5s cubic-bezier(.16,1,.3,1), transform .5s cubic-bezier(.16,1,.3,1);
}
.ficha.aberta .ficha__texto > * { opacity: 1; transform: none; }
.ficha.aberta .ficha__texto > :nth-child(2) { transition-delay: 50ms; }
.ficha.aberta .ficha__texto > :nth-child(3) { transition-delay: 100ms; }
.ficha.aberta .ficha__texto > :nth-child(4) { transition-delay: 150ms; }
.ficha.aberta .ficha__texto > :nth-child(5) { transition-delay: 200ms; }
.ficha.aberta .ficha__texto > :nth-child(6) { transition-delay: 250ms; }
.ficha__servico { font-family: var(--mono); font-size: 13px; color: var(--vermelho); }
.ficha__texto h3 { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; }
.ficha__explica { font-size: 18px; line-height: 1.4; }
.ficha__sobre { font-size: 15px; line-height: 1.5; color: var(--aluminio); }
.ficha__ir, .ficha__fechar { align-self: flex-start; }
.ficha__fechar { margin-top: auto !important; }
.ficha [hidden] { display: none; }
@media (max-width: 820px) {
  .ficha { align-items: flex-end; padding: 0; }
  .ficha__caixa { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); border-radius: var(--r-cartao) var(--r-cartao) 0 0; max-height: 92vh; }
  .ficha__foto img { max-height: 46vh; }
  .ficha__fechar { margin-top: 8px !important; }
}

/* Gallery: big frame, the next photo rises into view (clip from the bottom) and settles from a slight zoom */
.galeria { margin: 72px 0 0; }
.galeria--pequena { margin: 0 0 16px; }
.galeria__quadro {
  position: relative; width: 100%; aspect-ratio: 16 / 10; max-height: 82vh;
  border-radius: var(--r-imagem); overflow: hidden; background: #1c1c1c;
}
.galeria--pequena .galeria__quadro { aspect-ratio: 4 / 3; }
.galeria__foto {
  position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0;
  clip-path: inset(100% 0 0 0); transform: scale(1.08); z-index: 0;
  transition: clip-path 1.1s cubic-bezier(.16,1,.3,1), transform 1.6s cubic-bezier(.16,1,.3,1), filter .6s ease !important;
}
.galeria__foto.on { clip-path: inset(0 0 0 0); transform: none; z-index: 2; }
.galeria__foto.sai { clip-path: inset(0 0 0 0); transform: scale(.97); z-index: 1; transition: transform 1.2s cubic-bezier(.16,1,.3,1), filter .6s ease !important; }
.galeria__legenda { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 14px; color: var(--aluminio); }
.galeria__botoes { display: flex; gap: 6px; }
.galeria__botoes button {
  position: relative; overflow: hidden;
  height: 34px; padding: 0 14px; font: inherit; font-size: 13px; cursor: pointer;
  color: var(--claro); background: rgba(237, 237, 237, .14); border: 0; border-radius: 8px;
  transition: background-color .2s ease, color .2s ease;
}
.claro .galeria__botoes button { color: var(--preto); background: var(--claro-2); }
.galeria__botoes button:hover, .galeria__botoes button[aria-pressed="true"] { background: var(--claro); color: var(--preto); }
.galeria__barra { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--vermelho); transform: scaleX(0); transform-origin: left; }
.galeria.corre button[aria-pressed="true"] .galeria__barra { animation: galeriaBarra 5s linear forwards; }
.galeria.corre:hover button[aria-pressed="true"] .galeria__barra { animation-play-state: paused; }
@keyframes galeriaBarra { to { transform: scaleX(1); } }
@media (max-width: 720px) { .galeria__quadro { aspect-ratio: 4 / 3; } }
@media (prefers-reduced-motion: reduce) { .galeria__foto, .galeria__foto.sai { transition: none !important; } }
/* Never enlarge a gallery photo beyond its own pixels (a small photo stays sharp, framed by its blurred copy) */
.galeria__foto.inteira { object-fit: scale-down !important; }
/* The last group sits next to the Contact button: its dropdown opens towards the left */
.nav__itens > li:last-child .nav__sub { left: auto; right: 0; }

/* Photos (not of people) enter and then keep moving, as the moving images on ON.energy.
   The photo zooms and drifts inside its own frame: the clip-path insets cancel the scale and
   the shift, so the frame stays the same size (assets/site.js adds .mexe, then .visto). */
img.mexe:not(.visto) { opacity: 0; }  /* transparent, not clipped: the observer ignores fully clipped elements */
img.mexe.visto {
  animation: fotoEntra 1.4s cubic-bezier(.16,1,.3,1) both,
             fotoDeriva 16s ease-in-out 1.4s infinite alternate;
  animation-delay: var(--atraso, 0s), calc(var(--atraso, 0s) + 1.4s);
}
@keyframes fotoEntra {
  from { clip-path: inset(100% 5.36% 5.36% 5.36% round var(--r-imagem)); transform: scale(1.12); }
  60%  { clip-path: inset(0 1.2% 1.2% 1.2% round var(--r-imagem)); transform: scale(1.025); }
  to   { clip-path: inset(0 0 0 0 round var(--r-imagem)); transform: none; }
}
@keyframes fotoDeriva {
  from { clip-path: inset(0 0 0 0 round var(--r-imagem)); transform: none; }
  to   { clip-path: inset(3.33% .95% 1.43% 3.81% round var(--r-imagem)); transform: translate(-1.5%, -1%) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  img.mexe, img.mexe.visto { clip-path: none; transform: none; animation: none; }
}

/* Certificates: shown in colour and upright, on white, never cropped */
.certificados img, .certificados img.inteira { filter: none !important; aspect-ratio: 3 / 4; object-fit: contain; background: #fff !important; padding: 10px; box-sizing: border-box; }

/* ---------- Locations map (assets/mapa.js) ---------- */
.mapa { display: grid; grid-template-columns: minmax(280px, 1fr) 1.7fr; gap: clamp(24px, 4vw, 64px); align-items: start; margin-top: 48px; }
.mapa__lista, .mapa__lista ul { list-style: none; margin: 0; padding: 0; }
.mapa__lista > li { border-top: 1px solid var(--aco); }
.mapa__lista > li:last-child { border-bottom: 1px solid var(--aco); }
.mapa__lista ul { padding: 0 0 12px 18px; }
.mapa__lista button {
  all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 14px 0; cursor: pointer; font-size: 18px; color: var(--claro); transition: color .2s ease;
}
.mapa__lista ul button { padding: 7px 0; font-size: 15px; color: var(--aluminio); }
.mapa__lista button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1px solid currentColor; flex: none; transition: background .2s ease; }
.mapa__lista button:hover, .mapa__lista button[aria-pressed="true"] { color: var(--vermelho); }
.mapa__lista button[aria-pressed="true"]::before { background: var(--vermelho); border-color: var(--vermelho); }
.mapa__lista button:focus-visible { outline: 2px solid var(--vermelho); outline-offset: 4px; }
.mapa__fichas { margin-top: 32px; }
.mapa__info { animation: paginaEntra .5s ease both; }
.mapa__info[hidden] { display: none; }
.mapa__info .foto { width: 100%; aspect-ratio: 4 / 3; margin-bottom: 18px; border-radius: var(--r-imagem); object-fit: cover; }
.mapa__info h2 { font-size: 24px; line-height: 1.17; letter-spacing: -0.02em; margin: 4px 0 8px; color: var(--claro); }
.mapa__info address { font-style: normal; color: var(--aluminio); margin-bottom: 12px; }
.mapa__info p { color: var(--aluminio); }
.mapa__info .botao { margin-top: 12px; }
.mapa__quadro { position: relative; aspect-ratio: 82.5 / 74; border-radius: var(--r-imagem); background: #0b0b0b; overflow: hidden; }
.mapa__quadro svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mapa__terra { fill: #4a4a4a; transition: opacity .2s linear; }
.mapa__terra--perto { fill: #5a5a5a; }
.mapa__pino {
  all: unset; position: absolute; transform: translate(-7px, -7px); display: flex; align-items: center; gap: 10px;
  cursor: pointer; color: var(--claro); font-size: 14px; white-space: nowrap;
}
.mapa__pino[hidden] { display: none; }
.mapa__pino i { position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--vermelho); flex: none; }
.mapa__pino i::after {
  content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid var(--vermelho);
  animation: pinoPulsa 2.4s ease-out infinite;
}
.mapa__pino span { padding: 4px 9px; border-radius: 6px; background: rgba(0,0,0,.72); transition: background .2s ease, color .2s ease; }
.mapa__pino:hover span, .mapa__pino[aria-pressed="true"] span { background: var(--vermelho); color: var(--branco); }
.mapa__pino:focus-visible span { outline: 2px solid var(--vermelho); outline-offset: 2px; }
@keyframes pinoPulsa { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.mapa__voltar { position: absolute; left: 16px; bottom: 16px; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.mapa.perto .mapa__voltar { opacity: 1; pointer-events: auto; }
@media (max-width: 860px) {
  .mapa { grid-template-columns: 1fr; }
  .mapa__quadro { order: -1; }
}
@media (prefers-reduced-motion: reduce) { .mapa__pino i::after { animation: none; } }
.mapa__pino--esq { flex-direction: row-reverse; transform: translate(calc(-100% + 7px), -7px); }

/* Locations opens straight on the map: no hero, the map and the list fill the first screen */
.mapa-ecra { min-height: 100vh; min-height: 100svh; padding: 88px var(--margem) 24px; display: flex; }
.mapa-ecra .mapa { --alto: calc(100svh - 112px); flex: 1; margin: 0; display: flex; gap: clamp(24px, 3vw, 48px); align-items: stretch; justify-content: center; }
.mapa-ecra .mapa__lado { flex: 0 1 400px; min-width: 280px; max-height: var(--alto); overflow-y: auto; scrollbar-width: thin; padding-right: 4px; }
.mapa__titulo { font-size: clamp(2.2rem, 3.2vw, 3.4rem); letter-spacing: -.03em; line-height: 1.05; margin: 8px 0 24px; }
.mapa-ecra .mapa__fichas { margin-top: 24px; }
.mapa-ecra .mapa__info .foto { aspect-ratio: 16 / 9; }
.mapa-ecra .mapa__quadro { flex: 0 1 auto; width: min(100%, calc(var(--alto) * 82.5 / 74)); align-self: center; }
@media (max-width: 860px) {
  .mapa-ecra { padding-top: 80px; }
  .mapa-ecra .mapa { flex-direction: column; justify-content: flex-start; }
  .mapa-ecra .mapa__quadro { order: -1; width: 100%; }
  .mapa-ecra .mapa__lado { flex: none; max-height: none; overflow: visible; min-width: 0; }
  .mapa__titulo { margin-top: 4px; }
}
@media (min-width: 861px) and (max-height: 900px) {
  .mapa__titulo { margin-bottom: 14px; }
  .mapa-ecra .mapa__fichas { margin-top: 16px; }
  .mapa-ecra .mapa__lista > li > button { padding-block: 10px; }
  .mapa-ecra .mapa__lista ul button { padding-block: 4px; }
}
/* the photo of the chosen site takes whatever height the panel has left, so nothing scrolls */
@media (min-width: 861px) {
  .mapa-ecra .mapa__lado { display: flex; flex-direction: column; height: var(--alto); }
  .mapa-ecra .mapa__fichas { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .mapa-ecra .mapa__info:not([hidden]) { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: flex-start; }
  .mapa-ecra .mapa__info .foto { flex: 1 1 0; min-height: 90px; max-height: 300px; aspect-ratio: auto; margin-bottom: 14px; }
}

/* Language switch (EN / PT), next to the Contact button */
.nav__lingua { flex: 0 0 auto; width: auto; padding: 0 12px; justify-content: center; }
.nav__lingua:hover { background: var(--claro); color: var(--preto); }

/* Property facts on each space for rent, and the leasing enquiry form on a dark section */
.imovel { margin-top: 32px; }
.imovel .linha { padding: 14px 0; }
.imovel .linha h3 { font-size: 15px; color: var(--texto-2); font-weight: 400; }
.formulario select {
  width: 100%; margin-top: 6px; padding: 10px 0; appearance: none; -webkit-appearance: none;
  background: transparent url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"%3E%3Cpath d="M2 3.5 5 6.5 8 3.5" fill="none" stroke="%23999" stroke-width="1.4"/%3E%3C/svg%3E') no-repeat right 4px center / 12px;
  color: var(--preto); font: 300 20px var(--letra); letter-spacing: -0.01em;
  border: 0; border-bottom: 1px solid var(--linha-clara); border-radius: 0; cursor: pointer;
}
.formulario select:focus { outline: none; border-bottom-color: var(--preto); }
.escuro .formulario label { color: var(--aluminio); }
.escuro .formulario input, .escuro .formulario textarea, .escuro .formulario select { color: var(--claro); border-bottom-color: var(--aco); color-scheme: dark; }
.escuro .formulario input:focus, .escuro .formulario textarea:focus, .escuro .formulario select:focus { border-bottom-color: var(--vermelho); }
.escuro .formulario select option { background: var(--preto); color: var(--claro); }
.escuro .formulario__nota { color: var(--aluminio); }

/* Impeccable pass 11/11: skip link, focus that shows on every background, touch targets, wrapping */
.saltar { position: fixed; left: 12px; top: -60px; z-index: 1000; padding: 10px 16px; border-radius: 6px; background: var(--vermelho); color: var(--branco); font-size: 15px; text-decoration: none; transition: top .2s ease; }
.saltar:focus { top: 12px; outline: 2px solid var(--preto); outline-offset: 2px; }
main:focus { outline: none; }
.claro :focus-visible { outline-color: var(--preto); }
.formulario input:focus-visible, .formulario textarea:focus-visible, .formulario select:focus-visible { box-shadow: 0 2px 0 0 var(--preto); }
.escuro .formulario input:focus-visible, .escuro .formulario textarea:focus-visible, .escuro .formulario select:focus-visible { box-shadow: 0 2px 0 0 var(--vermelho); }
@media (pointer: coarse) {
  .botao { min-height: 44px; }
  .mapa__lista button { min-height: 44px; }
}
h1, h2, h3, .display, .titulo { text-wrap: balance; }
p, li, address { text-wrap: pretty; }
.heroi__fundo p, .heroi__fundo a { text-shadow: 0 1px 12px rgba(0,0,0,.55); }
/* map dots on a canvas (mapa.js): they move away from the mouse */
.mapa__tela { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Home hero: Luanda bay and the Ilha (Pexels photo; city held still, only sky and sea animated in Higgsfield, slowed down; one-way loop closed with a 3 s crossfade) */
.heroi__foto--luanda, video.heroi__video--luanda { object-position: 50% 50%; filter: brightness(.55) contrast(1.05) saturate(.9); }

/* ---------- Pallagencia: service pages built from the knowledge base (build.py ficha()) ---------- */
.servico + .servico__detalhe { padding-top: 0; }
.servico__sub { font-size: 18px; color: var(--texto-2); margin: -4px 0 20px; }
.claro h3 { font-weight: 400; font-size: 22px; letter-spacing: -0.01em; margin: 0 0 16px; }
.factos { margin: 0; border-top: 1px solid var(--linha-clara); }
.factos > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--linha-clara); }
.factos dt { font-family: var(--mono); font-size: 13px; color: var(--texto-2); padding-top: 3px; }
.factos dd { margin: 0; font-size: 17px; }
.escuro .factos, .escuro .factos > div { border-color: var(--aco); }
.ref { font-family: var(--mono); font-size: 12px; color: var(--vermelho); text-decoration: none; white-space: nowrap; }
.ref:hover { text-decoration: underline; }
.aviso { margin-top: 24px; padding: 16px 18px; border: 1px solid #C98A00; border-radius: var(--r-cartao); }
.aviso p { margin: 0; }
.aviso__titulo { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #8A5E00; margin-bottom: 6px !important; }
.aviso--petroleo { border-color: transparent; background: var(--vermelho-claro); }
.aviso--petroleo .aviso__titulo { color: var(--vermelho-escuro); }
.documentos__conta { font-family: var(--mono); font-size: 13px; color: var(--texto-2); margin: -6px 0 12px; }
.documentos__lista { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linha-clara); }
.documentos__lista li { border-bottom: 1px solid var(--linha-clara); }
.documentos__lista label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; cursor: pointer; font-size: 16px; line-height: 1.4; }
.documentos__lista input { accent-color: var(--vermelho); width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.documentos__lista input:checked + span { color: var(--texto-2); }
.passos { margin: 0; padding: 0; list-style: none; counter-reset: passo; border-top: 1px solid var(--linha-clara); }
.passos li { counter-increment: passo; display: grid; grid-template-columns: 44px 1fr; padding: 12px 0; border-bottom: 1px solid var(--linha-clara); font-size: 16px; line-height: 1.4; }
.passos li::before { content: counter(passo, decimal-leading-zero); font-family: var(--mono); font-size: 13px; color: var(--vermelho); padding-top: 2px; }
.perguntas { margin-top: clamp(48px, 6vw, 72px); max-width: 52em; }
.perguntas details { border-top: 1px solid var(--linha-clara); }
.perguntas details:last-child { border-bottom: 1px solid var(--linha-clara); }
.perguntas summary { cursor: pointer; padding: 14px 0; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.perguntas summary::-webkit-details-marker { display: none; }
.perguntas summary::after { content: "+"; font-family: var(--mono); color: var(--vermelho); }
.perguntas details[open] summary::after { content: "−"; }
.perguntas details p { margin: 0 0 16px; color: var(--texto-2); max-width: 44em; }
.fontes { margin-top: clamp(48px, 6vw, 72px); }
.duas .fontes { margin-top: 0; }
.fontes__lista { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linha-clara); }
.fontes__lista li { padding: 10px 0; border-bottom: 1px solid var(--linha-clara); font-size: 15px; line-height: 1.4; }
.fontes__lista a { color: inherit; text-decoration-color: var(--vermelho); text-underline-offset: 3px; }
.fonte__n { font-family: var(--mono); font-size: 12px; color: var(--vermelho); margin-right: 4px; }
.fontes__data { font-family: var(--mono); font-size: 12px; color: var(--texto-2); margin: 12px 0 0; }
.selo { font-family: var(--mono); font-size: 11px; letter-spacing: .03em; padding: 2px 6px; border: 1px solid currentColor; border-radius: 4px; white-space: nowrap; vertical-align: 1px; margin-left: 4px; }
.selo--oficial { color: #2E7D4F; }
.selo--secundaria { color: #8A5E00; }
.selo--interna { color: var(--vermelho); }
.nota-sme { margin: 24px 0 0; padding-left: 14px; border-left: 2px solid var(--vermelho); font-size: 15px; color: var(--texto-2); max-width: 40em; }
.escuro .nota-sme { color: var(--aluminio); }
/* Cards without photos: the service reference stands in for the picture */
.cartao--texto { padding: 22px 22px 24px; border: 1px solid var(--linha-clara); border-radius: var(--r-cartao); background: var(--branco); min-height: 220px; display: flex; flex-direction: column; }
.cartao--texto:hover { border-color: var(--vermelho); }
.cartao__ref { font-family: var(--mono); font-size: 13px; color: var(--vermelho); margin-bottom: auto; padding-bottom: 40px; }
.cartao--texto h3 { font-size: 24px; letter-spacing: -0.02em; }
.linha--ligacao { text-decoration: none; color: inherit; }
.linha--ligacao h3 { transition: color .2s ease; }
.linha--ligacao:hover h3 { color: var(--vermelho); }
.linha--ligacao p { color: var(--aluminio); margin: 0; }
.destaque--texto { min-height: 0; }
.valores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .valores { grid-template-columns: 1fr; } }
.valor { border-top-color: var(--linha-clara); }
.calculadora__resultado { display: block; min-height: 3em; font-size: 20px; font-weight: 300; padding-top: 18px; }
.calculadora__resultado strong { font-weight: 500; color: var(--claro); }
.calculadora__resultado .fora { color: #FF8A9A; }

/* ---------- Home intro (build.py abertura(), site.js): the red symbol turns in 3D, then the curtain lifts ---------- */
.abertura { display: none; }
html.abertura-on { overflow: hidden; }
html.abertura-on .abertura {
  display: flex; align-items: center; justify-content: center;
  position: fixed; inset: 0; z-index: 2000; background: var(--preto); cursor: pointer;
  animation: aberturaSobe .9s cubic-bezier(.7, 0, .2, 1) 3.6s forwards;
}
.abertura__logo { display: flex; align-items: center; gap: clamp(6px, 1.2vw, 14px); }
.abertura__palavra { height: clamp(52px, 9vw, 96px); width: auto; opacity: 0; translate: 24px 0; animation: palavraEntra .7s cubic-bezier(.2, .8, .2, 1) 2.5s forwards; }
.abertura__palco { perspective: 900px; width: clamp(96px, 16vw, 170px); aspect-ratio: 1; }
.abertura__simbolo { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: simboloRoda 2.6s cubic-bezier(.25, .1, .2, 1) .3s both; }
.abertura__camada { position: absolute; inset: 0; width: 100%; height: 100%; transform: translateZ(calc(var(--z) * -1.2px)); filter: brightness(calc(1 - var(--z) * .045)); backface-visibility: visible; }
.abertura__camada:first-child { filter: drop-shadow(0 0 18px rgba(184, 0, 32, .45)); }
@keyframes simboloRoda {
  0% { transform: rotateY(-540deg) rotateX(18deg) scale(.6); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: rotateY(0deg) rotateX(0deg) scale(1); opacity: 1; }
}
@keyframes palavraEntra { to { opacity: 1; translate: 0 0; } }
@keyframes aberturaSobe { to { transform: translateY(-101%); } }
@media (prefers-reduced-motion: reduce) { html.abertura-on .abertura { display: none; } html.abertura-on { overflow: auto; } }
/* Live 3D symbol (build.py SIMBOLO_3D): site.js waits for the Spline scene, then either shows it ("vivo") or plays
   the flat symbol ("plano"); a soft red glow holds the place meanwhile. The curtain lifts when site.js says ("sobe"). */
html.abertura-on .abertura--3d { animation: none; }
html.abertura-on .abertura--3d.abertura--sobe { animation: aberturaSobe .9s cubic-bezier(.7, 0, .2, 1) forwards; }
.abertura--3d .abertura__palco { position: relative; }
.abertura--3d .abertura__simbolo, .abertura--3d .abertura__palavra { animation-play-state: paused; }
.abertura--3d.abertura--plano .abertura__simbolo, .abertura--3d.abertura--plano .abertura__palavra,
.abertura--3d.abertura--vivo .abertura__palavra { animation-play-state: running; }
.abertura--3d.abertura--vivo .abertura__simbolo { display: none; }
.abertura__cena {
  position: absolute; left: 50%; top: 50%; width: 170%; height: 170%; translate: -50% -50%;
  border: 0; background: transparent; opacity: 0; transition: opacity .5s ease; pointer-events: none;
}
.abertura--vivo .abertura__cena { opacity: 1; }
.abertura--plano .abertura__cena { display: none; }
.abertura--3d .abertura__palco::before {
  content: ""; position: absolute; inset: -20%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(184, 0, 32, .35), transparent);
  animation: aberturaBrilho 1.6s ease-in-out infinite alternate; transition: opacity .4s;
}
.abertura--vivo .abertura__palco::before, .abertura--plano .abertura__palco::before { opacity: 0; animation: none; }
@keyframes aberturaBrilho { from { transform: scale(.8); opacity: .4; } to { transform: scale(1.05); opacity: 1; } }

/* Home hero sky: a seamless strip of the photo's own sky (assets/video/ceu-baia.jpg, 1440x430) drifts left to right
   across the whole screen and wraps; it sits exactly over the sky of the cover-fitted video (sizes set in site.js) */
.heroi__ceu { position: absolute; left: 0; right: 0; top: var(--ceu-top, 0); height: var(--ceu-h, 40%); z-index: -1;
  overflow: hidden; pointer-events: none; filter: brightness(.55) contrast(1.05) saturate(.9);
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 96%); mask-image: linear-gradient(to bottom, #000 62%, transparent 96%); }
.heroi__ceu-faixa { position: absolute; top: 0; left: 0; height: 100%; width: calc(100% + var(--ceu-tile, 1440px));
  background: url("video/ceu-baia.jpg") repeat-x 0 0 / var(--ceu-tile, 1440px) 100%;
  animation: ceu-passa 70s linear infinite; will-change: transform; }
@keyframes ceu-passa { from { transform: translateX(calc(-1 * var(--ceu-tile, 1440px))); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .heroi__ceu-faixa { animation: none; } }

/* Clients (PALL presentation, November 2026): names only, in a grid of tiles with a red edge */
.clientes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.clientes li { padding: 16px 18px; border-left: 3px solid var(--vermelho); background: var(--claro); font-weight: 600; }

/* Selos ISO 9001 e ANPG: sempre em fundo branco, sem cortar */
.destaque img.selo { object-fit: contain; background: #fff; padding: 6px; box-sizing: border-box; }
.selos { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 6px; }
.selos img { height: 110px; width: auto; background: #fff; padding: 10px 14px; border-radius: 6px; box-sizing: border-box; object-fit: contain; }
.rodape__logos { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.selos--rodape { margin: 0 0 4px; gap: 8px; }
.rodape__marca .selos--rodape img { width: auto; height: 40px; padding: 4px 6px; border-radius: 4px; }
