:root {
  --text-scale: 1;
  --text-spacing: 0em;
  --line-height-base: 1.4;
  --line-height-relaxed: 1.6;
  --body-text-color: 18, 18, 18;
  --body-background-color: 252, 252, 252;
  --body-red-color: 218, 54, 46;
  --button-border-color: 217, 217, 217;
  --card-border-color: 175, 175, 175;
  --select-background-color: 232, 232, 232;
  --footer-border-color: 217, 217, 217;
  --switch-background-color: 18, 18, 18;
  --nav-item-color: 18, 18, 18;
}

body.museo-text-size-125 {
  --text-scale: 1.25;
}

body.museo-text-size-150 {
  --text-scale: 1.50;
}

body.museo-text-size-175 {
  --text-scale: 1.75;
}

body.museo-text-size-200 {
  --text-scale: 2;
}

body.museo-text-spacing-medium {
  --text-spacing: 0.05em;
}

body.museo-text-spacing-high {
  --text-spacing: 0.1em;
}

body.museo-line-height-medium {
  --line-height-base: 1.6;
  --line-height-relaxed: 1.8;
}

body.museo-line-height-high {
  --line-height-base: 1.8;
  --line-height-relaxed: 2;
}

body.museo-theme-dark {
  --body-text-color: 252, 252, 252;
  --body-background-color: 18, 18, 18;
  --body-red-color: 224, 41, 25;
  --button-border-color: 91, 91, 91;
  --card-border-color: 119, 119, 119;
  --select-background-color: 121, 118, 118;
  --footer-border-color: 91, 91, 91;
  --switch-background-color: 252, 252, 252;
  --nav-item-color: 176, 176, 176;
}

body.museo-invert-colors {
  --body-text-color: 252, 252, 252;
  --body-background-color: 18, 18, 18;
  --body-red-color: 37, 201, 209;
  --button-border-color: 91, 91, 91;
  --card-border-color: 119, 119, 119;
  --select-background-color: 121, 118, 118;
  --footer-border-color: 91, 91, 91;
  --switch-background-color: 252, 252, 252;
  --nav-item-color: 18, 18, 18;
}

body.museo-invert-colors.museo-theme-dark {
  --body-text-color: 18, 18, 18;
  --body-background-color: 252, 252, 252;
  --body-red-color: 4, 129, 144;
  --button-border-color: 217, 217, 217;
  --card-border-color: 119, 119, 119;
  --select-background-color: 232, 232, 232;
  --footer-border-color: 217, 217, 217;
  --switch-background-color: 18, 18, 18;
  --nav-item-color: 252, 252, 252;
}

body.museo-high-contrast {
  --body-text-color: 18, 18, 18;
  --body-background-color: 252, 252, 252;
  --body-red-color: 154, 29, 21;
  --button-border-color: 217, 217, 217;
  --card-border-color: 175, 175, 175;
  --select-background-color: 232, 232, 232;
  --footer-border-color: 217, 217, 217;
  --switch-background-color: 18, 18, 18;
  --nav-item-color: 252, 252, 252;
}

body.museo-high-contrast.museo-theme-dark {
  --body-text-color: 252, 252, 252;
  --body-background-color: 18, 18, 18;
  --body-red-color: 253, 121, 116;
  --button-border-color: 91, 91, 91;
  --card-border-color: 119, 119, 119;
  --select-background-color: 121, 118, 118;
  --footer-border-color: 91, 91, 91;
  --switch-background-color: 252, 252, 252;
  --nav-item-color: 18, 18, 18;
}

body.museo-high-contrast.museo-invert-colors {
  --body-text-color: 252, 252, 252;
  --body-background-color: 18, 18, 18;
  --body-red-color: 101, 226, 234;
  --button-border-color: 91, 91, 91;
  --card-border-color: 119, 119, 119;
  --select-background-color: 121, 118, 118;
  --footer-border-color: 91, 91, 91;
  --switch-background-color: 252, 252, 252;
  --nav-item-color: 18, 18, 18;
}

body.museo-high-contrast.museo-invert-colors.museo-theme-dark {
  --body-text-color: 18, 18, 18;
  --body-background-color: 252, 252, 252;
  --body-red-color: 23, 76, 180;
  --button-border-color: 217, 217, 217;
  --card-border-color: 119, 119, 119;
  --select-background-color: 232, 232, 232;
  --footer-border-color: 217, 217, 217;
  --switch-background-color: 18, 18, 18;
  --nav-item-color: 252, 252, 252;
}

