@font-face {
  font-family: "Titillium Web";
  src: url("fonts/titillium-web-v6-latin-300.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Titillium Web";
  src: url("fonts/titillium-web-v6-latin-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Titillium Web";
  src: url("fonts/titillium-web-v4-latin-600.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Titillium Web";
  src: url("fonts/titillium-web-v4-latin-700.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --blu: rgb(40, 84, 147);
  --blu-scuro: rgb(29, 60, 106);
  --verde: #009246;
  --rosso: #ce2b37;
  --testo: #1a1a1a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: #ffffff;
  color: var(--testo);
  font-family: "Titillium Web", Arial, sans-serif;
  line-height: 1.6;
}

.site-header {
  --header-inline-padding: max(1.75rem, calc((100vw - 1200px) / 2 + 1.75rem));
  width: 100%;
}

.header-top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.5rem var(--header-inline-padding);
  background: var(--blu);
}

.header-logo {
  height: 3.5rem;
  width: auto;
  flex-shrink: 0;
}

.header-title {
  color: #ffffff;
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.tricolore {
  position: absolute;
  left: var(--header-inline-padding);
  bottom: 0;
  display: flex;
  width: 200px;
  max-width: calc(100% - (var(--header-inline-padding) * 2));
  height: 3px;
}

.tricolore span {
  flex: 1;
}

.tricolore .verde {
  background: var(--verde);
}

.tricolore .bianco {
  background: #ffffff;
}

.tricolore .rosso {
  background: var(--rosso);
}

.header-bottom {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-weight: 600;
  padding: 0.6rem var(--header-inline-padding);
  background: var(--blu-scuro);
}

.header-bottom a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
}

.header-bottom a:hover,
.header-bottom a:focus-visible {
  text-decoration: underline;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.75rem;
}

.document-heading {
  margin-bottom: 2rem;
  text-align: center;
}

.document-heading p {
  margin-bottom: 1rem;
}

.document-heading .commissione,
.document-heading .proposte {
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.35;
  font-size: 1.10rem;
}

.document-heading .commissione span {
  display: block;
  font-weight: 600;
  text-transform: none;
}

.document-heading .oggetto {
  color: var(--blu);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.45;
}

.fascicolo,
.altreproposte {
  font-size: 1.15rem;
  font-weight: 600;
}

.altreproposte {
  margin-top: 0.5rem;
}


ul {
  padding-left: 1.5rem;
}

ul li {
  margin-bottom: 0.5rem;
}

.emendamenti-list ul {
  margin-top: 0.35rem;
  margin-bottom: 0.75rem;
}

.emendamenti-list ul li {
  margin-bottom: 0.15rem;
  line-height: 1.45;
}

a:focus-visible {
  outline: 2px solid var(--blu);
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .header-top {
    --header-inline-padding: 1.1rem;
    padding: 1.1rem var(--header-inline-padding);
    gap: 0.7rem;
  }

  .header-logo {
    height: 2.4rem;
  }

  .header-title {
    font-size: 1.15rem;
  }

  .header-bottom {
    padding: 0.55rem 1.1rem;
  }

  .header-bottom a {
    font-size: 0.82rem;
  }

  main {
    padding: 1.5rem 1.1rem;
  }

  h1 {
    font-size: 1.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
