/* Customizações Gerais */
body {
  background-color: #f9f8f8;
}

p {
  text-indent: 1em;
}

header {
  height: 500px;
  position: relative;
  transition: height 0.3s ease;
}

@media (max-width: 700px) {
  header {
    height: 400px;
  }
}

.section-divider {
  width: 97%;
  height: 1px;
  background-color: #bdbdbd;
  margin: 20px auto;
  border: none;
}

/* Container flexível */
.responsive-flex {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 20px;
}

.responsive-flex>* {
  flex: 1 1 0;
  max-width: 400px;
  min-width: 200px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .responsive-flex {
    flex-wrap: wrap;
  }

  .responsive-flex>* {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 10px;
  font-weight: bold;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  height: 3px;
  width: 0;
  background-color: #004080;
  transition: width 1s ease-out;
}

.section-title.animate-line::after {
  width: 100%;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  box-sizing: border-box;
  background: linear-gradient(to left, rgb(52, 77, 154), lightblue);
}

.navbar-start .navbar-logo {
  height: 50px;
  display: block;
}

.navbar-end .navbar-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
  display: block;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* Navbuttons */
#section-nav {
  position: fixed;
  bottom: 70px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.section-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #001f3f;
  color: white;
  border: none;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, background-color 0.2s;
}

.section-btn:hover {
  transform: scale(1.1);
  background-color: #003366;
}

/* Swiper Geral */
.swiper-slide {
  position: relative;
  height: 100%;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}

.carousel-caption {
  position: absolute;
  bottom: 15%;
  left: 10%;
  color: white;
  z-index: 10;
  max-width: 500px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Scrollbar Customizada */
::-webkit-scrollbar {
  width: 15px;
}

::-webkit-scrollbar-track {
  background: #97c6d4;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: #004080;
  border-radius: 10px;
  border: 2px solid #97c6d4;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #0066cc;
}

* {
  scrollbar-width: 15px;
  scrollbar-color: #004080 #9c9c9c;
}

/* Sobre Nós */
.sobre-nos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.sobre-nos-text,
#sobre-nos > p {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: clamp(0.75rem, 0.9vw + 0.7rem, 1.5rem);
  line-height: 1.6;
}

.sobre-nos-img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.sobre-nos-img img {
  margin-top: 10px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  min-height: 160px;
}

@media (min-width: 900px) {
  .sobre-nos-img img {
    width: 100%;
    height: 70px;
  }

  #sobre-nos>p {
    height: auto
  }
}

/* Serviços */
#servicos .w3-third {
  display: inline-block;
  vertical-align: top;
  margin-bottom: 10px;
  width: 32%;
  box-sizing: border-box;
  padding: 20px;
}

#servicos .w3-third .service-img {
  margin: 0 0 5px 0;
  width: auto;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
}

#servicos .w3-third .service-img:hover {
  transform: scale(1.05);
}

.servicoSwiper {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

.servicoSwiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: grab;
}

.servicoSwiper .swiper-button-next,
.servicoSwiper .swiper-button-prev {
  color: white !important;
}

#servicos .w3-third:last-child .servicoSwiper .swiper-wrapper,
#servicos .w3-third:last-child .servicoSwiper .swiper-slide {
  display: flex !important;
  justify-content: center !important;
  background-color: #bcbcbc;
}

#servicos .w3-third:last-child .servicoSwiper img {
  width: auto;
  height: 100%;
}

@media (max-width: 1150px) and (min-width: 1025px) {
  #servicos .w3-third h3 {
    font-size: clamp(1rem, 2vw, 1.3rem);
  }
}

@media (max-width: 1024px) {
  #servicos .w3-third {
    width: 30%;
    padding: clamp(10px, 2vw, 20px);
    transition: all 0.3s ease;
  }

  #servicos .w3-third h3 {
    font-size: clamp(1rem, 1.6vw, 1.3rem);
  }

  #servicos .service-img {
    height: clamp(180px, 25vw, 240px);
  }
}

@media (max-width: 900px) {
  #servicos .w3-third {
    width: 32%;
  }

  #servicos .w3-third h3 {
    font-size: clamp(0.95rem, 1.4vw, 1.2rem);
  }

  #servicos .service-img {
    height: clamp(160px, 23vw, 220px);
  }
}

@media (max-width: 768px) {
  #servicos .w3-third {
    width: 49.99999%;
    transition: all 0.3s ease;
  }

  #servicos .w3-third h3 {
    font-size: clamp(1.15rem, 3vw, 1.6rem);
  }

  #servicos .servicoSwiper {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }

  #servicos .servicoSwiper .swiper-slide img {
    object-fit: cover;
  }

  #servicos .servicoSwiper .swiper-button-next,
  #servicos .servicoSwiper .swiper-button-prev {
    width: 60px;
    height: 60px;
  }

  #servicos .servicoSwiper .swiper-button-next::after,
  #servicos .servicoSwiper .swiper-button-prev::after {
    font-size: 30px;
  }
}

