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

.contact-hero-section {
  padding: 120px 0 60px;
  background: transparent;
}

.contact-hero-wrapper {
  width: min(100% - 32px, 1320px);
  margin: 0 auto;
}

.contact-hero-card {
  position: relative;
  min-height: 430px;
  border-radius: 24px;
  overflow: hidden;
  background: #0f1720;
  isolation: isolate;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

.contact-hero-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.contact-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(6, 18, 28, 0.96) 0%,
    rgba(7, 28, 42, 0.88) 28%,
    rgba(8, 42, 58, 0.54) 52%,
    rgba(8, 42, 58, 0.12) 78%,
    rgba(8, 42, 58, 0.02) 100%
  );
}

.contact-hero-content {
  position: relative;
  z-index: 3;
  max-width: 760px;
  min-height: 560px;
  padding: clamp(42px, 7vw, 88px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

.contact-hero-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 10px;
  margin-bottom: 22px;
  color: #ffffff;
  font-size: 0.82rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-hero-kicker::before {
  content: "";
  width: 54px;
  height: 3px;
  border-radius: 999px;
  background: #00b2e9;
}

.contact-hero-content h1 {
  margin: 0 0 20px;
  color: #ffffff;
  font-size: clamp(2.7rem, 5vw, 3rem);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: -0.06em;
  max-width: 620px;
}

.contact-hero-content p {
  margin: 0;
  max-width: 600px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.08rem;
  line-height: 1.65;
  font-weight: 400;
}

/* Responsive */

@media (max-width: 991.98px) {
  .contact-hero-section {
    padding: 110px 0 50px;
  }

  .contact-hero-card,
  .contact-hero-content {
    min-height: 400px;
  }

  .contact-hero-content {
    max-width: 620px;
  }

  .contact-hero-content h1 {
    font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  }

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

@media (max-width: 767.98px) {
  .contact-hero-wrapper {
    width: min(100% - 24px, 1320px);
  }

  .contact-hero-card {
    min-height: 520px;
    border-radius: 18px;
  }

  .contact-hero-image {
    object-position: 68% center;
  }

  .contact-hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(6, 18, 28, 0.78) 0%,
      rgba(6, 18, 28, 0.72) 22%,
      rgba(6, 18, 28, 0.9) 100%
    );
  }

  .contact-hero-content {
    min-height: 520px;
    max-width: 100%;
    justify-content: flex-end;
    padding: 28px 24px 30px;
  }

  .contact-hero-kicker {
    margin-bottom: 16px;
    font-size: 0.76rem;
  }

  .contact-hero-kicker::after {
    width: 44px;
  }

  .contact-hero-content h1 {
    margin-bottom: 16px;
    font-size: 2.3rem;
    line-height: 0.98;
  }

  .contact-hero-content p {
    font-size: 0.98rem;
    line-height: 1.6;
  }
}

/* ! =========================
   CONTACT CONSULTATION
========================= */

.contact-consultation-section {
  padding: 80px 0;
  background: transparent;
}

.contact-consultation-wrapper {
  width: min(100% - 32px, 1320px);
  margin: 0 auto;
}

.contact-consultation-content {
  max-width: 570px;
  padding-top: 0;
}

/* Kicker */

.contact-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: #263444;
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.contact-section-kicker::after {
  content: "";
  width: 54px;
  height: 3px;
  border-radius: 999px;
  background: #00b2e9;
}

/* Title */

.contact-consultation-content h2 {
  max-width: 560px;
  margin-bottom: 2rem;
  color: #263444;
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.055em;
}

/* Testo: riutilizziamo about-media-text */

.contact-consultation-content .about-media-text {
  max-width: 560px;
}

.contact-consultation-content .about-media-text p {
  margin-bottom: 22px;
}

/* ! =========================
   FORM CARD
========================= */

.contact-form-card {
  width: 100%;
}

/* =========================
   ANGIE FORM OVERRIDE
========================= */

.contact-form-card form.angieform {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(26px, 3vw, 40px) !important;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 20px;
  background: #ffffff !important;
  color: #263444 !important;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.1);
  box-sizing: border-box;
  color-scheme: light;
}

/* =========================
   CONTACT FIELDS GRID
========================= */

.contact-form-card .contact-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  column-gap: 18px;
  row-gap: 18px;

  width: 100%;
  margin-bottom: 18px;
}

/* Nome / Cognome / Email / Telefono */

.contact-form-card .contact-fields-grid .contact-field-half {
  grid-column: span 1;

  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;

  margin: 0 !important;
}

/* Messaggio */

.contact-form-card .contact-fields-grid .contact-field-full {
  grid-column: 1 / -1;

  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;

  margin: 0 !important;
}

