:root {
  /* Cores principais (identidade visual) */
  --primary-blue: #004B8D;
  --secondary-blue: #0074D9;
  --accent-blue: #00AEEF;

  /* Cores neutras */
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --medium-gray: #cccccc;
  --dark-gray: #333333;

  /* Cores de suporte */
  --wpp-dark-green: #075E54;
  --wpp-green: #25D366;
  --text: #FFC107;

  /* Backgrounds */
  --background-light: #f8f9fa;
  --background-dark: #2c3233;

  /* nova paleta de cores */
  --logo-white: #e4e4e4;
  --logo-blue: #182937;
  --azul-arte: #386fa0;
  --azul-profundo: #0c345c;
  --cinza-azulado: #6b7a8d;
  --marrom-terra: #585246;
  --branco-neve: #e9f1f6;
  --grafite: #2c3233;
}



/* Hero section */
#hero-banner {
  overflow: hidden;
  position: relative;
  height: 90dvh;
  margin-top: 103px;
}

.slides-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 1s ease-in-out;
}

.slide {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(60%);
}

.banner-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--logo-white);
  text-align: center;
  max-width: 90%;
}

.banner-text h2 {
  font-size: clamp(1.5em, calc(10vw + 1rem), 3rem);
  margin-bottom: 1rem;
}

.nav {
  position: absolute;
  top: 95%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  background: rgba(0, 0, 0, 0.3);
  color: white;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 2;
  transition: background 0.3s;
}

.nav:hover {
  background: rgba(0, 0, 0, 0.6);
}

.prev {
  left: 40%;
}

.next {
  right: 40%;
}

.dots {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  z-index: 2;
}

.dot {
  display: inline-block;
  height: 12px;
  width: 12px;
  margin: 0 6px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: white;
}

/* Todos os Serviços */
#services {
  text-align: center;
  padding: 40px;
}

#services #horizontal-line {
  margin-top: 0;
}

#services h2 {
  font-size: 2em;
  margin-bottom: 40px;
}

.services-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

.service-box {
  position: relative;
  width: 500px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgbt(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  padding: 0;
}

.service-box:hover {
  transform: scale(1.02);
}

.service-box img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.service-box:hover img {
  transform: scale(1.1);
}

.service-box h3 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  margin: 0;
  padding: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--light-gray);
  font-size: 1.3rem;
  text-align: center;
  box-sizing: border-box;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

/* Lista de Serviços Accordion */
#accordion-about-us {
  padding: 40px;
  display: flex;
  justify-content: space-evenly;
}

@media screen and (max-width: 1390px) {
  #accordion-about-us {
    flex-direction: column-reverse;
    gap: 30px;
    align-items: center;
  }

}

.sobre-nos {
  width: min(500px, 100%);
}

.sobre-nos p {
  font-size: 1.3em;
  letter-spacing: 1px;
}

.service-accordion-container {
  width: min(700px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.accordion-box {
  border-radius: 15px;
}

.accordion-title {
  position: relative;
  padding: 10px 20px;
  background: var(--azul-profundo);
  color: var(--white);
  cursor: pointer;
  font-size: 1.3em;
  border-radius: 15px;
  transition: border-bottom-left-radius 50ms ease, border-bottom-right-radius 50ms ease, background 200ms ease;
  user-select: none;
}

.accordion-box.active .accordion-title {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background: var(--cinza-azulado);
  transition: 200ms ease;
}

.accordion-title::before {
  content: "+";
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  font-size: 1.5em;
}

.accordion-box.active .accordion-title::before {
  content: "-";
}

.accordion-content {
  position: relative;
  background: var(--branco-neve);
  height: 0;
  overflow: hidden;
  transition: 200ms;
  overflow-y: auto;
  font-size: 1.2em;
  text-align: justify;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

.accordion-content p {
  margin: auto;
}

.accordion-box.active .accordion-content {
  height: auto;
  padding: 20px;
}

/* Line */
#horizontal-line {
  width: 20%;
  height: 1px;
  background-color: var(--dark-gray);
  margin: 20px auto;
}

#vertical-line {
  width: 1px;
  background-color: var(--medium-gray);
  height: 50%;
  margin: 0 20px;
  justify-self: center;
  align-self: center;
  box-sizing: border-box;
}

/* Galeria Carrossel */
#galeria-inicial {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 40px 20px;
}

.galeria-inicial-carrousel-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 30px;
}

.galeria-inicial-carrousel {
  display: flex;
  width: fit-content;
  height: 100%;
  transition: transform 0.8s ease-in-out;
  animation: deslizar 10s linear infinite;
  align-items: center;
}

.galeria-inicial-item {
  flex: 0 0 auto;
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  margin-left: 70px;
}

.galeria-inicial-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Estilos para a área CTA */
.fotos-carrossel-cta {
  text-align: center;
  align-self: flex-start;
}

.fotos-carrossel-cta h2 {
  font-size: 2em;
  color: var(--dark-blue);
  margin-bottom: 20px;
}

/* Animação */
@keyframes deslizar {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media screen and (max-width: 768px) {
  #galeria-inicial {
    flex-direction: column;
    gap: 0;
    padding: 40px 0;
  }

  .fotos-carrossel-cta {
    align-self: center;
  }

  .galeria-inicial-item {
    width: 150px;
    height: 150px;
  }

}

.carrossel-btn {
  width: 40%;
  background-color: var(--azul-profundo);
  font-size: 0.8em;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  text-align: center;
  font-weight: bold;
  padding: 0.6em 1em;
  border: 1px solid #000;
  position: relative;
  color: #fff;
  text-decoration: none;
  transition: 0.2s ease all;
  z-index: 1;
  justify-self: center;
  justify-content: center;
}

.carrossel-btn img {
  max-height: 14px;
  align-self: center;
  justify-self: center;
  margin-left: 5px;
}

.carrossel-btn::before {
  transition: 0.5s all ease;
  position: absolute;
  top: 0;
  left: 0;
  right: 100%;
  bottom: 0;
  opacity: 0;
  content: "";
  background-color: var(--azul-arte);
  z-index: -1;
}

.carrossel-btn:hover,
.carrossel-btn:focus {
  color: var(--white);
  cursor: pointer;
}

.carrossel-btn:hover::before,
.carrossel-btn:focus::before {
  transition: 0.5s all ease;
  left: 0;
  right: 0;
  opacity: 1;
}

.carrossel-btn:active {
  transform: scale(0.9);
}

/* CTA Section */
#cta {
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
  align-self: center;
  display: flex;
  justify-content: center;
  gap: 10%;
  height: 150px;
  background-color: var(--text);
}

.cta-text {
  padding: 10px;
  color: var(--dark-gray);
}

.cta-text h3 {
  font-size: 1.5rem;
  margin-bottom: 0px;
}

.icon-text {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  justify-self: flex-end;

}

.icon-text h2 {
  font-size: 2rem;
  margin: 15px auto;
}

.cta-btn {
  background-color: var(--azul-profundo);
  color: var(--light-gray);
  max-height: 50%;
  padding: 20px;
  box-sizing: border-box;
  align-self: center;
  display: flex;
  gap: 5px;
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-btn:hover {
  transform: scale(1.05);
}

.cta-btn:visited,
.cta-btn:focus,
.cta-btn:active {
  color: var(--medium-gray);
  text-decoration: none;
}

.cta-btn h3 {
  margin: 0;
}

.cta-btn img {
  max-height: 14px;
  align-self: center;
  justify-self: center;
}