html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 280px; /* Margin bottom by footer height */
}

main {
  min-height: calc(100vh - 340px);
  max-width: 1920px;
  margin: 0 auto;
}

body.chevron-page {
  min-height: 100%;
}

/* Side accent: peeking in from the right (half off-screen). Do not use position:relative on nav/footer — it breaks sticky + absolute footer. */
.chevron-page-background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.chevron-page-background img {
  position: absolute;
  right: 0;
  top: 50%;
  left: auto;
  transform: translate(50%, -50%);
  width: min(92vw, 880px);
  height: auto;
  max-width: none;
  display: block;
}

@media (max-width: 767.98px) {
  .chevron-page-background {
    display: none;
  }
}

body.chevron-page main {
  position: relative;
  z-index: 1;
}

body.chevron-page footer {
  z-index: 1;
}

body.chevron-page .content {
  padding-top: 2em;
}

.img-servico {
  display: block;
  aspect-ratio: 16 / 9;
  max-height: 250px;
  max-width: min(100%, calc(250px * 16 / 9));
  width: 100%;
  height: auto;
  object-fit: cover;
}

.servico-gallery {
  position: relative;
  max-width: min(100%, calc(250px * 16 / 9 * 2));
}

.servico-gallery.w-100 {
  max-width: 100%;
}

.servico-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.servico-media .img-servico {
  width: 100%;
  height: 100%;
  max-height: none;
  max-width: none;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.servico-gallery-carousel .servico-gallery-viewport {
  aspect-ratio: 1 / 1;
}

.servico-gallery-carousel .servico-gallery-track {
  width: calc(var(--servico-gallery-slides) * 100%);
  height: 100%;
}

.servico-gallery-carousel .servico-gallery-track .img-servico {
  flex: 0 0 calc(100% / var(--servico-gallery-slides));
  max-width: calc(100% / var(--servico-gallery-slides));
  aspect-ratio: 1 / 1;
  height: 100%;
  max-height: none;
  width: auto;
  object-fit: cover;
}

.servico-gallery-viewport {
  overflow: hidden;
}

.servico-gallery-track {
  display: flex;
  width: 200%;
  transition: transform 0.6s ease-in-out;
}

.servico-gallery-track .img-servico {
  flex: 0 0 25%;
  max-width: 25%;
}

.servico-gallery-indicators {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 0 15% 0.5rem;
  list-style: none;
}

.servico-gallery-indicators button {
  box-sizing: content-box;
  flex: 0 1 auto;
  width: 30px;
  height: 3px;
  padding: 0;
  margin-right: 3px;
  margin-left: 3px;
  text-indent: -999px;
  cursor: pointer;
  background-color: var(--bs-carousel-indicator-active-bg, #fff);
  background-clip: padding-box;
  border: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  opacity: 0.5;
  transition: opacity 0.6s ease;
}

.servico-gallery-indicators button.active {
  opacity: 1;
}

.servico-gallery-control {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 8%;
  padding: 0;
  color: #fff;
  text-align: center;
  background: none;
  border: 0;
  opacity: 0.5;
  transition: opacity 0.15s ease;
}

.servico-gallery-control:hover {
  opacity: 0.9;
}

.servico-gallery-control-prev {
  left: 0;
}

.servico-gallery-control-next {
  right: 0;
}

footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 280px;
  line-height: 60px;
}

.container {
  max-width: 960px;
}

.logo {
  height: 36px;
  vertical-align: middle;
}
.bi {
  fill: currentColor;
}

.text-muted {
  opacity: 0.75;
  color: inherit !important;
}

.text-justify {
  text-align: justify;
}

[data-bs-theme="light"] .img-light {
  display: none;
}
[data-bs-theme="dark"] .img-dark {
  display: none;
}

/* CUSTOMIZE THE CAROUSEL
-------------------------------------------------- */
.carousel-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.5); /* ajusta o contraste da imagem */
}

