/* =========================================================
   CONC-M — FOLHA DE ESTILOS PRINCIPAL

   ORGANIZAÇÃO:
   1. Cores e configurações gerais
   2. Cabeçalho e menu
   3. Destaque principal (Hero)
   4. Áreas de actuação
   5. Restantes secções
   6. Formulário de contacto
   7. Rodapé
   8. Responsividade para tablets
   9. Responsividade para telemóveis
   10. Telemóveis muito pequenos
   11. Banner das páginas internas
   12. Rodapé em colunas
   13. Blog
   14. Ajustes do blog
   15. Animações do blog
   16. Animações das áreas
   17. Responsividade adicional
   18. Acessibilidade
   19. Sistema geral de animações
   20. Legislação do sector
   ========================================================= */

/* =========================================================
   1. CORES E CONFIGURAÇÕES GERAIS
   ========================================================= */

:root {
  --orange: #f47721;
  --orange-dark: #dc5c12;
  --blue: #0756b7;
  --ink: #17212b;
  --muted: #66717c;
  --white: #ffffff;
  --soft: #f6f7f8;
  --line: #e8eaed;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Montserrat", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =========================================================
   2. CABEÇALHO, LOGÓTIPO E MENU
   ========================================================= */

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-inner {
  width: min(1240px, calc(100% - 64px));
  height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  width: 145px;
  flex: 0 0 145px;
}

.brand img {
  display: block;
  width: 100%;
  height: 72px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(15px, 2.2vw, 32px);
  margin-left: auto;
}

.nav-link {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ff9a50;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 19px;
  color: var(--white);
  background: var(--orange);
  border-radius: 30px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.header-cta:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
}

/* =========================================================
   3. DESTAQUE PRINCIPAL (HERO)
   ========================================================= */

.hero {
  position: relative;
  min-height: 720px;
  height: min(790px, 100vh);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: #302017 url("../assets/") center 53% / cover no-repeat;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(15, 19, 24, 0.76) 0%,
      rgba(15, 19, 24, 0.47) 43%,
      rgba(15, 19, 24, 0.08) 100%
    ),
    linear-gradient(0deg, rgba(15, 19, 24, 0.22), transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 64px));
  margin: 60px auto 0;
}

.eyebrow,
.section-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.2px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffd1ad;
}

.eyebrow span {
  width: 27px;
  height: 2px;
  background: var(--orange);
}

.hero h1 {
  max-width: 670px;
  margin: 20px 0 15px;
  font-size: clamp(38px, 4.3vw, 58px);
  line-height: 1.12;
  letter-spacing: -2px;
  font-weight: 500;
}
.hero h1 span {
  display: block;
}

.hero h1 strong {
  display: block;
}
.hero h1 strong {
  display: block;
  color: #ff8a36;
  font-weight: 800;
}

.hero-description {
  max-width: 440px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 25px;
}

.button {
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  border: 0;
  border-radius: 3px;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.button-primary {
  color: var(--white);
  background: var(--orange);
}

.button-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
}

.button-outline {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.06);
}

.button-outline:hover {
  color: var(--ink);
  background: var(--white);
}

.hero-bottom {
  position: absolute;
  z-index: 1;
  bottom: 27px;
  left: 0;
  width: 100%;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vertical-note {
  color: rgba(255, 255, 255, 0.72);
  font-size: 8px;
  letter-spacing: 2px;
}

.scroll-cue {
  width: 30px;
  height: 44px;
  padding-top: 8px;
  display: grid;
  place-items: start center;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 20px;
}

.scroll-cue span {
  width: 3px;
  height: 8px;
  border-radius: 3px;
  background: var(--orange);
  animation: scroll-indicator 1.4s infinite;
}

@keyframes scroll-indicator {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(13px);
    opacity: 0;
  }
}

.hero-index {
  color: var(--white);
  font-size: 10px;
  letter-spacing: 2px;
}

.hero-index i {
  display: inline-block;
  width: 34px;
  height: 1px;
  margin: 0 8px 3px;
  background: var(--orange);
}

/* =========================================================
   4. SECÇÃO DE ÁREAS DE ACTUAÇÃO
   ========================================================= */

.areas-section {
  margin-top: 50px;
  padding: 0 18px;
  width: 100%;
  min-height: 620px;
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
  gap: 18px;
  background: var(--white);
}

.areas-photo {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #d9e1e8;
}

.areas-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
  object-position: center;
}

.areas-photo::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
}