@media (max-width: 547px) and (min-width: 473px) {
  #servicos .servicoSwiper {
    width: 150px;
    height: 150px;
    margin: 0 auto;
  }

  #servicos .servicoSwiper .swiper-slide img {
    width: 150px;
    height: 150px;
    object-fit: cover;
  }

  #servicos .w3-third h3 {
    font-size: clamp(0.95rem, 1.4vw, 1.2rem);
  }
}

@media (max-width: 471px) {
  #servicos .w3-third {
    width: 100%;
    padding: clamp(8px, 4vw, 12px);
  }

  #servicos .w3-third h3 {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
  }

  #servicos .service-img {
    width: 100%;
    height: clamp(120px, 25vw, 150px);
  }

  #servicos .servicoSwiper {
    width: 100%;
    height: clamp(120px, 25vw, 150px);
    margin: 0 auto;
  }

  #servicos .servicoSwiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  #servicos .servicoSwiper .swiper-button-next,
  #servicos .servicoSwiper .swiper-button-prev {
    width: 50px;
    height: 50px;
  }

  #servicos .servicoSwiper .swiper-button-next::after,
  #servicos .servicoSwiper .swiper-button-prev::after {
    font-size: 40px;
  }
}

/* Benefícios */
#beneficios {
  background-color: #2a4796;
  padding: 40px 10px;
}

.beneficios-header {
  width: 100%;
  margin-bottom: 30px;
  text-align: right;
  height: 50px;
}

.beneficios-top-gradient {
  position: relative;
  width: 100%;
  height: 40px;
  background: linear-gradient(to top, #2a4796 0%, #ffffff 100%);
  pointer-events: none;
}

#beneficios .section-title w3-right w3-text-white {
  font-weight: bold;
  text-align: right;
  margin-bottom: 30px;
  margin-right: 10px;
  position: relative;
}

#beneficios .section-title::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  height: 3px;
  width: 0;
  background-color: #7ccfeb;
  transition: width 1s ease-out;
}

#beneficios .section-title.animate-line::after {
  width: 100%;
  left: auto;
  right: 0;
}

.beneficios-grid {
  display: grid;
  grid-template-columns: 50% 50%;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  gap: 10px;
  padding: 5px;
  box-sizing: border-box;
}

.beneficios-text-box {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  padding: 10px;
  z-index: 3;
}

.beneficios-text-content {
  position: relative;
  width: 100%;
  color: #ffffff;
  text-align: left;
  font-size: 1.1rem;
  line-height: 1.8;
}

.beneficio-item .seta-animada {
  position: relative;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #7ccfeb;
  font-weight: bold;
  font-size: 1.2rem;
  transition: transform 0.4s ease, left 0.3s ease;
  pointer-events: none;
}

.beneficios-text-content .beneficio-item {
  margin-bottom: 10px;
  list-style: none;
}

.beneficios-text-content .seta-animada {
  position: absolute;
  left: 0;
  color: #7ccfeb;
  font-weight: bold;
  transition: transform 0.4s ease, top 0.4s ease;
  font-size: 1.2rem;
}


.beneficio-item.active {
  color: #7ccfeb;
  font-size: 1.2rem;
  font-weight: bold;
  transform: translateX(5px);
  transition: all 0.3s ease;
  margin-left: 5px;
  padding-left: 15px;
}

.beneficio-item.active .seta-animada {
  left: 0;
  transform: translateY(-50%) translateX(0);
}

@keyframes slideDown {
  from {
    transform: translateY(-5px);
    opacity: 0;
  }

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

.beneficios-slider {
  position: relative;
  width: 90%;
  height: 450px;
  margin: auto;
  border-radius: 12px;
  overflow: hidden;
  z-index: 1;
}

.beneficios-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 785px) {
  .beneficios-grid {
    display: block !important;
    position: relative !important;
  }

  .beneficio-item {
    position: relative;
    padding-left: 0;
    transition: padding-left 0.3s ease;
  }

  .beneficio-item.active .beneficio-texto {
    margin-left: 5px;
  }

  .beneficios-slider {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
  }

  .beneficio-item {
    position: relative;
    padding-left: 0;
    transition: padding-left 0.3s ease;
  }

  .beneficio-item.active {
    padding-left: 15px;
  }

  .beneficios-slider .swiper,
  .beneficios-slider .swiper-slide,
  .beneficios-slider .swiper-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .beneficios-text-box {
    position: relative !important;
  }

  .beneficios-text-content {
    position: relative !important;
    z-index: 2 !important;
  }

  .beneficios-slider::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(42, 71, 150, 0.7);
    z-index: 2;
    pointer-events: none;
    border-radius: 12px;
  }
}

/* Clientes */
#clientes .section-title {
  color: #ededed;
  font-weight: bold;
}

#clientes .section-title::after {
  background-color: #7ccfeb;
}