.carousel-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.carousel-item {
  /* height: calc(100vh - 57px); */
  align-items: center;
  justify-content: space-between;
}
.carousel-item-next,
.carousel-item-prev,
.carousel-item.active {
  display: flex;
}

.chevron-left,
.chevron-right {
  display: block;
  width: min(100%, 40vw);
  height: min(40vw, 800px);
  min-height: 400px;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-repeat: no-repeat;
  -webkit-mask-image: url("../img/chevron-r.svg");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-image: url("../img/chevron-r.svg");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-mode: alpha;
}

.chevron-left::after,
.chevron-right::after {
  inset: 0;
  content: "";
  position: absolute;
  pointer-events: none;
  background-image: url("../img/chevron-o-r.svg");
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 10;
}

.chevron-left::before,
.chevron-right::before {
  inset: 0;
  content: "";
  opacity: 0.7;
  position: absolute;
  pointer-events: none;
  background-color: #0053a7;
  background-image: url("../img/chevron-r.svg");
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 5;
}

.chevron-left {
  margin-right: auto;
  background-position: left center;
  -webkit-mask-image: url("../img/chevron-l.svg");
  -webkit-mask-position: left center;
  mask-image: url("../img/chevron-l.svg");
  mask-position: left center;
}

.chevron-left::before {
  background-image: url("../img/chevron-l.svg");
  background-position: left center;
}

.chevron-left::after {
  background-image: url("../img/chevron-o-l.svg");
  background-position: left center;
}

.chevron-right {
  margin-left: auto;
  background-position: right center;
  -webkit-mask-position: right center;
  mask-position: right center;
}

.chevron-right::before,
.chevron-right::after {
  background-position: right center;
}

.feature-chevron-media::after {
  inset: 0;
  content: "";
  position: absolute;
  pointer-events: none;
  background-image: url("../img/chevron-o-r.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 10;
}

.feature-chevron-media::before {
  inset: 0;
  content: "";
  opacity: 0.5;
  position: absolute;
  pointer-events: none;
  background-color: rgba(1, 83, 167, 0.35);
  background-image: url("../img/chevron-r.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 5;
}

.feature-chevron-media.chevron-left {
  background-image: url("../img/institucional.avif");
}

.feature-chevron-media.chevron-right {
  background-image: url("../img/servico8.avif");
}

.chevron-left-section .feature-chevron-media {
  -webkit-mask-image: url("../img/chevron-l.svg");
  mask-image: url("../img/chevron-l.svg");
}

.chevron-left-section .feature-chevron-media::before {
  background-image: url("../img/chevron-l.svg");
}

.chevron-left-section .feature-chevron-media::after {
  background-image: url("../img/chevron-o-l.svg");
}

.servicos {
  display: none;
}

.srv-icon {
  width: auto;
  height: 3rem;
  fill: var(--bs-primary);
  flex-shrink: 0;
}

.servicos .servicos-grid > .col > .btn {
  aspect-ratio: 1 / 1;
  height: auto !important;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem !important;
  padding: 0.75rem !important;
  border: 0;
  border-radius: 0;
  text-align: center !important;
  white-space: normal;
}

.servicos .servicos-grid > .col > .btn > span:last-child {
  font-size: 120%;
  font-weight: 600;
  line-height: 1.2;
}

.servicos .btn-outline-primary svg,
.servicos .btn-outline-primary svg path {
  fill: currentColor;
}

@media (max-width: 767.98px) {
  .servicos .servicos-grid > .col:nth-child(odd) > .btn {
    border-right: var(--bs-btn-border-width) solid var(--bs-primary);
  }

  .servicos .servicos-grid > .col:not(:nth-last-child(-n + 2)) > .btn {
    border-bottom: var(--bs-btn-border-width) solid var(--bs-primary);
  }
}

@media (min-width: 768px) {
  .servicos .servicos-grid > .col:not(:nth-child(4n)) > .btn {
    border-right: var(--bs-btn-border-width) solid var(--bs-primary);
  }

  .servicos .servicos-grid > .col:not(:nth-last-child(-n + 4)) > .btn {
    border-bottom: var(--bs-btn-border-width) solid var(--bs-primary);
  }
}

#quem-somos .institucional-grid > .col > .institucional-item {
  height: auto !important;
  gap: 0.5rem !important;
  border: 0;
  border-radius: 0;
  white-space: normal;
  pointer-events: none;
}

#quem-somos .institucional-grid > .col > .institucional-item > span:last-child {
  line-height: 1.35;
}

