/**
 * Hummingbird Tag Offers - stili del blocco tag e della pagina "Offerte + tag".
 * Usa i token Bootstrap del tema, quindi segue colori e raggi del tema.
 */

.hbtp-tags {
  margin-block: 1.25rem;
}

.hbtp-tags__title {
  margin-bottom: 0.625rem;
  font-weight: 600;
}

.hbtp-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

/* Etichette (chip) */
.hbtp-tags--chips .hbtp-tags__link,
.hbtp-related .hbtp-tags__link {
  display: inline-block;
  padding: 0.3125rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.3;
  color: var(--bs-body-color);
  text-decoration: none;
  background: var(--bs-tertiary-bg, #f8f9fa);
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: 2rem;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.hbtp-tags--chips .hbtp-tags__link:hover,
.hbtp-tags--chips .hbtp-tags__link:focus-visible,
.hbtp-related .hbtp-tags__link:hover,
.hbtp-related .hbtp-tags__link:focus-visible {
  color: var(--bs-primary, #0d6efd);
  background: var(--bs-body-bg, #fff);
  border-color: var(--bs-primary, #0d6efd);
}

/* Elenco */
.hbtp-tags--list .hbtp-tags__list {
  flex-direction: column;
  gap: 0.25rem;
}

.hbtp-tags--list .hbtp-tags__link {
  color: var(--bs-body-color);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.hbtp-tags--list .hbtp-tags__link:hover {
  color: var(--bs-primary, #0d6efd);
}

.hbtp-tags__count {
  color: var(--bs-secondary-color, #6c757d);
}

/* Pagina "Offerte + tag" */
.hbtp-intro {
  max-width: 60rem;
  margin-bottom: 1.5rem;
  color: var(--bs-secondary-color, #6c757d);
}

.hbtp-intro__text {
  margin-bottom: 0;
}

.hbtp-related {
  margin-block: 2rem;
}

.hbtp-related__title {
  margin-bottom: 0.75rem;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .hbtp-tags__link {
    transition: none;
  }
}
