
/*==== Fonts Trajan =====*/

@font-face {
  font-family: "TrajanPro";
  src: url("../fonts/TrajanPro-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "TrajanPro";
  src: url("../fonts/TrajanPro-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
}


/* ===== VARIABLES CSS ===== */
:root {

  /* Colors */
  --primary-color: #202b4d;
  --primary-color-alt: #2e415d;
  --secondary-color: #d9dee0;
  --secondary-color-alt: #9da6a4;
  --tertiary-color: #dcdce3;
  --white-color: #ffffff;
  --light-color: #f5f5f7;
  --gray-color: #718096;
  --dark-color: #2d3748;
  --black-color: #1a202c;
  --whatsapp-color: #25D366;
  --whatsapp-hover-color: #1ac85a;

  /* Font and typography */
  --title-font: 'TrajanPro';
  --subtitle-font: 'Montserrat', serif;
  --body-font: 'Montserrat', serif;
  --biggest-font-size: 3rem;
  --h1-font-size: 2.5rem;
  --h2-font-size: 2rem;
  --h3-font-size: 1.8rem;
  --h4-font-size: 1.5rem;
  --p-font-size: 1.5rem;

  /* Font weight */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;

  /* Margins Bottom */
  --mb-0-25: 0.25rem;
  --mb-0-5: 0.5rem;
  --mb-0-75: 0.75rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;

  /* z index */
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;

  /* Transitions */
  --transition: all 0.3s ease;
}

/* ===== BASE ===== */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}


h1 {
  font-size: var(--h1-font-size);
  font-family: var(--subtitle-font);
}

h2 {
  font-size: var(--h2-font-size);
  font-family: var(--subtitle-font);
}

h3 {
  color: var(--primary-color);
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  font-family: var(--subtitle-font);
}

h4 {
  font-size: var(--h4-font-size);
  font-family: var(--subtitle-font);
}

p {
  font-size: var(--p-font-size);
  font-weight: normal;
  font-family: var(--subtitle-font);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  font-size: var(--p-font-size);
  font-family: var(--subtitle-font);
  font-weight: normal;
}

img {
  max-width: 100%;
  height: auto;
}

html, body {
  height: auto;
  overflow-x: hidden; 
  overflow-y: auto;   
}



/* ===== SCROLL UP ===== */
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: 100px;
  background-color: var(--primary-color);
  opacity: 0.8;
  padding: 0.1rem;
  border-radius: 0.4rem;
  z-index: var(--z-tooltip);
  transition: var(--transition);
  visibility: hidden;
}

.scrollup:hover {
  background-color: var(--primary-color-alt);
  opacity: 1;
}

.scrollup__icon {
  font-size: 1rem;
  color: var(--white-color);
}

.show-scroll {
  visibility: visible;
  bottom: 100px;
}

/* ===== SCROLL BAR ===== */
::-webkit-scrollbar {
  width: 0.2rem;
  background-color: var(--tertiary-color);
}

::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--primary-color-alt);
}

/* ===== SCROLL ===== */

/* ===== HEADER & NAV ===== */
.header {
  width: 100%;
  height: auto;
  left: 0;
  top: 0;
  z-index: 1000;
  position: fixed;
  display: flex;
  /* flex-direction: column; */
  justify-content: center;
  align-items: center;
  background-color: #f8f9f9;
}

.nav {
  width: 100%;
  /* background-color: #cad2d0; */
}

.nav__menu {
  width: 100%;
  display: flex;
}

.nav__menu ul {
  width: 100%;
  display: flex;
  justify-content: space-around;
  gap: 5rem;
}

.nav__menu ul li a{
  font-size: 1.1rem;
}

.logo__title {
  padding: 1rem 2rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}
 
.nav__logo {
  display: flex;
  /* gap: 1rem; */
  flex-direction: column; 
  cursor: pointer;
  align-items: center;
  justify-content: center;
  background-color: #f8f9f9;
}

.nav__logo .sub__logo {
  font-size: 1rem;
}

.nav__logo span {
  font-size: 2.5rem;
  font-family: var(--title-font);
  color: var(--primary-color);
}

