@font-face {
  font-family: "Libre Franklin";
  src: url("/assets/fonts/libre-franklin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Libre Franklin";
  src: url("/assets/fonts/libre-franklin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Franklin Recurso";
  src: local("Arial"), local("Helvetica Neue"), local("Liberation Sans");
  size-adjust: 96.8%;
  ascent-override: 99.8%;
  descent-override: 25.4%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Mono Recurso";
  src: local("Menlo"), local("Courier New"), local("DejaVu Sans Mono");
  size-adjust: 99.7%;
  ascent-override: 102.3%;
  descent-override: 30.1%;
  line-gap-override: 0%;
}

:root {
  --nx-papel: #ffffff;
  --nx-cal: #f4f6f2;
  --nx-tinta: #101410;
  --nx-nevoa: #565c55;
  --nx-verde: #2f5f14;
  --nx-verde-fundo: #24490f;
  --nx-verde-palido: #eaf0e4;
  --nx-medida: 1120px;
  --nx-margem: clamp(20px, 5vw, 48px);
  --nx-corpo: "Libre Franklin", "Franklin Recurso", system-ui, sans-serif;
  --nx-registos: "JetBrains Mono", "Mono Recurso", monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--nx-papel);
  color: var(--nx-tinta);
  font-family: var(--nx-corpo);
  font-size: 17px;
  line-height: 1.68;
  font-weight: 400;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

a { color: var(--nx-verde); }

img {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--nx-tinta);
  outline-offset: 3px;
}

.nx-casca {
  width: 100%;
  max-width: var(--nx-medida);
  margin-inline: auto;
  padding-inline: var(--nx-margem);
}

.nx-salto {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--nx-tinta);
  color: var(--nx-papel);
  padding: 12px 20px;
  z-index: 60;
}
.nx-salto:focus {
  left: 12px;
  top: 12px;
}

/* O monoespaçado fica reservado a etiquetas e valores curtos: em texto corrido cansa a leitura. */
.nx-etiqueta {
  font-family: var(--nx-registos);
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nx-verde);
  margin: 0;
}

.nx-seccao__titulo {
  font-size: clamp(27px, 4.2vw, 40px);
}

.nx-seccao__intro {
  color: var(--nx-nevoa);
  max-width: 62ch;
  font-size: 17.5px;
}

.nx-toque {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 14px 28px 18px;
  border: 0;
  background: none;
  font-family: var(--nx-corpo);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease;
}
.nx-toque::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 10px 10px 3px 3px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, calc(50% + 11px) 100%, 50% calc(100% - 9px), calc(50% - 11px) 100%, 0 100%);
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}
.nx-toque:hover { transform: translateY(-2px); }
.nx-toque:active { transform: translateY(0); }

.nx-toque--cheio { color: var(--nx-papel); }
.nx-toque--cheio::before { background-color: var(--nx-verde); }
.nx-toque--cheio:hover::before { background-color: var(--nx-verde-fundo); }

.nx-toque--escuro { color: var(--nx-papel); }
.nx-toque--escuro::before { background-color: var(--nx-tinta); }
.nx-toque--escuro:hover::before { background-color: var(--nx-verde); }

.nx-toque--contorno { color: var(--nx-verde); }
.nx-toque--contorno::before { box-shadow: inset 0 0 0 2px var(--nx-verde); }
.nx-toque--contorno:hover { color: var(--nx-verde-fundo); }
.nx-toque--contorno:hover::before { background-color: var(--nx-verde-palido); }