.clientes-top-gradient {
  position: relative;
  width: 100%;
  height: 60px;
  background: linear-gradient(to top, #19245a 0%, #2a4796 100%);
  pointer-events: none;
  z-index: 2;
}

.clientes-bottom-gradient {
  position: relative;
  width: 100%;
  height: 40px;
  background: linear-gradient(to bottom, #19245a 0%, #ffffff 100%);
  pointer-events: none;
  z-index: 1;
}

.clientesSwiper {
  width: 100%;
  padding: 20px 0;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.clientesSwiper .swiper-slide {
  width: auto !important;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease-out;
  -webkit-transition: -webkit-transform 0.3s ease-out;
}

.clientesSwiper .swiper-wrapper {
  will-change: transform;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
}

.clientesSwiper img {
  height: 80px;
  object-fit: contain;
  padding: 0 40px;
  filter: brightness(0.9) saturate(1.2);
  transition: transform 0.3s ease;
  -webkit-transition: -webkit-transform 0.3s ease;
}

#clientes {
  background-color: #19245a;
}

/* Contate-nos */
.contate-nos-card {
  margin: 70px;
  margin-top: 10px;
  padding: 20px;
  border-radius: 5%;
  background-color: #add8e6;
}

.contate-nos-title {
  color: #004080;
  margin-bottom: 10px;
  font-weight: 800;
}

.contate-nos-qr {
  display: flex;
  justify-content: center;
  align-items: center;
}

.qr-code {
  max-height: 800px;
  max-width: 100%;
  transition: transform 0.3s ease;
}

.qr-code:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  #contate-nos h2.w3-text-bold {
    font-size: 1.2rem;
    line-height: 1.3;
  }
}

@media (max-width: 665px) {
  .contate-nos-title {
    font-size: 1.1rem;
  }
}

@media (max-width: 470px) {
  .contate-nos-card {
    margin: 20px 15px;
    padding: 12px;
  }

  .contate-nos-title {
    font-size: clamp(1rem, 4vw, 1.2rem);
  }
}


/* Footer */
footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background-color: rgb(6, 4, 53);
  padding: clamp(16px, 3vw, 32px) clamp(10px, 2vw, 20px);
  color: #fff;
  gap: clamp(10px, 2vw, 20px);
  position: relative;
  transition: all 0.3s ease;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(6px, 1vw, 10px);
}

.footer-left-logo {
  width: auto;
  height: clamp(35px, 5vw, 65px);
  object-fit: contain;
  transition: height 0.3s ease;
}

.footer-text {
  margin: 0;
  font-size: clamp(0.8rem, 1vw, 1rem);
  color: #aeaeae;
  line-height: 1.4;
}

.footer-divider-vertical {
  width: clamp(1px, 0.3vw, 2px);
  background-color: #7ccfeb;
  justify-self: center;
  height: 100%;
  z-index: 10;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 20px);
}

.footer-right-content {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 15px);
}

.footer-right-text {
  font-size: clamp(0.75rem, 0.9vw, 0.95rem);
  color: #aeaeae;
  font-weight: normal;
  text-align: center;
}

.footer-logo-rect {
  width: 200px;
  height: clamp(50px, 8vw, 90px);
  object-fit: contain;
  transition: height 0.3s ease;
}

.footer-logo-squares {
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 0.8vw, 6px);
}

.footer-logo-square {
  width: clamp(25px, 4vw, 40px);
  height: clamp(25px, 4vw, 40px);
  object-fit: contain;
  transition: transform 0.3s ease;
}

.footer-logo-square:hover {
  transform: scale(1.05);
}

footer a {
  display: inline-block;
  text-decoration: none;
}

footer .footer-gradient {
  position: absolute;
  top: -25px;
  left: 0;
  width: 100%;
  height: 25px;
  background: linear-gradient(to top, rgb(6, 4, 53) 0%, rgba(6, 4, 53, 0) 100%);
  pointer-events: none;
}

@media (max-width: 768px) {
  footer {
    grid-template-columns: 1fr;
    text-align: center;
    padding: clamp(12px, 4vw, 20px);
  }

  .footer-divider-vertical {
    display: none;
  }

  .footer-left,
  .footer-right {
    align-items: center;
    margin: 0;
    gap: clamp(8px, 2vw, 12px);
  }

  .footer-logo-squares {
    flex-direction: row;
    justify-content: center;
  }

  .footer-right-content {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 410px) {
  footer {
    flex-wrap: wrap;
    padding: 2vw;
    gap: 2vw;
  }

  .footer-left,
  .footer-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2vw;
    max-width: 100%;
  }

  .footer-left-logo {
    height: 10vw;
    max-width: 100%;
  }

  .footer-text {
    font-size: 3vw;
    max-width: 100%;
    text-align: center;
  }

  .footer-right-text {
    font-size: 2.5vw;
    max-width: 100%;
    text-align: center;
  }

  .footer-logo-rect {
    height: 12vw;
    max-width: 100%;
  }

  .footer-logo-square {
    width: 6vw;
    height: 6vw;
    max-width: 100%;
  }

  .footer-divider-vertical {
    width: 0.3vw;
    height: 80%;
  }

  .footer-right-content {
    gap: 2vw;
  }

  .footer-logo-squares {
    gap: 1vw;
    flex-wrap: wrap;
  }
}