:root {
  font: 16px "Titillium Web", "Segoe UI", Arial, sans-serif;
  color: #1c2024;
  --blue: #0667b1;
  --navy: #003366;
  --dark: #00264d;
  --green: #006f44;
  --lime: #a4c400;
  --line: #c8d1d9;
  --pale: #f1f4f6;
}

.gov {
  --blue: #0066cc;
  --navy: #004080;
  --dark: #003366;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; }
a { color: var(--blue); text-underline-offset: .16em; }
a:hover { color: var(--dark); }
h1, h2, h3, p { overflow-wrap: break-word; }
.container { width: min(1180px, calc(100% - 2.4rem)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: fixed; z-index: 100; top: .5rem; left: .5rem; padding: .7rem 1rem; color: #fff; background: #000; transform: translateY(-160%); }
.skip:focus { transform: none; }

.compare { color: #fff; background: #171c21; border-bottom: 1px solid #4f5962; }
.compare .container { display: flex; align-items: center; justify-content: center; min-height: 48px; }
.compare strong { margin-right: 1rem; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; }
.compare a { padding: .38rem .8rem; color: #fff; border: 1px solid #8d969e; font-size: .82rem; font-weight: 600; text-decoration: none; }
.compare a + a { border-left: 0; }
.compare a[aria-current="page"] { color: #111; background: #fff; border-color: #fff; }
.compare .container { overflow-x: auto; }
.compare a { white-space: nowrap; }

.utility { background: #e6e9ed; border-bottom: 1px solid #d0d5da; }
.utility .container { display: flex; align-items: center; justify-content: space-between; min-height: 38px; font-size: .78rem; }
.utility-links { display: flex; gap: 1rem; }
.utility a { color: #263746; font-weight: 600; }
.utility .institution { text-decoration: none; }
.tricolore { display: grid; grid-template-columns: repeat(3, 1fr); height: 5px; }
.tricolore i:nth-child(1) { background: #009246; }
.tricolore i:nth-child(2) { background: #fff; }
.tricolore i:nth-child(3) { background: #ce2b37; }

.gov-header { color: #fff; background: var(--navy); }
.gov-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 132px; padding-block: 1.4rem; }
.identity { display: flex; align-items: center; gap: 1.1rem; }
.seal { display: grid; width: 70px; height: 70px; place-items: center; border: 2px solid currentColor; border-radius: 50%; font-size: 1.1rem; font-weight: 700; }
.gov-logo { flex: 0 0 auto; width: 70px; height: auto; }
.kicker, .site-subtitle { margin: 0; font-size: .88rem; }
.site-title { margin: .1rem 0; font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 600; line-height: 1.05; }
.stamp { padding: .4rem .7rem; border: 1px solid #ffffffb3; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.gov-nav { color: #fff; background: var(--blue); }
.gov-nav .container { display: flex; align-items: center; }
.gov-nav a { display: flex; align-items: center; min-height: 52px; padding-inline: 1.1rem; color: #fff; border-left: 1px solid #ffffff30; font-weight: 600; text-decoration: none; white-space: nowrap; }
.gov-nav a[aria-current="page"] { background: var(--dark); }
.gov-nav a:hover { color: #fff; background: #004d99; }
.site-search { display: flex; align-items: center; width: min(260px, 32vw); margin-left: auto; }
.site-search input { width: 100%; min-width: 120px; min-height: 36px; padding: .35rem .6rem; border: 1px solid #fff; font: inherit; }
.site-search button { display: grid; flex: 0 0 40px; min-height: 36px; padding: 0; place-items: center; color: #fff; background: var(--dark); border: 0; cursor: pointer; }
.site-search button:hover { background: #00264d; }
.site-search svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.rl-topbar { min-height: 12px; background: var(--green); }
.rl-header { background: #fff; border-bottom: 1px solid #d7dedb; }
.rl-header .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 120px; }
.rl-brand { display: flex; align-items: center; gap: .85rem; color: #17251e; }
.rl-symbol { display: grid; width: 60px; height: 60px; place-items: center; color: #fff; background: var(--green); font-size: 1.15rem; font-weight: 700; }
.rl-brand strong { display: block; font-size: 1.45rem; line-height: 1; }
.rl-brand span:last-child { display: block; margin-top: .25rem; color: #4b5e54; font-size: .82rem; }
.rl-tools { display: flex; align-items: center; gap: .65rem; }
.rl-tools a { padding: .55rem .8rem; color: var(--green); border: 1px solid var(--green); font-weight: 700; text-decoration: none; }
.rl-nav { border-bottom: 5px solid var(--green); background: #fff; }
.rl-nav .container { display: flex; }
.rl-nav a { padding: .9rem 1rem; color: #263d31; font-weight: 600; text-decoration: none; }
.rl-nav a[aria-current="page"] { color: #fff; background: var(--green); }
.rl-nav .search { margin-left: auto; }

.mef-header { color: #fff; background: #12395b; border-bottom: 6px solid #8d1930; }
.mef-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 126px; }
.mef-brand { display: flex; align-items: center; gap: 1rem; }
.mef-mark { display: grid; width: 68px; height: 68px; place-items: center; border: 2px solid #fff; font-size: .72rem; font-weight: 700; text-align: center; line-height: 1.05; }
.mef-brand strong { display: block; max-width: 520px; font-size: clamp(1.45rem, 3vw, 2.1rem); line-height: 1.08; }
.mef-brand span { display: block; margin-top: .25rem; font-size: .82rem; opacity: .88; }
.mef-nav { background: #fff; border-bottom: 1px solid var(--line); }
.mef-nav .container { display: flex; }
.mef-nav a { padding: .9rem 1rem; color: #263b4c; font-weight: 600; text-decoration: none; }
.mef-nav a[aria-current="page"] { color: #fff; background: #12395b; }
.mef-nav .search { margin-left: auto; }
.mef-hero { background: #edf2f5; border-bottom: 1px solid #d3dce3; }
.mef-hero .container { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 390px; }
.mef-copy { align-self: center; padding: 3rem 3rem 3rem 0; }
.mef-copy h1 { margin: .35rem 0 1rem; color: #12395b; font-size: clamp(2.2rem, 5vw, 3.65rem); line-height: 1; }
.mef-feature { display: flex; flex-direction: column; justify-content: end; padding: 2.2rem; color: #fff; background: linear-gradient(145deg,#12395b,#006b82); }
.mef-feature small { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.mef-feature strong { margin-block: .5rem; font-size: 1.45rem; line-height: 1.15; }
.mef-shortcuts { display: grid; grid-template-columns: repeat(4,1fr); margin-top: -1px; background: #12395b; }
.mef-shortcuts a { min-height: 110px; padding: 1.35rem; color: #fff; border-right: 1px solid #ffffff30; font-weight: 700; text-decoration: none; }
.mef-shortcuts span { display: block; margin-bottom: .45rem; color: #8fd3df; font-size: 1.25rem; }
.evidence-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 1.2rem; margin-bottom: 3rem; }
.evidence { padding: 1.3rem; border: 1px solid var(--line); border-top: 5px solid #8d1930; }
.evidence.primary { color: #fff; background: #12395b; border-color: #8d1930; }
.evidence small { font-weight: 700; text-transform: uppercase; }
.evidence h2 { margin: .4rem 0; font-size: 1.25rem; line-height: 1.15; }
.evidence p { margin: 0 0 .8rem; font-size: .88rem; line-height: 1.45; }
.evidence.primary a { color: #fff; }

.bank-header { color: #fff; background: #061f3d; }
.bank-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 112px; }
.bank-brand { display: flex; align-items: center; gap: 1rem; }
.bank-mark { display: grid; width: 64px; height: 64px; place-items: center; border: 1px solid #fff; border-radius: 50%; font-weight: 700; }
.bank-brand strong { display: block; font-size: 1.75rem; letter-spacing: .01em; }
.bank-brand span { display: block; color: #b8d4ee; font-size: .8rem; }
.bank-nav { color: #fff; background: #0b315c; border-bottom: 1px solid #ffffff35; }
.bank-nav .container { display: flex; }
.bank-nav a { padding: .85rem 1rem; color: #fff; font-weight: 600; text-decoration: none; }
.bank-nav a[aria-current="page"] { background: #005a9c; }
.bank-nav .search { margin-left: auto; }
.bank-hero { position: relative; min-height: 520px; color: #fff; background: #061f3d url("assets/bank-hero.png") center/cover no-repeat; isolation: isolate; }
.bank-hero::before { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(90deg,rgba(3,23,48,.94) 0%,rgba(3,28,58,.8) 35%,rgba(3,28,58,.16) 70%); }
.bank-hero .container { display: flex; align-items: center; min-height: 520px; }
.bank-copy { max-width: 590px; padding-block: 3rem; }
.bank-copy h1 { margin: .5rem 0 1rem; font-size: clamp(2.4rem,5vw,4.25rem); line-height: .98; }
.bank-copy p { font-size: 1.15rem; line-height: 1.5; }
.bank-copy .button { color: #fff; background: #0069b4; border-color: #0069b4; }
.interest { background: #eaf1f7; border-bottom: 1px solid #c7d5e2; }
.interest .container { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; padding-block: .85rem; }
.interest strong { margin-right: .4rem; color: #092e57; }
.interest a { padding: .3rem .65rem; color: #092e57; background: #fff; border: 1px solid #9db4c8; font-size: .8rem; font-weight: 600; text-decoration: none; }
.bank-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 2rem; }
.bank-news { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1rem; }
.bank-story { min-height: 210px; padding: 1.4rem; border: 1px solid var(--line); border-top: 5px solid #0069b4; }
.bank-story:first-child { color: #fff; background: #092e57; }
.bank-story small { font-weight: 700; text-transform: uppercase; }
.bank-story h2 { margin: .5rem 0; font-size: 1.25rem; }
.bank-story:first-child a { color: #fff; }
.indicator-panel { padding: 1.4rem; color: #fff; background: #0069b4; }
.indicator-panel h2 { margin-top: 0; }
.indicator { display: flex; justify-content: space-between; gap: 1rem; padding-block: .8rem; border-top: 1px solid #ffffff55; }
.indicator strong { font: 700 1.25rem "Roboto Mono",monospace; }

.rl-welcome { background: linear-gradient(135deg,#edf4f0,#fff); border-bottom: 1px solid #d1ded7; }
.rl-welcome .container { padding-block: 3.2rem; text-align: center; }
.rl-welcome h1 { margin: 0 0 1.25rem; color: #173c29; font-size: clamp(2.25rem,5vw,3.8rem); line-height: 1; }
.rl-welcome p { margin: 0 auto 1.5rem; max-width: 700px; color: #45594e; font-size: 1.05rem; }
.search-box { display: flex; max-width: 760px; margin-inline: auto; background: #fff; border: 2px solid var(--green); box-shadow: 0 8px 24px #173c2912; }
.search-box input { flex: 1; min-width: 0; padding: .9rem 1rem; border: 0; font: inherit; }
.search-box button { padding-inline: 1.3rem; color: #fff; background: var(--green); border: 0; font-weight: 700; }
.topics { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-bottom: 3rem; }
.topic { display: flex; align-items: center; gap: .8rem; min-height: 92px; padding: 1rem; color: #173c29; border: 1px solid #c8d8cf; text-decoration: none; }
.topic-icon { display: grid; flex: 0 0 42px; height: 42px; place-items: center; color: #fff; background: var(--green); border-radius: 50%; font-weight: 700; }
.topic strong { line-height: 1.15; }
.topic span:last-child { margin-left: auto; color: var(--green); }
.featured-services { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 3rem; }
.featured-services a { padding: .7rem 1rem; color: #173c29; background: #e9f2ed; border-left: 4px solid var(--green); font-weight: 600; text-decoration: none; }

.crumb { background: var(--pale); border-bottom: 1px solid #dfe4e8; }
.crumb .container { padding-block: .65rem; font-size: .78rem; }
.crumb span { color: #52606a; }
.intro { border-bottom: 1px solid var(--line); }
.intro .container { padding-block: 2.8rem 2.5rem; }
.overline { margin: 0 0 .6rem; color: #a5192e; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.lombardia .overline { color: var(--green); }
.intro h1 { max-width: 900px; margin: 0; color: var(--dark); font-size: clamp(2.15rem, 5vw, 3.4rem); font-weight: 600; line-height: 1.05; letter-spacing: -.025em; }
.lombardia .intro h1 { color: #173c29; }
.lead { max-width: 820px; margin: 1rem 0 0; color: #3e4a54; font-size: 1.15rem; line-height: 1.5; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.button { display: inline-flex; align-items: center; min-height: 46px; padding: .65rem 1.1rem; color: var(--blue); background: #fff; border: 2px solid var(--blue); font-weight: 700; text-decoration: none; }
.button.primary { color: #fff; background: var(--blue); }
.gov .button { font: inherit; font-weight: 700; cursor: pointer; }
.access-options { margin-top: 2rem; }
.access-options h2 { margin: 0; color: var(--dark); font-size: 1.35rem; }
.access-options p { margin: .25rem 0 1rem; color: #3e4a54; }
.login-buttons { display: grid; grid-template-columns: minmax(0, 430px); gap: .85rem; }
.login-button { display: flex; align-items: center; gap: .85rem; min-height: 92px; padding: 1rem; color: #fff; background: var(--dark); border: 2px solid var(--dark); box-shadow: 0 5px 14px #0033661f; font: 600 1rem "Titillium Web", sans-serif; text-align: left; cursor: pointer; }
.login-button:hover { transform: translateY(-2px); box-shadow: 0 8px 18px #0033662b; }
.login-button img, .login-icon { flex: 0 0 auto; width: 34px; height: 34px; object-fit: contain; }
.login-button strong, .login-button small { display: block; }
.login-button strong { font-size: 1.05rem; }
.login-button small { margin-top: .15rem; font-size: .78rem; font-weight: 400; line-height: 1.25; }
.email-login .login-icon { display: grid; place-items: center; color: var(--dark); background: #fff; border-radius: 50%; font-weight: 700; }
.spid-login { color: #fff; background: #06c; border-color: #06c; text-transform: uppercase; }
.spid-login small { text-transform: none; }
.microsoft-login { color: #1a1a1a; background: #fff; border-color: #5c6f82; }
.login-modal { width: min(1100px, calc(100% - 2rem)); height: min(760px, calc(100% - 2rem)); padding: 0; background: #fff; border: 0; box-shadow: 0 18px 60px #001b36a6; }
.login-modal::backdrop { background: #001b36b8; }
.modal-header { display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: .7rem 1rem; color: #fff; background: var(--dark); }
.modal-header h2 { margin: 0; font-size: 1.15rem; }
.modal-close { display: grid; width: 38px; height: 38px; padding: 0; place-items: center; color: #fff; background: transparent; border: 1px solid #ffffff80; font: 1.6rem/1 Arial, sans-serif; cursor: pointer; }
.login-frame { display: block; width: 100%; height: calc(100% - 58px); border: 0; }
.service-copy { max-width: 820px; padding-block: 2.5rem 4rem; }
.service-copy h2 { margin: 1.8rem 0 .4rem; color: var(--dark); font-size: 1.45rem; }
.service-copy h2:first-child { margin-top: 0; }
.service-copy p, .service-copy li { line-height: 1.6; }
.service-copy .button { margin-top: 1rem; }
.lombardia .button { color: var(--green); border-color: var(--green); }
.lombardia .button.primary { color: #fff; background: var(--green); }
.notice { background: #eaf2f8; border-bottom: 1px solid #c7d8e7; }
.lombardia .notice { color: #173c29; background: #e9f2ed; border-color: #bfd4c7; }
.notice .container { display: flex; align-items: center; gap: .8rem; padding-block: .85rem; font-size: .87rem; }
.notice-mark { display: grid; flex: 0 0 26px; height: 26px; place-items: center; color: #fff; background: var(--blue); border-radius: 50%; font-weight: 700; }
.lombardia .notice-mark { background: var(--green); }

main.container { padding-block: 3rem 4.5rem; }
.section-title { margin: 0 0 1.3rem; padding-bottom: .5rem; color: var(--dark); border-bottom: 3px solid var(--blue); font-size: 1.65rem; font-weight: 600; }
.lombardia .section-title { color: #173c29; border-color: var(--green); }
.section-title small { display: block; margin-top: .25rem; color: #52606a; font-size: .82rem; font-weight: 400; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 3rem; }
.service { padding: 1.3rem; border: 1px solid var(--line); border-top: 5px solid var(--blue); }
.lombardia .service { border-top-color: var(--green); }
.service .number { color: #a5192e; font-weight: 700; }
.lombardia .service .number { color: var(--green); }
.service h2 { margin: .35rem 0; color: var(--dark); font-size: 1.2rem; }
.service p { margin: 0 0 .85rem; color: #52606a; font-size: .9rem; line-height: 1.5; }
.service a { font-weight: 700; }
.dashboard { display: grid; grid-template-columns: 1fr 285px; gap: 1.5rem; margin-bottom: 2.5rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.stat { padding: 1rem; border-right: 1px solid var(--line); }
.stat:last-child { border: 0; }
.stat span { display: block; color: #52606a; font-size: .72rem; text-transform: uppercase; }
.stat strong { display: block; color: #173c29; font: 700 1.6rem "Roboto Mono", monospace; }
.deadline { padding: 1.1rem 1.25rem; color: #fff; background: var(--green); border-left: 7px solid var(--lime); }
.deadline span { display: block; font-size: .75rem; text-transform: uppercase; }
.deadline strong { display: block; margin-block: .25rem; font-size: 1.1rem; }
.content { display: grid; grid-template-columns: minmax(0, 1fr) 305px; gap: 2.4rem; align-items: start; }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.filter { padding: .32rem .65rem; color: var(--navy); border: 1px solid #8ea4b7; font-size: .78rem; font-weight: 600; }
.filter.active { color: #fff; background: var(--navy); }
.lombardia .filter { color: var(--green); border-color: #7b9d89; }
.lombardia .filter.active { color: #fff; background: var(--green); }
.documents { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.document { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.file { padding: .45rem .2rem; color: var(--navy); background: #eaf2f8; border: 1px solid #bfd0df; text-align: center; font: 700 .68rem "Roboto Mono", monospace; }
.lombardia .file { color: var(--green); background: #e9f2ed; border-color: #bfd4c7; }
.document h3 { margin: 0 0 .2rem; color: var(--dark); font-size: 1.03rem; }
.document h3 a { color: inherit; }
.meta { margin: 0; color: #52606a; font-size: .78rem; }
.status { padding: .24rem .5rem; font-size: .7rem; font-weight: 700; white-space: nowrap; }
.new { color: #00457f; background: #dcecf8; }
.wait { color: #604800; background: #ffefb8; }
.ok { color: #12592f; background: #dcefe3; }
.sidebar { border-top: 5px solid #a5192e; background: var(--pale); }
.lombardia .sidebar { border-color: var(--lime); }
.sidebar section { padding: 1.15rem 1.2rem; border: 1px solid var(--line); border-top: 0; }
.sidebar h2 { margin: 0 0 .45rem; color: var(--dark); font-size: 1.1rem; }
.sidebar p { margin: 0 0 .6rem; color: #3e4b56; font-size: .84rem; line-height: 1.5; }
.sidebar a { font-size: .84rem; font-weight: 700; }

footer { color: #fff; background: var(--dark); border-top: 8px solid #004d99; }
.gov footer { border-color: var(--blue); }
.lombardia footer { background: #183629; border-color: var(--green); }
.footer-main { display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); gap: 2.4rem; padding-block: 2.4rem; }
footer h2, footer h3 { margin: 0 0 .65rem; font-size: 1.15rem; }
footer h3 { font-size: .95rem; }
footer p, footer li, footer a { color: #fff; font-size: .8rem; line-height: 1.65; }
footer ul { margin: 0; padding: 0; list-style: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; padding-block: .75rem; border-top: 1px solid #ffffff40; font-size: .72rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-bottom a { font-size: inherit; }

@media (max-width: 850px) {
  .content, .dashboard { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .gov-nav .container, .rl-nav .container { overflow-x: auto; }
  .mef-hero .container, .bank-grid { grid-template-columns: 1fr; }
  .mef-shortcuts { grid-template-columns: 1fr 1fr; }
  .evidence-grid { grid-template-columns: 1fr 1fr; }
  .evidence.primary { grid-column: 1/-1; }
  .topics { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 580px) {
  .container { width: calc(100% - 1.4rem); }
  .compare .container { flex-wrap: wrap; padding-block: .4rem; }
  .compare strong { flex-basis: 100%; margin: 0; text-align: center; }
  .compare a { flex: 1; text-align: center; }
  .utility-links a:first-child, .stamp, .rl-tools a:first-child { display: none; }
  .gov-header .container, .rl-header .container { min-height: 105px; padding-block: 1rem; }
  .seal, .rl-symbol { width: 52px; height: 52px; }
  .gov-nav a, .rl-nav a { padding-inline: .8rem; font-size: .8rem; white-space: nowrap; }
  .login-buttons { grid-template-columns: 1fr; }
  .intro .container { padding-block: 2.1rem; }
  .services, .footer-main { grid-template-columns: 1fr; }
  .document { grid-template-columns: 46px minmax(0, 1fr); }
  .document .status { grid-column: 2; justify-self: start; }
  .mef-header .container,.bank-header .container{min-height:105px}.mef-mark,.bank-mark{width:52px;height:52px}.mef-nav .container,.bank-nav .container{overflow-x:auto}.mef-nav a,.bank-nav a{white-space:nowrap}.mef-copy{padding:2.3rem 0}.mef-feature{min-height:250px}.mef-shortcuts,.evidence-grid,.bank-news,.topics{grid-template-columns:1fr}.evidence.primary{grid-column:auto}.bank-hero,.bank-hero .container{min-height:460px}.bank-hero::before{background:rgba(3,25,52,.78)}
}
