.overlay-text,
.overlay-button {
  font-family: "Globo Texto";
}

.custom-overlay-widget {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  justify-items: center;
}

.overlay-item {
  justify-content: center;
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 430px;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.4) 5px 10px 30px -15px;
  transition: transform 0.3s ease;
  background-size: cover !important;
  background-position: center center;
  background-repeat: no-repeat;
  border-radius: 7px;
  border-bottom-width: 3px;
  border-bottom-style: solid;
}

.overlay-content {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 80px;
  background-color: #fff;
  color: #000;
  text-align: center;
  padding: 20px;
  transition: height 0.5s ease, padding 0.5s ease, justify-content 0.5s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1;
  border-top-right-radius: 7px;
  border-top-left-radius: 7px;  
}

.content-point {
  width: 0;
  height: 0;
}

.overlay-logo {
  max-width: 140px !important;
  margin: 0 auto 10px;
  z-index: 2;
}

.overlay-text {
  margin-bottom: 0 !important;
  padding-top: 5px;
  z-index: 2;
  font-size: 18px !important;
}

.overlay-buttons {
  opacity: 0;
  height: 0;
  width: 85%;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  display: flex;
  flex-direction: column;
}

.overlay-button {
  color: #253178 !important;
  font-weight: 600;
  font-size: 16px;
  padding: 10px;
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
  border-top: #253178 solid 1px;
}

.overlay-item:hover .overlay-content {
  height: 100%;
  padding: 30px 20px 0 20px;
  justify-content: flex-start;
}

.overlay-item:hover .overlay-buttons {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
  margin-top: 15px;
}

.overlay-item:hover .overlay-button {
  opacity: 1;
  transform: translateY(0);
}
.overlay-item:hover .overlay-button:last-child {
  border-bottom: #253178 solid 1px;
}

.overlay-item:hover .overlay-button:nth-child(1) {
  transition-delay: 0.7s;
}

.overlay-item:hover .overlay-button:nth-child(2) {
  transition-delay: 0.8s;
}

.overlay-item:hover .overlay-button:nth-child(3) {
  transition-delay: 0.9s;
}

.overlay-content {
  transition: height 0.5s ease, padding 0.5s ease, justify-content 0.5s ease;
}

.overlay-buttons,
.overlay-button {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.overlay-content > * {
  position: relative;
  z-index: 2;
}

@media (max-width: 1024px) {
  .custom-overlay-widget {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .custom-overlay-widget {
    grid-template-columns: repeat(1, 1fr);
  }
}

.logo-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0 auto 10px;
  border-radius: 50%;
}

.overlay-arrow {
  width: 22px;
  height: 22px;
  transition: all 0.3s ease;
  opacity: 1;
}

.overlay-logo {
  display: none;
  opacity: 0;
  transition: all 0.3s ease;
  width: 0;
  height: 0;
}

.overlay-item:hover .overlay-arrow {
  opacity: 0;
  width: 0;
  height: 0;
}

.overlay-item:hover .logo-container {
  background-color: none !important;
  width: 0;
}

.overlay-item:hover .overlay-logo {
  display: block;
  opacity: 1;
  width: auto;
  height: auto;
}
