:root{
  /* Palette calda/museale */
  --adc-bg: #e4e3dd;         /* carta morbida */
  --adc-surface: #f1eee8;    /* blocchi */
  --adc-text: #1f1f1f;       /* grafite */
  --adc-muted: #2d2d2d;      /* testo secondario */
  --adc-accent: #920b0b;     /* rosso bicocca */
  --adc-accent-ink: #3c2a18; /* ombra/hover */
  --adc-border: #767676;
  --adc-light: #fff;

  /* Tipografia */
  --adc-serif: "Georgia", "Times New Roman", serif;
  --adc-sans:  "Albert Sans", sans-serif, Roboto, Arial, sans-serif;


  /* Raggi e ombre */
  --adc-radius: 2rem;
  /* --adc-shadow: 0 4px 16px rgba(0,0,0,.06); */
  --adc-shadow: none;


  --bs-btn-border-radius: var(--adc-radius);
  --bs-border-color: #767676;
}


.border-bottom {
	border-bottom: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
}

.btn {
  --bs-btn-padding-x: 2rem;
  --bs-btn-padding-y: 0.25rem;
}

.btn-outline-primary {
	--bs-btn-color: #2d2d2d;
	--bs-btn-border-color: #2d2d2d;
	--bs-btn-hover-color: #fff;
	--bs-btn-hover-bg: #2d2d2d;
	--bs-btn-hover-border-color: #2d2d2d;
	--bs-btn-focus-shadow-rgb: 13,110,253;
	--bs-btn-active-color: #fff;
	--bs-btn-active-bg: #2d2d2d;
	--bs-btn-active-border-color: #2d2d2d;
	--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
	--bs-btn-disabled-color: #2d2d2d;
	--bs-btn-disabled-bg: transparent;
	--bs-btn-disabled-border-color: #2d2d2d;
	--bs-gradient: none;
}


/* Base */
html, body{
  background: var(--adc-bg);
  color: var(--adc-text);
}

h1,h2,h3,.display-1,.display-2,.display-3,.display-4,.display-5,.display-6{
  font-family: var(--adc-sans);
  letter-spacing: .1px;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
	font-weight: 600;
}

body, p, dl, dt, dd, .card, .btn, .breadcrumb, .nav, .figure-caption{
  font-family: var(--adc-sans);
}

/* Navigation */

header nav > ul li:last-child {
   border: 1px solid #000;
   border-radius: 25px;
   padding: 0 20px;
   text-align: center;
 }

 .home header nav > ul li:last-child {
    border: 1px solid #fff;
  }


 header nav > ul li a {
    text-align: center;
  }
  header nav > ul > li > a {
	margin: inherit;
}

header {
	background-color: transparent;
}

/* img {

  max-width: none;
	height: auto;
} */

@media screen {
  header {
  	background-color: transparent;
  }
}

.display-6 {
	font-weight: 500;
}

/* Spaziature leggere e aria */
section + section{ margin-top: 2rem; }
.container{ max-width: 1280px; }
.row{width: 100%;}

/* Cards & blocchi */
.card{
   border-radius: 0;
   /* box-shadow: var(--adc-shadow);  */
 }
.bg-body-tertiary{ background-color: var(--adc-surface) !important; }

.rounded-3{ border-radius: var(--adc-radius) !important; }

/* Breadcrumb */
.breadcrumb{
  --bs-breadcrumb-divider: "›";
  color: var(--adc-muted);
}
.breadcrumb .breadcrumb-item + .breadcrumb-item::before{
  color: var(--adc-muted);
}
.breadcrumb a{ text-decoration: none; }
.breadcrumb a:hover{ text-decoration: underline; }

/* Figure */
.figure-caption{
  color: var(--adc-muted);
  font-size: .9rem;
}

/* Tipografia secondaria */
.text-body-secondary{
  color: var(--adc-muted) !important;
}

.btn{
  --bs-btn-border-radius:  var(--adc-radius);
}

