html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

.app-name small {
  font-size: 16px !important;
}

.sidebar {
  background-color: #182c78;
}

.form-floating label { 
  color: #999 !important;
}

/* Balloon */
.balloon {
  position: relative;
  border:0px;
  border-left: 3px solid #efefef;
  color: #333;
  padding: 25px 35px;
  border-radius: 26px;
  margin: 10px auto;
  text-align: left;

}

.logo-form {
    width: 100%;
    padding: 0 5% 0 5%;
}

.errore {
  color: crimson;
  font-size: 11px;
  text-transform: uppercase;
  display: none;
  font-weight: 700;
}

.errore-colore {
  color: crimson;
  text-transform: uppercase;
  font-weight: 700;
}

.successo {
  color: #28a745 ;
  font-weight: 700;
}
.nav {
    display: block;
    margin: 0 0 100px 30px;
}

.language-form-chooser {
  width: 100%;
  padding: 20px;
  text-align: right;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.language-form-chooser .user {
  display: inline-block;
  font-size: 14px;
  line-height: 14px;
  color: #666666;
  margin-left: 15px;
  border-left: 1px solid #efefef;
  padding-left: 15px;
}
.language-form-chooser .user b {
  color: black;
}

.choose-lang {
  width: 26px;
}

.lang-text-button {
  color: #333;
  display: inline-block;
  margin-left: 10px;
  font-size: 13px;
  text-transform: uppercase;
}

.infoAlreadyStart {
  background-color: #333;
  text-align: center;
  padding: 20px 30px;
  border-radius: 30px;
  color: #FFF;
}

.wrapper {
    min-height: 100vh;
    font-weight: 300;
    color: #fff;
    position: relative;
  } 
  .highSection {
    height: min-content;
  }

  /*
  .nav__wrapper {
    font-family: "Roboto Slab", serif;
    position: fixed;
    height: 100%;
    padding: 30px;
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-end;
    z-index: 9999;
  }
  */
  .nav__wrapper {
    position: fixed;
    height: 100%;
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    z-index: 9999;
    left:300px;
    top:20px;
  }

  .nav {
    margin: 100px 0 100px 30px;
  }
  .nav__counter {
    font-size: 24px;
    transition: all 0.15s ease-out;
  }
  .nav__title {
    font-size: 28px;
    font-weight: 300;
    margin: 0 0 0.25em;
    width: 200px;
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: height 0.3s ease-out, opacity 0.2s ease-out;
  }
  .nav__body {
    font-weight: 100;
    font-size: 18px;
    width: 200px;
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: height 0.3s ease-out, opacity 0.2s ease-out;
  }
  .nav li {
    position: relative;
    transition: all 0.3s ease-out;
    margin-bottom: 1em;
    width: 60px;
  }
  .nav li:after {
    content: "";
    display: block;
    border-top: 2px solid #999;
    height: 250px;
    width: 20px;
    position: absolute;
    left: -30px;
    top: 15px;
  }
  .nav li a {
    display: block;
    padding: 0;
    color: #333;
    transition: all 0.15s ease-out;
    text-decoration: none;
  }
  .nav li a:hover {
    background-color: transparent;
    padding-left: 1em;
  }
  .nav li a:focus {
    background-color: transparent;
  }
  .nav li.active {
    pointer-events: none;
    padding-left: 1em;
  }
  .nav li.active:after {
    width: 35px;
    height: 400px;
    top: 35px;
  }
  .nav li.active .nav__counter {
    font-size: 44px;
    font-family: 'Inter';
    font-weight: 700;
    margin-bottom: -8px;
    display: block;
  }
  .nav li.active .nav__title {
    height: 40px;
    opacity: 1;
    overflow: visible;
    text-align: left;
    font-size: 18px;
  }
  .nav li.active .nav__body {
    height: 100px;
    opacity: 1;
    overflow: visible;
  }

  .tvarRED {
    color: crimson !important;
    border: 2px solid crimson !important;
  }

  .tvarRED span {
    background-color: crimson !important;
  }

  .inadmissibleh4 {
    color: crimson !important;
  }


.choices__list--dropdown, .choices__list[aria-expanded] {
z-index: 30 !important;

}

@media screen and (max-width: 600px) {
    .nav__wrapper {
        display: none;
    } 

    .question-box {
      background-color: #FFF;
      padding: 0px;
      border-radius: 30px;
      width: 100%;
      margin-bottom: 20px;
      box-shadow: none !important;
    }

    .question-white-box {
      padding: 0px;
      box-shadow: none !important;
    }
}

.blu-line {
    border-left: 3px solid #00A2FF;
    padding-left: 20px;
    margin: 30px 0;
}

.content {
    font-size: 16px !important;
}

/* Safari/WebKit renders a single-line <select>'s full selected-option text with
   visible overflow, which pushes the page wider than the viewport (horizontal
   scroll on mobile) when the chosen option is long. Chrome/Firefox already clip
   it. Clip + ellipsis to match their behaviour.
   Excludes multiple/list selects, whose options must stay scrollable. */
.form-select:not([multiple]):not([size]) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashed-line-with-arrow {
    position: relative;
    width: 1px; /* Spessore della linea */
    height: 130px; /* Altezza della linea */
    background: repeating-linear-gradient(
      to bottom,
      gray 0,
      gray 5px,
      transparent 5px,
      transparent 10px
    );
    margin: 0 auto;
  }
  
  .dashed-line-with-arrow::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px; /* Posiziona la freccia subito sotto la linea */
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid gray; /* Colore della freccia */
  }
  
  .label {
    position: absolute;
    min-width: 200px;
    top: 50%; /* Posiziona il testo a metà della linea */
    left: 50%;
    transform: translate(-50%, -50%); /* Centra orizzontalmente e verticalmente il testo */
    background-color: white; /* Sfondo per rendere il testo più leggibile */
    padding: 0 5px;
    font-size: 12px; /* Carattere piccolo */
    color: gray; /* Colore del testo */
    text-transform: uppercase;
  }

  .choices__inner {
    border-radius: 6px !important;
  }

  .ticketId {
    text-transform: uppercase;
    font-size: 13px;
  }

