/* ============================================================
   JUSTLINK – STILE BASE
   ============================================================ */
.jr-cat-inline a {
  font-family: var(--e-global-typography-text-font-family);
  font-size:16px;
  font-weight: 500 !important;
  line-height: var(--e-global-typography-text-line-height);
}

.jr-cat-inline-wrapper {
  position: relative;
  width: 100%;
  text-align: inherit;
}

.jr-cat-inline-wrapper .label {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #023169;
  white-space: nowrap;
}

.jr-cat-inline {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: #023169;
}

/* Link */
.jr-cat-inline a {
  color: #023169;
  text-decoration: none;
}

.jr-cat-inline a:hover {
  text-decoration: underline;
}

/* Separatore testuale / icona */
.jr-cat-inline .dot {
  color: #023169;
  margin: 0 2px;
  font-size: 16px;
  line-height: 1;
  display: inline-block;
}

.jr-cat-inline .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


/* Freccia di scroll */
.jr-scroll-arrow {
  display: none;
}

/* ============================================================
   MOBILE – SCROLL ORIZZONTALE + FADE + FRECCIA
   ============================================================ */

@media (max-width: 1024px) {

  /* Wrapper = area che scrolla */
  .jr-cat-inline-wrapper {
    position: relative;
    width: 100%;
    overflow: visible;
  }
  
  .jr-cat-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .jr-cat-scroll::-webkit-scrollbar {
    display: none;
  }

  /* Contenuto = NON scrolla */
  .jr-cat-inline {
    display: inline-flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 18px;
    padding-bottom: 6px;
  }

  .jr-cat-inline::-webkit-scrollbar {
    display: none;
  }

  .jr-cat-inline-wrapper::-webkit-scrollbar {
    display: none;
  }

  .jr-cat-inline a,
  .jr-cat-inline .dot,
  .jr-cat-inline .icon {
    flex: 0 0 auto;
    font-size: 15px;
    padding-top: 2px;
    padding-bottom: 2px;
  }
}
/* ============================================================
   JUSTLINK – DESKTOP GRID A COLONNE
   SOLO per widget con classe .jr-justlink-grid
   ============================================================ */

@media (min-width: 1024px) {

  .jr-justlink-grid .jr-cat-scroll {
    overflow: visible !important;
  }

  .jr-justlink-grid .jr-cat-inline {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 32px;
    white-space: normal;
  }

  /* link a blocco */
  .jr-justlink-grid .jr-cat-inline a {
    display: block;
    padding: 4px 0;
  }

  /* separatori OFF */
  .jr-justlink-grid .jr-cat-inline .dot,
  .jr-justlink-grid .jr-cat-inline .icon {
    display: none !important;
  }

  /* freccia OFF su desktop */
  .jr-justlink-grid .jr-scroll-arrow {
    display: none;
  }
}

/* ============================================================
   FRECCETTA PRIMA DEL LINK (desktop + tablet)
   SOLO per grid
   ============================================================ */

@media (min-width: 768px) {

  .jr-justlink-grid .jr-cat-inline a {
    position: relative;
    padding-left: 18px;
    display: block;
  }

  .jr-justlink-grid .jr-cat-inline a::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    font-size: 0.8em;
    color: #023169;
  }

  .jr-justlink-grid .jr-cat-inline a:hover {
    text-decoration: underline;
  }
}
@media (max-width: 1024px) {
  .jr-cat-scroll {
    position: relative;
  }
}

/* ============================================================
   JUSTLINK – FRECCIA MOBILE (come menu sticky)
   ============================================================ */

@media (max-width: 1024px) {

  .jr-scroll-arrow {
  position: absolute;
    top: 50%;            /* 👈 NON 40% */
    right: 0;
    transform: translateY(-50%) translateY(-3px);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);

    display: flex;
    align-items: center;
    justify-content: center;

    color: #023169;
    font-size: 14px;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s ease;
  }

  .jr-scroll-arrow::after {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
  }

  .jr-scroll-arrow.visible {
    opacity: 1;
  }
}
