/* Welcome */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

header .container {
  margin: 2.5rem;
}

header .container h1 {
  position: relative;
  font-size: 4.83rem;
}

header .container h1::before {
  content: "arrow_outward";
  font-family: "Material Symbols Rounded";
  font-weight: 100;
  font-style: normal;
  line-height: 1;
  position: absolute;
  bottom: 0;
  right: 0;
  rotate: 90deg;
  font-variation-settings:
    "FILL" 0,
    "wght" 100,
    "GRAD" 0,
    "opsz" 24;
}

header .welcome-banner {
  width: 50rem;
}

header .welcome-banner img {
  width: 35rem;
  object-fit: cover;
}

.title {
  color: var(--primary);
  font-size: var(--text-size-md);
}

.title-green {
  color: var(--accent);
}

h2 {
  font-size: var(--text-size-xl);
}

h3 {
  font-size: 1.4rem;
}

h4 {
  font-size: var(--text-size-xl)
}

p {
  font-size: var(--text-size-md);
  font-weight: 400;
}

span {
  font-size: var(--text-size-md);
}

.about {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.about .container-fluid {
  display: flex;
  gap: 7rem
}

.about .left {
  width: 40rem;
}

.about .right {
  padding-top: 4rem;
  width: 32rem;
}

@media (max-width: 992px) {

  .about .container-fluid {
    flex-direction: column;
    gap: 1rem;
  }

  .about .left,
  .about .right {
    width: 100%;
  }

}

.outsourcing {
  background-color: #F1F1F1;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.card {
  background-color: var(--dark-gray);
  width: 100%;
  border: none;
}

.card-text {
  color: var(--light-gray);
  font-size: 0.7rem;
  font-weight: 300;
}

.card-title {
  color: var(--light);
  font-size: 1.2rem;
  font-weight: 600;
}

.card-img-top {
  width: 100%;
  height: 23rem;
  object-fit: cover;
}

.card .btn-outline {
  border-radius: 0%;
  border: 1px solid #ffffff50;
  color: var(--light);
  font-size: var(--text-size-sm);
  font-weight: 600;
  padding: 0.6rem;
}

.iconeHikvision {
  width: 6rem;
}

.iconeMotorola {
  width: 9rem;
}

.letraM {
  width: 2rem;
}

.wavePtx {
  width: 5rem;
}

.services {
  padding-top: 4rem;
  padding-bottom: 6rem;
}

.services .head {
  display: flex;
  gap: 25rem;
  align-items: flex-end;
}

.services .left {
  width: 15rem;
}

.services .right {
  width: 40rem;
}

@media (max-width: 992px) {

  .services .head {
    flex-direction: column;
    gap: 1rem;
  }

  .services .left,
  .services .right {
    width: 100%;
  }

}

.titles p {
  margin-top: -2rem;
}

.cards-info p {
  font-size: 1rem;
  font-weight: 300;
}

.cards-info h5 {
  font-size: var(--text-size-md);
  font-weight: 400;
}

.cards-info .material-symbols-rounded {
  color: var(--primary);
  font-weight: 500;
  font-size: 1.7rem;
  text-decoration-line: none;
}

.cards-info img {
  width: 3rem;
}

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: scale(1.20);
  box-shadow: 0 00px 25px #0003ff;
  background-color: var(--light);
}

@media (max-width: 992px) {

  .scroll-cards-row {
    display: flex !important;
    /* Transforma em linha flexível */
    flex-wrap: nowrap !important;
    /* Impede quebra de linha (Cria o scroll) */
    overflow-x: auto;
    /* Habilita o deslize */
    scroll-snap-type: x mandatory;
    /* Efeito ímã ao parar */
    -webkit-overflow-scrolling: touch;
    /* Suavidade nativa no iOS */
    gap: 1rem !important;
    /* Espaço entre os cards */
    padding: 0 0.7rem 1.2rem 0.7rem;
    /* Espaço lateral para não cortar */
    margin-left: 0 !important;
    /* Remove margens negativas do Bootstrap */
    margin-right: 0 !important;

    /* Esconder barra de rolagem */
    scrollbar-width: none;
    -ms-overflow-style: none;

  }

  /* Esconder scrollbar no Chrome/Safari */
  .scroll-cards-row::-webkit-scrollbar {
    display: none;
  }

  .scroll-cards-row .col {
    flex: 0 0 auto !important;
    /* Impede que o card encolha */
    width: 18rem !important;
    /* Largura fixa do card no mobile */
    max-width: 18rem !important;
    scroll-snap-align: center;
    /* Alinha ao centro ao parar */
    float: none !important;
    /* Remove float do Bootstrap */
  }

  .scroll-cards-row .card {
    height: 100%;
    /* Garante altura consistente */
  }

  /* Opcional: Ajuste o texto para ficar centralizado ou full-width no mobile */
  .outsourcing .row:first-child .col-lg-3 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    text-align: center;
    /* Opcional: centraliza o texto */
  }
}

