/* FONT-FACES */
@font-face {
  font-family: "Poppins-Medium";
  src: url("../fonts/Poppins-Medium.ttf") format("truetype");
}
@font-face {
  font-family: "Poppins-Light";
  src: url("../fonts/Poppins-Light.ttf") format("truetype");
}

/* KEYFRAMES */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes fadeInTop {
  0% {
    opacity: 0;
    bottom: -5vh;
  }
  100% {
    opacity: 1;
    bottom: 5vh;
  }
}
@keyframes lds-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes wheel {
  0% {
    top: 5px;
  }
  50% {
    top: 20px;
  }
  100% {
    top: 5px;
  }
}

/* DEFAULT */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:
    "Poppins-Light", "Century Gothic", CenturyGothic, Verdana, "Open Sans",
    sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  overflow-x: hidden;
  background-color: var(--background);

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family:
    "Poppins-Light", "Century Gothic", CenturyGothic, Verdana, "Open Sans",
    sans-serif;
}

section {
  max-width: 1600px;
  padding: 80px 10px;
  margin: auto;
  background-color: var(--background);
}

section .title {
  color: var(--title);
  font-family: "Poppins-Medium";
  margin-bottom: 20px;
}

section > p {
  color: var(--p);
}



a,
button {
  cursor: pointer;
}

::selection {
  background-color: var(--selection);
  color: var(--neutral-100);
}

a,
button {
  text-decoration: none;
  color: inherit;
  transition: 0.2s all ease-out;
}

textarea {
  max-width: 100%;
  min-width: 100%;
  border-radius: 5px;
  padding: 10px;
  border: 1px solid var(--neutral-300);
  background-color: var(--neutral-100);
  color: var(--neutral-900);
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="url"] {
  border-radius: 5px;
  padding: 10px;
  border: 1px solid var(--neutral-300);
  background-color: var(--neutral-100);
  color: var(--neutral-900);
}

input:focus,
textarea:focus,
select:focus {
  outline: 1px solid var(--outline);
}

h1 {
  font-size: 72px;
}
h2 {
  font-size: 60px;
}
h3 {
  font-size: 48px;
}
h4 {
  font-size: 40px;
}
h5 {
  font-size: 32px;
}
h6 {
  font-size: 28px;
}

.wow {
  opacity: 1 !important;
  transform: translateY(50px) !important;
}

.wow.animated {
  opacity: 1 !important;
  transform: translateY(0) !important;
}



p {
  text-align: justify;
  margin-bottom: 10px;
}



.text-left {
  text-align: left;
}



/* NAVBAR */

.navbar {
  position: fixed;
  width: 100%;

  display: flex;
  justify-content: center;
  align-items: center;

  z-index: 100;
}

.navbar .navbar-center {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;

  max-width: 100%;
  background-color: var(--navbar);

  -webkit-box-shadow: 0px 10px 24px -14px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 0px 10px 24px -14px rgba(0, 0, 0, 0.75);
  box-shadow: 0px 10px 24px -14px rgba(0, 0, 0, 0.75);

  transition: 0.3s all cubic-bezier(0.785, 0.135, 0.15, 0.86);
}

.navbar .onTop {
  margin: auto;
  max-width: 1300px;
  background: transparent;

  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
}

.navbar .navbar-center .navbar-wrapper {
  width: 100%;
  max-width: 1600px;
  margin: auto;
  display: flex;
  justify-content: space-between;

  padding: 0px 10px;
}

.navbar .navbar-logo {
  display: flex;
  align-items: center;
}

.navbar .navbar-logo img {
  height: 70px;
}

.navbar .navbar-list {
  position: relative;
  display: flex;
  gap: 60px;
}

.navbar-item:before:hover {
  transform: scaleX(1);
}

.navbar .navbar-list .navbar-sublist {
  display: flex;
}

.navbar .navbar-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;

  color: #fff;
}

.navbar .navbar-list svg {
  height: 28px;
}

.navbar .theme-toggler {
  color: #fff;
  border: none;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

.navbar-line {
  position: absolute;
  bottom: 0;
  height: 4px;
  width: 0;
  background-color: #fff;
  transition: 0.2s ease;
}

.navbar .navbar-logo img,
.navbar-mobile .navbar-logo img,
.logo img {
  filter: brightness(0) invert(1);
}

/* =========================
   NAVBAR MOBILE
========================= */

.navbar-mobile {
  position: fixed;
  top: 0;
  width: 100%;
  display: none;
  justify-content: center;
  z-index: 100;
}

/* Barra superior */
.navbar-mobile .navbar-center {
  width: 100%;
  background: linear-gradient(180deg, var(--blue-1000), var(--blue-900));
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s cubic-bezier(0.785, 0.135, 0.15, 0.86);
}

.navbar-mobile .onTop {
  margin: auto;
  max-width: 1300px;
  background: transparent;

  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
}

.navbar-mobile .navbar-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
}

/* Logo */
.navbar-mobile .navbar-logo img {
  height: 34px;
  transition: transform 0.3s ease;
}

.navbar-mobile .navbar-logo img:hover {
  transform: scale(1.05);
}

/* Toggle */
.navbar-toggle-mobile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 36px;
  height: 27px;
  cursor: pointer;
  z-index: 101;
  padding: 6px;
  border-radius: 6px;
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.navbar-toggle-mobile:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.05);
}

.navbar-toggle-mobile span {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.navbar-toggle-mobile.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle-mobile.active span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle-mobile.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* =========================
   MENU MOBILE
========================= */

.navbar-list-mobile {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: linear-gradient(180deg, var(--blue-1000), var(--blue-900));
  backdrop-filter: blur(10px);
  padding: 20px 0 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;

  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estado ativo */
.navbar-list-mobile.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Sublistas */
.navbar-list-mobile .navbar-sublist {
  display: flex;
  flex-direction: column;
}

/* =========================
   ITENS MOBILE
========================= */

.navbar-item-mobile {
  padding: 16px 24px;
  text-align: center;
  font-size: 16px;
  letter-spacing: 0.5px;
  color: #fff;
  text-decoration: none;
  position: relative;
  opacity: 0;
  transform: translateY(10px);
  transition:
    transform 0.35s ease,
    opacity 0.35s ease,
    color 0.3s ease;
}

/* Entrada animada em cascata */
.navbar-list-mobile.active .navbar-item-mobile {
  opacity: 1;
  transform: translateY(0);
}

.navbar-list-mobile.active .navbar-item-mobile:nth-child(1) {
  transition-delay: 0.05s;
}
.navbar-list-mobile.active .navbar-item-mobile:nth-child(2) {
  transition-delay: 0.1s;
}
.navbar-list-mobile.active .navbar-item-mobile:nth-child(3) {
  transition-delay: 0.15s;
}
.navbar-list-mobile.active .navbar-item-mobile:nth-child(4) {
  transition-delay: 0.2s;
}
.navbar-list-mobile.active .navbar-item-mobile:nth-child(5) {
  transition-delay: 0.25s;
}

/* Hover moderno */
.navbar-item-mobile::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--blue-400);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-item-mobile:hover {
  color: var(--blue-300);
}

.navbar-item-mobile:hover::after {
  width: 40%;
}

/* Social links */
.navbar-item-mobile-social {
  color: var(--p);
  opacity: 0.85;
}

.navbar-item-mobile-social svg {
  height: 24px;
  color: #fff;
}

.navbar-item-mobile-social svg:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--blue-300);
  transform: scale(1.1);
}

