:root {
  --site-shell-width: 960px;
  --site-accent: #900;
  --site-text: #333;
  --site-border: #ccc;
  --bs-body-bg: #fff;
  --bs-body-color: #333;
  --bs-font-sans-serif: Arial, sans-serif;
  --bs-link-color: #900;
  --bs-link-hover-color: #900;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  color: var(--site-text);
  background: #fff;
  font-family: Arial, sans-serif;
  font-size: 86%;
  text-align: center;
}

a {
  color: var(--site-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a img {
  border: 0;
}

img {
  max-width: 100%;
  height: auto;
}

.site-shell {
  max-width: var(--site-shell-width);
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
  text-align: left;
}

.site-header {
  height: auto;
  position: relative;
  z-index: 20;
  background: #900 url("../images/bg-header.jpg") repeat-x;
}

.site-header::before {
  display: none;
}

.site-header > .site-shell,
.site-header > .section-nav {
  position: relative;
  z-index: 1;
}

.site-header__bar {
  min-height: 59px;
  position: relative;
  display: block !important;
}

.site-title {
  width: 252px;
  max-width: calc(100% - 130px);
  height: auto;
  aspect-ratio: 252 / 56;
  margin: 0;
  padding: 0;
  background: url("../images/h1.jpg") no-repeat top right;
  background-size: contain;
}

.site-title a {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  text-indent: -9999px;
}

.utility-nav {
  position: absolute;
  top: 0;
  right: 0;
  margin: 6px 0 0 0;
  font-size: 1em;
  color: #eee;
}

.utility-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.utility-nav li {
  display: inline;
}

.utility-nav li + li::before {
  content: " | ";
  color: #eee;
}

.utility-nav a {
  color: #eee;
}

.utility-nav a:hover {
  color: #fff;
}

.utility-nav a.is-active {
  font-weight: bold;
}

.section-nav {
  position: relative;
  z-index: 21;
  background: linear-gradient(180deg, #d7d7d7 0%, #cfcfcf 40%, #b8b8b8 100%);
}

.section-nav__list {
  margin: 0;
  padding: 9px 0;
  list-style: none;
  font-size: 0.9166em;
  line-height: normal;
  text-transform: uppercase;
}

.section-nav__list li {
  display: inline;
}

.section-nav__list a {
  padding: 0 18px 0 0;
  color: #333;
}

.section-nav__list a.is-active {
  font-weight: bold;
}

.page-shell {
  min-height: 400px;
  padding-top: 24px;
  padding-bottom: 24px;
  position: relative;
  z-index: 1;
}

.site-footer {
  clear: both;
  font-size: 0.9166em;
}

.site-footer .site-shell {
  padding-top: 6px;
  padding-bottom: 6px;
  border-top: 1px solid var(--site-border);
}

h2,
h3 {
  margin-top: 0;
  font-family: Georgia, serif;
  font-weight: normal;
}

h2 {
  font-size: 1.7em;
  line-height: 1.2em;
}

h3 {
  margin-bottom: 6px;
  font-size: 1.4em;
  line-height: 1.7em;
}

h4 {
  margin: 1.5em 0 0.5em 0;
  font-size: 1.0833em;
  font-weight: normal;
  line-height: normal;
  text-transform: uppercase;
}

p,
ul,
ol,
dl {
  line-height: 1.5em;
}

ul {
  margin: 0;
  padding: 0 0 0 1.2em;
}

ul li {
  padding: 4px 0;
}

.home-layout {
  --bs-gutter-x: 0;
  align-items: start;
}

.home-text {
  min-height: 380px;
}

.home-intro {
  margin-top: 0;
}

.home-links a {
  font-size: 1.0833em;
  font-weight: bold;
}

.home-links a:hover {
  padding: 3px;
  color: #eee;
  background: #900;
  text-decoration: none;
}

.home-media {
  text-align: right;
}

.home-slideshow {
  position: relative;
  width: 100%;
  max-width: 350px;
  margin-left: auto;
}

.home-slideshow .carousel-inner {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.home-slideshow .carousel-item,
.home-slideshow .carousel-item img {
  height: 100%;
}

.home-slideshow .carousel-item img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.sponsor-heading {
  clear: both;
  margin-top: 0;
  padding-top: 24px;
  border-top: 1px solid var(--site-border);
}

.sponsor-logos a {
  display: inline-block;
  margin-right: 60px;
}

.section-break {
  padding-top: 1.5em;
  border-top: 1px solid var(--site-border);
}

.gallery-count,
.gallery-search-note {
  font-size: 0.9166em;
}

.search-panel {
  margin-top: 1em;
}

.documenti-layout {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.toponimi-layout {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.bibliografia-layout {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.documenti-main {
  min-width: 0;
  flex: 1 1 auto;
}

.toponimi-main {
  min-width: 0;
  flex: 1 1 auto;
}

.bibliografia-main {
  min-width: 0;
  flex: 1 1 auto;
}

.documenti-side {
  width: 180px;
  flex: 0 0 180px;
  padding-bottom: 24px;
}

.toponimi-side {
  width: 180px;
  flex: 0 0 180px;
  padding-bottom: 24px;
}

.bibliografia-side {
  width: 240px;
  flex: 0 0 240px;
  padding-bottom: 24px;
}

.documenti-side h3 {
  border-bottom: 1px solid var(--site-border);
}

.toponimi-side h3 {
  border-bottom: 1px solid var(--site-border);
}

.bibliografia-side h3 {
  border-bottom: 1px solid var(--site-border);
}

.documenti-side ul {
  margin: 0;
  padding: 0 0 0 1.2em;
}

.toponimi-side ul {
  margin: 0;
  padding: 0 0 0 1.2em;
}

.bibliografia-side ul {
  margin: 0 0 1.5rem 0;
  padding: 0 0 0 1.2em;
}

.documenti-side a.on {
  font-weight: bold;
}

.toponimi-side a.on {
  font-weight: bold;
}

.bibliografia-side a.on {
  font-weight: bold;
}

.bibliografia-search {
  margin-bottom: 0;
}

.bibliografia-entry {
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--site-border);
}

.bib_item {
  margin: 0 0 1em 0;
  padding: 0.5em 0 0 0;
  border-top: 1px solid var(--site-border);
}

.bib_item p {
  margin: 0;
  padding: 0;
}

.bib_item p.commento {
  margin: 0.5em 0 0 0;
  padding: 0;
  font-size: 0.9166em;
  line-height: 1.4;
}

.bibliografia-entry h3 {
  margin: 0 0 0.35rem 0;
}

.bibliografia-entry p {
  margin: 0 0 0.75rem 0;
}

.bibliografia-citation {
  line-height: 1.45;
}

.bibliografia-note {
  padding-left: 12px;
  border-left: 2px solid var(--site-border);
}

.bibliografia-note-plain {
  padding-left: 0;
  border-left: 0;
}

.bibliografia-tags,
.bibliografia-meta {
  font-size: 0.9166em;
}

.bibliografia-links {
  padding-left: 1.2em;
}

.bibliografia-links li {
  margin-bottom: 0.9rem;
}

.documenti-image {
  float: right;
  padding: 0 0 12px 12px;
}

.lista {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.lista li {
  padding: 3px 0 3px 4px;
}

.odd {
  background: #eee;
}

.scheda {
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--site-border);
}

.scheda h3 {
  margin: 0;
  padding: 0;
}

.scheda p {
  margin: 0 0 12px 0;
  padding: 0;
}

.scheda .meta {
  margin: 0;
  padding: 0 0 0 12px;
  border-left: 2px solid var(--site-border);
}

.toponimi-list dt {
  padding-top: 0.5em;
  border-top: 1px solid var(--site-border);
}

.toponimi-list dd {
  margin: 0;
  font-size: 0.9166em;
}

.toponimi-map {
  margin-top: 1.5em;
}

.toponimi-detail {
  margin-bottom: 0;
}

.toponimi-detail p {
  margin: 0 0 0.75em 0;
}

.browser {
  font-size: 0.9166em;
}

.nav {
  font-size: 0.9166em;
}

.nav p {
  margin: 2.5em 0;
}

.nav .pag a,
.nav .pag span,
.nav .pag strong {
  padding: 4px;
  border: 1px solid var(--site-border);
}

.pag {
  font-size: 0.9166em;
}

.pag a,
.pag strong {
  padding: 2px;
  font-weight: bold;
}

.pag strong {
  color: #eee;
  background: #900;
}

.nav .pag a {
  font-weight: normal;
}

.nav .pag strong {
  color: #333;
  background: #fff;
}

.browser::after,
#columns3::after {
  content: "";
  display: table;
  clear: both;
}

.browser p {
  margin: 0 0 1em 0;
  padding: 0;
  line-height: normal;
}

.up {
  float: left;
}

.prevnext {
  float: right;
}

#columns3 li {
  padding: 2px 0;
}

#col1,
#col2,
#col3 {
  float: left;
  width: 32%;
}

#col2,
#col3 {
  margin-left: 2%;
}

ul.indice {
  margin: 0;
  padding: 0 0 8px 0;
  list-style-type: none;
}

ul.indice li {
  padding: 4px 2px;
}

#sideform {
  margin-bottom: 24px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1em;
}

#gallery {
  width: 100%;
  table-layout: fixed;
}

