html, body {
  height: auto;
  overflow-x: hidden;
}

body {
    background: url("../images/Sfondo2.jpg");
    font-family: 'Josefin Sans', sans-serif;
    font-size: 16px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #555;
}
 
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #00011c;
}
 
p {
    margin-bottom: 24px;
    line-height: 1.9;
}
 
label {
    font-size: 16px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #00011c;
}

#title-container {
    min-height: 460px;
    height: 100%;
    color: #6b6b6b;
    background-color: #e3e6e4;
    text-align: center;
    padding: 105px 28px 28px 28px;
    box-sizing: border-box;
    position: relative;
    box-shadow: 10px 8px 21px 0px rgba(204, 204, 204, 0.75);
    -webkit-box-shadow: 10px 8px 21px 0px rgba(204, 204, 204, 0.75);
    -moz-box-shadow: 10px 8px 21px 0px rgba(204, 204, 204, 0.75);
}
 
#title-container h2 {
    font-size: 45px;
    font-weight: 800;
    color: #6b6b6b;
    padding: 0;
    margin-bottom: 0px;
}
 
#title-container h3 {
    font-size: 25px;
    font-weight: 600;
    color: #6b6b6b;
    padding: 0;
}
 
#title-container p {
    font-size: 13px;
    padding: 0 25px;
    line-height: 20px;
}
 
.PCiLogo {
    width: 214px;
    margin-bottom: 15px;
}
 
#qbox-container {
    background: url("../images/Sfondo3.jpg");
    background-repeat: repeat;
    position: relative;
    padding: 62px;
    min-height: 630px;
    box-shadow: 10px 8px 21px 0px rgba(204, 204, 204, 0.75);
    -webkit-box-shadow: 10px 8px 21px 0px rgba(204, 204, 204, 0.75);
    -moz-box-shadow: 10px 8px 21px 0px rgba(204, 204, 204, 0.75);
}
 
#steps-container {
    margin: auto;
    max-width: 500px; 
    width: 100%;
    min-height: 420px;
    display: flex;
    vertical-align: middle;
    align-items: center;
}

.step {
    display: none;
}
 
.step h4 {
    margin: 0 0 26px 0;
    padding: 0;
    position: relative;
    font-weight: 500;
    font-size: 23px;
    font-size: 1.4375rem;
    line-height: 1.6;
}
 
button#prev-btn,
button#next-btn,
button#submit-btn {
    font-size: 17px;
    font-weight: bold;
    position: relative;
    width: 130px;
    height: 50px;
    background: #6b6b6b;
    margin: 0 auto;
    margin-top: 40px;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    transition: color .3s;
    text-align: center;
    color: #fff;
    border: 0;
    -webkit-border-bottom-right-radius: 5px;
    -webkit-border-bottom-left-radius: 5px;
    -moz-border-radius-bottomright: 5px;
    -moz-border-radius-bottomleft: 5px;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
}
 
button#prev-btn:after,
button#next-btn:after,
button#submit-btn:after {
    position: absolute;
    top: 90%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #575757;
    content: "";
    z-index: -2;
    transition: transform .3s;
}
 
button#prev-btn:hover::after,
button#next-btn:hover::after,
button#submit-btn:hover::after {
    transform: translateY(-80%);
    transition: transform .3s;
}
 
.progress {
    border-radius: 0px !important;
}
 
.q__question {
    position: relative;
}
 
.q__question:not(:last-child) {
    margin-bottom: 10px;
}
 
.question__input {
    position: absolute;
    left: -9999px;
}
 
.question__label {
    position: relative;
    display: block;
    line-height: 40px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    background-color: #fff;
    padding: 5px 20px 5px 50px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}
 
.question__label:hover {
    border-color: #6b6b6b;
}
 
.question__label:before,
.question__label:after {
    position: absolute;
    content: "";
}
 
.question__label:before {
    top: 12px;
    left: 10px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: inset 0 0 0 1px #ced4da;
    -webkit-transition: all 0.15s ease-in-out;
    -moz-transition: all 0.15s ease-in-out;
    -o-transition: all 0.15s ease-in-out;
    transition: all 0.15s ease-in-out;
}
 
.question__input:checked+.question__label:before {
    background-color: #6b6b6b;
    box-shadow: 0 0 0 0;
}
 
.question__input:checked+.question__label:after {
    top: 22px;
    left: 18px;
    width: 10px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}
 
.form-check-input:checked,
.form-check-input:focus {
    background-color: #6b6b6b !important;
    outline: none !important;
    border: none !important;
}
 
input:focus {
    outline: none;
}
 
#input-container {
    display: inline-block;
    box-shadow: none !important;
    margin-top: 36px !important;
}
 
label.form-check-label.radio-lb {
    margin-right: 15px;
}
 
#q-box__buttons {
    text-align: center;
}
 
input[type="text"],
input[type="email"] {
    padding: 8px 14px;
}
 
