.home-highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.highlight-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(3, 22, 15, 0.78);
  border: 1px solid rgba(112, 247, 159, 0.45);
  color: #fff;

  display: flex;
  flex-direction: column;
  min-height: 600px;
}

/* Immagine uniforme */
.highlight-image-wrap {
  height: 255px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.22);
  padding: 20px;
}

.highlight-image {
  width: 100%;
  height: 100%;
  max-width: 92%;
  max-height: 220px;
  object-fit: contain;
  transition: transform .35s ease;
}

.highlight-card:hover .highlight-image {
  transform: scale(1.06) translateY(-4px);
}

/* Badge uguale per tutte le card */
.highlight-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  padding: 8px 15px;
  border-radius: 999px;
  background: #70f79f;
  color: #06120c;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Contenuto card */
.highlight-content {
  flex: 1;
  padding: 28px 32px 32px;

  display: grid;
  grid-template-rows:
    auto      /* numero */
    minmax(92px, auto) /* titolo */
    auto      /* sottotitolo */
    minmax(42px, auto) /* tags */
    1fr       /* descrizione / spazio */
    auto;     /* prezzo */
  align-content: start;
}

.highlight-number {
  color: #70f79f;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 16px;
}

.highlight-title {
  margin: 0;
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.05;
  font-weight: 650;
  letter-spacing: -0.04em;
  color: #fff;
}

.highlight-subtitle {
  color: #70f79f;
  font-size: 17px;
  line-height: 1.3;
  margin: 18px 0 0;
}

.highlight-tags {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 7px;
  margin: 18px 0 0;
}

.highlight-tags span {
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(112, 247, 159, 0.42);
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(8px);
  font-size: 12px;
  line-height: 1;
}

.highlight-footer {
  display: block;
  margin-top: 24px;
}

.highlight-description {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.55;
  opacity: .78;
}

.highlight-value {
  display: block;
  color: #70f79f;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.highlight-description {
  display: none;
}

@media (max-width: 1024px) {
  .home-highlights-grid {
    grid-template-columns: repeat(3, 1fr);
  }
.highlight-image {
  max-width: 86%;
  max-height: 250px;
  transition: transform .35s ease;
  object-fit: contain;
}
.highlight-card {
  min-height: 500px;
}
}

@media (max-width: 560px) {
  .home-highlights-grid {
    grid-template-columns: 1fr;
  }
  
  /* Contenuto card */
.highlight-content {
  flex: 1;
  padding: 28px 32px 32px;

  display: grid;
  grid-template-rows:
    auto      /* numero */
    minmax(52px, auto) /* titolo */
    auto      /* sottotitolo */
    minmax(32px, auto) /* tags */
    1fr       /* descrizione / spazio */
    auto;     /* prezzo */
  align-content: start;
}
.highlight-image {
  max-width: 86%;
  max-height:220px;
  transition: transform .35s ease;
  object-fit: contain;
}

.highlight-card {
  min-height: 500px;
}
}



/* LAYOUT SEZIONE DINAMICA */

/* SEZIONE DINAMICA VETRINE HOME - HEADER */

.home-highlights-section {
  position: relative;
  overflow: hidden;
 
  color: #fff;
}

.home-highlights-header {
  position: relative;
  max-width: 1200px;
  margin: 0 auto clamp(60px, 5vw, 85px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Titolo grande outline tipo GIN ROOM */
.home-highlights-bg-title {
  position: relative;
  z-index: 1;

  margin: 0 0 -12px;

  font-family: "Poppins", Sans-serif;
  font-size: clamp(5rem, 6.8vw, 7.5rem);
  font-weight: 600;
  line-height: 1.2em;
  letter-spacing: 0;
  text-transform: uppercase;

  color: transparent;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: rgba(123, 249, 165, 0.46);

  opacity: 1;
}

/* Titolo principale */
.home-highlights-main-title {
  position: relative;
  z-index: 2;

  max-width: 1040px;
  margin: 0 auto;

  font-family: "Poppins", Sans-serif;
  font-size: clamp(2.5rem, 3.5vw, 3rem);
  font-weight: 600;
  line-height: 1.2em;
  letter-spacing: 0;
  text-transform: none;

  color: var(--e-global-color-secondary, #f4f4f4);

  /* utile se nel campo ACF vai a capo */
  white-space: pre-line;
}

/* Parola evidenziata nel sottotitolo */
.home-highlights-main-title .highlight-accent,
.highlight-accent {
  color: var(--e-global-color-accent, #70f79f);
  font-style: italic;
 }

/* Testo info grigio */
.home-highlights-intro {
  position: relative;
  z-index: 2;

  max-width: 35%;
  margin: 34px auto 0;

  font-family: "Poppins", Sans-serif;
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.5em;
  letter-spacing: 0;
  text-align: center;

  color: var(--e-global-color-f9e4a66, rgba(255, 255, 255, 0.62));
}

/* Titolo sopra le card */
.home-highlights-card-title {
  max-width: 1180px;
  margin: 0 auto 34px;

  font-family: "Poppins", Sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2em;
  letter-spacing: 0;
  text-transform: uppercase;
  text-align: center;

  color: var(--e-global-color-accent, #70f79f);
}

.home-highlights-grid {
  position: relative;
  z-index: 3;
}


@media (max-width: 1024px) {
  .home-highlights-intro {
    max-width: 68%;
  }
}

@media (max-width: 767px) {
  .home-highlights-section {
    padding: 0;
  }

  .home-highlights-header {
    margin-bottom: 62px;
  }

  .home-highlights-bg-title {
    margin-bottom: -10px;
    font-size: clamp(3.8rem, 18vw, 5.6rem);
    line-height: 1em;
    -webkit-text-stroke-color: rgba(123, 249, 165, 0.38);
  }

  .home-highlights-main-title {
    font-size: clamp(2rem, 6.5vw, 3.2rem);
    line-height: 1.12em;
    letter-spacing: -0.03em;
  }

  .home-highlights-intro {
    max-width: 92%;
    margin-top: 24px;
    font-size: 1rem;
    line-height: 1.55em;
  }

  .home-highlights-card-title {
    margin-bottom: 26px;
    font-size: 1.05rem;
    line-height: 1.28em;
  }
}
