/* Global */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

/*===== VARIABLES CSS =====*/
:root {
  --header-height: 4rem;
  --header-margin: 0.75rem;

  --primary-color: #193454;
  --secondary-color: #97a9b9;

  --title-color: #393939;
  --text-color-light: #eaeaea;
  --body-color: #fbfdfe;

  --body-font: 'Poppins', sans-serif;
  --biggest-font-size: 2.25rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;

  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;

  --mb-1: 0.5rem;
  --mb-2: 1rem;
  --mb-3: 1.5rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;

  --z-tooltip: 10;
  --z-fixed: 100;

  --margin: 120px;
  --negative-margin: calc(var(--margin) * -1);
}

@media screen and (min-width: 768px) {
  :root {
    --biggest-font-size: 4rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  width: 100%;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

input,
button,
select,
textarea {
  font-family: var(--body-font);
  border: none;
  outline: none;
}

button:hover {
  cursor: pointer;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  line-height: 1.5;
}

.text-color-primary {
  color: var(--primary-color);
}

.bg-primary-color {
  background-color: var(--primary-color);
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #193454;
  --bs-btn-border-color: #193454;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #152c48; /* cor um pouco mais escura para hover */
  --bs-btn-hover-border-color: #132742;
  --bs-btn-focus-shadow-rgb: 25, 52, 84; /* RGB de #193454 */
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #132742;
  --bs-btn-active-border-color: #11233c;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #193454;
  --bs-btn-disabled-border-color: #193454;
}

.btn-outline-primary {
  --bs-btn-color: #193454;
  --bs-btn-border-color: #193454;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #193454;
  --bs-btn-hover-border-color: #193454;
  --bs-btn-focus-shadow-rgb: 25, 52, 84; /* RGB de #193454 */
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #132742; /* um tom mais escuro */
  --bs-btn-active-border-color: #132742;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #193454;
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: #193454;
  --bs-gradient: none;
}

.main {
  margin-bottom: var(--mb-5);
}

.section {
  padding-block: 3rem;
}

.overlay-banner {
  position: relative;
  z-index: var(--z-tooltip);
  margin-top: var(--negative-margin);
}

.swiper {
  width: 100%;
  perspective: 1000px;
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out, opacity 0.5s;
}

.quote {
  font-style: italic;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  border-radius: 0.5rem;
  border-left: 4px solid var(--primary-color);
  background-color: #f2f2f7;
}

.title {
  font-size: var(--h1-font-size);
  margin-bottom: var(--mb-3);
}

.subtitle {
  font-size: var(--h2-font-size);
}

.title-primary {
  color: var(--primary-color);
}

.paragraph {
  font-size: var(--normal-font-size);
  margin-bottom: var(--mb-2);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  transition: all 0.2s ease;
  background-color: var(--primary-color);
  z-index: var(--z-fixed);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.75rem;
}

.nav_list {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.nav_logo svg {
  height: 3rem;
}

.nav_item {
  margin-bottom: var(--mb-2);
}

.nav_link,
.nav_link:hover,
.nav_toggle {
  font-weight: var(--font-medium);
  color: var(--text-color-light);
}

.nav_link {
  display: inline-block;
  transition: all 0.2s;
}

.nav_link:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: scale(0.95);
}

.nav_toggle {
  font-size: 1.3rem;
  cursor: pointer;
}

.scroll-header {
  width: calc(100% - (var(--header-margin) * 2));
  top: 1.25rem;
  left: var(--header-margin);
  right: var(--header-margin);
  border-radius: 0.75rem;
}

.header.scroll-header.active-menu {
  border-radius: 0.75rem 0.75rem 0 0;
}

.nav_menu.show-menu {
  top: var(--header-height);
}

.scroll-header .nav_menu.show-menu {
  top: calc(1.25rem + (var(--header-height)));
  left: var(--header-margin);
  right: var(--header-margin);
  width: calc(100% - (var(--header-margin) * 2));
}

@media screen and (max-width: 768px) {
  .nav_menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    padding: 0.75rem 0 1rem;
    margin-bottom: 1px;
    background-color: #354e6b;
    transition: all 0.2s ease;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 1rem 1rem;
    z-index: var(--z-fixed);
  }

  .nav_item {
    position: relative;
    height: 3rem;
    margin-bottom: 0;
  }

  .nav_item:not(:last-child)::before {
    position: absolute;
    content: '';
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    height: 1px;
    background-color: rgba(255, 255, 255, 0.25);
  }

  .nav_link {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav_link:hover {
    transform: none;
  }
}

@media screen and (min-width: 768px) {
  :root {
    --header-margin: 3rem;
  }

  .nav {
    height: 100%;
  }

  .nav_list {
    display: flex;
    gap: 1rem;
  }

  .nav_item {
    margin-bottom: 0;
  }

  .nav_link {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
  }

  .nav_toggle {
    display: none;
  }
}

@media screen and (min-width: 1200px) {
  .root {
    --header-margin: 5rem;
  }
}

/* Banner */
.banner {
  position: relative;
  padding-top: 4rem;
  border-radius: 0 0 1.5rem 1.5rem;
  overflow: hidden;
  background-color: var(--primary-color);
  box-shadow: 0 0.5rem 0.5rem rgba(0, 0, 0, 0.25);
}

@media screen and (min-width: 768px) {
  .banner {
    border-radius: 0 0 2.5rem 2.5rem;
  }
}

.background {
  position: relative;
  width: 100%;
  height: 550px;
  display: flex;
  align-items: center;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.background::before {
  position: absolute;
  content: '';
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  background-color: var(--primary-color);
  z-index: 1;
}

.background.home {
  background-image: url(../../assets/img/banner/home.png);
}

.background.about {
  background-image: url(../../assets/img/banner/about.png);
}

.background.services {
  background-image: url(../../assets/img/banner/services.png);
}

.background.contact {
  background-image: url(../../assets/img/banner/contact.png);
}

.background.blog {
  background-image: url(../../assets/img/banner/blog.png);
}

.background.legal {
  background-image: url(../../assets/img/banner/legal.png);
}

.background .container {
  position: relative;
  z-index: 5;
}

.banner-title {
  font-size: var(--biggest-font-size);
  font-weight: 600;
  color: var(--text-color-light);
}

.banner-title.blog {
  font-size: var(--h1-font-size);
}

.banner-description {
  font-size: var(--h3-font-size);
  color: var(--text-color-light);
}

.banner-description .date-of-posting {
  display: inline;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  background: var(--primary-color);
  box-shadow: 0 0 1rem rgba(255, 255, 255, 0.2);
}

.error-screen {
  height: 80vh;
}

.img-error {
  width: 400px;
  padding: 1rem;
}

/* Home */
.home-img {
  position: relative;
}

.home-img::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 0.5rem;
  transform: rotate(8deg) scale(0.94);
  background-color: var(--primary-color);
  z-index: -1;
}

.feature-value-card .icon {
  height: 5rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media screen and (min-width: 768px) {
  .overlay-banner:nth-child(3) .feature-value-card {
    margin-bottom: 0;
  }
}

@media screen and (max-width: 991px) {
  .feature-value-card {
    margin-bottom: calc(var(--margin) + 1rem);
  }

  .overlay-banner:last-child .feature-value-card {
    margin-bottom: 0;
  }
}

.services-box .icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--primary-color);
}

.features-title {
  position: relative;
  margin-bottom: 2rem;
}

.features-title::before {
  position: absolute;
  content: '';
  left: 0;
  bottom: -0.75rem;
  width: 100px;
  height: 3px;
  border-radius: 0.5rem;
  background-color: var(--primary-color);
}

.feature-card {
  position: relative;
  min-height: 192px;
  overflow: hidden;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border: none;
}

.swiper-slide .feature-card {
  height: 230px;
}

.feature-item:nth-child(2) .feature-card {
  background-image: url(../img/vantagens/img-1.png);
}

.feature-item:nth-child(3) .feature-card {
  background-image: url(../img/vantagens/img-2.png);
}

.feature-item:nth-child(4) .feature-card {
  background-image: url(../img/vantagens/img-3.png);
}

.feature-item:nth-child(5) .feature-card {
  background-image: url(../img/vantagens/img-4.png);
}

.feature-item:nth-child(6) .feature-card {
  background-image: url(../img/vantagens/img-5.png);
}

.feature-item:nth-child(7) .feature-card {
  background-image: url(../img/vantagens/img-6.png);
}

.swiper-slide img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  z-index: 1;
}