.photo-caption {
  position: absolute;
  z-index: 1;
  right: 30px;
  bottom: 30px;
  left: 30px;
  color: var(--white);
}

.photo-caption span {
  display: block;
  margin-bottom: 9px;
  color: #ffb17e;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
}

.photo-caption strong {
  display: block;
  max-width: 340px;
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.3;
}

.areas-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(280px, 1fr));
  align-content: stretch;
  min-height: 620px;
  padding: 18px clamp(22px, 3vw, 48px);
  gap: 0 28px;
}

.area-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 34px 18px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.area-item:nth-child(3),
.area-item:nth-child(4) {
  border-bottom: 0;
}

.area-icon {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--orange);
  font-size: 38px;
  font-weight: 700;
}

.area-item h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(18px, 1.65vw, 23px);
  line-height: 1.35;
  letter-spacing: -0.4px;
}

.area-item p {
  max-width: 370px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.9;
}

.area-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 700;
}

.area-link span {
  font-size: 15px;
  transition: transform 0.2s ease;
}

.area-link:hover span {
  transform: translateX(4px);
}

/* =========================================================
   5. RESTANTES SECÇÕES DA PÁGINA INICIAL
   ========================================================= */

.section {
  padding: 110px max(32px, calc((100% - 1160px) / 2));
}

.section-kicker {
  color: var(--orange-dark);
}

.section h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.17;
  letter-spacing: -1.8px;
}

.section h2 em {
  color: var(--orange);
  font-style: normal;
}

.partners {
  color: var(--white);
  background: #17212b;
}

.partners-inner {
  max-width: 760px;
  margin: 28px auto 0;
  text-align: center;
}

.partners-inner p,
.contact-grid > div > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.partners-inner p {
  max-width: 570px;
  margin: 20px auto 27px;
  color: #c0c6cc;
}

.button-dark {
  color: var(--white);
  background: var(--orange);
}

.blog {
  background: var(--soft);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin: 27px 0 38px;
}

