/* ========== RESET GLOBAL ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Proxima Nova", sans-serif;
  line-height: 1.5;
  color: #157762;
}

/* ========== UTILITÁRIOS ========== */

/* ========== HOME 1 ========== */
.home-1,
.home-1-es {
  position: relative;
  display: flex;
  padding: 2vw 5vw;
  align-items: center;
  min-height: 100vh;
  background: url("../images/img1.png") center center / cover no-repeat;
}

.overlay-text-1 {
  max-width: 550px;
}

.overlay-text-es {
  max-width: 600px;
}

.overlay-text-2 {
  max-width: 800px;
}

.overlay-text h1 {
  margin: 0;
  line-height: 1.1;
}

.home-1 h1,
.home-1-es h1 {
  font-size: 70px;
}

.home-1 p,
.home-1-es p {
  font-size: 20px;
}

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

.home-2 {
  position: relative;
  display: flex;
  align-items: center;
  padding: 2vw 5vw;
  min-height: 100vh;
  background: url("../images/img-bk.png") center center / cover no-repeat;
}

.icons-intern {
  display: flex;
  align-items: center;
  gap: 20px;
}

.home-2 h1 {
  font-size: 70px;
  /* font-size: clamp(2rem, 6vw, 3.5rem); */
}
.home-2 p {
  font-size: 20px;
}

.width-p {
  width: 80%;
}

.icons-home-2 {
  margin-top: 50px;
  margin-bottom: 50px;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.twb {
  width: 220px;
}

.icons {
  width: 120px;
}

/* ========== HOME 3 ========== */
.home-3 {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 90vh;
  overflow: hidden;
  color: #fff;
}

.home-3 .background-overlay {
  position: absolute;
  inset: 0;
  background: url("../images/img3.png") center center / cover no-repeat;
  z-index: 1;
  background-color: #0f6b59;
  /* modo de mistura (tinta + foto) */
  background-blend-mode: multiply;
}

.home-3 .overlay-text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
}

.home-3 .text-content {
  text-align: center;
}

.home-3 .text-content h2 {
  font-size: 50px;
  color: #fff;
}

.home-3 .text-content p {
  color: #fff;
  font-size: 23px;
}

.home-3 h2,
.home-3 p {
  padding: 0.5rem 0;
}

.flip-card {
  perspective: 1000px;
  /* mantém o mesmo tamanho dos seus .circle */
  width: clamp(220px, 20vw, 220px);
  height: clamp(220px, 20vw, 220px);
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-inner {
  transform: rotateY(180deg);
}

/* 4) faces front/back */
.flip-front,
.flip-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden; /* esconde o verso quando não está virado */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.flip-front {
  background-color: #157762;
  color: #fff;
}

.flip-back {
  justify-items: center;
  transform: rotateY(180deg);
  background-color: #fff; /* ajuste conforme seu design */
  color: #15754e; /* texto verde */
  padding: 1rem; /* espaço interno */
  box-sizing: border-box;
  text-align: center;
  font-size: 13px;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 9;
  -webkit-box-orient: vertical;
}

.circle-container {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  gap: 3rem;
}

.circle-container-gap {
  margin-top: 50px;
}
.block {
  display: flex;
  flex-direction: row;
  gap: 3rem;
}
.circle {
  width: clamp(220px, 20vw, 220px);
  height: clamp(220px, 20vw, 220px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  font-size: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.circle1,
.circle2,
.circle3 {
  background-color: #157762;
  color: #fff;
}

.circle-back {
  font-size: 50px;
  background-color: #157762;
  color: #fff;
}

.circle-container,
.block {
  flex-direction: row;
}

.circle4 {
  background-color: #ffffff;
  color: #15754e;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
  font-size: 14px;
  line-height: 1.3;
  width: clamp(220px, 20vw, 220px);
  height: clamp(220px, 20vw, 220px);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  word-break: break-word;
}

.p {
  border: 2px solid blue;
}

.home-3 .circle4 p {
  color: #15754e;
  margin: 0;
  padding: 0;
  font-size: clamp(0.75rem, 1.2vw, 0.9rem);
  line-height: 1.3;
  text-align: center;
  max-width: 90%;
  max-height: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 9;
  -webkit-box-orient: vertical;
}

/* ========== HOME 4 ========== */
.home-4 {
  padding: 2vw 5vw;
  background-color: #cbd8cf;
}

#sidwickCarousel {
  overflow: visible;
  position: relative;
}

.home-4 h2 {
  font-size: 50px;
}

.home-4 {
  padding-top: 80px;
  padding-bottom: 80px;
}

.carousel-item {
  margin-top: 30px;
}

.cards-grid {
  display: grid;
  /* 3 colunas, mas cada uma nunca menor que 260px e cresce igualitária */
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem; /* espaçamento entre cards */
  max-width: 1200px;
  margin: 0 auto; /* centraliza na página */
}

.card {
  background: #ffffff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card img {
  display: block;
  width: 100%;
  height: 180px;
  border-radius: 0 0 15px 15px;
  object-fit: cover;
  border-bottom: 1px solid #ddd;
}

.card h3 {
  font-weight: bold;
  margin: 1rem;
  color: #157762;
  font-size: 1.5rem;
}

.card p {
  margin: 0 1rem 1.5rem;
  line-height: 1.6;
  color: #157762;
  font-size: 20px;
}

.cards-grid .card h3 {
  position: relative;
}

/* ========== HOME 5 ========== */
.home-5 {
  background: white;
  padding: 0 5vw;
}
.home-5 h2 {
  font-size: 50px;
}

.overlay-text-2 {
  padding-top: 50px;
}
.gallery {
  padding: 50px 0 50px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5rem;
}

.gallery img {
  width: 200px;
}

.gallery-2 {
  padding: 50px 0 50px;
  background-color: #ffff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

.gallery-2 img {
  width: 150px;
}

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

@media (max-width: 1270px) {
  .home-2 {
    background-image: none;
    background-color: #ffffff;
  }
}

@media (max-width: 768px) {
  .home-2 .highlight {
    color: #157762;
    display: inline;
    border-radius: 2px;
  }
  .cards-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
  }

  .text-logo {
    flex-direction: column;
    justify-items: start;
  }
}

@media (max-width: 520px) {
  .home-1 h1,
  .home-1-es h1,
  .home-2 h1 {
    font-size: 60px;
  }

  .home-1,
  .home-2 {
    padding: 8rem 1rem;
  }

.icons-intern {
  flex-direction: column; /* um ícone embaixo do outro */
  gap: 30px;
  margin: auto;
}

.circle-container,
.block {
  flex-direction: column;
}
}

@media (max-width: 620px) {
  .home-1-es {
    padding: 7rem 1rem;
  }
}

@media (max-width: 560px) {
  .home-1-es {
    padding: 2rem 1rem;
  }
}