.swiper-slide .card-body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: rgba(25, 52, 84, 0.6);
  z-index: 10;
}

.feature-card:before,
.content:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
}

.feature-card:before {
  opacity: 0.25;
}

.feature-card span {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  color: var(--primary-color);
  z-index: 10;
}

.feature-card:hover {
  box-shadow: 0 8px 16px rgba(255, 255, 255, 0.2);
}

.content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.75rem 1.75rem;
  max-height: 96px; /* altura do título */
  overflow: hidden;
  transition: all 0.5s ease;
}

.content:before {
  border-radius: 0.5rem;
  opacity: 0.75;
}

.feature-card:hover .content {
  max-height: 100%;
}

.feature-card .card-title {
  position: relative;
  color: var(--text-color-light);
  z-index: 1;
}

.feature-card .card-text {
  position: relative;
  color: var(--text-color-light);
  z-index: 1;
}

.features .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
  transition: 0.2s;
}

.features .swiper-slide-prev img,
.features .swiper-slide-next img {
  transform: scale(0.95) translateZ(-100px);
  filter: brightness(75%);
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 0.5rem;
  background-color: #eaeaea;
}

.testimonial-icon {
  margin-bottom: 1rem;
}

.testimonial-content {
  flex: 1 1 auto;
  padding: 1rem;
}

