/* DevRequest - design system minimo (PROJECT_SPEC §150) */
:root {
    --c-ink: #14213d;
    --c-ink-2: #1f2d4f;
    --c-text: #1d2433;
    --c-muted: #5b6577;
    --c-line: #e3e6ec;
    --c-bg: #ffffff;
    --c-bg-alt: #f5f6f9;
    --c-primary: #2a5bd7;
    --c-primary-d: #1f47ad;
    --c-accent: #f59f0b;
    --c-accent-d: #d98705;
    --c-success: #138a58;
    --c-warning: #b26b00;
    --c-danger: #c23a3a;
    --c-info: #2475a8;

    --radius-s: 6px;
    --radius: 10px;
    --radius-l: 16px;
    --shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 4px 16px rgba(20, 33, 61, .06);

    --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem;

    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

    --w-container: 1160px;
    --w-narrow: 780px;
    --w-form: 860px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--c-text); background: var(--c-bg); }
img { max-width: 100%; height: auto; }
a { color: var(--c-primary); text-underline-offset: 2px; }
a:hover { color: var(--c-primary-d); }
h1, h2, h3, h4 { line-height: 1.2; color: var(--c-ink); margin: 0 0 var(--s-3); }
h1 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); letter-spacing: -.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 var(--s-4); }
code { font-family: var(--mono); font-size: .9em; background: var(--c-bg-alt); padding: .1em .35em; border-radius: 4px; }
:focus-visible { outline: 3px solid rgba(42, 91, 215, .45); outline-offset: 2px; }