.record  {
  margin-bottom: 15px;
  clear: both;
  width: 100%;
}

.baloon {
  font-size: 15px;
  padding: 2px 15px;
  border-radius: 6px;
  display: inline-block;
  line-height: 23px;
  max-width: 80%;
}

.recordList .left{
  float: left;
  clear: both;
}

.recordList .right{
  float: right;
  clear: both;
  text-align: right;
}

.record .me {
  background-color: #efefef;
 
}

.record .you {
  background-color: #df7b2d;
  color: #FFF;
}

.record small {
  font-size: 11px;
  display: block;
  color: #666666;
  clear: both;
  margin-top: 3px;
  padding: 0px 15px;
}

.adr-message {
  
}
.message-info {
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
}

.record-message {
  margin-bottom: 15px;
  clear: both;
  width: 100%;
}

.record-message .read {
  font-weight: normal !important;
}

.record-message .unread {
  font-weight: bold !important;
}



  /* Modal styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 9; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  box-sizing: border-box;
  z-index: 9999;
}

.modal-content {
  background-color: #fefefe;
  margin: 4% auto; /* 15% from the top and centered */
  padding: 30px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
  max-width: 800px; /* Responsive max-width */
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  border-radius: 8px;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(-20px); /* Start above the view */
  transition: opacity 0.3s ease, transform 0.3s ease;

}

.modal-content.show {
  opacity: 1;
  transform: translateY(0); /* Slide down to the view */
}

