body {
  font-family: 'Poppins', sans-serif;
  background-color: #121212;
  color: #fff;
  margin: 0;
  padding: 0;
}
header, footer {
  background: #1f1f1f;
  text-align: center;
  padding: 20px;
}
nav a {
  color: white;
  margin: 0 10px;
  text-decoration: none;
}
section {
  padding: 40px 20px;
}
form input, form textarea {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
}
form button {
  background-color: #ff4747;
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
}
form button:hover {
  background-color: #e63b3b;
}
iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 10px;
  margin-top: 20px;
}
.modal {
  display: none; /* nascosto di default */
  position: fixed;
  z-index: 10000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
  animation: fadeIn 0.3s ease forwards;
}

.modal-content {
  background-color: #222;
  margin: 15% auto;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 400px;
  text-align: center;
  color: #ff4747;
  font-size: 1.2em;
  box-shadow: 0 0 15px #ff4747;
  animation: slideDown 0.3s ease forwards;
  position: relative;
}

.close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 1.5em;
  color: #ff4747;
  cursor: pointer;
  font-weight: bold;
}

.close:hover {
  color: #e63b3b;
  transform: scale(1.2);
  transition: 0.3s;
}

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

@keyframes slideDown {
  from {transform: translateY(-20px); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
  animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 400px;
  text-align: center;
  position: relative;
  animation: slideUp 0.3s ease-in-out;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.modal-content p {
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.close {
  position: absolute;
  right: 15px;
  top: 10px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #f44336;
}

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

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