/* Input */

.contact-form-card .contact-fields-grid input,
.contact-form-card .contact-fields-grid select,
.contact-form-card .contact-fields-grid textarea {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;

  box-sizing: border-box !important;
}

/* Textarea */

.contact-form-card .contact-fields-grid textarea {
  width: 100% !important;
  min-height: 150px;
}

/* =========================
   REMOVE OLD SPACING
========================= */

.contact-form-card form.angieform > p,
.contact-form-card form.angieform .form-group,
.contact-form-card form.angieform .field-wrapper {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* =========================
   LABELS
========================= */

.contact-form-card form.angieform label {
  display: block;
  width: 100%;

  margin-bottom: 7px;

  color: #17202b;

  font-size: 0.88rem;
  line-height: 1.3;
  font-weight: 700;
}

/* =========================
   INPUTS
========================= */

.contact-form-card
  form.angieform
  input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.contact-form-card form.angieform select,
.contact-form-card form.angieform textarea,
.contact-form-card form.angieform .form-control,
.contact-form-card form.angieform .form-select {
  display: block;

  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 50px;

  margin: 0 !important;
  padding: 12px 14px;

  border: 1px solid #d6dee7;
  border-radius: 8px;

  background: #ffffff !important;
  color: #17202b;

  font-family: inherit;
  font-size: 0.92rem;

  outline: none;
  box-shadow: none;

  box-sizing: border-box !important;

  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

/* Gli input dei campi half riempiono la loro colonna */
.contact-form-card
  form.angieform
  .contact-field-half
  input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.contact-form-card form.angieform .contact-field-half select {
  width: 100% !important;
  max-width: none !important;
}

/* =========================
   MESSAGE
========================= */

.contact-form-card form.angieform textarea,
.contact-form-card form.angieform textarea.form-control {
  display: block;

  width: 100% !important;
  max-width: none !important;
  min-width: 100% !important;

  min-height: 150px;

  resize: vertical;
  box-sizing: border-box !important;
}

/*
 * Ulteriore sicurezza:
 * se il wrapper contiene textarea,
 * viene comunque esteso.
 */
.contact-form-card form.angieform > .contact-field-full textarea {
  width: 100% !important;
  max-width: none !important;
}

/* =========================
   PLACEHOLDER
========================= */

.contact-form-card form.angieform input::placeholder,
.contact-form-card form.angieform textarea::placeholder {
  color: #929ca8;
  opacity: 1;
}

/* =========================
   FOCUS
========================= */

.contact-form-card
  form.angieform
  input:not([type="checkbox"]):not([type="radio"]):focus,
.contact-form-card form.angieform select:focus,
.contact-form-card form.angieform textarea:focus,
.contact-form-card form.angieform .form-control:focus,
.contact-form-card form.angieform .form-select:focus {
  border-color: #00b2e9;

  box-shadow: 0 0 0 4px rgba(0, 178, 233, 0.1);
}

/* =========================
   CHECKBOX / PRIVACY
========================= */

.contact-form-card form.angieform input[type="checkbox"] {
  width: 19px !important;
  height: 19px;

  flex: 0 0 19px;

  margin: 0 8px 0 0 !important;

  border: 1px solid #9aa7b4;
  border-radius: 4px;

  accent-color: #00b2e9;

  cursor: pointer;
}

.contact-form-card form.angieform .form-check {
  grid-column: 1 / -1 !important;

  margin: 0 !important;
}

.contact-form-card form.angieform .form-check-label {
  margin-bottom: 0;

  color: #303945;

  font-size: 0.82rem;
  font-weight: 500;
}

.contact-form-card form.angieform a {
  color: #008ec2;
  text-decoration: underline;

  transition: color 0.2s ease;
}

.contact-form-card form.angieform a:hover {
  color: #006e98;
}

/* =========================
   SUBMIT
========================= */

.contact-form-card form.angieform button[type="submit"],
.contact-form-card form.angieform input[type="submit"],
.contact-form-card form.angieform .btn-primary {
  grid-column: 1 / -1 !important;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100% !important;
  max-width: none !important;
  min-height: 52px;

  margin: 0 !important;
  padding: 0 24px;

  border: 0;
  border-radius: 999px;

  background: linear-gradient(90deg, #3f6fd7 0%, #00b2e9 100%) !important;

  color: #ffffff !important;

  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.035em;
  text-transform: uppercase;

  cursor: pointer;

  box-shadow: 0 12px 28px rgba(0, 178, 233, 0.24);

  box-sizing: border-box;

  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.contact-form-card form.angieform button[type="submit"]:hover,
.contact-form-card form.angieform input[type="submit"]:hover,
.contact-form-card form.angieform .btn-primary:hover {
  transform: translateY(-2px);

  box-shadow: 0 16px 34px rgba(0, 178, 233, 0.34);
}

/* =========================
   ERROR MESSAGES
========================= */

.contact-form-card form.angieform .errorlist,
.contact-form-card form.angieform .invalid-feedback,
.contact-form-card form.angieform .text-danger {
  color: #cf3445;

  font-size: 0.78rem;
  line-height: 1.4;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 991.98px) {
  .contact-consultation-section {
    padding: 68px 0;
  }

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

  .contact-consultation-content .about-media-text {
    max-width: 100%;
  }
}

@media (max-width: 767.98px) {
  .contact-consultation-section {
    padding: 52px 0;
  }

  .contact-consultation-wrapper {
    width: min(100% - 24px, 1320px);
  }

  .contact-consultation-content h2 {
    font-size: 2rem;
  }

  .contact-form-card form.angieform {
    padding: 24px 20px !important;
    border-radius: 16px;

    /* Mobile: tutti i campi su una colonna */
    grid-template-columns: minmax(0, 1fr) !important;

    column-gap: 0 !important;
    row-gap: 16px !important;
  }

  .contact-form-card .contact-fields-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 16px;
  }

  .contact-form-card .contact-fields-grid .contact-field-half,
  .contact-form-card .contact-fields-grid .contact-field-full {
    grid-column: 1 / -1;
  }
}

/* ! =========================
   WORLDWIDE CENTERS
========================= */

.worldwide-centers-section {
  padding: 80px 0;
  background: transparent;
}

.worldwide-centers-wrapper {
  width: min(100% - 32px, 1320px);
  margin: 0 auto;
}

.worldwide-centers-card {
  padding: clamp(24px, 3vw, 36px);
  border-radius: 26px;
  background: linear-gradient(180deg, #f7fafc 0%, #eef4f8 100%);
  border: 1px solid rgba(15, 23, 42, 0.05);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.06);
}

/* Left column */

.worldwide-centers-left h2 {
  max-width: 360px;
  margin: 0 0 28px;
  color: #16395f;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.055em;
}

.worldwide-centers-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: #16395f;
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.worldwide-centers-kicker::after {
  content: "";
  width: 54px;
  height: 3px;
  border-radius: 999px;
  background: #00b2e9;
}

/* Map */

.worldwide-map-visual {
  width: 100%;
  max-width: 520px;
}

.worldwide-map-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.worldwide-map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  border-radius: 20px;
  border: 1px dashed rgba(0, 178, 233, 0.3);
  background:
    radial-gradient(
      circle at center,
      rgba(0, 178, 233, 0.08) 0%,
      rgba(255, 255, 255, 0) 68%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.72) 0%,
      rgba(255, 255, 255, 0.4) 100%
    );
  color: #7b8a9a;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  padding: 20px;
}

/* Right grid */

.worldwide-centers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.worldwide-center-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 138px;
  padding: 20px 20px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.worldwide-center-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
  border-color: rgba(0, 178, 233, 0.16);
}

