/*
 Theme Name:   Divi Child Theme
 Theme URI:    https://gruppovillasilvia.info
 Description:  Child Theme for Divi
 Author:       Dipartimento Marketing
 Author URI:   https://divilife.com
 Template:     Divi
 Version:      1.0.0
*/

/* ========== BASE HEADER (MOBILE/TABLET) ========== */
@media (max-width: 980.99px) {
  .et_pb_section_0_tb_header.et_pb_section {
    padding: 0 !important;
    margin: 0 !important;
    min-height: 10vh !important;
    max-height: 10vh !important;
  }
  .et_pb_image_0_tb_header .et_pb_image_wrap img {
    max-height: 10vh !important;
    width: auto !important;
  }
  .et_pb_row .et_pb_column.et-last-child,
  .et_pb_row .et_pb_column:last-child {
    margin-right: 0 !important;
    width: 100% !important;
  }
}

/* ========== HAMBURGER (spessore linee) ========== */
.menu_lines .line {
  height: 4px !important;
  margin: 0;
  border-radius: 2px;
  background-color: #0F1B52 !important;
}

/* ========== sfondo sezione menu aperto bianco ========== */
body #page-container .ragnar_menu_giants {

	  background-color: #ffffff!important;

  position: fixed;
  top: 10vh !important;
  z-index: 9998 !important;
  margin-top: 0 !important;
}

/* Rimuove freccette globali del Ragnar */
.ragnar_menu_giants .et_pb_menu ul.et-menu > li > a::after {
  display: none !important;
  content: none !important;
  background: none !important;
}

/* CONTATORE NUMERICO */
.et_pb_number_counter .percent {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  font-size: 6em!important;
  font-weight: 700;
  color: #0F1B52;
  margin-bottom: 10px;
  line-height: 1.1;
}

.et_pb_number_counter h3 {
  font-size: 1.2rem;
  font-weight: 500;
  color: #333;
  margin-top: 0;
  margin-bottom: 0;
}

.et_pb_number_counter_0:after {
  content: none !important;
}

@media (max-width: 980px) {
  .et_pb_number_counter .percent {
    font-size: 4.5em;
  }
  .et_pb_number_counter h3 {
    font-size: 1rem;
  }
}
@media (max-width: 767px) {
  .et_pb_number_counter .percent {
    font-size: 3.5em;
  }
  .et_pb_number_counter h3 {
    font-size: 0.9rem;
  }
}

/* HEADER STICKY */
#ragnar_menu_giants_container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999 !important;
}

#page-container {
  padding-top: 10vh;
}

/* Colore freccette toggle */
.et_pb_toggle .et_pb_toggle_title:before,
.et_pb_toggle.et_pb_toggle_open .et_pb_toggle_title:before {
  color: #222 !important;
}

/* ========== CF7 STYLE: GVS-JOB FORM ========== */
.gvs-job .wpcf7-form {
  max-width: 880px;
  margin: 0 auto;
  font: 16px/1.45 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

.gvs-job .row {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}
@media (min-width: 781px) {
  .gvs-job .row.cols-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.gvs-job input[type="text"],
.gvs-job input[type="email"],
.gvs-job input[type="tel"],
.gvs-job input[type="url"],
.gvs-job input[type="date"],
.gvs-job select,
.gvs-job textarea,
.gvs-job input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
}

.gvs-job textarea {
  min-height: 120px;
  resize: vertical;
}

.gvs-job .gvs-submit {
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  cursor: pointer;
}

.gvs-job .wpcf7-response-output {
  margin-top: 12px;
}

.gvs-job .wpcf7-acceptance .wpcf7-list-item {
  margin-left: 0;
}

/* ORDINAMENTO MODULI SU MOBILE */
@media (max-width: 980px) {
  .modulo-3b { order: 1; }
  .modulo-2a { order: 2; }
  .modulo-3a { order: 3; }
  .modulo-2b { order: 4; }
}

