/* 
Theme Name: Alpine
Description: Custom theme for Wow
Author: WALLABI
Author URI: https://www.wallabi.it/
Template: hello-elementor
Version: 1.0.1
Text Domain: alpine-child-theme
*/

/*-----------------------------------------------------------------------------------------------*/
/*-------------------------------------- VARIABILI GLOBALI --------------------------------------*/

:root {

}

/*-----------------------------------------------------------------------------------------------*/

#site-header, .page-header {
	display:none;
}




.alpine-form-section {
  /* --- variabili: cambia qui i colori e avrai tutto allineato --- */
  --alpine-blue: #006FBA;
  --alpine-blue-hover: #0089E0;
  --alpine-bg: #000000;
  --alpine-text: #ffffff;
  --alpine-placeholder: rgba(255, 255, 255, 0.72);
  --alpine-error: #ff5d5d;
  --alpine-radius: 0px;

  background: var(--alpine-bg);
  color: var(--alpine-text);
  padding: 90px 24px 110px;
  /* font caricato in Elementor > Impostazioni sito > Font personalizzati */
  font-family: "ALPINE-PROTO-TYPE", "Archivo Narrow", "Arial Narrow", Arial, Helvetica, sans-serif;
  box-sizing: border-box;
}
.alpine-form-section *,
.alpine-form-section *::before,
.alpine-form-section *::after { box-sizing: border-box; }

.alpine-form-wrap { max-width: 740px; margin: 0 auto; }