body.museo-low-saturation-medium {
  --body-red-color: 168, 104, 100;
}
body.museo-low-saturation-medium img,
body.museo-low-saturation-medium video,
body.museo-low-saturation-medium picture,
body.museo-low-saturation-medium canvas,
body.museo-low-saturation-medium svg:not([class*=icon]) {
  filter: saturate(0.5);
}

body.museo-low-saturation-medium.museo-theme-dark {
  --body-red-color: 174, 98, 90;
}

body.museo-low-saturation-medium.museo-invert-colors {
  --body-red-color: 87, 151, 155;
}

body.museo-low-saturation-medium.museo-invert-colors.museo-theme-dark {
  --body-red-color: 82, 143, 148;
}

body.museo-low-saturation-medium.museo-high-contrast {
  --body-red-color: 140, 70, 66;
}

body.museo-low-saturation-medium.museo-high-contrast.museo-theme-dark {
  --body-red-color: 200, 140, 135;
}

body.museo-low-saturation-medium.museo-high-contrast.museo-invert-colors {
  --body-red-color: 115, 185, 189;
}

body.museo-low-saturation-medium.museo-high-contrast.museo-invert-colors.museo-theme-dark {
  --body-red-color: 130, 195, 200;
}

body.museo-low-saturation-high {
  --body-red-color: 128, 128, 128;
}
body.museo-low-saturation-high img,
body.museo-low-saturation-high video,
body.museo-low-saturation-high picture,
body.museo-low-saturation-high canvas,
body.museo-low-saturation-high svg:not([class*=icon]) {
  filter: grayscale(1);
}

body.museo-low-saturation-high.museo-theme-dark {
  --body-red-color: 160, 160, 160;
}

body.museo-low-saturation-high.museo-invert-colors {
  --body-red-color: 140, 140, 140;
}

body.museo-low-saturation-high.museo-invert-colors.museo-theme-dark {
  --body-red-color: 150, 150, 150;
}

body.museo-low-saturation-high.museo-high-contrast {
  --body-red-color: 90, 90, 90;
}

body.museo-low-saturation-high.museo-high-contrast.museo-theme-dark {
  --body-red-color: 200, 200, 200;
}

body.museo-low-saturation-high.museo-high-contrast.museo-invert-colors {
  --body-red-color: 100, 100, 100;
}

body.museo-low-saturation-high.museo-high-contrast.museo-invert-colors.museo-theme-dark {
  --body-red-color: 180, 180, 180;
}