td {
  padding: 6px 4px;
}

#gallery td {
  text-align: center;
}

#gallery .img {
  width: 25%;
  padding-top: 24px;
  vertical-align: middle;
}

#gallery .img img {
  border: 12px solid #eee;
}

#gallery .didascalie {
  border-bottom: 1px solid var(--site-border);
}

#gallery .did {
  font-size: 0.9166em;
  padding-bottom: 24px;
}

.picblock {
  min-height: 300px;
  margin-top: 1em;
  padding-bottom: 1em;
}

.picblock .pic {
  float: left;
  width: min(350px, 100%);
  margin: 0;
  padding: 12px 0;
  display: block;
  text-align: center;
  background: #eee;
}

.picblock .pic img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.detail-image-link {
  display: block;
}

.detail-image-link img {
  cursor: zoom-in;
}

.picblock .txt {
  margin-left: 370px;
  margin-bottom: 0;
}

.picblock p {
  margin: 0 0 0.5em 0;
}

.canti-heading {
  margin-bottom: 18px;
}

.canti-nav {
  white-space: nowrap;
}

.canti-layout {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.canti-text {
  min-width: 0;
  flex: 1 1 0;
}

.canti-meta {
  width: 228px;
  flex: 0 0 228px;
  font-size: 0.9166em;
  line-height: 1.4;
}

.canti-audio {
  width: 100%;
  margin: 0 0 12px 0;
}

.canto-lyrics,
.canti-details,
.canti-notes {
  margin: 0 0 12px 0;
}

.canti-index-wrap {
  overflow-x: auto;
}

.canti-index {
  width: 100%;
  border-collapse: collapse;
}

.canti-index th,
.canti-index td {
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--site-border);
}