.theme-toggler-mobile {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  transition: all 0.3s ease;
  border-radius: 6px;
}

.theme-toggler-mobile:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--blue-300);
  transform: scale(1.1);
}

.theme-toggler-mobile svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
  transition: all 0.3s ease;
}

.navbar-list-mobile .theme-toggler-mobile {
  margin: 8px auto;
}
/* =========================
   MOBILE ENABLE
========================= */

@media (max-width: 768px) {
  .navbar-mobile {
    display: flex;
  }
}

/* FOOTER */

/* Use fallbacks so footer looks consistent even if theme variables aren't loaded yet */
footer,
.site-footer-curved {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background-color: #1C3F73 !important;
  border-top: none !important;
}

footer .footer-container,
.site-footer .footer-container {
  display: flex;
}

footer .footer-container a,
.site-footer .footer-container a {
  padding-inline: 20px;
}

footer .footer-container a:last-child,
.site-footer .footer-container a:last-child {
  padding-right: 0;
}

/* Container da onda em SVG */
.custom-shape-divider-bottom {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  background: transparent;
  margin-top: 50px;
}

.custom-shape-divider-bottom svg {
  position: relative;
  display: block;
  width: 100%;
  height: 80px; 
}

/* Estilação do Rodapé com o Fundo Azul Marinho */
footer.site-footer-curved {
    background-color: #1C3F73 !important; 
    color: #ffffff !important;
    padding: 20px 0 30px 0;
    border-top: none !important;
    width: 100%;
}

footer.site-footer-curved .footer-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
}

footer.site-footer-curved a {
  color: #ffffff !important;
  opacity: 0.9;
  text-decoration: none;
}

footer.site-footer-curved a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Make the footer visually identical across pages: ensure it sits above background layers */
footer {
  position: relative;
  z-index: 10;
}

/*  BACK TO TOP */

.backToTop {
  position: fixed;
  z-index: 100;
  right: 30px;

  transition: 0.2s all cubic-bezier(0.785, 0.135, 0.15, 0.86);
}

.backToTop.visible {
  opacity: 1;
  bottom: 20px;
}

.backToTop.hidden {
  opacity: 0;
  bottom: -50px;
}

.backToTop .box {
  height: 50px;
  width: 50px;

  display: flex;
  justify-content: center;
  align-items: center;

  background-color: var(--backToTop);
  border-radius: 10px;
  transition: 0.2s ease-out;
}

.backToTop .box svg {
  height: 25px;
  color: var(--neutral-100);
}

/* 404 */

.error-page-container {
  z-index: -1;
  width: 100%;
  height: 100dvh;

  display: flex;
  align-items: center;
  justify-content: center;

  background: url(../img/mainHome-bg-h.jpg) center/cover no-repeat;
}

.error-page-container .error-wrapper {
  padding: 40px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  background-color: #fff;
  border-radius: 20px;

  -webkit-box-shadow: 0px 10px 54px -14px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 0px 10px 54px -14px rgba(0, 0, 0, 0.75);
  box-shadow: 0px 10px 54px -14px rgba(0, 0, 0, 0.75);
}

.error-page-container .error-page-header {
  text-align: center;
  z-index: 100;

  background: linear-gradient(
    190deg,
    rgb(26, 32, 32) 0%,
    rgb(84, 140, 255) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.error-page-container .error-page-header span {
  font-size: 72px;
  font-family: "Poppins-Medium", sans-serif;
}

.error-page-container .error-page-header p {
  font-size: 22px;
  font-family: "Poppins-Medium", sans-serif;
}

.error-page-container .error-redirect {
  margin-top: 20px;

  font-size: 18px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 20px;

  color: #1e4996;
}

.error-page-container .error-redirect-timer {
  font-size: 20px;
  width: 20px;
  font-family: "Poppins-Medium", sans-serif;
}

.error-page-container .error-redirect-button a {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Poppins-Light", sans-serif;

  font-size: 20px;

  margin-top: 20px;
  padding: 15px 20px;
  border-radius: 10px;
  border: 1px solid transparent;

  background-color: #fff;
  color: #1e4996;
}

.error-page-container .error-redirect-button svg {
  margin-left: 5px;
  height: 24px;
}

.error-page-container .error-redirect-button a:hover {
  border-radius: 15px;
  border: 1px solid var(--blue-900);
  color: var(--blue-900);
}

/* HERO BANNER */
.hero-banner {
  position: relative;
  width: 100%;
  min-height: 85vh; 
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Gradiente equilibrado para dar leitura ao texto claro sem escurecer demasiado a imagem */
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.35) 50%,
      var(--neutral-100) 100%
    ),
    url(../img/mainHome-bg.jpg) center/cover no-repeat;
}

.hero-banner .hero-container {
  z-index: 0;
  /*  width: 100%;*/
  height: 100vh;
  padding-top: 18vh;
  display: flex;
  align-items: center;
  /*  justify-content: center;*/
  flex-direction: column;
}

.hero-banner .hero-container .hero-header {
  display: flex;
  flex-direction: column;
  text-align: center;

  animation: fadeIn 1s ease-out forwards;

  /*background: linear-gradient(190deg, rgb(26, 32, 32) 0%, rgb(55, 114, 234) 100%);*/
  background-clip: text;
  -webkit-background-clip: text;
  /*-webkit-text-fill-color: transparent;*/
  color: white;
  text-shadow:
    1px 1px 2px black,
    0 0 25px black,
    0 0 5px black;


}

.hero-banner .hero-container .hero-header::before {
  color: var(--neutral-500);
  filter: blur(10px);
}

.hero-banner .hero-container .hero-header .hero-title {
  font-family: "Poppins-Medium";
  font-size: 36px;
  letter-spacing: -3px;
  line-height: 1.2;
}

.hero-banner .hero-container .hero-header .hero-title span {
  font-size: 40px;
  letter-spacing: normal;
}

.hero-banner .hero-container .hero-header .hero-slogan {
  font-size: 20px;
  font-family: "Poppins-Light";
}

.hero-banner .hero-container .hero-know-box {
  position: absolute;
  bottom: 5vh;
  color: var(--blue-500);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  animation: fadeInTop 1s ease-out forwards;
}

.hero-banner .hero-container .hero-know-box .mouse {
  width: 30px;
  height: 45px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 60px;
  position: relative;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  box-shadow:
    0 0 0 4px rgba(0, 0, 0, 0.8),
    0 4px 12px rgba(0, 0, 0, 0.3);
  &::before {
    content: "";
    width: 8px;
    height: 8px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    opacity: 1;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.8);
    animation: wheel 2s infinite ease-out;
  }
}

/* For buttons where the arrow is placed after the text, add left margin instead */
.hero-buttons a svg,
.btn svg:last-child {
  margin-left: 8px;
  margin-right: 0;
}

/* LOADING CIRCLE */

.lds-ring {
  color: var(--blue-700);
}