input[type="text"]:focus,
input[type="email"]:focus {
    border: 1px solid #6b6b6b;
    border-radius: 5px;
    outline: 0px !important;
    -webkit-appearance: none;
    box-shadow: none !important;
    -webkit-transition: all 0.15s ease-in-out;
    -moz-transition: all 0.15s ease-in-out;
    -o-transition: all 0.15s ease-in-out;
    transition: all 0.15s ease-in-out;
}
 
.form-check-input:checked[type=radio],
.form-check-input:checked[type=radio]:hover,
.form-check-input:checked[type=radio]:focus,
.form-check-input:checked[type=radio]:active {
    border: none !important;
    -webkit-outline: 0px !important;
    box-shadow: none !important;
}
 
.form-check-input:focus,
input[type="radio"]:hover {
    box-shadow: none;
    cursor: pointer !important;
}
 
#success {
    display: none;
}
 
#success h4 {
    color: #6b6b6b;
}
 
.back-link {
    font-weight: 700;
    color: #6b6b6b;
    text-decoration: none;
    font-size: 18px;
}
 
.back-link:hover {
    color: #575757;
}
 
#preloader-wrapper {
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
}
 
#preloader {
    background-image: url("../images/logoZIVI4.png");
    width: 120px;
    height: 120px;
    border-top-color: #fff;
    border-radius: 0%;
    display: block;
    position: relative;
    top: 50%;
    left: 50%;
    margin: -75px 0 0 -75px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
    z-index: 1001;
}
 
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
 
@keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
 
#preloader-wrapper .preloader-section {
    width: 51%;
    height: 100%;
    position: fixed;
    top: 0;
    background: #F7F9FF;
    z-index: 1000;
}
 
#preloader-wrapper .preloader-section.section-left {
    left: 0
}
 
#preloader-wrapper .preloader-section.section-right {
    right: 0;
}
 
.loaded #preloader-wrapper .preloader-section.section-left {
    transform: translateX(-100%);
    transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
}
 
.loaded #preloader-wrapper .preloader-section.section-right {
    transform: translateX(100%);
    transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
}
 
.loaded #preloader {
    opacity: 0;
    transition: all 0.3s ease-out;
}
 
.loaded #preloader-wrapper {
    visibility: hidden;
    transform: translateY(-100%);
    transition: all 0.3s 1s ease-out;
}
 
@media (min-width: 990px) and (max-width: 1199px) {
    #title-container {
        padding: 80px 28px 28px 28px;
    }
    #steps-container {
        width: 85%;
    }
}
 
@media (max-width: 991px) {
    #title-container {
        padding: 30px;
        min-height: inherit;
    }
}
 
@media (max-width: 767px) {
    #qbox-container {
        padding: 20px;          
        min-height: auto;       
    }
    #steps-container {
        width: 100%;
        min-height: 380px;      
    }
    #title-container {
        padding: 20px;
        min-height: inherit;
    }
} 

@media (max-width: 560px) {
    #qbox-container {
        padding: 15px;
    }
    #title-container h2 {
        font-size: 32px;
    }
    #title-container h3 {
        font-size: 20px;
    }
    label,
    input,
    .form-control {
        font-size: 14px;
    }
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.75rem 1rem;
    margin-top: 0.75rem;
}

.partner-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.partner-item .form-check {
    position: relative;
    margin: 0;
}

.partner-item .form-check-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.partner-item .form-check-label {
    display: block;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #dde2ee;
    background-color: #ffffff;
    cursor: pointer;
    transition: background-color 0.15s ease,
                color 0.15s ease,
                border-color 0.15s ease;
}

.partner-item .form-check-input:checked + .form-check-label {
    background-color: #6b6b6b;
    color: #ffffff;
    border-color: #6b6b6b;
}

.partner-item .form-control-sm {
    font-size: 0.85rem;
}

#partner_none_group .form-check {
    position: relative;
    margin-top: 0.25rem;
}

#partner_none_group .form-check-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

#partner_none_group .form-check-label {
    display: block;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #dde2ee;
    background-color: #ffffff;
    cursor: pointer;
    transition: background-color 0.15s ease,
                color 0.15s ease,
                border-color 0.15s ease;
}

#partner_none_group .form-check-input:checked + .form-check-label {
    background-color: #6b6b6b;
    color: #ffffff;
    border-color: #6b6b6b;
}

@media (max-width: 768px) {
    .partner-grid {
        grid-template-columns: 1fr;
    }
}

