/*
 * @file: pages/consoli-associati.css
 * @description: Stili specifici per la pagina consoli associati - card delle unioni e statistiche
 * @author: Altoprofilo Studio
 * @last-updated: 2025-06-05
 * @version: V.1.0
 */

/* ==========================================================================
   UNION SELECTION CARDS
   ========================================================================== */
.union-selection-card {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.union-selection-card:hover {
  transform: var(--hover-lift-medium);
  box-shadow: var(--shadow-lg);
}

/* Card Headers */
.union-card-header {
  padding: 2rem;
  color: white;
  text-align: center;
}

.ucoi-card-header {
  background: var(--primary-color);
}

.ucoim-card-header {
  background: var(--secondary-color);
}

.union-card-header h3 {
  color: white;
  margin-bottom: 0.5rem;
}

.union-card-header p {
  color: white;
  margin: 0;
  opacity: 0.9;
}

/* Card Body */
.union-card-body {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Union Statistics */
.union-stats {
  display: flex;
  justify-content: space-around;
  margin: 1.5rem 0;
  text-align: center;
}

.stat-mini {
  flex: 1;
}

.stat-mini .number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
}

.ucoim-card .stat-mini .number {
  color: var(--secondary-color);
}

.stat-mini .label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Card Footer */
.union-card-footer {
  padding: 1.5rem 2rem;
  background: var(--bg-light);
  text-align: center;
}

/* ==========================================================================
   STATISTICHE CENTRATE
   ========================================================================== */
.stats-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 3rem 0;
}

.stat-item {
  flex: 0 1 250px;
  text-align: center;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 768px) {
  .union-stats {
    gap: 1rem;
  }
  
  .stat-mini .number {
    font-size: 1.5rem;
  }
  
  .stats-container {
    gap: 1.5rem;
  }
  
  .stat-item {
    flex: 0 1 200px;
  }
}

@media (max-width: 480px) {
  .union-card-header {
    padding: 1.5rem;
  }
  
  .union-card-body {
    padding: 1.5rem;
  }
  
  .union-stats {
    flex-direction: column;
    gap: 1rem;
  }
}