body.museo-low-saturation-medium .bottom-nav-icon img,
body.museo-low-saturation-medium .site-header-icon img,
body.museo-low-saturation-high .bottom-nav-icon img,
body.museo-low-saturation-high .site-header-icon img {
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  body.museo-low-saturation-medium img,
  body.museo-low-saturation-medium video,
  body.museo-low-saturation-medium picture,
  body.museo-low-saturation-medium canvas,
  body.museo-low-saturation-medium svg,
  body.museo-low-saturation-high img,
  body.museo-low-saturation-high video,
  body.museo-low-saturation-high picture,
  body.museo-low-saturation-high canvas,
  body.museo-low-saturation-high svg {
    transition: none;
  }
}
@font-face {
  font-family: "Noto Sans";
  src: url("../assets/fonts/NotoSans/NotoSans-SemiBoldItalic.woff2") format("woff2"), url("../assets/fonts/NotoSans/NotoSans-SemiBoldItalic.woff") format("woff");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans";
  src: url("../assets/fonts/NotoSans/NotoSans-SemiBold.woff2") format("woff2"), url("../assets/fonts/NotoSans/NotoSans-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans";
  src: url("../assets/fonts/NotoSans/NotoSans-Regular.woff2") format("woff2"), url("../assets/fonts/NotoSans/NotoSans-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans";
  src: url("../assets/fonts/NotoSans/NotoSans-Italic.woff2") format("woff2"), url("../assets/fonts/NotoSans/NotoSans-Italic.woff") format("woff");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans";
  src: url("../assets/fonts/NotoSans/NotoSans-BoldItalic.woff2") format("woff2"), url("../assets/fonts/NotoSans/NotoSans-BoldItalic.woff") format("woff");
  font-weight: bold;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans";
  src: url("../assets/fonts/NotoSans/NotoSans-Bold.woff2") format("woff2"), url("../assets/fonts/NotoSans/NotoSans-Bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "OpenDyslexic";
  src: url("../assets/fonts/OpenDyslexic/OpenDyslexic-Regular.woff2") format("woff2"), url("../assets/fonts/OpenDyslexic/OpenDyslexic-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "OpenDyslexic";
  src: url("../assets/fonts/OpenDyslexic/OpenDyslexic-Italic.woff2") format("woff2"), url("../assets/fonts/OpenDyslexic/OpenDyslexic-Italic.woff") format("woff");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "OpenDyslexic";
  src: url("../assets/fonts/OpenDyslexic/OpenDyslexic-Bold.woff2") format("woff2"), url("../assets/fonts/OpenDyslexic/OpenDyslexic-Bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "OpenDyslexic";
  src: url("../assets/fonts/OpenDyslexic/OpenDyslexic-Bold-Italic.woff2") format("woff2"), url("../assets/fonts/OpenDyslexic/OpenDyslexic-Bold-Italic.woff") format("woff");
  font-weight: bold;
  font-style: italic;
  font-display: swap;
}
html, body {
  font-family: "Noto Sans", sans-serif;
}
html.museo-profile-dislessia .post-content, html.museo-profile-dislessia .card-title, html.museo-profile-dislessia .btn-next-post, body.museo-profile-dislessia .post-content, body.museo-profile-dislessia .card-title, body.museo-profile-dislessia .btn-next-post {
  font-family: "OpenDyslexic", sans-serif;
}
html.museo-profile-dislessia .card-list, body.museo-profile-dislessia .card-list {
  gap: 1rem 0;
}
html.museo-profile-dislessia .card-item, body.museo-profile-dislessia .card-item {
  width: 100%;
}

body {
  color: rgb(var(--body-text-color));
  background: rgb(var(--body-background-color));
  letter-spacing: var(--text-spacing);
  line-height: var(--line-height-base);
}
body a {
  color: rgb(var(--body-text-color));
  transition: color 200ms ease-in-out;
}
body a:visited, body a:active {
  color: rgb(var(--body-text-color));
}
body a:hover, body a:focus {
  color: rgb(var(--body-text-color));
}
body a:focus {
  border-radius: 0.2rem;
  outline: 2px solid rgb(var(--body-red-color));
  outline-offset: 2px;
}
@media (forced-colors: active) {
  body a:focus {
    outline-color: Highlight;
    outline-width: 3px;
  }
}

.site.-app {
  padding-bottom: 60px !important;
}

.single .site.-app {
  padding-bottom: 100px !important;
}

h1, .h1 {
  font-size: calc(2rem * var(--text-scale));
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--text-spacing);
  line-height: var(--line-height-base);
}
@media (max-width: 767px) {
  h1, .h1 {
    font-size: calc(1.5rem * var(--text-scale));
  }
}

h2, .h2 {
  font-size: calc(1.8rem * var(--text-scale));
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--text-spacing);
  line-height: var(--line-height-base);
}
@media (max-width: 767px) {
  h2, .h2 {
    font-size: calc(1.3rem * var(--text-scale));
  }
}

h3, .h3 {
  font-size: calc(1.6rem * var(--text-scale));
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--text-spacing);
  line-height: var(--line-height-base);
}
@media (max-width: 767px) {
  h3, .h3 {
    font-size: calc(1.25rem * var(--text-scale));
  }
}

h4, .h4 {
  font-size: calc(1.4rem * var(--text-scale));
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--text-spacing);
  line-height: var(--line-height-base);
}
@media (max-width: 767px) {
  h4, .h4 {
    font-size: calc(1.2rem * var(--text-scale));
  }
}

h5, .h5 {
  font-size: calc(1.3rem * var(--text-scale));
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--text-spacing);
  line-height: var(--line-height-base);
}
@media (max-width: 767px) {
  h5, .h5 {
    font-size: calc(1.1rem * var(--text-scale));
  }
}

h6, .h6 {
  font-size: calc(1.2rem * var(--text-scale));
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--text-spacing);
  line-height: var(--line-height-base);
}
@media (max-width: 767px) {
  h6, .h6 {
    font-size: calc(1rem * var(--text-scale));
  }
}

p {
  font-size: calc(1rem * var(--text-scale));
  letter-spacing: var(--text-spacing);
  line-height: var(--line-height-relaxed);
}

.site-header-logo {
  text-align: center;
  display: block;
  margin: 0.7rem auto 1.2rem;
  max-width: 320px;
}
@media (max-width: 767px) {
  .site-header-logo {
    max-width: 240px;
    width: 100%;
    display: block;
  }
}