.testimonial-footer {
  display: flex;
  align-items: center;
}

.testimonial-img {
  position: relative;
  padding: 0.5rem;
  border-radius: 0 0.5rem 0 0;
  background-color: var(--body-color);
}

.testimonial-img span:nth-child(1),
.testimonial-img span:nth-child(2) {
  position: absolute;
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--body-color);
}

.testimonial-img span:nth-child(1) {
  top: -0.5rem;
  left: 0;
}

.testimonial-img span:nth-child(2) {
  right: -0.5rem;
  bottom: 0;
}

.testimonial-img span:nth-child(1)::before,
.testimonial-img span:nth-child(2)::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #eaeaea;
  border-radius: 0 0 0 0.5rem;
}

.testimonial-card .testimonial-img img {
  --size: 72px;
  max-width: var(--size);
  height: var(--size);
  border-radius: 50%;
}

.testimonial-client {
  width: 100%;
  height: 100%;
  padding: 0 1rem;
  display: flex;
  align-items: center;
}

.testimonial-client h5 {
  margin: 0;
}

/* About */
.core-value-card {
  padding-top: 40px;
  margin-bottom: calc(var(--margin) + 60px);
}

.card-core:last-of-type .core-value-card {
  margin-bottom: 0;
}

.core-value-card .icon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--primary-color);
}

@media screen and (min-width: 991px) {
  .core-value-card {
    margin-bottom: 0;
  }
}

.founder-title {
  position: relative;
  margin-bottom: 2.5rem;
}

.founder-title::before {
  position: absolute;
  content: 'CEO & Fundador';
  left: 2.5rem;
  bottom: -1.75rem;
  font-size: var(--h3-font-size);
  color: var(--primary-color);
}

/* Services */
.services-item {
  padding: 2rem 0;
}

.services-item svg {
  width: 1.75rem;
  height: 1.75rem;
}

.img-service {
  position: relative;
  padding: 1rem;
}

.services-item .img-service::before {
  position: absolute;
  content: '';
  bottom: 0;
  border-radius: 0.5rem;
  background-color: var(--primary-color);
  z-index: -1;
}

.services-item:nth-child(1) .img-service::before,
.services-item:nth-child(5) .img-service::before {
  left: 50%;
  transform: translateX(-50%);
  width: calc(65% - (0.75rem * 2));
  height: 2rem;
}

.services-item:nth-child(2) .img-service::before,
.services-item:nth-child(3) .img-service::before,
.services-item:nth-child(4) .img-service::before {
  width: 8rem;
  height: 8rem;
}

.services-item:nth-child(3) .img-service::before {
  left: 0;
}

.services-item:nth-child(2) .img-service::before,
.services-item:nth-child(4) .img-service::before {
  right: 0;
}

/* Contact */
.contact-item {
  padding: 1rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  background-color: #fff;
}

.contact-item svg,
.address svg {
  margin-right: 1rem;
}

