/* Site wide */

@font-face {
  font-family: "Sequel";
  src: url("./../fonts/sequel-sans-book.otf");
  font-weight: 400;
}

@font-face {
  font-family: "Sequel";
  src: url("./../fonts/sequel-sans-bold.otf");
  font-weight: 600;
}

* {
  box-sizing: border-box;
}

body {
  color: #222949;
  font-family: 'Sequel', Arial, Helvetica, sans-serif;
  font-size: 14px;
  letter-spacing: 0.02em;
  line-height: 1.5;
  
  position: absolute;
  width: 100%;
  height: 100%;
  
  margin: 0;
}

@media screen and (min-width: 640px) and (min-height: 460px) {
  body {font-size: 17px;}
}

@media screen and (min-width: 960px) {
  body {font-size: 18px;}
}

@media screen and (min-width: 1208px) {
  body {font-size: 19px;}
}

@media screen and (min-width: 1400px) {
  body {font-size: 20px;}
}

@media screen and (min-width: 1620px) {
  body {font-size: 21px;}
}

a {
  text-decoration: none;
  color: #222949;
}

:focus {
  outline-style:none;
  box-shadow:none;
}

/* Device visibility */
.only-mobile {
  display: block;
}

.only-desktop {
  display: none;
}

@media screen and (min-width: 640px) {
  .only-mobile {
    display: none;
  }

  .only-desktop {
    display: block;
  }
}

/* TODO unify */
.is-hidden-mobile {
  opacity: 0;
}

@media screen and (min-width: 640px) {
  .is-hidden-mobile {
    opacity: 1;
  }
}

@media screen and (min-width: 640px) {
  form {
    margin-top: -0.25em !important;
  }
}

input,
select,
textarea {
  font-family: "Sequel";
  color: #222949;
  font-size: 1em;
}

input {
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-appearance: button;
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 1px solid #222949;
  border-radius: 0;
  margin-bottom: 20px;
  padding: 5px 0;
  width: 100%;
}

input.error,
textarea.error {
  margin-bottom: .25em;
}

input::placeholder,
textarea::placeholder {
  color: #AEBDC9;
}

textarea {
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid #222949;
  margin-bottom: 20px;
  width: 100%;
}

select {
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  background-color: transparent;
  border: none;
  background-image: url(./../../assets/images/dropdown-arrow.svg);
  background-repeat: no-repeat;
  background-position: center right;
  border-bottom: 1px solid #222949;
  border-radius: 0;
  display: inline-block;
  padding: 5px 0;
  width: 100%;
}

.select-wrapper {
  display: block;
  overflow: auto;
}

.select-item {
  margin-bottom: 20px;
}

@media screen and (min-width: 480px) {
  .select-item {
    width: calc(50% - 13px);
    float: left;
  }

  .select-item:nth-child(odd) {
    margin-right: 20px;
  }
}

input[type="submit"] {
  appearance: none;
  background-color: #fff;
  border: 1px solid #222949;
  transition: .15s background-color linear;
  margin-top: 4rem;
}

input[type="submit"]:hover {
  background-color: #222949;
  color: #fff;
}

/* Left column */

