/*
 * QuizGolf — Quiz Tematico
 * U9 P1.2 (V.3.37): estratto dal blocco <style> inline di site/quiz_tematico.php.
 * Stesso pattern di quizgolf-quiz-libero.css (V.3.35).
 */

.qg-tematico-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: end;
}

@media (max-width: 767px) {
    .qg-tematico-bar { grid-template-columns: 1fr; }
}

.qg-tematico-bar__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.qg-tematico-bar__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #8A9B91;
}

.qg-tematico-bar__select {
    width: 100%;
    background: #F5F7F6;
    border: 1.5px solid #E8EDEA;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    color: #1a1a1a;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7C74' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    transition: border-color 0.15s;
}

.qg-tematico-bar__select:focus {
    outline: none;
    border-color: rgba(27,77,62,0.4);
    box-shadow: 0 0 0 3px rgba(27,77,62,0.08);
}

.qg-tematico-bar__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #06291d;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
    height: 44px;
}

.qg-tematico-bar__btn:hover { background: #1e3f32; }
.qg-tematico-bar__btn .material-symbols-outlined { font-size: 18px; }

.qg-quiz-stack {
    display: grid;
    gap: 1.5rem;
}

.qg-quiz-step {
    display: none;
}

/* V.3.93 fix Audit Fernando: vedi commento gemello in
   quizgolf-quiz-libero.css. Solo `.is-current` controlla la visibilita'
   delle domande nel wizard, mai `:first-child`. */
.qg-quiz-step.is-current {
    display: block;
}

.qg-shell-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.95rem 1.25rem;
    border: 0;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.qg-btn-block {
    width: 100%;
    justify-content: center;
}

.qg-quiz-layout--with-media {
    display: grid;
    grid-template-columns: 1fr 38%;
    gap: 1.5rem;
    align-items: stretch;
}

.qg-quiz-main-column,
.qg-quiz-media-column {
    min-width: 0;
}

.qg-quiz-answer-area {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    background: linear-gradient(180deg, #fbfcfa, #f5f8f4);
    border-top: 1px solid rgba(193, 200, 195, 0.35);
    padding: 1.5rem;
}

.qg-quiz-answer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.qg-quiz-answer-list li {
    margin: 0;
}

.qg-quiz-answer-list .row {
    --bs-gutter-x: 0;
    display: block;
}

.qg-option-wrap {
    width: 100%;
}

.qg-rule-modal {
    display: none;
}

body.qg-stitch-quiz-page .qg-quiz-card {
    background: #ffffff;
    border: 1px solid rgba(193, 200, 195, 0.55);
    border-radius: 1rem;
    box-shadow: 0 12px 30px rgba(6, 41, 29, 0.05);
    overflow: hidden;
}

body.qg-stitch-quiz-page .qg-quiz-card-head {
    padding: 1rem 2rem 0.75rem;
    border-bottom: 1px solid rgba(193, 200, 195, 0.3);
}

body.qg-stitch-quiz-page .qg-quiz-meta {
    gap: 0.5rem;
    flex-wrap: wrap;
}

body.qg-stitch-quiz-page .qg-quiz-badge {
    border: 0;
    background: #eeeeeb;
    color: #06291d;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
}

body.qg-stitch-quiz-page .qg-quiz-layout {
    gap: 1.5rem;
}

body.qg-stitch-quiz-page .qg-quiz-main-column {
    gap: 1.5rem;
}

body.qg-stitch-quiz-page .qg-quiz-media-column {
    padding: 1rem 1.5rem 1.5rem 0;
    display: flex;
    align-self: stretch;
}

body.qg-stitch-quiz-page .qg-quiz-question-wrap,
body.qg-stitch-quiz-page .qg-quiz-question-wrap--with-media,
body.qg-stitch-quiz-page .qg-answer-panel-wrap,
body.qg-stitch-quiz-page .qg-quiz-step-nav {
    padding-left: 2rem;
    padding-right: 2rem;
}

body.qg-stitch-quiz-page .qg-quiz-question-wrap {
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
}

body.qg-stitch-quiz-page .qg-quiz-question-kicker,
body.qg-stitch-quiz-page .qg-answer-panel-kicker {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(65, 72, 68, 0.78);
}

body.qg-stitch-quiz-page .qg-quiz-question {
    color: #06291d;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(1.1rem, 1.4vw, 1.45rem);
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -0.02em;
    max-width: none;
}

body.qg-stitch-quiz-page .qg-quiz-answer-list {
    gap: 1.125rem;
}

body.qg-stitch-quiz-page .qg-option-surface {
    display: grid;
    grid-template-columns: 1.2rem minmax(0, 1fr) auto;
    align-items: center;
    min-height: 56px;
    padding: 0.75rem 1.25rem;
    border-radius: 1rem;
    border: 1px solid rgba(193, 200, 195, 0.75);
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(6, 41, 29, 0.04);
    gap: 1rem;
    width: 100%;
}

body.qg-stitch-quiz-page .qg-option-surface:hover {
    border-color: rgba(6, 41, 29, 0.28);
    box-shadow: 0 14px 26px rgba(6, 41, 29, 0.08);
}

body.qg-stitch-quiz-page .qg-option-surface input[type="radio"] {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: #06291d;
}

body.qg-stitch-quiz-page .qg-option-label {
    display: block;
    min-width: 0;
    color: #1a1c1b;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.34;
    white-space: normal;
    word-break: break-word;
}

body.qg-stitch-quiz-page .qg-option-result-icon {
    width: 1.6rem;
    height: 1.6rem;
    justify-self: end;
    align-self: center;
}

body.qg-stitch-quiz-page .qg-option-surface:has(.qg-option-input:checked) {
    border-color: rgba(6, 41, 29, 0.95);
    background: linear-gradient(180deg, #f8fbf9 0%, #edf3ef 100%);
    box-shadow: 0 16px 30px rgba(6, 41, 29, 0.12);
}

body.qg-stitch-quiz-page .qg-option-surface:has(.qg-option-input:checked) .qg-option-label {
    color: #06291d;
}

body.qg-stitch-quiz-page .qg-quiz-actions {
    align-content: start;
    margin-top: 0.55rem;
}

body.qg-stitch-quiz-page .qg-shell-cta,
body.qg-stitch-quiz-page .qg-quiz-step-btn {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 800;
    letter-spacing: -0.01em;
}

body.qg-stitch-quiz-page .qg-shell-cta {
    min-height: 54px;
    border-radius: 1rem;
    background: #06291d;
    box-shadow: 0 16px 28px rgba(6, 41, 29, 0.16);
}

body.qg-stitch-quiz-page .qg-shell-cta:hover {
    background: #1e3f32;
}

body.qg-stitch-quiz-page .qg-answer-panel-wrap {
    padding-top: 0.5rem;
    padding-bottom: 1.6rem;
}

body.qg-stitch-quiz-page .qg-answer-panel {
    border-left: 3px solid #1B4D3E;
    border-top: 1px solid rgba(27,77,62,0.15);
    border-right: 1px solid rgba(27,77,62,0.15);
    border-bottom: 1px solid rgba(27,77,62,0.15);
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #f2f7f4 0%, #ffffff 100%);
    box-shadow: 0 4px 16px rgba(27,77,62,0.06);
    color: #1a2e26;
    padding: 1.25rem 1.5rem;
}

body.qg-stitch-quiz-page .qg-answer-panel::before {
    content: none;
}

body.qg-stitch-quiz-page .qg-answer-panel .qg-answer-panel-kicker {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #1B4D3E;
    opacity: 0.7;
    margin-bottom: 0.6rem;
}

body.qg-stitch-quiz-page .qg-answer-panel p,
body.qg-stitch-quiz-page .qg-answer-panel li {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #1a2e26;
    overflow-wrap: anywhere;
}

body.qg-stitch-quiz-page .qg-answer-panel a,
body.qg-stitch-quiz-page .qg-answer-panel .userinfo {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #1B4D3E;
    color: #ffffff;
    border: 0;
    text-decoration: none;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.1;
    padding: 0.32rem 0.7rem;
    margin: 0 0.15rem 0.2rem;
    vertical-align: middle;
    transition: background 0.15s;
}

body.qg-stitch-quiz-page .qg-answer-panel a:hover,
body.qg-stitch-quiz-page .qg-answer-panel .userinfo:hover {
    background: #06291d;
    color: #ffffff;
}

body.qg-stitch-quiz-page .qg-option-state--wrong,
body.qg-stitch-quiz-page .qg-option-state--wrong .qg-option-label {
    color: #aa0000 !important;
}

body.qg-stitch-quiz-page .qg-option-state--correct,
body.qg-stitch-quiz-page .qg-option-state--correct .qg-option-label {
    color: #0f8a2b !important;
}

body.qg-stitch-quiz-page .qg-quiz-step-nav {
    padding-top: 0;
    padding-bottom: 2rem;
}

body.qg-stitch-quiz-page .qg-quiz-step-btn {
    min-height: 58px;
    border-radius: 1rem;
    font-size: 0.98rem;
    padding: 0.95rem 1.2rem;
}

body.qg-stitch-quiz-page .qg-quiz-step-btn--ghost {
    background: #f4f4f1;
    border: 1px solid rgba(193, 200, 195, 0.75);
    color: #06291d;
}

body.qg-stitch-quiz-page .qg-quiz-step-btn--primary {
    background: #d7ddd9;
    color: rgba(6, 41, 29, 0.42);
}

body.qg-stitch-quiz-page .qg-quiz-step-btn--primary.is-ready,
body.qg-stitch-quiz-page .qg-quiz-step-btn--primary:not(:disabled) {
    background: #06291d;
    color: #ffffff;
    box-shadow: 0 16px 28px rgba(6, 41, 29, 0.16);
}

body.qg-stitch-quiz-page .qg-quiz-media-wrap {
    width: 100%;
    display: flex;
    flex: 1;
    min-height: 200px;
}

body.qg-stitch-quiz-page .qg-quiz-card--with-media .qg-quiz-media {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(6, 41, 29, 0.1);
    flex: 1;
    display: flex;
}

body.qg-stitch-quiz-page .qg-quiz-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

body.qg-stitch-quiz-page .qg-quiz-scoreboard {
    border-radius: 1rem;
    border: 1px solid rgba(193, 200, 195, 0.55);
    background: linear-gradient(180deg, #fcfcfb 0%, #f6f8f5 100%);
    padding: 1.35rem 1.5rem;
    color: #414844;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1rem;
    font-weight: 600;
}

@media (max-width: 991px) {
    .qg-quiz-layout--with-media {
        grid-template-columns: 1fr;
    }

    body.qg-stitch-quiz-page .qg-quiz-card-head,
    body.qg-stitch-quiz-page .qg-quiz-question-wrap,
    body.qg-stitch-quiz-page .qg-quiz-question-wrap--with-media,
    body.qg-stitch-quiz-page .qg-answer-panel-wrap,
    body.qg-stitch-quiz-page .qg-quiz-step-nav {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    body.qg-stitch-quiz-page .qg-quiz-card-head {
        padding-top: 0.75rem;
    }

    body.qg-stitch-quiz-page .qg-quiz-question {
        font-size: clamp(1.05rem, 4.5vw, 1.3rem);
    }

    body.qg-stitch-quiz-page .qg-option-surface {
        min-height: 52px;
        padding: 0.7rem 1rem;
    }

    body.qg-stitch-quiz-page .qg-option-label {
        font-size: 1rem;
        line-height: 1.32;
    }

    body.qg-stitch-quiz-page .qg-quiz-media-column {
        padding: 0.9rem 1.25rem 1.25rem;
    }

    body.qg-stitch-quiz-page .qg-quiz-media-wrap {
        padding: 0;
    }

    body.qg-stitch-quiz-page .qg-quiz-step-nav {
        flex-direction: column;
    }
}
@media (min-width: 1025px) and (max-height: 750px) {
    body.qg-stitch-quiz-page .qg-quiz-question {
        font-size: clamp(1.15rem, 1.5vw, 1.45rem);
    }
    body.qg-stitch-quiz-page .qg-quiz-question-wrap {
        padding-top: 0.85rem;
        padding-bottom: 0.85rem;
    }
    body.qg-stitch-quiz-page .qg-option-surface {
        min-height: 68px;
    }
}
