/* ==========================================================================
   7Bens Consórcios — seções de conteúdo reutilizadas (início e segurança):
   hero, blocos imagem + texto, formas decorativas e cartões de "tipos"
   ========================================================================== */

/* ---------- Hero ---------- */
.home {
  position: relative;
  height: 100vh;
  padding-top: 200px;
  margin-bottom: 4rem;
  overflow-x: hidden;
}
.home .container { display: grid; grid-template-columns: repeat(2, 1fr); }
.home-conteudo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-left: 4rem;
}
.home-conteudo .titulo {
  margin-bottom: 2rem;
  color: var(--escuro);
  font-weight: 400;
  line-height: 1.2;
  font-size: 4rem;
}
.home-conteudo .titulo strong { font-weight: 700; }
.home-conteudo .descricao {
  max-width: 75%;
  margin-bottom: 5rem;
  line-height: 1.5;
  font-size: 2rem;
}
.home-conteudo .btn {
  padding: 1.5rem 4.5rem;
  font-size: 1.5rem;
  animation: heartbeat 1.5s ease-in-out infinite;
}
.home-conteudo .btn:hover { animation: none; }

.home-imagem {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 6rem;
}
.home-imagem-principal { width: 605px; height: auto; }
.home-imagem .tube-small {
  position: absolute;
  bottom: 140px;
  left: -215px;
  z-index: 0;
  width: 305px;
  height: 305px;
}
.home .tube-medium-1,
.home .tube-medium-2 { position: absolute; z-index: 0; }
.home .tube-medium-1 { top: -67%; left: 30%; width: 960px; height: 960px; }
.home .tube-medium-2 { top: -45%; right: -33%; width: 1040px; height: 1040px; }

/* ---------- Bloco imagem + texto ---------- */
.section { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 5rem; }
.section-imagem { position: relative; z-index: 1; }
.section-imagem img { width: 100%; height: auto; }
.section-conteudo {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-left: 6rem;
}
.section-conteudo .titulo { margin-bottom: 1.5rem; line-height: 1.2; text-align: right; }
.section-conteudo .titulo .alinhamento { display: block; margin-right: -10%; }
.section-conteudo .descricao { margin-bottom: 3rem; line-height: 1.5; }

/* ---------- Formas decorativas ---------- */
.consorcio--carro,
.consorcio--familia { position: relative; }
.tube-filled-car {
  position: absolute;
  top: -24rem;
  left: -60%;
  z-index: 0;
  width: 100%;
  height: auto;
}
.tube-filled-family {
  position: absolute;
  right: -70%;
  bottom: -18rem;
  z-index: 0;
  width: 100%;
  height: auto;
}
.consorcio--imovel { position: relative; padding-top: 5rem; overflow: hidden; }
.consorcio--imovel .ball {
  position: absolute;
  top: -6rem;
  left: -20%;
  z-index: 0;
  width: 690px;
  height: 690px;
}
.consorcio--imovel .section-imagem img { width: 90%; }

/* ---------- Cartões de tipos (página Segurança) ---------- */
.tipos-conteudo { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 3rem; }
.tipo { border-radius: 20px 0 0 20px; }
.tipo:hover { cursor: pointer; }
.tipo-imagem {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 70%;
  margin-bottom: 2rem;
  overflow: hidden;
  border-radius: 20px;
}
.tipo:hover .tipo-imagem { box-shadow: 2px 2px 5px rgba(0, 0, 0, .32); }
.tipo-imagem img { position: absolute; top: 0; left: 15%; transition: 300ms ease; }
.tipo:hover .tipo-imagem img { transform: scale(1.2); }
.tipo h3 {
  margin-bottom: 2.5rem;
  color: var(--ouro);
  font-weight: 700;
  line-height: 1.2;
  font-size: 2rem;
  text-align: center;
}
.tipo p {
  color: #000;
  font-weight: 300;
  line-height: 1.6;
  font-size: 1.5rem;
  text-align: center;
}

/* ---------- Ajustes por largura ---------- */
@media (max-width: 1681px) {
  .home { height: 100vh; padding-top: 160px; padding-bottom: 0; }
  .home-conteudo { padding-top: 2rem; }
  .home-conteudo .titulo { font-size: 3.5rem; }
  .home-conteudo .descricao { font-size: 1.625rem; }
  .home-imagem-principal { width: 500px; height: auto; }
  .home-imagem .tube-small { bottom: 120px; left: -140px; width: 220px; height: 220px; }
  .home .tube-medium-1 { left: 33%; width: 820px; height: 820px; }
  .home .tube-medium-2 { width: 920px; height: 920px; }
  .consorcio--imovel .ball { width: 590px; height: 590px; }
  .tipo h3 { margin-bottom: 2rem; font-size: 1.75rem; }
  .tipo p { font-size: 1.25rem; }
}
@media (max-width: 1441px) {
  .home-conteudo { padding-top: 0; }
  .home-conteudo .titulo { margin-bottom: 1.5rem; font-size: 3rem; }
  .home-conteudo .descricao { margin-bottom: 4rem; font-size: 1.5rem; }
  .home-conteudo .btn { padding: 1rem 3.5rem; font-size: 1.125rem; }
  .home-imagem-principal { width: 400px; height: 495px; }
  .home-imagem .tube-small { bottom: 120px; left: -60px; width: 170px; height: 170px; }
  .home .tube-medium-1 { left: 33%; width: 690px; height: 690px; }
  .home .tube-medium-2 { width: 800px; height: 800px; }
  .section-conteudo .btn { max-width: 250px; }
  .tube-filled-car { top: -19rem; left: -55%; width: 90%; }
  .tube-filled-family { right: -60%; bottom: -10rem; width: 90%; }
  /* o site original usa largura 500px com altura herdada de 590px nesta faixa */
  .consorcio--imovel .ball { width: 500px; height: 590px; }
  .tipo-imagem { margin-bottom: 1.5rem; }
  .tipo h3 { margin-bottom: 1rem; font-size: 1.5rem; }
  .tipo p { font-size: 1rem; }
}
@media (max-width: 1100px) {
  .home { padding-top: 110px; }
  .home-conteudo { padding: 0; }
  .home-conteudo .titulo { margin-bottom: 1rem; font-size: 2.5rem; }
  .home-conteudo .titulo strong { display: block; }
  .home-imagem { padding: 0; }
  .consorcio--imovel .ball { width: 420px; height: 420px; }
  .tipo h3 { font-size: 1.125rem; }
  .tipo p { font-size: .875rem; }
}
@media (max-width: 1024px) {
  .home .tube-medium-1,
  .home .tube-medium-2 { display: none; }
  .home-imagem .tube-small { bottom: 170px; left: -60px; width: 130px; height: 130px; }
}
@media (max-width: 978px) {
  .home .container { grid-template-columns: 1fr; }
  .home-conteudo { align-items: center; margin-bottom: 3.5rem; }
  .home-imagem { justify-content: center; }
  .section-conteudo { padding-left: 3rem; }
  .tipos-conteudo { column-gap: 1.5rem; }
}
@media (max-width: 768px) {
  .section { grid-template-columns: 1fr; }
  .consorcio--familia { overflow-x: hidden; }
  .tipos-conteudo { grid-template-columns: 1fr; column-gap: 0; row-gap: 2.5rem; }
  .home-conteudo { align-items: flex-start; }
}
