.hero-exchange {
  padding: 100px 20px 80px;
  text-align: center;
  background: #f9f9f9;
}

.hero-exchange h1 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.hero-exchange h3 {
  background: linear-gradient(270deg, #007aff, #5f27cd, #ff3b30, #5f27cd, #007aff);
  background-size: 300% 300%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: textGradientMove 6s ease infinite;
}

@keyframes textGradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}


.hero-exchange p {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 10px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.cta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-logo {
  height: 60px;
  margin-bottom: 10px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn.primary {
  background-color: #007aff;
  color: white;
}

.btn.secondary {
  background-color: #ff1100;
  color: white;
}

.btn:hover {
  opacity: 0.9;
}

.map-container {
  background: linear-gradient(to bottom, #f9f9f9 0%, #f8f8f8 40%);
  padding: 30px 20px 40px;
  text-align: center;
}

.map-container h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  background: linear-gradient(270deg, #007aff, #5f27cd, #ff3b30, #5f27cd, #007aff);
  background-size: 300% 300%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: textGradientMove 6s ease infinite;
}

@keyframes textGradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.map {
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
  align-items: flex-start;
  position: relative;
}

.path {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 220px;
}

.path-title {
    display: none; /* Nascondi su desktop */
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.stepb {
  background-color: white;
  border: 2px solid #007bff;
  border-radius: 10px;
  padding: 15px 20px;
  margin: 10px 0;
  width: 100%;
  font-weight: 500;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.stepr {
  background-color: white;
  border: 2px solid #ff0011;
  border-radius: 10px;
  padding: 15px 20px;
  margin: 10px 0;
  width: 100%;
  font-weight: 500;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.arrow {
  font-size: 22px;
  margin: 5px 0;
}

.divider {
  font-size: 1rem;
  color: #666;
  align-self: center;
  padding-top: 80px;
  font-weight: bold;
}

.mobile-divider {
    display: none;
}

.newsletter-section {
  position: relative;
  background-color: #f8f8f8;
  padding: 40px 20px;
  margin-top: 60px;
  text-align: center;
  overflow: hidden;
}

.newsletter-section::before,
.newsletter-section::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(270deg,
    #007aff,
    #5f27cd,
    #ff1100,
    #fca311,
    #ff1100,
    #5f27cd,
    #007aff
  );
  background-size: 300% 100%;
  animation: gradientMove 8s linear infinite;
}

@media (max-width: 768px) {
  .map {
    flex-direction: column;
    gap: 0;
    align-items: center;
  }

  .path-title {
    display: block;
  }

  .divider {
    display: none;
  }

  .mobile-divider {
    display: flex;
    align-items: center;
    width: 80%;
    margin: 30px 0;
  }

  .mobile-divider hr {
      flex-grow: 1;
      border: none;
      border-top: 1px solid #ccc;
  }

  .mobile-divider span {
      padding: 0 15px;
      font-weight: bold;
      color: #555;
  }

  .path {
    max-width: 100%;
    width: 100%;
  }
}

.newsletter-section::before {
  top: 0;
}

.newsletter-section::after {
  bottom: 0;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.newsletter-container {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-section h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: #222;
}

.newsletter-section p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  flex: 1 1 300px;
  max-width: 400px;
  font-size: 1rem;
}

.newsletter-form button {
  padding: 12px 24px;
  background-color: #0071e3;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease;
}

.newsletter-form button:hover {
  background-color: #005bb5;
}