.site-header-icon {
  display: inline-block;
}
.site-header-icon img {
  width: 27px;
  height: auto;
  display: block;
}
.site-header-icon-back {
  display: block;
}
.site-header-icon-back img {
  width: 25px;
}
.site-header-icon-help {
  display: none;
}
.site-header-icon-help img {
  width: 33px;
}

.home .site-header-icon-back {
  display: none;
}
.home .site-header-icon-help {
  display: block;
}

.museo-header-language-select {
  border: none;
  background: rgb(var(--body-background-color));
  color: rgb(var(--body-text-color));
  font-size: calc(1.4rem * var(--text-scale));
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--text-spacing);
  cursor: pointer;
  transition: background-color 200ms ease-in-out, color 200ms ease-in-out;
}
.museo-header-language-select:hover, .museo-header-language-select:focus {
  border-radius: 0.2rem;
  outline: 2px solid rgb(var(--body-red-color));
  outline-offset: 2px;
}
@media (forced-colors: active) {
  .museo-header-language-select:hover, .museo-header-language-select:focus {
    outline-color: Highlight;
    outline-width: 3px;
  }
}
@media (max-width: 767px) {
  .museo-header-language-select {
    font-size: calc(1.2rem * var(--text-scale));
  }
}

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgb(var(--body-background-color));
  border-top: 1px solid rgb(var(--footer-border-color));
  box-shadow: 0px -2px 8px rgba(var(--body-text-color), 0.1);
  transition: background-color 200ms ease-in-out, border-color 200ms ease-in-out;
}
.site-footer + * {
  padding-bottom: 80px;
}

.bottom-navigation {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-nav-list {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  max-width: 600px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.bottom-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 12px;
  text-decoration: none;
  transition: color 200ms ease-in-out;
  position: relative;
  min-width: 64px;
  color: rgb(var(--body-text-color));
}
@media (max-width: 767px) {
  .bottom-nav-link {
    gap: 2px;
    padding: 6px 10px;
  }
}
.bottom-nav-link::before {
  content: "";
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
}
.bottom-nav-link:visited, .bottom-nav-link:active {
  color: rgb(var(--body-text-color));
  text-decoration: none;
}
.bottom-nav-link:hover:not(.is-active), .bottom-nav-link:focus:not(.is-active) {
  color: rgb(var(--body-text-color));
}
.bottom-nav-link:hover:not(.is-active) .bottom-nav-icon, .bottom-nav-link:focus:not(.is-active) .bottom-nav-icon {
  transform: scale(1.1);
}
.bottom-nav-link:focus {
  border-radius: 8px;
  outline: 2px solid rgb(var(--body-red-color));
  outline-offset: 4px;
}
@media (forced-colors: active) {
  .bottom-nav-link:focus {
    outline-color: Highlight;
    outline-width: 3px;
  }
}

.card-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap; /* Cambiato da nowrap a wrap */
  gap: 1rem;
}
@media (max-width: 767px) {
  .card-list {
    gap: 1rem 0.4rem;
  }
}

.card-item {
  display: block;
  width: calc(33% - 0.7rem);
  overflow: hidden;
  border-radius: 0.5rem;
  border: 0.1rem solid rgb(var(--card-border-color));
  text-decoration: none;
  background-color: rgb(var(--body-background-color));
  color: rgb(var(--body-text-color));
  transition: background-color 200ms ease-in-out, color 200ms ease-in-out, border-color 200ms ease-in-out, box-shadow 200ms ease-in-out;
}
@media (max-width: 767px) {
  .card-item {
    width: calc(50% - 0.2rem); /* Adattato per il gap mobile */
    border-radius: 0.5rem;
  }
}
.card-item a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.card-item a:visited, .card-item a:active {
  color: inherit;
  text-decoration: none;
}
.card-item h2 {
  font-size: calc(1.2rem * var(--text-scale));
  letter-spacing: var(--text-spacing);
  line-height: var(--line-height-base);
}
@media (max-width: 767px) {
  .card-item h2 {
    font-size: calc(1rem * var(--text-scale));
  }
}
.card-item:hover, .card-item:focus, .card-item:focus-within {
  border-radius: 0.5rem;
  outline: 2px solid rgb(var(--body-red-color));
  outline-offset: 2px;
}
@media (forced-colors: active) {
  .card-item:hover, .card-item:focus, .card-item:focus-within {
    outline-color: Highlight;
    outline-width: 3px;
  }
}
.card-item:hover .card-item-content h4, .card-item:focus .card-item-content h4, .card-item:focus-within .card-item-content h4 {
  color: rgb(var(--body-text-color));
}
.card-item:visited, .card-item:active {
  text-decoration: none;
  color: rgb(var(--body-text-color));
  background-color: rgb(var(--body-background-color));
}
.card-item .card-item-content {
  padding: 0.4rem 0.7rem 0.5rem;
  color: inherit;
}
@media (max-width: 767px) {
  .card-item .card-item-content {
    padding: 0.2rem 0.5rem 0.3rem;
  }
}
.card-item .card-item-content h4 {
  font-size: calc(1.2rem * var(--text-scale));
  letter-spacing: var(--text-spacing);
  line-height: var(--line-height-base);
  color: inherit;
  transition: color 200ms ease-in-out;
}
@media (max-width: 767px) {
  .card-item .card-item-content h4 {
    font-size: calc(1rem * var(--text-scale));
  }
}