a.link-alpine { color: #0089E0 !important;}
a.link-alpine:hover { color: #000000 !important;}

/* ---------- Titoli ---------- */
.alpine-form-title {
  margin: 0 0 20px;
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: clamp(30px, 4.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.alpine-form-title span { color: var(--alpine-blue); }

.alpine-form-sub {
  margin: 0 0 46px;
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: #fff;
}

/* ---------- Griglia campi ---------- */
.alpine-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.alpine-field { margin-bottom: 18px; }
.alpine-row .alpine-field { margin-bottom: 0; }

/* ---------- Input / select / textarea ---------- */
.alpine-form-section input[type="text"],
.alpine-form-section input[type="email"],
.alpine-form-section input[type="tel"],
.alpine-form-section input[type="url"],
.alpine-form-section input[type="number"],
.alpine-form-section select,
.alpine-form-section textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--alpine-blue);
  border-radius: var(--alpine-radius);
  color: #fff;
  font-family: inherit;
  font-weight: 400; /* ALPINE-PROTO-TYPE Normal */
  /*font-size: 16px;*/
  line-height: 1.3;
  padding: 17px 18px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.alpine-form-section input:focus,
.alpine-form-section select:focus,
.alpine-form-section textarea:focus {
  border-color: var(--alpine-blue-hover);
  box-shadow: inset 0 0 0 1px var(--alpine-blue-hover);
}
.alpine-form-section ::placeholder { color: var(--alpine-placeholder); opacity: 1; }

/* niente sfondo bianco con l'autocompletamento del browser */
.alpine-form-section input:-webkit-autofill,
.alpine-form-section input:-webkit-autofill:hover,
.alpine-form-section input:-webkit-autofill:focus,
.alpine-form-section textarea:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px #000 inset;
  caret-color: #fff;
  transition: background-color 9999s ease-in-out 0s;
}

/* ---------- Select con freccia custom ---------- */
.alpine-form-section select {
  padding-right: 56px;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006FBA' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 22px 22px;
}
.alpine-form-section select option { background: #000; color: #fff; }
.alpine-form-section select option[value=""] { color: var(--alpine-placeholder); }

/* ---------- Textarea ---------- */
.alpine-form-section textarea { min-height: 118px; resize: vertical; display: block; }

/* ---------- Checkbox "Sono interessato a" ---------- */
.alpine-checkboxes { margin: 6px 0 20px; }
.alpine-checkboxes-label { display: block; margin-top:14px; margin-bottom:10px; /*font-size: 16px;*/ color: #fff; }
.alpine-checkboxes .wpcf7-checkbox { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.alpine-form-section .wpcf7-list-item { margin: 0; }
.alpine-form-section .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  /*font-size: 16px;*/
  line-height: 1.35;
  color: #fff;
}

.alpine-form-section input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 2px solid var(--alpine-blue);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: background-color .15s ease, border-color .15s ease;
}
.alpine-form-section input[type="checkbox"]:checked { background: var(--alpine-blue); }
.alpine-form-section input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 2px;
  width: 6px;
  height: 12px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.alpine-form-section input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--alpine-blue-hover);
  outline-offset: 2px;
}

/* ---------- Privacy ---------- */
.alpine-privacy { margin: 26px 0 28px; }
.alpine-privacy .wpcf7-list-item label { align-items: flex-start; /*font-size: 15px;*/ }
.alpine-privacy .wpcf7-list-item-label { padding-top: 2px; }
.alpine-privacy-link {
  display: inline-block;
  padding-left: 0px;
  color: var(--alpine-blue);
  /*font-size: 15px;*/
  text-decoration: underline;
}
.alpine-privacy-link:hover { color: var(--alpine-blue-hover); }

a.link-celeste { color: #006FBA !important; }
a.link-celeste:hover { color: #000 !important; }

/* ---------- Bottone ---------- */
.alpine-form-section .alpine-submit,
.alpine-form-section input.wpcf7-submit {
  display: block;
  width: 100%;
  border: 0;
  border-radius: var(--alpine-radius);
  background: var(--alpine-blue);
  color: #fff;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 20px 24px;
  cursor: pointer;
  transition: background-color .2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.alpine-form-section input.wpcf7-submit:hover { background: var(--alpine-blue-hover); }
.alpine-form-section input.wpcf7-submit:disabled { opacity: .6; cursor: not-allowed; }

/* ---------- Stati CF7 ---------- */
.alpine-form-section .wpcf7-not-valid { border-color: var(--alpine-error) !important; }
.alpine-form-section .wpcf7-not-valid-tip {
  display: block;
  margin-top: 7px;
  color: var(--alpine-error);
  font-size: 13px;
  line-height: 1.3;
}
.alpine-form-section .wpcf7-response-output {
  margin: 26px 0 0 !important;
  padding: 15px 18px !important;
  border: 1px solid var(--alpine-blue) !important;
  border-radius: var(--alpine-radius);
  color: #fff !important;
  font-size: 15px;
}
.alpine-form-section .wpcf7-form.invalid .wpcf7-response-output,
.alpine-form-section .wpcf7-form.failed .wpcf7-response-output,
.alpine-form-section .wpcf7-form.aborted .wpcf7-response-output {
  border-color: var(--alpine-error) !important;
  color: #fff !important;
}
.wpcf7-response-output {
    color: #fff !important;
}
.alpine-form-section .wpcf7-spinner { display: block; margin: 14px auto 0; }
.alpine-form-section .wpcf7-form-control-wrap { display: block; }
.alpine-form-section p:empty { display: none; margin: 0; }

/* ---------- Mobile: campi a tutta larghezza, zero padding laterale ---------- */
@media (max-width: 680px) {

  .alpine-form-section { padding: 48px 0 0; }
  .alpine-form-wrap { max-width: 100%; }

  /* SE il contenitore Elementor ha un suo padding e non riesci
     ad azzerarlo dal builder, decommenta la riga qui sotto. */
  /*
  .alpine-form-section { width: 100vw; max-width: 100vw; margin-left: 50%; transform: translateX(-50%); }
  */

  .alpine-form-title { font-size: 30px; margin-bottom: 14px; padding: 0 16px; }
  .alpine-form-sub { font-size: 13px; margin-bottom: 28px; padding: 0 16px; }

  .alpine-row { grid-template-columns: 1fr; gap: 12px; margin-bottom: 12px; }
  .alpine-field { margin-bottom: 12px; }

  .alpine-form-section input[type="text"],
  .alpine-form-section input[type="email"],
  .alpine-form-section input[type="tel"],
  .alpine-form-section select,
  .alpine-form-section textarea {
    padding: 16px; /* il font resta 16px: sotto, iOS zooma da solo sul focus */
  }

  .alpine-form-section textarea { min-height: 185px; }

  .alpine-checkboxes { margin: 8px 0 14px; padding: 0 10px; }
  .alpine-checkboxes-label { font-size: 14px; margin-top:14px;margin-bottom:10px;}
  .alpine-checkboxes .wpcf7-checkbox { grid-template-columns: 1fr 1fr; gap: 12px 8px; }
  .alpine-form-section .wpcf7-list-item label { font-size: 14px; gap: 10px; }

  .alpine-form-section input[type="checkbox"] { flex: 0 0 20px; width: 20px; height: 20px; }
  .alpine-form-section input[type="checkbox"]:checked::after {
    left: 5px; top: 1px; width: 6px; height: 11px;
  }

  .alpine-privacy { margin: 14px 0 16px; padding: 0 10px; }
  .alpine-privacy .wpcf7-list-item label { font-size: 14px; }
  .alpine-privacy-link { padding-left: 30px; font-size: 14px; }

  .alpine-form-section input.wpcf7-submit { font-size: 19px; padding: 19px; }

  .alpine-form-section .wpcf7-response-output { margin: 18px 10px 0 !important; color: #fff !important;}
  .alpine-form-section .wpcf7-not-valid-tip { padding: 0 16px; }
}



/*-----------------------------------------------------------------------------------------------*/
/*------------------------------------------ DESKTOP --------------------------------------------*/
/*-----------------------------------------------------------------------------------------------*/

@media only screen and (min-width: 1024px) {

}	


/*-----------------------------------------------------------------------------------------------*/
/*-------------------------------------- TABLET VERTICALE ---------------------------------------*/
/*-----------------------------------------------------------------------------------------------*/

@media only screen and (min-width: 768px) and (max-width: 1023px) {  

}

/*-----------------------------------------------------------------------------------------------*/
/*-------------------------------------- MOBILE VERTICALE ---------------------------------------*/
/*-----------------------------------------------------------------------------------------------*/

@media only screen and (max-width: 767px) {

}