/* Sportello ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â pagina /accedi/ (.spt-w) e home ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â«Area di lavoroÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â» (.spt-tiles).
   Colori e font presi dal portale: rosso #d8221d, grigio #eee del piede, testo #666, Open Sans dal tema.
   Tutto sta sotto .spt-w, quindi il tema non entra e questo non esce. */

:is(.spt-w, .spt-tiles) {
    --spt-red: #d8221d;
    --spt-red-deep: #b51a16;
    --spt-ink: #333;
    --spt-text: #666;
    --spt-panel: #f4f4f4;
    --spt-ease: cubic-bezier(.2, .7, .2, 1);
}

.spt-w {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 34px 40px 34px 36px;
    background: var(--spt-panel);
    border-left: 6px solid var(--spt-red);
    border-radius: 0 4px 4px 0;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
    color: var(--spt-text);
}
.spt-w *, .spt-w *::before, .spt-w *::after { box-sizing: border-box; }
.spt-w :where(p, h2) { margin: 0; padding: 0; }

/* ---------- loggato ---------- */
.spt-w-avatar {
    flex: none;
    display: grid; place-items: center;
    width: 72px; height: 72px; border-radius: 50%;
    background: var(--spt-red); color: #fff;
    font-size: 26px; font-weight: 700; letter-spacing: .02em;
    animation: spt-w-pop .55s var(--spt-ease) backwards;
}

.spt-w-body { min-width: 0; }
.spt-w .spt-w-hello { font-size: inherit; font-weight: inherit; line-height: 1.15; letter-spacing: 0; color: var(--spt-ink); }
/* ogni riga sale da sotto un bordo invisibile */
.spt-w-line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.spt-w-line > span { display: block; animation: spt-w-rise .6s var(--spt-ease) backwards; }
.spt-w-greet { font-size: 20px; font-weight: 400; color: var(--spt-text); }
.spt-w-greet > span { animation-delay: .12s; }
.spt-w-name { margin-top: 2px; font-size: clamp(28px, 5.4vw, 40px); font-weight: 700; overflow-wrap: anywhere; }
.spt-w-name > span { animation-delay: .22s; }
.spt-w-sub { margin-top: 10px; font-size: 17px; animation: spt-w-fade .5s ease .5s backwards; }

/* ---------- non loggato ---------- */
.spt-w--out { display: block; padding: 30px 40px 32px 36px; }
.spt-w-text { max-width: 54ch; font-size: 18px; line-height: 1.55; }
.spt-w-cta { margin-top: 20px; }
:is(.spt-w, .spt-tiles) .spt-w-btn {
    display: inline-block;
    padding: 14px 30px;
    background: var(--spt-red); color: #fff;
    border-radius: 3px;
    font-size: 15px; font-weight: 700; letter-spacing: .04em; line-height: 1.2; text-transform: uppercase;
    text-decoration: none; box-shadow: none; border: 0;
    transition: background-color .2s ease;
}
:is(.spt-w, .spt-tiles) .spt-w-btn:hover { background: var(--spt-red-deep); color: #fff; }
:is(.spt-w, .spt-tiles) .spt-w-btn:focus-visible { outline: 3px solid rgba(216, 34, 29, .35); outline-offset: 3px; }


/* ---------- home: un riquadro per servizio ---------- */
.spt-tiles {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
    color: var(--spt-text);
}
.spt-tiles *, .spt-tiles *::before, .spt-tiles *::after { box-sizing: border-box; }
.spt-tiles :where(p, h2) { margin: 0; padding: 0; }

.spt-tile {
    position: relative;               /* ancora per il link che copre tutto il riquadro */
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 32px 32px 32px 30px;
    background: var(--spt-panel);
    border-left: 6px solid var(--spt-red);
    border-radius: 0 4px 4px 0;
    transition: background-color .2s ease;
}
.spt-tile:hover, .spt-tile:focus-within { background: #ececec; }

.spt-tile-ico {
    flex: none;
    display: grid; place-items: center;
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--spt-red);
}
.spt-tile-ico svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.spt-tile-body { min-width: 0; }
.spt-tiles .spt-tile-title { font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: 0; color: var(--spt-ink); }
.spt-tile-text { margin-top: 6px; font-size: 16px; }
.spt-tile-cta { margin-top: 20px; }

/* il pulsante ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¨ l'unico link, ma il clic vale su tutto il riquadro */
.spt-tile .spt-w-btn::after { content: ""; position: absolute; inset: 0; }
.spt-tile .spt-w-btn { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.spt-tile .spt-w-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--spt-ease); }
.spt-tile:hover .spt-w-btn { background: var(--spt-red-deep); }
.spt-tile:hover .spt-w-btn svg { transform: translateX(4px); }

@keyframes spt-w-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes spt-w-rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes spt-w-fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 600px) {
    .spt-w { gap: 18px; padding: 24px 20px 24px 18px; }
    .spt-w-avatar { width: 56px; height: 56px; font-size: 20px; }
    .spt-w-greet { font-size: 17px; }
    .spt-w-sub { font-size: 15px; }
    .spt-w--out { padding: 22px 20px 24px 18px; }
    .spt-tiles { grid-template-columns: 1fr; gap: 16px; }
    .spt-tile { gap: 16px; padding: 24px 20px 24px 18px; }
    .spt-tile-ico { width: 48px; height: 48px; }
    .spt-tile-ico svg { width: 22px; height: 22px; }
    .spt-tiles .spt-tile-title { font-size: 21px; }
    .spt-w .spt-w-btn { display: block; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    .spt-w *, .spt-w *::before, .spt-w *::after,
    .spt-tiles *, .spt-tiles *::before, .spt-tiles *::after { animation: none !important; transition: none !important; }
}

/* ---------- distacco globale del footer (anche su questa pagina) ---------- */
#main-content {
    padding-bottom: 56px;
}