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

.contact-page{
  padding: 34px 0 56px;
}

.contact-intro{
  max-width: 980px;
  margin: 0 auto 18px;
  background:  #d0dced;
  border: 1px solid rgba(0,0,0,0.06);
  border-left: 5px solid #3F6BB2;
  border-radius: 18px;
  padding: 20px 24px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
  margin-bottom: 24px;
}

.contact-intro p{
  margin: 0;
  color: rgba(0,0,0,0.78);
  font-size: 19px;
  line-height: 1.7;
}

.contact-intro strong{
  color: rgba(0,0,0,0.92);
  font-weight: 700;
}

.contact-direct-box{
  max-width: 980px;
  margin: 22px auto 0;
  padding: 14px 20px;
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
  background: #f7f9fc;
  border: 1px dashed #3F6BB2;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  font-size: 19px;
  color: rgba(0,0,0,0.78);
}

.contact-direct-box .mail-icon{
  color: #3F6BB2;
  display: flex;
}

.contact-direct-box a{
  color: #3F6BB2;
  font-weight: 800;
  text-decoration: none;
}

.contact-direct-box a:hover{
  text-decoration: underline;
}


/* card */
.contact-card{
  max-width: 980px;
  margin: 0 auto;
  border-radius: 18px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}


.req{ color: #e36a2a; font-weight: 800; }

/* note messaggi */
.contact-note{
  display: none;
  margin: 0 0 12px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(12,131,242,0.08);
  border: 1px solid rgba(12,131,242,0.20);
  color: rgba(0,0,0,0.78);
  font-size: 14px;
}

/* griglia campi */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

.field{ display:flex; flex-direction: column; gap: 7px; }
.field-full{ grid-column: 1 / -1; }

.contact-form label{
  font-size: 13px;
  font-weight: 700;
  color: rgba(0,0,0,0.70);
}

.contact-form .textbox,
.contact-form .textbox2{
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.14);
  background: #f6f7f9;
  color: rgba(0,0,0,0.86);
  padding: 11px 12px;
  font-size: 14px;
}

.contact-form .textbox::placeholder,
.contact-form .textbox2::placeholder{
  color: rgba(0,0,0,0.45);
}

.contact-form .textbox:focus,
.contact-form .textbox2:focus{
  border-color: rgba(12,131,242,0.55);
  box-shadow: 0 0 0 4px rgba(12,131,242,0.14);
  outline: none;
  background: #ffffff;
}

/* button */
.contact-actions{
  margin-top: 14px;
}

.contact-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: #3F6BB2;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.contact-btn:hover{
  filter: brightness(0.95);
}

.privacy-wrap{
  margin: 14px 0 6px;
  display: grid;
  gap: 8px;
}

.privacy-check{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.4;
  color: #1f2937;
  cursor: pointer;
}

.privacy-check input{
  margin-top: 3px;
}

.privacy-link{
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: #3F6BB2;              
  text-decoration: none;
}

.privacy-link:hover{
  text-decoration: underline;
}


.captcha-wrap{
  margin: 16px 0 18px;
}

/* ===============================
   MESSAGGI DI ESITO FORM
   =============================== */

.contact-note{
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 24px;
  box-shadow: none;
  border-radius: 0;
}


/* base comune */
.notification_ok,
.notification_error{
  border-radius: 16px;
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.55;
  box-shadow: 0 14px 36px rgba(0,0,0,0.08);
}

/* SUCCESSO */
.notification_ok{
  background: linear-gradient(180deg, #f0f8ff 0%, #ffffff 100%);
  color: #0c4a6e;
  border: 1px solid #0c4a6e ;
}

/* ERRORE */
.notification_error{
  background: linear-gradient(180deg, #fff5f5 0%, #ffffff 100%);
  color: #CC0000;
  border: 1px solid #CC0000 ;
}

.notification_error br{
  content: "";
  display: block;
  margin-bottom: 6px;
}


/* =========================================================
   CONTACT — Mobile 
   ========================================================= */
@media (max-width: 820px){

  .contact-page{
    padding: 18px 0 34px;
  }

  .contact-intro{
    max-width: none;
    margin: 0 var(--page-pad) 14px;
    padding: 16px 16px;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  }

  .contact-intro p{
    font-size: 15px;
    line-height: 1.65;
  }

  .contact-card{
    max-width: none;
    margin: 0 var(--page-pad);
    padding: 18px 16px;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  }

  .contact-grid{
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-form label{
    font-size: 13px;
  }

  .contact-form .textbox,
  .contact-form .textbox2{
    padding: 12px 12px;
    font-size: 14px;
    border-radius: 12px;
  }

  .captcha-wrap{
    margin: 14px 0 16px;
    overflow: hidden;
  }

  .contact-actions{
    margin-top: 12px;
  }

  .contact-btn{
    width: 100%;
    height: 46px;
    border-radius: 12px;
  }

  .contact-direct-box{
    max-width: none;
    margin: 14px var(--page-pad) 0;
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 15px;
    text-align: center;
    flex-wrap: wrap;          
    row-gap: 6px;
  }

  .contact-direct-box a{
    word-break: break-word;   
  }

  /* messaggi esito */
  .notification_ok,
  .notification_error{
    padding: 14px 14px;
    border-radius: 14px;
  }
}