.market {
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.market .head {
  display: flex;
  gap: 25rem
}

.market .left {
  width: 15rem;
}

.market .right {
  width: 40rem;
}

@media (max-width: 992px) {

  .market .head {
    flex-direction: column;
    gap: 1rem;
  }

  .market .left,
  .market .right {
    width: 100%;
  }

}

.card.card-produts {
  background-color: var(--light);
  display: flex;
  flex-direction: column;
  border: 1px solid #00000030;
}

.card-produts .card-body {
  display: flex;
  flex-direction: column;
  padding-left: 2rem;
}

.card.card-produts .card-title {
  color: var(--primary);
  font-size: var(--text-size-md);
  font-weight: 500;
}

.card.card-produts .card-text {
  color: var(--dark-gray);
  font-size: var(--text-size-sm);
}

.preco-desconto strong {
  color: var(--primary);
  font-size: 0.7rem;
}

.preco-desconto {
  font-size: 0.7rem;
}

.img-card-produts {
  width: 16rem;
  height: 10rem;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.card.card-produts h5,
.card.card-produts p {
  margin: 0;
}

.card.card-produts p {
  margin-top: 0.2rem;
}

.card.card-produts small {
  font-size: var(--text-size-sm);
}

.card-produts .btn-details {
  background-color: var(--dark-gray);
  border-color: #000000;
  color: var(--light);
  padding: 0.8rem 1.7rem;
  font-size: 1rem;
}
.card-produts .material-symbols-rounded {
    margin-right: 0.5rem;
}

.card-services p {
  font-size: 0.9rem;
}

.card-services h5 {
  font-size: 1rem;
}

.container-ia p {
  font-size: 1.5rem;
  font-weight: 400;
}

.border-text {
  border-bottom: 0.01rem solid var(--light-gray);
  padding-bottom: 2rem;
}

.border-left-custom {
  border-left: 0.4rem solid var(--primary);
  padding-left: 3rem;
}

.about .title {
  color: var(--primary);
}

.ia {
  background-color: var(--dark-gray);
  color: var(--light);
  padding-bottom: 7rem;
  padding-top: 3rem;
}

.ia .nav-pills {
    border: 1px solid #434343;
    padding: 0.1rem; 
    display: inline-flex;
    border-radius: 2rem;
    gap: 0.2rem;
}

.img-carrosel {
  width: 30rem;
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

.btn-dark {
  background-color: #434343;
  color: #fff;
  border-radius: 2rem;
  padding: 0.9rem 1.9rem;
  font-size: 1.3rem;
}

.title-ia {
  width: 75%;
}

@media (max-width: 992px) {
  .title-ia {
    width: 100%;
  }
}

.blog {
  background-color: #000000;
  color: var(--light);
  padding-bottom: 15rem;
  background-image: url('/public/media/home/fundoBlog.png');
  background-repeat: no-repeat;
  background-position: -20rem 15rem;
  background-size: auto;
}

.links p {
  font-size: var(--text-size-lg);
  font-weight: 300;
  width: 32rem;
}

.links a {
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--light);
}

@media (max-width: 992px) {
    .blog .d-flex.justify-content-between.align-items-center {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .blog .d-flex.justify-content-between.align-items-center p {
        width: 100%;
    }

    .blog .d-flex.justify-content-between.align-items-center small {
        margin-top: 1.5rem;
    }
}

.logoCard {
  width: 3rem;
  height: auto;
}

.banner-img {
  width: 100%;
  aspect-ratio: 16 / 5;
  object-fit: cover;
  object-position: center 15%;
}

.titulo-servicos h3,
.titulo-servicos a {
  margin: 0;
  padding: 0;
}

.navbar-brand.tittle {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  color: var(--primary);
}

body {
  margin: 0;
}

.badge-novo {
  position: absolute;
  top: -0.8rem;
  right: -1.5rem;
  font-size: 0.6rem;
  padding: 0.25rem 0.5rem;
}

.nav-pills {
  gap: 0.2rem;
}

.nav-pills .nav-link {
  background-color: #434343;
  color: #fff;
  border-radius: 2rem;
  padding: 0.9rem 1.9rem;
  font-size: 1.3rem;
}

.nav-pills .nav-link.active {
  background: linear-gradient(90deg, #0003FF69, #06EB51CF);
  color: #fff;
}

@media (max-width: 992px) {
    .ia .nav-pills {
        display: flex;
        width: 100%;
        max-width: 100%;
        flex-wrap: nowrap !important;
        overflow-x: auto;

        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        border: 1px solid #434343;
        border-radius: 2rem;
        gap: 0.5rem;
    }

    .ia .nav-pills::-webkit-scrollbar {
        display: none;
    }

    .ia .nav-pills .nav-link {
        flex-shrink: 0;
        white-space: nowrap;
        scroll-snap-align: start;
        padding: 0.9rem 1.5rem;
    }
}

@media (max-width: 992px) {
    .nav-pills {
        display: flex;
        width: 100%;
        max-width: 100%;
        flex-wrap: nowrap !important;
        overflow-x: auto;

        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .nav-pills::-webkit-scrollbar {
        display: none;
    }

    .nav-pills .nav-link {
        flex-shrink: 0;
        white-space: nowrap;
        scroll-snap-align: start;
        padding: 0.9rem 1.5rem;
    }
}

.market .nav-pills {
  gap: 0.3rem;
}

.market .nav-pills .nav-link {
  background-color: #E1E1E1;
  color: #000000;
  border-radius: 2rem;
  padding: 0.7rem 2.5rem;
  font-size: 1.5rem;
}

.market .nav-pills .nav-link.active {
  background: linear-gradient(90deg, #0003FF69, #06EB51CF);
  color: #fff;
}

.dropdown-menu-large {
  min-width: 37.5rem;
  max-width: 31.25rem;
  padding: 1rem;
  white-space: normal;
}

.contato {
  color: var(--primary);
  text-decoration: none;
}

.rodape {
  background: linear-gradient(to right, #06EB51E5, var(--primary));
  height: 3px;
}

.icon-menu {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.icon-services {
  width: 4rem;
  height: 3rem;
  object-fit: contain;
}

.dropdown-menu {
  border: none;
}

.dropdown-full {
  position: static;
}

.dropdown-megamenu {
  width: 100vw;
  border: none;
  border-radius: 0;
}

/* About */
section#about {
  background-color: var(--block-bg);
  color: var(--block-text);
}

section#about .container {
  padding: 5rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

section#about h2 {
  font-size: 2.667rem;
}

section#about .content-container {
  display: flex;
  flex-direction: row;
  justify-content: end;
}

section#about .text-container {
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 4rem;
}

section#about .text {
  column-count: 2;
  column-gap: 4rem;
  text-align: left;
  line-height: 1.6;
}

section#about .text p {
  margin-bottom: 0;
}

section#about p {
  font-size: 1rem;
}

section#about .btn-container {
  display: flex;
  flex-direction: row;
  justify-content: end;
}