.lds-ring,
.lds-ring div {
  box-sizing: border-box;
}
.lds-ring {
  display: inline-block;
  position: relative;
  width: 25px;
  height: 25px;
}
.lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 25px;
  height: 25px;
  border: 5px solid currentColor;
  border-radius: 50%;
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: currentColor transparent transparent transparent;
}
.lds-ring div:nth-child(1) {
  animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
  animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
  animation-delay: -0.15s;
}



/* FAQ */

.faq-container {
  padding: 40px 0;
}

.faq-container h3 {
  color: var(--title);
  font-size: 72px;
  font-family: "Poppins-Medium";
}

.faq-container h3 span {
  color: var(--p);
  font-size: 26px;
}

.faq-wrapper {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-wrapper .faq-item {
  padding: 20px;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 10%) 5px 5px 20px 0;
  transition: 0.2s ease-in-out;
  border: 1px solid var(--faqBorder);
}

.faq-wrapper .faq-item:hover {
  box-shadow: rgba(0, 0, 0, 20%) 5px 5px 20px 0;
  border: 1px solid var(--faqBorderHover);
}

.faq-wrapper .faq-item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-wrapper .faq-item a .faq-header {
  font-size: 24px;
}

.faq-wrapper .faq-item a svg {
  height: 26px;
  transform: rotate(-45deg);

  transition: 0.3s;
}

.faq-wrapper .faq-item.active a svg {
  height: 26px;
  transform: rotate(0deg);
}

.faq-wrapper .faq-item .faq-handler {
  color: var(--title);
}

.faq-wrapper .faq-item .faq-body {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;

  text-align: justify;
  font-family: "Poppins-Light";
  color: var(--p);
}

.faq-wrapper .faq-item.active .faq-body {
  margin-top: 15px;
}

/* ABOUT */

.about-container {
  position: relative;
  padding: 40px 0;
  letter-spacing: 0.1px;
  font-family: "Poppins-Light";
  color: var(--p);
}

.about-header {
  margin-bottom: 25px;
  font-family: "Poppins-Medium";
  color: var(--title);
}

.about-container .about-header,
.about-container .about-topics,
.about-container .about-info {
  transition: all 0.3s ease-out;
}

.about-topics .topics-title {
  font-size: 18px;
  font-family: "Poppins-Medium";
  color: var(--title);
}

.about-container .privacy-policy-box {
  display: flex;
  gap: 50px;
}

.about-container .privacy-policy-box > * {
  flex: 1 1 0;
  min-width: 0;
}

.about-container .cookie-icon {
  float: right;
  margin-left: 20px;
  transition: all 0.3s ease-out;
}

.about-container .cookie-icon svg {
  height: 300px;
  color: var(--title);
}

/* Layout em grelha de 2 colunas para o Sobre Nós */
.about-container.about-grid {
  display: flex;
  align-items: center; 
  justify-content: space-between;
  gap: 48px;
}

.about-grid .about-content {
  flex: 1;
  max-width: 620px;
}

.about-grid .about-logo-column {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.about-grid .about-logo-column img {
  width: 500px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.06));
}

/* Adaptabilidade para Telemóveis e Tablet */
@media (max-width: 868px) {
  .about-container.about-grid {
    flex-direction: column;
    gap: 28px;
  }

  .about-grid .about-logo-column img {
    max-width: 200px;
}
}

/* CONTACTS */

.contacts-form-container {
  margin-top: 40px;
}

.contacts-form-container h3 {
  color: var(--title);
  font-family: "Poppins-Medium";
}

.contacts-form-container p {
  color: var(--p);
  font-size: 14px;
}

.contacts-form-container form {
  margin-top: 30px;
}

.contacts-form-container form .form-group {
  display: flex;
  gap: 20px;
}

.contacts-form-container form .form-group .input-group {
  flex-basis: 50%;
}

.contacts-form-container .input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
}

.contacts-form-container .input-group .label {
  color: var(--p);
  font-size: 14px;
  font-family: "Poppins-Medium";
}

.contacts-form-container .input-group input[type="text"],
.contacts-form-container .input-group input[type="email"] {
  height: 45px;
}

.contacts-form-container .input-group textarea {
  min-height: 200px;
}

.contacts-form-container button {
  border: none;
  border-radius: 5px;
  color: var(--neutral-100);
  background-color: var(--outline);
  padding: 10px 15px;
}

.contacts-form-container button:hover {
  background-color: var(--neutral-800);
}

.contacts-container {
  margin-top: 60px;
  display: flex;
  justify-content: space-between;
  gap: 50px;
  flex-wrap: wrap;
}

.contacts-container .contacts-group {
  flex-basis: calc(33% - 40px);
  padding-right: 70px;
}

@media (max-width: 1024px) {
  .contacts-container .contacts-group {
    flex-basis: calc(50% - 40px);
  }
}

@media (max-width: 800px) {
  .contacts-container .contacts-group {
    flex-basis: 100%;
  }
}

.contacts-container .contacts-group .title {
  font-family: "Poppins-Light";
  letter-spacing: -0.5px;
  font-size: 26px;
  margin-bottom: 15px;
}

.contacts-container .contacts-group .title span {
  font-family: "Poppins-Medium";
}


.contacts-container .contacts-group .desc-small {
  font-size: 14px;
  font-family: "Poppins-Light";
  color: var(--neutral-800);
}

.contacts-container .contacts-group .group-item {
  display: flex;
  align-items: center;
  font-size: 14px;
  margin-bottom: 15px;
}

.contacts-container .contacts-group .group-item .contacts-svg-border {
  border-radius: 50%;
  padding: 8px;

  display: flex;
  justify-content: center;
  align-items: center;

  background-color: var(--svg);
  margin-right: 10px;
}

.contacts-container .contacts-group .group-item svg {
  height: 25px;
  width: 25px;
  color: var(--neutral-100);
}

.contacts-container .contacts-group .group-item {
  color: var(--p);
}

.contacts-container .contacts-group .group-item a:hover {
  color: var(--title);
}

.contacts-container .contacts-group .group-item b {
  margin-right: 5px;
  color: var(--title);
}

.contacts-maps-container {
  margin-top: 100px;
}

.contacts-maps-container h3 {
  color: var(--title);
  font-family: "Poppins-Medium";
  margin-bottom: 10px;
}

/* MANUALS */

.manuals-container {
  padding: 40px 0;
}

.manuals-container h3 {
  color: var(--title);
  font-size: 72px;
  font-family: "Poppins-Medium";
}

.manuals-container h3 span {
  color: var(--p);
  font-size: 26px;
}

.manuals-wrapper {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.manuals-wrapper .manuals-item {
  padding: 20px;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 10%) 5px 5px 20px 0;
  transition: 0.2s ease-in-out;
  border: 1px solid var(--faqBorder);
}

.manuals-wrapper .manuals-item:hover {
  box-shadow: rgba(0, 0, 0, 20%) 5px 5px 20px 0;
  border: 1px solid var(--faqBorderHover);
}

.manuals-wrapper .manuals-item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.manuals-wrapper .manuals-item a .manuals-header {
  font-size: 24px;
}

.manuals-wrapper .manuals-item a svg {
  height: 26px;
  transform: rotate(-45deg);
  transition: 0.3s;
}

