* {}

body {
  scroll-behavior: smooth;
  background-color: var(--bg-background);
  font-family: 'Montserrat', sans-serif;
  overflow: hidden;
}

.overflow-wrapper {
  width: 100%;
  overflow-x: hidden;
  position: relative;
}

html {
  scroll-padding-top: 60px;
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  touch-action: pan-y;
}

.sections {
  width: 100%;
  /*height: 100%;*/
  position: relative;
  width: 100%;
  padding: 48px 24px;
  /*overflow-x: hidden;*/
}

@media (min-width: 768px) {
  .sections {
    padding: 72px 56px;
  }
}

.container {
  max-width: 1200px;
}

/* top-bar */

#top-bar {
  position: relative;
  z-index: 99;
}

#top-bar.sticky {
  position: fixed;
  top: 0;
  left: 0;
  animation: menu-sticky 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
  background: linear-gradient(0deg, rgba(31, 24, 32, 0.7) 0%, rgba(31, 24, 32, .9) 100%);
  z-index: 50;
  width: 100%;
}

@media (min-width: 1200px) {
  #top-bar.sticky {
    background: transparent;
  }
}

#top-bar .content {
  width: 100%;
  height: 90px;
  padding: 16px;
}

@media (min-width: 992px) {
  #top-bar .content {
    padding: 16px 48px;
  }
}

#top-bar .content .nav-logo {
  width: 217px;
  height: 57px;
  background-image: url("../../assets/img/logoDarkBackground.svg");
  background-repeat: no-repeat;
  overflow: hidden;
  border: none;
  box-shadow: none;
}

#top-bar .content .nav-logo h1 {
  margin-left: -100%;
}

/* main menu */

.main-menu {
  padding: 12px 6px;
  border: 1px solid var(--border-gray);
  border-radius: 32px;
  background-color: rgba(46, 46, 46, .6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.main-menu ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: row;
}

.main-menu ul li {
  margin-bottom: 2px;
}

.main-menu ul li a {
  font-size: .75rem;
  font-weight: var(--semi-bold);
  color: var(--font-dark-mode);
  text-decoration: none;
  padding: 12px 24px;
  margin: 0;
  transition: all .5s ease-in-out;
  border-radius: 32px;
}

.main-menu ul li a:hover {
  background-color: var(--gray);
}

/* hero */

#hero {
  position: relative;
  margin-top: -110px;
  width: 100%;
  height: max(100dvh, 610px);
  overflow: hidden;
  background: radial-gradient(circle, rgba(145, 145, 145, 0.15) 0%, rgba(31, 24, 32, 1) 60%);
  padding: 16px;
  padding-top: 120px;
}

#hero #bg-image {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#hero #bg-image img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
}

#hero #overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  background: linear-gradient(0deg, rgba(31, 24, 32, .95) 5%, rgba(31, 24, 32, .3) 12%, rgba(31, 24, 32, .15) 25%, rgba(31, 24, 32, .6) 83%, rgba(31, 24, 32, 1) 90%);
}

#hero #content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

#hero #content h2 {
  font-size: 1.8rem;
  font-weight: var(--semi-bold);
  color: var(--white);
  text-align: center;
  max-width: 95%;
}

@media (min-width: 992px) {
  #hero #content h2 {
    font-size: 3.2rem;
    max-width: initial;
  }
}

#hero #content h3 {
  font-size: 1.2rem;
  font-weight: var(--regular);
  color: var(--white);
  text-align: center;
  max-width: 95%;
}

@container (min-width: 992px) {
  #hero #content h3 {
    font-size: 1.5rem;
    max-width: initial;
  }
}

/* footer */

footer {
  width: 100%;
  height: auto;
  background-image: url("../../assets/img/hubling_footer.svg");
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: contain;
  background-color: var(--bg-footer);
  padding: 24px;
}

@media (min-width: 992px) {
  footer {
    width: 100%;
    height: 250px;
    /*min-height: 300px;*/
    background-image: url("../../assets/img/hubling_footer.svg");
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: contain;
    background-color: var(--bg-footer);
    padding: 24px;
  }
}

