.carousel__container {
    min-height: 800px;
    background-size: cover;
    background-position: center center;
}

.fv-hc-wrapper {
    padding: 0;
}

.fv-hc-slides {
    position: relative;
    min-height: 800px;
}

.fv-hc-slide {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.fv-hc-slide.active {
    position: relative;
    opacity: 1;
}

/* .fv-hc-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
} */

.fv-hc-content {
    z-index: 2;
}

.fv-hc-title-line {
    background-color: rgba(0, 0, 97, .8);
    line-height: 1.6em;
    font-weight: 300;
    margin-bottom: .3em;
    display: block;
    padding-left: 3.5em;
}

.fv-hc-title {
    font-size: clamp(1.6rem, 2.5vw, 2.6rem);
    /* full-bleed: il titolo si estende da bordo a bordo finestra
         anche se è dentro il layout a colonne */
    width: 100vw;
    margin-left: calc(50% - 37vw);
}

.fv-hc-pagination {
    background: rgba(0, 0, 97, .4);
}

.fv-hc-pagination-row {
    row-gap: 0.3rem;
}

.fv-hc-pagination-item-wrapper {
    cursor: pointer;
}

.fv-hc-pagination-item {
    color: #ffffff;
    transition: color 1s ease, background-color 1s ease;
}

.fv-hc-pagination-item:hover {
    color: #003c6e;
    background-color: #ffffff;
}

.fv-hc-pagination-item.active .fv-hc-pagination-subtitle {
    color: #ffffff;
}

.fv-hc-pagination-subtitle {
    min-height: 3em;
}

.fv-hc-pagination-progress {
    height: 3px;
    background: rgba(255,255,255,0.2);
    overflow: hidden;
}

.fv-hc-pagination-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: #ffffff;
    transform-origin: left center;
}

.fv-hc-pagination-item.active .fv-hc-pagination-progress-bar {
    width: 100%;
    transition: none;
}

/* Bottone "Leggi l'articolo" con SVG di sfondo */
.fv-hc-btn-readmore {
    position: relative;
    display: inline-block;
    background-image: url('fv-hc-readmore-bg.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left center;
    background-color: transparent !important;
    border: none !important;
    width: 21em;
    color: #ffffff;
    text-transform: capitalize;
    font-weight: 700;
    padding-left: 6rem;
    padding-right: 1.5rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    z-index: 100;
}

.fv-hc-btn-readmore:hover,
.fv-hc-btn-readmore:focus {
    background-color: transparent !important;
    color: #003c6e;
}

@media (max-width: 767.98px) {
  .carousel__container {
    min-height: 250px;
    background-size: cover;
    background-position: center center;
  }
  .fv-hc-title {
    font-size: 1.2em;
    width: 100vw;
    margin-left: 0;
  }
  .fv-hc-title-line {
    padding-left: 0.5em;
  }
  .fv-hc-slides {
      min-height: 250px;
  }

  /* Mobile: solo progress bar, niente titolo sotto */
  .fv-hc-pagination-subtitle {
      display: none;
  }

  /* Mobile: tutte le progress bar su una sola riga */
  .fv-hc-pagination-row {
      flex-wrap: nowrap;
      width: 17%;
  }

  .fv-hc-pagination-item-wrapper {
      flex: 1 0 auto;
      max-width: none;
  }
  .fv-hc-btn-readmore {
    width: 16em;
    padding-left: 4em;
    padding-right: 1.5rem;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    font-size: small;
    z-index: 100;
  }
}
