:root {
    --acc-bg: #eef4fb;
    --acc-card: #ffffff;
    --acc-text: #1f2937;
    --acc-primary: #0b5ed7;
    --acc-primary-dark: #0a4eb5;
    --acc-border: #d7e1ec;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--acc-bg);
    color: var(--acc-text);
    line-height: 1.6;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    padding: 10px 14px;
    background: #0b3b6e;
    color: #fff;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
}
.skip-link:focus { left: 12px; }

.topbar {
    background: linear-gradient(135deg, rgba(120,170,230,0.45) 60%, rgba(180,210,250,0.45) 100%);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 16px;
}
.topbar .row {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}
.brand img { max-height: 44px; width: auto; }

.nav-inline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.btn {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--acc-border);
    background: #fff;
    color: #17324f;
    text-decoration: none;
    font-size: 14px;
}
.btn.primary {
    background: var(--acc-primary);
    border-color: var(--acc-primary-dark);
    color: #fff;
}
.btn:hover { filter: brightness(0.97); }

main { padding: 20px 0 30px; }
.card {
    background: var(--acc-card);
    border: 1px solid var(--acc-border);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 16px rgba(0,0,0,0.05);
    margin-bottom: 14px;
}
h1, h2, h3 { color: #103d67; line-height: 1.25; }
h1 { margin-top: 0; font-size: 1.7rem; }
h2 { font-size: 1.25rem; margin-top: 0.8rem; }

ul { padding-left: 1.15rem; }

label { display: block; font-weight: 600; margin-bottom: 5px; }
input, textarea, select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #b7c6d8;
    background: #fff;
    font: inherit;
}
textarea { min-height: 120px; }
.field { margin-bottom: 12px; }

/* Honeypot anti-bot: nascosto a schermo e da aria-hidden sul markup */
.hp-acc {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.card form { position: relative; }

.note {
    font-size: 0.93rem;
    color: #4b5563;
}

.footer-acc {
    margin-top: 20px;
    padding: 18px 0;
    background: #d6e5f6;
    border-top: 2px solid #9fb9d8;
    font-size: 0.98rem;
    color: #132d47;
}
.footer-acc p { margin: 0 0 8px; }
.footer-acc a {
    color: #0a3a67;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.footer-links {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.footer-links li { margin: 0; }
.footer-links a { margin-right: 0; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, .btn:focus-visible {
    outline: 3px solid var(--acc-primary);
    outline-offset: 2px;
}

@media (max-width: 760px) {
    .topbar .row { min-height: 56px; }
    .brand img { max-height: 36px; }
    h1 { font-size: 1.4rem; }
}