.card-title {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
}
@media (max-width: 767px) {
  .card-title {
    gap: 0.25rem;
  }
}
.card-title .card-title-number,
.card-title .card-title-text {
  display: inline-block;
}

.bottom-navigation .bottom-nav-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 40px;
  transition: transform 200ms ease-in-out;
}
@media (max-width: 767px) {
  .bottom-navigation .bottom-nav-icon {
    width: 50px;
    height: 30px;
  }
}
.bottom-navigation .bottom-nav-icon img {
  width: auto;
  height: 24px;
  display: block;
  position: relative;
  z-index: 2;
}
@media (max-width: 767px) {
  .bottom-navigation .bottom-nav-icon img {
    height: 60%;
  }
}
.bottom-navigation .bottom-nav-icon::before {
  width: 100%;
  height: 90%;
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background-color: rgb(var(--body-red-color));
  border-radius: 5rem;
  transition: transform 200ms ease-in-out;
  z-index: 1;
}
.bottom-navigation .bottom-nav-label {
  font-size: calc(1rem * var(--text-scale));
  font-weight: 500;
  line-height: 1.1;
  text-align: center;
  transition: color 200ms ease-in-out;
  letter-spacing: var(--text-spacing);
  color: rgb(var(--body-text-color));
}

.bottom-nav-link.is-active .bottom-nav-icon::before {
  transform: translate(-50%, -50%) scale(1);
}