.container { width: 100%; max-width: var(--w-container); margin: 0 auto; padding: 0 var(--s-5); }
.container--narrow { max-width: var(--w-narrow); }
.container--form { max-width: var(--w-form); }
.muted { color: var(--c-muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--c-ink); color: #fff; padding: var(--s-2) var(--s-4); z-index: 100; }
.skip-link:focus { left: var(--s-2); }
.lead { font-size: 1.15rem; color: var(--c-muted); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--c-primary); }
.eyebrow--light { color: #9fb6f2; }
.disclaimer { margin-top: var(--s-5); }
.note { background: #fff8e6; border-left: 4px solid var(--c-accent); padding: var(--s-3) var(--s-4); border-radius: var(--radius-s); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); padding: .65rem 1.15rem; border: 1px solid transparent; border-radius: var(--radius-s); font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn--sm { padding: .4rem .8rem; font-size: .85rem; }
.btn--lg { padding: .85rem 1.5rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-d); color: #fff; }
.btn--accent { background: var(--c-accent); color: var(--c-ink); }
.btn--accent:hover { background: var(--c-accent-d); color: var(--c-ink); }
.btn--ghost { background: transparent; border-color: var(--c-line); color: var(--c-ink); }
.btn--ghost:hover { border-color: var(--c-ink); color: var(--c-ink); }
.btn--ghost-light { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; color: #fff; }
.btn--light { background: #fff; color: var(--c-ink); }
.btn--light:hover { background: #eef2fb; color: var(--c-ink); }

/* Badges */
.badge { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600; line-height: 1.5; background: var(--c-bg-alt); color: var(--c-ink); border: 1px solid transparent; }
.badge--outline { background: transparent; border-color: #c5cbd8; color: var(--c-muted); }
.badge--primary { background: #e7eefc; color: var(--c-primary-d); }
.badge--success { background: #e3f4ec; color: var(--c-success); }
.badge--warning { background: #fdf1dc; color: var(--c-warning); }
.badge--danger { background: #fbe7e7; color: var(--c-danger); }
.badge--info { background: #e2f0f8; color: var(--c-info); }
.badge--accent { background: #fff1d6; color: #8a5400; }
.tech-badge { display: inline-block; font-family: var(--mono); font-size: .75rem; padding: .15rem .5rem; border-radius: 4px; background: #eef1f7; color: var(--c-ink-2); }
.tech-list, .chip-list { list-style: none; margin: 0 0 var(--s-3); padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); }
.chip { font-size: .8rem; padding: .1rem .55rem; border: 1px solid var(--c-line); border-radius: 999px; color: var(--c-muted); }

/* Alerts */
.alert { padding: var(--s-3) var(--s-4); border-radius: var(--radius-s); margin-bottom: var(--s-4); border: 1px solid; }
.alert ul { margin: var(--s-2) 0 0; padding-left: 1.2rem; }
.alert--success { background: #eaf7f0; border-color: #b9e3cd; color: #0d5c3b; }
.alert--error { background: #fdeeee; border-color: #f2c3c3; color: #8a2222; }
.alert--warning { background: #fff7e6; border-color: #f4dba6; color: #6e4300; }
.alert--info { background: #eaf4fb; border-color: #bcdcef; color: #1b5578; }

/* Header / footer */
.site-header { background: #fff; border-bottom: 1px solid var(--c-line); position: sticky; top: 0; z-index: 20; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--c-ink); text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.brand__mark { font-family: var(--mono); font-size: .85rem; background: var(--c-ink); color: var(--c-accent); padding: .2rem .4rem; border-radius: 5px; }
.site-nav { display: flex; align-items: center; gap: var(--s-5); }
.site-nav a:not(.btn) { color: var(--c-ink); text-decoration: none; font-weight: 500; }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--c-primary); }
.site-footer { background: var(--c-ink); color: #c9d1e3; padding: var(--s-7) 0 var(--s-5); margin-top: 0; }
.site-footer a { color: #e4e9f5; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer .muted { color: #93a0bd; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s-6); }
.site-footer__title { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: var(--s-6); padding-top: var(--s-4); }
.brand--footer { color: #fff; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #2a3f73 0%, transparent 60%), var(--c-ink); color: #dfe6f5; padding: var(--s-8) 0; }
.hero__inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--s-7); align-items: center; }
.hero__title { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.2rem); margin-bottom: var(--s-4); }
.hero__lead { font-size: 1.2rem; color: #c5d0e8; max-width: 36rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: var(--s-5) 0 var(--s-3); }
.hero__note { font-size: .9rem; color: #93a3c7; }
.terminal { background: #0c1529; border: 1px solid #2b3a5e; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); overflow: hidden; }
.terminal__bar { display: flex; gap: 6px; padding: 10px 12px; background: #131f3a; }
.terminal__bar span { width: 10px; height: 10px; border-radius: 50%; background: #34446b; }
.terminal__body { margin: 0; padding: var(--s-5); font-family: var(--mono); font-size: .88rem; line-height: 1.7; color: #e8edf8; white-space: pre-wrap; }
.t-muted { color: #6f7fa6; }
.t-key { color: var(--c-accent); display: inline-block; min-width: 7.5rem; }

/* Sections */
.section { padding: var(--s-8) 0; }
.section--alt { background: var(--c-bg-alt); }
.section--form { padding-top: var(--s-5); }
.section__title { margin-bottom: var(--s-5); }
.section__title--sm { font-size: 1.25rem; margin-top: var(--s-6); }
.section__lead { color: var(--c-muted); margin-top: calc(var(--s-4) * -1); margin-bottom: var(--s-5); }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); }
.page-head { background: var(--c-bg-alt); border-bottom: 1px solid var(--c-line); padding: var(--s-6) 0 var(--s-5); }
.page-head--form { padding-bottom: var(--s-4); }
.grid { display: grid; gap: var(--s-4); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: var(--s-5); }
a.card { color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; display: block; }
a.card:hover { border-color: #b9c4dc; box-shadow: var(--shadow); transform: translateY(-1px); }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); counter-reset: none; }
.step { position: relative; padding: var(--s-5); border: 1px solid var(--c-line); border-radius: var(--radius); }
.step__num { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--c-ink); color: var(--c-accent); font-weight: 800; margin-bottom: var(--s-3); }
.category-card__title { font-size: 1rem; }
.problem-card__title { font-size: 1rem; margin-top: var(--s-3); }
.feature h3 { font-size: 1.05rem; }
.feature p { color: var(--c-muted); }
.feature { padding-left: var(--s-4); border-left: 3px solid var(--c-accent); }

.request-card { display: flex; flex-direction: column; }
.request-card__meta { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); margin-bottom: var(--s-2); }
.request-card__title { font-size: 1.05rem; }
.request-card__title a { color: var(--c-ink); text-decoration: none; }
.request-card__title a:hover { color: var(--c-primary); }
.request-card__excerpt { color: var(--c-muted); font-size: .92rem; }
.request-card__facts { display: flex; flex-wrap: wrap; gap: var(--s-4); margin: auto 0 0; padding-top: var(--s-3); border-top: 1px dashed var(--c-line); font-size: .85rem; }
.request-card__facts dt { color: var(--c-muted); }
.request-card__facts dd { margin: 0; font-weight: 600; color: var(--c-ink); }

.faq__item { border-bottom: 1px solid var(--c-line); padding: var(--s-4) 0; }
.faq__item summary { cursor: pointer; font-weight: 600; color: var(--c-ink); list-style: none; display: flex; justify-content: space-between; gap: var(--s-4); }
.faq__item summary::after { content: "+"; font-weight: 400; color: var(--c-muted); }
.faq__item[open] summary::after { content: "−"; }
.faq__item p { margin: var(--s-3) 0 0; color: var(--c-muted); }

.cta-band { background: linear-gradient(120deg, var(--c-primary) 0%, #3a3fb5 100%); color: #e9eefc; padding: var(--s-7) 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }
.cta-band__title { color: #fff; margin-bottom: var(--s-2); }
.cta-band p { margin: 0; }

.breadcrumb ol { list-style: none; padding: 0; margin: 0 0 var(--s-4); display: flex; flex-wrap: wrap; gap: var(--s-2); font-size: .85rem; color: var(--c-muted); }
.breadcrumb li + li::before { content: "›"; margin-right: var(--s-2); }
.breadcrumb a { color: var(--c-muted); }

.prose { max-width: 70ch; }
.prose h2 { font-size: 1.35rem; margin-top: var(--s-6); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: var(--s-2); }

.layout-sidebar { display: grid; grid-template-columns: 240px 1fr; gap: var(--s-6); align-items: start; }
.sidebar__title { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); }
.sidebar__list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-1); }
.sidebar__list a { display: block; padding: .35rem .6rem; border-radius: var(--radius-s); text-decoration: none; color: var(--c-ink); }
.sidebar__list a:hover { background: var(--c-bg-alt); }
.sidebar__list a[aria-current="page"] { background: #e7eefc; color: var(--c-primary-d); font-weight: 600; }
.empty-state { text-align: center; padding: var(--s-7) var(--s-5); border: 1px dashed var(--c-line); border-radius: var(--radius); }

.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-top: var(--s-5); }
.pagination a, .pagination span[aria-current] { padding: .35rem .7rem; border: 1px solid var(--c-line); border-radius: var(--radius-s); text-decoration: none; color: var(--c-ink); }
.pagination span[aria-current] { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.pagination__info { margin-left: auto; }

.request-head__badges { display: flex; gap: var(--s-3); align-items: center; margin-bottom: var(--s-2); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s-4); margin: var(--s-6) 0 0; }
.fact { background: var(--c-bg-alt); border-radius: var(--radius); padding: var(--s-4); }
.fact__label { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--c-muted); margin-bottom: var(--s-2); }
.fact__value { font-size: 1.15rem; font-weight: 700; color: var(--c-ink); margin: 0; }
.related-list { padding-left: 1.2rem; }

/* Forms */
.request-form { display: grid; gap: var(--s-5); }
.form-step { border: 1px solid var(--c-line); border-radius: var(--radius-l); padding: var(--s-5) var(--s-6) var(--s-4); margin: 0; min-width: 0; }
.form-step legend { font-weight: 700; font-size: 1.15rem; color: var(--c-ink); padding: 0 var(--s-2); display: flex; align-items: center; gap: var(--s-2); }
.form-step__num { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--c-ink); color: var(--c-accent); font-size: .9rem; }
.field { margin-bottom: var(--s-4); }
.field label, .field__label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: var(--s-1); color: var(--c-ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
input:not([type]), input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="password"], input[type="search"], input[type="date"], input[type="datetime-local"], select, textarea {
    width: 100%; font: inherit; font-size: 1rem; padding: .6rem .75rem; border: 1px solid #c9cfdb; border-radius: var(--radius-s); background: #fff; color: var(--c-text);
}
textarea { resize: vertical; min-height: 5rem; }
input:focus, select:focus, textarea:focus { border-color: var(--c-primary); outline: 3px solid rgba(42, 91, 215, .18); outline-offset: 0; }
[aria-invalid="true"] { border-color: var(--c-danger) !important; }
.field__hint { font-size: .85rem; color: var(--c-muted); margin: var(--s-1) 0 0; }
.field__error { font-size: .85rem; color: var(--c-danger); margin: var(--s-1) 0 0; font-weight: 600; }
.req { color: var(--c-danger); }
.char-count { float: right; }
.choice { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 500 !important; margin-right: var(--s-4); cursor: pointer; }
.choice--block { display: flex; align-items: flex-start; margin: 0 0 var(--s-3); }
.choice--block input { margin-top: .3rem; }
.choice-group { display: flex; flex-wrap: wrap; gap: var(--s-2); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--c-primary); width: 1.05rem; height: 1.05rem; }

.context-grid { display: grid; gap: var(--s-3); margin-bottom: var(--s-5); }
.context-q { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: var(--s-2) 0; border-bottom: 1px dashed var(--c-line); }
.context-q__label { font-size: .95rem; }
.seg { display: inline-flex; border: 1px solid #c9cfdb; border-radius: var(--radius-s); overflow: hidden; flex-shrink: 0; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: block; padding: .35rem .8rem; font-size: .85rem; font-weight: 500; }
.seg label + label span { border-left: 1px solid #c9cfdb; }
.seg input:checked + span { background: var(--c-ink); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid rgba(42, 91, 215, .45); outline-offset: -3px; }

.option-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s-3); }
.option-cards--4 { grid-template-columns: repeat(4, 1fr); }
.option-card { position: relative; cursor: pointer; }
.option-card input { position: absolute; opacity: 0; inset: 0; }
.option-card span { display: block; text-align: center; padding: var(--s-4) var(--s-3); border: 1px solid #c9cfdb; border-radius: var(--radius); font-weight: 600; transition: border-color .15s, background .15s; }
.option-card:hover span { border-color: var(--c-primary); }
.option-card input:checked + span { border-color: var(--c-primary); background: #edf2fd; color: var(--c-primary-d); box-shadow: inset 0 0 0 1px var(--c-primary); }
.option-card input:focus-visible + span { outline: 3px solid rgba(42, 91, 215, .45); }

.stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-2); counter-reset: step; }
.stepper li { counter-increment: step; font-size: .82rem; font-weight: 600; color: var(--c-muted); padding-top: var(--s-3); border-top: 4px solid var(--c-line); }
.stepper li::before { content: counter(step) ". "; }
.stepper li.is-active { color: var(--c-ink); border-top-color: var(--c-primary); }
.stepper li.is-done { color: var(--c-primary-d); border-top-color: #9db4ec; }
.form-nav { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); }
.form-nav__progress { color: var(--c-muted); font-size: .9rem; }
.form-submit { text-align: center; }
.form-submit .field__hint { margin-top: var(--s-3); }
.js-multistep .form-step:not(.is-active) { display: none; }

.thanks { text-align: center; }
.thanks__icon { width: 4rem; height: 4rem; margin: 0 auto var(--s-4); display: grid; place-items: center; border-radius: 50%; background: #e3f4ec; color: var(--c-success); font-size: 2rem; font-weight: 700; }
.thanks__next { text-align: left; margin: var(--s-6) 0; }
.thanks__next ol { padding-left: 1.2rem; margin: 0; }

/* Error pages */
.error-page { background: var(--c-bg-alt); min-height: 100vh; display: grid; place-items: center; padding: var(--s-5); }
.error-box { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-l); padding: var(--s-7) var(--s-6); max-width: 560px; width: 100%; text-align: center; box-shadow: var(--shadow); }
.error-box .brand { margin-bottom: var(--s-5); }
.error-box__status { font-family: var(--mono); font-size: 3rem; font-weight: 800; color: var(--c-line); margin: 0; line-height: 1; }
.error-box__code { font-family: var(--mono); background: var(--c-bg-alt); padding: var(--s-3); border-radius: var(--radius-s); }
.error-box__actions { display: flex; gap: var(--s-3); justify-content: center; flex-wrap: wrap; }
.error-box__debug { text-align: left; margin-top: var(--s-5); }
.error-box__debug pre { white-space: pre-wrap; font-size: .75rem; background: #0c1529; color: #e8edf8; padding: var(--s-4); border-radius: var(--radius-s); overflow: auto; max-height: 50vh; }

@media (max-width: 960px) {
    .hero__inner, .layout-sidebar { grid-template-columns: 1fr; }
    .hero__panel { display: none; }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
    .container { padding: 0 var(--s-4); }
    .site-nav a:not(.btn) { display: none; }
    .grid--2, .grid--3, .grid--4, .steps, .field-row { grid-template-columns: 1fr; }
    .option-cards--4 { grid-template-columns: 1fr 1fr; }
    .form-step { padding: var(--s-4); }
    .context-q { flex-direction: column; align-items: flex-start; }
    .cta-band__inner { flex-direction: column; align-items: flex-start; }
    .stepper li { font-size: 0; }
    .stepper li::before { font-size: .82rem; content: counter(step); }
    .section { padding: var(--s-7) 0; }
    .site-footer__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Checklist pagine richiesta */
.checklist { list-style: none; padding-left: 0; }
.checklist li { position: relative; padding-left: 1.6rem; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--c-success); font-weight: 700; }
.estimate-ack { margin-top: var(--s-5); padding: var(--s-4); background: #f5f8ff; border: 1px solid #d6e1fb; border-radius: var(--radius); }
.estimate-ack .choice--block { margin: 0; }
.upload-progress { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-2); }
.upload-progress__bar { flex: 1; height: 8px; background: var(--c-bg-alt); border-radius: 999px; overflow: hidden; }
.upload-progress__fill { display: block; height: 100%; width: 0; background: var(--c-primary); transition: width .2s; }

/* ---------- Professionisti ---------- */
.info-box { background: #f5f8ff; border: 1px solid #d6e1fb; border-radius: var(--radius); padding: var(--s-5); margin-bottom: var(--s-5); }
.info-box__title { font-size: 1.1rem; }
.info-box ol { margin: 0; padding-left: 1.2rem; }
.competence-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s-4); }
.competence-group__title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--c-muted); margin: 0 0 var(--s-1); }
.competence-group .choice, .skills-list .choice { display: flex; margin: 2px 0; }
.competence-skills { margin-top: var(--s-4); }
.skills-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 var(--s-4); margin-top: var(--s-3); max-height: 320px; overflow-y: auto; }
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar--lg { width: 96px; height: 96px; }
.avatar--xl { width: 120px; height: 120px; }
.avatar--placeholder { display: inline-grid; place-items: center; background: var(--c-ink); color: var(--c-accent); font-weight: 800; font-size: 1.4rem; }
.avatar--xl.avatar--placeholder { font-size: 2.6rem; }
.avatar-row { display: flex; align-items: center; gap: var(--s-4); margin-bottom: var(--s-2); }
.pro-card__head { display: flex; gap: var(--s-3); align-items: center; margin-bottom: var(--s-3); }
.pro-card__name { font-size: 1.05rem; margin: 0; }
.pro-head { display: flex; gap: var(--s-5); align-items: center; }
.pro-head h1 { margin-bottom: var(--s-1); }
.pro-head .badge { margin: 0 var(--s-1) var(--s-1) 0; }
.login-card { max-width: 420px; margin: 0 auto; }
.pro-tag { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); margin-left: var(--s-1); }
.section--pro { padding-top: var(--s-5); }
.pro-title { font-size: 1.6rem; }
.credit-pill { background: var(--c-ink); color: var(--c-accent) !important; padding: .3rem .8rem; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: .85rem; }
.inline-form { display: inline; margin: 0; }
.pro-request { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: var(--s-5); align-items: start; }
.simple-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.simple-table th { text-align: left; font-size: .78rem; text-transform: uppercase; color: var(--c-muted); padding: var(--s-2); border-bottom: 2px solid var(--c-line); }
.simple-table td { padding: var(--s-2); border-bottom: 1px solid var(--c-line); vertical-align: top; }
.table-scroll { overflow-x: auto; }
.credit-balance { text-align: center; }
.credit-balance__value { font-size: 3rem; font-weight: 800; color: var(--c-ink); margin: 0; line-height: 1.1; }
.package-card { text-align: center; display: grid; gap: var(--s-2); }
.package-card__credits { font-size: 1.4rem; font-weight: 800; margin: 0; color: var(--c-ink); }
.package-card__price { font-size: 1.2rem; font-weight: 700; color: var(--c-primary); margin: 0; }
.bank-details { white-space: pre-wrap; background: var(--c-bg-alt); padding: var(--s-4); border-radius: var(--radius-s); font-family: var(--mono); font-size: .9rem; }
.text-success { color: var(--c-success); font-weight: 700; }
.text-danger { color: var(--c-danger); font-weight: 700; }
@media (max-width: 900px) { .pro-request { grid-template-columns: 1fr; } .pro-head { flex-direction: column; align-items: flex-start; } }

/* ---------- Guide SEO ---------- */
.preview-banner { background: #fff1d6; color: #6e4300; text-align: center; padding: var(--s-2) var(--s-4); font-weight: 600; font-size: .9rem; }
.facts--top { margin: 0 0 var(--s-6); }
.term-list { padding-left: 1.2rem; }
.term-list li { margin-bottom: var(--s-2); }
.example-box { background: var(--c-bg-alt); border-left: 4px solid var(--c-primary); padding: var(--s-4) var(--s-5); border-radius: var(--radius-s); }
.example-box p:last-child { margin-bottom: 0; }
.tech-badge--link { text-decoration: none; }
.tech-badge--link:hover { background: #dfe6f5; }
.tech-index { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-1); }


/* Sicurezza account: password, verifica in due passaggi (QR code), sessioni */
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.account-card { background: #fff; border: 1px solid #e3e6ec; border-radius: 10px; padding: 18px 20px; margin-bottom: 16px; min-width: 0; }
.account-card h2 { font-size: 1.1rem; margin: 0 0 10px; }
.account-form { display: grid; gap: 4px; max-width: 420px; margin-top: 10px; }
.account-form .btn { justify-self: start; }
.account-details { margin-top: 12px; border-top: 1px solid #e3e6ec; padding-top: 10px; }
.account-details summary { cursor: pointer; font-weight: 600; }
.setup-steps { margin: 0; padding-left: 1.4rem; display: grid; gap: 18px; }
.setup-steps > li::marker { font-weight: 700; }
.setup-steps h2 { font-size: 1.05rem; margin: 0 0 6px; }
.qr-box { display: inline-block; background: #fff; padding: 10px; border: 1px solid #e3e6ec; border-radius: 10px; margin: 8px 0; line-height: 0; }
.qr-box .qr { width: 220px; height: 220px; display: block; }
.secret-key { font-family: ui-monospace, Consolas, monospace; font-size: 1.15rem; letter-spacing: .08em; background: #f5f6f9; border: 1px dashed #c5cbd8; border-radius: 8px; padding: 8px 12px; display: inline-block; user-select: all; }
.recovery-codes { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 6px 32px; padding-left: 1.6rem; margin: 12px 0 18px; }
.recovery-codes code { font-size: 1.05rem; letter-spacing: .06em; user-select: all; }
.input-code { font-family: ui-monospace, Consolas, monospace; font-size: 1.25rem; letter-spacing: .25em; max-width: 220px; }
.session-list { list-style: none; padding: 0; margin: 10px 0 14px; display: grid; gap: 8px; }
.session-list__item { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid #e3e6ec; border-radius: 8px; padding: 10px 12px; }
.session-list__item .badge { margin-left: 6px; }
.copy-field { width: 100%; margin-top: 6px; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
.roles-help summary { cursor: pointer; font-size: 13px; font-weight: 600; }
@media (max-width: 900px) { .account-grid { grid-template-columns: 1fr; } .recovery-codes { grid-template-columns: 1fr; } }

/* Icone SVG inline (App\Support\Icon) */
.icon { width: 1.5rem; height: 1.5rem; flex: none; }
.icon--sm { width: 1rem; height: 1rem; vertical-align: -.15em; }

/* Guide: card della base di conoscenza (home, indice guide) */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.guide-card { position: relative; display: flex; flex-direction: column; gap: var(--s-2); background: #fff; border: 1px solid #dbe3f4; border-top: 3px solid var(--c-primary); border-radius: 12px; padding: var(--s-5); transition: border-color .15s, box-shadow .15s, transform .15s; }
.guide-card:hover { box-shadow: 0 10px 26px rgba(42, 91, 215, .12); transform: translateY(-2px); }
.guide-card:focus-within { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.guide-card__top { display: flex; align-items: center; gap: var(--s-2); }
.guide-card__icon { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 8px; background: #e7eefc; color: var(--c-primary-d); }
.guide-card__icon .icon { width: 1.15rem; height: 1.15rem; }
.guide-card__label { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-primary-d); }
.guide-card__title { font-size: 1.08rem; line-height: 1.35; margin: var(--s-1) 0 0; }
.guide-card__title a { color: var(--c-ink); text-decoration: none; }
.guide-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.guide-card__title a:focus-visible { outline: none; }
.guide-card:hover .guide-card__title a { color: var(--c-primary); }
.guide-card__summary { color: var(--c-muted); font-size: .92rem; margin: 0; }
.guide-card__facts { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin: auto 0 0; padding-top: var(--s-3); border-top: 1px solid #e8edf7; font-size: .82rem; }
.guide-card__facts dt { color: var(--c-muted); }
.guide-card__facts dd { margin: 0; font-weight: 700; color: var(--c-ink); }
.guide-card__cta { display: inline-flex; align-items: center; gap: .3rem; color: var(--c-primary); font-weight: 700; font-size: .88rem; }

/* Tessere di collegamento interne (guide correlate, pagine professionista) */
.link-tiles { list-style: none; margin: 0 0 var(--s-5); padding: 0; display: grid; gap: var(--s-3); }
.link-tiles--3 { grid-template-columns: repeat(3, 1fr); }
.link-tiles--2 { grid-template-columns: repeat(2, 1fr); }
.link-tile { display: flex; align-items: flex-start; gap: var(--s-3); height: 100%; background: #fff; border: 1px solid var(--c-line); border-radius: 12px; padding: var(--s-4); color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.link-tile:hover, .link-tile:focus-visible { border-color: #b9c4dc; box-shadow: var(--shadow); transform: translateY(-1px); }
.link-tile__icon { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 9px; background: #e7eefc; color: var(--c-primary-d); flex: none; }
.link-tile__icon .icon { width: 1.15rem; height: 1.15rem; }
.link-tile__body { display: grid; gap: .15rem; flex: 1; min-width: 0; }
.link-tile__label { font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--c-primary-d); }
.link-tile__title { font-weight: 700; color: var(--c-ink); line-height: 1.3; }
.link-tile:hover .link-tile__title { color: var(--c-primary); }
.link-tile__text { color: var(--c-muted); font-size: .86rem; line-height: 1.45; }
.link-tile__meta { font-size: .8rem; font-weight: 600; color: var(--c-ink-2); }
.link-tile__arrow { color: #9aa6bd; align-self: center; transition: transform .15s, color .15s; }
.link-tile:hover .link-tile__arrow { color: var(--c-primary); transform: translateX(2px); }
@media (max-width: 960px) { .link-tiles--3, .guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .link-tiles--3, .link-tiles--2, .guide-grid { grid-template-columns: 1fr; } }
.section__title--spaced { margin-top: var(--s-7); }

/* Area "Le mie richieste" (senza account) */
.page-head--compact { padding: var(--s-5) 0 var(--s-4); }
.section--tight { padding: var(--s-6) 0; }
.customer-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-4); flex-wrap: wrap; }
.customer-head__actions { display: flex; gap: var(--s-2); align-items: center; }
.customer-head__actions .btn { display: inline-flex; align-items: center; gap: .35rem; }
.customer-access { text-align: left; }
.customer-access__icon { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 12px; background: #e7eefc; color: var(--c-primary-d); margin-bottom: var(--s-3); }
.customer-list { list-style: none; margin: 0 0 var(--s-5); padding: 0; display: grid; gap: var(--s-2); }
.customer-item { display: grid; grid-template-columns: 1fr auto auto; gap: var(--s-4); align-items: center; background: #fff; border: 1px solid var(--c-line); border-radius: 12px; padding: var(--s-4) var(--s-5); color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.customer-item:hover, .customer-item:focus-visible { border-color: #b9c4dc; box-shadow: var(--shadow); }
.customer-item__main { display: grid; gap: .2rem; min-width: 0; }
.customer-item__title { font-weight: 700; color: var(--c-ink); }
.customer-item__status { display: grid; justify-items: end; gap: .2rem; }
.customer-item__hint { color: var(--c-warning); font-weight: 700; }
.customer-item__arrow { color: #9aa6bd; }
.customer-detail { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: var(--s-6); align-items: start; }
.card__title { font-size: 1.05rem; margin-bottom: var(--s-3); }
.card__subtitle { font-size: .95rem; margin: var(--s-4) 0 var(--s-2); }
.kv-list { display: grid; grid-template-columns: auto 1fr; gap: .3rem var(--s-3); margin: 0 0 var(--s-3); font-size: .92rem; }
.kv-list dt { color: var(--c-muted); }
.kv-list dd { margin: 0; font-weight: 600; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.customer-detail__desc summary { cursor: pointer; font-weight: 600; color: var(--c-primary); }
.customer-detail__desc p { white-space: normal; color: var(--c-text); font-size: .92rem; }
.quote-box { border: 2px solid #f6c56b; background: #fffaf0; margin-bottom: var(--s-5); }
.quote-box h2 { font-size: 1.15rem; margin-bottom: var(--s-2); }
.quote-box__amount { font-size: 1.6rem; font-weight: 800; color: var(--c-ink); margin: 0 0 var(--s-2); }
.quote-box__amount .muted { font-size: 1rem; font-weight: 500; }
.quote-box__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: flex-start; margin-top: var(--s-3); }
.quote-box__reject summary { cursor: pointer; padding: .55rem .9rem; border: 1px solid #c5cbd8; border-radius: var(--radius-s, 8px); font-weight: 600; list-style: none; }
.quote-box__reject[open] { flex-basis: 100%; }
.quote-box__reject form { margin-top: var(--s-3); max-width: 520px; }
.timeline { list-style: none; margin: 0 0 var(--s-5); padding: 0 0 0 var(--s-5); border-left: 2px solid #dfe5f0; display: grid; gap: var(--s-4); }
.timeline__item { position: relative; display: grid; gap: .15rem; }
.timeline__item::before { content: ""; position: absolute; left: calc(var(--s-5) * -1 - 7px); top: .3rem; width: 12px; height: 12px; border-radius: 50%; background: var(--c-primary); box-shadow: 0 0 0 3px #fff; }
.timeline__item--customer::before { background: var(--c-accent); }
.timeline__date { font-size: .8rem; color: var(--c-muted); }
.timeline__label { font-weight: 700; color: var(--c-ink); }
.timeline__text { color: var(--c-text); font-size: .92rem; background: var(--c-bg-alt); border-radius: 8px; padding: .5rem .7rem; }
.thanks__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; margin: var(--s-5) 0 var(--s-3); }
@media (max-width: 900px) { .customer-detail { grid-template-columns: 1fr; } .customer-item { grid-template-columns: 1fr auto; } .customer-item__arrow { display: none; } }

/* Pagine legali */
.legal h2 { font-size: 1.2rem; margin-top: var(--s-6); }
.legal ul { padding-left: 1.2rem; display: grid; gap: .35rem; }
.legal-table { width: 100%; border-collapse: collapse; margin: var(--s-3) 0 var(--s-4); font-size: .93rem; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: .55rem .7rem; border: 1px solid var(--c-line); }
.legal-table th { background: var(--c-bg-alt); }
.legal-todo { background: #fff1c2; color: #7a4b00; border-radius: 4px; padding: 0 .3rem; font-weight: 600; }
.legal__nav { margin-top: var(--s-6); border-top: 1px solid var(--c-line); padding-top: var(--s-3); }

/* Menu mobile (details/summary: funziona senza JavaScript) */
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .8rem; border: 1px solid var(--c-line); border-radius: 8px; font-weight: 600; color: var(--c-ink); }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu__bars, .mobile-menu__bars::before, .mobile-menu__bars::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.mobile-menu__bars::before, .mobile-menu__bars::after { content: ""; position: absolute; left: 0; }
.mobile-menu__bars::before { top: -5px; }
.mobile-menu__bars::after { top: 5px; }
.mobile-menu[open] summary { background: var(--c-bg-alt); }
.mobile-menu__panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(86vw, 320px); background: #fff; border: 1px solid var(--c-line); border-radius: 12px; box-shadow: 0 14px 34px rgba(20, 33, 61, .18); padding: var(--s-3); display: grid; gap: .15rem; z-index: 30; }
.mobile-menu__panel a:not(.btn) { padding: .65rem .7rem; border-radius: 8px; color: var(--c-ink); text-decoration: none; font-weight: 600; }
.mobile-menu__panel a:not(.btn):hover, .mobile-menu__panel a[aria-current="page"] { background: var(--c-bg-alt); color: var(--c-primary); }
.mobile-menu__panel .btn { margin-top: var(--s-2); }
@media (max-width: 680px) {
    .site-nav { display: none; }
    .mobile-menu { display: block; }
    .customer-item { grid-template-columns: 1fr; gap: var(--s-2); }
    .customer-item__status { justify-items: start; }
    .customer-head__actions { flex-wrap: wrap; }
}
[hidden] { display: none !important; }

/* Servizi */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.service-card { position: relative; display: flex; flex-direction: column; gap: var(--s-2); background: #fff; border: 1px solid var(--c-line); border-radius: 14px; padding: var(--s-5); transition: box-shadow .15s, transform .15s, border-color .15s; }
.service-card:hover { border-color: #b9c4dc; box-shadow: var(--shadow); transform: translateY(-2px); }
.service-card:focus-within { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.service-card__icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 12px; background: var(--c-ink); color: var(--c-accent); }
.service-card__title { font-size: 1.12rem; line-height: 1.3; margin: var(--s-2) 0 0; }
.service-card__title a { color: var(--c-ink); text-decoration: none; }
.service-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.service-card__title a:focus-visible { outline: none; }
.service-card__text { color: var(--c-muted); font-size: .93rem; margin: 0; }
.service-card__band { margin: auto 0 0; padding-top: var(--s-3); border-top: 1px dashed var(--c-line); display: flex; justify-content: space-between; align-items: baseline; }
.service-card__cta { display: inline-flex; align-items: center; gap: .3rem; color: var(--c-primary); font-weight: 700; font-size: .9rem; }
@media (max-width: 960px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .service-grid { grid-template-columns: 1fr; } }
