@font-face {
  font-family: TMixR;
  src: url(https://dinaclub.repower.com/wp-content/uploads/2026/06/TheMixB-W3Light.woff2);
}
@font-face {
  font-family: TMixRBold;
  src: url(https://dinaclub.repower.com/wp-content/uploads/2026/06/TheMixB-W7Bold.woff2);
}

#dina-quiz {

    font-family: TMixR;

    max-width: 100%;

    margin: 2rem auto;

    padding: 1.5rem;

    border-radius: 12px;

    background: #ffffff;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);

  }



  #dina-quiz h2 {
font-family: TMixRBold;
    font-size: 3rem;

    margin-bottom: 0.75rem;

    color: #5a585a; /* Verde scuro Repower style */

  }



  #dina-quiz .dq-subtitle {

    font-size: 1.2rem;

    color: #666;

    margin-bottom: 1rem;

  }

  #dina-quiz .dq-subtitle small {

    font-weight: 200;
    margin-top: 15px;
  }

  /* Progress */

  .dq-progress-wrapper {

    margin-bottom: 1rem;

  }



  .dq-progress-text {

    font-size: 0.9rem;

    margin-bottom: 0.25rem;

    color: #e32f2f;

    font-weight: 600;

  }



  .dq-progress-bar {

    width: 100%;

    height: 6px;

    border-radius: 999px;

    background: #e5f2f0;

    overflow: hidden;

  }



  .dq-progress-fill {

    height: 100%;

    width: 0;

    border-radius: 999px;

    background: #e32f2f; /* Verde principale */

    transition: width 0.25s ease-out;

  }



  /* Domanda */

  .dq-question-text {

    font-size: 1.05rem;

    font-weight: 600;

    margin: 1.25rem 0 0.75rem;

    color: #5a585a;

  }



  /* Opzioni */

  .dq-options {

    display: flex;

    flex-direction: column;

    gap: 0.5rem;

    margin-bottom: 1.5rem;

  }



  .dq-option {

    position: relative;

  }



  .dq-option input {

    position: absolute;

    opacity: 0;

    pointer-events: none;

  }



  .dq-option label {

    display: block;

    width: 100%;

    padding: 0.75rem 0.85rem;

    border-radius: 999px;

    border: 1px solid #cde2dd;

    background: #f7fbfa;

    font-size: 1rem;

    font-weight: 500;

    cursor: pointer;

    transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;

  }



  .dq-option input:checked + label {

    background: #e32f2f;

    border-color: #e32f2f;

    color: #ffffff;

    transform: translateY(-1px);

  }



  .dq-option label:hover {

    border-color: #e32f2f;

  }



  /* Pulsanti navigazione */

  .dq-nav {

    display: flex;

    justify-content: space-between;

    gap: 0.5rem;

  }



  .dq-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 0.65rem 1.2rem;

    border-radius: 999px;

    border: none;

    font-size: 0.95rem;

    font-weight: 600;

    cursor: pointer;

    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;

    text-decoration: none;

    white-space: nowrap;

  }



  .dq-btn:disabled {

    opacity: 0.4;

    cursor: default;

    box-shadow: none;

    transform: none;

  }



  .dq-btn-primary {

    background: #e32f2f;

    color: #ffffff;

    box-shadow: 0 4px 10px rgba(0, 165, 138, 0.25);

  }



  .dq-btn-primary:hover:not(:disabled) {

    background: e32f2f;

    transform: translateY(-1px);

  }



  .dq-btn-secondary {

    background: #f2f7f6;

    color: #e32f2f;

  }



  .dq-btn-secondary:hover:not(:disabled) {

    background: #e5f0ee;

    transform: translateY(-1px);

  }



  /* Messaggio di errore */

  .dq-error {

    font-size: 0.85rem;

    color: #c0392b;

    margin-bottom: 0.75rem;

  }



  /* Overlay risultato */

  .dq-overlay-backdrop {

    position: fixed;

    inset: 0;

    background: rgba(0, 32, 32, 0.7);

    display: none;

    align-items: center;

    justify-content: center;

    z-index: 9999;

    padding: 1rem;

  }



  .dq-overlay-backdrop.dq-visible {

    display: flex;

  }



  .dq-overlay {

    max-width: 520px;

    width: 100%;

    background: #ffffff;

    border-radius: 16px;

    padding: 1.5rem 1.5rem 1.75rem;

    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);

    display: flex;
    flex-direction: column;
    align-items: center;

  }



  .dq-overlay-title {

    font-size: 1.4rem;

    margin-bottom: 0.5rem;

    color: #5a585a;

  }



  .dq-overlay-badge {

    width: 150px;

    height: 150px;

    background-size: cover;

    margin-bottom: 0.5rem;

  }



  .dq-badge-explorer {

  background-image: url('https://dinaclub-new.repower.com/wp-content/quiz-asset/rete-icon-c-27.svg');

  }



  .dq-badge-performer {

  background-image: url('https://dinaclub-new.repower.com/wp-content/quiz-asset/ricarica-icon-c-169.svg');

  }



  .dq-badge-ambassador {

    background-image: url('https://dinaclub-new.repower.com/wp-content/quiz-asset/visibilita-icon-c-242.svg');

  }



  .dq-overlay-score {

    font-size: 0.9rem;

    color: #666;

    margin-bottom: 0.5rem;

  }



  .dq-overlay-text {

    font-size: 0.98rem;

    color: #333;

    margin-bottom: 1.25rem;

  }



  .dq-overlay-actions {

    display: flex;

    flex-wrap: wrap;

    gap: 0.75rem;

    justify-content: flex-start;

    align-items: center;

  }



  .dq-overlay-close {

    font-size: 0.8rem;

    text-decoration: underline;

    cursor: pointer;

    color: #666;

    background: none;

    border: none;

    padding: 0;

  }



  /* Mobile: bottoni a tutta larghezza */

  @media (max-width: 600px) {

    #dina-quiz {

      margin: 0;

      padding: 1.25rem;

    }



    .dq-nav {

      flex-direction: column-reverse;

    }



    .dq-btn {

      width: 100%;

    }



    .dq-overlay {

      padding: 1.25rem 1rem 1.5rem;

    }

  }