.comp-section {
    background-color: #f4f6fb;
    border-radius: 12px;
    border: 1px solid #e1e6f0;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

.comp-section .form-label {
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.skills-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skills-pills .form-check,
.patenti-grid .patente-item .form-check {
    position: relative;
    display: inline-block;
    margin: 0;
}

.skills-pills .form-check-input,
.patenti-grid .patente-item .form-check-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.skills-pills .form-check-label,
.patenti-grid .patente-item .form-check-label {
    display: inline-block;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #dde2ee;
    background-color: #ffffff;
    cursor: pointer;
    transition: background-color 0.15s ease,
                color 0.15s ease,
                border-color 0.15s ease,
                box-shadow 0.15s ease;
}

.skills-pills .form-check-input:checked + .form-check-label,
.patenti-grid .patente-item .form-check-input:checked + .form-check-label {
    background-color: #6b6b6b;
    color: #ffffff;
    border-color: #6b6b6b;
    box-shadow: 0 0 0 0.12rem rgba(0, 0, 0, 0.08);
}

.patenti-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem 1rem;
    margin-top: 0.5rem;
}

.patente-item {
    padding: 0;
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

@media (max-width: 768px) {

    .skills-pills {
        flex-direction: column;
    }

    .skills-pills .form-check-label {
        width: 100%;
        text-align: left;
    }

    .patenti-grid {
        grid-template-columns: 1fr;
    }

    .patenti-grid .patente-item .form-check-label {
        width: 100%;
        text-align: left;
    }
}

.accordion-pci {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pci-section {
    border: 1px solid #e1e6f0;
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
}

.pci-header {
    width: 100%;
    background: #f4f6fb;
    padding: 0.9rem 1rem;
    border: none;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pci-header .arrow {
    transition: transform 0.25s ease;
}

.pci-header.active .arrow {
    transform: rotate(90deg);
}

.pci-content {
    display: none;
    padding: 0.8rem 1rem 1rem;
}

.pci-content.open {
    display: block;
}

.pci-pills .form-check {
    position: relative;
}

.pci-pills .form-check-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pci-pills .form-check-label {
    display: inline-block;
    padding: 0.45rem 0.9rem;
    margin: 0.2rem;
    border-radius: 999px;
    border: 1px solid #dde2ee;
    background-color: #ffffff;
    cursor: pointer;
    user-select: none;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.pci-pills .form-check-input:checked + .form-check-label {
    background-color: #6b6b6b;
    color: #fff;
    border-color: #6b6b6b;
}

@media (max-width: 768px) {
    .pci-pills .form-check-label {
        display: block;
        width: 100%;
    }
}

.review-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.review-box {
    background: #ffffff;
    border-radius: 8px;
    max-width: 700px;
    width: 95%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
    font-size: 0.9rem;
}

.review-content h6 {
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 4px;
}

.review-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #eee;
    padding: 4px 0;
}

.review-label {
    font-weight: 500;
}

.review-value {
    flex: 1;
    text-align: right;
    word-break: break-word;
}

@media (max-width: 576px) {
    .review-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .review-value {
        text-align: left;
    }
}

.radio-group-inline .form-check {
    margin-right: 1rem;
}

@media (max-width: 576px) {
    .radio-group-inline {
        display: flex;
        flex-wrap: wrap;
        gap: 0.25rem 1rem;
    }

    .radio-group-inline .form-check {
        margin-right: 0;
    }
}

@media (max-width: 991px) {

    .container.d-flex.align-items-center.min-vh-100 {
        display: block !important;
        align-items: stretch !important;
        min-height: auto !important;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    #qbox-container {
        padding: 20px 16px;
        min-height: auto;
        box-shadow: none;
        -webkit-box-shadow: none;
        -moz-box-shadow: none;
    }

    #steps-container {
        width: 100%;
        min-height: auto;
    }

    #title-container {
        padding: 20px;
        min-height: auto;
    }
}

@media (max-width: 576px) {

    #qbox-container {
        padding: 16px 12px;
        background-image: none;       
        box-shadow: none;
    }

    #title-container {
        box-shadow: none;
        padding: 16px 12px;
    }

    body {
        font-size: 15px;
        font-weight: 500;
    }
}

body.mode-intro #form-col { display: none; }

body.mode-quiz #left-intro-col { display: none; }

body.mode-quiz #form-col {
  margin-left: auto !important;
  margin-right: auto !important;
  float: none;
}

@media (min-width: 992px) {
  body.mode-quiz #form-col {
    max-width: 880px; 
  }
}

@media (max-width: 768px) {
  #form-box {
    min-height: auto !important;
  }

  .form-step {
    min-height: auto !important;
  }
}

@media (max-width: 768px) {
  .form-step {
    padding: 1.25rem 1rem;
  }
}

@media (max-width: 768px) {
  h4, h5 {
    margin-bottom: 0.75rem;
  }

  .mb-3 {
    margin-bottom: 0.75rem !important;
  }
}

.step-error {
  display: none;
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(220, 53, 69, .35);
  background: rgba(220, 53, 69, .10);
  color: #b02a37;
  font-size: 0.95rem;
}

.step-error.show {
  display: block;
}

.is-invalid {
  border-color: rgba(220, 53, 69, .55) !important;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, .12) !important;
}

body.mode-intro #form-col{
  display: none !important;
}

body.mode-quiz #left-intro-col{
  display: none !important;
}

@media (max-width: 768px) {

  #steps-container {
    align-items: flex-start !important;
    min-height: auto !important;
  }

  .step,
  .form-step {
    min-height: auto !important;
  }

  button#prev-btn,
  button#next-btn,
  button#submit-btn {
    margin-top: 14px !important;
    height: 44px !important;
  }

  #q-box__buttons {
    margin-top: 8px !important;
  }

  .step h4 {
    margin-bottom: 12px !important;
  }

  #input-container {
    margin-top: 12px !important;
  }
}
