/* Grid fullwidth de empreendimentos da home
   ----------------------------------------- */

#empreendimentos .emp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  width: 100%;
  margin: 30px 0 0;
}

@media (min-width: 768px) {
  #empreendimentos .emp-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 260px;
  }

  /* O primeiro empreendimento ocupa 2 colunas x 2 linhas. */
  #empreendimentos .emp-card--destaque {
    grid-column: span 2;
    grid-row: span 2;
  }
}

@media (min-width: 1200px) {
  #empreendimentos .emp-grid {
    grid-auto-rows: 320px;
  }
}

#empreendimentos .emp-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  background: #111;
}

#empreendimentos .emp-card__link,
#empreendimentos .emp-card__link:hover,
#empreendimentos .emp-card__link:focus {
  display: block;
  height: 100%;
  color: #fff;
  text-decoration: none;
}

#empreendimentos .emp-card__media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#empreendimentos .emp-card__media:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .4) 45%, rgba(0, 0, 0, 0) 80%);
  transition: background 300ms ease;
}

#empreendimentos .emp-card:hover .emp-card__media:after {
  background: linear-gradient(to top, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .6) 60%, rgba(0, 0, 0, .25) 100%);
}

#empreendimentos .emp-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 700ms ease;
}

#empreendimentos .emp-card:hover .emp-card__img {
  transform: scale(1.05);
}

#empreendimentos .emp-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  padding: 24px 26px;
}

#empreendimentos .emp-card--destaque .emp-card__content {
  padding: 40px;
}

#empreendimentos .emp-card__tag {
  display: block;
  margin: 0 0 8px;
  color: #ff5b58;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .16em;
  text-transform: uppercase;
}

#empreendimentos .emp-card--destaque .emp-card__tag {
  color: #fff;
  background: #C01E1C;
  display: inline-block;
  padding: 5px 12px;
  margin-bottom: 14px;
}

#empreendimentos .emp-card__title {
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

#empreendimentos .emp-card--destaque .emp-card__title {
  font-size: 38px;
}

@media (min-width: 1200px) {
  #empreendimentos .emp-card--destaque .emp-card__title {
    font-size: 48px;
  }
}

#empreendimentos .emp-card .emp-card__infos {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.45;
}

#empreendimentos .emp-card--destaque .emp-card__infos {
  font-size: 17px;
}

#empreendimentos .emp-card__cta {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, .75);
  color: #fff;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.2;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

#empreendimentos .emp-card:hover .emp-card__cta {
  background: #fff;
  border-color: #fff;
  color: #C01E1C;
}

#empreendimentos .emp-card__cta i {
  margin-left: 8px;
}

@media (min-width: 768px) and (max-width: 1199px) {
  #empreendimentos .emp-card:not(.emp-card--destaque) .emp-card__cta {
    display: none;
  }
}