.canti-index th {
  font-family: Georgia, serif;
  font-size: 1.05em;
  font-weight: normal;
}

.canti-index__action {
  white-space: nowrap;
}

#search {
  min-height: 4rem;
}

.pagefind-ui__search-input,
.pagefind-ui__drawer,
.pagefind-ui__result {
  font-family: Arial, sans-serif;
}

.pagefind-ui__search-input {
  border: 1px solid var(--site-border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.pagefind-ui__search-clear,
.pagefind-ui__button {
  border: 1px solid var(--site-border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background-image: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  font-family: Arial, sans-serif !important;
}

.pagefind-ui__search-clear {
  position: absolute !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  top: 3px !important;
  right: 3px !important;
  transform: none !important;
  height: calc(58px * var(--pagefind-ui-scale)) !important;
  min-height: 0;
  margin: 0 !important;
  padding: 0 0.75rem !important;
  line-height: 1.1;
  white-space: nowrap;
  color: #333 !important;
  background: #fff !important;
}

.pagefind-ui__button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-height: 2.5rem;
  margin-top: 1rem !important;
  padding: 0.55rem 1rem !important;
  line-height: 1.2;
  color: #333 !important;
  background: #fff !important;
}

.pagefind-ui__button:hover,
.pagefind-ui__button:focus-visible {
  border-color: #900 !important;
  color: #900 !important;
  outline: none !important;
}

.pagefind-ui__button:disabled,
#sideform input[type="submit"]:disabled {
  color: #888 !important;
  background: #f3f3f3 !important;
  border-color: #d0d0d0 !important;
  cursor: not-allowed !important;
  opacity: 1;
}

.pagefind-ui__result-link {
  color: #900 !important;
}

#search .pagefind-ui__filter-block:not([open]) > .pagefind-ui__filter-group {
  display: flex !important;
}

#search .pagefind-ui__filter-name {
  cursor: default !important;
  pointer-events: none;
}

#search .pagefind-ui__filter-name::after {
  display: none !important;
}

@media (min-width: 768px) {
  .site-shell {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 767.98px) {
  body {
    font-size: 96%;
  }

  .site-header__bar {
    min-height: 59px;
  }

  .section-nav__list a {
    display: inline-block;
    padding-bottom: 0.35rem;
  }

  .home-text {
    min-height: 0;
  }

  .home-media {
    text-align: left;
  }

  .home-slideshow {
    max-width: none;
    margin-left: 0;
  }

  .documenti-layout {
    display: block;
  }

  .toponimi-layout {
    display: block;
  }

  .bibliografia-layout {
    display: block;
  }

  .canti-layout {
    display: block;
  }

  .canti-meta {
    width: auto;
    padding-top: 24px;
  }

  .documenti-side {
    width: auto;
    padding-top: 24px;
  }

  .toponimi-side {
    width: auto;
    padding-top: 24px;
  }

  .bibliografia-side {
    width: auto;
    padding-top: 24px;
  }

  #col1,
  #col2,
  #col3 {
    float: none;
    width: auto;
    margin-left: 0;
  }

  #gallery .img {
    width: auto;
  }

  #gallery .img img {
    border-width: 8px;
  }

  .up,
  .prevnext,
  .picblock .pic {
    float: none;
  }

  .picblock .txt {
    margin-left: 0;
    margin-top: 16px;
  }

  .documenti-image {
    float: none;
    display: block;
    padding: 0;
    margin: 0 0 16px 0;
  }
  .sponsor-logos a {
    margin-right: 1.5rem;
    margin-bottom: 1rem;
  }
}

@media (max-width: 575.98px) {
  .site-title {
    width: clamp(150px, 52vw, 220px);
    max-width: calc(100% - 112px);
  }

  .utility-nav {
    font-size: 0.9em;
    white-space: nowrap;
  }

  .section-nav__list {
    font-size: 0.84em;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .section-nav__list a {
    padding-right: 12px;
  }
}

@media (max-width: 399.98px) {
  .site-title {
    width: clamp(132px, 48vw, 180px);
    max-width: calc(100% - 100px);
  }

  .utility-nav {
    font-size: 0.84em;
  }
}
