.carousel_css_v20260420 {

  /* ---------------------------------------------------------------
    Reset locale — non tocca gli stili globali di Indico
  --------------------------------------------------------------- */
  .crsl *,
  .crsl *::before,
  .crsl *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  /* ---------------------------------------------------------------
    Radio button nascosti — sono il "meccanismo" del carosello
    (Rimosso: ora usiamo JavaScript)
  --------------------------------------------------------------- */

  /* ---------------------------------------------------------------
    Contenitore principale
  --------------------------------------------------------------- */
  .crsl {
    position: relative;
    width: 100%;
    max-width: 800px;       /* larghezza massima — modifica a piacere */
    margin: 1.5rem auto;
    user-select: none;
    -webkit-user-select: none;
  }

  /* ---------------------------------------------------------------
    Track (finestra del carosello)
    aspect-ratio controlla il formato: 16/9 = widescreen,
    16/7 = più panoramico, 4/3 = quasi quadrato.
  --------------------------------------------------------------- */
  .crsl__track {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 16 / 7;
    background: #ddd;       /* colore visibile mentre l'immagine carica */
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
  }

  /* ---------------------------------------------------------------
    Slide: tutte sovrapposte, solo quella attiva è visibile
  --------------------------------------------------------------- */
  .crsl__slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    transform: translateX(24px);  /* leggero slide in entrata */
  }

  /* Slide attiva */
  .crsl__slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 1;
  }

  /* ---------------------------------------------------------------
    Immagine di sfondo della slide
  --------------------------------------------------------------- */
  .crsl__slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;      /* riempie sempre il riquadro, senza distorsioni */
    object-position: center;
  }

  /* ---------------------------------------------------------------
    Overlay scuro sotto il testo (opzionale — rimuovi se non serve)
  --------------------------------------------------------------- */
  .crsl__slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.10) 0%,
      rgba(0, 0, 0, 0.45) 100%
    );
    z-index: 1;
  }

  /* ---------------------------------------------------------------
    Contenuto testuale sovrapposto all'immagine
    Rimuovi o svuota .crsl__content se non hai testo sulla slide.
  --------------------------------------------------------------- */
  .crsl__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 1.5rem 3.5rem;
    color: #fff;
  }

  .crsl__content h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 0.4rem;
	color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  }

  .crsl__content p {
    font-size: 15px;
    opacity: 0.9;
	color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  }

  /* ---------------------------------------------------------------
    Pulsanti Precedente / Successivo
  --------------------------------------------------------------- */
  .crsl__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: #333;
    transition: background 0.2s, transform 0.2s;
    border: none;
    -webkit-tap-highlight-color: transparent;
  }

  .crsl__btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.08);
  }

  .crsl__btn--prev { left: 14px; }
  .crsl__btn--next { right: 14px; }

  .crsl__dot {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #bbb;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
    position: relative;
    z-index: 3;
    margin-bottom: 10px;
    border: none;
  }

  /* Pallino attivo */
  .crsl__dot.active {
    background: #fff;
    transform: scale(1.4);
  }

  /* ---------------------------------------------------------------
    Responsive mobile
  --------------------------------------------------------------- */
  @media (max-width: 520px) {
    .crsl__btn {
      width: 36px;
      height: 36px;
      font-size: 14px;
    }
    .crsl__content {
      padding: 1rem 3rem;
    }
    .crsl__content h3 {
      font-size: 17px;
    }
    .crsl__content p {
      font-size: 13px;
    }
  }
}
