/* 
 * Stili per pagina lista News - Frontend
 * Applicato automaticamente quando page = 'news_list'
 */

/* Hero Section News */
.section.bg-primary .icon-xl {
  width: 3rem;
  height: 3rem;
}

/* Sidebar Filtri */
.sidebar-wrapper {
  position: sticky;
  top: 1rem;
}

/* News Cards Grid - 2 colonne */
.it-card-group {
  display: grid;
  gap: 1.5rem;
}

.it-card-group-2 {
  grid-template-columns: repeat(2, 1fr);
}

.it-card-height-full {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.it-card-height-full .it-card-body {
  flex-grow: 1;
}

.it-card-height-full .it-card-footer {
  margin-top: auto;
}

/* Card Image responsive */
.it-card-image-wrapper .ratio {
  background-color: #f0f6fc;
}

.it-card-image-wrapper img {
  object-fit: cover;
}

/* Categoria Badge */
.it-card-category {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Data pubblicazione */
.it-card-date {
  font-size: 0.875rem;
  color: #5c6f82;
}

/* Sidebar News in evidenza */
.it-card-title-small a {
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Paginazione */
.pagination-wrapper {
  display: flex;
  justify-content: center;
}

/* Responsive */
@media (max-width: 991px) {
  .sidebar-wrapper {
    position: relative;
    top: 0;
  }
  
  .it-hero-wrapper.it-dark .it-hero-text-wrapper h1 {
    font-size: 2rem;
  }
}

/* Responsive Grid - 1 colonna su mobile */
@media (max-width: 767px) {
  .it-card-group-2 {
    grid-template-columns: 1fr;
  }
}

