/**
 * ISORS Manager — pagine di accesso (login, registrazione, primo accesso, pratica completata)
 * Sono pagine autonome, senza header/footer del gestionale. Si caricano dopo
 * bootstrap-italia, tema.css e animazioni.css (variabili, font, keyframes).
 * Il blocco finale rispetta prefers-reduced-motion.
 */

:root {
    --success-color: var(--verde, #0F8A5F);
    --primary-color: var(--blu-700, #0B4F9C);
    --secondary-color: var(--testo, #172433);
    --acc-curva: cubic-bezier(.2, .8, .2, 1);
}

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

body.acc {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font, 'Titillium Web', sans-serif) !important;
    color: var(--testo);
    background: var(--sfondo) !important;
    padding: 0 !important;
    display: block;
}

@keyframes acc-scuoti {
    0%   { opacity: 0; transform: translateX(0); }
    15%  { opacity: 1; transform: translateX(-7px); }
    35%  { transform: translateX(6px); }
    55%  { transform: translateX(-4px); }
    75%  { transform: translateX(2px); }
    100% { opacity: 1; transform: none; }
}
@keyframes acc-passo-avanti   { from { opacity: 0; transform: translateX(22px); }  to { opacity: 1; transform: none; } }
@keyframes acc-passo-indietro { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
@keyframes acc-anello { 0% { transform: scale(.85); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes acc-deriva { 0%, 100% { transform: translate(0, 0) rotate(var(--rot, 0deg)); } 50% { transform: translate(var(--dx, 10px), var(--dy, -18px)) rotate(calc(var(--rot, 0deg) + 8deg)); } }

/* ============================================================
   LAYOUT A DUE COLONNE (login e registrazione)
   ============================================================ */
.acc-layout {
    display: grid;
    grid-template-columns: minmax(340px, 5fr) 7fr;
    min-height: 100vh;
}

.acc-marchio {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px clamp(32px, 5vw, 72px);
    background: linear-gradient(150deg, var(--blu-900) 0%, var(--blu-800) 38%, var(--blu-700) 70%, var(--blu-500) 120%);
    background-size: 220% 220%;
    animation: gradiente 24s ease-in-out infinite;
}

.acc-marchio-contenuto { position: relative; z-index: 2; max-width: 460px; }

.acc-marchio .brand-mark {
    width: 64px; height: 64px; border-radius: 18px; font-size: 1.35rem;
    border: 1px solid rgba(255,255,255,.35);
    animation: ingrandisci .7s var(--acc-curva) both;
}
.acc-marchio h1 {
    font-size: clamp(2rem, 3.4vw, 2.7rem);
    font-weight: 700; letter-spacing: -.5px; line-height: 1.1;
    margin: 22px 0 6px; color: #fff;
    animation: sali .6s var(--acc-curva) .1s both;
}
.acc-marchio .acc-legge {
    margin: 0; font-size: 1.1rem; color: rgba(255,255,255,.85);
    letter-spacing: .4px;
    animation: sali .6s var(--acc-curva) .18s both;
}
.acc-punti { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 16px; }
.acc-punti li {
    display: flex; align-items: flex-start; gap: 14px;
    font-size: 1rem; line-height: 1.35; color: rgba(255,255,255,.92);
    animation: scorri-sx .55s var(--acc-curva) both;
}
.acc-punti li:nth-child(1) { animation-delay: .3s; }
.acc-punti li:nth-child(2) { animation-delay: .4s; }
.acc-punti li:nth-child(3) { animation-delay: .5s; }
.acc-punti .acc-punto-icona {
    flex: 0 0 38px; height: 38px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
    font-size: .95rem;
}
.acc-punti strong { display: block; color: #fff; font-weight: 600; }

/* Forme decorative */
.acc-forma {
    position: absolute; z-index: 1; pointer-events: none;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    animation: acc-deriva 11s ease-in-out infinite;
}
.acc-forma.f1 { width: 280px; height: 280px; border-radius: 50%; top: -90px; right: -80px; --dx: -14px; --dy: 22px; animation-duration: 14s; }
.acc-forma.f2 { width: 120px; height: 120px; border-radius: 30px; --rot: 18deg; bottom: 12%; right: 9%; animation-duration: 10s; animation-delay: -3s; }
.acc-forma.f3 { width: 200px; height: 200px; border-radius: 50%; bottom: -70px; left: -60px; --dx: 18px; --dy: -14px; animation-duration: 16s; animation-delay: -6s; }
.acc-forma.f4 { width: 54px; height: 54px; border-radius: 16px; --rot: -12deg; top: 18%; right: 22%; background: rgba(242,163,58,.35); border-color: rgba(242,163,58,.5); animation-duration: 9s; animation-delay: -2s; }

.acc-pannello {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 40px clamp(16px, 4vw, 56px);
    background:
        radial-gradient(700px 420px at 100% 0%, var(--blu-100), transparent 65%),
        var(--superficie);
}
.acc-scheda {
    width: 100%; max-width: 470px;
    animation: ingrandisci .6s var(--acc-curva) both;
    transition: max-width .45s var(--acc-curva);
}
.acc-scheda.larga { max-width: 760px; }
.acc-scheda:has(#registerTab.active) { max-width: 760px; }

.acc-titolo { font-size: 1.75rem; font-weight: 700; letter-spacing: -.3px; margin: 0 0 4px; color: var(--testo); }
.acc-sottotitolo { margin: 0 0 22px; color: var(--testo-2); font-size: 1rem; }

.acc-piede { margin-top: 28px; text-align: center; font-size: .85rem; color: var(--testo-2); }
.acc-piede p { margin: 0 0 4px; }
.acc-piede .acc-legge-badge {
    display: inline-block; margin: 6px 0 8px; padding: 3px 12px; border-radius: 999px;
    background: var(--blu-100); color: var(--blu-800); font-weight: 600; font-size: .78rem;
}

/* ============================================================
   LINGUETTE ACCEDI / REGISTRA ENTE
   ============================================================ */
.acc-tabs {
    position: relative; display: flex; list-style: none;
    margin: 0 0 26px; padding: 5px;
    background: var(--blu-50); border: 1px solid var(--linea); border-radius: 15px;
}
.acc-tabs .nav-item { position: relative; z-index: 1; flex: 1; margin: 0; }
body.acc .acc-tabs .nav-link,
body.acc .acc-tabs .nav-link.active {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
    border: 0; border-radius: 11px; background: transparent; box-shadow: none;
    padding: 11px 12px; font: inherit; font-weight: 600; font-size: .98rem;
    color: var(--testo-2); cursor: pointer;
    transition: color .25s;
}
body.acc .acc-tabs .nav-link:hover { color: var(--blu-700); background: transparent; }
body.acc .acc-tabs .nav-link.active { color: var(--blu-700); }
body.acc .acc-tabs .nav-link::before,
body.acc .acc-tabs .nav-link::after { display: none; }
.acc-tab-ind {
    position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px;
    width: calc(50% - 5px); border-radius: 11px;
    background: #fff; box-shadow: var(--ombra-2);
    transition: transform .4s var(--acc-curva);
}
.acc-tabs[data-attivo="1"] .acc-tab-ind { transform: translateX(100%); }

.acc .tab-content { padding: 0; }
.acc .tab-pane.show { animation: sali .45s var(--acc-curva) both; }

.acc-link-cambio { text-align: center; margin-top: 22px; font-size: .95rem; }
.acc-link-cambio a { color: var(--blu-700); font-weight: 600; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
.acc-link-cambio a:hover { border-bottom-color: currentColor; }

/* Collegamento discreto accanto ai campi (es. «Password dimenticata?») */
.acc .acc-link-piccolo { color: var(--blu-700); font-size: .92rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
.acc .acc-link-piccolo:hover, .acc .acc-link-piccolo:focus-visible { border-bottom-color: currentColor; }

/* ============================================================
   CAMPI
   ============================================================ */
.acc .form-label, .acc label.form-label {
    display: block; margin: 0 0 6px;
    font-weight: 600; font-size: .9rem; color: var(--testo);
}
.acc .form-control, .acc .form-select, .acc textarea.form-control {
    width: 100%; height: auto; min-height: 46px;
    padding: 10px 14px; font: inherit; font-size: 1rem; color: var(--testo);
    background: var(--superficie-2); background-clip: padding-box;
    border: 1.5px solid var(--linea-forte); border-radius: 12px;
    box-shadow: none; outline: 0;
    transition: border-color .2s, box-shadow .25s, background-color .2s;
}
.acc .form-control::placeholder { color: var(--testo-3); opacity: 1; }
.acc .form-control:hover { border-color: var(--blu-500); }
.acc .form-control:focus, .acc .form-select:focus {
    background: #fff; border-color: var(--blu-500);
    box-shadow: 0 0 0 4px rgba(47,127,216,.20);
    outline: 0;
}
.acc .form-control[readonly] { background: var(--blu-50); color: var(--testo-2); }
.acc .form-control.is-invalid {
    border-color: var(--rosso); background-image: none; padding-right: 14px;
    animation: acc-scuoti .45s ease-out;
}
.acc .form-control.is-invalid:focus { box-shadow: 0 0 0 4px rgba(196,50,74,.18); }
.acc input[type="file"].form-control { padding: 9px 12px; }
.acc input[type="file"].form-control::file-selector-button {
    margin-right: 12px; padding: 6px 14px; border: 0; border-radius: 8px;
    background: var(--blu-100); color: var(--blu-800); font-weight: 600; cursor: pointer;
    transition: background-color .2s;
}
.acc input[type="file"].form-control::file-selector-button:hover { background: #cfe0f6; }
.acc .text-muted, .acc small.text-muted { color: var(--testo-2) !important; }
.acc .text-danger { color: var(--rosso) !important; }

/* Campi con icona (login) */
.acc .input-group { position: relative; display: block; width: 100%; }
.acc .input-group .form-control { padding-left: 46px; padding-right: 46px; }
.acc .input-group-icon {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    color: var(--testo-3); font-size: 1rem; z-index: 6; pointer-events: none; /* sopra il campo, che a fuoco sale a 5 */
    transition: color .2s;
}
.acc .input-group:focus-within .input-group-icon { color: var(--blu-700); }
.acc .password-toggle {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent;
    color: var(--testo-2); cursor: pointer; z-index: 5;
    display: inline-flex; align-items: center; justify-content: center;
    transition: color .2s, background-color .2s;
}
.acc .password-toggle:hover { color: var(--blu-700); background: var(--blu-50); }
.acc .password-toggle:focus-visible { outline: 3px solid var(--blu-500); outline-offset: 1px; }

.acc :focus-visible { outline: 3px solid rgba(47,127,216,.55); outline-offset: 2px; }
.acc .form-control:focus-visible { outline: 0; }

/* Ingresso scaglionato dei campi del login */
#loginForm > * { animation: sali .5s var(--acc-curva) both; }
#loginForm > *:nth-child(1) { animation-delay: .15s; }
#loginForm > *:nth-child(2) { animation-delay: .22s; }
#loginForm > *:nth-child(3) { animation-delay: .29s; }
#loginForm > *:nth-child(4) { animation-delay: .36s; }

/* ============================================================
   PULSANTI
   ============================================================ */
.acc .btn-primary-custom,
.acc .btn-primary,
.acc .btn-submit,
.acc .btn-upload {
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
    min-height: 48px; padding: 0 26px;
    border: 0; border-radius: 12px; cursor: pointer;
    font: inherit; font-weight: 600; font-size: 1rem; letter-spacing: .1px; text-transform: none;
    color: #fff;
    background: linear-gradient(135deg, var(--blu-600, #1565C0) 0%, var(--blu-800) 100%);
    box-shadow: 0 6px 16px rgba(11,79,156,.28);
    transition: transform .2s var(--acc-curva), box-shadow .25s, filter .2s, opacity .2s;
}
.acc .btn-primary-custom, .acc .btn-submit { width: 100%; margin-top: 8px; }
.acc .btn-primary-custom:hover:not(:disabled),
.acc .btn-primary:hover:not(:disabled),
.acc .btn-submit:hover:not(:disabled),
.acc .btn-upload:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(11,79,156,.34); filter: brightness(1.05); color: #fff; }
.acc .btn-primary-custom:active:not(:disabled),
.acc .btn-primary:active:not(:disabled),
.acc .btn-submit:active:not(:disabled) { transform: translateY(0); box-shadow: 0 3px 8px rgba(11,79,156,.3); }
.acc .btn-primary-custom:disabled,
.acc .btn-primary:disabled,
.acc .btn-submit:disabled { opacity: .6; cursor: not-allowed; box-shadow: none; }
.acc .btn-primary-custom:disabled .fa-spinner,
.acc .btn-submit:disabled .fa-spinner { opacity: 1; }
.acc .btn-outline-secondary {
    min-height: 48px; padding: 0 22px; border-radius: 12px;
    border: 1.5px solid var(--linea-forte); background: #fff; color: var(--testo-2);
    font-weight: 600; transition: border-color .2s, color .2s, background-color .2s, transform .2s var(--acc-curva);
}
.acc .btn-outline-secondary:hover { border-color: var(--blu-500); color: var(--blu-700); background: var(--blu-50); transform: translateX(-2px); }
.acc .btn-outline-primary {
    border-radius: 12px; min-height: 46px; padding: 0 24px; font-weight: 600;
    border: 1.5px solid var(--blu-700); color: var(--blu-700); background: #fff;
    transition: background-color .2s, color .2s, transform .2s var(--acc-curva);
}
.acc .btn-outline-primary:hover { background: var(--blu-700); color: #fff; transform: translateY(-1px); }

/* Casella "Ricordami" e altre */
.acc .form-check { margin-bottom: 16px; }
.acc .form-check-label { color: var(--testo); font-size: .95rem; }

/* ============================================================
   MESSAGGI
   ============================================================ */
.info-box {
    border: 1px solid #b8d4f3;
    border-left: 4px solid var(--blu-700);
    background: var(--blu-50);
    color: var(--testo);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: .92rem;
    animation: sali .35s var(--acc-curva) both;
}
.info-box-warning { border-color: #f0d9a8; border-left-color: #D9921E; background: #FFF9EC; }
.info-box-danger  { border-color: #f1bfc7; border-left-color: var(--rosso); background: #FDF2F4; color: #7d1f31; animation: acc-scuoti .5s ease-out both; }
.info-box-success { border-color: #b5dccb; border-left-color: var(--verde); background: #EFF9F4; color: #0b5a3e; }
.info-box-title { font-weight: 600; margin-bottom: 8px; }
.info-box ul { padding-left: 20px; margin-bottom: 0; }
.info-box li { margin-bottom: 4px; }
.acc .alert { border-radius: 12px; border: 0; font-size: .9rem; padding: 12px 16px; }

/* ============================================================
   PAGINE CENTRATE (primo accesso, pratica completata)
   ============================================================ */
body.acc-centrato {
    min-height: 100vh; position: relative; overflow-x: hidden;
    padding: 28px 16px 48px !important;
    background:
        radial-gradient(900px 520px at 8% -5%, var(--blu-100), transparent 62%),
        radial-gradient(700px 420px at 100% 100%, #fdf0dc, transparent 60%),
        var(--sfondo) !important;
}
.acc-orbita {
    position: fixed; z-index: 0; pointer-events: none; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(47,127,216,.20), rgba(47,127,216,0) 70%);
    animation: galleggia 9s ease-in-out infinite;
}
.acc-orbita.o1 { width: 340px; height: 340px; top: 8%; right: -90px; }
.acc-orbita.o2 { width: 240px; height: 240px; bottom: 4%; left: -70px; animation-delay: -4s; animation-duration: 12s; }

.acc-colonna { position: relative; z-index: 1; width: 100%; margin: 0 auto; }
.acc-colonna.stretta { max-width: 600px; }
.acc-colonna.media { max-width: 880px; }

.acc-testata {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-bottom: 22px; animation: scorri-sx .5s var(--acc-curva) both;
}
.acc-testata-marchio { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--testo); }
.acc-testata-marchio .brand-mark { width: 44px; height: 44px; font-size: 1rem; }
.acc-testata-marchio strong { display: block; font-size: 1.2rem; line-height: 1.1; }
.acc-testata-marchio small { display: block; color: var(--testo-2); font-size: .8rem; }
.acc-esci {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px;
    border-radius: 11px; background: #fff; border: 1.5px solid var(--linea-forte);
    color: var(--testo-2); font-weight: 600; font-size: .92rem; text-decoration: none;
    transition: border-color .2s, color .2s, background-color .2s;
}
.acc-esci:hover { border-color: var(--rosso); color: var(--rosso); background: #fdf2f4; }

.acc-card {
    background: #fff; border-radius: var(--r-xl, 22px);
    box-shadow: var(--ombra-3); border: 1px solid var(--linea);
    overflow: hidden; animation: ingrandisci .6s var(--acc-curva) both;
}
.acc-card-testa {
    padding: 30px 40px 22px;
    background: linear-gradient(180deg, var(--blu-50) 0%, #fff 100%);
    border-bottom: 1px solid var(--linea);
}
.acc-card-testa h1 { font-size: 1.7rem; font-weight: 700; margin: 0 0 4px; letter-spacing: -.3px; }
.acc-card-testa p { margin: 0; color: var(--testo-2); }
.acc-card-corpo { padding: 30px 40px 36px; }

/* Barra dei passi del primo accesso (id e classi usati dallo script) */
.step-indicator-bar {
    display: flex; align-items: flex-start; justify-content: center;
    padding: 22px 40px 18px; background: #fff; border-bottom: 1px solid var(--linea);
}
.step-bar-item { display: flex; flex-direction: column; align-items: center; flex: 0 0 auto; width: 130px; }
.step-bar-num {
    width: 38px; height: 38px; border-radius: 50%;
    border: 2px solid var(--linea-forte); background: #fff; color: var(--testo-2);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .95rem; margin-bottom: 8px;
    transition: background-color .35s, border-color .35s, color .35s, box-shadow .35s, transform .35s var(--acc-curva);
}
.step-bar-num.active { background: var(--blu-700); border-color: var(--blu-700); color: #fff; box-shadow: 0 0 0 5px rgba(11,79,156,.15); transform: scale(1.06); }
.step-bar-num.done { background: var(--verde); border-color: var(--verde); color: #fff; }
.step-bar-label { font-size: .85rem; color: var(--testo-2); text-align: center; font-weight: 600; }
.step-bar-item:has(.active) .step-bar-label { color: var(--blu-700); }
.step-bar-line { flex: 1; height: 3px; background: var(--linea); max-width: 160px; margin-top: 18px; border-radius: 3px; position: relative; overflow: hidden; }
.step-bar-line::after { content: ""; position: absolute; inset: 0; background: var(--verde); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--acc-curva); }
.step-bar-line.done::after { transform: scaleX(1); }
.step-bar-line.done { background: var(--linea); }

#step1, #step2 { animation: acc-passo-avanti .45s var(--acc-curva) both; }

.doc-upload-box {
    background: var(--superficie-2); border: 2px dashed var(--linea-forte); border-radius: 16px;
    padding: 24px; margin-bottom: 18px;
    transition: border-color .25s, background-color .25s, box-shadow .25s, transform .25s var(--acc-curva);
}
.doc-upload-box:hover { border-color: var(--blu-500); background: var(--blu-50); box-shadow: var(--ombra-2); transform: translateY(-2px); }
.doc-upload-box.uploaded { background: #EFF9F4; border-color: var(--verde); border-style: solid; }
.doc-upload-box .doc-icon {
    width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: var(--blu-700); background: var(--blu-100);
    transition: background-color .3s, color .3s, transform .4s var(--curva-molla, var(--acc-curva));
}
.doc-upload-box.uploaded .doc-icon { color: #fff; background: var(--verde); transform: scale(1.06); }

.download-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.btn-download {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: auto; max-width: 400px; padding: 9px 18px;
    background: #fff; color: var(--blu-700); border: 1.5px solid var(--blu-700); border-radius: 11px;
    cursor: pointer; font-weight: 600; font-size: .92rem; text-decoration: none;
    transition: background-color .2s, color .2s, transform .2s var(--acc-curva);
}
.btn-download:hover { background: var(--blu-700); color: #fff; transform: translateY(-1px); }
.acc .btn-upload { width: 100%; max-width: 400px; min-height: 46px; font-size: .95rem; margin: 0; }

.password-strength.bg-secondary { background-color: var(--linea) !important; }
.password-strength { height: 6px; border-radius: 3px; margin-top: 8px; transition: width .35s var(--acc-curva), background-color .3s; }

/* Pagina di attesa */
.acc-attesa { text-align: center; padding: 44px 40px 40px; }
.acc-attesa-icona {
    position: relative; width: 84px; height: 84px; margin: 0 auto 22px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--blu-100); color: var(--blu-700); font-size: 2rem;
}
.acc-attesa-icona::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    border: 2px solid var(--blu-500); animation: acc-anello 2.4s ease-out infinite;
}
.acc-attesa-ente { color: var(--blu-700); font-weight: 700; margin: 0 0 4px; }
.acc-attesa h1 { font-size: 1.7rem; font-weight: 700; margin: 0 0 12px; letter-spacing: -.3px; }
.acc-attesa p { color: var(--testo-2); margin-left: auto; margin-right: auto; max-width: 440px; }
.acc-attesa .acc-contatti { font-size: .92rem; margin: 20px auto 24px; }
.acc-attesa .acc-contatti a { color: var(--blu-700); font-weight: 600; }

/* ============================================================
   TELEFONO E SCHERMI STRETTI
   ============================================================ */
@media (max-width: 899px) {
    .acc-layout { grid-template-columns: 1fr; }
    .acc-marchio {
        position: relative; height: auto; padding: 28px 22px 30px;
        flex-direction: row; align-items: center;
        border-radius: 0 0 var(--r-xl, 22px) var(--r-xl, 22px);
    }
    .acc-marchio-contenuto { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; max-width: none; }
    .acc-marchio .brand-mark { width: 48px; height: 48px; font-size: 1.05rem; border-radius: 14px; }
    .acc-marchio h1 { font-size: 1.5rem; margin: 0; }
    .acc-marchio .acc-legge { font-size: .95rem; flex-basis: 100%; margin-top: -8px; padding-left: 62px; }
    .acc-punti { display: none; }
    .acc-forma.f1 { width: 180px; height: 180px; top: -70px; }
    .acc-forma.f2, .acc-forma.f4 { display: none; }
    .acc-pannello { padding: 28px 16px 40px; background: var(--superficie); }
    .acc-scheda, .acc-scheda.larga, .acc-scheda:has(#registerTab.active) { max-width: 560px; }
    .acc-card-testa, .acc-card-corpo, .step-indicator-bar { padding-left: 20px; padding-right: 20px; }
    .acc-attesa { padding: 36px 22px 32px; }
}
@media (max-width: 575px) {
    .step-bar-item { width: auto; flex: 1; }
    .step-bar-line { max-width: 40px; }
    .acc-testata-marchio small { display: none; }
}

/* ============================================================
   MOVIMENTO RIDOTTO
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0ms !important;
        transition-duration: .001ms !important;
    }
    /* Lo spinner di caricamento resta, ma lento */
    .fa-spin { animation: fa-spin 2.4s linear infinite !important; animation-duration: 2.4s !important; animation-iteration-count: infinite !important; }
    .acc-attesa-icona::after { display: none; }
}

/* ============================================================
   LOGHI ISORS
   ============================================================ */
.acc-marchio .acc-logo { display: block; width: 210px; height: auto; margin-bottom: 18px; animation: ingrandisci .7s var(--acc-curva) both; }
.acc-logo-testata { display: block; width: 150px; height: auto; }
.acc-logo-piede { display: block; width: 210px; height: auto; margin: 0 auto 10px; }
@media (max-width: 899px) {
    .acc-marchio .acc-logo { width: 150px; margin-bottom: 0; }
    .acc-marchio .acc-legge { padding-left: 0; }
}

/* Pagina di conferma dell'email: toni dell'icona, dettagli e passi successivi */
.acc-attesa-icona.tono-ok { background: var(--ok-bg); color: var(--ok-testo); }
.acc-attesa-icona.tono-ok::after { border-color: var(--verde); }
.acc-attesa-icona.tono-att { background: var(--att-bg); color: var(--att-testo); }
.acc-attesa-icona.tono-att::after { border-color: var(--accento); }
.acc-attesa-icona.tono-err { background: var(--err-bg); color: var(--err-testo); }
.acc-attesa-icona.tono-err::after { border-color: var(--rosso); animation: none; }
.acc-dettagli { margin: 22px auto; max-width: 440px; text-align: left; border: 1px solid var(--linea); border-radius: 14px; overflow: hidden; }
.acc-dettagli > div { display: flex; gap: 12px; justify-content: space-between; padding: 10px 16px; font-size: .9rem; }
.acc-dettagli > div + div { border-top: 1px solid var(--linea); }
.acc-dettagli dt { color: var(--testo-3); font-weight: 600; }
.acc-dettagli dd { margin: 0; color: var(--testo); font-weight: 700; text-align: right; }
.acc-passi { margin: 6px auto 24px; max-width: 440px; text-align: left; padding: 18px 20px; border-radius: 14px; background: var(--blu-50); }
.acc-passi h2 { font-size: 1rem; font-weight: 700; margin: 0 0 8px; color: var(--blu-700); }
.acc-passi ol { margin: 0; padding-left: 20px; color: var(--testo-2); font-size: .9rem; line-height: 1.7; }