.contact-item a,
.address a {
  line-height: 1.5;
  color: var(--primary-color);
}

.form-input-group {
  position: relative;
}

.form-input {
  min-height: 42px;
  width: 100%;
  padding: 0.5rem;
  border: 1.5px solid #b4b7c5;
  border-radius: 0.25rem;
  resize: vertical;
}

.form-label {
  position: absolute;
  top: 0.85rem;
  left: 1.25rem;
  font-size: var(--normal-font-size);
  font-weight: var(--font-regular);
  line-height: 1;
  margin: 0;
  user-select: none;
  transition: 0.3s;
  background: white;
  padding: 0 0.25rem;
  color: #898fa7;
}

.form-label:hover {
  cursor: text;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown).form-input:not(:focus) + .form-label {
  top: -0.35rem;
  left: 0.85rem;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
  color: var(--primary-color);
}

.form-input:focus {
  border-color: var(--primary-color);
}

iframe {
  width: 100%;
  min-height: 250px;
}

.address {
  overflow: hidden;
}

.address .card-head {
  padding: 1rem;
}

/* Blog */
.blog-content,
.blog-sidebar {
  padding: 1.5em;
  border-radius: 0.5rem;
  background-color: #fff;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.blog-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 2.5rem);
}

.article-body table,
.article-body th,
.article-body td {
  border: 1px solid #7e8c8d !important;
  border-collapse: collapse;
}

.article-body th,
.article-body td {
  padding: 8px;
}

.article-body img {
    width: 100%;
    border-radius: .5rem !important;
    box-shadow: 0 0.5rem 0.5rem rgba(0, 0, 0, 0.25);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}

/* CTA */
.cta {
  position: relative;
  padding: 1.5rem 2rem;
  text-align: center;
  overflow: hidden;
  border-radius: 0.5rem;
  background-color: var(--primary-color);
  color: var(--text-color-light);
}

.cta.home {
  background: url(../img/geral/cta.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.cta.home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  opacity: 0.75;
  z-index: 1;
}

.cta span {
  position: relative;
  z-index: 10;
}

/* Footer */
.footer {
  position: relative;
  background-color: var(--primary-color);
  color: var(--body-color);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  row-gap: 2rem;
}

.footer-description {
  display: block;
  font-size: var(--small-font-size);
  margin: 0.25rem 0 var(--mb-3);
}

.footer-social {
  font-size: 1.5rem;
  color: var(--title-color);
  margin-right: var(--mb-2);
}

.footer-title {
  position: relative;
  display: inline-block;
  font-size: var(--h2-font-size);
  margin-bottom: var(--mb-3);
  color: var(--body-color);
}

.footer-title::before {
  position: absolute;
  content: '';
  left: 0;
  bottom: -8px;
  width: 80px;
  height: 1px;
  border-radius: 12px;
  background-color: var(--text-color-light);
}

.footer ul {
  padding: 0;
  list-style-type: none;
}

.footer-link {
  display: block;
  transition: all 0.2s;
  margin-bottom: var(--mb-1);
  color: #b2b2b2;
}

.footer-link .icon {
  margin-right: 0.5rem;
  fill: #b2b2b2;
}

.footer-link .icon path {
  stroke: #b2b2b2;
  fill: #b2b2b2;
}

.footer-link:hover {
  transform: translateX(0.25rem);
  color: var(--body-color);
}

.footer-link:hover .icon,
.footer-link:hover .icon path {
  fill: var(--body-color);
  stroke: var(--body-color);
}

.footer-copy {
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--body-color);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease; /* <- duração definida aqui */
}

.accordion-item.open .accordion-content {
  max-height: 500px;
}

.whatsapp-button {
  position: fixed;
  right: var(--header-margin);
  bottom: 20px;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #488a39;
  transition: none;
  color: #fff;
  z-index: var(--z-tooltip);
}

.whatsapp-button.animate {
  transition: bottom 0.4s ease;
}

.scroll-top {
  position: absolute;
  right: calc(var(--header-margin) + 0.5rem);
  bottom: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #97a9b9;
  color: #fff;
}

.small-logo {
  position: absolute;
  top: -3px;
  right: 0;
}

.date-of-posting {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.video {
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  border-radius: 0.5rem;
}
