.home-footer {
  width: 100%;
  max-width: none;
  margin: 28px 0 0;
  border-radius: 0;
  overflow: hidden;
  border: 0;
  background: linear-gradient(105deg, #041d30 0%, #07314e 55%, #0a3e61 100%);
  color: #e9f4ff;
}

.home-footer,
.home-footer * {
  box-sizing: border-box;
}

.home-footer-main {
  display: grid;
  grid-template-columns: minmax(300px, 1.2fr) repeat(4, minmax(130px, 1fr)) minmax(210px, 1.1fr);
  gap: clamp(14px, 1.4vw, 24px);
  width: min(100%, var(--page-max, 1400px));
  max-width: var(--page-max, 1400px);
  margin: 0 auto;
  padding: clamp(28px, 3.2vw, 48px) var(--page-pad, clamp(16px, 4vw, 48px)) clamp(20px, 2vw, 32px);
  align-items: start;
}

.home-footer-brand {
  max-width: 320px;
  min-width: 0;
}

.home-footer-brand-logos {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  min-width: 0;
}

.home-footer-brand-logos img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  flex: 0 1 auto;
  filter: none;
}

.home-footer-brand-logo--banclima {
  width: 156px;
  max-width: 156px;
}

.home-footer-brand-logo--terrazul {
  width: 128px;
  max-width: 128px;
  padding-left: 12px;
  border-left: 1px solid rgba(220, 238, 252, 0.5);
}

.home-footer-brand p {
  margin: 6px 0 0;
  color: rgba(228, 241, 255, 0.86);
  font-size: 0.84rem;
  line-height: 1.25;
  max-width: 300px;
}

.home-footer-title {
  margin: 0 0 8px;
  font-size: 1.02rem;
  color: #ffffff;
}

.home-footer-list,
.home-footer-contact {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 5px;
  font-size: 0.9rem;
}

.home-footer-list a {
  color: rgba(232, 245, 255, 0.92);
  text-decoration: none;
}

.home-footer-list a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.home-footer-contact li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  align-items: start;
}

.home-footer-contact__icon {
  width: 18px;
  height: 18px;
  color: #98d27e;
  margin-top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-footer-contact__icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.home-footer-copy {
  border-top: 1px solid rgba(112, 161, 196, 0.3);
  width: min(100%, var(--page-max, 1400px));
  max-width: var(--page-max, 1400px);
  margin: 0 auto;
  padding: clamp(8px, 1vw, 12px) var(--page-pad, clamp(16px, 4vw, 48px));
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: rgba(224, 240, 255, 0.84);
}

.home-footer-news p {
  margin: 0 0 6px;
  font-size: 0.84rem;
  color: rgba(232, 245, 255, 0.92);
}

.home-footer-news-form {
  display: flex;
  align-items: center;
  border: 1px solid rgba(168, 209, 239, 0.45);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.home-footer-news-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  padding: 8px 10px;
  font-size: 0.88rem;
  outline: none;
}

.home-footer-news-form input::placeholder {
  color: rgba(222, 238, 251, 0.75);
}

.home-footer-news-form button {
  border: 0;
  background: #7cd63f;
  color: #ffffff;
  width: 38px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 800;
}

@media (max-width: 1180px) {
  .home-footer-main {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    grid-template-areas:
      "brand brand nav instit"
      "suporte contato news .";
    gap: 18px;
  }

  .home-footer-brand {
    grid-area: brand;
    max-width: none;
  }

  .home-footer-main > :nth-child(2) {
    grid-area: nav;
  }

  .home-footer-main > :nth-child(3) {
    grid-area: instit;
  }

  .home-footer-main > :nth-child(4) {
    grid-area: suporte;
  }

  .home-footer-main > :nth-child(5) {
    grid-area: contato;
  }

  .home-footer-news {
    grid-area: news;
    justify-self: start;
    width: 100%;
    max-width: 440px;
  }

  .home-footer-news-form {
    max-width: 440px;
  }

  .home-footer-brand-logos {
    display: flex;
    flex-wrap: wrap;
    row-gap: 8px;
  }
}

@media (max-width: 1024px) {
  .home-footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: min(100%, var(--page-max, 1400px));
    max-width: var(--page-max, 1400px);
    padding-left: var(--page-pad, clamp(16px, 4vw, 48px));
    padding-right: var(--page-pad, clamp(16px, 4vw, 48px));
  }

  .home-footer-brand {
    grid-column: 1 / -1;
  }

  .home-footer-copy {
    width: min(100%, var(--page-max, 1400px));
    max-width: var(--page-max, 1400px);
    padding-left: var(--page-pad, clamp(16px, 4vw, 48px));
    padding-right: var(--page-pad, clamp(16px, 4vw, 48px));
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .home-footer-main {
    display: flex !important; /* vira coluna no mobile; anula as grid-area do desktop */
    flex-direction: column;
    gap: 22px;
    padding: 20px var(--page-pad, clamp(16px, 4vw, 48px));
  }

  .home-footer-main > * {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .home-footer-brand {
    max-width: none;
  }

  .home-footer-news,
  .home-footer-news-form {
    max-width: 100%;
  }

  .home-footer-copy {
    padding: 10px var(--page-pad, clamp(16px, 4vw, 48px));
    flex-direction: column;
    text-align: center;
  }
}