.close {
  color: #aaa;
  float: right;
  font-size: 48px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.question-footer {
  display: block;
  z-index: 9999999999999;
  text-align: center;
  background-color: #FFF;
}

.question-footer ul li {
  display: inline;
  font-size: 13px;
  padding: 0px 10px;
}

.question-footer ul li a {
  color: #333;
}



  @media (max-width: 1400px) {
    .nav__wrapper {
      left: 300px;
    }
  }

  @media (max-width: 1250px) {
    .nav__wrapper {
      display: none;
    }
  }

  @media (max-width: 1100px) {
    .logo-form {
      width:300px; 
      padding:5%;
    }
    .sidebar { 
      background-position: 160px bottom;
      text-shadow: 0px -1px 13px rgba(0,0,0,0.79) !important;
      height: 150px !important;
      overflow: hidden !important;
    }

    .sidebar h4 { 
      padding: 20px;
      padding-bottom: 40px;
    }
  }

@media (max-width: 768px) {

  .question-footer {
    margin: 0px !important;
    padding: 0px !important;    
    background-color: #efefef;
  } 

  .question-footer ul {
    padding: 0px !important;
    padding-top: 30px !important;
    padding-bottom: 30px !important;
  } 

  .question-footer ul li {
    text-align: center;
    display: block;
    font-size: 13px;
    padding: 0px 10px;
  }
}

label {
    width: 100%;
}

.edited-card {
  padding: 0px !important;
}

.card-input-element {
    display: none;
}

.card-input {
    margin: 10px;
    padding: 0px;
}

.card-input .card-header {
  font-weight: bold;
  -webkit-border-top-left-radius: 18px;
  -webkit-border-top-right-radius: 18px;
  -moz-border-radius-topleft: 18px;
  -moz-border-radius-topright: 18px;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

.card-input:hover {
    cursor: pointer;
}

.card-input-element:checked + .card-input {
     box-shadow: 0 0 2px 2px #2ecc71;
}

/*area di uplaod dei files */
.upload-area {
  border: 2px dashed #ccc;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  border-radius: 18px;
}

.upload-area.dragging {
  border-color: #28a745;
  background-color: #e6ffe6;
}

.file-preview {
  margin-top: 35px;
}

.file-preview img {
  max-width: 100px;
  margin-right: 10px;
}

.upload-status {
  margin-top: 10px;
  color: #28a745;
}

.upload-error {
  color: crimson;
}

.info-stop {
  border: 2px solid crimson;
  color: crimson;
  border-radius: 30px;
  margin-top: 30px;
  padding: 30px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 30px;
}

.error-icon {
  width: 30px;
  margin-bottom: 6px;
}

.okImage {
  max-width: 300px;
}

.file-input2 {
  text-align: right;
  border: 1px dashed #999999;
  padding: 5px;
  border-radius: 6px;
  width: 100%;
}

input[type="file"] {
  display: none;
}
.custom-file-upload {
  display: inline;
  padding: 6px 12px;
  cursor: pointer;
  background-color: #00A2FF;
  color: #FFF;
  font-weight: 700;
  border-radius: 16px;
}

.single-file {
  background-color: #FFF;
  display: inline-block;
  font-size: 11px !important;
  text-transform: uppercase !important;
  margin-right: 25px;
  color: #333 !important;
  border-radius: 16px;
  padding: 10px 15px;
  padding-right: 25px;
  position: relative;
  margin-bottom: 10px;
  width:29%;
}

.single-file small {
  color: #666666;
}


.single-file a {
  font-size: 11px !important;
  text-transform: uppercase !important;
  color: #333 !important;
  font-weight: 700;
}
.remove-image {
  border: 0px;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  background-color:crimson;
  color: #FFF;
  font-weight: 900;
  font-size: 12px;
  position: absolute;
  top: -5px;
  right: -20px;
}

.single-file-dark {
  background-color: #efefef !important;
}

.final-decision {
  background-color: #efefef;
  display: inline-block;
  font-size: 14px !important;
  text-transform: uppercase !important;
  color: #333 !important;
  border-radius: 16px;
  padding: 10px 15px;
  position: relative;
  margin-bottom: 10px;
  width:100%
}

.final-decision a {
  font-size: 14px !important;
  text-transform: uppercase !important;
  color: #333 !important;
  font-weight: 900;
}

.final-decision img {
  width: 40px;
  margin-right: 10px;
}







.feedback-upload-positive {
  font-size: 13px;
  color: #28a745;
}

.errore-login {
  color: crimson;
  padding-top: 20px;
  padding-bottom: 20px;
  font-weight: bold;
}

.successful-action {
  color: #28a745;
  padding-top: 20px;
  padding-bottom: 20px;
  font-weight: bold;
}

/*
.item-risposta small {
  color:#666666;
  font-size: 12px;
}
.item-risposta p {
  font-weight: 600;
  border-bottom: 1px solid #CCC;
  padding-bottom: 4px;
  background-color: #f8f8f8;
  padding: 7px 10px;
  border-radius: 3px;
}
*/

#resultMessage {
  font-weight: bold !important;
}


/* --- Styling Premium per Dati Read-Only (Tailwind Style) --- */

.item-risposta {
    background-color: #f8fafc; /* Slate-50: sfondo freschissimo */
    border: 1px solid #e2e8f0; /* Slate-200: bordo sottile */
    padding: 0.8rem 1.25rem;
    border-radius: 0.5rem; /* rounded-lg */
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* Shadow-sm */
}

/* Effetto hover per dare interattività */
.item-risposta:hover {
    background-color: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* Label (il tag small) */
.item-risposta small {
    display: block;
    text-transform: uppercase;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em; /* Tracking-widest */
    color: #64748b; /* Slate-500 */
    margin-bottom: 0.25rem;
}

/* Il dato (il tag p) */
.item-risposta p {
    margin: 0;
    
    font-size: 0.95rem;
    color: #1e293b; /* Slate-800 */
    font-weight: 500;
    word-break: break-all; /* Evita che ID lunghi rompano il layout su mobile */
}

.risposta-file-container {
  border: 1px dashed #ccc;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.missing-recap-info {
  color: #ffb121;
  text-transform: uppercase;
  font-size: 13px;
}

.procedure-progress {
  margin-bottom: 90px; 
}

.inner {
  margin-bottom: 100px;
}

.choices__list--multiple .choices__item {
  background-color: #00A2FF !important;
  border: 1px solid #0099f1 !important;
}

/*TIMELINE*/

.line_box {
  display: flex;
  margin-bottom: 40px;
}
.text_circle {
  flex: 1;
  text-align: center;
  position: relative;
}
.text_circle:after {
  background-color: #ccc;
  bottom: 1.25em;
  content: "";
  display: block;
  height: 3px;
  position: absolute;
  right: 0;
  width: 50%;
  z-index: -1;
}
.stav_projektu .text_circle:after,.stav_projektu .text_circle:before {background-color: #efefef;}
.line_box h4 {
  color: #182c78;
  font-weight: bold;
}
.line_box h4,.line_box p {
  font-size: 12px;
  margin-bottom: 0;
  padding: 0 5px;
}
.subline {
  position: absolute;
  right: -25px;
  bottom: -43%;
}
.subline:before {
  content: "";
  position: absolute;
  height: 15px;
  width: 15px;
  bottom: 14px;
  right: 15px;
  background-color: #182c78;
  border-radius: 50%;
  top: -25px;
}
.subline h6 {margin-bottom: 0;}
.timeline {margin: 40px 0;}
.text_circle.done:after,.text_circle.done + .text_circle:before,.stav_projektu .text_circle.done:after,.stav_projektu .text_circle.done + .text_circle:before {background-color: #97b7d8;}
.text_circle.sub:after {background-color: #97b7d8;}
.text_circle:not(:first-child):before {
  bottom: 1.25em;
  content: "";
  display: block;
  height: 3px;
  position: absolute;
  left: 0;
  width: 50%;
  z-index: -1;
  background-color: #ccc;
}
.stav_projektu .text_circle:not(:first-child):before {background-color: #ccc;}
.text_circle:last-child:after {width: 0;}
.circle {height: 100%;}
.tvar {
  height: 40px;
  width: 40px;
  border: 2px solid #182c78;
  border: 2px solid #CCCCCC;
  display: flex;
  position: relative;
  border-radius: 100%;
  top: -43px;
  margin: 3px auto;
  background-color: #fff;
}
.tvar span {
  margin: 23% auto;
  height: 20px;
  width: 20px;
  background-color: #97b7d8;
;
  border-radius: 100%;
  color: #fff;
}
.stav_projektu .tvar {border: 2px solid #ccc;}
.stav_projektu .done .tvar,.stav_projektu .sub .tvar {border: 2px solid #182c78;}
.subline h6 {color: #182c78;}
.timeline .card-header:hover {
  background-color: #ececec;
  cursor: pointer;
}

.keyphase {
    color: #000;
    background-color: lightgreen;
    display: inline;
}

/* Il wrapper che tiene tutto insieme */
.tabs-header-wrapper {
    display: flex;
    align-items: center; /* Allinea verticalmente al centro le tab e la linea */
    width: 100%;
    margin-bottom: 2rem;
}

/* Le tue pillole (leggermente modificate per il wrapper) */
.my-tabs {
    display: flex;
    padding: 0.25rem;
    background-color: #f1f5f9;
    border-radius: 0.75rem;
    gap: 0.25rem;
    flex-shrink: 0; /* Impedisce alle tab di rimpicciolirsi */
}

/* La linea premium che riempie lo spazio */
.filler-line {
    flex-grow: 1; /* Prende tutto lo spazio rimanente a destra */
    height: 1px;
    background-color: #e2e8f0; /* Stesso colore dei bordi che abbiamo usato prima */
    margin-left: 1.5rem; /* Distanza tra le tab e l'inizio della linea */
}


/* --- Singola Pillola --- */
.tab-item {
    padding: 0.5rem 1.25rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b; /* Slate-500 */
    border-radius: 0.6rem; /* Arrotondamento leggermente minore del container */
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    border: 1px solid transparent; /* Evita scatti al passaggio del mouse */
}

/* Hover sulle tab inattive */
.tab-item:hover:not(.active) {
    color: #1e293b; /* Slate-800 */
    background-color: rgba(255, 255, 255, 0.5); /* Effetto vetro opaco */
}

/* --- Tab Attiva (La Pillola Premium) --- */
.tab-item.active {
    background-color: #ffffff; /* Sfondo bianco puro */
    color: #c07b4c; /* Il tuo colore accento */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* Ombra morbida */
    font-weight: 600;
    /* Opzionale: un bordo sottilissimo per dare ancora più stacco */
    border: 1px solid rgba(192, 123, 76, 0.1); 
}

.logo-app-mobile {
  display: none;
}

/* --- MOBILE: Trasformazione in Navigator --- */
@media (max-width: 768px) {
    .tabs-header-wrapper {
        display: block; /* Rompiamo il flex del wrapper */
    }

    .filler-line {
        display: none; /* Sparisce la linea perché le tab occupano tutto */
    }

    .my-tabs {
        display: flex;
        width: 100%; /* Occupa tutto lo spazio disponibile */
        background-color: #f1f5f9;
        border-radius: 0.8rem; /* Un po' più tondo per il mobile */
        padding: 0.3rem;
        gap: 0.2rem;
    }

    .tab-item {
        flex: 1; /* FORZA le tab a dividersi lo spazio in parti uguali */
        text-align: center; /* Centra il testo nella "cella" della pillola */
        padding: 0.6rem 0.25rem;
        font-size: 0.8rem; /* Leggermente più piccolo per evitare che il testo esca */
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }

    .tab-item.active {
        box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Ombra più leggera su mobile */
    }
}

/* Contenitore del contenuto delle tab */
.tab-content {
  padding-bottom: 25px;
  padding-left: 10px;
  padding-right: 10px;
  background-color: #FFF;
}

.text-weight-light {
  font-weight: 300 !important;
}


/* nascondi in modo accessibile l'input (bootstrap già lo fa ma qui è esplicito) */
.btn-check {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* stato normale della card */
.btn-check + label.card {
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

/* hover leggero */
.btn-check + label.card:hover {
  background: #EDE574;  /* fallback for old browsers */
  background: -webkit-linear-gradient(to right, #E1F5C4, #EDE574);  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to right, #E1F5C4, #EDE574); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}

/* stato selezionato (usiamo sia :checked + label che .selected per fallback JS) */
.btn-check:checked + label.card,
label.card.selected {
  border: 2px solid #28a745;                /* bordo blu */
  box-shadow: 0 0 2px 2px #2ecc71;
  transform: translateY(-4px);
}

/* focus sull'input */
.btn-check:focus + label.card {
  box-shadow: 0 0 2px 2px #2ecc71;
}

.btn {
  text-transform: uppercase !important;
  font-weight: 500 !important;
  font-size: 15px !important;
}

.btn-green {
  background-color: #1d7d33 !important;
  color: #fff !important;
  font-size: 18px !important;
}

.lang-modal {
  display: block;
}

.recordList-message.messenger { padding: 10px; }

.msg-row { display: flex; flex-direction: column; margin-bottom: 12px; }
.msg-row.left { align-items: flex-start; }
.msg-row.right { align-items: flex-end; }

.msg-attachments {
  max-width: 100%;
  overflow:hidden;
}

.msg-bubble {
  max-width: 75%;
  padding: 10px 12px;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
  word-wrap: break-word;
}

.adr-message { background: #f1f3f5; float:left; }
.user-message { background: #dbeafe; float:right; } /* azzurrino */
.msg-bubble.unread { opacity: 1; }
.msg-bubble.read { opacity: .95; }

.message-info { opacity: .75; margin-bottom: 4px; }

.lockedDiscussion {
  border:2px dashed #efefef;
  padding: 10px 20px;
  border-radius: 20px;
  margin-top: 40px;
}



/* iPhone X ----------------------------------- */
@media only screen and (device-width : 375px) and (device-height : 812px) and (-webkit-device-pixel-ratio : 3) {
 .subline:before {top: -43px;}
}
@media only screen and (device-width : 812px) and (device-height : 375px) and (orientation : landscape) and (-webkit-device-pixel-ratio : 3) {
 .subline:before {top: -31px;}
}
/* iPad portrait ----------------------------------- */
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) {
 .subline:before {top: -29px;}
}
/* mobile width till 767px ----------------------------------- */
@media (max-width: 767px){
 .subline:before {top: -30px;}
}
/* Portrait iPad Pro */
@media only screen and (min-width: 1024px) and (max-height: 1366px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 1.5) {
 .subline:before {top: -23px;}
}
/* mobile width till 480px ----------------------------------- */
@media (max-width: 480px){
 .subline:before {top: -43px;}
}


@media (max-width: 1300px) {
  .single-file {
    width: 44% !important;
  }
}


@media (max-width: 768px) {

  .marginMobile {
    margin-top: 16px !important;
  }

  .single-file {
    display: block;
    width: 100% !important;
  }
  .lang-mobile-selector {
    /*display: block;*/
    margin-right: 10px;
  }
  .language-form-chooser {
    display: block;
  }
  .mb-mob-btn {
    margin-bottom: 6px;
    letter-spacing: -0.5px;
  }

  .dashed-line-with-arrow {
    height: 70px;
  }

  .btn-check + label.card {
    background-color: #efefef;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  }

  .lang-text-button {
    color: #333;
    display: inline-block;
    font-size: 13px;
    text-transform: uppercase;
    margin: 10px;
    background-color: #efefefef;
    padding: 4px 10px;
    border-radius: 5px; 
  }

  .card-input {
    border: 1px solid #efefef !important;
  }
}

@media (max-width: 600px) {
  .single-file {
    background-color: #efefef;
  }

  .my-tabs {
    display: block;
    border-bottom: 1px solid #efefef;
  }

  .my-tabs .tab-item {
    font-size: 15px;
    margin-bottom: 10px;
    border-radius: 20px;
  }

  .my-tabs .tab-item.active::after {
    width: 80%;
    left: 10%;
    background: #182c78;
  }

  .tab-content, .my-tabs {  
    border: 0px !important
  }

}

.text-small {
  display: block;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 400;
  line-height: 20px;
}

.range-container {
  position: relative;
  width: 100%;
}

.range-value {
  position: absolute;
  top: 22px;
  transform: translateX(-50%);
  color: #333;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  white-space: nowrap;
  font-weight: 900;
}

.card-small {
  padding: 5px !important;
}



.app-layout {
    display: flex;
    min-height: 100vh;
}

/* nuova colonna chiara */
.app-subnav{
    position: fixed;
    top: 0;
    left: 300px;
    width:290px;
    height: 100vh;
    background: #f8fafc;
    border-right: 1px solid #e9eef5;
    z-index: 999;
    overflow-y: auto;
}

.app-subnav-inner {
    padding: 28px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-subnav-user-card {
    background: #ffffff;
    border: 1px solid #e5edf7;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.app-subnav-user-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6c7a89;
    margin-bottom: 8px;
}

.app-subnav-user-name {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}

.app-subnav-user-org {
    font-size: 13px;
    color: #4b5563;
    margin-top: 4px;
}

.app-subnav-user-mail {
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
    word-break: break-word;
}

.app-subnav-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6c7a89;
    margin-bottom: 12px;
}

.app-subnav-link {
    display: block;
    text-decoration: none;
    color: #1f2937;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 16px;
    padding: 14px 14px;
    margin-bottom: 8px;
    transition: all 0.18s ease;
}

.app-subnav-link:hover {
    background: #ffffff;
    border-color: #e5edf7;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
    color: #111827;
}

.app-subnav-link.active {
    background: #ffffff;
    border-color: #d7e7fb;
    box-shadow: 0 8px 22px rgba(0, 123, 255, 0.08);
}

.app-subnav-link-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
}

.app-subnav-link-desc {
    display: block;
    font-size: 12px;
    line-height: 1.45;
    color: #6b7280;
}

.app-subnav-lang-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.app-subnav-lang-link {
display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 32px;
    padding: 0 8px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    color: #475569;
    background: #ffffff;
    border: 1px solid #e5edf7;
    border-radius: 12px;
    transition: all .18s ease;
}

.app-subnav-lang-link:hover {
    color: #0f172a;
    border-color: #cfe0f5;
}

.app-subnav-lang-link.active {
    color: #007BFF;
    border-color: #bfdcff;
    background: #f4f9ff;
}

@media (max-width: 991.98px) {
    .app-subnav {
        width: 100%;
        min-width: 100%;
        border-right: 0;
        border-bottom: 1px solid #e9eef5;
    }

    .app-subnav-inner {
        min-height: auto;
        padding: 20px 15px;
    }
}

.tf-cases-table {
    --bs-table-bg: transparent;
    border-collapse: separate;
    border-spacing: 0;
}

.tf-cases-table thead th {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6b7280;
    border-bottom: 1px solid #e9eef5;
    background: #f8fafc;
    padding: 14px 16px;
    white-space: nowrap;
}

.tf-cases-table tbody td {
    padding: 16px;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
    background: #fff;
}

.tf-case-row {
    cursor: pointer;
    transition: background-color .15s ease;
}

.tf-case-row:hover td {
    background: #fbfdff;
}

.tf-problem-cell {
    max-width: 280px;
    color: #374151;
    line-height: 1.4;
}

.table-responsive {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.table > tbody {
    font-size: 14px;
}

.btn-xs-soft{
    padding: 0.22rem 0.55rem;
    font-size: 0.76rem !important;
    line-height: 1.2;
    border-radius: 0.55rem;
}


.sidebar {
    width: 300px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    color: white;
    overflow: hidden;

    /* --- SFONDI STRATIFICATI --- */
    background-image: 
        /* 1. La tua immagine (sopra a tutto) */
        url('6e0d525f719b54b080d2.png'), 
        /* 2. I vari bagliori del gradiente (sotto l'immagine) */
        radial-gradient(at 0% 0%, hsla(225, 47%, 33%, 1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, hsla(190, 90%, 40%, 0.3) 0px, transparent 50%),
        radial-gradient(at 100% 100%, hsla(242, 70%, 50%, 0.4) 0px, transparent 50%),
        radial-gradient(at 0% 100%, hsla(200, 80%, 45%, 0.2) 0px, transparent 50%),
        radial-gradient(at 50% 50%, hsla(220, 50%, 15%, 1) 0px, transparent 100%);

    /* --- GESTIONE POSIZIONI --- */
    /* Specifichiamo la posizione per ogni strato nell'ordine corretto */
    background-position: 
        center bottom, /* Posizione immagine */
        0% 0%, 100% 0%, 100% 100%, 0% 100%, 50% 50%; /* Posizioni gradienti */

    background-repeat: no-repeat;

    /* --- GESTIONE DIMENSIONI --- */
    background-size: 
        500px,        /* Dimensione immagine */
        150% 150%, 150% 150%, 150% 150%, 150% 150%, 150% 150%; /* Dimensione gradienti per animazione */

    background-color: #0b112b;
    
    animation: backgroundMove 10s ease infinite;
    box-shadow: 4px 0 25px rgba(0,0,0,0.3);
}

@keyframes backgroundMove {
    0% { background-position: center bottom, 0% 50%, 100% 50%, 100% 50%, 0% 50%, 50% 50%; }
    50% { background-position: center bottom, 100% 50%, 0% 50%, 0% 50%, 100% 50%, 50% 50%; }
    100% { background-position: center bottom, 0% 50%, 100% 50%, 100% 50%, 0% 50%, 50% 50%; }
}

/* Stile opzionale per i testi per renderli più leggibili sul gradiente */
.app-name h4 {
    font-family: 'Inter', sans-serif; /* O il font che preferisci */
    font-weight: 600;
    line-height: 1.4;
    margin-top: 20px;
}

.app-name small {
    display: block;
    opacity: 0.7;
    font-weight: 300;
    font-size: 0.8rem;
    margin-top: 5px;
}

.action-card {
    width: 100%;
    height: 100%;
    min-height: 148px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
    padding: 1.1rem 1.15rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: .55rem;
    transition: all .18s ease;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.action-card:focus {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.action-card-label {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.action-card-text {
    display: block;
    font-size: .92rem;
    line-height: 1.45;
    opacity: .85;
}

/* Variante standard */
.action-card-primary {
    border-color: rgba(13, 110, 253, 0.18);
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    color: #0f172a;
}

.action-card-primary .action-card-label {
    color: #0d6efd;
}

/* Variante invio diretto */
.action-card-success {
    border-color: rgba(25, 135, 84, 0.22);
    background: linear-gradient(180deg, #ffffff 0%, #f5fcf8 100%);
    color: #0f172a;
}

.action-card-success .action-card-label {
    color: #198754;
}

/* Variante neutra */
.action-card-light {
    border-color: #e5e7eb;
    background: #fafafa;
    color: #334155;
}

.action-card-light .action-card-label {
    color: #475569;
}

@media (max-width: 767.98px) {
    .action-card {
        min-height: auto;
    }
}

.action-card-head {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: .35rem;
}

.action-card-icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
    opacity: .9;
}

.action-card-label {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.action-card {
    cursor: pointer;
}

.action-card.is-disabled {
  color: #ccc !important;
}

.is-disabled.action-card-head.action-card-label {
  color: #ccc !important;
}

.action-card.is-disabled:hover,
.action-card:disabled:hover {
    transform: none;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
    color: #ccc !important;
}

.ods-form-wrapper {
    position: relative;
}

.ods-progress-sticky {
    position: sticky;
    bottom: -2px;
    z-index: 20;
    margin-bottom: 20px;
    padding: 14px 16px;
    /* background: rgba(255, 255, 255, 0.96); */
    /* border: 1px solid #e5e7eb; */
    border-radius: 14px;
    /* box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08); */
    backdrop-filter: blur(6px);
}

.ods-progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    margin-bottom: 8px;
}

.ods-progress-label span {
    color: #333;
}

.ods-progress-label strong {
    color: #198754;
    white-space: nowrap;
}

.ods-progress-bar {
    width: 100%;
    height: 9px;
    background: #edf0f4;
    border-radius: 999px;
    overflow: hidden;
}

.ods-progress-fill {
    height: 100%;
    width: 0%;
    background: #198754;
    border-radius: 999px;
    transition: width .25s ease;
}

@media (max-width: 576px) {
    .ods-progress-sticky {
        top: 8px;
        padding: 12px 14px;
        border-radius: 12px;
    }

    .ods-progress-label {
        font-size: 13px;
    }
}

.helperInterno {
  bottom: 110px;
}