/*==================================================
CONTACT HERO
==================================================*/

.contact-hero {
  padding: 150px 0 100px;

  background: linear-gradient(135deg, #143a5a, #1d4f79);
}

.contact-grid {
  display: grid;

  grid-template-columns: 1.1fr 0.9fr;

  gap: 70px;

  align-items: center;
}

.contact-content h1 {
  font-size: 4rem;

  color: #fff;

  line-height: 1.05;

  margin: 20px 0;
}

.contact-content p {
  color: rgba(255, 255, 255, 0.9);

  font-size: 1.2rem;

  line-height: 1.8;

  margin-bottom: 45px;
}

.contact-image img {
  width: 100%;

  border-radius: 32px;

  display: block;

  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
}

/*==================================================
CONTACT INFO
==================================================*/

.contact-info {
  padding: 110px 0;

  background: #f7f9fc;
}

.contact-grid-info {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 30px;

  margin-top: 60px;
}

.contact-card {
  background: #ffffff;

  border-radius: 28px;

  padding: 45px 35px;

  text-decoration: none;

  color: #143a5a;

  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);

  transition: all 0.35s ease;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: flex-start;

  text-align: center;

  min-height: 360px;

  position: relative;

  overflow: hidden;

  cursor: pointer;
}

.contact-card h3 {
  text-align: center;

  font-size: 2rem;

  margin-bottom: 18px;

  color: #143a5a;
}

.contact-card:hover {
  transform: translateY(-12px);

  box-shadow: 0 35px 70px rgba(20, 58, 90, 0.18);

  border: 1px solid rgba(228, 0, 127, 0.2);
}

.contact-card i {
  width: 72px;

  height: 72px;

  border-radius: 22px;

  background: #143a5a;

  color: #fff;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 28px;

  margin: 0 auto 30px;
}

/*==================================================
MAPPA
==================================================*/

.contact-map {
  padding: 120px 0;

  background: #ffffff;
}

.map-wrapper {
  margin-top: 60px;

  border-radius: 30px;

  overflow: hidden;

  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.map-wrapper iframe {
  width: 100%;

  height: 520px;

  border: 0;
}

.map-buttons {
  display: flex;

  justify-content: center;

  gap: 20px;

  margin-top: 45px;

  flex-wrap: wrap;
}

/*==================================================
CTA FINALE
==================================================*/

.contact-cta {
  padding: 120px 0;

  background: linear-gradient(135deg, #143a5a 0%, #1b4c73 100%);
}

.contact-cta-box {
  max-width: 900px;

  margin: 0 auto;

  text-align: center;
}

.contact-cta-box h2 {
  color: #ffffff;

  font-size: 3rem;

  margin: 24px 0;
}

.contact-cta-box p {
  color: rgba(255, 255, 255, 0.92);

  font-size: 1.15rem;

  line-height: 1.8;

  max-width: 700px;

  margin: 0 auto 45px;
}

/* ===== Pulsante Glass ===== */

.button-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 18px 34px;

  border-radius: 999px;

  text-decoration: none;

  font-weight: 700;

  color: #ffffff;

  background: rgba(255, 255, 255, 0.12);

  border: 1px solid rgba(255, 255, 255, 0.28);

  backdrop-filter: blur(14px);

  -webkit-backdrop-filter: blur(14px);

  transition: 0.35s ease;
}

.button-glass:hover {
  background: rgba(255, 255, 255, 0.22);

  transform: translateY(-3px);

  color: #ffffff;
}

/* ===== Informazioni sotto la mappa ===== */

.map-info {
  max-width: 900px;

  margin: 35px auto 0;

  display: flex;

  justify-content: center;
}

.map-address {
  display: flex;

  align-items: flex-start;

  gap: 18px;

  background: #ffffff;

  padding: 24px 32px;

  border-radius: 22px;

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.map-address i {
  font-size: 28px;

  color: #e4007f;

  margin-top: 4px;
}

.map-address strong {
  display: block;

  color: #143a5a;

  font-size: 1.15rem;

  margin-bottom: 8px;
}

/* Pulsante glass su sfondo chiaro */

.button-glass-dark {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  padding: 18px 34px;

  border-radius: 999px;

  text-decoration: none;

  font-weight: 700;

  color: #143a5a;

  background: rgba(20, 58, 90, 0.05);

  border: 1px solid rgba(20, 58, 90, 0.15);

  backdrop-filter: blur(14px);

  transition: 0.35s;
}

.button-glass-dark:hover {
  background: rgba(20, 58, 90, 0.1);

  transform: translateY(-3px);
}

/* ===============================
   ANIMAZIONI
================================== */

.reveal {
  opacity: 0;

  transform: translateY(50px);

  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;

  transform: translateY(0);
}

/*==================================================
TABLET
==================================================*/

@media (max-width: 1024px) {
  /* HERO */

  .contact-grid {
    grid-template-columns: 1fr;

    gap: 50px;

    text-align: center;
  }

  .contact-content {
    max-width: 100%;

    margin: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  /* CARD CONTATTI */

  .contact-grid-info {
    grid-template-columns: repeat(2, 1fr);

    gap: 25px;
  }

  .contact-card {
    min-height: 300px;
  }

  /* MAPPA */

  .map-address {
    width: 100%;

    justify-content: center;
  }
}

/*==================================================
SMARTPHONE
==================================================*/

@media (max-width: 768px) {
  /* HERO */

  .contact-hero {
    padding: 140px 0 80px;
  }

  .contact-content h1 {
    font-size: 2.5rem;

    line-height: 1.15;
  }

  .contact-content p {
    font-size: 1.05rem;
  }

  .hero-buttons {
    display: flex;

    flex-direction: column;

    gap: 16px;

    align-items: stretch;
  }

  .hero-buttons .button {
    width: 100%;

    text-align: center;
  }

  /* CONTATTI */

  .contact-grid-info {
    grid-template-columns: 1fr;

    gap: 20px;
  }

  .contact-card {
    min-height: auto;

    padding: 35px 25px;
  }

  .contact-card h3 {
    font-size: 1.6rem;
  }

  .contact-card i {
    width: 64px;

    height: 64px;

    font-size: 24px;
  }

  /* MAPPA */

  .map-wrapper iframe {
    height: 320px;
  }

  .map-address {
    flex-direction: column;

    text-align: center;

    align-items: center;

    padding: 24px;
  }

  .map-buttons {
    flex-direction: column;
  }

  .map-buttons .button,
  .map-buttons .button-glass-dark {
    width: 100%;

    text-align: center;
  }

  /* CTA */

  .contact-cta-box h2 {
    font-size: 2rem;
  }

  .contact-cta-box p {
    font-size: 1rem;
  }

  .contact-cta .hero-buttons {
    flex-direction: column;
  }

  .contact-cta .button {
    width: 100%;

    text-align: center;
  }
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  z-index: 9999;
}