/* Pulsanti (accento bronzo) */
.btn-primary{
  --bs-btn-bg: var(--adc-accent);
  --bs-btn-border-color: var(--adc-accent);
  --bs-btn-hover-bg: color-mix(in srgb, var(--adc-accent) 86%, black);
  --bs-btn-hover-border-color: color-mix(in srgb, var(--adc-accent) 86%, black);
  --bs-btn-active-bg: color-mix(in srgb, var(--adc-accent) 78%, black);
  --bs-btn-active-border-color: color-mix(in srgb, var(--adc-accent) 78%, black);
  --bs-btn-color: #fff;
}
.btn-outline-secondary{
  --bs-btn-color: var(--adc-text);
  --bs-btn-border-color: var(--adc-border);
  --bs-btn-hover-bg: var(--adc-surface);
  --bs-btn-hover-color: var(--adc-text);
  --bs-btn-hover-border-color: var(--adc-text);
}



/* Link */
main a{ color: var(--adc-accent); }
a:visited {
	color: inherit;
}
a:hover{ color: var(--adc-accent-ink); }
a.btn:link {
	color: var(--bs-btn-color);
	text-transform: uppercase;
	font-weight: 500;
	font-size: 0.9rem;
}

a.btn.btn-outline-dark:link:hover {
	color: var(--adc-light);
}
/* Divider */
hr{ border-color: var(--adc-border); opacity: 1; }

/* Cards correlati */
.card .card-img-top{ object-fit: cover; height: 200px; }
.card:hover{ transform: translateY(-2px); transition: transform .2s ease, box-shadow .2s ease; box-shadow: 0 6px 22px rgba(0,0,0,.08); }

/* Accessibilità minima */
:focus-visible{
  outline: 3px solid color-mix(in srgb, var(--adc-accent) 70%, white);
  outline-offset: 2px;
}



/*
 * Helper classes
 */

/* =====================
   Display helpers
   ===================== */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }

/* =====================
   Text alignment
   ===================== */
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-justify { text-align: justify !important; }

/* =====================
   Font weight & style
   ===================== */
.text-bold { font-weight: 700 !important; }
.text-normal { font-weight: 400 !important; }
.text-italic { font-style: italic !important; }
.text-uppercase { text-transform: uppercase !important; }
.text-lowercase { text-transform: lowercase !important; }
.text-capitalize { text-transform: capitalize !important; }
.text-small { font-size: 0.7rem !important; }

.lett-spac-01{ letter-spacing: .1rem; }

/* =====================
   Spacing helpers (margin & padding)
   ===================== */