.static {
  background-color: #E2EAEE;
  position: fixed;
  height: calc(100% - 120px);
  width: 100%;
  top: 0;
  left: 0;
  z-index: 10;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* @media screen and (orientation: portrait) {
  .static.fix-height {
    height: calc(100vh - 200px);
  }
} */

@media screen and (min-width: 640px) {
  .static {
    width: 50vw;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    height: auto;
    overflow: auto;
    bottom: 0;
  }
  
  .static.fix-height {
/*     height: calc(100% - 30px); */
  }
}

/* Left column content */

.intestazione p,
.info p {
  margin: 0;
}

.professione {
  transition: opacity .15s ease;
}

.intestazione {
  margin-bottom: 30px;
}

@media screen and (min-height: 480px) {
  .intestazione {
    margin-bottom: 70px;
  }
}

@media screen and (min-width: 640px) and (min-height: 480px) {
  .intestazione {
    margin-bottom: 70px;
  }
}

/* Right column */

.content {
  background-color: #fff;
  bottom: 0;
  left: 0;
  overflow: auto;
  position: fixed;
  width: 100%;
  z-index: 10;
}

.accordion-content-text > *,
.simplebar-content > * {
  margin-top: 0;
}

.accordion-content-text h1 {
  font-size: 1em;
  border-bottom: 1px solid;
  display: inline;
  font-weight: 400;
  margin: 0;
}

.accordion-toggle {
  align-items: center;
  border-bottom: 1px solid #222949;
  display: block;
  display: flex;
  height: 40px;
  padding-left: 20px;
}

@media screen and (min-width: 640px) {
  .accordion-toggle  {
    padding-left: 30px;
  }
}

@media screen and (min-width: 640px) {
  .accordion-toggle {
    border-top: none;
    float: left;
    clear: left;
    height: 1.5rem;
    display: inline-flex;
    margin-bottom: 0.2em;
    padding-left: 0;
    border-bottom: 1px solid #222949;
  }
}

.accordion-content {
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition: height .3s ease;
}

@media screen and (min-width: 640px) {
  .accordion-content  {
    display: none;
  }
}

.accordion-toggle.is-open {
  font-weight: 600;
}

@media screen and (min-width: 640px) {
  .accordion-toggle.is-open {
    pointer-events: none;
  }
}

.accordion-content.is-active {
  height: calc(100vh - 180px);
  max-height: calc(100vh - 180px);
  -webkit-overflow-scrolling: touch;
  opacity: 1;
  border-bottom: 1px solid #222949;
}

/* Thank you, Safari */

@media screen and (orientation: portrait) and (max-width: 640px) {
  .accordion-content.is-active.fix-height {
    height: calc(100vh - 260px);
    max-height: calc(100vh - 260px);
  }
}

@media screen and (min-width: 640px) {
  .accordion-content.is-active {
    display: block;
/*     height: 100vh !important; */
    max-height: unset;
    overflow: auto;
    opacity: 1;
    border-bottom: none;
    border: 1px soldid red;
    height: 100%; 
/*     TODO */
  }
  
  .accordion-content.is-active .accordion-content-text .simplebar-content *:last-child {
/*     margin-bottom: 20px;  */
  }
}

.accordion-content-text {
/*   margin-bottom: 30px; */
/*   max-height: calc(100% - 40px); */
  max-height: 100%;
/*   overflow: auto; */
/*   border: 1px solid red; */
  padding: 20px;
  scrollbar-width: thin;
  scrollbar-color: #222949 #fff;
  -webkit-overflow-scrolling: touch;
}

.accordion-content-text::-webkit-scrollbar {
  width: 1px;
  background: transparent;
}


.accordion-content-text::-webkit-scrollbar-thumb {
  background: #222949
}

.accordion-content-text .is-underlined {
  margin-bottom: 1em;
}

.accordion-content-text .is-underlined > * {
  margin-top: 0;
  display: inline;
  border-bottom: 1px solid #222949;
}

@media screen and (min-width: 640px) {
  .accordion-content-text {
    padding: 30px;
  }
}

@media screen and (min-width: 640px) {
  .content {
    
    position: fixed;
    bottom: 0;
    left: auto;
/*     overflow: auto; */
    right: 0;
    top: 0;
    width: 50vw;
    
/*     border: 2px solid red !important; */
  }
}

.conferma .success {
  align-items: center;
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
}

/* Uniform */
input:not([type="radio"]), textarea {
  display: block;
}

.uniform__potty {
  position: absolute;
  left: -9999px;
}

.error {
  border: 1px solid red;
}

.error-text {
  color: red;
  margin-top: .25em;
}

.file-name a {
  border-bottom: 1px solid #222949;
}