.nav__logo-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: none;
  border-radius: 0;
}

.nav__link {
  color: var(--primary-color);
  transition: var(--transition);
  position: relative;
}

.nav__link:hover,
.nav__link.active-link {
  color: var(--primary-color);
}

.nav__link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 5px;
  bottom: -5px;
  border-radius: 20px;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav__link:hover::after,
.nav__link.active-link::after {
  width: 100%;
}

/* ===== HEADER E NAV ===== */


/* ===== HOME ===== */

.home__title {
  color: var(--primary-color);
  line-height: 1.2;
  text-align: center;
  width: 50%;
  font-size: 3rem;
  padding-bottom: 4rem;
  z-index: 1000;
  position: relative;
  text-align: left;
  margin-left: 10rem;
}

.sub__title {
  color: var(--primary-color);
  line-height: 1.6;
  text-align: left;
  font-size: 2rem;
  max-width: 700px;
  margin-left: 10rem;
  z-index: 1000;
  position: relative;
}

.home__description {
  color: var(--primary-color);
  line-height: 1.6;
  text-align: left;
  max-width: 700px;
  margin-left: 10rem;
  z-index: 1000;
  position: relative;
}

.home__description.mobile {
    display: none;
}

.home_back {
  position: relative; 
  height: 90vh;
  margin-top: 5rem;
  background-image: url("../images/capa3.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  z-index: 0;
  width: 100%; 
  pointer-events: none;
}

.home__container {
  position: relative;
  gap: 1rem;
  display: grid; 
  grid-template-columns: 1fr;
  align-items: center;
  width: 100%;
  height: 100%;
  z-index: 100;
  pointer-events: none;
}

.home__content {
  position: absolute; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  gap: 2rem;
  flex-direction: column;
  justify-content: center;
  text-align: left; 
  z-index: 1000;
  pointer-events: all;
}


/* ===== HOME ===== */


/* ===== SERVICES ===== */
.services__wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0;
}

.services {
  background-color: var(--light-color);
  overflow: hidden; 
}

.services__title {
  color: var(--primary-color);
  text-align: center;
  padding-top: 3rem;
  font-weight: 500;
}

.services__subtitle {
  display: flex;
  font-size: 1.5rem;
  font-weight: normal;
  justify-content: center;
  color: var(--gray-color);
  text-align: center;
  padding: 1rem 0
}


/* Contêiner e Animação de Carrossel */

.services__container {
  display: flex;
  scroll-behavior: smooth;
  gap: 2rem;
  width: 100%;
  padding: 1rem 1rem;
  overflow-x: hidden; /* permite scroll horizontal se precisar */
  overflow-y: visible; /* garante scroll vertical da página */
}

/* Pausa a animação no hover */
.services__container:hover {
  animation-play-state: paused;
}


/* Definição da Animação */
@keyframes scroll-x {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-33.33% * var(--total-cards))); } /* Ajuste a porcentagem baseada no número de cards/duplicações */
    
    /* Variação mais simples: rola a largura total dos 8 cards originais */
    100% { transform: translateX(calc(-300px * 8 - 2rem * 8)); } 
    
}

@keyframes scroll-x {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-1 * (300px * 8 + 2rem * 7))); } /* Rola a largura de 8 cards (300px) e 7 gaps (2rem) */
}



/* Card Individual */

.service__card {
  flex: 0 0 320px;
  height: 400px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  border-radius: 3px;
  border: 1px solid var(--primary-color);
  box-shadow: 5px 10px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}


.service__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.service__icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  background-color: rgba(var(--primary-color), 0.1); 
}

.service__icon i {
  color: var(--primary-color);
  font-size: 3rem;
}

.service__title {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.service__description {
  color: var(--gray-color);
  line-height: 1.5;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  word-spacing: 0.04rem; 
  font-size: 1.3rem;
}

.arrows {
  display: flex;
  gap: 2rem;
  cursor: pointer;
}

.service-arrow {
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
}


/* ===== SERVICE ===== */



/* ===== ABOUT ===== */
.about {
  background-color: var(--white-color);
}

.about__title {
  color: var(--primary-color);
  text-align: center;
  font-weight: 500;
  padding-top: 3rem;
}

.about__subtitle {
  width: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--gray-color);
  text-align: justify;
  line-height: 1.5;
  padding: 2rem 3rem;
  font-weight: 500;
  margin: auto;
}

