/******************
    User custom CSS
    ---------------

    In this file you can add your own custom CSS
    It will be loaded last, so you can override any other property.
    Also, it will never be updated. So if you inheritate a core template and just add here some CSS, you'll still benefit of all the updates
*/
:root {
  --bs-blue: #0d6efd;
  --bs-indigo: #6610f2;
  --bs-purple: #6f42c1;
  --bs-pink: #d63384;
  --bs-red: #dc3545;
  --bs-orange: #FFBA68;
  --bs-yellow: #ffc107;
  --bs-green: #198754;
  --bs-teal: #20c997;
  --bs-cyan: #0dcaf0;
  --bs-white: #fff;
  --bs-gray: #6c757d;
  --bs-gray-dark: #343a40;
  --bs-gray-100: #f8f9fa;
  --bs-gray-200: #e9ecef;
  --bs-gray-300: #dee2e6;
  --bs-gray-400: #ced4da;
  --bs-gray-500: #adb5bd;
  --bs-gray-600: #6c757d;
  --bs-gray-700: #495057;
  --bs-gray-800: #343a40;
  --bs-gray-900: #212529;
  --bs-primary: #d5a770; /*edited*/
  --bs-secondary: #A27846;
  --bs-success: #4DD753;
  --bs-danger: #dc3232;
  --bs-warning: beige;
  --bs-info: #8146F6;
  --bs-light: #EEEFF7;
  --bs-dark: #1E1E1E;
  --bs-black60: #666666;
  --bs-cancel: #9094A7;
  --bs-primary-rgb: 20, 174, 92;
  --bs-secondary-rgb: 144, 148, 167;
  --bs-success-rgb: 77, 215, 83;
  --bs-danger-rgb: 255, 81, 95;
  --bs-warning-rgb: 255, 224, 70;
  --bs-info-rgb: 129, 70, 246;
  --bs-light-rgb: 238, 239, 247;
  --bs-dark-rgb: 30, 30, 30;
  --bs-black60-rgb: 102, 102, 102;
  --bs-cancel-rgb: 144, 148, 167;
  --bs-white-rgb: 255, 255, 255;
  --bs-black-rgb: 0, 0, 0;
  --bs-body-color-rgb: 33, 37, 41;
  --bs-body-bg-rgb: 255, 255, 255;
  --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-body-font-size: 1.14rem;
  --bs-body-font-weight: 400;
  --bs-body-line-height: 1.5;
  --bs-body-color: #212529;
  --bs-body-bg: #f1f4f6;
}

body {

    background-color: #f8f8f8;
    color:#101213;
    font-size:18px;
}

.progress-bar {
  background-color: var(--bs-primary);
}

.btn-primary {
  
 background-color: var(--bs-primary);
  border-color: #A27846;
}
.btn-primary:hover {

 background-color: var(--bs-primary);
  border-color:#ECEDDD;
}

.survey-welcome, .question-container {
    padding: 3em;
    background: #FFF;
    border-radius: 5px;
    margin-top:1em
}

@media only screen and (max-width: 767px) and (orientation: portrait) {
  .survey-welcome, .question-container {
    padding: 1em;
    border-radius: 0;
    margin-top:1em
}
}
.survey-description{
    padding-bottom: 1.5em;
    padding-top: 0;
}
.survey-name{
    padding-top: 1.5em;
    padding-bottom: 0;
}