ul.c-list-no {
  margin: 0;
  padding: 0;
}
ul.c-list-no li {
  display: block;
  margin: 0 auto;
}
ul.c-list-button {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem auto;
}
ul.c-list-button li {
  width: 100%;
  max-width: 400px;
  display: inline-block;
}
ul.c-list-button li a {
  display: block;
  width: 100%;
  border: 0.15rem solid rgb(var(--button-border-color));
  margin: 0;
  padding: 0.5rem 0.7rem;
  position: relative;
  border-radius: 0.5rem;
  text-align: left;
  background-color: rgb(var(--body-background-color));
  color: rgb(var(--body-text-color));
  transition: background-color 200ms ease-in-out, color 200ms ease-in-out, border-color 200ms ease-in-out;
  font-size: calc(1.1rem * var(--text-scale));
  text-decoration: none;
  letter-spacing: var(--text-spacing);
  line-height: var(--line-height-base);
}
@media (max-width: 767px) {
  ul.c-list-button li a {
    font-size: calc(1.3rem * var(--text-scale));
  }
}
ul.c-list-button li a:hover, ul.c-list-button li a:focus {
  border-radius: 0.2rem;
  outline: 2px solid rgb(var(--body-red-color));
  outline-offset: 2px;
  text-decoration: none;
}
@media (forced-colors: active) {
  ul.c-list-button li a:hover, ul.c-list-button li a:focus {
    outline-color: Highlight;
    outline-width: 3px;
  }
}
ul.c-list-button li a:visited, ul.c-list-button li a:active {
  color: rgb(var(--body-text-color));
  background-color: rgb(var(--body-background-color));
  text-decoration: none;
}
ul.c-list-button li a:after {
  content: "";
  display: block;
  width: 15px;
  height: 15px;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background-image: url("../assets/icons/freccia_light.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.search-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 1rem;
}
.search-wrapper input {
  width: 90%;
  padding: 0.2rem 0.5rem;
  border: 2px solid rgb(var(--card-border-color));
  border-radius: 2rem;
  letter-spacing: var(--text-spacing);
  background-color: rgb(var(--body-background-color));
  color: rgb(var(--body-text-color));
  transition: border-color 200ms ease-in-out, box-shadow 200ms ease-in-out;
}
.search-wrapper input:focus {
  border-radius: 2rem;
  outline: 2px solid rgb(var(--body-red-color));
  outline-offset: 2px;
  color: rgb(var(--body-text-color));
}
@media (forced-colors: active) {
  .search-wrapper input:focus {
    outline-color: Highlight;
    outline-width: 3px;
  }
}
.search-wrapper button {
  padding: 0.5rem 0.8rem;
  background: rgb(var(--body-background-color));
  border: 2px solid rgb(var(--card-border-color));
  border-radius: 0.7rem;
  color: rgb(var(--body-text-color));
  text-transform: uppercase;
  letter-spacing: var(--text-spacing);
  cursor: pointer;
  transition: background-color 200ms ease-in-out, color 200ms ease-in-out, border-color 200ms ease-in-out;
}
.search-wrapper button:hover, .search-wrapper button:focus {
  border-radius: 0.7rem;
  outline: 2px solid rgb(var(--body-red-color));
  outline-offset: 2px;
}
@media (forced-colors: active) {
  .search-wrapper button:hover, .search-wrapper button:focus {
    outline-color: Highlight;
    outline-width: 3px;
  }
}

.alphabet-nav {
  margin: 0;
  padding: 0.4rem 0;
  position: fixed;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  border: 2px solid rgb(var(--button-border-color));
  border-radius: 1rem;
  background-color: rgb(var(--body-background-color));
  font-size: calc(1rem * var(--text-scale));
  line-height: var(--line-height-base);
}
@media (max-width: 767px) {
  .alphabet-nav {
    right: 0.35rem;
    font-size: calc(0.9rem * var(--text-scale));
  }
}
.alphabet-nav li {
  margin: 0.5rem auto;
  list-style-type: none;
  width: 100%;
  text-align: center;
}
.alphabet-nav li a {
  text-align: center;
  text-decoration: none;
  letter-spacing: var(--text-spacing);
  padding: 0.2rem 0.4rem;
  display: block;
  border-radius: 0.3rem;
  transition: background-color 200ms ease-in-out, color 200ms ease-in-out;
}
@media (max-width: 767px) {
  .alphabet-nav li a {
    padding: 0.1rem 0.27rem;
  }
}
.alphabet-nav li a:hover, .alphabet-nav li a:focus {
  border-radius: 50%;
  outline: 2px solid rgb(var(--body-red-color));
  outline-offset: 1px;
}
@media (forced-colors: active) {
  .alphabet-nav li a:hover, .alphabet-nav li a:focus {
    outline-color: Highlight;
    outline-width: 3px;
  }
}
.alphabet-nav li a:visited, .alphabet-nav li a:active {
  color: rgb(var(--body-text-color));
  background-color: transparent;
}

ul.glossario-list {
  margin: 0;
  padding: 0;
}
ul.glossario-list li.glossario-item {
  padding: 1.5rem 2rem 1rem;
  margin: 1rem auto;
  list-style-type: none;
  border: 2px solid rgb(var(--card-border-color));
  border-radius: 1rem;
  background-color: rgb(var(--body-background-color));
  color: rgb(var(--body-text-color));
  transition: background-color 200ms ease-in-out, color 200ms ease-in-out, border-color 200ms ease-in-out;
}
@media (max-width: 767px) {
  ul.glossario-list li.glossario-item {
    margin: 0.5rem auto;
    padding: 1.2rem 1.3rem 0.9rem;
  }
}
ul.glossario-list li.glossario-item:focus-within {
  border-radius: 1rem;
  outline: 2px solid rgb(var(--body-red-color));
  outline-offset: 2px;
}
@media (forced-colors: active) {
  ul.glossario-list li.glossario-item:focus-within {
    outline-color: Highlight;
    outline-width: 3px;
  }
}

.mappa-wrapper {
  position: relative;
  width: 100%;
}

.mappa-tabs {
  display: inline-flex;
  gap: 0;
  padding: 0;
  margin-bottom: 1rem;
  border: 0.1rem solid rgb(var(--button-border-color));
  background: rgb(var(--select-background-color));
  border-radius: 2rem;
}
@media (max-width: 767px) {
  .mappa-tabs {
    width: 100%;
    margin-bottom: 0.5rem;
    justify-content: stretch;
  }
}

.mappa-tab {
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 2rem;
  background-color: transparent;
  color: rgb(var(--body-text-color));
  font-family: inherit;
  font-size: calc(1rem * var(--text-scale));
  letter-spacing: var(--text-spacing);
  line-height: var(--line-height-base);
  cursor: pointer;
  transition: background-color 200ms ease-in-out, color 200ms ease-in-out;
  font-weight: bold;
}
@media (max-width: 767px) {
  .mappa-tab {
    flex: 1;
    padding: 0.5rem 1rem;
    font-size: calc(0.9rem * var(--text-scale));
  }
}
.mappa-tab.is-active, .mappa-tab[aria-selected=true] {
  background-color: rgb(var(--body-red-color));
  color: rgb(var(--body-background-color));
}
.mappa-tab:not(.is-active):hover {
  background-color: rgba(var(--body-text-color), 0.1);
}
.mappa-tab:focus {
  border-radius: 2rem;
  outline: 2px solid rgb(var(--body-red-color));
  outline-offset: 2px;
}
@media (forced-colors: active) {
  .mappa-tab:focus {
    outline-color: Highlight;
    outline-width: 3px;
  }
}
.mappa-tab:focus:not(:focus-visible) {
  outline: none;
}
.mappa-tab:focus-visible {
  border-radius: 2rem;
  outline: 2px solid rgb(var(--body-red-color));
  outline-offset: 2px;
}
@media (forced-colors: active) {
  .mappa-tab:focus-visible {
    outline-color: Highlight;
    outline-width: 3px;
  }
}

.mappa-panels {
  position: relative;
}

.mappa-panel:focus {
  outline: none;
}
.mappa-panel:focus-visible {
  border-radius: 0.5rem;
  outline: 2px solid rgb(var(--body-red-color));
  outline-offset: 4px;
}
@media (forced-colors: active) {
  .mappa-panel:focus-visible {
    outline-color: Highlight;
    outline-width: 3px;
  }
}
.mappa-panel[hidden] {
  display: none;
}

.mappa-viewer {
  position: relative;
  width: 100%;
  border-radius: 0.7rem;
  border: 0.1rem solid rgb(var(--card-border-color));
  overflow: hidden;
}
.mappa-viewer h2 {
  margin: 0;
}

.mappa-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  max-height: 45vh;
  margin-bottom: 1rem;
  overflow: hidden;
  background-color: rgb(var(--body-background-color));
  touch-action: pan-x pan-y pinch-zoom;
}
@media (max-width: 767px) {
  .mappa-container {
    aspect-ratio: 4/5;
    max-height: 42vh;
    border-radius: 0.3rem;
    margin-bottom: 0;
  }
}

