/* Privacy e cookie (src/pages/privacy.html) e pagina 404: stessa grafica dell'indice dei lavori. */
html {
  background: #121212;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
body.lg {
  margin: 0;
  color: #f5f4f0;
  background: #121212;
  font-family: 'custom_146852', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.lg *,
.lg *::before,
.lg *::after {
  box-sizing: border-box;
}
.lg a {
  color: inherit;
}
.lg-skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  padding: 10px 14px;
  background: #f5f4f0;
  color: #121212 !important;
  text-decoration: none;
}
.lg-skip:focus {
  top: 16px;
}

/* Header */
.lg-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 22px;
  height: 92px;
  padding: 0 32px;
  background: #121212f5;
  border-bottom: 1px solid #343434;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.lg-logo {
  display: flex;
  align-items: center;
  min-height: 48px;
  margin-right: auto;
}
.lg-logo img {
  display: block;
  width: 60px;
  height: auto;
}
.lg-menu {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.lg-menu:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.lg-header .lang-switch {
  color: #f5f4f0;
}

/* Apertura */
.lg-main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}
.lg-intro {
  padding: 64px 0 56px;
  border-bottom: 1px solid #343434;
}
.lg-eyebrow,
.lg-date,
.lg-num,
.lg-row--head {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  color: #aaa;
}
.lg-eyebrow {
  margin: 0 0 22px;
}
.lg h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(54px, 9.2vw, 148px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.045em;
}
.lg-dot {
  color: #7f7f7f;
}
.lg-lead {
  max-width: 34ch;
  margin: 40px 0 0;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.lg-date {
  margin: 28px 0 0;
}

/* Sezioni */
.lg-sec {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  column-gap: 48px;
  padding: 44px 0 48px;
  border-bottom: 1px solid #343434;
}
.lg-sec h2 {
  margin: 0;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.lg-num {
  display: block;
  margin-bottom: 14px;
}
.lg-body {
  max-width: 68ch;
  font-size: 17px;
  color: #d9d8d3;
}
.lg-body p,
.lg-body ul {
  margin: 0 0 16px;
}
.lg-body > :last-child {
  margin-bottom: 0;
}
.lg-body ul {
  padding-left: 1.1em;
}
.lg-body li + li {
  margin-top: 8px;
}
.lg-body a {
  color: #f5f4f0;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  overflow-wrap: anywhere;
}
.lg-body code {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 0.86em;
  color: #f5f4f0;
}

/* Tabella dei cookie */
.lg-table {
  margin: 0 0 24px;
  border-top: 1px solid #454545;
}
.lg-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(0, 2fr) minmax(90px, 0.7fr);
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid #343434;
  font-size: 15px;
}
.lg-row--head {
  padding: 12px 0;
}

.lg-button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  margin: 6px 0 4px;
  padding: 0 22px;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  color: #121212;
  background: #f5f4f0;
  border: 1px solid #f5f4f0;
  border-radius: 999px;
  cursor: pointer;
}
.lg-button:hover {
  color: #f5f4f0;
  background: transparent;
}
.lg-button[hidden] {
  display: none;
}
.lg :focus-visible {
  outline: 2px solid #f5f4f0;
  outline-offset: 3px;
}

/* Footer */
.lg-footer {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px max(24px, env(safe-area-inset-bottom));
}
.lg-footer .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 40px;
  font-size: 10px;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  color: #aaa;
}
.lg-footer .footer-bottom a {
  text-decoration: none;
}
.lg-footer .footer-bottom > a:hover {
  color: #f5f4f0;
}

@media (max-width: 900px) {
  .lg-sec {
    grid-template-columns: 1fr;
    row-gap: 22px;
    padding: 36px 0 40px;
  }
}
@media (max-width: 619px) {
  .lg-header {
    height: 78px;
    padding: 0 20px;
    gap: 14px;
  }
  .lg-logo img {
    width: 51px;
  }
  .lg-menu {
    font-size: 12px;
  }
  .lg-main,
  .lg-footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  .lg-intro {
    padding: 44px 0 40px;
  }
  .lg-eyebrow {
    font-size: 9px;
  }
  .lg-lead {
    margin-top: 28px;
  }
  .lg-body {
    font-size: 16px;
  }
  .lg-row {
    grid-template-columns: 1fr auto;
    gap: 4px 16px;
  }
  .lg-row > :nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .lg-row--head > :nth-child(2) {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* 404 */
.lg-404 {
  min-height: calc(100svh - 92px - 90px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 0;
}
.lg-404 .lg-big {
  margin: 0 0 8px;
  font-size: clamp(120px, 26vw, 380px);
  font-weight: 500;
  line-height: 0.8;
  letter-spacing: -0.06em;
}
.lg-404 .lg-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 48px;
  margin-top: 48px;
  max-width: 960px;
}
.lg-404 .lg-pair p {
  margin: 0 0 18px;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.25;
}
.lg-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.lg-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid #5a5a5a;
  border-radius: 999px;
}
.lg-links a:hover {
  color: #121212;
  background: #f5f4f0;
  border-color: #f5f4f0;
}
@media (max-width: 700px) {
  .lg-404 .lg-pair {
    grid-template-columns: 1fr;
  }
}
.lg-404 .lg-lead {
  max-width: 22ch;
  margin: 0 0 22px;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
