.metadata .resource-type.item-set {
visibility: hidden;
}


.centerPanel #content {
  padding: 0px 0px 0px 0px;
}
.uv .rightPanel .top .title,  .uv .centerPanel .content .attribution {
  visibility: hidden !important;
}
.uv .headerPanel {
  height: 0px !important;
  visibility: hidden !important;
}
.uv .mainPanel .rightPanel {
  visibility: hidden !important;
  width: 0px !important;
}
#download-btn, .btn.share, .moreInfo.btn {
visibility: hidden !important;
}

#search-form{
display:none;
}
#search-form.open {
  display: flex;
}

.openseadragon {
max-height: 600px;
max-width: 1280px;
margin: 0px auto;
background-color: rgb(250, 250, 250);
border-radius: 15px;
}
.fullpage {
    max-width: 100%;
    max-height: 100%;
}
.footer-image {
max-width: 300px;
}
.browse #content {
    padding-bottom: 0px;
}
ul {
margin:10px 0px;
}
.site-title img {
    max-height: 70px;
}
.footer-div{
display: flex;
flex-wrap: wrap
}
.footer-text {
margin-left:auto;
align-self: center;
}
.pagination {
font-size:18px;
font-family: 'Oswald', sans-serif;
font-weight:700;
}
.pagination input[type="text"] {
font-size:18px;
font-family: 'Oswald', sans-serif;
font-weight:700;
}

img.customimage { max-width: 100%;}
.contenuti {
width: 100%;
display: flex;
flex-wrap: wrap;
}
.site-title {
    font-size: 44px;
    line-height:48px;
}
header > h1 > a:visited {
    color: #fff;
}
.archivio-contenuti{
width: 100%;
display: flex;
flex-wrap: wrap;
border-radius:25px;
background-color: #00000005;
    margin: 50px 0px;
    padding: 20px 50px 20px 30px;
}
#content footer {
    padding: 24px 0px 24px;
}
.contenuti-header{
width:100%;
}
.contenuti-header > h2 {
margin-bottom:10px;
}
.breadcrumbs-parent{
width: 100%;
}
.breadcrumbs {
margin-top: 10px;
width: 100%;
}
footer {
    padding: 24px 48px 24px;
background-color:#00000005;
margin-top: 50px;
}
.show-header {
    width: 100%;
}
.value:not(:first-of-type) {
    margin-top: 0px;
    padding-top: 10px;
    border-top: 0px;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
}
.show #content h2:first-child {
    display: inline-block;
    width: auto;
    margin: 24px 0 24px;
}
.item-set.show .metadata + h3 {
    width: 50%;
    font-size: 28px;
}
.browse-controls {
    width: 100%;
   text-align:right;
   margin-bottom:10px;
}
.property {
margin-bottom: 15px;
}
#content > h2:first-child {
    width: 100%;
    margin: 24px 0px 10px;
}
p a, span a, .button, button, input[type="submit"], .secondary-nav li a, .pagination a.button, .item-pagination a, #featured .featured-meta h3, .advanced-search, .value a span, .sub-menu, .results li a, .results > ul + a {
    background-color: transparent !important;
}
.reference-pagination li.pagination-range a, .reference-heading a {
    color: #000 !important;
}
#A {
    margin-top: 5px;
}
#reference-skiplinks-bottom {
    padding: 30px 0px;
}
.results > ul + a {
    border: 2px solid #000;
    font-family: "Assistant",sans-serif;
    font-size: 20px;
    line-height: 32px;
    font-weight:600;
}
.index.search .results ul li {
margin-right:10px;
}
.results > ul > li {
    width: 31%;
}
a:link{
color: #db2020;
}
a:hover{
color:#f00;
}
a:visited{
color: #d80a0a;
}
.resource-list .resource img {
    max-height: 340px;
}
.resource-list .resource {
    font-size: 16px;
    line-height:20px;
    margin-bottom:24px;
}
.index.search .results ul {
    margin-bottom: 20px;
}
.reference-record a:link{
  color: #f00;
}
h2 {
    font-size: 40px;
    line-height: 40px;

}
h3 {
    font-size: 32px;
    line-height: 36px;
}
.description {
    font-size: 16px;
}
.resource-list h4 {
    width: 100%;
    margin: 10px 0px 5px 0px;
    font-size: 18px;
    line-height:22px;
}
.reference-record  a:hover {
  color: #c90d00;
}
.resource-list .resource {
    width: calc(20% - 24px);
}
header nav .menu-toggle,  .search-toggle {
    font-size: 28px;
    line-height: 30px;
}
#top-nav > ul > li {
    padding-bottom: 18px;
}
#top-nav > ul > li > a  {
font-size:24px;
color:#fff !important;
line-height:26px;
}
.navigation a{
color:#fff !important;
}
#top-nav > ul > li > a:hover {
color: rgba(255,255,255,0.7) !important;
}
.resource-list .resource:nth-child(4n) {
    margin-right: 24px;
}
input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none;
}
header > h1 > a:link {
    color: #fff;
}

