/*
 * Krona Mag - Homepage Stylesheet
 * Version: 2.1
 * Description: Stili specifici per i layout homepage (Dispatch, Spotlight, ecc.)
 */

/* =============================================
   TICKER BAR - Dispatch layout
   ============================================= */

.km-ticker {
  display: flex;
  align-items: center;
  background: var(--km-accent);
  color: #fff;
  padding: 0;
  height: 40px;
  overflow: hidden;
  width: 100%;
}

.km-ticker-label {
  flex-shrink: 0;
  background: #000;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 18px;
  height: 100%;
  display: flex;
  align-items: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.km-ticker-track-wrap {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
}

.km-ticker-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: km-ticker-scroll 30s linear infinite;
}

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

.km-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.km-ticker-item:hover {
  opacity: 0.8;
}

.km-ticker-dot {
  font-size: 6px;
  color: rgba(255,255,255,0.6);
}

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

/* =============================================
   FEATURED HORIZONTAL - Dispatch layout
   ============================================= */

.km-featured-horizontal {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 40px 24px;
}

.km-feat-horiz-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.km-feat-horiz-card:last-child {
  border-bottom: none;
}

.km-feat-horiz-img-wrap {
  display: block;
  overflow: hidden;
  border-radius: var(--km-radius);
  aspect-ratio: 16/9;
}

.km-feat-horiz-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.km-feat-horiz-img-wrap:hover img {
  transform: scale(1.03);
}

.km-feat-horiz-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.km-feat-horiz-title {
  font-size: 22px;
  line-height: 1.3;
}

.km-feat-horiz-title a {
  text-decoration: none;
  transition: color 0.2s;
}

.km-feat-horiz-title a:hover {
  color: var(--km-accent);
}

.km-feat-horiz-excerpt {
  font-size: 14px;
  color: rgba(0,0,0,0.6);
  line-height: 1.6;
  margin: 0;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media ( max-width: 768px ) {
  .km-feat-horiz-card {
    grid-template-columns: 1fr;
  }
  .km-featured-horizontal {
    padding: 24px 16px;
  }
}