body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f5f8fa;
    margin: 0;
    padding: 0;
}
header {
    background: #025eab;
    color: #fff;
    padding: 0;
    margin: 0;
}
.topbar {
    display: flex;
    align-items: center;
    padding: 10px 20px 6px 20px;
}
.logo {
    height: 48px;
    margin-right: 18px;
}
.title {
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: .02em;
}
.navbar {
    background: #1774c7;
    display: flex;
    flex-wrap: wrap;
    padding: 0 16px;
}
.navbar a {
    color: #fff;
    text-decoration: none;
    padding: 12px 14px;
    font-size: 1.07rem;
    transition: background .15s;
    border-radius: 3px 3px 0 0;
    margin-right: 2px;
}
.navbar a.logout { background: #d02a2a; }
.navbar a:hover {
    background: #fff;
    color: #025eab;
}
main {
    padding: 30px 10px 30px 10px;
    max-width: 850px;
    margin: 40px auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 0 18px #0002;
    min-height: 380px;
}
form {
    background: #f6fafd;
    padding: 18px 22px;
    border-radius: 8px;
    margin-top: 18px;
    box-shadow: 0 0 5px #0001;
}
input, button, textarea, select {
    margin: 10px 0;
    padding: 8px;
    font-size: 1rem;
    border: 1px solid #bbb;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
}
button {
    background: #025eab;
    color: #fff;
    border: none;
    cursor: pointer;
    width: auto;
    padding: 8px 20px;
}
button:hover {
    background: #02386b;
}
ul.flash {
    color: #d00000;
    margin-bottom: 12px;
    list-style: none;
    padding: 0;
}
footer {
    text-align: center;
    background: #025eab;
    color: #fff;
    padding: 12px 0;
    font-size: .97rem;
    letter-spacing: 0.04em;
    margin-top: 35px;
}
@media (max-width: 650px) {
    main { margin: 16px 4px; padding: 14px 2vw; }
    .title { font-size: 1.2rem; }
    footer { font-size: 0.90rem; }
    .navbar a { font-size: 0.99rem; padding: 10px 5px;}
}
/* --- News Card Style --- */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 36px;
}
.news-card {
    background: #f8fafc;
    border-radius: 10px;
    box-shadow: 0 1px 7px #025eab25;
    padding: 22px 18px 15px 18px;
    border-left: 6px solid #025eab;
    transition: box-shadow 0.15s;
}
.news-card:hover {
    box-shadow: 0 4px 15px #025eab45;
}
.news-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}
.news-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #025eab;
}
.news-date {
    font-size: 0.96rem;
    color: #888;
    font-style: italic;
}
.news-body {
    font-size: 1.06rem;
    color: #23272c;
    margin-top: 8px;
    white-space: pre-line;
}
.doc-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 32px;
    background: #fafdff;
    border-radius: 7px;
    box-shadow: 0 2px 11px #025eab18;
    overflow: hidden;
}
.doc-table th, .doc-table td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid #e6e6e6;
}
.doc-table th {
    background: #025eab;
    color: #fff;
    font-weight: 600;
}
.doc-table tr:hover td {
    background: #e9f3fd;
}
.doc-upload label {
    font-weight: 500;
    margin-bottom: 7px;
    display: block;
}
.doc-upload input, .doc-upload select {
    margin-bottom: 15px;
}
.faq-list {
    margin-bottom: 30px;
}
.faq-item {
    margin-bottom: 16px;
    background: #f7fafc;
    border-radius: 7px;
    box-shadow: 0 1px 6px #025eab18;
    padding: 8px 16px 8px 16px;
}
.faq-title {
    width: 100%;
    text-align: left;
    background: #025eab;
    color: #fff;
    border: none;
    outline: none;
    font-size: 1.07rem;
    font-weight: 600;
    padding: 10px 0 10px 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 0;
    transition: background 0.18s;
}
.faq-title:hover, .faq-title:focus {
    background: #0360a8;
}
.faq-answer {
    padding: 13px 8px 6px 16px;
    font-size: 1.04rem;
    color: #222;
    display: none;
    border-left: 3px solid #025eab;
    background: #eef7fd;
    border-radius: 0 0 7px 7px;
    margin-top: 3px;
}
.news-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 36px;
}
.news-card {
    background: #f8fafc;
    border-radius: 10px;
    box-shadow: 0 1px 7px #025eab25;
    padding: 22px 18px 15px 18px;
    border-left: 6px solid #025eab;
    margin-bottom: 28px;
    transition: box-shadow 0.15s;
}
.news-highlight {
    background: #fff9f0;
    border-left: 8px solid #e6572c;
    box-shadow: 0 2px 14px #e6572c22;
}
.news-header {
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}
.news-icon {
    font-size: 1.25rem;
    margin-right: 6px;
}
.news-badge {
    background: #e6572c;
    color: #fff;
    font-size: 0.93rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 5px;
    margin-right: 8px;
    letter-spacing: 0.04em;
}
.news-title {
    font-size: 1.12rem;
    font-weight: 700;
    color: #025eab;
    text-decoration: none;
}
.news-date {
    margin-left: auto;
    font-size: 0.96rem;
    color: #888;
    font-style: italic;
}
.news-body {
    font-size: 1.07rem;
    color: #23272c;
    margin-top: 12px;
    white-space: pre-line;
    line-height: 1.5;
}
.news-body ul {
    margin: 10px 0 10px 26px;
    padding-left: 20px;
}
.news-body li {
    margin-bottom: 3px;
}
.news-edit-btn {
    margin-left: 16px;
    color: #0360a8;
    background: #e3effa;
    border-radius: 5px;
    padding: 3px 10px 3px 7px;
    font-size: .95rem;
    text-decoration: none;
    border: 1px solid #dbe7fa;
    transition: background 0.15s;
}
.news-edit-btn:hover {
    background: #025eab;
    color: #fff;
}
.news-pre {
    font-family: inherit;
    font-size: 1.09rem;
    white-space: pre-wrap;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}
.lista-riposi li {
  margin: 8px 0;
  font-size: 1.13rem;
  border-bottom: 1px dotted #dbe7fa;
  padding-bottom: 2px;
}
.alert { color: #b00; background: #fff5f5; border-left: 4px solid #d00; margin: 12px 0; padding: 7px 13px; }
.profile-card ul {
  list-style: none;
  padding: 0;
}
.profile-card li {
  margin-bottom: 6px;
}