.Card-segmento {
  position: relative;
  display: block;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 357/320;

  &:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.6) 0%,
      rgba(0, 0, 0, 0) 100%
    );
    transition: all 0.3s ease-in;
  }

  &:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.8) 100%
    );
    opacity: 0;
    transition: all 0.3s ease-in;
  }

  img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  h3 {
    position: absolute;
    z-index: 1;
    bottom: 48px;
    left: 50%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    white-space: nowrap;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    transform: translateX(-50%);
    transition: all 0.3s ease-in;

    i {
      font-size: 24px;
      color: #fff;
    }
  }

  span {
    position: absolute;
    z-index: 1;
    bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    color: #42cf7b;
    opacity: 0;
    transition: all 0.3s ease-in;
  }

  &:hover {
    h3 {
      bottom: 80px;
    }

    span {
      opacity: 1;
      bottom: 35px;
    }

    &:after {
      opacity: 0;
    }

    &:before {
      opacity: 1;
    }
  }

  @media screen and (max-width: $md) {
    h3 {
      font-size: 18px;
    }
  }
}