.manuals-wrapper .manuals-item.active a svg {
  transform: rotate(0deg);
}

.manuals-wrapper .manuals-item .manuals-handler {
  color: var(--title);
}

.manuals-wrapper .manuals-item .manuals-body {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  text-align: justify;
  font-family: "Poppins-Light";
  color: var(--p);
}

.manuals-wrapper .manuals-item.active .manuals-body {
  margin-top: 15px;
}

@media only screen and (max-width: 947px) {
  /*body{
    zoom:80%;
  }*/
  .navbar {
    display: none;
  }
  .navbar-mobile {
    display: flex;
  }

  .contacts-form-container form .form-group {
    display: block;
  }
}

:root {
  --color-primary: var(--blue-1000);
  --color-secondary: var(--blue-900);
  --color-accent: var(--blue-800);
  --color-highlight: var(--blue-400);
  --color-text: var(--neutral-900);
  --color-text-light: var(--neutral-600);
  --color-bg: var(--neutral-50);
  --color-white: var(--neutral-100);
  --color-border: var(--neutral-200);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --transition: all 0.3s ease;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Buttons used on servers page */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  border: 2px solid var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

/* Hero (servers) */
.hero {
  position: relative;
  min-height: 100vh;
  min-width: 100%;
  display: flex;
  align-items: center;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-secondary) 50%,
    var(--color-accent) 100%
  );
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  color: var(--color-white);
  animation: fadeInUp 0.8s ease;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero h1 span {
  color: rgba(255, 255, 255, 0.7);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.1rem);
  font-weight: 300;
  opacity: 0.9;
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 1s ease 0.3s both;
}

.hero-image-wrapper {
  position: relative;
  max-width: 450px;
  width: 100%;
}

.hero-image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
}

/* Features, Heart, System and CTA sections */
.features {
  padding: 100px 0;
  background: var(--color-white);
  position: relative;
  overflow: hidden;
}
.features::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-white);
  pointer-events: none;
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
  position: relative;
  z-index: 1;
}
.section-header h2 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
  position: relative;
}
.section-header h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-highlight)
  );
  border-radius: 2px;
}
.section-header p {
  text-align: center;
  color: var(--color-text-light);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  position: relative;
  z-index: 1;
}



.feature-card {
  padding: 40px 32px;
  background: var(--color-white);
  border-radius: 20px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-highlight)
  );
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border-color: var(--color-primary);
}
.feature-card:hover::before {
  transform: scaleX(1);
}
.feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--color-primary)
}
.feature-icon img {
  width: 50px;
  stroke: var(--color-white);
  stroke-width: 2;
  fill: none;
}
.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.feature-card p {
  text-align: center;
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.6;
}

.heart {
  padding: 100px 0;
  background: linear-gradient(
    135deg,
    var(--color-white) 0%,
    var(--color-bg) 100%
  );
  position: relative;
  overflow: hidden;
}
.heart::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  transform: translate(50%, -50%);
}
.heart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.heart-content h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 24px;
  position: relative;
}
.heart-content h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-highlight),
    var(--color-primary)
  );
  border-radius: 2px;
}
.heart-content p {
  color: var(--color-text-light);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.heart-features {
  list-style: none;
  padding: 0;
}
.heart-features li {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  color: var(--color-text);
  font-size: 16px;
}
.heart-features li::before {
  content: "✓";
  color: var(--color-highlight);
  font-weight: bold;
  font-size: 18px;
  margin-right: 12px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 50%;
  flex-shrink: 0;
}
.heart-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.heart-visual img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}
.heart-visual:hover img {
  transform: scale(1.05);
}

.system {
  padding: 100px 0;
  background: linear-gradient(
    135deg,
    var(--color-bg) 0%,
    var(--color-white) 100%
  );
  position: relative;
  overflow: hidden;
}
.system::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(147, 51, 234, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
  transform: translate(-50%, 50%);
}
.system-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.system-visual {
  order: -1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.system-visual img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}
.system-visual:hover img {
  transform: scale(1.05);
}
.system-content h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 24px;
  position: relative;
}
.system-content h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-highlight),
    var(--color-primary)
  );
  border-radius: 2px;
}
.system-content p {
  color: var(--color-text-light);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.system-features {
  list-style: none;
  padding: 0;
}
.system-features li {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  color: var(--color-text);
  font-size: 16px;
}
.system-features li::before {
  content: "⚡";
  color: var(--color-highlight);
  font-size: 18px;
  margin-right: 12px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(147, 51, 234, 0.1);
  border-radius: 50%;
  flex-shrink: 0;
}

.cta {
  padding: 80px 0;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-secondary) 50%,
    var(--color-accent) 100%
  );
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}
.cta-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}
.cta h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 16px;
}
.cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}


@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 120px 0 60px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-content {
    order: 1;
  }
  .hero-image {
    order: 2;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-image-wrapper {
    max-width: 320px;
  }
  .heart-grid,
  .system-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .system-visual {
    order: 0;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .feature-card {
    padding: 32px 20px;
  }
  .feature-icon {
    width: 64px;
    height: 64px;
  }
  .feature-icon img {
    width: 32px;
    height: 32px;
  }
  .section-header h2 {
    font-size: 2rem;
  }
  .section-header p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .feature-card {
    padding: 24px 20px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .heart-content h2,
  .system-content h2 {
    font-size: 1.8rem;
  }
  .cta h2 {
    font-size: 2rem;
  }
}

/*  CATALOGO  */

/* Hero Banner do Catálogo */
.catalog-hero {
  background: linear-gradient(135deg, rgba(28, 63, 115, 0.75) 0%, rgba(18, 43, 82, 0.88) 100%),
  url('/img/mainHome-bg.jpg') center/cover no-repeat;
  color: var(--color-white);
  padding: 135px 0 55px;
  box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.08);
}

.catalog-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Botão "Voltar aos Produtos" */
.btn-catalog-back {
  position: relative ;
  top: auto ;
  left: auto ;
  margin-top: 25px ;
  display: inline-flex ;
  align-items: center ;
  gap: 8px ;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08); 
  color: var(--color-white) !important;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 22px;
  border-radius: 50px; 
  border: 1px solid rgba(255, 255, 255, 0.6); 
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition: all 0.25s ease;
}

  
.btn-catalog-back:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.22);
  transform: translateX(-3px);
}

/* Bloco de Texto */
.catalog-hero-body {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.catalog-hero-body p,
  .catalog-subtitle {
  text-align: center;
}
.catalog-eyebrow {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}
.catalog-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--color-white);
  margin: 0 0 12px 0;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.catalog-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  line-height: 1.5;
}

/* Estados sem conteúdos (Empty State) */
.catalog-empty-state {
  text-align: center;
  padding: 40px 20px;
  max-width: 600px;
  margin: 0 auto;
}
.catalog-empty-state h2 {
  font-size: 1.8rem;
  color: var(--brand-blue);
  margin-bottom: 12px;
}
.catalog-empty-state p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 20px;
}
.catalog-empty-state code {
  background: #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9rem;
}
.catalog-nav-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
/* Título de secção do catálogo (Ficheiros, Vídeo, ...) */
.catalog-section-title {
  position: relative;
  text-align: center;
  font-family: "Poppins-Medium", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.2;
  color: var(--brand-blue, #1C3F73);
  margin: 0 0 40px;
  padding-bottom: 14px;
}

.catalog-section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    var(--brand-blue, #1C3F73),
    var(--color-highlight)
  );
}