/* Services */
section#services {
  position: relative;
  color: var(--text-secondary);
}

section#services .container {
  position: relative;
  padding: 5rem 2.5rem;
  display: flex;
  flex-direction: row;
  gap: 4rem;
}

section#services .preview-container .frame video {
  width: 100%;
}

section#services .service-box {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  padding: 4rem 0;
  border-bottom: 0.3px solid var(--text);
}

section#services .service-box:first-child {
  padding: 0 0 4rem;
}

section#services .service-box:last-child {
  padding: 4rem 0 0;
  border-bottom: 0;
}

section#services .service-box .service-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

section#services .service-box .service-header h3 {
  font-size: 2.5rem;
  align-self: flex-start;
  width: auto;
  background: var(--bg-secondary);
  padding: 0.8rem 1.7rem;
  margin-bottom: 0;
}

section#services .service-box .service-header h3::before {
  content: "/";
  margin-right: 1.8rem;
}

section#services .service-box .service-header ul.service-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  max-width: 100%;
}

section#services .service-box .service-header ul.service-tags li {
  font-size: 0.9rem;
  white-space: nowrap;
  background: var(--bg-secondary);
  padding: 0.3rem;
}

section#services .service-box .service-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

section#services .service-box .service-content .service-briefing {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 100%;
}

