:root {
  --blog-purple: #5f24d6;
  --blog-dark: #000;
  --blog-tear-height: clamp(90px, 14vw, 170px);
}

.blog-page {
  background: var(--blog-dark);
  color: var(--white);
  margin-bottom: 10%;
}

.blog-hero {
  position: relative;
  min-height: clamp(360px, 48vw, 620px);
  padding: clamp(6rem, 14vw, 9rem) 0 clamp(7rem, 18vw, 11rem);
  background: var(--blog-dark);
}

.blog-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.blog-hero__title {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 40%);
  width: min(460px, 78vw);
  z-index: 6;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.5));
  pointer-events: none;
}

.blog-entry {
  position: relative;
  background: transparent url("../assets/blog/strappo%20di%20sopra%20PICCOLO.png")
    center / 100% 100% no-repeat;
  padding: clamp(5rem, 12vw, 8rem) 0;
  overflow: hidden;
  z-index: 2;
}

.blog-entry::before,
.blog-entry::after {
  content: none;
}

.blog-entry--first {
  margin-top: clamp(-240px, -18vw, -150px);
  padding-top: clamp(7.5rem, 18vw, 11rem);
}

.blog-entry__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(240px, 1fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
  transform: translate(0px, 28%);
}

.blog-entry__media {
  display: flex;
  justify-content: end;
}

.blog-entry__card {
  width: clamp(220px, 28vw, 360px);
  height: auto;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.45));
  transform: rotate(-2deg);
}

.blog-entry--alt .blog-entry__card {
  transform: rotate(2deg);
}

.blog-entry__info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.blog-entry__title {
  margin: 0;
  font-family: "Nexa Bold", "Trebuchet MS", sans-serif;
  font-size: clamp(1.2rem, 2.4vw, 1.3rem);
}

.blog-entry__text {
  margin: 0;
  font-family: "Nexa Extra Light", "Trebuchet MS", sans-serif;
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  max-width: 420px;
}

.blog-entry__full {
  margin-top: 1rem;
  max-width: 520px;
  font-family: "Nexa Extra Light", "Trebuchet MS", sans-serif;
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  color: #f2f2f2;
}

.blog-entry__full h1,
.blog-entry__full h2,
.blog-entry__full h3 {
  margin: 1.2rem 0 0.6rem;
  font-family: "MAIAN", "Trebuchet MS", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blog-entry__full p {
  margin: 0 0 0.9rem;
}

.blog-entry__full img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0.75rem 0;
  border-radius: 12px;
}

.blog-entry__cta {
  display: inline-block;
  transform: translateY(-25%);
}

.blog-entry__cta img {
  width: clamp(120px, 18vw, 150px);
  height: auto;
  transition: transform 0.2s ease;
}

.blog-entry__cta:hover img,
.blog-entry__cta:focus-visible img {
  content: url("../assets/blog/tasto%20leggi%20hover.png");
  transform: translateY(-2px);
}

@media (hover: none) and (pointer: coarse) {
  .blog-entry__cta:hover img {
    content: unset;
    transform: none;
  }
}

.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin: 2.5rem 0 4rem;
  flex-wrap: wrap;
  font-family: "MAIAN", "Trebuchet MS", sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.blog-pagination__link {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.blog-pagination__link:hover,
.blog-pagination__link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--yellow);
}

.blog-pagination__link.is-active {
  background: rgba(248, 255, 51, 0.18);
  border-color: var(--yellow);
  color: var(--white);
}

.blog-pagination__link.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .blog-entry--first {
    margin-top: -21vw;
  }
}


@media (max-width: 767px) {

  .blog-entry--alt .blog-entry__card{
    transform: translateX(10px) rotate(0);
  }

  .blog-entry__cta img{
    transform: translateY(-7vw);
  }

  .blog-entry__cta:hover img{
    transform: translateY(-7vw);
  }

  .blog-entry{
    background: transparent url(../assets/strappo-sopra-largo.png) center / 100% 100% no-repeat;
  }

  .blog-entry__media {
    justify-content: center;
  }

  .blog-hero {
    padding: clamp(5rem, 16vw, 8rem) 0 clamp(8rem, 20vw, 12rem);
  }

  .blog-hero__title {
    transform: translate(-50%, 35%);
    width: min(300px, 80vw);
  }

  .blog-entry__inner {
    grid-template-columns: 1fr;
    text-align: center;
    transform: translate(0px, 15%);
  }

  .blog-entry__info {
    align-items: center;
    transform: translateY(-20%);
  }
}

@media (min-width: 900px) and (max-width: 1024px) {
  .blog-entry--first {
    margin-top: -22vw;
  }
}

@media (max-width: 600px) {
  .blog-entry--first {
    margin-top: -38vw;
  }

  .blog-entry__card {
    width: clamp(220px, 70vw, 320px);
    transform: translateX(10px) rotate(0);
  }
}