/* Espaço entre secções (ex.: Ficheiros -> Vídeo) */
.catalog-section + .catalog-section {
  margin-top: 70px;
}
.btn-primary {
  display: inline-block;
  background: var(--brand-blue);
  color: var(--color-white);
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-primary:hover {
  background: var(--brand-blue-dark);
}

/* Grelha de Imagens do Catálogo */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.catalog-item {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.catalog-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.catalog-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(28, 63, 115, 0.12);
}
.catalog-item:hover img {
  transform: scale(1.05);
}

/* Escolha de tipo (PVC / Alumínio) */
.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}
.type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--color-white);
  border: 1px solid rgba(28, 63, 115, 0.12);
  border-radius: 16px;
  padding: 48px 36px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.type-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(28, 63, 115, 0.14);
  border-color: var(--brand-blue);
}
.type-card-title {
  font-family: "Poppins-Medium", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin: 0 0 14px;
}
.type-card-tagline {
  font-family: "Poppins-Medium", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-text);
  margin: 0 0 20px;
}
.type-card-text {
  text-align: center;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 28px;
}
.type-card-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-blue);
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 26px;
  border-radius: 50px;
  transition: background 0.25s ease;
}
.type-card:hover .type-card-btn {
  background: var(--brand-blue-dark);
}
.type-card-btn svg {
  transition: transform 0.2s ease;
}
.type-card:hover .type-card-btn svg {
  transform: translateX(4px);
}

/* Modelos (grelha de sistemas) */
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 32px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.model-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.model-card-title {
  font-family: "Poppins-Medium", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-text);
  margin: 0;
}
.model-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.model-card-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.model-card:hover .model-card-img img {
  transform: scale(1.04);
}
.model-card-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-blue);
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 24px;
  border-radius: 50px;
  transition: background 0.25s ease, transform 0.25s ease;
}
.model-card-btn:hover {
  background: var(--brand-blue-dark);
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .model-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 20, 40, 0.92);
  backdrop-filter: blur(4px);
}
.lightbox[hidden] {
  display: none;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
}
.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2 ease;
}
.lightbox button:hover {
  background: rgba(255, 255, 255, 0.25);
}
.lightbox-close {top: 20px;right: 20px; font-size: 28px !important;}
.lightbox-prev {left: 20px; top: 50%; transform: translateY(-50%);}
.lightbox-next {right: 20px; top: 50%; transform: translateY(-50%);}
.lightbox-counter{
  position: aboslute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}
@media (max-width: 600px){
  .lightbox-prev {left: 8px;}
  .lightbox-next {right: 8px;}
  .lightbox button {width: 40px; height: 40px;}
}

/* Cartões PDF */
.pdf-intro {
  max-width: 640px;
  margin: 0 auto 30px;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.pdf-grid {
  display: grid ;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) ;
  max-width: 1000px ; 
  margin: 30px auto 0 auto; 
  gap: 24px ; 
  justify-content: center ;
}
.pdf-card {
  display: flex ;
  flex-direction: column ;
  justify-content: space-between ;
  height: 100% ;
  background: var(--color-white);
  border: 1px solid rgba(28, 63, 115, 0.12) ;
  border-radius: 16px ;
  padding: 28px 24px ;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) ;
  transition: all 0.3s ease ;
}
.pdf-card:hover {
  transform: translateY(-5px) ;
  box-shadow: 0 12px 28px rgba(28, 63, 115, 0.12) ;
  border-color: var(--brand-blue) ;
}
.pdf-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(28, 63, 115, 0.08);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.pdf-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin: 0 0 8px;
}
.pdf-card-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 20px;
}
.pdf-card-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-blue);
}
.pdf-card-cta svg {
  transition: transform 0.2s ease;
}
.pdf-card:hover .pdf-card-cta svg {
  transform: translateX(4px);
}

/* Vídeos do catálogo */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.video-card {
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(28, 63, 115, 0.12);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.video-card video,
.video-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: contain;
}

@media (max-width: 480px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

/* Banner CTA Secundário */
.cta-banner {
  background: var(--bg-light);
  padding: 50px 0 70px;
  border-top: 1px solid rgba(0,0,0,0.05);
}
.cta-inner {
  background: var(--brand-blue);
  color: var(--color-white);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(28, 63, 115, 0.15);
}
.cta-inner h2 {
  font-size: 1.8rem;
  color: var(--color-white);
  margin: 0 0 10px;
}
.cta-inner p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 24px;
}

.btn-cta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-white) !important; 
  color: #1C3F73 !important; 
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 26px;
  border-radius: 50px !important; 
  border: 1px solid var(--color-white);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease; 
}

.btn-cta-pill:hover {
  background-color: #f1f5f9 !important; 
  color: #122b52 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .catalog-hero {
    padding: 110px 0 40px;
  }
  .catalog-title {
    font-size: 2.1rem;
  }
  .catalog-subtitle {
    font-size: 0.98rem;
  }
}

.btn-brand-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #21406ed9; 
  color: var(--color-white) !important;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 22px;
  border-radius: 50px; 
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: all 0.25s ease;
}

.btn-brand-blue:hover {
  background: #173054; 
  color: var(--color-white) !important;
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

.btn-brand-blue svg {
  transition: transform 0.2s ease;
}

.btn-brand-blue:hover svg {
  transform: translateX(4px);
}

/* Botão Outline em Formato Pílula */
.btn-outline-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08); 
  color: var(--color-white) !important;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 22px;
  border-radius: 50px; 
  border: 1px solid rgba(255, 255, 255, 0.6); 
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition: all 0.25s ease;
}

.btn-outline-pill:hover {
  background: rgba(255, 255, 255, 0.25);
  color: var(--color-white) !important;
  border-color: var(--color-white);
  transform: translateY(-1px);
}

.btn-send-blue {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  background: #21406ed9; 
  color: var(--color-white) !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  padding: 8px 22px !important;
  border-radius: 50px !important; 
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  text-decoration: none !important;
  backdrop-filter: blur(6px) !important;
  transition: all 0.25s ease !important;
}

.btn-send-blue:hover {
  background: #173054 !important; 
  color: var(--color-white) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  transform: translateY(-1px) !important;
}

.btn-send-blue svg {
  transition: transform 0.2s ease !important;
}

.btn-send-blue:hover svg {
  transform: translateX(4px) !important;
}

/* Página em atualização (parcerias, etc.) */
.coming-soon {
  min-height: 55vh;
  display: flex;
  align-items: center;
  padding: 70px 0;
}
.coming-soon .container {
  width: 100%;
}
.coming-soon-card {
  max-width: 620px;
  margin: 0 auto;
  padding: 56px 40px;
  text-align: center;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}
