/* CSS específico das páginas de agradecimento e particular (grazie-1/grazie-2, /particular, /particular-if) */

/* ---- Animações ---- */

@keyframes checkPop {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  60% {
    opacity: 1;
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ty-icon,
  .ty-icon img {
    animation: none !important;
  }
}

/* ---- Card ---- */

.ty-card {
  width: 65%;
  margin: 0 auto;
  padding: 50px 40px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0px 0px 20px 5px #ebeefa;
  text-align: center;
}

.ty-icon {
  width: 90px;
  margin: 0 auto;
  animation: checkPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.ty-icon img {
  width: 100%;
  animation: fadeIn 0.4s ease 0.25s both;
}

.ty-divider {
  border: none;
  border-top: 1.5px solid var(--blue);
  margin: 30px 0;
}

.ty-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: left;
}

.ty-secondary-icon img {
  width: 50px;
}

.ty-secondary-content h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 5px 0;
}

.ty-secondary-content p {
  font-size: 15px;
  line-height: 1.2;
  color: var(--black);
  margin: 0;
}

@media only screen and (max-width: 991px) {
  .ty-card {
    width: 100%;
  }

  .ty-secondary {
    flex-direction: column;
    text-align: center;
  }
}

@media only screen and (max-width: 767px) {
  .ty-card {
    padding: 30px;
  }
}

/* ---- Ofertas (carrossel) ---- */

.offerwall {
  padding: 50px 0;
}

.offerwall .row {
  padding-bottom: 20px;
}

.offerwall-title {
  text-align: center;
}

.offerwall-title h3 {
  color: var(--blue);
  font-weight: 700;
  font-size: 32px;
  margin: 0 auto 10px auto;
}

.offerwall-title h3 span {
  background: var(--backgradient);
}

.offerwall-title p {
  font-size: 18px;
  line-height: 1.2;
  color: var(--black);
}

.offerwall-box {
  background: var(--lightgrey);
  border-radius: 30px;
  padding: 40px 0 20px;
}

.offerwall-status {
  width: 100%;
  text-align: center;
  color: var(--black);
  font-size: 14px;
  padding: 40px 20px;
  margin: 0;
}

.offerwall-viewport {
  position: relative;
  width: 100%;
}

.offerwall-viewport::before,
.offerwall-viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30px;
  z-index: 2;
  pointer-events: none;
}

.offerwall-viewport::before {
  left: 0;
  background: linear-gradient(
    to right,
    var(--lightgrey) 0%,
    rgba(245, 247, 255, 0) 100%
  );
}

.offerwall-viewport::after {
  right: 0;
  background: linear-gradient(
    to left,
    var(--lightgrey) 0%,
    rgba(245, 247, 255, 0) 100%
  );
}

.offerwall-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0px 0px 10px 2px #ebeefa;
  cursor: pointer;
  transition: all 0.3s ease-in;
}

.offerwall-nav img {
  filter: brightness(0) invert(1);
}

.offerwall-nav:hover {
  transform: translateY(-50%) scale(1.1);
  background: var(--gradient);
}

.offerwall-nav.swiper-button-disabled {
  opacity: 0;
  pointer-events: none;
}

.offerwall-nav--prev {
  left: 10px;
}

.offerwall-nav--prev img {
  transform: rotate(90deg);
}

.offerwall-nav--next {
  right: 10px;
}

.offerwall-nav--next img {
  transform: rotate(-90deg);
}

.offerwall-slider {
  padding: 10px 60px 30px;
}

.offerwall-slider .swiper-wrapper {
  align-items: stretch;
}

.offerwall-slider .swiper-slide {
  width: 260px;
  height: auto;
  cursor: grab;
}

.offer-card {
  height: 100%;
  min-height: 300px;
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0px 0px 10px 2px #ebeefa;
  padding: 25px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.offer-card__icon {
  width: 90px;
  height: 90px;
  object-fit: contain;
}

.offer-card__title {
  font-weight: 700;
  font-size: 18px;
  color: var(--blue);
  margin: 0;
  line-height: 1.1;
}

.offer-card__desc {
  font-size: 14px;
  line-height: 1.2;
  color: var(--black);
  margin: 0;
  flex: 1;
}

.offer-card__link {
  display: inline-block;
  width: 100%;
  height: 45px;
  line-height: 45px;
  border-radius: 10px;
  background: var(--pink);
  border: none;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: var(--white);
  transition: all 0.3s ease-in;
}

.offer-card__link:hover {
  transform: scale(1.05);
  color: var(--white);
  background: var(--gradient);
}

@media only screen and (max-width: 767px) {
  .offerwall-box {
    border-radius: 20px;
    padding: 24px 0 15px;
  }

  .offerwall-slider {
    padding: 10px 45px 30px;
  }

  .offerwall-slider .swiper-slide {
    width: 220px;
  }

  .offerwall-nav {
    width: 36px;
    height: 36px;
  }
}
