/* ChiSiamo/css/chisiamo.css */

.page-intro {
  max-width: 800px;
  margin: 0 auto 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.cs-layout {
  display: grid;
  gap: 1.5rem;
  padding: 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .cs-layout {
    grid-template-columns: 320px 1fr;
    padding: 2rem;
  }
}

/* LISTA PERSONE (sinistra) */
.cs-list {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 1rem;
  overflow-y: auto;
  max-height: 70vh;
}

.cs-group {
  margin-bottom: 1.5rem;
}

.cs-group-title {
  font-size: 0.875rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.cs-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  margin: 0.25rem 0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.cs-person-name {
  flex: 1;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cs-role-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.cs-role-badge.attore {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.cs-role-badge.regista {
  background: rgba(0, 0, 0, 0.3);
  color: #000000;
  font-weight: 900;
}

.cs-role-badge.tecnico {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Colori per genere nella lista persone - COLORI FORTI */
.cs-item.attore {
  background: rgba(220, 20, 60, 0.85);
  border-color: rgba(255, 50, 80, 0.9);
  color: #ffffff;
}

.cs-item.regista {
  background: rgba(255, 200, 0, 0.85);
  border-color: rgba(255, 220, 50, 0.9);
  color: #000000;
}

.cs-item.tecnico {
  background: rgba(30, 120, 220, 0.85);
  border-color: rgba(50, 150, 255, 0.9);
  color: #ffffff;
}

.cs-item.attore .cs-person-name,
.cs-item.tecnico .cs-person-name {
  color: #ffffff;
}

.cs-item.regista .cs-person-name {
  color: #000000;
}

.cs-item.attore .cs-bullet,
.cs-item.tecnico .cs-bullet {
  color: rgba(255, 255, 255, 0.8);
}

.cs-item.regista .cs-bullet {
  color: rgba(0, 0, 0, 0.7);
}

.cs-item:hover {
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cs-item.attore:hover {
  background: rgba(240, 40, 80, 0.95);
  border-color: rgba(255, 70, 100, 1);
}

.cs-item.regista:hover {
  background: rgba(255, 215, 20, 0.95);
  border-color: rgba(255, 230, 70, 1);
}

.cs-item.tecnico:hover {
  background: rgba(40, 140, 240, 0.95);
  border-color: rgba(70, 170, 255, 1);
}

.cs-item.active {
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.cs-item.attore.active {
  background: rgba(200, 10, 50, 1);
  border-color: rgba(255, 40, 70, 1);
}

.cs-item.regista.active {
  background: rgba(255, 190, 0, 1);
  border-color: rgba(255, 210, 40, 1);
}

.cs-item.tecnico.active {
  background: rgba(20, 110, 210, 1);
  border-color: rgba(40, 140, 255, 1);
}

.cs-item.attore.active .cs-bullet,
.cs-item.tecnico.active .cs-bullet {
  color: rgba(255, 255, 255, 1);
}

.cs-item.regista.active .cs-bullet {
  color: rgba(0, 0, 0, 0.9);
}

.cs-bullet {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.cs-item.active .cs-bullet {
  color: rgba(255, 255, 255, 0.9);
}

.cs-person-name {
  flex: 1;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
}

/* Mobile: freccia ruota verso il basso quando espanso */
@media (max-width: 1023px) {
  .cs-item.expanded .cs-bullet {
    transform: rotate(90deg);
  }
}

.cs-person-name {
  flex: 1;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
}

/* DETTAGLIO PERSONA (destra) */
.cs-detail {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 1.5rem;
  min-height: 400px;
}

.cs-detail-head {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.cs-name {
  font-size: 1.75rem;
  font-weight: 900;
  margin: 0 0 0.5rem;
  color: #fff;
}

.cs-status {
  font-size: 0.875rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cs-shows-wrap {
  margin-top: 1.5rem;
}

.cs-shows-title {
  font-size: 1.25rem;
  font-weight: 900;
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.cs-shows-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cs-show-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Colori per genere nelle card spettacoli - COLORI FORTI */
.cs-show-card.attore {
  background: rgba(220, 20, 60, 0.75);
  border-color: rgba(255, 50, 80, 0.9);
  color: #ffffff;
}

.cs-show-card.regista {
  background: rgba(255, 200, 0, 0.75);
  border-color: rgba(255, 220, 50, 0.9);
  color: #000000;
}

.cs-show-card.tecnico {
  background: rgba(30, 120, 220, 0.75);
  border-color: rgba(50, 150, 255, 0.9);
  color: #ffffff;
}

.cs-show-card.attore .cs-show-title,
.cs-show-card.attore .cs-show-role,
.cs-show-card.tecnico .cs-show-title,
.cs-show-card.tecnico .cs-show-role {
  color: #ffffff;
}

.cs-show-card.regista .cs-show-title,
.cs-show-card.regista .cs-show-role {
  color: #000000;
}

.cs-show-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.cs-show-card.attore:hover {
  background: rgba(240, 40, 80, 0.9);
  border-color: rgba(255, 70, 100, 1);
}

.cs-show-card.regista:hover {
  background: rgba(255, 215, 20, 0.9);
  border-color: rgba(255, 230, 70, 1);
}

.cs-show-card.tecnico:hover {
  background: rgba(40, 140, 240, 0.9);
  border-color: rgba(70, 170, 255, 1);
}

.cs-show-title {
  font-size: 1.125rem;
  font-weight: 900;
  margin: 0 0 0.5rem;
  color: #fff;
}

.cs-show-role {
  font-size: 0.9375rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
}

.cs-empty {
  padding: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 700;
  background: rgba(0, 0, 0, 0.15);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 12px;
}

/* Mobile adjustments */
@media (max-width: 1023px) {
  .cs-layout {
    grid-template-columns: 1fr;
  }

  .cs-list {
    max-height: none;
  }

  .cs-name {
    font-size: 1.5rem;
  }

  /* Dettaglio inline su mobile */
  .cs-detail {
    display: none;
  }

  .cs-item-detail {
    margin: 0.5rem 0 0.75rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: none;
  }

  .cs-item.expanded + .cs-item-detail {
    display: block;
  }

  .cs-item-detail .cs-name {
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
  }

  .cs-item-detail .cs-status {
    font-size: 0.75rem;
    margin-bottom: 1rem;
  }

  .cs-item-detail .cs-shows-title {
    font-size: 1rem;
    margin: 0 0 0.75rem;
  }

  .cs-item-detail .cs-show-card {
    margin-bottom: 0.5rem;
  }

  .cs-item-detail .cs-show-title {
    font-size: 1rem;
  }

  .cs-item-detail .cs-show-role {
    font-size: 0.875rem;
  }
}
