* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;
  line-height: 1.6;
}

.status-container {
  min-height: 100vh;
  background: #000000;
  color: #ffffff;
  position: relative;
}

.status-background {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.2) 0%, rgba(0, 0, 0, 1) 50%, rgba(59, 130, 246, 0.2) 100%);
  z-index: 0;
}

.status-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(120, 119, 198, 0.1), transparent 50%);
}

.status-content {
  position: relative;
  z-index: 10;
}

.status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid #374151;
}

.status-logo {
  display: contents;
  align-items: center;
  gap: 16px;
}

.status-logo-icon {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-logo p {
  font-size: 12px;
  color: #9ca3af;
}

.notify-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #8b5cf6;
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  transition: background 0.2s;
}

.notify-btn:hover {
  background: #7c3aed;
}

.status-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.hero-status {
  text-align: center;
  margin-bottom: 48px;
}

.hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 24px;
  transition: all 0.3s;
}

.hero-icon.Servizi_funzionanti {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.hero-icon.Rallentamenti {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.hero-icon.Servizi_interrotti {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.hero-icon.maintenance {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.hero-status h2 {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 16px;
}

.hero-status p {
  color: #9ca3af;
  font-size: 18px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
  max-width: 740px;
  margin: 0 auto;
  flex: 2 1 600px;
}

.infoBtn {
  position: absolute;
  top: 8px;
  right: 8px;
}

.service-info-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 12px;
}

.service-info-details div {
  padding: 12px 0 0 0;
  color: #999;
}

.service-card {
  background: rgba(17, 24, 39, 0.5);
  backdrop-filter: blur(12px);
  border: 1px solid #374151;
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: rgba(168, 85, 247, 0.5);
}

.service-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
}

.service-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.service-status-dot.Servizi_funzionanti {
  background: #10b981;
}

.service-status-dot.Rallentamenti {
  background: #f59e0b;
}

.service-status-dot.Servizi_interrotti {
  background: #ef4444;
}

.service-status-dot.maintenance {
  background: #3b82f6;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.service-name {
  font-weight: 600;
  color: white;
}

.service-badge {
  position: relative;
  display: inline-block;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid;
}

.service-badge.Servizi_funzionanti {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.1);
}

.service-badge.Rallentamenti {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.1);
}

.service-badge.Servizi_interrotti {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.1);
}

.service-badge[data-info]::after {
  content: attr(data-info);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 6px 8px;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1000;
}

.service-badge[data-info]:hover::after {
  opacity: 1;
}

.service-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-metric {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.service-metric span:first-child {
  color: #9ca3af;
}

.service-metric span:last-child {
  color: #10b981;
  font-family: monospace;
}

.service-progress {
  width: 100%;
  height: 8px;
  background: #1f2937;
  border-radius: 4px;
  overflow: hidden;
}

.service-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: 4px;
  transition: width 0.3s;
}

.service-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #6b7280;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.stat-card {
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  border: 1px solid;
}

.stat-card.purple {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.3), rgba(147, 51, 234, 0.2));
  border-color: rgba(147, 51, 234, 0.3);
}

.stat-card.blue {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(59, 130, 246, 0.2));
  border-color: rgba(59, 130, 246, 0.3);
}

.stat-card.green {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(16, 185, 129, 0.2));
  border-color: rgba(16, 185, 129, 0.3);
}

.stat-card.orange {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.3), rgba(249, 115, 22, 0.2));
  border-color: rgba(249, 115, 22, 0.3);
}

.stat-value {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 8px;
}

.stat-card.purple .stat-value {
  color: #a855f7;
}

.stat-card.blue .stat-value {
  color: #3b82f6;
}

.stat-card.green .stat-value {
  color: #10b981;
}

.stat-card.orange .stat-value {
  color: #f97316;
}

.stat-label {
  color: #9ca3af;
  font-size: 14px;
}

.about-section {
  background: rgba(17, 24, 39, 0.3);
  backdrop-filter: blur(12px);
  border: 1px solid #374151;
  border-radius: 12px;
  padding: 32px;
  margin-right: 24px;
  flex: 1 1 350px;
  min-width: 300px;
}

.about-header {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.logoContainer {
  display: flex;
}

.about-header h3 {
  font-size: 24px;
  font-weight: bold;
  margin-left: 8px;
}

.about-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.about-column h4 {
  font-size: 18px;
  font-weight: 600;
  color: #e85217;
  margin-bottom: 16px;
}

.about-column p {
  color: #d1d5db;
  margin-bottom: 16px;
}

.status-legend {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legend-dot.Servizi_funzionanti {
  background: #10b981;
}

.legend-dot.Rallentamenti {
  background: #f59e0b;
}

.legend-dot.Servizi_interrotti {
  background: #ef4444;
}

.legend-dot.maintenance {
  background: #3b82f6;
}

.legend-item span {
  color: #d1d5db;
}

.status-footer {
  border-top: 1px solid #374151;
  margin-top: 64px;
  padding: 24px;
  text-align: center;
  color: #6b7280;
  position: relative;
  z-index: 10;
}

.main_container {
  display: flex;
  flex-direction: row;
  margin: 0 auto;
  max-width: 1200px;
  flex-wrap: wrap;
}

.about-arrow {
  display: none;
  margin-right: 8px;
  transition: transform 0.2s;
  cursor: pointer;
}

@media (max-width: 800px) {
  .status-content>div[style*="display: flex"] {
    flex-direction: column !important;
    max-width: 100% !important;
  }

  .about-section,
  .services-grid {
    min-width: 0 !important;
    width: 100% !important;
    flex: unset !important;
  }

  .services-grid {
    margin-top: 24px;
  }

  .about-section {
    margin-right: 0 !important;
  }

  .status-header {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .hero-status h2 {
    font-size: 32px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-content {
    grid-template-columns: 1fr;
    display: none;
  }

  .about-section.open .about-content {
    display: block;
  }

  .about-header h3 {
    font-size: 20px;
  }

  .main_container {
    padding: 10px;
  }

  .about-arrow {
    display: inline-flex;
  }
}

.logo {
  width: 100px;
  height: 30px;
  color: white;
}