#welcome-container{
 max-width:100%;   
}
.survey-name {
    padding-top: 0.5em;
    padding-bottom: 0;
}
.survey-welcome {
   padding-top: 3em;
   padding-bottom: 3em;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .btn-primary:active:focus, .btn-primary.dropdown-toggle.show, .btn-primary.dropdown-toggle.show:focus {
    color: #ffffff;
    background-color: #9E641C;
    border-color: var(--bs-primary);
}
.checkbox-item input[type=checkbox]:checked + label {
    color: var(--bs-primary);
}
.checkbox-item input[type=checkbox]:checked + label::after {
    background-color: transparent;
    color: var(--bs-primary);
}
.select-sortable-lists:not(.ranking-advanced-style) .ranking-sorted-items .sortable-item {
    border: 1px solid var(--bs-primary);
}
.checkbox-item input[type=checkbox]:checked + label::before {
    border-color: var(--bs-primary);
}
.btn-check:checked + .btn-primary, .btn-check:checked + .btn-primary:focus, .btn-check:focus:checked + .btn-primary {

    background-color: var(--bs-primary);
    border-color: var(--bs-primary);

}
.checkbox-item label::before {
    border: 3px solid #555353;
    background-color: #fff;
}

.btn-check + .btn-primary:hover {
    color: #ffffff;
    background-color: #D6BD9F;
    border-color: #D6BD9F;
    box-shadow: none;
}
.dropdown-menu > li > a:hover {
    color: #ffffff;
    background-color: #D6BD9F !important;
}

.alert-warning {
    border: 1.33px solid #ffb900;
    background-color: var(--bs-warning);
    color: #1E1E1E;
}
.text-danger {
    --bs-text-opacity: 1;
    color: var(--bs-danger) !important;
}
.top-container .progress {
    height: 10px;
    margin-bottom: 0;
}

.group-container .group-title {

    font-family: math;
    color:#555353;
}
 .group-title{  
     margin-bottom:0!important;
    
}
a {
    color: var(--bs-primary);
}
a {

    font-size: inherit;

}
a:hover {
    color:#722D0A;
}

.survey-description, .group-container .group-description {
    color: ##62A7D9;
    font-size: 1rem;
}
.large-heading{
    font-family:math;
}
.question-count-text {
    font-size: 1.2825rem;
    line-height: 24px;
    font-weight: 600;
   color: #707070;
}

.group-container .group-title {
   
    margin-top: 0;
    margin-bottom: 10px;
}
.space-col {
    margin-top: 1em;
    margin-bottom:0
}

body .top-container {
    margin-top: 0 !important;
}
.top-container {
    margin-bottom: 0;
}

.question-container .ls-question-message {
    color: #B8C3C6;

}
.ls-answers label, .answer-item label, .control-label {
    color: #555353;
}
.question-number{
     display: inline-block;
     color:white;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;

   background-color: #D4CFCF; 
  color: #ffffff !important;
  font-weight: bold;
  font-size: 14px;
  border-radius: 4px;
  margin-right: 12px;
  vertical-align: middle;
}

.form-control {
    color: #1E1E1E;
    border-color: #555353;
    font-size: 14px;
}
.select-sortable-lists:not(.ranking-advanced-style) .ranking-available-items .sortable-item {
    color: #555353;
}
.survey-description, .group-container .group-description {
    color: darkgoldenrod;
    font-size: 1rem;
}
.ls-label-question{
    color: #3B3939;
}
.question-container .ls-question-message {
    color: darkslategrey;
}
.radio-item input[type=radio]:checked + label::after {
    background-color:var(--bs-primary);
}
.radio-item input[type=radio]:checked + label {
    color: var(--bs-primary);
}
.radio-item input[type=radio]:checked + label::before {
    border-color: var(--bs-primary);
}
.radio-item input[type=radio]:checked + label::before {
    background-color:#ffffff;
}

.question-help-container .ls-questionhelp {
    position: relative;
    font-size: 14px;
    font-style: italic;
    border-radius: 6px;
    padding: 0;
    margin-top: 12px;
    font-weight: 400;
    color: slategrey;
}


.logo-container > img {
    max-height: 60px;
    padding: 5px;
    width: auto;
}
.privacy .checkbox-item label::before {
    border: 3px solid var(--bs-primary);;
}

@media only screen and (max-width: 767px) and (orientation: portrait) {
  .survey-name.large-heading {
    font-size: 26px; /* più piccolo e proporzionato */
    line-height: 1.25; /* compatta senza schiacciare */
    word-break: normal; /* evita spezzature brutte */
    hyphens: auto; /* abilitare sillabazione se disponibile */

  }
}
@media only screen and (max-width: 767px) {
  input[type="text"],
  input[type="email"],
  input[type="number"],
  input[type="url"],
  input[type="tel"],
  textarea {
    font-size: 16px !important;
  }
}
@media only screen and (max-width: 767px) {
  .logo-container > .logo {
    max-width: 200px;
    padding: 5px;
    height: auto;
  }
}

#survey-nav.navbar {
    background-color: #ffffff !important;
    box-shadow: 0 4px 10px -10px rgba(0, 0, 0, 0.6);
}

.form-heading {
    font-weight: 400;
    font-size: 1em;
    line-height: 24px;
}
.privacy {
    margin-top: 0;
    font-weight: 400;
    font-size: 0.855rem;
    line-height: 16px;
}

.alert-danger {
    background-color: #fdecea !important; /* rosato molto chiaro */
    color: #c94c48 !important; /* rosso pastello più soft */
    border-color: #f5c6cb !important; /* bordo rosa delicato */
    border-radius: 6px; /* opzionale: angoli morbidi */
}

.group-description{
    margin-top:0;
}
.question-text{
    display:inline-block;
}

.question-container {
     margin-bottom: 0 !important; 
}
.question-container{
    margin-left:0;
    margin-right:0;
}
@media only screen and (max-width: 767px) and (orientation: portrait) {
  .group-container .group-title {
    font-size: 38px; /* Ridimensionato per mobile */
    line-height: 1.2;
    margin-bottom: 0.5em;
  }
}
@media only screen and (max-width: 767px) {
  .question-number {
    display: none;
  }
}
.btn-primary:hover {
    color: #ffffff;
    box-shadow: 0px 0px 0px 3px rgba(224, 169, 114, 0.4);
}

.btn-primary:focus, .btn-primary:active, .btn-primary.active, .btn-primary:active:focus, .btn-primary.dropdown-toggle.show, .btn-primary.dropdown-toggle.show:focus {
    box-shadow: 4px 4px 0px rgba(224, 169, 114, 0.4);
}

.form-control:focus {
    box-shadow: 4px 4px 0 rgba(224, 169, 114, 0.2);
    border-color: #1E1E1E;
}
.ls-answers label, .answer-item label, .control-label {
    color: #716F6F;
}
.btn-outline-secondary:hover {
    color: #1E1E1E;
    border-color: #1E1E1E;
    box-shadow: 0px 0px 0px 3px rgba(224, 169, 114, 0.2);
}