:root {
  --racing-orange: #ec6c05;
  --racing-cyan: #009fe3;
}

/* Griglia loghi */
.logo-grid-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.logo-item {
  transition: transform 0.3s ease;
  max-width: 150px;
  -webkit-transition: transform 0.3s ease;
  -moz-transition: transform 0.3s ease;
  -ms-transition: transform 0.3s ease;
  -o-transition: transform 0.3s ease;
}

.logo-item-2x {
  max-width: 300px;
}

.logo-bn img {
  filter: grayscale(1);
}

.popup_active {
  cursor: pointer;
}

/* Effetto Hover richiesto */
.logo-item:hover {
  transform: scale(1.05);
}

.logo-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Stile del Popup Overlay */
#logo-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  /*Nascostodibase*/
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 300ms ease;
  -webkit-animation: fadeIn 300ms ease;
}

.logo-modal-body {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  border-left: 4px solid var(--racing-orange);
  border-right: 4px solid var(--racing-orange);
  max-width: 640px;
  width: 90%;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  animation: slideIn 300ms ease;
  -webkit-animation: slideIn 300ms ease;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

.sponsor-site,
.sponsor-site:hover {
  display: inline-block;
  text-decoration: none !important;
  color: #fff !important;
  background: var(--racing-orange) !important;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.sponsor-site:hover {
  transform: scale(1.05);
  -webkit-transform: scale(1.05);
  -moz-transform: scale(1.05);
  -ms-transform: scale(1.05);
  -o-transform: scale(1.05);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
