:root {
  --gm-primary: #1a1a2e;
  --gm-accent:  #e94560;
}

body {
  background-color: #f4f6f9;
  font-size: 0.92rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body > .container-fluid {
  flex: 1;
}

.navbar-brand { letter-spacing: 0.5px; font-size: 1.1rem; }

.card {
  border: none;
  box-shadow: 0 1px 4px rgba(0,0,0,.10);
  border-radius: .6rem;
}

.card-header {
  background: #fff;
  border-bottom: 2px solid #f0f0f0;
  font-weight: 600;
}

.table thead th {
  background: #f8f9fa;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.stat-card {
  border-left: 4px solid var(--gm-accent);
}

.stat-card .stat-number {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.badge { font-size: 0.75rem; }

.btn-action { padding: .2rem .5rem; font-size: .82rem; }

a { text-decoration: none; }
a:hover { text-decoration: underline; }

.page-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 1.2rem;
}

/* =========================================
   LISTA EVENTI MARSHAL
   ========================================= */
.eventi-list { max-width: 820px; }

.evento-item {
  cursor: pointer;
  padding: 10px 4px;
  user-select: none;
}
.evento-item:hover .evento-nome { color: #FFA000; }

.evento-nome {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #222;
  margin-bottom: 8px;
}

.evento-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.data-box {
  background: #FFA000;
  color: white;
  width: 90px;
  min-height: 80px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.35;
  flex-shrink: 0;
}
.data-box .data-giorno { font-size: 0.82rem; }
.data-box .data-num    { font-size: 1.6rem; font-weight: 700; line-height: 1; }
.data-box .data-mese   { font-size: 0.82rem; }

.evento-spacer { flex: 1; }
.evento-divider { margin: 10px 0 0; border-color: #e0e0e0; }

/* Semaphore */
.semaforo { display: flex; gap: 10px; align-items: center; }
.dot { width: 24px; height: 24px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot-rosso     { background: #e53935; box-shadow: 0 0 6px rgba(229,57,53,.5); }
.dot-giallo    { background: #fdd835; box-shadow: 0 0 6px rgba(253,216,53,.5); }
.dot-arancione { background: #fb8c00; box-shadow: 0 0 6px rgba(251,140,0,.5); }
.dot-verde     { background: #43a047; box-shadow: 0 0 6px rgba(67,160,71,.5); }
.dot-spento    { background: #bdbdbd; }

/* =========================================
   MODAL EVENTO
   ========================================= */
.modal-evento .modal-content {
  background: #FFA000;
  border: none;
  border-radius: 18px;
  overflow: hidden;
}

.modal-evento .modal-body { padding: 14px; }

.evento-card {
  background: white;
  border-radius: 14px;
  padding: 22px 18px 18px;
}

.evento-card-title {
  font-weight: 800;
  font-size: 1.25rem;
  text-align: center;
  margin-bottom: 18px;
  letter-spacing: .02em;
}

.info-row {
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 10px;
  padding: 11px 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.info-icon-wrap {
  background: #FFA000;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.info-icon-wrap.sq { border-radius: 8px; }

.btn-evento-action {
  background: #FFA000;
  color: white;
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  padding: 14px;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
  margin-top: 14px;
  transition: background .2s;
}
.btn-evento-action:hover { background: #e65100; }