.section-heading p {
  max-width: 330px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.blog-placeholder {
  min-height: 170px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  border: 1px dashed #cbd0d4;
  background: var(--white);
}

.blog-placeholder span {
  color: var(--orange-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
}

.blog-placeholder strong {
  font-size: 20px;
}

/* =========================================================
   6. FORMULÁRIO DE CONTACTO
   ========================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 28px;
}

.contact-grid > div > p {
  max-width: 420px;
}

.contact-email {
  margin-top: 28px;
  color: var(--blue) !important;
  font-weight: 700;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.contact-form label {
  margin-top: 7px;
  font-size: 10px;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #dfe3e6;
  border-radius: 2px;
  outline: none;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 11px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--orange);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  align-self: flex-start;
  margin-top: 10px;
}

.contact-form small {
  color: #929aa1;
  font-size: 9px;
  line-height: 1.6;
}

/* =========================================================
   7. RODAPÉ — ESTILO BASE
   ========================================================= */

.site-footer {
  min-height: 150px;
  padding: 25px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #111920;
  color: #c5cbd0;
}

.footer-brand {
  width: 105px;
  height: 70px;
}

.footer-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-footer p,
.site-footer > span {
  font-size: 10px;
}

/* =========================================================
   8. TABLETS
   ========================================================= */

@media (max-width: 900px) {
  .header-inner {
    width: calc(100% - 40px);
    gap: 15px;
  }

  .brand {
    width: 120px;
    flex-basis: 120px;
  }

  .main-nav {
    gap: 13px;
  }

  .nav-link {
    font-size: 12px;
  }

  .header-cta {
    padding: 12px 14px;
    font-size: 9px;
  }

  .areas-section {
    grid-template-columns: 40% minmax(0, 1fr);
    min-height: 580px;
  }

  .areas-photo,
  .areas-photo img {
    min-height: 580px;
  }

  .areas-content {
    min-height: 580px;
    grid-template-rows: repeat(2, minmax(250px, 1fr));
    padding: 16px 18px;
    gap: 0 12px;
  }

  .area-item {
    padding: 25px 10px;
  }

  .area-item h2 {
    font-size: clamp(16px, 2vw, 20px);
  }

  .area-item p {
    font-size: 12px;
  }

  .contact-grid {
    gap: 40px;
  }
}

/* =========================================================
   9. TELEMÓVEIS
   ========================================================= */

@media (max-width: 700px) {
  .site-header {
    background: rgba(18, 24, 29, 0.28);
  }

  .header-inner {
    height: 72px;
    width: calc(100% - 32px);
  }

  .brand {
    width: 112px;
    flex-basis: 112px;
  }

  .brand img {
    height: 64px;
  }

  .menu-toggle {
    display: flex;
    width: 40px;
    height: 40px;
    margin-left: auto;
    padding: 10px 8px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
  }

  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    padding: 18px 24px 22px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #17212b;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-link {
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
  }

  .header-cta {
    padding: 11px 13px;
    font-size: 9px;
  }

  .hero {
    min-height: 680px;
    height: 92vh;
    background-position: 43% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(15, 19, 24, 0.78), rgba(15, 19, 24, 0.35)),
      linear-gradient(0deg, rgba(15, 19, 24, 0.28), transparent);
  }

  .hero-content {
    width: calc(100% - 44px);
    margin-top: 65px;
  }

  .hero h1 {
    max-width: 460px;
    margin: 18px 0 13px;
    font-size: clamp(34px, 8.5vw, 43px);
    line-height: 1.12;
    letter-spacing: -1.2px;
  }

  .hero-description {
    max-width: 310px;
    font-size: 11px;
    line-height: 1.65;
  }

  .hero-actions {
    gap: 9px;
    margin-top: 20px;
  }

  .hero-actions .button {
    min-height: 42px;
    padding: 0 15px;
    gap: 10px;
    font-size: 9px;
  }

  .hero-bottom {
    padding: 0 22px;
  }

  .vertical-note {
    font-size: 7px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .areas-section {
    grid-template-columns: 1fr;
    padding: 0 14px;
    gap: 14px;
  }

  .areas-photo {
    min-height: 390px;
  }

  .areas-photo img {
    min-height: 390px;
    max-height: 480px;
  }

  .areas-content {
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(230px, auto));
    padding: 12px 10px;
    gap: 0 10px;
  }

  .area-item {
    padding: 26px 9px;
  }

  .area-icon {
    font-size: 32px;
    margin-bottom: 14px;
  }

  .area-item h2 {
    font-size: 15px;
  }

  .area-item p {
    font-size: 11px;
  }

  .area-link {
    margin-top: 17px;
    font-size: 11px;
  }

  .area-item:nth-child(3),
  .area-item:nth-child(4) {
    border-bottom: 0;
  }

  .section {
    padding: 75px 22px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .partners-inner {
    text-align: left;
  }

  .partners-inner p {
    margin-left: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .site-footer {
    padding: 25px 22px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* =========================================================
   10. TELEMÓVEIS MUITO PEQUENOS
   ========================================================= */

@media (max-width: 390px) {
  .brand {
    width: 94px;
    flex-basis: 94px;
  }

  .header-cta {
    gap: 6px;
    padding: 10px;
    font-size: 8px;
  }

  .areas-content {
    padding-right: 10px;
    padding-left: 10px;
    grid-template-rows: repeat(2, minmax(215px, auto));
  }

  .area-item h2 {
    font-size: 14px;
  }

  .area-item p {
    font-size: 10px;
  }
}

/* =========================================================
   11. BANNER DAS PÁGINAS INTERNAS
   Sobre Nós, Serviços, Parceiros, Blog e Contacto

   A imagem é definida no HTML através de --page-image.
   ========================================================= */

.inner-page-banner {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 400px;
  padding: 110px 25px 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  color: var(--white);
  background-color: #302017;
}

/* Imagem de fundo e camada escura */

.inner-page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;

  background-image:
    linear-gradient(90deg, rgba(15, 19, 24, 0.48), rgba(15, 19, 24, 0.18)),
    var(--page-image, url("../assets/plataforma-petrolifera.jpg"));

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Conteúdo do banner */

.inner-page-banner-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  color: #ffffff;
}

/* Títulos do banner */

.inner-page-banner-content h1,
.inner-page-banner-content h2 {
  margin: 0 0 15px;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* Texto abaixo do título */

.inner-page-banner-content p {
  max-width: 750px;
  margin: 0 auto;
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.7;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Conteúdo das páginas internas */

.inner-page-content {
  width: min(1160px, calc(100% - 64px));
  margin: 0 auto;
  padding: 65px 0;
}

/* =========================================================
   12. RODAPÉ — ORGANIZAÇÃO EM COLUNAS
   ========================================================= */

.site-footer {
  width: 100%;
  min-height: 300px;
  padding: 42px 5%;
  display: grid;
  grid-template-columns:
    minmax(240px, 1.25fr)
    minmax(220px, 1.2fr)
    minmax(105px, 0.55fr)
    minmax(300px, 1.45fr);
  column-gap: clamp(24px, 3.5vw, 52px);
  row-gap: 28px;
  align-items: start;
  background: #111920;
  color: #c5cbd0;
}

.site-footer .footer-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.site-footer .footer-about {
  padding-top: 0;
}

.site-footer .footer-brand {
  display: block;
  width: 145px;
  height: 100px;
  max-width: 100%;
  margin: 0 0 16px;
  flex: 0 0 auto;
}

.site-footer .footer-brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.site-footer .footer-about p {
  max-width: 310px;
  margin: 0 0 28px;
  color: #d0d5d9;
  font-size: 13px;
  line-height: 1.7;
}

.site-footer .footer-copyright {
  display: block;
  margin-top: auto;
  color: #929ba3;
  font-size: 12px;
  line-height: 1.6;
}

.site-footer .footer-column:not(.footer-about) {
  padding-top: 22px;
}

.site-footer .footer-column h3 {
  margin: 0 0 17px;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
}

.site-footer .footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer .footer-column ul li {
  margin: 0 0 13px;
  padding: 0;
}

.site-footer .footer-column ul li a {
  color: #d0d5d9;
  font-size: 13px;
  line-height: 1.55;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer .footer-column ul li a:hover,
.site-footer .footer-contact-item a:hover {
  color: var(--orange);
}

.site-footer .footer-newsletter {
  display: flex;
  width: 100%;
  max-width: 370px;
  min-height: 48px;
  padding: 3px;
  margin: 0 0 14px;
  border: 1px solid #777f86;
  border-radius: 7px;
  background: transparent;
}

.site-footer .footer-newsletter input {
  width: 100%;
  min-width: 0;
  padding: 9px 13px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-size: 12px;
}

.site-footer .footer-newsletter input::placeholder {
  color: #b9c0c6;
}

.site-footer .footer-newsletter button {
  flex: 0 0 auto;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: var(--orange);
  color: #ffffff;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.site-footer .footer-newsletter button:hover {
  background: var(--orange-dark);
}

.site-footer .footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 10px;
}

.site-footer .footer-contact-item > span {
  flex: 0 0 14px;
  color: var(--orange);
  font-size: 15px;
  line-height: 1.5;
}

.site-footer .footer-contact-item p,
.site-footer .footer-contact-item a {
  margin: 0;
  color: #d0d5d9;
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

/* =========================================================
   13. BLOG — SECÇÃO DE ACTUALIZAÇÕES
   ========================================================= */

.blog {
  background: #f5f6f7;
  padding-top: 100px;
  padding-bottom: 100px;
}

.blog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  margin-bottom: 45px;
}

.blog-heading h2 {
  max-width: 700px;
}

.blog-heading p {
  max-width: 330px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.blog-feature {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  gap: 55px;
}

.blog-image {
  width: 100%;
  min-height: 390px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-image:hover img {
  transform: scale(1.04);
}

.blog-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 20px 0;
}

.blog-label {
  color: var(--orange);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.5px;
  margin-bottom: 22px;
}

.blog-content h3 {
  color: var(--ink);
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 22px;
}

.blog-content p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 17px;
  max-width: 520px;
}

.blog-content .button {
  margin-top: 15px;
}

/* =========================================================
   14. AJUSTE COMPACTO DO BLOG
   ========================================================= */

.blog.section {
  padding-top: 55px;
  padding-bottom: 55px;
}

.blog .section-kicker {
  margin-bottom: 18px;
}

.blog-heading {
  margin-bottom: 28px;
  gap: 35px;
}

.blog-heading h2 {
  max-width: 700px;
}

.blog-heading p {
  max-width: 330px;
  line-height: 1.7;
}

.blog-feature {
  gap: 38px;
  align-items: center;
}

.blog-image {
  min-height: 340px;
}

.blog-image img {
  min-height: 340px;
}

.blog-content {
  padding: 5px 0;
}

.blog-content h3 {
  margin-bottom: 16px;
}

.blog-content p {
  margin-bottom: 12px;
}

/* =========================================================
   15. ANIMAÇÕES DE APARIÇÃO DO BLOG
   ========================================================= */

.blog.reveal-ready [data-reveal] {
  opacity: 0;
  transition:
    opacity 0.85s ease,
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.blog.reveal-ready
  [data-reveal]:not([data-reveal="left"]):not([data-reveal="right"]) {
  transform: translateY(30px);
}

.blog.reveal-ready [data-reveal="left"] {
  transform: translateX(-45px);
}

.blog.reveal-ready [data-reveal="right"] {
  transform: translateX(45px);
}

.blog.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* =========================================================
   16. ANIMAÇÃO DA SECÇÃO ÁREAS DE ACTUAÇÃO
   ========================================================= */

.areas-photo {
  overflow: hidden;
  cursor: pointer;
}

.areas-photo img {
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.areas-photo:hover img {
  transform: scale(1.055);
}

.areas-section.reveal-ready [data-reveal] {
  opacity: 0;
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.areas-section.reveal-ready [data-reveal="left"] {
  transform: translateX(-45px);
}

.areas-section.reveal-ready [data-reveal="right"] {
  transform: translateX(45px);
}

.areas-section.reveal-ready [data-reveal="up"] {
  transform: translateY(35px);
}

.areas-section.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

.areas-section.reveal-ready .area-item:nth-child(1) {
  transition-delay: 0.1s;
}

.areas-section.reveal-ready .area-item:nth-child(2) {
  transition-delay: 0.22s;
}

.areas-section.reveal-ready .area-item:nth-child(3) {
  transition-delay: 0.34s;
}

.areas-section.reveal-ready .area-item:nth-child(4) {
  transition-delay: 0.46s;
}

/* =========================================================
   17. RESPONSIVIDADE ADICIONAL
   ========================================================= */

/* Tablets */

@media (max-width: 950px) {
  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 42px 6% 30px;
    column-gap: 34px;
    row-gap: 32px;
  }

  .site-footer .footer-column:not(.footer-about) {
    padding-top: 18px;
  }
}

@media (max-width: 900px) {
  .blog-feature {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .blog-image,
  .blog-image img {
    min-height: 350px;
  }

  .blog-heading {
    gap: 25px;
  }

  .blog.section {
    padding-top: 45px;
    padding-bottom: 45px;
  }

  .blog-feature {
    gap: 25px;
  }

  .blog-image,
  .blog-image img {
    min-height: 300px;
  }
}

/* Telemóveis */

@media (max-width: 700px) {
  .inner-page-banner {
    min-height: 340px;
    padding: 110px 22px 45px;
  }

  .inner-page-banner-content h1,
  .inner-page-banner-content h2 {
    font-size: 34px;
  }

  .inner-page-banner-content p {
    font-size: 14px;
    line-height: 1.7;
  }

  .inner-page-content {
    width: calc(100% - 44px);
    padding: 45px 0;
  }
}

/* Telemóveis pequenos */

@media (max-width: 600px) {
  .site-footer {
    grid-template-columns: minmax(0, 1fr);
    padding: 38px 24px 28px;
    row-gap: 28px;
  }

  .site-footer .footer-column:not(.footer-about) {
    padding-top: 0;
  }

  .site-footer .footer-brand {
    width: 135px;
    height: 90px;
  }

  .site-footer .footer-about p {
    max-width: 100%;
  }

  .site-footer .footer-newsletter {
    max-width: 100%;
  }

  .blog {
    padding-top: 65px;
    padding-bottom: 65px;
  }

  .blog-heading {
    display: block;
    margin-bottom: 30px;
  }

  .blog-heading p {
    margin-top: 18px;
    max-width: 100%;
  }

  .blog-feature {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .blog-image,
  .blog-image img {
    min-height: 260px;
    height: 260px;
  }

  .blog-content {
    padding: 5px 0;
  }

  .blog-content h3 {
    font-size: 27px;
  }

  .blog.section {
    padding-top: 35px;
    padding-bottom: 40px;
  }

  .blog-heading {
    margin-bottom: 24px;
  }

  .blog-feature {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .blog-image,
  .blog-image img {
    height: 250px;
    min-height: 250px;
  }

  .blog-content {
    padding: 0;
  }

  .blog-content h3 {
    font-size: 26px;
  }

  .blog.reveal-ready [data-reveal="left"],
  .blog.reveal-ready [data-reveal="right"] {
    transform: translateY(25px);
  }
}

/* =========================================================
   18. ACESSIBILIDADE — REDUZIR ANIMAÇÕES
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .blog.reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .blog-image img {
    transition: none;
  }

  .areas-section.reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .areas-photo img {
    transition: none;
  }
}

/* =====================================================
   19. CONC-M — SISTEMA GERAL DE ANIMAÇÕES
   ===================================================== */

/* Estado inicial */

.reveal-ready {
  opacity: 0;
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.9s ease;

  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

/* Entrada de baixo para cima */

.reveal-up {
  transform: translateY(55px);
  filter: blur(5px);
}

/* Entrada da fotografia */

.reveal-image {
  transform: translateX(65px) scale(0.94);
  filter: blur(7px);
}

/* Entrada dos cartões */

.reveal-card {
  transform: translateY(45px) scale(0.96);
  filter: blur(4px);
}

/* Estado visível */

.reveal-ready.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
  filter: blur(0);
}

/* Animação das imagens das restantes secções */

.welcome-image img {
  transition:
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.2s ease;
}

.welcome-image.is-visible img {
  transform: scale(1.025);
}

/* Efeito nos cartões */

.areas-section .area-card,
.areas-section .area-item,
.blog-card {
  transition:
    transform 0.5s ease,
    box-shadow 0.5s ease;
}

.areas-section .area-card:hover,
.areas-section .area-item:hover,
.blog-card:hover {
  transform: translateY(-7px);
}

/* Acessibilidade */

@media (prefers-reduced-motion: reduce) {
  .reveal-ready,
  .welcome-image img {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* =====================================================
   20. CONC-M — LEGISLAÇÃO DO SECTOR
   Identidade visual: azul, branco e laranja
   ===================================================== */

.legislation-section {
  --legislation-blue: #123568;
  --legislation-orange: #e58a1f;
  --legislation-text: #526078;

  width: 100%;
  padding: 85px 25px;
  background: #f7f8fa;
  overflow: hidden;
}

.legislation-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* =====================================================
   CABEÇALHO DA LEGISLAÇÃO
   ===================================================== */

.legislation-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 35px;
}

.legislation-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--legislation-orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}

.legislation-heading h2 {
  position: relative;
  margin: 0 0 17px;
  padding-bottom: 15px;
  color: var(--legislation-blue);
  font-size: clamp(27px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.2;
}

.legislation-heading h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--legislation-orange);
  border-radius: 5px;
}

.legislation-heading p {
  max-width: 580px;
  margin: 0;
  color: var(--legislation-text);
  font-size: 14px;
  line-height: 1.8;
}

.legislation-view-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding-bottom: 5px;
  color: var(--legislation-blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.legislation-view-all span {
  color: var(--legislation-orange);
  font-size: 22px;
  line-height: 1;
  transition: transform 0.3s ease;
}

.legislation-view-all:hover {
  color: var(--legislation-orange);
}

.legislation-view-all:hover span {
  transform: translateX(5px);
}

/* =====================================================
   GRELHA DOS CARTÕES
   ===================================================== */

.legislation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* =====================================================
   CARTÕES
   ===================================================== */

.legislation-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 260px;
  padding: 25px 23px 22px;
  background: #fff;
  border: 1px solid #edf0f4;
  border-radius: 5px;
  box-shadow: 0 5px 16px rgba(18, 53, 104, 0.045);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

.legislation-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--legislation-orange);
  transition: width 0.4s ease;
}

.legislation-card:hover {
  transform: translateY(-7px);
  border-color: #e1e6ed;
  box-shadow: 0 15px 35px rgba(18, 53, 104, 0.11);
}

.legislation-card:hover::before {
  width: 100%;
}

/* =====================================================
   ÍCONES E NUMERAÇÃO
   ===================================================== */

.legislation-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.legislation-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 43px;
  flex-shrink: 0;
  background: var(--legislation-blue);
  border-radius: 4px;
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.legislation-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.legislation-card:hover .legislation-icon {
  background: var(--legislation-orange);
  transform: scale(1.06);
}

.legislation-number {
  color: #dfe4eb;
  font-size: 23px;
  font-weight: 800;
}

/* =====================================================
   TEXTO DOS CARTÕES
   ===================================================== */

.legislation-card h3 {
  margin: 0 0 9px;
  color: var(--legislation-blue);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.legislation-law {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 12px;
  color: var(--legislation-orange);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
}

.legislation-card p {
  margin: 0 0 20px;
  color: var(--legislation-text);
  font-size: 12px;
  line-height: 1.75;
}

/* =====================================================
   LINKS DOS DIPLOMAS
   ===================================================== */

.legislation-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  align-self: flex-start;
  color: var(--legislation-blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.legislation-card a span {
  color: var(--legislation-orange);
  font-size: 17px;
  transition: transform 0.3s ease;
}

.legislation-card a:hover {
  color: var(--legislation-orange);
}

.legislation-card a:hover span {
  transform: translateX(4px);
}

/* =====================================================
   RODAPÉ DA SECÇÃO DE LEGISLAÇÃO
   ===================================================== */

.legislation-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 35px;
}

.legislation-footer p {
  margin: 0;
  color: #8993a2;
  font-size: 11px;
  text-align: center;
}

.legislation-footer-line {
  width: 35px;
  height: 1px;
  background: #dce1e8;
}

/* =====================================================
   TABLETS — LEGISLAÇÃO
   ===================================================== */

@media (max-width: 900px) {
  .legislation-section {
    padding: 70px 22px;
  }

  .legislation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .legislation-card {
    min-height: 250px;
  }
}

/* =====================================================
   TELEMÓVEIS — LEGISLAÇÃO
   ===================================================== */

@media (max-width: 600px) {
  .legislation-section {
    padding: 55px 17px;
  }

  .legislation-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 27px;
  }

  .legislation-heading h2 {
    font-size: 27px;
  }

  .legislation-heading p {
    font-size: 13px;
  }

  .legislation-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .legislation-card {
    min-height: 0;
    padding: 23px 20px;
  }

  .legislation-card h3 {
    font-size: 16px;
  }

  .legislation-card p {
    font-size: 12px;
  }

  .legislation-footer {
    gap: 8px;
  }

  .legislation-footer-line {
    width: 18px;
  }

  .legislation-footer p {
    font-size: 10px;
  }
}

/* =====================================================
   CONC-M — HERO SLIDER CINEMATOGRÁFICO
   4 FOTOGRAFIAS COM ZOOM E TEXTO DINÂMICO
   ===================================================== */

/* ESTRUTURA PRINCIPAL */

.hero-slider {
  position: relative;
  isolation: isolate;
  min-height: 720px;
  height: min(790px, 100vh);
  overflow: hidden;
  background: #17212b;
}

/* ÁREA DAS FOTOGRAFIAS */

.hero-slider .hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-slider .hero-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transform: scale(1);

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  transition: opacity 1.2s ease-in-out;
  will-change: opacity, transform;
}

/* FOTOGRAFIA ACTIVA */

.hero-slider .hero-slide.active {
  z-index: 1;
  opacity: 1;
  animation: heroCinematicZoom 5s cubic-bezier(0.16, 0.45, 0.3, 1) forwards;
}

/* ZOOM CINEMATOGRÁFICO */

@keyframes heroCinematicZoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.3);
  }
}

/* CAMADA ESCURA */

.hero-slider .hero-shade {
  position: absolute;
  inset: 0;
  z-index: 2;

  background:
    linear-gradient(
      90deg,
      rgba(10, 16, 22, 0.82) 0%,
      rgba(10, 16, 22, 0.43) 100%
    ),
    linear-gradient(0deg, rgba(10, 16, 22, 0.35), transparent);
}

/* CONTEÚDO PRINCIPAL */

.hero-slider .hero-content {
  position: relative;
  z-index: 3;
  width: min(1240px, calc(100% - 64px));
  margin: 60px auto 0;
}

.hero-slider .hero-text {
  max-width: 700px;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

/* TEXTO PEQUENO */

.hero-slider .hero-eyebrow {
  display: block;
  margin-bottom: 18px;
  color: #ffad77;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
}

/* SAÍDA DO TEXTO */

.hero-slider .hero-text.is-changing {
  opacity: 0;
  transform: translateY(-15px);
}

/* TÍTULO */

.hero-slider h1 {
  margin: 16px 0 14px;
  font-size: clamp(32px, 3.8vw, 50px);
  line-height: 1.12;
  letter-spacing: -1.5px;
  font-weight: 500;
}

.hero-slider h1 span,
.hero-slider h1 strong {
  display: block;
}

.hero-slider h1 strong {
  color: #ff8a36;
  font-weight: 800;
}

/* DESCRIÇÃO */

.hero-slider .hero-description {
  max-width: 440px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 1.7;
}

/* ENTRADA SEQUENCIAL DO TEXTO */

.hero-slider .hero-text.text-enter {
  animation: none;
}

.hero-slider .hero-text.text-enter .hero-eyebrow,
.hero-slider .hero-text.text-enter h1 span,
.hero-slider .hero-text.text-enter h1 strong,
.hero-slider .hero-text.text-enter .hero-description,
.hero-slider .hero-text.text-enter .hero-actions {
  animation: heroElementEnter 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-slider .hero-text.text-enter .hero-eyebrow {
  animation-delay: 0.05s;
}

.hero-slider .hero-text.text-enter h1 span:nth-child(1) {
  animation-delay: 0.18s;
}

.hero-slider .hero-text.text-enter h1 span:nth-child(2) {
  animation-delay: 0.32s;
}

.hero-slider .hero-text.text-enter h1 strong {
  animation-delay: 0.46s;
}

.hero-slider .hero-text.text-enter .hero-description {
  animation-delay: 0.6s;
}

.hero-slider .hero-text.text-enter .hero-actions {
  animation-delay: 0.75s;
}

@keyframes heroElementEnter {
  from {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* BOTÕES */

.hero-slider .hero-actions {
  margin-top: 22px;
}

.hero-slider .hero-actions .button {
  font-size: 10px;
  padding: 12px 18px;
}

/* PARTE INFERIOR */

.hero-slider .hero-bottom {
  position: absolute;
  z-index: 4;
  bottom: 27px;
  left: 0;
  width: 100%;
  align-items: center;
}

.hero-slider .scroll-cue {
  flex-shrink: 0;
}

/* INDICADORES */

.hero-slider .hero-pagination {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  margin-right: 30px;
}

.hero-slider .hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.35s ease;
}

.hero-slider .hero-dot.active {
  width: 32px;
  background: #f47721;
}

/* =====================================================
   RESPONSIVIDADE — TABLETS
   ===================================================== */

@media (max-width: 900px) {
  .hero-slider {
    min-height: 680px;
  }

  .hero-slider .hero-content {
    width: calc(100% - 50px);
  }

  .hero-slider h1 {
    font-size: clamp(32px, 5vw, 43px);
  }
}

/* =====================================================
   RESPONSIVIDADE — TELEMÓVEIS
   ===================================================== */

@media (max-width: 700px) {
  .hero-slider {
    min-height: 680px;
    height: 92vh;
  }

  .hero-slider .hero-content {
    width: calc(100% - 44px);
    margin-top: 65px;
  }

  .hero-slider .hero-slide {
    background-position: center;
  }

  .hero-slider .hero-shade {
    background:
      linear-gradient(90deg, rgba(10, 16, 22, 0.82), rgba(10, 16, 22, 0.43)),
      linear-gradient(0deg, rgba(10, 16, 22, 0.35), transparent);
  }

  .hero-slider .hero-eyebrow {
    font-size: 9px;
    letter-spacing: 2px;
  }

  .hero-slider h1 {
    font-size: clamp(27px, 7vw, 36px);
    letter-spacing: -1px;
  }

  .hero-slider .hero-description {
    max-width: 310px;
    font-size: 11px;
    line-height: 1.65;
  }

  .hero-slider .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-slider .hero-bottom {
    padding: 0 22px;
  }

  .hero-slider .hero-pagination {
    gap: 7px;
    margin: 0 12px 0 auto;
  }

  .hero-slider .hero-dot {
    width: 7px;
    height: 7px;
  }

  .hero-slider .hero-dot.active {
    width: 23px;
  }

  .hero-slider .vertical-note {
    font-size: 6px;
    letter-spacing: 1px;
  }
}

/* =====================================================
   ACESSIBILIDADE — REDUZIR ANIMAÇÕES
   ===================================================== */

@media (prefers-reduced-motion: reduce) {
  .hero-slider .hero-slide,
  .hero-slider .hero-text,
  .hero-slider .hero-text * {
    animation: none !important;
    transition: none !important;
  }

  .hero-slider .hero-slide.active {
    transform: none;
  }
}

/* =====================================================
   CONC-M — AJUSTE DE ESPAÇAMENTO DAS SECÇÕES
   ===================================================== */

/* Separação entre as secções */
.areas-section {
  margin-bottom: 50px;
}

/* Secção azul — largura total da página */
.partners.section {
  width: 100%;
  max-width: none;

  margin: 22px 0 0;

  padding: 70px clamp(30px, 5vw, 75px);

  box-sizing: border-box;
}

/* Ajustar conteúdo interno */
.partners-inner {
  width: 100%;
  max-width: 1400px;
  margin: 25px auto 0;
  box-sizing: border-box;
}

/* Responsividade para tablets e telemóveis */
@media (max-width: 700px) {
  .areas-section {
    margin-bottom: 16px;
  }

  .partners.section {
    width: 100%;
    margin-top: 16px;
    padding: 50px 22px;
  }

  .partners-inner {
    margin-top: 18px;
  }
}