.mappa-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  transition: transform 200ms ease-out;
}
.mappa-content.is-dragging {
  transition: none;
  cursor: grabbing;
}
.mappa-content.is-panning {
  cursor: grab;
}

.mappa-svg,
.mappa-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.mappa-svg {
  display: block;
}

.mappa-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  padding: 0.5rem;
}
@media (max-width: 767px) {
  .mappa-controls {
    margin-top: 0;
  }
}

.mappa-current-label {
  font-size: calc(1rem * var(--text-scale));
  font-weight: 600;
  letter-spacing: var(--text-spacing);
  line-height: var(--line-height-base);
  color: rgb(var(--body-text-color));
}

.mappa-zoom-controls {
  display: flex;
  gap: 0.5rem;
}

.mappa-zoom-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid rgb(var(--body-background-color));
  border-radius: 50%;
  background-color: rgb(var(--body-background-color));
  color: rgb(var(--body-text-color));
  font-size: calc(1.5rem * var(--text-scale));
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 200ms ease-in-out, border-color 200ms ease-in-out, color 200ms ease-in-out;
}
@media (max-width: 767px) {
  .mappa-zoom-btn {
    width: 40px;
    height: 40px;
    font-size: calc(1.3rem * var(--text-scale));
  }
}
.mappa-zoom-btn span {
  display: block;
  line-height: 1;
}
.mappa-zoom-btn:hover {
  background-color: rgb(var(--body-red-color));
  border-color: rgb(var(--body-red-color));
  color: rgb(var(--body-background-color));
}
.mappa-zoom-btn:focus {
  border-radius: 50%;
  outline: 2px solid rgb(var(--body-red-color));
  outline-offset: 2px;
}
@media (forced-colors: active) {
  .mappa-zoom-btn:focus {
    outline-color: Highlight;
    outline-width: 3px;
  }
}
.mappa-zoom-btn:focus:not(:focus-visible) {
  outline: none;
}
.mappa-zoom-btn:focus-visible {
  border-radius: 50%;
  outline: 2px solid rgb(var(--body-red-color));
  outline-offset: 2px;
}
@media (forced-colors: active) {
  .mappa-zoom-btn:focus-visible {
    outline-color: Highlight;
    outline-width: 3px;
  }
}
.mappa-zoom-btn:disabled, .mappa-zoom-btn[aria-disabled=true] {
  opacity: 0.4;
  cursor: not-allowed;
}
.mappa-zoom-btn:disabled:hover, .mappa-zoom-btn[aria-disabled=true]:hover {
  background-color: rgb(var(--body-background-color));
  border-color: rgb(var(--button-border-color));
  color: rgb(var(--body-text-color));
}