/* Margin */
.m-0 { margin: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mx-1 { margin-left: 0.25rem !important; margin-right: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mx-2 { margin-left: 0.5rem !important; margin-right: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mx-3 { margin-left: 1rem !important; margin-right:1rem !important; }

/* Padding */
.p-0 { padding: 0 !important; }
.pt-1 { padding-top: 0.25rem !important; }
.pb-1 { padding-bottom: 0.25rem !important; }
.px-1 { padding-left: 0.25rem !important; padding-right: 0.25rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }

/* ===== FLEX HELPERS ===== */

/* Base */
.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

/* Direction */
.flex-row {
  flex-direction: row;
}

.flex-row-reverse {
  flex-direction: row-reverse;
}

.flex-col {
  flex-direction: column;
}

.flex-col-reverse {
  flex-direction: column-reverse;
}

/* Wrapping */
.flex-wrap {
  flex-wrap: wrap;
}

.flex-nowrap {
  flex-wrap: nowrap;
}

.flex-wrap-reverse {
  flex-wrap: wrap-reverse;
}

/* Justify content (asse principale) */
.justify-start {
  justify-content: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-end {
  justify-content: flex-end;
}

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

.justify-evenly {
  justify-content: space-evenly;
}

/* Align items (asse trasversale) */
.items-start {
  align-items: flex-start;
}

.items-center {
  align-items: center;
}

.items-end {
  align-items: flex-end;
}

.items-baseline {
  align-items: baseline;
}

.items-stretch {
  align-items: stretch;
}

/* Align content (per righe multiple) */
.content-start {
  align-content: flex-start;
}

.content-center {
  align-content: center;
}

.content-end {
  align-content: flex-end;
}

.content-between {
  align-content: space-between;
}

.content-around {
  align-content: space-around;
}

.content-stretch {
  align-content: stretch;
}

/* Align self (per singolo elemento) */
.self-auto {
  align-self: auto;
}

.self-start {
  align-self: flex-start;
}

.self-center {
  align-self: center;
}

.self-end {
  align-self: flex-end;
}

.self-stretch {
  align-self: stretch;
}

/* Gap helpers (spazi tra gli elementi) */
.gap-0 {
  gap: 0;
}

.gap-5 {
  gap: 5px;
}

.gap-10 {
  gap: 10px;
}

.gap-15 {
  gap: 15px;
}

.gap-20 {
  gap: 20px;
}

.gap-30 {
  gap: 30px;
}

/* Grow / shrink / basis */
.flex-1 {
  flex: 1 1 0%;
}

.flex-auto {
  flex: 1 1 auto;
}

.flex-initial {
  flex: 0 1 auto;
}

.flex-none {
  flex: none;
}

/* Order helpers */
.order-first {
  order: -9999;
}

.order-last {
  order: 9999;
}

.order-none {
  order: 0;
}

/* Centering shortcut */
.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Space between + align center (per card o toolbar) */
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.w-100 {
  width: 100%;
}

/* .flex-1 {
  flex: 1 1 0%;
}

.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }

.flex-col {
  display: flex;
  flex-direction: column;
} */


/* ===== BORDER HELPERS ===== */

/* Bordi base */
.border {
  border: 1px solid #ccc;
}

.border-2 {
  border: 2px solid #ccc;
}

.border-3 {
  border: 3px solid #ccc;
}

.border-0 {
  border: none;
}

/* Bordi colore */
.border-primary {
  border-color: #007bff;
}

.border-secondary {
  border-color: #6c757d;
}

.border-success {
  border-color: #28a745;
}

.border-danger {
  border-color: #dc3545;
}

.border-warning {
  border-color: #ffc107;
}

.border-info {
  border-color: #17a2b8;
}

/* Border radius */
.rounded {
  border-radius: 4px;
}

.rounded-sm {
  border-radius: 2px;
}

.rounded-md {
  border-radius: 8px;
}

.rounded-lg {
  border-radius: 12px;
}

.rounded-full {
  border-radius: 9999px;
}

/* Bordi singoli */
.border-top {
  border-top: 1px solid #767676 !important;;
}

.border-bottom {
  border-bottom: 1px solid #ccc;
}

.border-left {
  border-left: 1px solid #ccc;
}

.border-right {
  border-right: 1px solid #ccc;
}

/* Rimuovere bordi singoli */
.border-top-0 {
  border-top: 0;
}

.border-bottom-0 {
  border-bottom: 0;
}

.border-left-0 {
  border-left: 0;
}

.border-right-0 {
  border-right: 0;
}

/* Padding & margin helper per bordi */
.p-bd {
  padding: 10px;
  border: 1px solid #ccc;
}

.m-bd {
  margin: 10px;
  border: 1px solid #ccc;
}

/* General helper */
.relative {
  position: relative;
}

.overflow-hidden {
  overflow: hidden;
}

.overlay-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: rgba(0,0,0,0.5); /* sfondo semi-trasparente per leggibilità */
  color: #fff;
}

/* Altezza 50% viewport */
.h-50vh {
  height: 50vh; /* 50% dell'altezza dello schermo */
  position: relative;
}

/* Background cover */
.background-cover {
  position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-size: cover;
   background-position: center;
   background-repeat: no-repeat;
   z-index: 0;
}

/* =====================
   Text color helpers
   ===================== */
/* .text-primary { color: #0d6efd !important; }
.text-secondary { color: #6c757d !important; }
.text-success { color: #198754 !important; }
.text-danger { color: #dc3545 !important; }
.text-warning { color: #ffc107 !important; }
.text-info { color: #0dcaf0 !important; }
.text-light { color: #f8f9fa !important; }
.text-dark { color: #212529 !important; } */



/* sr-only utile per header visibile solo a screen reader */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* styling base slide */
.esemplari-slide {
	padding: 1rem;
	outline: none;
	background: #fff;
	margin-right: 1rem;
}
.esemplari-slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius:0;
}
.esemplari-caption {
  margin-top:6px;
  font-weight: 600;
}
.esemplari-placeholder { width:100%; height:100px; background:#eee; display:flex; align-items:center; justify-content:center; color:#666; }

/* stile ai bottoni slick (piccoli miglioramenti) */
.slick-prev, .slick-next {
  /* background: none;
  border: 1px solid #aaa;
  width:36px; height:36px;
  border-radius:50%;
  line-height:32px;
  font-size:20px; */
}
.slick-prev:focus, .slick-next:focus { box-shadow: 0 0 0 3px rgba(0,123,255,0.25); outline:none; }

/* rendi slide focusable con bordo visibile */
.esemplari-slide:focus-within { box-shadow: 0 0 0 3px rgba(0,123,255,0.15); border-radius:4px; }

  input[type="checkbox"] {
	  accent-color: #000;
  }

  main a:link {
  /*  text-decoration:underline;*/
    color:inherit;
  }
 main  a:visited {
    color:inherit;
  }
  main a:active,
  main a:hover {
    color:#920b0b
  }

h1, h2, h3, h4, h5, h6,   {
  font-family: "Albert Sans", sans-serif;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.02em;
  margin-bottom: 2rem;
  color: #000000;

}

.h3, h3 {
	font-size: 1.4rem;
}

body {
  font-family: "Albert Sans", sans-serif;
  font-weight: 400;
  /* background-color: #f7f7f7; */
  /* background-color: #ededed; */

}

h1 {
	font-size: 2.5rem;
	line-height: 1.3;
}

select {
	background-color: #fff;
	border-color: #000;
	border-width: 1px;
}

input, textarea, button, .button, .resource-list.preview + a, select {
  font-family: "Albert Sans", sans-serif;;
}

.input-group {
	width: inherit;
}

/* faceted-browse-page */

/*
.faceted-browse-page .facet legend {
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: 800;
}

.faceted-browse-page .resource-link {
	text-transform: uppercase;
	font-size: 0.9rem;
	letter-spacing: 1px;
}

.faceted-browse-page .item.resource .resource-content {
	display: flex;
	justify-content: space-between;
	gap: 2rem;
}

.faceted-browse-page ul.resource-list .resource .resource-content .media img {
	min-width: 200px;
}

.faceted-browse-page .resource-title {
	margin-top: 0;
	line-height: 1.15;
	font-size: 1.5rem;
}

.faceted-browse-page .resource .more-link {
	min-width: 15%;
	text-transform: uppercase;
	font-size: 0.9rem;
	font-weight: 600;
}
*/

ul.resource-list .resource:first-child {
	border-top: none;
	padding-top: 1rem;
}

ul.resource-list .resource {
	background: #fff;
	padding: 1rem;
  border-bottom: none;
}

 /*.resource-list.grid {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	justify-content: start;
	align-items: stretch;
	align-content: start;
	gap: 18px 18px;
	padding: initial;
	margin: initial;
}

.resource-list.grid .resource {
	display: flex;
	flex-flow: column wrap;
	flex: 1 1 300px;
	row-gap: 20px;
	align-items: flex-start;
	width: 0;
	margin: 0;
	padding: 0 0 12px;
}
*/
              /*
              .resource-list.grid {
                  column-count: 3;
                  column-gap: 18px;
              }


              .resource-list.grid .resource {
                  display: inline-block;
                  width: 100%;
                  margin: 0 0 18px;
              }


               .resource-list.grid .resource-thumbnail {
              	display: flex;
              	justify-content: center;
              }

               .resource-list.grid .resource-thumbnail img {
                 	width: 100%;
                 	height: auto;
                 	margin: 0;
                 	padding: 0;
                 	max-width: 100%;

              }
              */

            .grid  .item { width: 32%; }


.resource-title {
	line-height: 1.2;
	font-size: 1.2rem;
	letter-spacing: 0;
}

.faceted-browse-page .item.resource .resource-content {
	min-width: 100%;
}
/* end faceted-browse-page */


 .input:focus-visible {

      border-color: red !important;
}

.pdf-preview {
    width: 100%;
    max-width: 500px;
    min-height: 150px; /* spazio per vedere l’anteprima */
}

/* Home Slider */

.home-hero {
position: relative;
min-height: 55vh;
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
overflow: hidden;
}

.home-hero .bg-slider {
position: absolute;
inset: 0;              /* top:0; right:0; bottom:0; left:0; */
z-index: 1;
pointer-events: none;
}

.home-hero .bg-slide {
width: 100%;
height: 100%;
background-position: top;
background-size: cover;
background-repeat: no-repeat;
min-height: 55vh;
}

/* overlay sopra le slide ma sotto il contenuto */
/* .home-hero .overlay {
position: absolute;
inset: 0;
background: rgba(0,0,0,0.35);
z-index: 2;
pointer-events: none;
} */

/* contenuto (titolo, form) sopra tutto */
.home-hero .hero-title,
.home-hero .hero-subtitle,
.home-hero .search-form,
.home-hero .hero-search {
position: relative;
z-index: 3;
text-align: center;
color: var(--adc-bg);
}

/*form  cliccabile */
.home-hero .search-form,
.home-hero .hero-search {
pointer-events: auto;
width: 100%;
max-width: 900px;
}

/* slick controls (dots/arrows) sopra le slide ma non sopra il contenuto */
.home-hero .slick-dots { z-index: 2; bottom: 12px; }
.home-hero .slick-arrow { z-index: 2; }

/* maggiore altezza su desktop */
@media (min-width: 992px) {
.home-hero { min-height: 70vh; }
.home-hero .bg-slide { min-height: 70vh; }
}


.slick-next::before, .slick-prev::before {
	font-size: 30px !important;
	color: #000 !important;

}

/* Dossier */

.resource-list.grid.esemplari-collection .resource {
	/*display: inline-block;*/
	/*width: 100%;*/
	margin: 0 0 18px;
	background: #fff;
	padding: 2rem;
	/* border: 2px solid #000; */
}

.resource-list.grid.esemplari-collection .resource-thumbnail {
	margin: 0;
}

ul.resource-list .resource {
	margin-bottom: 20px !important;
  margin-top: 0  !important;
}

        /*
        .resource-list.grid.esemplari-collection {
        	column-count: 3;
        	column-gap: 3vw;
        }

        */
/* end Dossier */

/* Blocco esemplari */
.filtro-tipo {
   display:flex;
   flex-wrap:wrap;
   gap:.5rem;
   margin:0 0 1rem;
 }

.filtro-tipo button {
   border:1px solid #ccc;
   background:#fff;
   padding:.2rem .5rem;
   border-radius:999px;
   cursor:pointer;
   font-size: 0.8rem;
 }

 .filtro-tipo button.active {
 	font-weight: 600;
 }

.filtro-tipo button.active {
   border-color:#000;
 }

.esemplari-collection .item.resource.hidden {
  display:none !important;
}


/* Home */
.home main{
  margin-top: -60px;
}

.home header{
  z-index: 9;
}

.home header nav > ul > li > a {
	color: #fff !important;
}

#search-box .overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 1;
}
#search-box h1,
#search-box p,
#search-box form {
    position: relative;
    z-index: 2; /* sopra l’overlay */
}

.overlay-text h2,
.overlay-text h3 {
  margin: 0;
  font-size: 1.2rem;
}

.overlay-text .subtitle {
  font-size: 0.9rem;
  color: #eee;
  margin-top: 0.25rem;
}

header nav::before {
	border: 1px solid #000;
	border-radius: 2px;
	right: 30px;
	top: 0;
}


/* Larghezze e flex */
.w-50 { width: 50%; }
.w-30 { width: 30%; }
.flex-1 { flex: 1 1 0%; }

/* Bottone */
.button-link {
  /* text-decoration: none;
  background-color: #007bff;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background 0.2s; */
}
/* .button-link:hover,
.button-link:focus {
  background-color: #0056b3;
  outline: none;
} */

.overlay {
    background: rgba(0, 0, 0, 0.5); /* overlay semitrasparente */
}



.img-overlay-container img {
  transition: transform 0.5s ease;
}

.img-overlay-container:hover img {
  transform: scale(1.1); /* ingrandimento leggero */
}

.overlay-text-h {
  transition: transform 0.5s ease;
  /* transition: transform 0.5s ease, color 0.5s ease; */
}

.img-overlay-container:hover .overlay-text-h {
  transform: scale(1.3);
  /*color: #ffd700;  opzionale: cambia colore testo all'hover */
}

.overlay {
  background: rgba(0, 0, 0, 0.4); /* overlay semi-trasparente */
  transition: background 0.5s ease;
}

.img-overlay-container:hover .overlay {
  background: rgba(0, 0, 0, 0.6); /* scurisce leggermente all'hover */
}

/* Gallery zoom home https://codepen.io/iGadget/pen/jOEQKNN - https://freefrontend.com/css-gallery/page/4/*/
/* $time: 0.3s; */



.gallery-home {
display: grid;
grid-template-rows: repeat(5, 18vh);
grid-template-columns: repeat(2, 45vw);
transition: all $time ease(gravity);
padding: 0.25em;
cursor: zoom-in;
/* grid-gap: .25em;*/
}

@media (min-width: 40em) {
  .gallery-home {
    grid-template-rows: repeat(2, 20vh);
  }

}

@media (min-width: 10em) and (orientation: landscape) {

    .gallery-home {
    grid-template-columns: repeat(5, 18vw);
    grid-template-rows: repeat(2, 45vh);
  }
}

@media (min-width: 60em) {
  .gallery-home {
    grid-template-columns: repeat(10, 10vw);
    /* grid-template-columns: repeat(10, 8vw); */
    grid-template-rows: 25vh;
  }
}


.gallery-home img {
  max-width: none;
object-fit: cover;
width: 100%;
height: 100%;
left: 0;
top: 0;
transition: all 0.3s/2 ease(downhill);
position: relative;
box-shadow: 0 0 0 #0000;
opacity: 0.67;
filter: sepia(80%) hue-rotate(180deg);
}

.gallery-home img:hover{
    opacity: 1;
    filter: sepia(0%) hue-rotate(0deg);
}
.gallery-home figure:hover img {
  opacity: 1;
  filter: sepia(0%) hue-rotate(0deg);

}

/* .gallery-home figure:hover {  */
.gallery-home figure:hover img {
  opacity: 1;
  z-index: 1;
  box-shadow: 1em 1em 1em #0004;
  transition: all 0.3s ease(downhill);
  filter: sepia(0%) hue-rotate(0deg);
  border-radius: 0;
  width: 300%;
  height: 300%;
  left: -100%;
  top: -100%;
}

  @media (min-width: 40em) {
  .gallery-home figure:hover img {
    width: 250%;
    height: 500%;
    left: -75%;
    top: -200%;
    }
  }

  @media (min-width: 10em) and (orientation: landscape) {
    .gallery-home figure:hover img {
    width: 250%;
    height: 200%;
    }
  }

  @media (min-width: 40em) and (orientation: portrait) {
    .gallery-home figure:hover img {
      width: 300%;
      height: 300%;
      left: -100%;
      top: -100%;
    }
  }

  @media (min-width: 60em) {
    .gallery-home figure:hover img {
    width: 350%;
    height: 150%;
    left: -75%;
    top: -25%;
  }
  .gallery-home figure:hover img {
      left: 175%;
    }
  }

  @media (min-width: 60em) and (orientation: landscape) {

    .gallery-home figure:hover img {

    /* width: 300%; */
    width: auto;
    height: 300%;
    left: -75%;
    top: -100%;
    }
    /* .gallery-home figure:hover img {
      left: 100%;
    } */
  }





/* End home */

/* Taxonomy archive */
.gridjs-td {
	padding-left: 0;
	padding-top: 1rem;
	padding-bottom: 1rem;
}

.gridjs-thead {
  display: none;
}

.gridjs-tbody .gridjs-tr {
	border-bottom: 1px solid #000;
}

.gridjs-table {
	width: 100%;
}

/**************/

/* Schede contenuti */
.row-info {
	padding: 1.5rem 0;
	border-bottom: 1px solid #cdcdcd;
}

.row-info a:link {
 text-decoration:underline;
}



/* Archivio Tassonomie */

.gridjs-tbody {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}

.gridjs-tbody .gridjs-tr {
	border-bottom: none;
	background: #fff;
	flex: 1 0 21%;
}

.gridjs-td {
	padding: 1rem;
}

.resource-link img {
	width: 100%;
  height: auto;
	display: block;
	margin-bottom: 10px;
}
.taxonomy-linked-values-grid .resource-name {
	font-weight: 600;
	font-size: 1.1rem;
}

/* END Archivio Tassonomie */


/* Footer */

  footer {
	   max-width: inherit;
  }

  #footer-loghi {
    	background-color: #2a65af;
    	padding: 2rem;
   }

  #footer-loghi img{
    max-height: 90px;
    max-width: fit-content;
  }


/* Tablet */
/* @media (max-width: 1024px) {
    .resource-list.grid {
        column-count: 3;
    }
} */

/* Mobile grande */
@media (max-width: 768px) {
                /*.resource-list.grid {
                    column-count: 2;
                }*/

    .w-50 {
      width: 100%;
    }
    .overlay-text {
      bottom: 0.5rem;
      left: 0.5rem;
      padding: 0.25rem 0.5rem;
    }

      .grid .item { width: 48%; }
}

/* Mobile piccolo / smartphone */
@media (max-width: 480px) {
    .resource-list.grid {
        column-count: 1;
    }
    .grid .item { width: 98%; }

}


@media screen and (min-width: 800px) {
  header > * {
    padding: 0;
  }
}