.worldwide-center-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  color: #00b2e9;
}

.worldwide-center-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.worldwide-center-content h3 {
  margin: 0 0 10px;
  color: #16395f;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.worldwide-center-content h3 span {
  font-weight: 700;
}

.worldwide-center-content p {
  margin: 0 0 10px;
  color: #5e7187;
  font-size: 0.92rem;
  line-height: 1.45;
}

.worldwide-center-content a {
  color: #2f597e;
  font-size: 0.95rem;
  line-height: 1.3;
  font-weight: 800;
  text-decoration: none;
  transition: color 0.2s ease;
}

.worldwide-center-content a:hover {
  color: #00b2e9;
}

/* Responsive */

@media (max-width: 1199.98px) {
  .worldwide-map-placeholder {
    min-height: 320px;
  }
}

@media (max-width: 991.98px) {
  .worldwide-centers-section {
    padding: 68px 0;
  }

  .worldwide-centers-left h2 {
    max-width: 100%;
  }

  .worldwide-map-visual {
    max-width: 100%;
    margin-top: 10px;
  }
}

@media (max-width: 767.98px) {
  .worldwide-centers-section {
    padding: 52px 0;
  }

  .worldwide-centers-wrapper {
    width: min(100% - 24px, 1320px);
  }

  .worldwide-centers-card {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .worldwide-centers-left h2 {
    font-size: 2rem;
  }

  .worldwide-map-placeholder {
    min-height: 240px;
    border-radius: 16px;
  }

  .worldwide-centers-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .worldwide-center-item {
    min-height: auto;
    padding: 18px 16px;
  }
}
