/**
 * Ticker bar — striscia scorrevole con articoli casuali sotto l'header.
 */

.ticker-bar {
  position: relative;
  z-index: 90;
}

/* Allineato a fh-site-gutter: stesso padding del main e della hero */
.ticker-inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  background: #0c0c16;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 7%,
    black 93%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 7%,
    black 93%,
    transparent 100%
  );
}

@media (min-width: 768px) {
  .ticker-inner {
    padding-left: calc(1rem + 2.5rem);
  }
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 55s linear infinite;
}

.ticker-bar:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  min-width: 260px;
  max-width: 320px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  transition: background 0.18s;
}

.ticker-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.ticker-cat-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid;
}

/* Stesse icone della lista articoli (emoji / SVG «home list») */
.ticker-cat-icon .cat-icon-emoji {
  font-size: 17px;
  line-height: 1;
}

.ticker-cat-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.ticker-cat-fallback-emoji {
  font-size: 17px;
  line-height: 1;
}

.ticker-cat-fallback-letter {
  font-size: 13px;
  font-weight: 700;
}

.ticker-text {
  min-width: 0;
  flex: 1;
}

.ticker-title {
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.ticker-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: rgba(148, 163, 184, 0.65);
}

.ticker-meta svg {
  flex-shrink: 0;
}

.ticker-author {
  color: rgba(167, 139, 250, 0.85);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}