.nx-surgir--pronto {
  opacity: 0;
  transform: translateY(16px);
}
.nx-surgir--visivel {
  opacity: 1;
  transform: none;
  transition: opacity 0.62s ease, transform 0.62s ease;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nx-surgir--pronto,
  .nx-surgir--visivel {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .nx-toque:hover { transform: none; }
}

.nx-cabeca {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--nx-papel);
}
.nx-cabeca__casca {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
}
.nx-cabeca__marca {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--nx-tinta);
  padding: 12px 0;
}
.nx-cabeca__marca span { color: var(--nx-verde); }
.nx-cabeca__nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nx-cabeca__link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 4px 2px;
  font-family: var(--nx-registos);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--nx-tinta);
}
.nx-cabeca__link:hover {
  color: var(--nx-verde);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.nx-cabeca__abrir {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  min-width: 48px;
  padding: 10px 12px;
  border: 0;
  background: none;
  color: var(--nx-tinta);
  font-family: var(--nx-registos);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.nx-cabeca__abrir svg { flex: none; }

.nx-fundo {
  background: var(--nx-cal);
  padding-block: 56px 40px;
  margin-top: clamp(64px, 9vw, 104px);
}
.nx-fundo__grelha {
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
}
.nx-fundo__marca {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--nx-tinta);
  text-decoration: none;
}
.nx-fundo__marca span { color: var(--nx-verde); }
.nx-fundo__sobre {
  margin-top: 12px;
  color: var(--nx-nevoa);
  font-size: 15.5px;
  max-width: 34em;
}
.nx-fundo__titulo {
  font-family: var(--nx-registos);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nx-nevoa);
  margin-bottom: 10px;
}
.nx-fundo__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nx-fundo__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--nx-tinta);
  text-decoration: none;
  font-size: 16px;
}
.nx-fundo__link:hover {
  color: var(--nx-verde);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.nx-fundo__direitos {
  margin-top: 36px;
  color: var(--nx-nevoa);
  font-size: 14.5px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.nx-topo {
  padding-block: clamp(64px, 11vw, 124px) clamp(52px, 8vw, 92px);
  text-align: center;
}
.nx-topo__etiqueta { margin-bottom: 22px; }
.nx-topo__titulo {
  font-size: clamp(34px, 6.4vw, 60px);
  max-width: 17ch;
  margin-inline: auto;
}
.nx-topo__lead {
  margin: 26px auto 0;
  max-width: 58ch;
  font-size: clamp(17px, 2.1vw, 19.5px);
  color: var(--nx-nevoa);
}
.nx-topo__acoes {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 16px;
}

.nx-catalogo { padding-block: clamp(48px, 7vw, 76px) 0; }
.nx-catalogo__abertura { max-width: 760px; }
.nx-catalogo__abertura .nx-seccao__titulo { margin-block: 14px 18px; }
.nx-grelha {
  margin-top: clamp(38px, 5vw, 54px);
  display: grid;
  gap: clamp(30px, 4vw, 46px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.nx-registo { min-width: 0; }
.nx-registo--largo {
  grid-column: 1 / -1;
  display: grid;
  gap: clamp(24px, 4vw, 44px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  background: var(--nx-cal);
  padding: clamp(24px, 3vw, 36px);
  border-radius: 14px 14px 4px 4px;
}
.nx-registo__ref {
  font-family: var(--nx-registos);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nx-nevoa);
}
.nx-registo__nome {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: clamp(20px, 2.5vw, 23px);
  margin-top: 12px;
}
.nx-registo__icone {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 11px;
}
.nx-registo__autor {
  margin-top: 8px;
  color: var(--nx-nevoa);
  font-size: 15px;
}
.nx-registo__nota {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-family: var(--nx-registos);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--nx-tinta);
}
.nx-registo__nota svg { color: var(--nx-verde); flex: none; }
.nx-registo__nota b { font-weight: 500; }
.nx-registo__avaliacoes {
  color: var(--nx-nevoa);
  text-transform: uppercase;
}
/* A altura das vistas fica presa por proporcao para o cartao nao saltar enquanto a imagem carrega. */
.nx-registo__vista {
  margin-top: 20px;
  overflow: hidden;
  border-radius: 12px 12px 3px 3px;
  background: var(--nx-cal);
  aspect-ratio: 16 / 9;
}
.nx-registo__vista img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nx-registo--vertical .nx-registo__vista { aspect-ratio: 5 / 4; }
.nx-registo--panorama .nx-registo__vista { aspect-ratio: 720 / 377; }
.nx-registo--largo .nx-registo__vista {
  margin-top: 0;
  aspect-ratio: 720 / 338;
}
.nx-registo__texto {
  margin-top: 18px;
  color: var(--nx-nevoa);
  font-size: 16.5px;
}
.nx-registo__texto + .nx-registo__texto { margin-top: 12px; }
.nx-registo__dados {
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
}
.nx-registo__dado { min-width: 0; }
.nx-registo__chave {
  display: block;
  font-family: var(--nx-registos);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nx-nevoa);
}
.nx-registo__valor {
  display: block;
  margin-top: 3px;
  font-family: var(--nx-registos);
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nx-tinta);
}

.nx-comparacao {
  margin-top: clamp(56px, 8vw, 96px);
  background: var(--nx-cal);
  padding-block: clamp(56px, 8vw, 96px);
}
.nx-comparacao__abertura { max-width: 720px; }
.nx-comparacao__abertura .nx-seccao__titulo { margin-block: 14px 16px; }
.nx-mapa__caixa {
  margin-top: clamp(30px, 4vw, 42px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.nx-mapa {
  width: 100%;
  border-collapse: collapse;
  background: var(--nx-papel);
  font-size: 15.5px;
}
.nx-mapa caption {
  text-align: left;
  color: var(--nx-nevoa);
  font-size: 14.5px;
  padding-bottom: 12px;
}
.nx-mapa th,
.nx-mapa td {
  padding: 15px 16px;
  text-align: left;
  vertical-align: top;
}
.nx-mapa thead th {
  font-family: var(--nx-registos);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nx-tinta);
  white-space: nowrap;
  border-bottom: 1px solid var(--nx-verde);
}
.nx-mapa tbody th {
  font-weight: 700;
  min-width: 190px;
}
.nx-mapa tbody tr:nth-child(even) { background: var(--nx-cal); }
.nx-mapa__valor {
  font-family: var(--nx-registos);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nx-mapa__sinal {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--nx-registos);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nx-mapa__sinal svg { flex: none; color: var(--nx-verde); }
.nx-mapa__sinal--sem svg { color: var(--nx-nevoa); }
.nx-mapa__nota {
  margin-top: 20px;
  color: var(--nx-nevoa);
  font-size: 15.5px;
  max-width: 68ch;
}

.nx-contactos { padding-block: clamp(58px, 8vw, 98px) 0; }
.nx-contactos__grelha {
  display: grid;
  gap: clamp(30px, 5vw, 60px);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: start;
}
.nx-contactos .nx-seccao__titulo { margin-block: 14px 18px; }
.nx-contactos__texto {
  color: var(--nx-nevoa);
  max-width: 58ch;
}
.nx-contactos__texto + .nx-contactos__texto { margin-top: 15px; }
.nx-contactos__cartao {
  padding: clamp(24px, 3vw, 34px);
  border: 2px solid var(--nx-verde);
  border-radius: 16px 16px 4px 4px;
  background: var(--nx-papel);
}
.nx-contactos__cartao .nx-etiqueta { margin-bottom: 14px; }
.nx-contactos__correio {
  font-size: clamp(18px, 2.4vw, 21px);
  font-weight: 700;
  word-break: break-word;
}
.nx-contactos__correio a { color: var(--nx-verde); }
.nx-contactos__linha {
  margin-top: 16px;
  font-size: 15.5px;
  color: var(--nx-nevoa);
}
.nx-contactos__linha b {
  display: block;
  font-family: var(--nx-registos);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nx-tinta);
}
.nx-contactos__linha a { color: var(--nx-verde); }
.nx-contactos__acao { margin-top: 24px; }

.nx-juridico { padding-block: clamp(46px, 6vw, 72px) 0; }
.nx-juridico__cabeca { max-width: 760px; }
.nx-juridico__cabeca h1 {
  font-size: clamp(29px, 4.6vw, 44px);
  margin-block: 14px 16px;
}
.nx-juridico__vigor {
  font-family: var(--nx-registos);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nx-nevoa);
}
.nx-juridico__corpo {
  margin-top: clamp(30px, 4vw, 44px);
  max-width: 74ch;
}
.nx-juridico__corpo h2 {
  font-size: clamp(20px, 2.6vw, 24px);
  margin-top: 40px;
  margin-bottom: 12px;
}
.nx-juridico__corpo h3 {
  font-size: 18px;
  margin-top: 26px;
  margin-bottom: 8px;
}
.nx-juridico__corpo p { margin-bottom: 14px; }
.nx-juridico__corpo ul {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--nx-tinta);
}
.nx-juridico__corpo li { margin-bottom: 8px; }
.nx-juridico__corpo a { color: var(--nx-verde); }
.nx-juridico__quadro { overflow-x: auto; margin-bottom: 20px; }
.nx-juridico__acao { margin-top: 34px; }