.coming-soon-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e8eef7;
  color: var(--brand-blue, #1C3F73);
}
.coming-soon-badge {
  display: inline-block;
  padding: 5px 14px;
  margin-bottom: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand-blue, #1C3F73);
  background: #e8eef7;
  border-radius: 999px;
}
.coming-soon-card h2 {
  font-size: 1.9rem;
  color: var(--brand-blue, #1C3F73);
  margin-bottom: 12px;
}
.coming-soon-card p {
  text-align: center;
  color: var(--text-muted, #64748b);
  font-size: 1.05rem;
  line-height: 1.6;
}
.coming-soon-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 28px 0 24px;
}
.coming-soon-actions .btn {
  font-family: "Poppins-Medium", "Poppins-Light", sans-serif;
  font-weight: 400;
}
.coming-soon-note {
  font-size: 0.92rem !important;
  margin: 0 !important;
}
.coming-soon-note a {
  color: var(--brand-blue, #1C3F73);
  font-weight: 600;
  text-decoration: none;
}
.coming-soon-note a:hover {
  text-decoration: underline;
}

/* Parcerias: grelha de parceiros */
.partners-section {
  padding: 64px 0 56px;
}
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.partner-card {
  flex: 0 1 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px 28px;
  background: #ffffff;
  border: 1px solid (0, 0, 0, 0.06);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.partner-card:hover{ /*APAGAR CASO NAO GOSTE*/
  border-color: rgba(28, 63, 115, 00.25);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.09);
}
a.partner-card:hover {
  transform: translateY(-4px);
}
.partner-logo {
  width: 100%;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.partner-logo img {
  max-width: 170px;
  max-height: 84px;
  width: auto;
  height: auto;
  object-fit: contain;

  filter: grayscale(1);
  opacity: 0.85;
  transition: filter 0.25s ease, opacity 0.25s ease;
}
.partner-card:hover .partner-logo img {
  filter: none;
  opacity: 1;
}
.partner-logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brand-blue, #1C3F73);
}
.partner-name {
  font-size: 1.05rem;
  color: var(--brand-blue, #1C3F73);
  margin: 0;
}
.partner-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
  color: var(--text-muted, #64748b);
  margin: 8px 0 0;
}
@media (max-width: 600px) {
  .partners-section {
    padding: 44px 0 36px;
  }
  .partner-card {
    flex-basis: 100%;
    max-width: 360px;
  }
}


/* ===== Modelos: grelha de cartões ===== */
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.model-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px 18px 22px;
  text-align: center;
  font: inherit;
  color: inherit;
  background: var(--color-white);
  border: 1px solid rgba(28, 63, 115, 0.12);
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.model-card:hover,
.model-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(28, 63, 115, 0.14);
  border-color: var(--brand-blue);
}
.model-card:focus-visible {
  outline: 3px solid var(--color-highlight);
  outline-offset: 2px;
}
.model-card-title {
  font-family: "Poppins-Medium", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-text);
}
.model-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.model-card-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.model-card:hover .model-card-img img {
  transform: scale(1.05);
}
.model-card-desc {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.model-card-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  background: var(--brand-blue);
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 24px;
  border-radius: 50px;
  transition: background 0.25s ease;
}
.model-card:hover .model-card-btn {
  background: var(--brand-blue-dark);
}

@media (max-width: 480px) {
  .model-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
  .model-card { padding: 16px 10px 16px; }
  .model-card-desc { display: none; }
}

/* ===== Modelos: janela de detalhe (<dialog>) ===== */
.model-modal {
  width: min(1000px, 94vw);
  max-height: 92vh;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: var(--color-white);
  color: var(--color-text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.model-modal::backdrop {
  background: rgba(10, 20, 40, 0.78);
  backdrop-filter: blur(3px);
}
.model-modal[open] {
  display: flex;
  flex-direction: column;
}
.model-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(28, 63, 115, 0.2);
  border-radius: 50%;
}
.model-modal-close:hover {
  background: var(--brand-blue);
  color: #fff;
}
.model-modal-body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  min-height: 0;
  overflow-y: auto;
}
.model-modal-media {
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 40px 24px 24px;
  background: var(--bg-light);
}
.model-modal-img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
}
.model-modal-thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.model-thumb {
  width: 64px;
  height: 64px;
  padding: 4px;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 10px;
  opacity: 0.7;
}
.model-thumb.active,
.model-thumb:hover {
  border-color: var(--brand-blue);
  opacity: 1;
}
.model-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.model-modal-info {
  padding: 40px 36px 32px;
}
.model-modal-title {
  font-family: "Poppins-Medium", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--brand-blue);
  margin: 0 40px 16px 0;
}
.model-modal-desc {
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-light);
  margin: 0 0 12px;
}
.model-modal-h {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin: 22px 0 8px;
}
.model-specs {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 18px;
  font-size: 0.9rem;
  margin: 0;
}
.model-specs dt {
  color: var(--text-muted);
}
.model-specs dd {
  margin: 0;
  font-weight: 600;
}
.model-features {
  list-style: none;
  padding: 0;
  margin: 0;
}
.model-features li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.model-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-highlight);
  font-weight: 700;
}
.model-colors {
  margin-top: 22px;
  border: 1px solid rgba(28, 63, 115, 0.15);
  border-radius: 12px;
  padding: 4px 16px 12px;
}
.model-colors summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--brand-blue);
  padding: 10px 0;
}
.model-colors-group {
  font-size: 0.85rem;
  margin: 14px 0 6px;
  color: var(--color-text);
}
.model-colors-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.model-colors-list li {
  font-size: 0.75rem;
  color: var(--brand-blue);
  background: rgba(28, 63, 115, 0.08);
  padding: 3px 10px;
  border-radius: 50px;
}
/* Cor com amostra (imagem) */
.model-colors-list li.has-swatch {
  width: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  text-align: center;
  background: none;
  border-radius: 0;
  line-height: 1.25;
  font-size: 0.68rem;
}
.model-colors-list li.has-swatch img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(28, 63, 115, 0.25);
}
.model-colors-list { gap: 10px 6px; }
.model-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.model-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 50px;
  color: var(--brand-blue);
  border: 1px solid var(--brand-blue);
  transition: background 0.25s ease, color 0.25s ease;
}
.model-btn:hover {
  background: var(--brand-blue);
  color: #fff;
}
.model-btn-solid {
  background: var(--brand-blue);
  color: #fff;
}
.model-btn-solid:hover {
  background: var(--brand-blue-dark);
}

@media (max-width: 760px) {
  .model-modal { width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; }
  .model-modal-body { grid-template-columns: 1fr; }
  .model-modal-media { position: static; padding: 56px 20px 16px; }
  .model-modal-img { max-height: 240px; }
  .model-modal-info { padding: 24px 20px 28px; }
}