.about__subtitle p {
  font-size: 1.5rem;
  max-width: 90%;
}

.about__container {
  display: grid;
  grid-template-columns: repeat(2, 50% 50%);
  gap: 1rem;
  align-items: center;
}

.about__content {
  margin-bottom: 3rem;
  width: 50rem;
}

.about__description {
  color: var(--gray-color);
  margin-bottom: var(--mb-2);
  line-height: 1.5;
  text-align: justify;
}

.about__image {
  position: relative;
  /* max-width: 60%; */
  margin: 2rem auto;
  width: 28rem;
  height: auto;
  pointer-events: none;
}

.about__image img {
  border-radius: 40% 10% 40% 10%;
  object-fit: cover;
  border: 4px solid var(--secondary-color);
  box-shadow: 0 5px 15px rgba(0,0,0,0.65);
}

.about__features {
  display: grid;
  gap: 4rem;
}

.about__feature {
  display: flex;
  text-align: justify;
  gap: 1rem;
}

.about__feature img {
  /* padding-top: 0.3rem; */
  width: 30px;
  height: auto;
}

.about__feature i {
  color: var(--primary-color);
  margin: 0.5rem 0;
  font-size: 1.5rem;
}

.about__feature h3 {
  font-weight: 500;
  margin-bottom: 1rem;
}

.about__feature p {
  font-size: 1.5rem;
  color: var(--gray-color);
  font-family: var(--subtitle-font);
  line-height: 1.5;
}

/* ===== ABOUT ===== */



/* ===== CONTACT ===== */
.contact {
  background-color: var(--light-color);
}

.contact__container {
  height: 38.5rem;
  /* gap: 8rem; */
  padding: 3rem 2rem;
  display: flex;
  justify-content: space-around;
}

.contact__content {
  display: flex;
  flex-direction: column;
  justify-content: start;
  text-align: justify;
  gap: 3rem;
}

.header__content {
  height: auto;
  gap: 2rem;
}

.contact__title {
  font-size: 2rem;
  color: var(--primary-color);
  text-align: start;
  padding-top: 3rem;
  font-weight: 500;
}

.contact__subtitle {
  font-size: 1.5rem;
  display: block;
  color: var(--gray-color);
  text-align: start;
  padding: 3rem 0;
}

.contact__description {
  color: var(--gray-color);
  margin-bottom: var(--mb-2);
  line-height: 1.6;
  max-width: 40rem;
}

.contact__info {
  display: grid;
  gap: 1.5rem;
}

.contact__info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact__info-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.contact__info-item h4 {
  margin-bottom: var(--mb-0-25);
}

.contact__info-item span {
  color: var(--gray-color);
  font-family: var(--subtitle-font);
  font-size: 1.2rem;
  line-height: 1.4;
}

/* Links dentro dos itens */
.contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.contact__info-item a {
  display: flex;
  font-family: var(--subtitle-font);
  color: var(--gray-color);
  cursor: pointer;
  font-weight: normal;
  font-size: 1.2rem;
  align-items: center;
  gap: 0.5rem;
}

.contact__form {
  background-color: var(--white-color);
  padding: 2rem;
  border-radius: 5px;
  border: 3px outset #d9dee0;
  box-shadow: 10px 15px 5px rgba(10, 15, 15, 0.06);
  width: 35rem;
  height: 34rem;
}

.contact__form-group {
  margin-bottom: 1rem;
}

.contact__input {
  width: 100%;
  background-color: var(--white-color);
  color: var(--dark-color);
  font-family: var(--body-font);
  border: 2px solid var(--secondary-color-alt);
  outline: none;
  padding: 1rem;
  border-radius: 0.5rem;
  transition: var(--transition);
}


.contact__input:focus {
  border-color: var(--primary-color);
  background-color: var(--white-color);
}

