/* =========================================================
   STILE PAGINA CONTATTI 
========================================================= */

.contact-page-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 10vh auto 0;
  padding: 0 25px 10vh 25px;
  box-sizing: border-box;
  overflow-x: hidden;
}

.contact-page-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 215, 0, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 215, 0, 0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: moveGrid 50s linear infinite;
}

@keyframes moveGrid {
  from { background-position: 0 0; }
  to { background-position: -1000px 0; }
}

.contact-card {
  background: rgba(18, 18, 18, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 215, 0, 0.1);
  border-radius: 16px;
  padding: 35px 40px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  height: 100%; 
  display: flex;
  flex-direction: column;
}

.contact-card:hover {
  transform: translateY(-10px);
}

.page-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  margin: 0 0 10vh 0;
  color: #F2F2F2;
  font-weight: 600;
  margin-top: 2vw;
}

.contact-grid {
  display: grid;
  gap: 150px;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 50px;
  }
}

.card-title,
.card-description,
.cta-button,
#email-reveal-action,
#email-revealed-content,
.disclaimer {
  position: relative;
  z-index: 2;
}

.card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: #ffffff;
  font-weight: 500;
  margin: 0 0 15px 0;
}

.card-description {
  color: #c2c2c2;
  line-height: 1.7;
}

.cta-wrapper {
  margin-top: auto; 
  padding-top: 20px; 
}


.cta-button {
  background-color: #1f1f1f;
  color: #fff;
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 12px 25px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  text-decoration: none;
  display: inline-block;
}

.cta-button:hover {
  background-color: #333;
}

#email-revealed-content {
  margin-top: 20px;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

#email-revealed-content.hidden {
  display: none;
}

#email-revealed-content:not(.hidden) {
  display: flex;
}

.email-link {
  color: #e0e0e0;
  font-size: 1.1rem;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 215, 0, 0.4);
}

.copy-button {
  background-color: #333;
  border: none;
  color: #fff;
  font-size: 0.8rem;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.copy-button.copied {
  background-color: #28a745;
}

.disclaimer {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 30px;
  line-height: 1.6;
}
