:root {
  color-scheme: light;
  --blue: #005a96;
  --blue-deep: #063a60;
  --yellow: #f2cf32;
  --text: #092a43;
  --muted: #40566a;
  --soft: #edf6fa;
  --white: #ffffff;
  --line: rgba(9, 42, 67, 0.15);
  --shell: min(1120px, calc(100% - 48px));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #f7fafc;
  color: var(--text);
  font-size: 17px;
  line-height: 1.68;
}

img,
svg {
  display: block;
}

a {
  color: var(--blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

:focus-visible {
  outline: 3px solid #f2c94c;
  outline-offset: 4px;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 50;
  top: 10px;
  left: 10px;
  padding: 10px 15px;
  border-radius: 10px;
  background: var(--white);
  color: var(--blue-deep);
  font-weight: 800;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.doc-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  background: var(--blue-deep);
  color: var(--white);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.header-inner {
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 10px;
  box-shadow: 0 7px 18px rgba(16, 42, 84, 0.18);
}

.brand-copy {
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
}

.brand-title {
  position: relative;
  display: block;
  padding-bottom: 10px;
  color: inherit;
  font-size: clamp(1.0625rem, 4.3vw, 1.25rem);
  font-weight: 900;
  letter-spacing: 0.015em;
  line-height: 1;
}

.brand-title__accessible {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand-title__visual {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3em;
  color: inherit;
  line-height: 1;
  white-space: nowrap;
}

.brand-title__meteo {
  color: inherit;
  font-weight: 800;
}

.brand-title__friul {
  position: relative;
  display: inline-block;
  color: inherit;
  font-weight: 900;
}

.brand-title__friul-word {
  display: inline-flex;
  color: inherit;
}

.brand-title__accented-u {
  position: relative;
  display: inline-block;
  color: inherit;
}

.brand-title__circumflex {
  position: absolute;
  top: -0.3em;
  left: 50%;
  width: 0.66em;
  height: 0.38em;
  overflow: visible;
  color: var(--yellow);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  transform: translateX(-50%);
}

.brand-title__underline {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  width: 100%;
  height: 7px;
  overflow: visible;
  color: var(--yellow);
  fill: currentColor;
  pointer-events: none;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: normal;
}

.footer-brand .brand-copy {
  gap: 0;
}

.footer-brand .brand-title {
  font-size: 1.0625rem;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-tools a {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 800;
}

.language-link {
  min-width: 58px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
}

.document-hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 68px;
  background: linear-gradient(145deg, #063a60, #005a96);
  color: var(--white);
}

.document-hero::after {
  position: absolute;
  right: -120px;
  bottom: -190px;
  width: 540px;
  height: 380px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  content: "";
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.54fr);
  align-items: end;
  gap: 70px;
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: #f1d36a;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.document-hero h1,
.policy-copy h2,
.policy-copy h3 {
  font-family: "Arial Black", Inter, ui-sans-serif, system-ui, sans-serif;
  line-height: 1.12;
  text-wrap: balance;
}

.document-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.7rem, 6vw, 5rem);
  letter-spacing: -0.065em;
}

.hero-lead {
  max-width: 700px;
  margin: 0;
  color: #d9ebf5;
  font-size: 1.08rem;
}

.identity-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: rgba(0, 28, 50, 0.3);
}

.identity-card p {
  margin: 0;
}

.identity-card strong,
.identity-card a,
.identity-card time {
  display: block;
}

.identity-card a {
  margin: 5px 0 20px;
  color: #f3d568;
  font-weight: 800;
}

.identity-card hr {
  margin: 0 0 18px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.card-label {
  color: #bad7e7;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.translation-note {
  margin: 18px 0 0;
  color: #cfe4ee;
  font-size: 0.82rem;
}

.translation-note a {
  color: var(--white);
  font-weight: 800;
}

.summary-band {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.summary-grid article {
  padding: 18px 20px;
  border-left: 3px solid var(--yellow);
  background: #f8fbfd;
}

.summary-grid strong,
.summary-grid span {
  display: block;
}

.summary-grid span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
}

.document-main {
  padding: 64px 0 86px;
}

.document-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  gap: 58px;
}

.toc {
  position: sticky;
  top: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.toc strong {
  display: block;
  margin-bottom: 12px;
  font-size: 0.77rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 21px;
}

.toc a {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.toc a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.policy-copy {
  min-width: 0;
  max-width: 780px;
}

.policy-copy section {
  padding: 0 0 46px;
  scroll-margin-top: 24px;
}

.policy-copy section + section {
  padding-top: 46px;
  border-top: 1px solid var(--line);
}

.policy-copy h2 {
  margin: 0 0 20px;
  font-size: clamp(1.75rem, 3.4vw, 2.45rem);
  letter-spacing: -0.045em;
}

.policy-copy h3 {
  margin: 26px 0 8px;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.policy-copy p,
.policy-copy li {
  color: var(--muted);
}

.policy-copy strong {
  color: var(--text);
}

.notice {
  margin: 28px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--yellow);
  border-radius: 0 13px 13px 0;
  background: #fff9e7;
}

.notice p:last-child {
  margin-bottom: 0;
}

.fact-list,
.retention-list {
  display: grid;
  gap: 12px;
  margin: 20px 0;
  padding-left: 22px;
}

.source-table {
  width: 100%;
  margin: 24px 0 34px;
  border-collapse: collapse;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 0.84rem;
}

.source-table th,
.source-table td {
  padding: 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.source-table th {
  background: var(--blue-deep);
  color: var(--white);
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.source-table tbody tr:last-child td {
  border-bottom: 0;
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 26px;
  padding: 22px;
  border-radius: 15px;
  background: var(--blue-deep);
  color: var(--white);
}

.contact-panel span,
.contact-panel strong {
  display: block;
  color: var(--white);
}

.contact-panel span {
  color: #cde2ee;
  font-size: 0.75rem;
}

.contact-panel a {
  color: #f3d568;
  font-weight: 850;
}

.site-footer,
.doc-footer {
  padding: 0;
  border-top: 0;
  color: #d7e0eb;
  background: #102a54;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  padding-block: 28px 24px;
}

.footer-identity {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.footer-brand {
  color: var(--white);
}

.footer-identity > p {
  max-width: 360px;
  margin: 0;
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  color: #8fa4bb;
  font-size: 0.78rem;
  line-height: 1.45;
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.footer-actions a {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 800;
  text-underline-offset: 5px;
}

.footer-actions .footer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 18px;
  border-radius: 999px;
  color: #102a54;
  background: #f2cf43;
  box-shadow: 0 10px 24px rgba(242, 207, 67, 0.16);
  text-decoration: none;
}

.footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding-block: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: #8fa4bb;
  font-size: 0.72rem;
}

.footer-bottom nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 9px 18px;
}

.footer-bottom nav a {
  color: #d7e0eb;
  text-decoration: none;
}

.footer-bottom nav a:hover,
.footer-bottom nav a[aria-current="page"],
.footer-actions > a:not(.footer-button):hover {
  color: #f2cf43;
}

.footer-meta {
  display: grid;
  justify-items: end;
  gap: 5px;
  max-width: 460px;
  text-align: right;
}

.footer-meta p {
  margin: 0;
}

.footer-meta p:last-child {
  color: #7188a1;
  font-size: 0.68rem;
}

@media (max-width: 820px) {
  :root {
    --shell: min(100% - 32px, 680px);
  }

  .hero-grid,
  .document-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 32px;
  }

  .toc {
    position: static;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  :root {
    --shell: min(100% - 26px, 520px);
  }

  body {
    font-size: 16px;
  }

  .header-inner {
    min-height: 68px;
  }

  .brand img {
    width: 41px;
    height: 41px;
  }

  .brand strong {
    max-width: 145px;
    font-size: 0.82rem;
  }

  .header-tools > a:first-child {
    display: none;
  }

  .document-hero {
    padding: 52px 0;
  }

  .document-hero h1 {
    font-size: clamp(2.45rem, 13vw, 3.6rem);
  }

  .document-main {
    padding: 42px 0 58px;
  }

  .source-table,
  .source-table tbody,
  .source-table tr,
  .source-table td {
    display: block;
  }

  .source-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .source-table tr {
    padding: 14px;
    border-bottom: 1px solid var(--line);
  }

  .source-table td {
    padding: 5px 0;
    border: 0;
  }

  .source-table td::before {
    display: block;
    color: var(--blue);
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    content: attr(data-label);
  }

  .contact-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Compact document layout, shared by all informative pages in both languages. */
.compact-document { background: white; }
.compact-document .doc-header { background: white; color: var(--text); border-bottom: 1px solid var(--line); }
.compact-document .brand, .compact-document .header-tools a { color: var(--text); }
.compact-document .brand em { color: #84630a; }
.compact-document .language-link { border-color: var(--line); }
.compact-document .brand strong { font-weight: 650; }
.compact-document .header-tools a { font-size: 0.875rem; font-weight: 600; }
.compact-document .document-hero { padding: 36px 0 20px; background: white; color: var(--text); }
.compact-document .document-hero::after { content: none; }
.compact-document .hero-grid { max-width: 760px; grid-template-columns: 1fr; gap: 16px; }
.compact-document .document-hero h1,
.compact-document .policy-copy h2,
.compact-document .policy-copy h3 { font-family: inherit; font-weight: 600; letter-spacing: -0.02em; }
.compact-document .document-hero h1 { margin-bottom: 16px; font-size: clamp(2rem, 5vw, 3rem); }
.compact-document .hero-lead { color: var(--muted); font-size: 1rem; }
.compact-document .translation-note { margin-top: 12px; color: var(--muted); font-size: 0.875rem; }
.compact-document .translation-note a { color: var(--blue); font-weight: 500; }
.document-meta { color: var(--muted); font-size: 0.875rem; overflow-wrap: anywhere; }
.document-meta p { margin: 0 0 4px; }
.document-meta strong { font-weight: 600; }
.compact-document .summary-band { padding: 0 0 20px; border: 0; }
.summary-points { display: flex; flex-wrap: wrap; gap: 8px 28px; max-width: 760px; padding: 0; list-style: none; font-size: 0.875rem; }
.summary-points li::before { content: '·'; margin-right: 8px; color: var(--blue); }
.compact-document .document-main { max-width: 760px; padding-top: 0; padding-bottom: 40px; }
.compact-document .document-layout { display: block; }
.document-index { margin-bottom: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.document-index summary { padding: 12px 0; cursor: pointer; font-size: 0.875rem; font-weight: 600; }
.document-index ol { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 0 20px 16px; margin: 0; font-size: 0.875rem; }
.compact-document .policy-copy h2 { margin-bottom: 16px; font-size: clamp(1.5rem, 3vw, 2rem); }
.compact-document .section-label { color: var(--blue); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; }
.compact-document .policy-copy section { padding-bottom: 28px; }
.compact-document .policy-copy section + section { padding-top: 28px; }
.compact-document .doc-footer .brand { color: var(--white); }
.compact-document .doc-footer .brand small { color: #8fa4bb; }
.compact-document .doc-footer .brand em { color: #f2cf43; }
.compact-document .contact-panel { background: #edf6fa; color: var(--text); border-radius: 10px; }
.compact-document .contact-panel span { color: var(--muted); font-size: 0.875rem; }
.compact-document .contact-panel strong { color: var(--text); font-weight: 600; }
.compact-document .contact-panel a { color: var(--blue); font-weight: 600; overflow-wrap: anywhere; }
.community-guide { margin: 20px 0; }
.compact-document .eyebrow { margin-bottom: 10px; color: var(--muted); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; }
.community-guide dt { margin-top: 20px; color: var(--text); font-weight: 600; }
.community-guide dd { margin: 6px 0 0; color: var(--muted); }
.compact-document .source-table { table-layout: fixed; overflow-wrap: anywhere; }

@media (max-width: 620px) {
  .brand-title {
    font-size: clamp(0.95rem, 4.3vw, 1.125rem);
  }

  .brand small {
    font-size: 0.68rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 20px;
    padding-block: 26px 22px;
  }

  .footer-identity {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
  }

  .footer-identity > p {
    max-width: none;
    padding-left: 16px;
  }

  .footer-actions {
    width: 100%;
    justify-content: space-between;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 16px;
    padding-block: 18px 22px;
  }

  .footer-meta {
    justify-items: start;
    max-width: none;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