footer .container {
  height: 100%;
}

.menu-footer {
  display: block;
  list-style: none;
  padding-left: 0;
}

@media (min-width: 768px) {
  .menu-footer {
    display: grid;
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;
    grid-template-columns: repeat(auto-fill, minmax(0, 250px));
    grid-auto-flow: column;
    gap: 10px 40px;
    list-style: none;
  }
}

.menu-footer li {
  display: block;
  text-align: center;
  padding: 8px;
}

@media (min-width: 768px) {
  .menu-footer li {
    text-align: left;
    padding: 0;
  }
}

.menu-footer li a {
  width: 100%;
  font-size: .8rem;
  color: var(--white);
  font-weight: var(--semi-bold);
  text-decoration: none;
  text-align: center;
  transition: all .3s ease-in-out;
}

.menu-footer li a:hover {
  color: var(--green);
}

.text-copyright {
  display: block;
  font-size: .7rem;
  color: var(--white);
  font-weight: var(--regular);
  text-align: center;
}

.modal-menu-mobile {
  display: block;
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100dvh;
  background-color: var(--green);
  z-index: 99;
  transform: translateX(100%);
  padding: 48px 32px;
  transition: all .3s ease-in-out;
}

.modal-menu-mobile.active {
  transform: translateX(0);
}

.modal-menu-mobile nav {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
}

.menu-mobile {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all .3s ease-in-out;
}

.menu-mobile li {}

.menu-mobile li a {
  font-size: 1rem;
  font-weight: var(--semi-bold);
  color: var(--white);
  text-decoration: none;
  padding: 8px;
  transition: all .3s ease-in-out;
}

.menu-mobile li a:hover {
  color: var(--wine);
}

.swiper {
  width: 100%;
  padding-top: 50px;
  padding-bottom: 50px;
  -webkit-perspective: 1200px;
  perspective: 1200px;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.swiper-slide {
  width: 80% !important;
  /* max-width: 600px; */
  display: flex;
  justify-content: center;
  height: 450px;
  background-position: center;
  background-size: cover;
  overflow: hidden;
  background: linear-gradient(230deg, rgba(40, 32, 43, .8) 0%, rgba(23, 18, 25, .8) 100%);
  border-radius: var(--radius-default);
  padding: 16px 24px;
  border: 1px solid var(--gray);
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.swiper-slide .card-cases img,
.swiper-slide .card-cases .subtitle,
.swiper-slide .card-cases .title2,
.swiper-slide .card-cases .paragraph {
  transition: filter 0.5s ease, transform 0.5s ease;
  filter: brightness(0.4);
  opacity: 0.6;
}

.swiper-slide-active .card-cases img,
.swiper-slide-active .card-cases .subtitle,
.swiper-slide-active .card-cases .title2,
.swiper-slide-active .card-cases .paragraph {
  filter: brightness(1);
  opacity: 1;
}

.swiper-slide-active {
  border: 1px solid var(--border-gray);
}

.card-cases {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 220px auto;
  gap: 16px;
  width: 100%;
  height: auto;
  padding-bottom: 16px;
}

@media (min-width: 768px) {
  .card-cases {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    height: 450px;
    padding-bottom: 0;
  }
}

.card-cases img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: contain;
  justify-self: center;
  align-self: center;

  /* Fix para iOS: Força a renderização em hardware */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

@media (min-width: 768px) {
  .card-cases img {
    width: 100%;
    height: 100%;
  }
}

.card-cases .content {
  justify-self: start;
  align-self: center;
}

.swiper-pagination-bullet {
  width: 20px !important;
  height: 20px !important;
  text-align: center;
  line-height: 20px;
  font-size: 12px;
  color: #000;
  opacity: 1;
  background: var(--border-gray) !important;
}

.swiper-pagination-bullet-active {
  color: #fff;
  background: var(--wine) !important;
}