/* ADVANTAGES */
.advantages-page {
    background-color: #ffffff;
    color: var(--color-text, #1e293b);
    min-height: 70vh;
}

.advantages-section {
  padding: 60px 24px 80px;
}

.advantages-container {
    max-width: 1280px;
    margin: 0 auto;
}

/* Header alinhado com o estilo de títulos do Catálogo */
.advantages-heading {
    text-align: center;
    margin: 0 auto 50px;
    max-width: 760px;
}

.advantages-eyebrow {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--brand-blue, #1C3F73);
    margin-bottom: 8px;
    opacity: 0.85;
}

.advantages-heading h1 {
    font-family: "Poppins-Medium", sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.15;
    font-weight: 700;
    margin: 0 0 14px;
    color: var(--brand-blue, #1C3F73);
    letter-spacing: -0.5px;
}

.advantages-heading p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 auto;
    color: var(--text-muted, #64748b);
    text-align: center;
}

/* Grelha de Cartões */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.advantage-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 32px 26px;
    border-radius: 16px;
    border: 1px solid rgba(28, 63, 115, 0.12);
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    animation: advantageIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: var(--card-delay, 0ms);
}

.advantage-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-blue, #1C3F73);
    box-shadow: 0 14px 32px rgba(28, 63, 115, 0.12);
}

/* Ícones integrados em Badges */
.advantage-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(28, 63, 115, 0.08);
    color: var(--brand-blue, #1C3F73);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: background 0.3s ease, color 0.3s ease;
}