@media (max-width: 1279px) {
.resource-list .resource {
    width: calc(25% - 24px);
}
}


@media (max-width: 1023px) {
.resource-list .resource {
    width: calc(33% - 24px);
}
.footer-text {
margin-left:auto;
font-size: 18px;
margin-right:auto;
align-self: center;
margin-top:25px;
width: 100%;
text-align: center;
}
.footer-image {
max-width: 300px;
margin-left:auto;
margin-right:auto;
}
}


@media (max-width: 719px) {
.footer-text {
margin-left:auto;
margin-right:auto;
align-self: center;
margin-top:20px;
width: 100%;
text-align: center;
}
.footer-image {
max-width: 300px;
margin-left:auto;
margin-right:auto;
}
.property h4 {
margin-bottom:10px;
}
.resource-list .resource {
    width: calc(50% - 24px);
}
.contenuti-header{
width:100%;
}
.resource-list .resource img {
    max-height: 200px;
}
.carousel-block{
display: none;
}
footer {
    padding: 34px 0px 24px;
    font-size:16px;
    text-align:center;
}
html {
    font-size: 18px;
    line-height: 28px;
}
}
@media (max-width: 640px) {
.browse-controls {
  display:block;
}
}

@media (max-width: 499px) {
.site-title {
    font-size: 32px;
    line-height:42px;
}
.browse-controls {
    width: 100%;
text-align:center;
display:block;
}
.resource-list .resource {
    width: calc(100% - 24px);
}
header nav .menu-toggle,  .search-toggle {
    font-size: 26px;
    line-height: 28px;
}
h1 {
    font-size: 29px;
    line-height: 36px;
    padding-right:10px !important;
}
.site-title img {
    max-height: 70px;
    max-width: 185px;
}
}
@media (max-width: 389px) {
.site-title {
    font-size: 28px;
    line-height:42px;
}
#search-form input[type="text"] {
    width: 100%;
}
}
@media screen {
  .resource-list .resource-name {
    font-family: "Anek Devanagari",sans-serif;
    font-size: 16px;
  }
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Anek Devanagari, sans-serif;
  font-weight: 500;
}
@media screen {
  .resource-list .resource img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 12px; /* Aggiunto auto sui lati per il centramento */
  }
}
@media screen {
  .property dt, .property h4 {
    font-size: 18px;
    width: 25%;
    margin: 0 24px 0 0;
    text-align: right;
    word-break: break-word;
    font-weight: bold;
  }
}
/* Altezza comoda del viewer */
:root { --octopusviewer-height: 82vh; } /* prova 75–90vh */

/* Dai un’altezza esplicita al root del viewer */
.media-embed .octopusviewer-viewer,
.resource-media .octopusviewer-viewer,
.octopusviewer-viewer {
  height: var(--octopusviewer-height) !important;
  min-height: 560px;              /* opzionale, per schermi bassi */
  max-height: calc(100vh - 100px);/* opzionale, evita sovrapposizioni con header */
}

/* Fai “riempire” tutto lo spazio ai figli */
.octopusviewer-body,
.octopusviewer-media-view,
.octopusviewer-media-view .media-render {
  height: 100% !important;
}

/* L'iframe è già 100%, teniamolo così */
.octopusviewer-media-view .media-render iframe {
  height: 100% !important;
  width: 100%;
}

/* (Opz.) sidebar un po’ più stretta */
.sidebar { flex-basis: 16%; }
.sidebar.collapsed { flex-basis: 24px; }

/* Mobile: un po’ meno alta */
@media (max-width: 720px) {
  :root { --octopusviewer-height: 70vh; }
}
