@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

:root {
  --brand-color-tec: #157638;
  --brand-color-ter: #ee7326;
  --gradient-tec: linear-gradient(120deg, rgba(27,160,80,0.9) 0%, rgba(10,89,97,0.9) 55%, rgba(10,89,97,0.9) 100%);
  --gradient-tre: linear-gradient(120deg, rgba(255,131,51,0.85), rgba(219,86,0,0.85) 55%, rgba(219,86,0,0.85)100%);
  --text-color: #424e5b;
}

html, body {
  min-height: 100vh;
}

body {
  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  background: #fff;

}

a {
  color: var(--text-color);
  text-decoration: none
}
a:hover {
  color: var(--text-color);
  text-decoration: underline;

}
.btn-primary {
  background-size: 200% auto;
  background-image: linear-gradient(90deg, #1ba050 0, #0a5961 55%, #0a5961);
  box-shadow: 0 9px 9px 0 rgba(21, 129, 64, 0.21), 0 21px 13px 0 rgba(21, 129, 64, 0.13);
  transition: all 0.5s ease-in-out;
  color: #fff !important;
  margin-top: 1rem;
  padding: 14px 35px !important;
  border: none;
  border-radius: 50px;
  font-weight: 700;
}
.btn-primary:hover {
  text-decoration: none; 
  box-shadow: none; 
  color: #fff; 
  transition: all .2s ease-in-out;  
  box-sizing: border-box; 
  background-position: 100%;  
}

.tre .btn-primary {
  background-image: linear-gradient(90deg, #ff8333, #db5600 55%, #db5600);
  box-shadow: 0 9px 9px 0 rgba(245,129,56,.21),0 21px 13px 0 rgba(245,129,56,.13)
}
.tec .logo img {
  height: 55px
}
.tre .logo img {
  height: 30px
}
.intestazioneAg {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-top: 2rem;
}

.intestazioneAg p {
  font-size: .85rem;
  margin-bottom: .15rem;
  line-height: 1.2
}
.intestazioneAg .label {
  text-transform: uppercase;
  margin-bottom: .3rem
}
.intestazioneAg h2 {
  font-weight: bold;
  margin-bottom: 0.3rem;
  font-size: 1.15rem;
}
.left-section {
  min-height: 100%;
  color: #fff;
  padding: 3rem;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  position: relative;
  padding-bottom: 4rem
}
.left-section .pin {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 90%
}
.left-section h1 {
  font-weight: 700;
  line-height: 2.5rem;
  margin: 2.5rem 0 1rem
}
.left-section .subtitle {
  font-size: 1.2rem;
  line-height: 1.5rem
}
.right-section {
  min-height: 50vh;
  border-radius: 36px;
  padding: 2rem;
  background: #fff;
  box-shadow: 0 9px 40px 0 rgba(0, 0, 0, .15);
  margin: -50px 1rem 1rem;   
  z-index: 1;
  position: relative;
}
.right-section h2 {
  font-size: 1.3rem;
  margin: 2rem 0;
  font-weight: bold;
}
.tec .left-section {
  background: var( --gradient-tec);
}
.tre .left-section {
  background: var( --gradient-tre);
}

form label:not(.form-check-label)  {
  font-size: .85rem;
  font-weight: bold;
  background: #fff;
  padding: 0 .5rem;
  margin-left: .5rem;
  position: absolute;
  top: -8px;
  z-index: 1;
}

.form-control {
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border: 2px solid #EAEAEA;
  min-height: 48px;
  position: relative;
  padding-left: 14px;
}
.form-control::placeholder,
.form-control option {
  font-size: .8rem;
  color: var(--text-color);
  opacity: .5
}
.form-check-label,
.form-check a {
  font-size: .75rem
}
.form-check-input[disabled]~.form-check-label a {
    color: var(--text-color) !important;
    opacity: 1 !important;
}

select {
  -webkit-appearance: menulist-button;
  color: var(--text-color);
  margin-bottom: .5rem !important
}

select:invalid {
  color: var(--text-color);
  opacity: .5
}

.tec .form-control:focus {
  border-color: var(--brand-color-tec);
  box-shadow: 0 0 0 .25rem #19875438;
}

.tre .form-control:focus {
  border-color: var(--brand-color-tre);
}
hr {
  margin: 1.5rem 0 .5rem
}
.legal-disclaimer {
  font-size: .85rem;
  opacity: .8;
  margin-bottom: 0
}
.modal {
  z-index: 1050;
}

.modal-content {

  font-size: .9rem;
  border-radius: 20px;
}
.modal-body {
  height: 60vh;
  overflow-y: auto;
}
.modal-content h2 {
  font-size: 1rem;
  font-weight: bold
}
.modal-content h5 {
  font-size: .95rem;
  font-weight: bold
}
.modal-content th {
  background: #ECECEC
}
.g-recaptcha >div{
	margin: 0 auto;
}
@media (min-width:768px) {
  .intestazioneAg{
    margin-top: auto;
    text-align: right
  }
}
@media (min-width:991px) {
	body {
		display: flex;
		align-items: center;
	}
  .left-section {
    border-radius: 36px 0 0 36px;
    padding-bottom: 3rem;
    justify-content: flex-start;
  }
  .left-section h1 {
    margin: -4rem 0 1.5rem
  }
  .right-section {
    border-radius:  0 36px 36px 0 ;
    box-shadow: none;
    margin: 0;
    position: unset;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
  }
  .btn-primary {
    width: auto !important
  }
  .intestazioneAg{
    margin-top: auto;
    text-align: left;
  }

  .paragrafoConsensoMk{
    font-size: 0.65rem;
      opacity: 0.9;
      font-style: italic;
  }
}