@charset "UTF-8";

/*
 * Stile del sito pubblico e dell'area clienti (Bootstrap 5).
 * Struttura: token -> base -> intestazione -> navigazione area clienti ->
 * componenti (card, titoli, pulsanti, moduli, stati) -> pagine specifiche -> footer -> cookie.
 */

/* ---------- Token ---------- */
:root {
    --brand-ink: #0f172a;
    --brand-ink-2: #1e293b;
    --brand-accent: #f59e0b;
    --brand-accent-hover: #fbbf24;
    --surface: #ffffff;
    --surface-muted: #f8fafc;
    --page-bg: #f1f5f9;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);

    /* Bootstrap allineato al marchio */
    --bs-primary: #1e293b;
    --bs-primary-rgb: 30, 41, 59;
    --bs-link-color: #b45309;
    --bs-link-color-rgb: 180, 83, 9;
    --bs-link-hover-color: #92400e;
    --bs-link-hover-color-rgb: 146, 64, 14;
    --bs-body-font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --bs-border-radius: 10px;
    --bs-border-color: var(--border);

    /* Compatibilità con le classi precedenti */
    --public-accent: var(--brand-accent);
    --public-muted: var(--text-muted);
    --public-border: var(--border);
}

/* ---------- Base ---------- */
body.public-shell {
    font-family: var(--bs-body-font-family);
    color: var(--text);
    background: var(--page-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 15px;
}

.site-main {
    flex: 1 0 auto;
    padding: 2rem 0 3rem;
}

.skip-link {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 2000;
    background: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
    outline: 3px solid var(--brand-accent);
    outline-offset: 2px;
}

/* ---------- Intestazione ---------- */
.site-header {
    background: linear-gradient(120deg, var(--brand-ink), var(--brand-ink-2));
    color: #f8fafc;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.site-header .container {
    min-height: 68px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.site-brand img {
    height: 40px;
    width: auto;
}

.site-brand-label {
    padding-left: 0.85rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    font-weight: 500;
    color: #cbd5e1;
    white-space: nowrap;
}

.site-nav {
    gap: 0.25rem;
    margin-left: 1.5rem;
}

.site-nav-link {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.925rem;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
}

.site-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.site-nav-link.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.site-icon-btn,
.site-user-btn,
.site-btn-ghost {
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    border-radius: 10px;
}

.site-icon-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.site-icon-btn:hover,
.site-user-btn:hover,
.site-btn-ghost:hover,
.site-user-btn.show {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

.site-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.75rem 0.3rem 0.35rem;
}

.site-avatar {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: var(--brand-accent);
    color: var(--brand-ink);
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-user-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.site-badge-dot {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--brand-accent);
    color: var(--brand-ink);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 18px;
}

/* Icona hamburger */
.public-menu-icon {
    position: relative;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    display: inline-block;
}

.public-menu-icon::before,
.public-menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.public-menu-icon::before { top: -6px; }
.public-menu-icon::after { top: 6px; }

/* Menu mobile */
.public-offcanvas { width: 300px; }
.menu-group + .menu-group { margin-top: 1.5rem; }

.menu-title {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.menu-list { margin: 0; }

.menu-link {
    display: block;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}

.menu-link:hover,
.menu-link:focus { background: var(--surface-muted); color: var(--text); }

.menu-link-button {
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
}

/* ---------- Navigazione area clienti ---------- */
.client-tabs {
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    scrollbar-width: thin;
}

.client-tab {
    white-space: nowrap;
    padding: 0.7rem 0.95rem;
    margin-bottom: -1px;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.925rem;
}

.client-tab:hover { color: var(--text); }

.client-tab.is-active {
    color: var(--text);
    border-bottom-color: var(--brand-accent);
}

/* ---------- Componenti ---------- */
.site-alert { border-radius: 12px; }

.public-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* La prima card con il titolo della pagina: intestazione sobria, non un riquadro enorme. */
.row > .col-12:first-child > .public-card.p-md-5 {
    padding: 1.5rem 1.75rem !important;
}

.section-title {
    font-weight: 700;
    font-size: 1.45rem;
    letter-spacing: -0.01em;
}

.section-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.public-card h2.h5,
.public-card .h5 {
    font-weight: 650;
    font-size: 1.05rem;
}

.form-hint,
.form-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.form-label { font-weight: 500; font-size: 0.9rem; }

.form-control,
.form-select {
    border-color: var(--border);
    padding: 0.55rem 0.8rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.18);
}

.required-field::after {
    content: " *";
    color: #b45309;
}

.input-group-text {
    background: var(--surface-muted);
    border-color: var(--border);
    color: var(--text-muted);
}

.badge-accent {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Pulsanti */
.btn { font-weight: 500; border-radius: 10px; }

.btn-accent {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    color: var(--brand-ink);
    font-weight: 600;
    white-space: nowrap;
}

.btn-accent:hover,
.btn-accent:focus {
    background: var(--brand-accent-hover);
    border-color: var(--brand-accent-hover);
    color: var(--brand-ink);
}

.btn-primary {
    --bs-btn-bg: var(--brand-ink-2);
    --bs-btn-border-color: var(--brand-ink-2);
    --bs-btn-hover-bg: var(--brand-ink);
    --bs-btn-hover-border-color: var(--brand-ink);
    --bs-btn-active-bg: var(--brand-ink);
}

.btn-outline-primary {
    --bs-btn-color: var(--brand-ink-2);
    --bs-btn-border-color: #cbd5e1;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand-ink-2);
    --bs-btn-hover-border-color: var(--brand-ink-2);
    --bs-btn-active-bg: var(--brand-ink);
    --bs-btn-active-border-color: var(--brand-ink);
}

.btn-outline-secondary {
    --bs-btn-color: var(--text);
    --bs-btn-border-color: var(--border);
    --bs-btn-hover-color: var(--text);
    --bs-btn-hover-bg: var(--surface-muted);
    --bs-btn-hover-border-color: #cbd5e1;
}

/* Tabelle */
.public-card .table { margin-bottom: 0; }

.public-card .table > thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom-color: var(--border);
}

.list-group-item-action:hover { background: var(--surface-muted); }

/* Riquadri di riepilogo area clienti */
.stat-tile {
    display: block;
    padding: 1.15rem 1.35rem;
    color: inherit;
    text-decoration: none;
}

.stat-tile-link:hover,
.stat-tile-link:focus-visible {
    border-color: var(--brand-accent);
    color: inherit;
}

.stat-label { color: var(--text-muted); font-size: 0.85rem; }

.stat-value {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-tile-warning .stat-value { color: #b45309; }

/* Stato vuoto */
.empty-state {
    padding: 1.5rem 1.25rem;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    text-align: center;
    background: var(--surface-muted);
}

details.public-card > summary {
    cursor: pointer;
    list-style-position: inside;
}

/* Passi numerati (modulo di richiesta) */
.step-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    background: rgba(245, 158, 11, 0.12);
    color: #92400e;
}

.form-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.form-step-number {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: var(--brand-ink-2);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.form-step-title { font-weight: 650; font-size: 1.05rem; margin: 0; }
.form-step-sub { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* ---------- Ticket ---------- */
.ticket-chat { display: grid; gap: 1rem; }
.ticket-message { display: flex; }
.ticket-message.is-admin { justify-content: flex-start; }
.ticket-message.is-user { justify-content: flex-end; }

.ticket-bubble {
    max-width: min(640px, 100%);
    padding: 0.9rem 1.1rem;
    border-radius: 14px;
    background: var(--surface-muted);
    border: 1px solid var(--border);
}

.ticket-message.is-user .ticket-bubble {
    background: #fffbeb;
    border-color: #fde68a;
}

.ticket-meta { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.35rem; }
.ticket-text { white-space: pre-wrap; }

/* ---------- Home ---------- */
.home-hero {
    background: linear-gradient(135deg, var(--brand-ink), #24324a);
    color: #f8fafc;
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.home-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.35), transparent 70%);
    pointer-events: none;
}

.home-hero h1 { font-weight: 750; font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.02em; }
.home-hero p { color: #cbd5e1; font-size: 1.05rem; }

.home-hero-panel {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 1.25rem 1.4rem;
}

.home-hero-panel li { padding: 0.35rem 0; color: #e2e8f0; display: flex; gap: 0.6rem; }
.home-hero-panel li::before { content: "✓"; color: var(--brand-accent); font-weight: 700; }

.btn-hero-ghost {
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-hero-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

.home-section-title { font-weight: 700; font-size: 1.35rem; margin-bottom: 0.25rem; }

.home-step,
.home-service {
    height: 100%;
    padding: 1.4rem;
}

.home-step-number {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.14);
    color: #92400e;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
}

.home-service-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-ink-2);
    margin-bottom: 0.85rem;
}

/* ---------- Pagine legali ---------- */
.prose { line-height: 1.7; }
.prose h2 { font-size: 1.15rem; font-weight: 700; margin-top: 2rem; margin-bottom: 0.75rem; }
.prose h3 { font-size: 1rem; font-weight: 700; margin-top: 1.5rem; }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.35rem; }
.prose table { font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 2.5rem 0 1.5rem;
    margin-top: auto;
}

.site-footer-logo { height: 40px; width: auto; }

.site-footer-title {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.site-footer-links li + li { margin-top: 0.4rem; }
.site-footer-links a { color: var(--text); text-decoration: none; font-size: 0.925rem; }
.site-footer-links a:hover { color: #b45309; }

.site-footer-bottom {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ---------- Avviso cookie (compatto) ---------- */
.cookie-consent {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 1080;
    max-width: 440px;
    display: none;
}

.cookie-consent.is-visible { display: block; }

.cookie-consent-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--brand-ink);
    color: #e2e8f0;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
    font-size: 0.85rem;
}

.cookie-consent-card a { color: var(--brand-accent); }

@media (max-width: 576px) {
    .cookie-consent { right: 1rem; max-width: none; }
    .cookie-consent-card { flex-direction: column; align-items: stretch; }
    .site-brand-label { display: none; }
    .home-hero { padding: 1.75rem; }
}

/* ---------- Pagine di accesso ---------- */
.auth-wrap {
    display: flex;
    justify-content: center;
    padding: 1rem 0 2rem;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    padding: 2rem;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0.35rem;
}

.auth-sub {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.auth-footer {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ---------- Elenco servizi (area clienti) ---------- */
.service-row {
    display: grid;
    /* Colonne a larghezza fissa: restano allineate anche nelle righe senza pulsante. */
    grid-template-columns: minmax(0, 1fr) 7.5rem 9rem 9.5rem;
    align-items: center;
    gap: 0.5rem 1rem;
    padding: 0.85rem 0;
    border-top: 1px solid var(--border);
}

.service-row:first-child { border-top: 0; padding-top: 0; }
.service-head {
    border-top: 0;
    padding: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.service-head + .service-row { border-top: 1px solid var(--border); padding-top: 0.85rem; }
.service-meta .small { display: none; }
.service-action { text-align: right; }

@media (max-width: 767.98px) {
    .service-row {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "main status" "meta action";
    }
    .service-main { grid-area: main; }
    .service-status { grid-area: status; text-align: right; }
    .service-meta { grid-area: meta; }
    .service-action { grid-area: action; }
    .service-meta .small { display: block; }
    .service-head { display: none; }
}

/* ---------- Pagine legali ---------- */
.legal-card { padding: 2rem 2.25rem; }
.legal-card .prose h2 { scroll-margin-top: 90px; }

.legal-aside {
    position: sticky;
    top: 92px;
}

.legal-aside-title {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.legal-toc { display: grid; gap: 0.1rem; }

.legal-toc a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0.3rem 0.6rem;
    border-left: 2px solid var(--border);
}

.legal-toc a:hover { color: var(--text); border-left-color: #cbd5e1; }
.legal-toc a.is-active { color: var(--text); border-left-color: var(--brand-accent); font-weight: 600; }

@media (max-width: 576px) {
    .legal-card { padding: 1.4rem; }
}

/* ---------- Richiesta a passi (requests/hosting) ---------- */
.wizard-wrap { max-width: 920px; margin: 0 auto; scroll-margin-top: 90px; }
.wizard-steps {
    list-style: none; margin: 0 0 1rem; padding: 0;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem;
}
.wizard-step {
    display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem;
    border-radius: 12px; background: var(--surface); border: 1px solid var(--border);
    color: var(--text-muted); font-weight: 600; font-size: .92rem; min-width: 0;
}
.wizard-step-number {
    flex-shrink: 0; width: 1.9rem; height: 1.9rem; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--surface-muted); border: 1px solid var(--border); font-size: .85rem;
}
.wizard-step-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wizard-step.is-active { border-color: var(--brand-accent); color: var(--text); box-shadow: 0 0 0 3px rgba(245, 158, 11, .15); }
.wizard-step.is-active .wizard-step-number { background: var(--brand-accent); border-color: var(--brand-accent); color: var(--brand-ink); }
.wizard-step.is-done { color: var(--text); cursor: pointer; }
.wizard-step.is-done .wizard-step-number { background: #16a34a; border-color: #16a34a; color: #fff; font-size: 0; }
.wizard-step.is-done .wizard-step-number::after { content: "✓"; font-size: .9rem; }

.wizard-title { font-size: 1.35rem; font-weight: 700; margin: 0 0 .35rem; outline: none; }
.wizard-sub { color: var(--text-muted); margin: 0 0 1.5rem; }
.wizard-note { background: var(--surface-muted); border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.15rem; }
.wizard-actions { display: flex; gap: .75rem; margin-top: 1rem; }

.domain-list { display: grid; gap: .9rem; margin-bottom: 1rem; }
.domain-row { border: 1px solid var(--border); border-radius: 12px; padding: .9rem; background: var(--surface-muted); }
.domain-row-main { display: flex; align-items: center; gap: .6rem; }
.domain-row-main .form-control { flex: 1; min-width: 0; }
.domain-status { flex-shrink: 0; font-size: .82rem; font-weight: 600; min-width: 4.5rem; text-align: center; }
.domain-status.is-ok { color: #15803d; }
.domain-status.is-error { color: #b91c1c; }
.domain-remove { flex-shrink: 0; text-decoration: none; font-size: .85rem; }
.domain-transfer { margin: .55rem 0 0 .1rem; }

.holder-type { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.holder-option { position: relative; cursor: pointer; }
.holder-option input { position: absolute; opacity: 0; pointer-events: none; }
.holder-option span {
    display: flex; flex-direction: column; gap: .15rem; padding: .9rem 1rem; border-radius: 12px;
    border: 2px solid var(--border); background: var(--surface); height: 100%;
}
.holder-option small { color: var(--text-muted); }
.holder-option input:checked + span { border-color: var(--brand-accent); background: rgba(245, 158, 11, .07); }
.holder-option input:focus-visible + span { outline: 3px solid rgba(245, 158, 11, .4); outline-offset: 2px; }

.billing-same {
    display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: 12px;
    border: 1px solid var(--border); background: var(--surface-muted); cursor: pointer;
}
.billing-same .form-check-input { width: 2.6rem; height: 1.4rem; margin: .1rem 0 0; flex-shrink: 0; border-radius: 2rem; }
.billing-same span { display: flex; flex-direction: column; gap: .15rem; }
.billing-same small { color: var(--text-muted); }

.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.summary-block { border: 1px solid var(--border); border-radius: 12px; padding: .9rem 1rem; background: var(--surface-muted); min-width: 0; word-break: break-word; }
.summary-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-bottom: .5rem; }
.summary-domains { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.terms-box { border-top: 1px solid var(--border); padding-top: 1.25rem; }
.terms-scroll { max-height: 60vh; overflow-y: auto; }

@media (max-width: 767.98px) {
    .wizard-steps { gap: .35rem; }
    .wizard-step { flex-direction: column; gap: .3rem; padding: .55rem .25rem; font-size: .72rem; text-align: center; }
    .wizard-step-label { white-space: normal; }
    .holder-type, .summary-grid { grid-template-columns: 1fr; }
    .domain-status { min-width: 0; }
    .wizard-actions { position: sticky; bottom: 0; background: var(--page-bg); padding: .75rem 0; margin-top: .5rem; }
    .wizard-actions .btn { flex: 1; }
}

/* Campi in maiuscolo (codice fiscale): il segnaposto resta normale. */
.text-uppercase::placeholder { text-transform: none; }

/* Procedura richiesta: fatturazione elettronica */
.einvoice-title { font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted, #64748b); border-top: 1px solid var(--border, #e2e8f0); padding-top: 1rem; margin-bottom: .25rem; }

/* Dati di fatturazione in riquadri separati (procedura richiesta e area clienti) */
.billing-boxes { display: flex; flex-direction: column; gap: .9rem; margin-top: 1rem; }
.billing-boxes[hidden] { display: none; }
.billing-box { border: 1px solid var(--border, #e2e8f0); border-radius: 12px; padding: 1rem 1rem 1.1rem; background: var(--surface, #fff); min-width: 0; margin: 0; }
.billing-box-title { float: none; width: auto; display: block; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #475569; margin: 0 0 .75rem; padding: 0; }
.billing-box-note { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--text-muted, #64748b); margin-left: .25rem; }
.billing-box-help { font-size: .85rem; color: var(--text-muted, #64748b); margin: -.4rem 0 .75rem; }
.billing-box-company { border-left: 3px solid var(--brand-accent, #f59e0b); }
@media (max-width: 420px) { .billing-box { padding: .85rem; } .billing-box-note { display: block; margin: .15rem 0 0; } }

/* Procedura richiesta, intestatario: per l'azienda la sede segue i dati aziendali, poi il responsabile */
.holder-boxes { margin-top: 0; }
.holder-boxes .hb-company { order: 1; }
.holder-boxes .hb-person { order: 2; }
.holder-boxes .hb-address { order: 3; }
.holder-boxes .hb-contacts { order: 4; }
.holder-boxes.is-company .hb-address { order: 2; }
.holder-boxes.is-company .hb-person { order: 3; border-left: 3px solid #64748b; }