@media (max-width: 767.98px) {
  #quem-somos .institucional-grid > .col:not(:last-child) > .institucional-item {
    border-bottom: var(--bs-btn-border-width) solid var(--bs-primary);
  }
}

@media (min-width: 768px) {
  #quem-somos .institucional-grid > .col:not(:nth-child(3n)) > .institucional-item {
    border-right: var(--bs-btn-border-width) solid var(--bs-primary);
  }
}

/* Serviços — variante de layout (.servicos-variant): fundo primário, foto integral suave, sem chevron */
.servicos-variant {
  padding: 150px 0;
  background-color: var(--bs-primary);
  color: var(--bs-white);
}

.servicos-variant-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../img/servicos.avif");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.3;
  pointer-events: none;
}

.servicos-variant-content {
  z-index: 1;
}

.servicos-variant-title {
  color: var(--bs-white);
}

.servicos-variant .servicos-variant-grid {
  max-width: 52rem;
}

.servicos-variant .servicos-variant-diferenciais-grid {
  max-width: 100%;
}

.servicos-variant .servicos-variant-servicos-grid > .col > .btn.btn-outline-primary {
  --bs-btn-color: var(--bs-white);
  --bs-btn-border-color: var(--bs-white);
  --bs-btn-hover-color: var(--bs-primary);
  --bs-btn-hover-bg: var(--bs-white);
  --bs-btn-hover-border-color: var(--bs-white);
  --bs-btn-active-color: var(--bs-primary);
  --bs-btn-active-bg: var(--bs-white);
  --bs-btn-active-border-color: var(--bs-white);
  --bs-btn-focus-shadow-rgb: 255, 255, 255;
  aspect-ratio: 1 / 1;
  height: auto !important;
  gap: 0.75rem !important;
  padding: 0.75rem !important;
  border: 0;
  border-radius: 0;
  white-space: normal;
}

.servicos-variant .servicos-variant-servicos-grid > .col > .btn > span:last-child {
  font-size: 120%;
  font-weight: 600;
  line-height: 1.2;
}

.servicos-variant .servicos-variant-diferenciais-grid > .col > .diferenciais-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5.5rem;
  padding: 1.5rem 1.25rem;
  color: var(--bs-white);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
}

.servicos-variant .btn-outline-primary svg,
.servicos-variant .btn-outline-primary svg path {
  fill: currentColor;
}

.servicos-variant .servicos-variant-cta.btn-outline-primary {
  --bs-btn-color: var(--bs-white);
  --bs-btn-border-color: var(--bs-white);
  --bs-btn-hover-color: var(--bs-primary);
  --bs-btn-hover-bg: var(--bs-white);
  --bs-btn-hover-border-color: var(--bs-white);
  --bs-btn-active-color: var(--bs-primary);
  --bs-btn-active-bg: var(--bs-white);
  --bs-btn-active-border-color: var(--bs-white);
  --bs-btn-focus-shadow-rgb: 255, 255, 255;
}

.servicos-variant-diferenciais {
  padding-top: 2.5rem;
  margin-top: 2.5rem;
}