.mappa-zoom-in {
  background-color: rgb(var(--body-red-color));
  color: rgb(var(--body-background-color));
}
.mappa-zoom-in:hover:not(:disabled) {
  background-color: rgba(var(--body-red-color), 0.85);
}

.mappa-zoom-out {
  background-color: rgb(var(--body-red-color));
  color: rgb(var(--body-background-color));
}
.mappa-zoom-out:hover:not(:disabled) {
  background-color: rgba(var(--body-red-color), 0.85);
}

.mappa-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  padding: 2rem;
  border: 2px dashed rgb(var(--button-border-color));
  border-radius: 0.5rem;
  background-color: rgba(var(--select-background-color), 0.5);
}
.mappa-empty p {
  margin: 0;
  font-size: calc(1rem * var(--text-scale));
  color: rgb(var(--body-text-color));
  text-align: center;
}

.mappa-share {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(var(--button-border-color));
}

.mappa-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border: 2px solid rgb(var(--button-border-color));
  border-radius: 0.5rem;
  background-color: rgb(var(--body-background-color));
  color: rgb(var(--body-text-color));
  font-family: inherit;
  font-size: calc(1rem * var(--text-scale));
  font-weight: 500;
  letter-spacing: var(--text-spacing);
  line-height: var(--line-height-base);
  cursor: pointer;
  transition: background-color 200ms ease-in-out, border-color 200ms ease-in-out, color 200ms ease-in-out;
}
@media (max-width: 767px) {
  .mappa-share-btn {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1rem;
  }
}
.mappa-share-btn:hover {
  border-color: rgb(var(--body-red-color));
  color: rgb(var(--body-red-color));
}
.mappa-share-btn:focus {
  border-radius: 0.5rem;
  outline: 2px solid rgb(var(--body-red-color));
  outline-offset: 2px;
}
@media (forced-colors: active) {
  .mappa-share-btn:focus {
    outline-color: Highlight;
    outline-width: 3px;
  }
}
.mappa-share-btn:focus:not(:focus-visible) {
  outline: none;
}
.mappa-share-btn:focus-visible {
  border-radius: 0.5rem;
  outline: 2px solid rgb(var(--body-red-color));
  outline-offset: 2px;
}
@media (forced-colors: active) {
  .mappa-share-btn:focus-visible {
    outline-color: Highlight;
    outline-width: 3px;
  }
}
.mappa-share-btn.is-copied {
  border-color: rgb(var(--body-red-color));
  background-color: rgb(var(--body-red-color));
  color: rgb(var(--body-background-color));
}
.mappa-share-btn.is-copied .mappa-share-icon .icon-copy {
  display: none;
}
.mappa-share-btn.is-copied .mappa-share-icon .icon-check {
  display: block;
}

.mappa-share-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.mappa-share-icon .icon-check {
  display: none;
}

.mappa-share-text {
  white-space: nowrap;
}

.mappa-share-status:not(.visually-hidden) {
  display: block;
  margin-top: 0.5rem;
  font-size: calc(0.9rem * var(--text-scale));
  color: rgb(var(--body-red-color));
}

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

@media (prefers-reduced-motion: reduce) {
  .mappa-tab,
  .mappa-zoom-btn,
  .mappa-share-btn,
  .mappa-content {
    transition: none;
  }
}
@media print {
  .mappa-controls {
    display: none;
  }
  .mappa-container {
    border: 1px solid #000;
    aspect-ratio: auto;
    height: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bottom-nav-link,
  .bottom-nav-icon,
  .bottom-nav-icon::before,
  .site-footer,
  .card-item,
  .c-list-button li a,
  .search-wrapper button,
  .search-wrapper input,
  .alphabet-nav li a,
  .glossario-item,
  .museo-header-language-select {
    transition: none;
  }
  .bottom-nav-link:active .bottom-nav-icon {
    animation: none;
  }
}
@media print {
  .site-footer {
    display: none;
  }
}

/*# sourceMappingURL=custom-style.css.map */
