/* IMMOROSSI homepage references: clean property image and green success accent. */
.im-home-entry a.im-home-reference-teaser,
.im-home-entry a.im-home-reference-teaser:visited {
  --im-reference-green: #2f7553;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  grid-template-areas: "copy photo";
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  margin: 26px 0 24px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d7e5dc;
  border-radius: 14px;
  background: #f7fbf8;
  color: #18251d;
  text-decoration: none;
  box-shadow: 0 8px 26px rgba(31, 60, 42, .055);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.im-home-entry .im-home-reference-teaser__media {
  grid-area: photo;
  position: relative;
  display: block;
  min-width: 0;
  min-height: 220px;
  overflow: hidden;
  background: #edf7f0;
}
.im-home-entry img.im-home-reference-teaser__photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: 50% 50%;
  filter: none;
}
.im-home-entry .im-home-reference-teaser__copy {
  grid-area: copy;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: clamp(20px, 2vw, 30px);
}
.im-home-entry .im-home-reference-teaser__eyebrow {
  display: block;
  margin: 0 0 10px;
  color: var(--im-reference-green);
  font-family: inherit;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.im-home-entry .im-home-reference-teaser__title {
  display: block;
  margin: 0;
  color: #18251d;
  font-family: inherit;
  font-size: clamp(21px, 1.9vw, 28px);
  font-weight: 750;
  line-height: 1.16;
  letter-spacing: -.025em;
  overflow-wrap: normal;
}
.im-home-entry .im-home-reference-teaser__description {
  display: block;
  margin: 12px 0 0;
  color: #58665d;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}
.im-home-entry .im-home-reference-teaser__action {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 20px;
  color: var(--im-reference-green);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}
.im-home-entry .im-home-reference-teaser__arrow {
  display: inline-flex;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: auto;
  border-radius: 50%;
  background: #e4f1e9;
  color: var(--im-reference-green);
  font-size: 23px;
  font-weight: 400;
  line-height: 1;
}
.im-home-entry a.im-home-reference-teaser:focus-visible {
  outline: 3px solid #2f7553;
  outline-offset: 4px;
}
@media (hover: hover) {
  .im-home-entry a.im-home-reference-teaser:hover {
    border-color: #9ebda9;
    background: #edf7f0;
    box-shadow: 0 12px 30px rgba(31, 60, 42, .10);
  }
}
@media (max-width: 780px) {
  .im-home-entry a.im-home-reference-teaser {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "photo" "copy";
    margin: 24px 0 25px;
    border-radius: 13px;
  }
  .im-home-entry .im-home-reference-teaser__media {
    min-height: 0;
    aspect-ratio: 3 / 2;
  }
  .im-home-entry .im-home-reference-teaser__copy {
    padding: 21px 21px 22px;
  }
  .im-home-entry .im-home-reference-teaser__eyebrow {
    margin-bottom: 9px;
  }
  .im-home-entry .im-home-reference-teaser__title {
    max-width: 22ch;
    font-size: clamp(23px, 5.8vw, 30px);
    line-height: 1.15;
  }
  .im-home-entry .im-home-reference-teaser__description {
    max-width: 42ch;
    margin-top: 11px;
    font-size: 15px;
    line-height: 1.55;
  }
  .im-home-entry .im-home-reference-teaser__action {
    margin-top: 17px;
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .im-home-entry a.im-home-reference-teaser {
    transition: none;
  }
}