@media (max-width: 767.98px) {
  .servicos-variant .servicos-variant-servicos-grid > .col:nth-child(odd) > .btn {
    border-right: var(--bs-btn-border-width) solid var(--bs-white);
  }

  .servicos-variant .servicos-variant-servicos-grid > .col:not(:nth-last-child(-n + 2)) > .btn {
    border-bottom: var(--bs-btn-border-width) solid var(--bs-white);
  }

  .servicos-variant .servicos-variant-diferenciais-grid > .col:not(:last-child) > .diferenciais-item {
    border-bottom: 1px solid var(--bs-white);
  }
}

@media (min-width: 768px) {
  .servicos-variant .servicos-variant-servicos-grid > .col:not(:nth-child(4n)) > .btn {
    border-right: var(--bs-btn-border-width) solid var(--bs-white);
  }

  .servicos-variant .servicos-variant-servicos-grid > .col:not(:nth-last-child(-n + 4)) > .btn {
    border-bottom: var(--bs-btn-border-width) solid var(--bs-white);
  }

  .servicos-variant .servicos-variant-diferenciais-grid > .col:not(:nth-child(3n)) > .diferenciais-item {
    border-right: 1px solid var(--bs-white);
  }
}

@media (max-width: 991.98px) {
  .chevron-left,
  .chevron-right {
    width: 100%;
    height: 46vw;
    min-height: 160px;
    max-height: 240px;
    margin: 0;
  }

  .chevron-left {
    background-position: left center;
    -webkit-mask-position: left center;
    mask-position: left center;
  }

  .chevron-left::before,
  .chevron-left::after {
    background-position: left center;
  }

  .chevron-right {
    background-position: right center;
    -webkit-mask-position: right center;
    mask-position: right center;
  }

  .chevron-right::before,
  .chevron-right::after {
    background-position: right center;
  }

  .chevron-left-section .feature-chevron-media {
    align-self: flex-start;
    margin-right: auto;
    background-position: left center;
    -webkit-mask-position: left center;
    mask-position: left center;
    transform: none;
  }

  .chevron-left-section .feature-chevron-media::before,
  .chevron-left-section .feature-chevron-media::after {
    background-position: left center;
  }

  .chevron-right-section .feature-chevron-media {
    align-self: flex-end;
    margin-left: auto;
    background-position: right center;
    -webkit-mask-position: right center;
    mask-position: right center;
    transform: none;
  }

  .chevron-right-section .feature-chevron-media::before,
  .chevron-right-section .feature-chevron-media::after {
    background-position: right center;
  }

  #quem-somos .text-sart,
  .servicos .text-sart {
    padding-top: 0.25rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

.carousel-chevron.carousel-chevron-mirrored::after {
  transform: none;
}

.carousel-chevron.carousel-chevron-mirrored {
  transform: scaleX(-1);
  transform-origin: center;
}

.carousel-chevron::after {
  inset: 0;
  content: "";
  position: absolute;
  pointer-events: none;
  background-image: url("../img/chevron-o-r.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 10;
}

.carousel-chevron::before {
  inset: 0;
  content: "";
  opacity: 0.5;
  position: absolute;
  pointer-events: none;
  background-color: rgba(1, 83, 167, 0.35);
  background-image: url("../img/chevron-r.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 5;
}

.carousel-caption {
  bottom: 3rem;
  z-index: 10;
}

[data-bs-theme="light"] .carousel-caption {
  color: var(--bs-black-rgb);
}

[data-bs-theme="dark"] .carousel-caption {
  color: var(--bs-white-rgb);
}

/* RESPONSIVE CSS
-------------------------------------------------- */

@media (min-width: 40em) {
  /* Bump up size of carousel content */
  .carousel-caption p {
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    line-height: 1.4;
  }
}

/*
 * Dummy devices on contact section
 */

.product-device {
  position: absolute;
  right: 0;
  bottom: -35%;
  width: 360px;
  height: 560px;
  background-color: var(--bs-secondary);
  border-radius: 20px;
  transform: rotate(25deg);
}

.product-device::before {
  position: absolute;
  top: 10%;
  right: 10px;
  bottom: 10%;
  left: 10px;
  content: "";
  /* background-color: rgba(255, 255, 255, 0.2); */
  border-radius: 5px;
}

.product-device-2 {
  top: -30%;
  right: auto;
  bottom: 0;
  left: 0;
  background-color: var(--bs-primary);
}

textarea {
  resize: none;
}

@media (min-width: 768px) {
}

.btn-bd-primary {
  --bd-violet-bg: #f5931d;
  --bd-violet-rgb: 112.520718, 44.062154, 249.437846;
  --bs-btn-font-weight: 600;
  --bs-btn-color: var(--bs-white);
  --bs-btn-bg: var(--bd-violet-bg);
  --bs-btn-border-color: var(--bd-violet-bg);
  --bs-btn-hover-color: var(--bs-white);
  --bs-btn-hover-bg: #db8926;
  --bs-btn-hover-border-color: #db8926;
  --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
  --bs-btn-active-color: var(--bs-btn-hover-color);
  --bs-btn-active-bg: #da851d;
  --bs-btn-active-border-color: #da851d;
}
.bd-mode-toggle {
  z-index: 1500;
}
.bd-mode-toggle .bi {
  width: 1em;
  height: 1em;
}
.bd-mode-toggle .dropdown-menu .active .bi {
  display: block !important;
}

#hero.carousel {
  position: relative;
  height: calc(100vh - 57px);
  min-height: 500px;
  max-height: 1080px;
  overflow: hidden;
}

#hero .carousel-inner,
#hero .carousel-item {
  height: calc(100vh - 57px);
  min-height: 500px;
  max-height: 1080px;
}

#hero .carousel-item-next,
#hero .carousel-item-prev,
#hero .carousel-item.active {
  display: block;
}

#hero .carousel-caption {
  z-index: 10;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

#hero .carousel-item:not(:first-child) .hero-slide-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}

#hero .carousel-item:not(:first-child) .hero-slide-bg img {
  filter: brightness(0.6);
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-slide-bg img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* background-color: rgba(1, 83, 167, 0.6); */
  z-index: 1;
  pointer-events: none;
}