.contact__textarea {
  resize: vertical;
  min-height: 100px;
}

.contact__button {
  width: 100%;
  border: none;
  padding: 1rem 0;
  border-radius: 5px;
  border: 5px outset #d9dee0;
  cursor: pointer;
  font-size: 1.2rem;
  justify-content: center;
  background-color: #d9dee0;
}

/* ===== CONTACT ===== */



/* ===== BOTÕES ===== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.8rem 3rem;
  border-radius: 0.3rem;
  font-weight: var(--font-medium);
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
}

.home__buttons {
  display: flex;
  justify-content: left;
  gap: 1.5rem;
  width: 100%;
  margin-top: 6rem;
  padding-left: 10rem;
  flex-wrap: wrap;
  cursor: pointer;
}

.home__buttons i {
  font-size: 1.8rem;
}

.home__buttons a {
  max-width: 270px;
  width: 100%;
  text-align: center;
  font-family: var(--subtitle-font);
}

.button:hover {
  transform: translateY(-2px);
}

.button--whatsapp {
  background-color: var(--whatsapp-color);
  border-color:  var(--whatsapp-color);
  color: var(--white-color);
  animation: pulso 4s infinite;
}

@keyframes pulso {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.1);
    }
    100% {
      transform: scale(1);
    }
  }

.button--whatsapp:hover {
  background-color: var(--whatsapp-hover-color);
}

/* Botão Instagram */
.button--instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #833ab4, #5851db);
  border-color: transparent;
  color: var(--white-color);
}

.button--instagram:hover {
  filter: brightness(0.9);
}


