#app {
  margin-top:40px;
  margin-bottom:40px;
}

#app form.row {
  display: flex;
  flex-wrap: wrap;
  background-color:#E0E0E0;
  padding:20px;
  border-radius: 4px;
  margin-bottom:60px;
  margin-top:60px;
}

#app form.row label {
  font-weight: 400;
}

#app form.row .right label {
	margin-bottom:0;
}

#app form.row .right {
	border-right: 1px solid #333;
	padding-right:5px;
}
#app form.row .right:last-child {
	border-right:none;
	padding-right: 0;
}
#app form.row .col {
  width:50%;
  padding:5px;
}
#app form.row .col-double {
  padding:5px;
  width: 100%;
}

#app form.row button {
  font-weight: 600;
  font-size:14px;
  letter-spacing:1px;
  text-transform: uppercase;
  padding:4px 6px;
  border-radius: 2px;
  background-color:#dd3333;
  border-radius:25px;
  width:100%;
  color:#FFF;
}

#app form.row button:hover {
  background-color:#b20000;
}
.html.header-button-1,
.back-to-top
{
  display: none!important;
}

.btn-add-service {
  background-color: #dd3333;
  color:#FFF;
  font-weight: 600;
  font-size:13px;
  letter-spacing:1px;
  border-radius:10px !important;
  text-transform: uppercase;
  cursor: pointer;
  padding: 8px 15px !important;
}

.btn-add-service:hover{
  background-color: #b20000;
}

.table {
  margin-top:10px;
}

.modal-services {
  position: fixed;
  top: 130px; /* spazio per il pulsante CHIUDI */
  left: 50%;
  transform: translateX(-50%);
  width: 98%;
  max-width: 500px;
  max-height: calc(100% - 150px); /* tiene conto dell'altezza totale + CHIUDI */
  padding: 20px;
  background: #fff;
  border-radius: 5px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}



.black-overlay {
  position:fixed;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background-color: rgba(0,0,0,0.8);
  z-index:10;
}

.modal-services ul {
  list-style: none;
  padding:0;
  margin:0;
}

.modal-services li input {
  display: none;
}

.modal-services li {
  width:98%;
  margin:5px auto;
  background-color:#f4f4f4;
  color:#000;
  display: flex;
  min-height: 30px;
  align-items: center;
  padding:5px;
}

.modal-services li.selected-voice {
  color:#FFF;
  background-color:#535353;

}

.modal-services li:hover {
  color:#FFF;
  background-color:#535353;
}


.confirm-modal {
	background-color: #dd3333;
	color:#FFF;
	padding:3px 6px;
	letter-spacing:1px;
	border-radius:10px !important;
	text-transform: uppercase;
	font-size: 16px;
	display: block;
	margin-right:1%;
	cursor: pointer;
	font-weight: 700;
	float:right;
	width:100%;
	text-align: center;
}

.confirm-modal:hover{
  background-color: #2cc16b;
}

.modal-services li label {
  font-weight: 600;
  text-transform: uppercase;
  margin:0!important;
  font-size:14px;
}

.modal-services li.selected-voice label {
  color:#FFF;
}

ul.services {
	list-style: none;
	margin:10px 0;
	padding:0;
}

ul.services li {
	min-height: 30px;
	width: 100%;
	align-items: center;
	justify-content: flex-start;
	padding:10px;
	background-color:#f4f4f4;
	margin-bottom:5px;
}
ul.services li strong {
	display: inline-block;
	margin-right: 10px;
	text-transform: uppercase;
	font-weight: 600;
}

@media only screen and (max-width:768px) {
  #app form.row .col {
    width:100%;
    padding:5px;
  }
}

span.right input[type=checkbox], span.right input[type=radio] {
	margin:0;
	margin-right:5px;
	margin-left:5px;
}
span.right {
	font-size:14px;
	display: inline-flex;
	align-items: center;
}

.span.right label {
	margin-bottom: 0!important;
	padding-bottom:0!important;
}

/* Modifiche di Antonio */
div.col-double.acceptance input#accept_privacy{margin-bottom:0px;}
span.field_required_asterisk {color:#c02b0a;}
.footer-wrapper .footer_cta{display:none !important;}

.buttonizer {
	display: none!important;
}

.overflow-hidden {
  overflow-y:hidden!important;
}

.service-description {
  width: 100%;
  font-size:10px;
}

.close-modal {
  font-size:12px;
  font-weight:600;
  cursor:pointer;
}

.modal-header {
  height:0;
  position:relative;
}

.modal-header .close-modal {
  font-weight: 500;
  font-size:18px;
  display: block;
  color:#FFF;
  position:absolute;
  z-index:999;
  top:-60px;
  right:-20px;
}
.modal-services ul {
  flex: 1 1 auto;
  min-height: 0; /* fondamentale */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 12px;
}
.modal-footer {
  flex-shrink: 0;
  margin-top: 12px;
}

@media only screen and (max-width:768px) {
  .modal-services {
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    height: calc(100% - 70px);
    margin: 0;
    padding: 16px 12px 12px;
    transform: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    box-shadow: none;
  }

  .modal-header {
    height: 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 8px;
  }
  
  .modal-header .close-modal {
    position: static; /* <-- non assoluto */
    font-size: 18px;
    color: #000;
    right:0;
    padding-right:15px;
    z-index: 2;
  }
  .modal-header .close-modal i {
    font-size:16px;
  }
  /*
  .modal-services ul {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 12px;
    -webkit-overflow-scrolling: touch;
  }
    */

  .modal-services li {
    padding: 10px;
    font-size: 14px;
    margin: 4px 0;
    border-radius: 4px;
  }
  /*
  .modal-footer {
    margin-top: auto;
  }
    */
    .modal-footer {
      flex-shrink: 0;
      margin-top: 12px;
    }

  .confirm-modal {
    font-size: 15px;
    padding: 12px 0;
    border-radius: 8px !important;
    width: 100%;
    background-color: #dd3333;
    font-weight: 700;
  }

  .confirm-modal:hover {
    background-color: #b20000;
  }
}


.servizi-help {
  font-size: 13px;
  color: #666;
  margin-top: 6px;
  line-height: 1.4;
}