/* Stile per il link acknowledgements */
.acknowledgements-link {
  cursor: pointer;
  color: #4eb378;
  transition: color 0.3s ease;
}

.acknowledgements-link:hover {
  color: #206140;
  text-decoration: underline;
}

/* Modale overlay */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(32, 97, 64, 0.8);
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

/* Contenuto della modale */
.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 13px;
  border: 2px solid #e2e8ef;
  box-shadow: 0 4px 16px rgba(98, 165, 111, 0.2);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  animation: slideIn 0.3s ease;
}

/* Header della modale */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5em 1.5em 1em 1.5em;
  border-bottom: 1px solid #e2e8ef;
}

.modal-header h3 {
  color: #206140;
  font-size: 1.5rem;
  margin: 0;
  letter-spacing: 0.02em;
}

/* Pulsante di chiusura */
.modal-close {
  font-size: 28px;
  font-weight: bold;
  color: #62a56f;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #206140;
}

/* Body della modale */
.modal-body {
  padding: 1.5em;
}

.modal-body p {
  margin-bottom: 1em;
  color: #333;
  line-height: 1.5;
}

/* Lista acknowledgements */
.acknowledgements-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.acknowledgements-list li {
  background: #f9fafc;
  border: 1px solid #e2e8ef;
  border-radius: 8px;
  padding: 0.8em 1em;
  margin-bottom: 0.8em;
  color: #333;
  transition: background-color 0.3s ease;
}

.acknowledgements-list li:hover {
  background: #f0f7f2;
  border-color: #62a56f;
}

.acknowledgements-list li:last-child {
  margin-bottom: 0;
}

/* Animazioni */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-height: 85vh;
  }
  
  .modal-header {
    padding: 1em;
  }
  
  .modal-header h3 {
    font-size: 1.3rem;
  }
  
  .modal-body {
    padding: 1em;
  }
}

@media (max-width: 480px) {
  .modal-content {
    width: 98%;
    max-height: 90vh;
  }
  
  .modal-header {
    padding: 0.8em;
  }
  
  .modal-header h3 {
    font-size: 1.15rem;
  }
  
  .modal-body {
    padding: 0.8em;
  }
  
  .acknowledgements-list li {
    padding: 0.6em 0.8em;
  }
}