/* whatsapp voador */
.whatsapp-wrapper {
  position: fixed;
  bottom: 55px;
  right: 60px;
  display: flex;
  align-items: center;
  text-decoration: none;
  z-index: var(--z-tooltip);
  transition: transform 180ms ease, box-shadow 180ms ease;
  transform-origin: center center;
  opacity: 0;
  visibility: hidden;
  /* pointer-events: none; */
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.show-whatsapp .whatsapp-wrapper {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.whatsapp-icon {
  width: 80px;
  height: 80px;
  background-color: var(--whatsapp-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color);
  font-size: 2.2rem;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
  transition: background-color 180ms ease;
  animation: pulse 2s infinite;
}

/* Pílula com texto */
.whatsapp-pill {
  background-color: var(--whatsapp-color);
  color: var(--white-color);
  padding: 0.6rem 1rem;
  border-radius: 30px 0 0 30px;
  font-family: var(--subtitle-font);
  font-size: 1.3rem;
  font-weight: var(--font-semi-bold);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: background-color 180ms ease;
  margin-right: -10px;
  margin-top: 8px;
  animation: pulse 2s infinite;
}

/* Hover sincronizado */
.whatsapp-wrapper:hover {
  transform: scale(1.05);
}

.whatsapp-wrapper:hover .whatsapp-icon,
.whatsapp-wrapper:hover .whatsapp-pill {
  background-color: var(--whatsapp-hover-color);
}

/* keyframes do pulse */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  50% {
    box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Estilo base para os botões sociais */
.social-wrapper {
  position: fixed;
  display: none !important;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 1.5rem;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Mostrar somente depois da seção serviços */
body.show-whatsapp .instagram-wrapper,
body.show-whatsapp .facebook-wrapper {
  display: none !important;
}

/* ===== BOTÕES ===== */



/* ===== FOOTER ===== */

.footer {
  background-color: var(--primary-color);
  padding: 1rem;
  height: 15rem;
  color: var(--secondary-color);
}

.footer__header {
  width: 100%;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.footer__logo img {
  width: 4rem;
  height: auto;
}

.footer__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer__title {
  font-family: var(--title-font);
  font-size: 1.5rem;
}

.footer__subtitle {
  font-size: 0.8rem;
}

.footer__social {
  display: flex;
  gap: 2rem;
}

.footer__social a {
  font-size: 1.5rem;
  color: var(--secondary-color);
  transition: transform 0.2s, color 0.2s;
}

.footer__copy p {
  font-size: 1rem;
}

.footer {
  z-index: 1;
}

.oab {
  font-size: 1rem;
}

/* ===== FOOTER ===== */



/* ===== MEDIA QUERIES ===== */


/* Para dispositivos grandes (telas até 1512px) */
@media screen and (max-width: 1512px) {
  .nav__menu ul {
    justify-content: end;
    margin-right: 2rem;
  }

  .home__content h3 {
    font-size: 1.8rem;
    margin-left: 10rem;
  }

  .home__description.desktop {
    text-align: justify;
    font-size: 1.5rem;
    margin-left: 10rem;
  }

  .home__buttons {
    padding-left: 10rem;
  }

  .button {
    padding: 0.8rem 2.5rem;
    font-size: 1.5rem;
  }

  .home_back::before { 
    width: 50%;
  }

  .services__container {
    display: flex;
    flex-wrap: nowrap; /* linha única de cards */
    justify-content: flex-start; /* alinhamento à esquerda para scroll consistente */
    gap: 2rem;
  }

  .service__card {
    flex: 0 0 300px;
    margin: 0; /* remove margens laterais */
  }

  /* Setas abaixo dos cards */
  .service-arrow {
    position: static;
    margin: 1rem 0 0 0;
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

/* Wrapper centraliza cards e setas */
.services__wrapper {
  display: flex;
  flex-direction: column; /* cards em cima, setas embaixo */
  align-items: center;
}

.service-arrows-wrapper {
  display: flex;
  gap: 1rem;
}

  .about__content {
    width: 41rem;
  }

  .contact__container {
    height: 43rem;
    gap: 5rem;
    padding: 4rem 2rem;
  }

  .contact__content {
    gap: 5rem;
  }
}


/* Para dispositivos médios (telas até 768px) */
@media screen and (max-width: 768px) {
  .logo__title {
    padding: 1.5rem 0;
    justify-content: center;
  }

  .nav {
    display: none;
  }

  .home__title {
    margin-left: 5rem;
    width: 100%;
    font-size: 2.8rem;
    flex-wrap: nowrap;
  }
  .home__content h3 {
    margin: 0 auto;
    font-size: 2rem;
  }

  .home__description.desktop {
    /* padding-left: 1rem; */
    text-align: justify;
    margin: 0 auto;
    padding: 0 3rem;
    font-size: 1.5rem;
  }

  .home__buttons {
    padding-left: 1rem;
    justify-content: center;
  }

  .home_back::before {
    width: 100%;
    opacity: 0.3;
    -webkit-mask-image: none;
    mask-image: none;
  }

  /* .home__buttons {
    padding-left: 2rem;
    justify-content: center;
  } */

  .services__container {
    display: grid; 
    grid-template-columns: repeat(2, 1fr); /* 2 colunas */
    gap: 1rem;
    overflow-x: hidden; /* remove scroll horizontal */
    width: 100%;
    justify-items: center;
  }

  .service__card {
    width: 100%; 
    height: auto;
    margin: 0;
  }

  /* Setas escondidas no tablet */
  .service-arrow {
    display: none;
  }

  .about__subtitle {
    margin: 0 auto;
    padding: 2rem 0;
  }
  
  .about__feature h3 {
    text-align: center;
  }

  .about__container {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 0 3rem;
  }

  .contact__container {
    flex-direction: column;
    align-items: center;
    height: auto;
  }

  .contact__content {
    padding-left: 2rem;
    text-align: justify;
  }

  .footer__header {
    flex-direction: column;
    gap: 2rem;
  }

  .footer__social,
  .footer__text {
    padding-top: 1rem;
  }
}

/* Iphone Pro Max */

@media screen and (max-width: 690px) {
  /* Header */
  .header {
    height: 6.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
    background-color: #f8f9f9;
    box-shadow: 0 3px 5px rgb(181, 181, 184);
  }

  .logo__title {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
  }

  .nav__logo {
    display: flex;
    flex-direction: column;
  }

  .nav__logo span {
    font-size: 1.8rem;
  }

  .nav__logo .sub__logo {
    font-size: 0.8rem;
  }

  .nav__logo-image {
    width: 41px;
    height: 41px;
  }

  .nav {
    display: none;
  }

  .nav__menu {
    display: none;
  }

  /* Home */
  .home_back {
    /* margin-top: 6rem; */
    background-position: relative;
  }
  
  .home_back::before {
    background-image: url("../images/bg4.png");
    background-position: right;
    opacity: 0.9;
    z-index: 0;
  }
  
  .home__container {
    background-color: var(--primary-color);
    opacity: 0.7;
    height: 100%;
    position: relative;
    z-index: 1;
  }

  .home__content {
    justify-content: space-around;
    padding: 1.5rem 0;
    z-index: 1000;
    top: 0;
    width: 100%;
    gap: 1rem;
  }

  .home__title {
    margin: 0 auto;
    width: auto;
    font-size: 2.5rem;
    color: #ffffff;
    text-align: center;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .home__content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    width: 20rem;
    padding: 0.5rem;
    text-align: center;
    border: 2px solid #ffffff;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--white-color);
    animation: pulso 4s infinite ;
  }

  @keyframes pulso {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.1);
    }
    100% {
      transform: scale(1);
    }
  }

  .home__description {
    margin: 0 auto;
    padding: 0 2.3rem;
    padding-top: 1rem;
    font-size: 1.3rem;
    font-weight: 500;
    text-align: justify;
  }

  .home__description.desktop {
    display: none;
  }

  .home__description.mobile {
    display: block;
    color: var(--white-color);
  }

  /* Home buttons */
  .button {
    padding: 0.8rem 3rem;
    font-size: 1.3rem;
  }
  
  .home__buttons {
    padding: 2rem 2rem;
    gap: 1rem;
    margin: 0 auto;
    width: auto;
    flex-direction: column; /* Botões em coluna */
    align-items: center; /* Centraliza os botões */
  }

  .home__buttons a {
    width: 350px;
  }

  .button--whatsapp {
    padding: 0.8rem 0;
    font-size: 1.3rem;
    animation: pulso 2s infinite ;
  }

  /* Services */
  .services__title {
    font-size: 2rem;
  }

  .services__container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    gap: 0.5rem;
    width: 100%;
    overflow: hidden;
  } 

  .service__card {
    width: 100%;
    height: auto;
    justify-content: center;
    padding: 0.5rem;
    flex-shrink: 0;
  }

  .service__title {
    font-size: 1rem;
    margin-bottom: 0.3rem;
  }
  
  .service__description {
      display: none;
  }

  .service__icon i {
    font-size: 2.5rem;
  }
  
  .services__container:hover {
      animation-play-state: running;
  }

  h4{
    font-size: 1rem;
  }

  .service-arrow {
    display: none;
  }

  /* About */
  .about__container {
    max-width: auto;
    gap: 0;
    padding: 0 2rem;
  }

  .about__title {
    font-size: 2rem;
    font-weight: 500;
    padding: 2rem 0;
  }

  .about__subtitle {
    color: #000;
    padding: 0 ;
    text-justify: inter-word;
    hyphens: auto;
    word-spacing: 0.05rem; 
  }

  .about__subtitle p {
    font-size: 1.3rem;
  }

  .about__content {
    padding: 0.5rem;
    padding-bottom: 2rem;
    width: auto;
  }

  .about__content h3 {
    font-size: 1.5rem;
    font-weight: 500;
    padding-bottom: 1rem;
    padding-top: 3rem;
  }

  .about__image {
    width: auto;
    margin: auto;
    padding-top: 2rem;
  }

  .about__description {
    font-size: 1.3rem;
    text-align: center;
  }

  .about__features {
    gap: 0;
  }

  .about__feature h3 {
    display: flex;
  }

  .about__feature p {
    font-size: 1.2rem;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    word-spacing: 0.05rem; 
    padding: 1rem 0;
    color: #000;
  }

  /* Contact */
  .contact__container {
    padding: 2rem;
    height: fit-content;
    gap: 3rem;
  }

  .contact__title {
    font-size: 2rem;
    font-weight: 500;
    text-align: justify;
    padding-top: 1rem;
  }

  .contact__subtitle { 
    font-size: 1.2rem;
    color: var(--primary-color);
    padding: 2rem 0;
    text-align: justify;
  }

  .contact__description {
    font-size: 1.2rem;
    color: var(--primary-color);
    padding-bottom: 0.5rem;
    text-align: justify;
  }

  .contact__content {
    padding: 0;
    gap: 2rem;
  }

  .contact__info-item span {
    color: var(--gray-color);
  }

  .contact__info-item .end,
  .contact__info-item .end:visited, 
  .contact__info-item .mail {
    font-size: 1rem;
    color: var(--gray-color);
    text-decoration: none;
  }

  .contact__form {
    max-width: 330px;
    padding: 1.5rem;
  }

  .contact__button {
    color: var(--primary-color);
  }

  /* Footer */
  .footer__header {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  .oab {
    font-size: 1rem;
  }

  .footer__copy p {
    font-size: 0.6rem;
  }

  .footer__logo img {
    width: 2rem;
  }

  .footer__social {
    display: none;
  }

  /* WhatsApp */
  .whatsapp-wrapper {
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-icon {
    width: 70px;
    height: 70px;
    font-size: 2rem;
  }

  .whatsapp-pill {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
  }

  .whatsapp-wrapper {
    display: none !important;
  }

  body.show-whatsapp .whatsapp-wrapper {
    display: flex !important;
  }
}

/* Para dispositivos pequenos (telas até 425px) */

@media screen and (max-width: 425px) {
  body {
    width: screen-width;
  }
  
  /* header */
  .header {
    height: 6.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    background-color: #f8f9f9;
    box-shadow: 0 3px 5px rgb(181, 181, 184);
  }

  .logo__title {
    display: flex;
    justify-content: center;
  }

  .nav__logo {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }

  .nav__logo span {
    font-size: 1.6rem;
  }

  .nav__logo .sub__logo {
    font-size: 0.7rem;
  }

  .nav__logo-image {
    width: 40px;
    height: 40px;
  }

  .nav {
    display: none;
  }

  .nav__menu {
    display: none;
  }


  /* home */

  .home_back::before {
    background-image: url("../images/bg4.png");
    background-position: right;
    opacity: 0.9;
    z-index: 0;
  }
  
  .home__container {
    background-color: var(--primary-color);
    opacity: 0.7;
    height: 100%;
    position: relative;
    z-index: 1;
  }

  .home__content {
    justify-content: center;
    height: auto;
    padding: 1.5rem 0;
    position: absolute;
    z-index: 1000;
    top: 0;
  }

  .home__title {
    margin: 0;
    width: auto;
    font-size: 2.5rem;
    color: #ffffff;
    text-align: center;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .home__content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    width: 20rem;
    padding: 0.5rem;
    text-align: center;
    border: 2px solid #ffffff;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--white-color);
    animation: pulso 2s infinite ;
  }

  @keyframes pulso {
    0% {
      transform: scale(1);

    }
    50% {
      transform: scale(1.1);

    }
    100% {
      transform: scale(1);
    }
  }

  .home__description {
    margin: 0;
    padding: 0 2.3rem;
    padding-top: 1rem;
    font-size: 1.3rem;
    font-weight: 500;
    text-align: justify;
  }

  .home__description.desktop {
    display: none;
  }

  .home__description.mobile {
    display: block;
    color: var(--white-color);
  }

  /* home buttons */
  
  .button {
    padding: 0.8rem 3rem;
    font-size: 1.3rem;
  }
  
  .home__buttons {
    padding: 2rem 2rem;
    gap: 1rem;
    margin: 0;
    width: auto;
  }

  .home__buttons a {
    max-width: 80%;
  }

  .button--whatsapp {
    padding: 0.8rem 0;
    font-size: 1.3rem;
    animation: pulso 4s infinite;
  }

  /* O elemento span que será animado */
  .fade-line {
    display: block; 
    opacity: 0; 
    transition: opacity 1s ease-out, transform 1s ease-out;
    transform: translateY(20px); 
  }

  /* Keyframes para o surgimento (apenas opacidade e movimento) */
  @keyframes fadeIn {
      to {
          opacity: 1;
          transform: translateY(0);
      }
  }


  .is-fading {
      animation: fadeIn 2s ease-out forwards;
  }



 /* services */
  .services__title {
    font-size: 2rem;
  }

  .services__container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    gap: 0.5rem;
    width: 100%;
    overflow: hidden; /* sem scroll horizontal */
  } 

  .service__card {
    width: 100%; /* Ocupa a largura total da coluna do grid */
    height: auto;
    justify-content: center;
    padding: 0.5rem; /* Reduz o padding interno */
    flex-shrink: 0; /* Não mais necessário, mas não atrapalha */
  }

  .service__title {
    font-size: 1rem; /* Reduz o título para caber */
    margin-bottom: 0.3rem;
  }
  
  .service__description {
      display: none; /* Opcional: Ocultar a descrição para economizar espaço vertical */
      /* Se a descrição for mantida, o card ficará mais alto */
  }

  .service__icon i {
    font-size: 2.5rem; /* Ícones menores */
  }
  
  /* Ajuste a seção principal para garantir que a animação não seja aplicada */
  .services__container:hover {
      animation-play-state: running; /* Garante que a pausa não afete */
  }

  h4{
    font-size: 1rem;
  }

  .service-arrow {
  display: none; /* esconde as setas */
}



  /* about */

  .about__container {
    max-width: auto;
    gap: 0;
    padding: 0 2rem;
  }

  .about__title {
    font-size: 2rem;
    font-weight: 500;
    padding: 2rem 0;
  }

  .about__subtitle {
    color: #000;
    padding: 0 ;
    text-justify: inter-word;
    hyphens: auto;
    word-spacing: 0.05rem; 
  }

  .about__subtitle p {
    font-size: 1.3rem;
  }

  .about__content {
    padding: 0.5rem;
    padding-bottom: 2rem;
    width: auto;
  }

  .about__content h3 {
    font-size: 1.5rem;
    font-weight: 500;
    padding-bottom: 1rem;
    padding-top: 3rem;
  }

  .about__image {
    width: auto;
    margin: auto;
    padding-top: 2rem;
  }

  .about__description {
    font-size: 1.3rem;
    text-align: center;
  }

  .about__features {
    gap: 0;
  }

  .about__feature h3 {
    display: flex;
  }

  .about__feature p {
    font-size: 1.2rem;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    word-spacing: 0.05rem; 
    padding: 1rem 0;
    color: #000;
  }



  /* contact */

  .contact__container {
    padding: 2rem;
    height: fit-content;
    gap: 3rem;
  }

  .contact__title {
    font-size: 2rem;
    font-weight: 500;
    text-align: justify;
    padding-top: 1rem;
  }

  .contact__subtitle { 
    font-size: 1.2rem;
    color: var(--primary-color);
    padding: 2rem 0;
    text-align: justify;
  }

  .contact__description {
    font-size: 1.2rem;
    color: var(--primary-color);
    padding-bottom: 0.5rem;
    text-align: justify;
  }

  .contact__content {
    padding: 0;
    gap: 2rem;
  }

  .contact__info-item span {
    color: var(--gray-color);
  }

  .contact__info-item .end,
  .contact__info-item .end:visited, 
  .contact__info-item .mail {
    font-size: 1rem;
    color: var(--gray-color);
    text-decoration: none;
  }

  .contact__form {
    max-width: 330px;
    padding: 1.5rem;
  }

  .contact__button {
    color: var(--primary-color);
  }


  /* footer */

  .footer__header {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  .oab {
    font-size: 1rem;
  }

  .footer__copy p {
    font-size: 0.6rem;
  }

  .footer__logo img {
    width: 2rem;
  }

  .footer__social {
    display: none;
  }




  /* WhatsApp */

  .whatsapp-wrapper {
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-icon {
    width: 70px;
    height: 70px;
    font-size: 2rem;
  }

  .whatsapp-pill {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
  }

  .whatsapp-wrapper {
    display: none !important;
  }

  body.show-whatsapp .whatsapp-wrapper {
    display: flex !important; /* ou block, dependendo de como está */
  }

}