body {
    min-height: 100vh;
}

.quiz-wrapper {
    max-width: 760px;
    margin: 0 auto;
}

.quiz-card {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.timer-box {
    font-weight: 700;
    font-size: 1rem;
}

.answer-option {
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: 0.2s ease;
    background: #fff;
}

.answer-option:hover {
    border-color: #0d6efd;
    background: #f8fbff;
}

.answer-option input {
    margin-right: 10px;
}

.answer-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.answer-option input:checked + span,
.answer-option input:checked + div {
    font-weight: bold;
}

.answer-option:has(input:checked) {
    border-color: #0d6efd;
    background: #eaf3ff;
}

.answer-option {
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.answer-option:hover {
    background: #f8f9fa;
    border-color: #0d6efd;
}

.answer-option input {
    pointer-events: none;
}

.answer-option:has(input:checked) {
    border: 2px solid #0d6efd;
    background: #eaf3ff;
}

body {
    min-height: 100vh;
    background: #f4f7fb;
    color: #1f2937;
}

.quiz-wrapper {
    max-width: 820px;
    margin: 0 auto;
}

.quiz-card {
    border: 0;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    background: #ffffff;
}

.quiz-card .card-body {
    padding: 2rem;
}

@media (max-width: 767.98px) {
    .quiz-card .card-body {
        padding: 1.25rem;
    }
}

.page-hero-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    line-height: 1.15;
    color: #0f172a;
}

.page-hero-text {
    font-size: 1.05rem;
    color: #475569;
    max-width: 650px;
    margin: 0 auto;
}

.timer-box {
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
}

.progress {
    height: 10px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.progress-bar {
    border-radius: 999px;
}

.answer-option {
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    border: 1px solid #dbe2ea;
    border-radius: 14px;
}

.answer-option:hover {
    background: #f8fbff;
    border-color: #0d6efd;
    transform: translateY(-1px);
}

.answer-option input {
    pointer-events: none;
}

.answer-option:has(input:checked) {
    border: 2px solid #0d6efd;
    background: #eaf3ff;
    box-shadow: 0 8px 18px rgba(13, 110, 253, 0.08);
}

.answer-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.admin-stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: #0f172a;
}

.admin-stat-label {
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.table thead th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    border-bottom-width: 1px;
}

.table td,
.table th {
    vertical-align: middle;
}

.btn {
    border-radius: 12px;
    font-weight: 600;
}

.btn-lg {
    padding: 0.9rem 1.5rem;
}

.form-control,
.form-select {
    border-radius: 12px;
    min-height: 48px;
}

textarea.form-control {
    min-height: auto;
}

.alert {
    border: 0;
    border-radius: 14px;
}

.section-spacer {
    margin-top: 1.5rem;
}

.subtle-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem 1.25rem;
}

.quiz-question-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.quiz-question-image-wrap {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.quiz-question-image {
    max-width: 100%;
    max-height: 320px;
    width: auto;
    height: auto;
    border-radius: 12px;
}

.answer-option {
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
    border: 1px solid #dbe2ea;
    border-radius: 16px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    display: block;
}

.answer-option:hover {
    background: #f8fbff;
    border-color: #0d6efd;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(13, 110, 253, 0.08);
}

.answer-option input[type="radio"] {
    margin: 0;
    flex: 0 0 auto;
}

.answer-option:has(input:checked) {
    border: 2px solid #0d6efd;
    background: #eaf3ff;
    box-shadow: 0 10px 22px rgba(13, 110, 253, 0.10);
}

.answer-option-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.answer-option-media {
    width: 96px;
    height: 96px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 96px;
}

.answer-option-media img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.answer-option-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
}

.quiz-submit-wrap {
    margin-top: 1.5rem;
}

@media (max-width: 767.98px) {
    .answer-option-content {
        align-items: flex-start;
        gap: 0.85rem;
    }

    .answer-option-media {
        width: 78px;
        height: 78px;
        flex: 0 0 78px;
    }

    .answer-option-text {
        font-size: 1rem;
    }

    .quiz-question-box {
        padding: 1rem;
    }

    .quiz-question-image {
        max-height: 220px;
    }
}

body {
    background: linear-gradient(135deg, #5f9cff, #6f73ff);
    min-height: 100vh;
}

.quiz-wrapper {
    max-width: 720px;
    margin: 0 auto;
}

.quiz-card {
    border-radius: 20px;
    border: none;
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
    background: #ffffff;
}

.split-hero {
    min-height: 100vh;
    display: flex;
    background: #f4f7fb;
}

.split-hero__left,
.split-hero__right {
    width: 50%;
}

.split-hero__left {
    background: #17335c;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px;
}

.split-hero__left-inner {
    max-width: 520px;
}

.split-hero__eyebrow {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c7d2fe;
    margin-bottom: 18px;
}

.split-hero__title {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.08;
    font-weight: 800;
    margin-bottom: 20px;
    color: #ffffff;
}

.split-hero__text {
    font-size: 1.15rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.82);
    margin-bottom: 28px;
}

.split-hero__meta {
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
    margin-top: 14px;
}

.split-hero__rules {
    margin-top: 28px;
    padding: 18px 20px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    border-radius: 16px;
    color: rgba(255,255,255,0.88);
}

.split-hero__rules strong {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
}

.split-hero__right {
    position: relative;
    overflow: hidden;
    background: #dbe4f0;
}