.nx-perdido {
  padding-block: clamp(70px, 12vw, 130px) clamp(40px, 7vw, 70px);
  text-align: center;
}
.nx-perdido h1 {
  font-size: clamp(30px, 5.4vw, 48px);
  margin-block: 18px 18px;
  max-width: 20ch;
  margin-inline: auto;
}
.nx-perdido p {
  color: var(--nx-nevoa);
  max-width: 52ch;
  margin-inline: auto;
}
.nx-perdido__acoes {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 16px;
}

.nx-aviso {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--nx-tinta);
  color: var(--nx-papel);
  padding: 16px 0 18px;
}
.nx-aviso[hidden] { display: none; }
.nx-aviso__casca {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 26px;
}
.nx-aviso__texto {
  font-size: 15px;
  max-width: 44em;
  color: #e9ede7;
}
.nx-aviso__texto a { color: #b9d9a2; }
.nx-aviso__acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.nx-aviso .nx-toque {
  min-height: 48px;
  padding: 12px 22px 16px;
  font-size: 14.5px;
}
.nx-aviso .nx-toque--claro { color: var(--nx-tinta); }
.nx-aviso .nx-toque--claro::before { background-color: var(--nx-papel); }
.nx-aviso .nx-toque--claro:hover::before { background-color: #cfe0c2; }
.nx-aviso .nx-toque--vazio { color: var(--nx-papel); }
.nx-aviso .nx-toque--vazio::before { box-shadow: inset 0 0 0 2px #7b8878; }
.nx-aviso .nx-toque--vazio:hover::before { background-color: #23291f; }
.nx-aviso :focus-visible { outline-color: var(--nx-papel); }

@media (max-width: 1000px) {
  .nx-fundo__grelha { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .nx-fundo__sobre { grid-column: 1 / -1; }
  .nx-contactos__grelha { grid-template-columns: minmax(0, 1fr); }
  .nx-contactos__cartao { max-width: 34em; }
}

@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .nx-cabeca--ativa .nx-cabeca__abrir { display: inline-flex; }
  .nx-cabeca--ativa .nx-cabeca__nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--nx-papel);
    box-shadow: 0 16px 30px rgba(16, 20, 16, 0.14);
    padding: 8px var(--nx-margem) 20px;
  }
  .nx-cabeca--ativa .nx-cabeca__nav.nx-esta-aberto { display: block; }
  .nx-cabeca--ativa .nx-cabeca__nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nx-cabeca--ativa .nx-cabeca__link { min-height: 52px; font-size: 13px; }
  .nx-grelha { grid-template-columns: minmax(0, 1fr); }
  .nx-registo--largo {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px;
  }
  .nx-registo--largo .nx-registo__vista { order: -1; }
  .nx-topo__titulo { max-width: 100%; }
  .nx-fundo__grelha { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .nx-aviso__casca { justify-content: flex-start; }
  .nx-aviso .nx-toque { flex: 1 1 140px; }
}

@media (max-width: 460px) {
  .nx-registo__nome { font-size: 19.5px; }
  .nx-registo__dados { gap: 12px 16px; }
  .nx-topo__acoes .nx-toque { width: 100%; }
}