section#services .service-box .service-content .service-briefing p {
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  margin-bottom: 0;
}

section#services .service-box .service-content .service-cases ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: start;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  max-width: 100%;
}

section#services .service-box .service-content .service-cases ul li {
  font-size: 0.7rem;
  align-self: flex-end;
  width: auto;
  white-space: nowrap;
  background: var(--bg-secondary);
  padding: 0.3rem;
}

/* News */
section#news {
  background-color: var(--block-bg);
  color: var(--block-text);
}

section#news .container {
  padding: 5rem 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

section#news h2 {
  font-size: 2.667rem;
}

section#news .news-wrapper {
  display: flex;
  flex-wrap: nowrap;
  /* keep cards on one line */
  overflow-x: auto;
  /* enable horizontal scroll */
  scroll-snap-type: x mandatory;
  /* optional for smooth snapping */
  gap: 1rem;
  padding-bottom: 1rem;
}

section#news a.news-box {
  flex: 1 0 calc((100% - 3rem) / 4);
  min-width: 18rem;
  background: transparent;
  border-radius: 0;
  padding: 1rem;
  scroll-snap-align: start;
  text-decoration: none;
  color: var(--block-text);
}

section#news .news-box:hover {
  color: var(--accent) !important;
}

section#news .news-box .news-box-header {
  display: flex;
  flex-direction: column;
  justify-content: left;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

section#news .news-box .news-box-featured-image img {
  width: 100%;
  height: 16.667rem;
  object-fit: cover;
}

section#news .news-box .post-date,
section#news .news-box .post-shortcut {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 0.6rem;
  margin-bottom: 0;
}

section#news .news-box h3.post-title {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  margin-bottom: 0;
}

/* Optional: hide scrollbar but keep scrolling functionality */
section#news .news-wrapper::-webkit-scrollbar {
  display: none;
}

section#news .news-wrapper {
  -ms-overflow-style: none;
  /* IE/Edge */
  scrollbar-width: none;
  /* Firefox */
}

/* Tablet and desktop */
@media screen and (min-width: 768px) {
  section#about .text-container {
    width: 57.5%;
  }

  section#services .preview-container {
    position: relative;
    width: calc(34% - 2rem);
  }

  section#services .preview-container .frame {
    position: sticky;
    top: 2rem;
    width: 50rem;
    max-width: 90%;
    background: var(--block-bg);
    padding: 3rem;
  }

  section#services .content-container {
    width: calc(66% - 2rem);
  }

  section#services .service-box .service-header ul.service-tags {
    width: 25rem;
  }

  section#services .service-box .service-content .service-briefing {
    width: 33rem;
  }
}

/* Desktop layout */
@media screen and (min-width: 992px) {
  section#news .news-wrapper {
    overflow: hidden;
  }

  section#news .service-box {
    flex: 1 0 25%;
    min-width: auto;
  }
}

/* Mobile layout */
@media screen and (max-width: 600px) {
  header .container h1 {
    font-size: 2.82rem;
  }

  header .welcome-banner img {
    height: 49rem;
  }

  section#about h2 {
    font-size: 1.557rem;
  }

  section#about .container {
    gap: 2rem;
  }

  section#about .text {
    column-count: 1;
  }

  section#about .text p {
    margin-bottom: 1rem;
  }

  section#about .text p:last-child {
    margin-bottom: 0rem;
  }

  section#about .btn-container {
    justify-content: center;
  }

  section#services .container {
    flex-direction: column;
    gap: 4rem;
  }

  section#services .service-box .service-header h3 {
    font-size: 2rem;
  }

  section#services .service-box .service-content {
    flex-direction: column;
    gap: 1rem;
  }

  section#services .service-box .service-content .service-cases ul {
    flex-direction: row;
  }

  section#news .container {
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .titles {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .banner-img {
    height: 50vh;
    aspect-ratio: auto;
  }
}

@media (max-width: 768px) {
  .card.card-produts {
    margin-bottom: 2rem;
  }
}