/* Home Conecta e cuida: estilos exclusivos desta página. */
.conecta-home .content-shell {
  width: min(1230px, calc(100% - 48px));
}

.conecta-home .section-anchor-bar__inner {
  gap: 16px;
  padding: 14px 0;
}

.conecta-home .section-anchor-bar__brand img {
  height: 44px;
}

.conecta-home .section-anchor-bar__links {
  gap: 18px;
}

.conecta-home .section-anchor-link {
  font-size: 16px;
}

.conecta-home .hero-banner img {
  width: 100%;
  height: auto;
}

.conecta-home .home-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 120px;
  margin-top: 94px;
}

.home-intro-copy h1 {
  margin: 0 0 28px;
  color: #da291c;
  font-size: 36px;
  line-height: 1.05;
  font-weight: 700;
}

.home-intro-copy p {
  margin: 0;
  max-width: none;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.48;
}

.home-intro-copy strong {
  font-weight: 700;
}

.home-intro-copy h2 {
  margin: 125px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
}

.home-intro-image {
  width: 100%;
  height: auto;
  border-radius: 46px;
}

.conecta-home .home-topics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
}

.home-topic {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px 10px 0;
  overflow: hidden;
  border-bottom: 4px solid #e2231a;
  border-radius: 12px;
  background: #fdf4f4;
}

.home-topic-banner {
  position: relative;
}

.home-topic-banner img {
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.home-topic-heading {
  position: absolute;
  top: 24%;
  left: 3%;
  color: #fff;
}

.home-topic-heading span {
  display: block;
  font-size: clamp(8px, .85vw, 12px);
  font-weight: 700;
}

.home-topic-heading h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(14px, 1.45vw, 20px);
  line-height: 1.1;
}

.home-topic-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding: 32px 42px 44px;
}

.home-topic-body p {
  width: 100%;
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.3;
}

.home-topic-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  width: 178px;
  max-width: 100%;
  height: 52px;
  min-height: 52px;
  margin-top: auto;
  padding: 0;
  border-radius: 999px;
  color: #fff;
  background: #e2231a;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(175, 39, 47, 0.18);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.home-topic-button:hover,
.home-topic:focus-visible .home-topic-button {
  background: #AF272F;
  transform: scale(1.03);
  box-shadow: 0 16px 30px rgba(175, 39, 47, 0.24);
}

.home-topic:focus-visible,
.conecta-home .section-anchor-link:focus-visible {
  outline: 3px solid #242424;
  outline-offset: 4px;
}

.conecta-home .related-section {
  margin-top: 76px;
  margin-bottom: 44px;
}

.conecta-home .related-section h2 {
  margin: 0 0 48px;
  padding: 0;
  font-size: 36px;
}

.conecta-home .related-link {
  box-shadow: none;
  border-radius: 18px;
}

@media (max-width: 1080px) {
  .conecta-home .content-shell {
    width: calc(100% - 80px);
  }

  .conecta-home .home-intro {
    gap: 64px;
    margin-top: 64px;
  }

  .home-intro-copy h1 {
    font-size: 28px;
    margin-bottom: 22px;
  }

  .home-intro-copy p,
  .home-intro-copy h2 {
    font-size: 16px;
  }

  .home-intro-copy h2 {
    margin-top: 44px;
  }

  .home-topic-body {
    padding: 28px 28px 32px;
  }

  .home-topic-body p {
    font-size: 12px;
  }

  .conecta-home .related-section h2 {
    font-size: 28px;
  }
}

@media (max-width: 700px) {
  .conecta-home .content-shell {
    width: calc(100% - 32px);
  }

  .conecta-home .section-anchor-bar__brand img {
    height: 38px;
  }

  .conecta-home .section-anchor-bar__links {
    gap: 12px 16px;
  }

  .conecta-home .section-anchor-link {
    font-size: 14px;
  }

  .conecta-home .home-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-top: 36px;
  }

  .home-intro-copy {
    display: contents;
  }

  .home-intro-copy h1,
  .home-intro-copy p,
  .home-intro-copy h2 {
    margin: 0;
  }

  .home-intro-image {
    grid-row: 3;
    border-radius: 30px;
  }

  .conecta-home .home-topics {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-top: 20px;
  }

  .home-topic-heading span {
    font-size: clamp(9px, 2.8vw, 16px);
  }

  .home-topic-heading h3 {
    font-size: clamp(16px, 4.6vw, 28px);
  }

  .home-topic-body p {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .conecta-home .related-section {
    margin-top: 40px;
    margin-bottom: 32px;
  }

  .conecta-home .related-section h2 {
    font-size: 26px;
    margin-bottom: 24px;
  }

  .conecta-home .related-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .conecta-home .related-link {
    width: 100%;
    min-height: 132px;
  }
}
