.guide-hp-page {
  min-height: 100vh;
  padding: 2rem 1rem 3rem;
  background-image: url("/assets/guide/guida-hp/carta%20colorata.jpg.jpeg");
  background-repeat: repeat;
  background-position: top left;
  background-size: 100vw 100vh;
}

.guide-hp-shell {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.guide-hp-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 1.2rem;
}

.guide-hp-intro h1 {
  color: #ffffff;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

.guide-hp-intro p {
  color: #f5f9fb;
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  line-height: 1.45;
}

.guide-hp-intro-image {
  margin: 0;
}

.guide-hp-intro-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  background: #ffffff;
}

.guide-hp-rubrica {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.guide-hp-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 64px;
  padding: 0.8rem;
  border-radius: 12px;
  text-decoration: none;
  background: #ffffff;
  color: #1c475a;
  font-weight: 600;
  border: 2px solid #1c475a;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.guide-hp-link:hover {
  transform: translateY(-2px);
  background: #1c475a;
  color: #ffffff;
}

.guide-hp-gallery {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.guide-hp-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  background: #ffffff;
}

.guide-hp-shell--detail {
  gap: 1rem;
}

.guide-hp-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  width: fit-content;
}

.guide-hp-back:hover {
  text-decoration: underline;
}

.guide-hp-detail-header h1 {
  color: #ffffff;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin: 0;
}

.guide-hp-detail-header p {
  color: #f5f9fb;
  margin: 0.6rem 0 0;
  font-size: clamp(1rem, 1.8vw, 1.1rem);
}

.guide-hp-detail-media {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.guide-hp-detail-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

@media (min-width: 900.1px) {
  .guide-hp-detail-media img:nth-child(even):not(:nth-child(2)) {
    padding-top: 4rem;
  }

  .guide-hp-detail-media img:nth-child(3),
  .guide-hp-detail-media img:nth-child(4) {
    margin-top: 2.5rem;
  }
}

@media (max-width: 900px) {
  .guide-hp-intro {
    grid-template-columns: 1fr;
  }

  .guide-hp-rubrica {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-hp-gallery {
    grid-template-columns: 1fr;
  }

  .guide-hp-detail-media {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .guide-hp-rubrica {
    grid-template-columns: 1fr;
  }
}
