/* ==========================================================================
   Università.it — Sondaggio "È fattibile l'università online?"
   Stili scoped sotto .utoo-wrap per non interferire con Divi
   ========================================================================== */

.utoo-wrap {
    --utoo-brand: #e44a26;
    --utoo-brand-dark: #c23d1f;
    --utoo-title: #124e9f;
    --utoo-bg: #ffffff;
    --utoo-soft: #f4f5f9;
    --utoo-border: #e6e8f0;
    --utoo-text: #000000;
    --utoo-muted: #6a6f80;
    --utoo-radius: 14px;
    --utoo-shadow: 0 6px 28px rgba(20, 25, 60, 0.08);

    margin: 0 auto;
    padding: 0;
    color: var(--utoo-text);
    line-height: 1.5;
}

.utoo-wrap *,
.utoo-wrap *::before,
.utoo-wrap *::after { box-sizing: border-box; }

/* --- Intro --------------------------------------------------------------- */

.utoo-intro {
    background: var(--utoo-bg);
    border: 1px solid var(--utoo-border);
    border-radius: var(--utoo-radius);
    box-shadow: var(--utoo-shadow);
    padding: 40px 32px;
    text-align: center;
}

.utoo-lead-title {
    font-size: 25px;
    color: var(--utoo-title);
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.2;
}

.utoo-lead {
    font-size: 20px !important;
    color: #000 !important;
    margin: 0 0 28px;
}

.utoo-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.utoo-meta li {
    background: var(--utoo-soft);
    border-radius: 10px;
    padding: 14px 20px;
    min-width: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.utoo-meta strong {
    color: var(--utoo-title);
    font-size: 20px;
    font-weight: 700;
}

.utoo-meta span {
    font-size: 16px;
    color: var(--utoo-muted);
    margin-top: 2px;
}

/* --- Step ---------------------------------------------------------------- */

.utoo-step {
    background: var(--utoo-bg);
    border: 1px solid var(--utoo-border);
    border-radius: var(--utoo-radius);
    box-shadow: var(--utoo-shadow);
    padding: 32px;
    animation: utooFadeIn .25s ease;
}

@keyframes utooFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}

.utoo-progress {
    background: var(--utoo-soft);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.utoo-progress-bar {
    height: 100%;
    background: var(--utoo-brand);
    border-radius: 3px;
    transition: width .3s ease;
}

.utoo-progress-label {
    font-size: 12px;
    color: var(--utoo-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 18px;
}

.utoo-q-title {
    font-size: 22px;
    line-height: 1.3;
    margin: 0 0 8px;
    color: var(--utoo-title);
    font-weight: 700;
}

.utoo-q-subtitle {
    font-size: 14px;
    color: var(--utoo-muted);
    margin: 0 0 24px;
}

/* --- Opzioni ------------------------------------------------------------- */

.utoo-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.utoo-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 2px solid var(--utoo-border);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, transform .1s ease;
    background: var(--utoo-bg);
    position: relative;
}

.utoo-option:hover {
    border-color: var(--utoo-brand);
    background: #fafbff;
}

.utoo-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.utoo-option-key {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--utoo-soft);
    color: var(--utoo-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: background .15s ease, color .15s ease;
}

.utoo-option-text {
    flex: 1;
    font-size: 15px;
    color: var(--utoo-text);
    line-height: 1.4;
}

.utoo-option.is-selected {
    border-color: var(--utoo-brand);
    background: #f0f3ff;
}

.utoo-option.is-selected .utoo-option-key {
    background: var(--utoo-brand);
    color: #fff;
}

/* --- Nav ----------------------------------------------------------------- */

.utoo-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
}

.utoo-nav > :only-child { margin-left: auto; }

.utoo-btn {
    appearance: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 10px;
    transition: background .15s ease, transform .1s ease, opacity .15s ease;
    line-height: 1.2;
}

.utoo-btn-primary {
    background: var(--utoo-brand);
    color: #fff;
}

.utoo-btn-primary:hover:not(:disabled) {
    background: var(--utoo-brand-dark);
}

.utoo-btn-primary:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.utoo-btn-ghost {
    background: transparent;
    color: var(--utoo-muted);
    border: 1px solid var(--utoo-border);
}

.utoo-btn-ghost:hover {
    background: var(--utoo-soft);
    color: var(--utoo-text);
}

/* --- Form finale --------------------------------------------------------- */

.utoo-form-header {
    text-align: center;
    margin-bottom: 24px;
}

.utoo-form-badge {
    display: inline-block;
    background: #e6f4ec;
    color: #1b7a3e;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 12px;
    border-radius: 100px;
    margin-bottom: 12px;
}

/* --- Mobile -------------------------------------------------------------- */

@media (max-width: 600px) {
    .utoo-intro,
    .utoo-step      { padding: 24px 18px; }
    .utoo-q-title   { font-size: 18px; }
    .utoo-meta      { gap: 10px; }
    .utoo-meta li   { padding: 10px 14px; min-width: 90px; }
    .utoo-option    { padding: 12px 14px; }
    .utoo-option-text { font-size: 14px; }
    .utoo-btn       { padding: 11px 18px; font-size: 14px; flex: 1; }
}
