/* LISARI Group: stile unico per landing e sottopagine. Google Sans Flex è SIL Open Font License 1.1. */

/* Google Sans Flex, ospitato in locale (variabile: peso 400-700, SIL OFL 1.1). */
@font-face {
  font-family: "Google Sans Flex";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/google-sans-flex-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Google Sans Flex";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/google-sans-flex-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.lx {
  --surface: #fff;
  --surface-2: #f8f9fa;
  --ink: #1f1f1f;
  --muted: #444746;
  --faint: #5e6368;
  --line: #e1e3e6;
  --blue: #0b57d0;
  --blue-ink: #0842a0;
  --blue-soft: #e8f0fe;
  --shadow: 0 1px 2px rgba(60, 64, 67, 0.08), 0 2px 8px rgba(60, 64, 67, 0.06);
  --shadow-hover: 0 1px 2px rgba(60, 64, 67, 0.12), 0 6px 16px rgba(60, 64, 67, 0.1);
  --max: 1120px;
  --sans: "Google Sans Flex", "Google Sans", Roboto, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  color-scheme: light;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.lx::before { content: none; }
.lx *, .lx *::before, .lx *::after { box-sizing: border-box; }
.lx img { max-width: 100%; height: auto; }
.lx figure { margin: 0; }
.lx a { color: inherit; text-decoration: none; }
.lx :focus { outline: none; }
.lx :focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.lx ::selection { background: var(--blue-soft); color: var(--ink); }

.lx-skip {
  position: absolute; left: 16px; top: -48px; z-index: 80;
  background: var(--blue); color: #fff; padding: 10px 16px;
  border-radius: 999px; font-weight: 500;
}
.lx-skip:focus { top: 12px; color: #fff; }

.lx-wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.lx h1, .lx h2, .lx h3 { font-weight: 400; letter-spacing: -0.02em; text-wrap: balance; }
.lx h1 em { font-style: normal; color: var(--blue); }
.lx h1 { margin: 0 0 16px; font-size: clamp(40px, 5vw, 60px); line-height: 1.12; }
.lx h2 { margin: 0 0 8px; font-size: clamp(28px, 3vw, 40px); line-height: 1.2; }
.lx p { margin: 0; }
.lx-kicker { margin: 0 0 10px; color: var(--blue); font-size: 14px; font-weight: 500; }
.lx-lede { max-width: 36rem; margin: 0; color: var(--muted); font-size: 18px; }
.lx-hero-copy .lx-lede { margin-top: 4px; }

.lx-mast {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.lx-bar {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto; min-height: 64px;
  display: flex; align-items: center; gap: 8px;
}
.lx-logo { display: flex; align-items: center; margin-right: auto; border-radius: 8px; }
.lx-logo img { height: 36px; width: auto; display: block; filter: brightness(0); }
.lx-links { display: flex; align-items: center; gap: 4px; }
.lx-links a {
  color: var(--ink); font-size: 14px; font-weight: 500;
  min-height: 40px; padding: 0 12px; border-radius: 999px;
  display: inline-flex; align-items: center;
}
.lx-links a:hover { background: var(--surface-2); color: var(--ink); }
.lx-contact { background: var(--blue) !important; color: #fff !important; margin-left: 8px; }
.lx-contact:hover { background: var(--blue-ink) !important; color: #fff !important; }
.lx-lang { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.lx-lang a {
  min-width: 36px; min-height: 32px; display: grid; place-items: center;
  border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--faint);
}
.lx-lang a[aria-current="page"] { background: var(--blue-soft); color: var(--blue); }
.lx-lang a:hover { color: var(--ink); background: var(--surface-2); }
.lx-lang a[aria-current="page"]:hover { color: var(--blue); background: var(--blue-soft); }
.lx-burger {
  display: none; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
}
.lx-burger-bars, .lx-burger-bars::before, .lx-burger-bars::after {
  display: block; width: 16px; height: 2px; border-radius: 2px; background: var(--ink); position: relative;
}
.lx-burger-bars::before, .lx-burger-bars::after { content: ""; position: absolute; left: 0; }
.lx-burger-bars::before { top: -5px; }
.lx-burger-bars::after { top: 5px; }

.lx-textlink {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 20px; border-radius: 999px;
  font-weight: 500; font-size: 14px;
  background: #fff; color: var(--blue); border: 1px solid #c4c7c5;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.lx-textlink:hover { background: var(--blue-soft); border-color: var(--blue-soft); color: var(--blue); }

.lx-hero {
  display: grid;
  margin: 28px 0 8px;
  border-radius: 28px;
  overflow: hidden;
  background: #f3efe8;
}
.lx-hero picture { grid-area: 1 / 1; display: block; }
.lx-hero img {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  object-position: right center; display: block;
}
.lx-hero-copy {
  grid-area: 1 / 1; z-index: 1; align-self: center; justify-self: start;
  max-width: min(32rem, 48%);
  padding: 40px 20px 40px 44px;
}

.lx-section { padding: 80px 0; }
.lx-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 20px; }
.lx-section-head p { color: var(--muted); max-width: 28rem; }

.lx-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.lx-cards a {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; color: inherit;
  transition: box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}
.lx-cards a:hover { border-color: #a8c7fa; box-shadow: var(--shadow-hover); color: inherit; }
.lx-cards picture { display: block; }
.lx-cards img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #f3efe8; }
.lx-cards div { padding: 16px 18px 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.lx-chip {
  color: var(--blue); background: var(--blue-soft); border-radius: 999px;
  padding: 4px 10px; font-size: 12px; font-weight: 500;
}
.lx-cards strong { font-size: 20px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; }
.lx-one { color: var(--muted); font-size: 14px; line-height: 1.45; }

.lx-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 8px; }
.lx-tiles article { background: var(--surface-2); border-radius: 20px; padding: 16px; min-height: 132px; }
.lx-emoji {
  width: 40px; height: 40px; margin-bottom: 20px; border-radius: 14px;
  display: grid; place-items: center; background: #fff;
  font-size: 22px; line-height: 1;
}
.lx-tiles h3 { font-size: 16px; font-weight: 500; }

.lx-place {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: center;
  background: var(--surface-2); border-radius: 28px; padding: 12px;
}
.lx-place picture { display: block; }
.lx-place img.lx-photo { width: 100%; border-radius: 20px; aspect-ratio: 16 / 9; object-fit: cover; object-position: center; display: block; }
.lx-place-copy { padding: 12px 20px 12px 8px; }
.lx-place-copy .lx-textlink { margin-top: 18px; }
.lx img.lx-mark {
  width: 196px; height: auto; object-fit: contain; display: block;
  margin-bottom: 16px; filter: brightness(0);
}

.lx-people { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.lx-people li {
  background: var(--surface-2); border-radius: 24px; padding: 20px 16px 18px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
}
.lx-people picture { display: block; line-height: 0; }
.lx img.lx-avatar {
  width: 88px; height: 88px; border-radius: 50%; object-fit: cover; display: block;
  background: #f3efe8;
}
.lx-people strong { font-size: 16px; font-weight: 500; }
.lx-person {
  display: inline-flex; align-items: center; gap: 6px;
  color: inherit; border-radius: 8px;
}
.lx-person:hover { color: var(--blue); }
.lx-in { width: 16px; height: 16px; display: block; flex: none; }

.lx-folds { display: grid; gap: 10px; }
.lx-fold { border: 1px solid var(--line); border-radius: 20px; padding: 4px 18px; background: #fff; }
.lx-fold summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; min-height: 56px; font-size: 16px; font-weight: 500;
}
.lx-fold summary::-webkit-details-marker { display: none; }
.lx-fold summary::after { content: "+"; color: var(--blue); font-size: 24px; line-height: 1; font-weight: 400; }
.lx-fold[open] summary::after { content: "–"; }
.lx-fold p, .lx-fold li { color: var(--muted); font-size: 15px; }
.lx-fold .lx-fold-body { padding: 0 0 16px; display: grid; gap: 10px; }
.lx-fold ul { margin: 0; padding-left: 18px; }
.lx-fold a { color: var(--blue); }

.lx-invest { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.lx-pill {
  background: var(--surface-2); border-radius: 999px; padding: 10px 16px;
  font-size: 14px; font-weight: 500;
}

.lx-fund {
  background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 28px 32px 32px;
}
.lx-fund p { color: var(--muted); margin-top: 8px; max-width: 62rem; }
.lx-fund a { color: var(--blue); }
.lx-logos {
  list-style: none; margin: 28px 0 0; padding: 8px 0 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 32px 40px;
}
.lx-logos li { display: flex; align-items: center; justify-content: center; min-width: 0; }
.lx-logos img {
  height: 92px; width: auto; max-width: 100%;
  object-fit: contain; object-position: center;
  display: block;
}

.lx-foot { background: var(--surface-2); border-top: 1px solid var(--line); padding: 40px 0 28px; margin-top: 28px; }
.lx-foot-grid { display: grid; grid-template-columns: 1.1fr 1.3fr 1fr; gap: 28px; }
.lx-foot-label { font-size: 14px; font-weight: 500; margin: 0 0 12px; color: var(--ink); }
.lx-foot ul { list-style: none; margin: 0; padding: 0; }
.lx-foot li { margin: 8px 0; }
.lx-foot a { color: var(--blue); }
.lx-foot a:hover { color: var(--blue-ink); }
.lx-foot p { color: var(--muted); font-size: 14px; }
.lx-foot .lx-fold { background: transparent; margin-top: 20px; }
.lx-section-head a { color: var(--blue); }
.lx-legal {
  margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line);
  color: var(--faint); font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
  .lx *, .lx *::before, .lx *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 980px) {
  .lx-burger { display: inline-flex; }
  .lx-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 8px 16px 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .lx-links.is-open { display: flex; }
  .lx-links a { min-height: 48px; font-size: 16px; border-radius: 12px; }
  .lx-contact { margin-left: 0; justify-content: center; }
  .lx-place, .lx-fund, .lx-foot-grid, .lx-cards, .lx-people { grid-template-columns: 1fr; }
  .lx-hero {
    display: flex; flex-direction: column; gap: 22px;
    margin-top: 20px; background: transparent; border-radius: 0; overflow: visible;
  }
  .lx-hero picture { order: -1; border-radius: 24px; overflow: hidden; }
  .lx-hero-copy { max-width: none; padding: 0; }
  .lx-tiles { grid-template-columns: repeat(3, 1fr); }
  .lx-section { padding: 48px 0; }
  .lx-section-head { display: block; }
  .lx-section-head p { margin-top: 8px; }
  .lx-place-copy { padding: 8px 12px 16px; }
}

@media (max-width: 640px) {
  .lx-wrap, .lx-bar { width: min(var(--max), calc(100% - 32px)); }
  .lx h1 { font-size: 34px; }
  .lx-logo img { height: 32px; }
  .lx-tiles, .lx-people { grid-template-columns: 1fr 1fr; }
  .lx-cards { grid-template-columns: 1fr; }
  .lx-fund { padding: 22px 16px 24px; }
  .lx-logos {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 28px 16px; justify-items: center; align-items: center;
    margin-top: 22px;
  }
  .lx-logos img { height: auto; width: 100%; max-width: 100%; aspect-ratio: auto; }
  .lx-mic { grid-column: 1 / -1; }
  .lx-mic img { width: min(100%, 300px); }
}

/* ---------- Sottopagine ---------- */
.lx-crumbs { padding-top: 24px; font-size: 14px; color: var(--faint); }
.lx-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.lx-crumbs li + li::before { content: "/"; margin-right: 8px; color: #c4c7c5; }
.lx-crumbs a { color: var(--blue); }
.lx-crumbs a:hover { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }
.lx-crumbs [aria-current="page"] { color: var(--ink); }

.lx-pagehead { padding: 36px 0 0; max-width: 54rem; }
.lx-pagehead h1 { font-size: clamp(36px, 4.6vw, 56px); margin: 0 0 14px; }
.lx-pagehead .lx-lede { font-size: 19px; max-width: 42rem; }
.lx-block { padding: 56px 0 0; }
.lx-block:last-of-type { padding-bottom: 24px; }
.lx-block > h2 { margin-bottom: 20px; }

.lx-prose { max-width: 46rem; }
.lx-prose p { color: var(--muted); font-size: 17px; line-height: 1.65; margin: 0 0 16px; }
.lx-prose h2 { font-size: clamp(24px, 2.4vw, 30px); margin: 44px 0 12px; scroll-margin-top: 88px; }
.lx-prose h2:first-child { margin-top: 0; }
.lx-prose ul { color: var(--muted); font-size: 17px; line-height: 1.65; padding-left: 22px; margin: 0 0 16px; }
.lx-prose a, .lx-block p a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.lx-prose a:hover, .lx-block p a:hover { color: var(--blue-ink); }
.lx-block > p { color: var(--muted); max-width: 46rem; margin-bottom: 14px; font-size: 17px; line-height: 1.65; }

.lx-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.lx-grid--3 { grid-template-columns: repeat(3, 1fr); }
.lx-card { background: var(--surface-2); border-radius: 24px; padding: 24px; }
.lx-card h3 { margin: 0 0 8px; font-size: 20px; font-weight: 500; letter-spacing: -0.015em; }
.lx-card p { color: var(--muted); font-size: 16px; }
.lx-card .lx-num { display: block; margin-bottom: 14px; color: var(--blue); font-size: 14px; font-weight: 500; }

.lx-data { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; max-width: 46rem; }
.lx-data dt { color: var(--faint); font-size: 14px; padding-top: 2px; }
.lx-data dd { margin: 0; color: var(--ink); font-size: 16px; }
.lx-data a { color: var(--blue); }

.lx-vgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.lx-vgrid li { scroll-margin-top: 88px; }
.lx-vgrid article {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
}
.lx-vgrid li:target article { border-color: #a8c7fa; box-shadow: var(--shadow-hover); }
.lx-vgrid picture { display: block; }
.lx-vgrid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #f3efe8; }
.lx-vbody { padding: 16px 18px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; flex: 1; }
.lx-vbody h2 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; }
.lx-vbody .lx-one { font-size: 15px; }
.lx-ext { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; }
.lx-ext a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  border: 1px solid #c4c7c5; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--blue);
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.lx-ext a:hover { background: var(--blue-soft); border-color: var(--blue-soft); color: var(--blue); }

.lx-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--surface-2); border-radius: 28px; padding: 28px 32px;
}
.lx-cta h2 { font-size: clamp(22px, 2.2vw, 28px); margin: 0 0 4px; }
.lx-cta p { color: var(--muted); }
.lx a.lx-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px;
  border-radius: 999px; background: var(--blue); color: #fff; font-weight: 500; font-size: 15px;
  transition: background 0.18s var(--ease);
}
.lx a.lx-btn:hover { background: var(--blue-ink); color: #fff; }

.lx-faq { max-width: 52rem; }
.lx-people--page { margin-top: 0; }
.lx-fund--page { margin-top: 8px; }
.lx-fund--page .lx-logos { margin-top: 20px; padding-top: 0; }
.lx-nojs-note { display: none; }

/* Footer: finanziamenti pubblici in formato compatto */
.lx-foot-fund {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
  margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line);
}
.lx-foot .lx-foot-fund p { margin: 0; font-size: 13px; color: var(--faint); }
.lx-foot .lx-foot-fund ul { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.lx-foot .lx-foot-fund li { margin: 0; display: flex; align-items: center; }
.lx-foot-fund img { height: 32px; width: auto; display: block; }
.lx-foot-fund .lx-eu img { height: 36px; }
.lx-foot .lx-foot-fund a { font-size: 13px; }

@media (max-width: 980px) {
  .lx-grid, .lx-grid--3, .lx-vgrid { grid-template-columns: 1fr; }
  .lx-block { padding-top: 40px; }
  .lx-cta { padding: 22px 20px; }
  .lx-data { grid-template-columns: 1fr; gap: 2px; }
  .lx-data dd { margin-bottom: 10px; }
}
@media (max-width: 640px) {
  .lx-pagehead { padding-top: 24px; }
  .lx-pagehead .lx-lede { font-size: 17px; }
  .lx-foot .lx-foot-fund ul { gap: 10px 16px; }
  .lx-foot-fund img { height: 26px; }
  .lx-foot-fund .lx-eu img { height: 30px; }
}