.hero-shapes {
  position: absolute;
  inset: 0;
  background: url("../img/shapes-right.svg") right / contain no-repeat;
  height: 100%;
  z-index: 2;
}

.hero-logo {
  position: absolute;
  right: 7%;
  top: 50%;
  z-index: 3;
  width: 320px;
  max-width: 44%;
  opacity: 0;
  transform: translateY(-50%) scale(0.95);
}

#hero .carousel-item.active .hero-logo {
  animation: fadeInScale 0.8s ease-out forwards;
}

.hero-logo img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.hero-copy {
  position: absolute;
  left: 7%;
  bottom: 12%;
  z-index: 4;
  max-width: min(520px, 48%);
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.hero-slogan {
  margin: 0 0 0.75rem;
  font-size: clamp(1.1rem, 2.2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.25;
}

.hero-subtitle {
  margin: 0;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 400;
  line-height: 1.45;
  opacity: 0.95;
}

@media (max-width: 767.98px) {
  .hero-copy {
    left: 1rem;
    right: 1rem;
    bottom: 10%;
    max-width: none;
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: translateY(-50%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

/* List styles */
ul.engrenha li {
  list-style: none;
}

ul.engrenha.lead {
  padding-left: 0;
}

ul.engrenha li:before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url("../img/icon-light.svg") no-repeat;
  background-size: contain;
  margin-right: 8px;
  vertical-align: middle;
}

[data-bs-theme="light"] ul.engrenha li:before {
  background: url("../img/icon-dark.svg") no-repeat;
  background-size: contain;
}

ul.engrenha.lead li:before {
  width: 1.25rem;
  height: 1.25rem;
}