.split-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.split-hero__overlay-card {
    position: absolute;
    right: 40px;
    bottom: 40px;
    max-width: 320px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 22px 24px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.14);
}

.split-hero__overlay-card h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #0f172a;
}

.split-hero__overlay-card p {
    margin: 0;
    color: #475569;
    line-height: 1.5;
}

.split-hero__cta {
    min-width: 220px;
}

@media (max-width: 991.98px) {
    .split-hero {
        flex-direction: column;
    }

    .split-hero__left,
    .split-hero__right {
        width: 100%;
    }

    .split-hero__left {
        padding: 40px 24px;
    }

    .split-hero__right {
        min-height: 340px;
    }

    .split-hero__overlay-card {
        right: 20px;
        left: 20px;
        bottom: 20px;
        max-width: none;
    }
}

.registration-pane--form {
    order: 2;
}

.registration-pane--info {
    order: 1;
}

.registration-mobile-intro {
    display: none;
}

.registration-desktop-copy {
    display: block;
}

@media (max-width: 991.98px) {
    .registration-pane--form {
        order: 1;
        width: 100%;
    }

    .registration-pane--info {
        order: 2;
        width: 100%;
        min-height: auto;
        padding-top: 12px;
    }

    .registration-mobile-intro {
        display: block;
    }

    .registration-desktop-copy {
        display: none;
    }
}

.quiz-stage {
    min-height: 100vh;
    background: #f4f7fb;
    padding: 48px 20px;
}

.quiz-stage__inner {
    max-width: 980px;
    margin: 0 auto;
}

.quiz-shell {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.12);
}

.quiz-shell__top {
    background: #17335c;
    padding: 28px 32px 24px;
    color: #ffffff;
}

.quiz-shell__eyebrow {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    margin-bottom: 14px;
}

.quiz-shell__status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.quiz-shell__step {
    font-size: 1rem;
    font-weight: 700;
}

.quiz-shell__timer {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
}

.quiz-shell__progress {
    height: 10px;
    background: rgba(255,255,255,0.16);
    border-radius: 999px;
    overflow: hidden;
}

.quiz-shell__progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2f7df6 0%, #4a8cff 100%);
    border-radius: 999px;
}

.quiz-shell__body {
    padding: 36px 32px 32px;
}

.quiz-question-panel {
    text-align: center;
    margin-bottom: 28px;
}

.quiz-question-panel__title {
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    line-height: 1.15;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 12px;
}

.quiz-question-panel__subtitle {
    margin: 0;
    color: #64748b;
    font-size: 1rem;
}

.quiz-question-figure {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 18px;
    margin-bottom: 28px;
    text-align: center;
}

.quiz-question-figure__img {
    max-width: 100%;
    max-height: 340px;
    width: auto;
    height: auto;
    border-radius: 14px;
}

.quiz-answers {
    display: grid;
    gap: 14px;
}

.quiz-answer-card {
    display: block;
    cursor: pointer;
    margin: 0;
}

.quiz-answer-card__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 88px;
    background: #f8fbff;
    border: 1px solid #d9e4f2;
    border-radius: 18px;
    padding: 16px 18px;
    transition: all 0.22s ease;
}

.quiz-answer-card:hover .quiz-answer-card__inner {
    border-color: #2f7df6;
    box-shadow: 0 12px 24px rgba(47, 125, 246, 0.10);
    transform: translateY(-1px);
}

.quiz-answer-card__radio-wrap {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.quiz-answer-card__radio {
    margin: 0;
}

.quiz-answer-card__label {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #17335c;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    flex: 0 0 42px;
}

.quiz-answer-card__media {
    width: 88px;
    height: 88px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 88px;
}

.quiz-answer-card__media img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.quiz-answer-card__text {
    font-size: 1.08rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
}

.quiz-answer-card:has(input:checked) .quiz-answer-card__inner {
    border: 2px solid #2f7df6;
    background: #eef5ff;
    box-shadow: 0 14px 28px rgba(47, 125, 246, 0.12);
}

.quiz-answer-card:has(input:checked) .quiz-answer-card__label {
    background: #2f7df6;
}

.quiz-shell__actions {
    margin-top: 26px;
}

.quiz-shell__actions .btn {
    min-height: 58px;
}

@media (max-width: 991.98px) {
    .quiz-stage {
        padding: 24px 14px;
    }

    .quiz-shell__top {
        padding: 22px 18px 20px;
    }

    .quiz-shell__body {
        padding: 24px 18px 22px;
    }

    .quiz-shell__status-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .quiz-question-panel {
        text-align: left;
    }

    .quiz-question-panel__title {
        font-size: 1.9rem;
    }

    .quiz-answer-card__inner {
        align-items: flex-start;
        min-height: auto;
        padding: 14px;
    }

    .quiz-answer-card__media {
        width: 72px;
        height: 72px;
        flex: 0 0 72px;
    }

    .quiz-answer-card__text {
        font-size: 1rem;
    }
}

/* NASCONDE COMPLETAMENTE IL RADIO BUTTON */
.quiz-answer-card__radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* EFFETTO SELEZIONE (quando clicchi la card) */
.quiz-answer-card__radio:checked + * {
    /* niente qui, lo gestiamo sotto */
}

/* STATO SELEZIONATO DELLA CARD */
.quiz-answer-card:has(.quiz-answer-card__radio:checked) {
    border: 2px solid #2563eb;
    background: #eef4ff;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
}