/* Hot Topics Scroll Menu - styles */
.htsm-hot-topics{
  position: relative;
  width: 100%;
  background: var(--htsm-bg, #fff);
  padding: 8px 0;
  overflow: hidden; /* necessario per sfumature */
}

/* sticky opzionale */
.htsm-hot-topics.is-sticky{
  position: sticky;
  top: var(--htsm-top, 0);
  z-index: 50;
}

/* UL generata da wp_nav_menu */
.htsm-hot-topics__list{
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;

  display: flex !important;
  align-items: center;
  gap: 5px;

  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;

  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.htsm-hot-topics__list::-webkit-scrollbar{ display:none; }

.htsm-hot-topics__list > li{
  flex: 0 0 auto;
  margin: 0 !important;
  padding: 0 !important;
}

/* link */
.htsm-hot-topics__list a{
  display: inline-flex;
  align-items: center;

  padding: 8px 10px;
  border-radius: 999px;

  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
-webkit-font-smoothing: antialiased;
  color: #000;
  background: transparent;

  transition: background .15s ease, color .15s ease;
}
.htsm-hot-topics__list a:hover{
  background:#000;
  color: #fff; -webkit-font-smoothing: antialiased;
}

/* stato attivo WordPress */
.htsm-hot-topics .current-menu-item > a,
.htsm-hot-topics .current-menu-parent > a{
  background: #000;
  color:#fff;
  -webkit-font-smoothing: antialiased;
}

/* sfumature (fade) */
.htsm-hot-topics::before,
.htsm-hot-topics::after{
  content:"";
  position:absolute;
  top:0;
  width:32px;
  height:100%;
  pointer-events:none;
  z-index:5;
  opacity: 1;
  transition: opacity .15s ease;
}
.htsm-hot-topics::before{
  left:0;
}
.htsm-hot-topics::after{
  right:0;
  background: linear-gradient(to left, var(--htsm-bg, #fff) 40%, rgba(255,255,255,0) 100%);
}

/* nascondo fade quando non serve (gestito dal JS con classi) */
.htsm-hot-topics.htsm-at-start::before{ opacity: 0; }
.htsm-hot-topics.htsm-at-end::after{ opacity: 0; }

/* drag cursor (desktop) */
.htsm-hot-topics__list.htsm-dragging{
  cursor: grabbing;
}
.htsm-hot-topics__list{
  cursor: grab;
}
