/* EPOS Magazine — card responsive e titoli senza tagli */
.epm-home-sections .epm-home-section .epm-grid,
.epm-home-sections .epm-home-section .epm-card,
.epm-home-sections .epm-home-section .epm-card > a,
.epm-home-sections .epm-home-section .epm-card__inner,
.epm-home-sections .epm-home-section .epm-card__body {
  min-width: 0;
}

.epm-card {
  container-type: inline-size;
}

.epm-card h2 {
  max-width: 100%;
  font-size: clamp(1.8rem, 11cqi, 3.05rem);
  line-height: 1;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  text-wrap: balance;
}

.epm-card__body > div,
.epm-card__body > p {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.epm-card > a,
.epm-card--has-media > a,
.epm-card--has-media .epm-card__inner {
  height: auto;
}

@media (max-width: 759px) {
  .epm-home-section__head {
    align-items: flex-start !important;
    flex-direction: column;
  }

  .epm-home-section__head h2 {
    font-size: clamp(2.8rem, 15vw, 5rem) !important;
    line-height: .88 !important;
  }

  .epm-home-sections .epm-home-section .epm-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .epm-home-sections .epm-home-section .epm-card,
  .epm-home-sections .epm-home-section .epm-card:first-child {
    grid-column: 1 !important;
  }

  .epm-card h2 {
    font-size: clamp(1.85rem, 10.5vw, 2.8rem);
  }

  .epm-card > a,
  .epm-card--has-media .epm-card__inner {
    min-height: 0;
  }

  .epm-card__body {
    margin: 1.6rem 0;
  }
}

@media (min-width: 760px) and (max-width: 1119px) {
  .epm-home-sections .epm-home-section .epm-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .epm-home-sections .epm-home-section .epm-card,
  .epm-home-sections .epm-home-section .epm-card:first-child {
    grid-column: auto !important;
  }

  .epm-home-sections .epm-home-section--musica .epm-card:first-child {
    grid-column: 1 / -1 !important;
  }

  .epm-card h2 {
    font-size: clamp(1.8rem, 10cqi, 2.75rem);
  }
}

@media (min-width: 1120px) {
  .epm-home-sections .epm-home-section:not(.epm-home-section--musica) .epm-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .epm-home-sections .epm-home-section--musica .epm-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .epm-home-sections .epm-home-section .epm-card,
  .epm-home-sections .epm-home-section .epm-card:first-child {
    grid-column: auto !important;
  }

  .epm-home-sections .epm-home-section--musica .epm-card:first-child {
    grid-column: span 2 !important;
  }
}

@supports not (font-size: 1cqi) {
  .epm-card h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
  }
}