.advantage-card:hover .advantage-icon-wrapper {
    background: var(--brand-blue, #1C3F73);
    color: #ffffff;
}

.advantage-icon-wrapper svg {
    width: 26px;
    height: 26px;
}

.advantage-copy h2 {
    font-family: "Poppins-Medium", sans-serif;
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 700;
    margin: 0 0 10px;
    text-transform: uppercase;
    color: var(--brand-blue, #1C3F73);
    letter-spacing: 0.3px;
}

.advantage-copy p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-muted, #64748b);
    margin: 0;
    text-align: left;
}

/* Número das Vantagens */
.advantage-number {
    position: absolute;
    right: 20px;
    top: 20px;
    background: rgba(28, 63, 115, 0.05);
    color: var(--brand-blue, #1C3F73);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    letter-spacing: 0.5px;
}

/* Secção de Condições Gerais em formato de documento limpo */
.conditions-section {
    margin-top: 80px;
    padding: 50px 40px;
    background: #ffffff;
    border: 1px solid rgba(28, 63, 115, 0.12);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.conditions-heading {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(28, 63, 115, 0.1);
}

.conditions-heading h2 {
    font-family: "Poppins-Medium", sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--brand-blue, #1C3F73);
    margin: 0 0 8px;
}

.conditions-heading p {
    font-size: 0.98rem;
    color: var(--text-muted, #64748b);
    margin: 0;
}

.conditions-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.condition-chapter h3 {
    font-family: "Poppins-Medium", sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand-blue, #1C3F73); /* Corrigido de preto para azul da marca */
    margin: 0 0 14px;
}

.condition-chapter p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-muted, #64748b);
    margin: 0 0 12px;
    text-align: justify;
}

.condition-chapter p:last-child {
    margin-bottom: 0;
}

/* 1. Garante que a coluna de informação do modal comporta-se como um flex container */
.model-modal-info {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 0 !important; /* Removemos o padding antigo para gerir na barra */
}

/* 2. O conteúdo de texto faz scroll mas deixa espaço no fundo */
.model-modal-content {
  overflow-y: auto;
  padding-bottom: 90px; /* Espaço suficiente para o texto nunca ficar tapado pelos botões */
}

/* 3. A barra de botões fica fixa em baixo (sticky) com fundo em gradiente translúcido */
.model-modal-actions {
  position: sticky;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  
  /* Gradiente subtil para o texto desvanecer por baixo dos botões */
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 30%, #ffffff 100%);
  padding: 24px 0 20px 0;
  margin-top: auto;
  z-index: 10;
}


@keyframes advantageIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media(max-width: 868px) {
    .advantages-section {
        padding: 100px 20px 60px;
    }
    .advantages-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 24px;
    }
}

@media(max-width: 600px) {
    .advantages-grid {
        grid-template-columns: 1fr;
    }
}

@media(prefers-reduced-motion: reduce) {
    .advantage-card {
        animation: none;
        transition: none;
    }
}

/* ===== Escolha de tipo com 3 cartões + estado "Em atualização" (Portões e Vedações) ===== */
.type-grid--3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1100px;
  gap: 24px;
}
.type-grid--3 .type-card {
  padding: 40px 28px;
}
@media (max-width: 900px) {
  .type-grid--3 {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}

/* Cartão em atualização: visível, mas sem link nem hover */
.type-card--soon {
  cursor: default;
}
.type-card--soon:hover {
  transform: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border-color: rgba(28, 63, 115, 0.12);
}
.type-card--soon .type-card-title,
.type-card--soon .type-card-tagline,
.type-card--soon .type-card-text {
  opacity: 0.55;
}
.type-card-badge {
  display: inline-block;
  padding: 5px 14px;
  margin-bottom: 18px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand-blue, #1C3F73);
  background: #e8eef7;
  border-radius: 999px;
}
.type-card-btn--ghost {
  background: transparent;
  color: var(--brand-blue, #1C3F73);
  border: 1.5px solid var(--brand-blue, #1C3F73);
  text-decoration: none;
}
.type-card--soon:hover .type-card-btn--ghost,
.type-card-btn--ghost:hover {
  background: var(--brand-blue, #1C3F73);
  color: var(--color-white, #fff);
}

/* SERVICES */
.services-page {
    background-color: #ffffff;
    color: var(--color-text, #1e293b);
    min-height: 70vh;
}

.services-section {
    padding: 60px 0 80px;
}

/* Cartão principal de "Em Atualização" */
.services-construction-card {
    max-width: 800px;
    margin: 0 auto 60px auto;
    padding: 48px 36px;
    text-align: center;
    background: #ffffff;
    border: 1px solid rgba(28, 63, 115, 0.12);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.services-construction-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(28, 63, 115, 0.08);
    color: var(--brand-blue, #1C3F73);
}

.services-construction-badge {
    display: inline-block;
    padding: 6px 16px;
    margin-bottom: 16px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--brand-blue, #1C3F73);
    background: rgba(28, 63, 115, 0.08);
    border-radius: 50px;
}

.services-construction-card h2 {
    font-family: "Poppins-Medium", sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--brand-blue, #1C3F73);
    margin: 0 0 12px;
}

.services-construction-card p {
    text-align: center;
    color: var(--text-muted, #64748b);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 28px;
}

.services-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Título da secção secundária */
.services-preview-title {
    position: relative;
    text-align: center;
    font-family: "Poppins-Medium", sans-serif;
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--brand-blue, #1C3F73);
    margin: 0 0 40px;
    padding-bottom: 14px;
}

.services-preview-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(
        90deg,
        var(--brand-blue, #1C3F73),
        var(--color-highlight, #3b82f6)
    );
}

/* Grelha de pré-visualização de serviços */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.service-preview-card {
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    border-radius: 16px;
    border: 1px solid rgba(28, 63, 115, 0.12);
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    opacity: 0.9;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-preview-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-blue, #1C3F73);
    box-shadow: 0 12px 28px rgba(28, 63, 115, 0.08);
    opacity: 1;
}

.service-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(28, 63, 115, 0.08);
    color: var(--brand-blue, #1C3F73);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.service-icon-wrapper svg {
    width: 24px;
    height: 24px;
}

.service-preview-card h3 {
    font-family: "Poppins-Medium", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brand-blue, #1C3F73);
    margin: 0 0 8px;
}

.service-preview-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted, #64748b);
    margin: 0;
    text-align: left;
}

/* Banner CTA no fundo */
.services-cta {
    padding: 36px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: var(--brand-blue, #1C3F73);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(28, 63, 115, 0.15);
}

.services-cta h2 {
    font-family: "Poppins-Medium", sans-serif;
    font-size: 1.4rem;
    margin: 0 0 6px;
    font-weight: 700;
    color: #ffffff;
}

.services-cta p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
    line-height: 1.5;
    text-align: left;
}

@media(max-width: 868px) {
    .services-construction-card {
        padding: 32px 20px;
    }
    .services-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 20px;
    }
}

@media(max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* CTA global (ui/cta.php) - mesmo bloco em todas as páginas */
.page-cta {
    background: #ffffff;
    padding: 50px 0 70px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.type-grid--4 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 1000px;
  gap: 24px;
}
.type-grid--4 .type-card {
  padding: 40px 28px;
}
@media (max-width: 700px) {
  .type-grid--4 {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}

.form-feedback {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid;
    font-size: 15px;
    line-height: 1.5;
}
.form-feedback p { margin: 0; flex: 1; }
.form-feedback-icon {
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    color: #fff;
}
.form-feedback--success { background: #edf7f0; border-color: #86c79b; color: #14532d; }
.form-feedback--success .form-feedback-icon { background: #1e7e46; }
.form-feedback--error { background: #fdf0ef; border-color: #e5a29c; color: #7a1f17; }
.form-feedback--error .form-feedback-icon { background: #b42318; }
.form-feedback-close {
    flex: none;
    background: none;
    border: 0;
    color: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    opacity: .6;
}
.form-feedback-close:hover, .form-feedback-close:focus-visible { opacity: 1; }

/* =====================================================
   HOME: faixa de confiança, vantagens, processo, história, parceiros
   ===================================================== */
.info-card { display: block; text-decoration: none; color: inherit; }
.info-card .feature-card { height: 100%; }
.feature-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
}
.info-card:hover .feature-link span { display: inline-block; transform: translateX(4px); }
.feature-link span { transition: transform 0.2s ease; }

.home-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-300);
  margin-bottom: 12px;
}

/* Faixa de confiança (logo abaixo do hero) */
.home-trust {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 28px 0;
}
.home-trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px 28px;
}
.home-trust-item { display: flex; align-items: center; gap: 14px; }
.home-trust-icon {
  flex: 0 0 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--color-bg);
  color: var(--color-primary);
}
.home-trust-item strong { display: block; font-size: 15px; color: var(--color-primary); line-height: 1.3; }
.home-trust-item small { display: block; font-size: 13px; color: var(--color-text-light); margin-top: 2px; }

/* Porquê a MatMaf */
.home-why { background: #ffffff; }
.home-why::before { background: #ffff; }
.home-why-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.home-why-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.home-why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.home-why-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--color-primary);
  color: #fff;
  margin-bottom: 18px;
}
.home-why-card h3 { font-size: 18px; color: var(--color-primary); margin-bottom: 8px; }
.home-why-card p { font-size: 15px; line-height: 1.6; color: var(--color-text-light); margin: 0; }

.home-section-link { position: relative; z-index: 1; text-align: center; margin: 36px 0 0; }
.home-section-link a { font-weight: 600; color: var(--color-primary); text-decoration: none; }
.home-section-link a:hover { text-decoration: underline; }

/* Como funciona */
.home-steps {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 32px 24px;
  counter-reset: step;
}
.home-step { position: relative; text-align: center; padding: 0 8px; }
.home-step-num {
  position: relative;
  z-index: 1;
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 0 0 8px var(--color-bg);
}
.home-step h3 { font-size: 18px; color: var(--color-primary); margin-bottom: 8px; }
.home-step p { font-size: 15px; line-height: 1.6; color: var(--color-text-light); margin: 0; }
@media (min-width: 900px) {
  .home-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 30px;
    left: calc(50% + 40px);
    width: calc(100% - 80px + 24px);
    border-top: 2px dashed var(--color-border);
  }
}

/* A nossa história */
.home-story {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  color: #fff;
  padding: 90px 0;
}
.home-story-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}
.home-story-text h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.2;
  color: #fff;
  margin-bottom: 18px;
}
.home-story-text p { font-size: 17px; line-height: 1.7; color: rgba(255, 255, 255, 0.88); margin-bottom: 28px; }
.home-story-btn { background: #fff; color: var(--blue-700); }
.home-story-mark {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.15;
  font-weight: 300;
  text-align: center;
  padding: 36px 24px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.75);
}
.home-story-mark b { font-weight: 800; color: #fff; }
.home-story-equals { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.25); }

/* Parceiros */
.home-partners { background: var(--color-white); padding: 64px 0 72px; }
.home-partners-title {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-light);
  margin-bottom: 28px;
}
.home-partners-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px; }
.home-partner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 90px;
  padding: 14px 20px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
}
.home-partner img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.85;
  transition: filter 0.25s ease, opacity 0.25s ease;
}
.home-partner:hover img { filter: none; opacity: 1; }

@media (max-width: 800px) {
  .home-story { padding: 64px 0; }
  .home-story-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-why-card, .home-partner img, .feature-link span { transition: none; }
}


/* HOME: hero reforçado (sem fotos reais) */
.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 110px 110px;
  -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent 90%);
  mask-image: linear-gradient(to bottom, #000 35%, transparent 90%);
  pointer-events: none;
}
.hero-banner .hero-container { position: relative; z-index: 1; padding-left: 24px; padding-right: 24px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  margin-bottom: 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  animation: fadeIn 1s ease-out forwards;
}
.hero-banner .hero-container .hero-header .hero-title {
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  letter-spacing: -1.5px;
  max-width: 900px;
}
.hero-banner .hero-container .hero-header .hero-slogan {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 640px;
  margin: 18px auto 0;
}
.hero-banner .hero-buttons { margin-top: 30px; flex-wrap: wrap; justify-content: center; }
.hero-chips {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.hero-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}
.hero-chips svg { color: #7fd1a0; flex: 0 0 auto; }
@media (max-width: 600px) {
  .hero-banner .hero-container { padding-top: 14vh; }
  .hero-eyebrow { font-size: 11px; letter-spacing: 0.08em; }
  .hero-chips li { font-size: 13px; padding: 8px 13px; }
}

/* ---- Outros Produtos ---- */
/* Colar no FIM do css/style.css (se já colou a versão anterior, substitua-a por esta) */
.type-card-icon {
  width: 72px;
  height: 72px;
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-card, 16px);
  background: rgba(28, 63, 115, 0.08);
  color: var(--brand-blue, #1C3F73);
}
.type-card.type-card--media,
.type-grid--3 .type-card.type-card--media { padding: 0 0 40px; overflow: hidden; }
.type-card--media > *:not(.type-card-media) { margin-left: 28px; margin-right: 28px; }
.type-card-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin: 0 0 26px;
  overflow: hidden;
  background: var(--color-bg);
}
.type-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.type-card--soon .type-card-title { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.type-card--soon .type-card-icon { opacity: 0.8; }