
/* === VARIABILI === */

:root {

    --fontSans: 'Noto Sans', sans-serif;
    --fontSerif: 'Noto Serif', serif;
    
  /* Tonalità colore principale */
  --primaryColor100: #e0f7f9;
  --primaryColor200: #b3e7eb;
  --primaryColor300: #4db7c2;
  --primaryColor400: #097987; /* Colore principale */
  --primaryColor500: #076671;
  --primaryColor600: #05515a;
  --primaryColor700: #043f47;
  --primaryColor800: #032f35;
  --primaryColor900: #021f22;

  --primaryColor600-20: #05515aDD; 


  /* Tonalità grigio */
  --colorGrey100: #f9fafb;
  --colorGrey200: #f3f4f6;
  --colorGrey300: #e5e7eb;
  --colorGrey400: #d1d5db;
  --colorGrey500: #9ca3af;
  --colorGrey600: #6b7280;
  --colorGrey700: #4b5563;
  --colorGrey800: #374151;
  --colorGrey900: #1f2937;
  
  
--primaryColor: var(--primaryColor400);
--primarydarkColor: var(--primaryColor600);

--lightGrey: var(--colorGrey200);
--lightmediumGrey: var(--colorGrey400);
--regularGrey: var(--colorGrey600);
--textColor: var(--colorGrey900);

--text-font-size: 1em;

  
}



html .css-wait {
    visibility: visible !important;
    
}


/* === RESET === */

*::before,
*::after {
    box-sizing:border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    margin:0;
    padding:0;
}



* {
    box-sizing:border-box;
    margin:0;
    padding:0;
}


img,
picture,
video,
canvas {
  max-width: 100%;
  display: block;
}

input,
button,
textarea,
select {
  font: inherit;
}



/* Leaflet fix: non ereditare max-width/height dalle immagini globali */
.leaflet-container img,
.leaflet-container .leaflet-pane img,
.leaflet-tile {
  max-width: none !important;
  max-height: none !important;
}





/* === ELEMENTI  === */

figure {
    margin: 0;
    width:100%;
}

figure img {
    width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}


ul,ol {
    margin-left:2em;
}


a {
    color: var(--primaryColor);
    font-weight: 600;
    text-decoration: none;
}

a:hover {
    color: var(--primaryColor600);
    text-decoration: underline;
}

button {
    font-size: .7em;
    padding: .2em 1.5em 0;
    line-height: 2.5em;
    border-radius: 1.25em;
    color: #FFF;
    text-align:center;
    text-transform: uppercase;
    background-color: var(--primaryColor);
    border: none;
    cursor:pointer;
}

button:hover {
    background-color: var(--primaryColor300);
}
            

label {
    font-size:.8em;
}

input,
input:hover,
input:focus,
input:active {
  border: 1px solid var(--primaryColor400);
  outline: none;
  box-shadow: none;
  background: #fff;
}

input[type=search],
input[type=text],
input[type=date] {
    padding: .3em .5em;
    width: 100%;
    font-family: var(--fontSans); 
    border:1px solid var(--primaryColor400);
    border-radius:5px;
    outline: none !important;
    box-shadow: none !important;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(0.5); /* Opzionale: per schiarire l'icona */
}



input[type=search],
input[type=text] {
    width:100%;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--primaryColor);
}

::placeholder {
  color: var(--colorGrey500);
  opacity: 1;
  font-size:.9em;
  font-weight:400;
}


.select-wrapper {
  position: relative;
  width: 100%;
  max-width: 300px; /* Adattalo alla tua sidebar */
}

.custom-select {
  appearance: none;       
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  padding: .3em .5em;
  font-family: var(--fontSans);
  font-size: 14px; 
  color: #333;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  line-height: 1.5;
}

/* Creiamo una freccina personalizzata con un pseudo-elemento */
.select-wrapper::after {
  content: "▼";
  font-size: 12px;
  color: #666;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none; 
}

/* Effetto Focus */
:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}


.custom-select:focus-visible, 
input:focus-visible {
  outline: none;
  box-shadow: 0 0 5px rgba(0,0,0,0.25);
}


.left {
    text-align:left;
}

.right {
    text-align:right;
}

.center {
    text-align:center;
}

h1 {
    font-size: 2.5em;
    letter-spacing: -.03em;
}

b {
    font-weight: 600;
}

strong {
    font-weight: 700;
}

.extrastrong {
    font-weight: 900;
}

.noempty:empty,
[data-noempty=""],
[data-noempty="0"] {
	display:none;
}

.nowrap {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sticky {
    position: sticky;
    top: 25px;
    align-self: flex-start;
}

.mt-5 {margin-top: 3rem !important}
.mt-4 {margin-top: 2rem !important}
.mt-3 {margin-top: 1rem !important}
.mb-5 {margin-bottom: 3rem !important}
.mb-4 {margin-bottom: 2rem !important}
.mb-3 {margin-bottom: 1rem !important}
.d-flex {display:flex}
.fw-300 {font-weight:300}
.fw-400 {font-weight:400}
.fw-500 {font-weight:500}
.fw-600 {font-weight:600}
.fw-700 {font-weight:700}
.fw-800 {font-weight:800}
.fw-900 {font-weight:900}

.cognome {
    text-transform: uppercase
}






html {
  /*font-size: calc(60% + 0.8vmin);*/
}


body {
    
    font-family: var(--fontSans);
    font-size: 1rem;
    line-height:150%;
    margin:0;
    color: var(--textColor);
    font-weight:300;
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
}

body.loading::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}

body.loading::after {
  content: "⏳"; /* oppure un'animazione con @keyframes */
  font-size: 3em;
  color: white;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
}


.container {
    width:100%;
    max-width: 1400px;
    margin: auto;
    padding: 0 50px;
}


/* === HEADER === */

header {
    /*position:fixed;*/
    height:100px;
    width:100%;
    display:flex;
    justify-content: space-between;
    background-color: var(--primaryColor);
    box-shadow: 5px 0px 15px rgba(0,0,0,.5);
    overflow: hidden;
    z-index:10000;
}

header .issn-registrazione {
    color: #FFF;
    text-align: right;
    padding: 25px;
    font-size: .7em;
    line-height: 1.4;
    font-weight: 400;
}

header .logo {
    height: 80px;
}







/* === NAV === */

nav {
    /*flex:1;*/
    position: relative;
    background-color: var(--primaryColor600);
    margin-bottom: 1px;
    height: 40px;
    text-align:right;
    padding:0 25px;
}

nav ul {
    list-style:none;
    margin: 0;
}

nav li {
    display:inline-block
}

nav a,
.open-menu {
    display:block;
    color:#FFF;
    font-size: 14px;
    padding: 0 10px;
    height: 40px;
    text-decoration: none;
    font-weight: 500;
    line-height:40px;
    text-align:center;
    text-transform:uppercase;
    transition: ALL .3s ease;
}

nav a:hover,
.open-menu:hover {
    background-color: var(--primaryColor400);
    text-decoration: none;
    color: #FFF !important;
}

.nav-home a {
    position:relative;
    width:50px;
}

.nav-home a::before {
    content: '';
    position:absolute;
    top:0;
    left:0;
    display: inline-block;
    width:50px;
    height:40px;
    background-image: url('/images/icon-home.png');
    background-position: center center;
    background-size:40%;
    background-repeat:no-repeat;
}

nav .menuvoci {
    display:none;
    position: absolute;
    width:100%;
    top: 100%;
    left: 50%;
    padding: 50px 100px;
    transform: translateX(-50%);
    background-color: var(--primaryColor700);
    z-index:100000;
}

nav .menuvoci .categories-list {
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 7px;
}
nav .menuvoci a {
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    padding: .5em;
    height:70px;
    background-color: var(--colorGrey100);
     background-color: var(--primaryColor400);
     color:#FFF;
     font-size: 14px;
     line-height: 16px;
     font-weight:600;
    border-radius:5px;
}

nav .menuvoci a:hover {
    background-color: var(--colorGrey200);
    background-color: var(--primaryColor300);
    text-decoration:none;
    transition: ALL .5s ease;
}
nav .menuvoci.active {
    display:block;
    cursor:pointer;
}

.open-menu {
    display:none;
    cursor:pointer;
    user-select: none;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
}

    .menuvoci-chiudi {
        text-align:right;
    }
    
    .menuvoci-chiudi button {
        background-color: #FFF;
        color: var(--primaryColor700);
        margin-bottom: 10px;
        font-weight:600;
    }
    

footer {
    margin-top: 100px;
    min-height: 300px;
    background-color: var(--primaryColor400);
    color:#FFF;
    padding: 25px 0 50px 0;
    color: #FFF;
}

footer a {
    color: #FFF !important;
}


/*=== GO TOP ===*/

#gotop {
    display: none;
    background-color: rgba(0, 0, 0, .3);
    color: #FFF;
    position: fixed;
    right: 50px;
    bottom: 100px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
}

#gotop::before {
    content: "";
    width: 20px;
    height: 20px;
    border-left: 5px solid white;
    border-bottom: 5px solid white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -35%) rotate(135deg);
    transition: background 1s ease;
}


.heading {
    background-color: var(--primaryColor600);
}
.wrapper-slider {
    margin-left: 110px;
    position: relative;
}
.slide {
    background-color: var(--primaryColor600);
    color: #FFF;
    display:flex;
}

.slide a {
    color:#FFF;
}

.slide-header {
    padding: 25px 25px 25px 135px;
    width: 600px;
    align-self: end;
}
.slide-image {
    flex: 1;
    background-position: center center;
    background-size: cover;
}


.articles-list,
.authors-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3em;
    align-items: start;   
    /***
    display:flex;
    flex-wrap: wrap;
    gap: 30px;
    ***/
    position: relative;
}

.break-grid {
    grid-column: 1 / -1;
}

#moreinsert {
    width: 100%;
    text-align:center;
    font-size: 1.5em;
}

.articles-list	article {
    text-align: left;
    /*flex: 0 1 calc((100% - 60px) / 3); */
}

.article-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    margin-bottom: 2em;
}

.article-image img {		
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background-color: var(--colorGrey200);
}

article .title {
    font-size: 1.2em;
    letter-spacing: -.008em;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: .3em;
}


article .article-meta {
    display:flex;
    flex-wrap: wrap;
    column-gap: 25px;
    justify-content: space-between;
}


article .date {
    flex:1;
    font-size: .8em;
    text-align:right;
    font-weight: 400;
    white-space: nowrap;
    /*margin-top: .3em;*/
}

article .summary {
    margin-top: .3em;
}

article  subtitle {
    margin-bottom: .5em;
}

article .autore {
    display:inline-block;
}

article .author {
    font-size: .9em;
}


/***
.autore + .autore::before {
    content: ", ";
    white-space: pre;
}
****/

.autore::after {
    content: ",";
    display: inline-block; /* Mantiene la virgola attaccata al testo */
    margin-right: 0.3em;   /* Crea lo spazio dopo la virgola */
}

/* Rimuoviamo la virgola solo dall'ultimo autore della serie */
.autore:last-of-type::after {
    content: "";
    margin-right: 0;
}

article .autore a {
    font-weight: 400;
}



article .article-image a.voce {
    display: block;
    position: absolute;
    left: -1em;
    bottom: -1em;
    font-size: .8em;
}

a.voce {
    display:inline-block;
    background: var(--primaryColor400);
    color: #FFF;
    padding: .2em 1em 0em 1em;
    line-height: 2em;
    border-radius:1.5em;
    box-shadow: 3px 3px 5px rgba(0,0,0,.2);
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width:60%;
    transition: all 1s ease-in;
}

a.voce:hover {
    background: var(--primaryColor600);
    text-decoration:none;
}

.slide-header a.voce {
    position: relative;
    top: -1em;
    left: -1em;
}

.slide-header .title {
    font-size: 2em;
    margin-bottom: .5em;
    margin-top: .5em;
}



/* contenitore .heading deve essere position:relative o avere stacking context utile */
.heading { position: relative; }

/* frecce */
.sl-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 5; background: rgba(0,0,0,.35); color:#fff;
  border: none; width: 44px; height: 44px; border-radius: 999px;line-height: 35px; font-size: 20px; padding: 0;
  display: grid; place-items: center; cursor: pointer;
}
.sl-prev { left: 12px; }
.sl-next { right: 12px; }
.sl-arrow:hover { background: rgba(0,0,0,.5); }

/* dots */
.sl-dots {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: -25px; display: flex; gap: 10px; z-index: 5;
}
.sl-dot {
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--colorGrey400); border: 0; cursor: pointer; padding: 0;
}
.sl-dot.is-active { background: var(--primaryColor400); box-shadow: 0 0 0 2px rgba(0,0,0,.2) inset; }












.wrapper-heading {
	position:relative;
	margin-bottom: 300px
}


.heading {
    position: relative;
    width: 100%;
    height: 500px;
    margin-bottom: 100px; 
}

.heading .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-attachment: scroll;
    background-position: center center;
    opacity: 0;
    overflow: hidden;
	will-change: transform, opacity;
    z-index: 1;
    transition: opacity 3s ease, transform 10s linear; /* Il fade rimane con le transizioni */
    transform: scale(1); /* Aggiunto per evitare scatti */
}

.heading .slide.active {
    opacity: 1;
    z-index: 3; /* L'immagine attiva è sopra */
    animation-duration: 10s; /* Durata predefinita */
    animation-fill-mode: backwards;
}

.heading .slide.previous {
    z-index: 2; /* L'immagine precedente è coperta */
    opacity: 0;
}




/*=== ARTICOLO ===*/

.header {
    margin-top: 50px;
    font-size: 1.2em;
    position: relative;
}

.header figure {
    margin-top: 50px;
}

.header .date {
    font-size: .9em;
    text-align: left;
    margin-top: 25px;
}

.header .visite {
    text-align: right;
    font-size: .9em;
}

div.voce {
    margin-bottom: 2em;
}

.header h1 {
    font-size: 2em;
    margin: .5em 0;
}

.author::before {
    content: 'di ';
}

.author a {
    font-weight:600;
}

.author:empty {
    display:none;	
}

.author:empty::before {
    content:'';	
}

.wrapper-text {
    display:flex;
    gap: 50px;
    margin-top: 50px;
}

.text {
    flex:1;
    font-family: var(--fontSerif);
    font-weight: 300;
    text-align:justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;		
    font-size: var(--text-font-size);
    line-height: 170%;
    transition: ALL .3s ease;
}

.text p {
    text-indent: 2em;
}

p:has(a[name=]) {
 
}

.text h2 {
    font-family: var(--fontSans);
    font-size: 1.7em;
    border-bottom: 1px solid var(--colorGrey500);
    margin: 1.5em 0 .5em;
    letter-spacing: -.008em; 
}

.text h3 {
    font-family: var(--fontSans);
    font-size: 1.4em;
    margin: 1.5em 0 .5em;
    letter-spacing: -.008em;     
}

.text .sommario {
    font-family: var(--fontSans);
    border: 1px solid var(--colorGrey500);
    padding: 25px;
    margin-bottom: 100px;
}

.text .sommario-titolo {
    font-weight:700;
    text-transform: uppercase;
}

.text .sommario a {
    color: var(--textColor);
    font-weight:400;
}

.text .sommario a span {
    font-weight: 800;
    color: var(--primaryColor400);
}

.text .sommario a:hover,
.text .sommario a span:hover {
    color: var(--primaryColor400) !important;
}

aside {
    font-family: var(--fontSans);
    width: 400px;
    font-size: .9em;
    padding: 50px;
    background-color: var(--colorGrey200);
}




.section-list {
	display:flex;
    gap:0 50px;
}


.wrapper-list {
    flex:1;
    position:relative;
    min-height: 80vh;
}


.articles-list article {
    text-align: left;
    transition: all .5s ease;
}


.list-tools {
    display: flex;
    width:100%;
    justify-content:space-between;
}

.list-tools .change-view {
    display: flex;
    justify-content:end;
    gap:7px;
}

[data-view='table'] .change-view button.gridview,
[data-view='grid'] .change-view button.tableview {
    background-color: var(--colorGrey300);
    color: var(--colorGrey600);
    transition: all .3s ease;
}

.change-view button {
    display: flex;
    gap:7px;
    border-radius: 5px;
    padding: 5px;
    width: auto;
    height: 30px;
    font-weight:600;
    font-size: 10px;
    line-height:105px;
    align-items:center;
}

.change-view button img {
    filter: invert(1) grayscale(1) brightness(2);
    width: 20px;
}

.change-view button:hover {
    background-color: var(--primaryColor600) !important;
    color:#FFF !important;
}

#filtersColumn {
    display:none;
    opacity: 0;
    /*position: absolute;*/
    /*top: 0;*/
    /*left:100%;*/
    width: 250px;
    background-color: var(--colorGrey300);
	will-change: transform, opacity;
    transition: opacity .5s ease, transform 1s linear; /* Il fade rimane con le transizioni */
    transform: scale(1); /* Aggiunto per evitare scatti */
    z-index: 1000;
}

#filtersColumn .column-header {
    display:flex;
    gap: 16px;
    background-color: var(--colorGrey500);
    line-height: 60px;
    font-size: 1.2em;
    color: #FFF;
    height: 60px;
    font-weight: 700;
    text-align:center;
    overflow: hidden;
;
}

#filtersColumn .column-content {
    padding: 25px;
}

#filtersColumn .close-column {
    background-color: var(--colorGrey600);
    color:#FFF;
    font-size: 25px;
    width:60px;
    cursor:pointer;
}

#filtersColumn input {
    border-color: var(--colorGrey500);
    margin-bottom: 5px;
    font-size: .9em;
}

.wrapper-list.withFilters #filtersColumn,
#filtersColumn.active {
    display: block;
    opacity: 1;
    /*left: 0;*/
    /*bottom: 0;*/
}

.wrapper-list.withFilters .results-list {
    /*margin-left:300px*/
}

.wrapper-list.withFilters .openfilters {
    display:none;
}


.suggestions {
  margin: 0;
  padding: 0;
	font-size: .8em;
	line-height: 1.4em;
  list-style: none;
  border: 1px solid 1px solid var(--colorGrey500);
  overflow-y: auto;
  max-height:200px;
  position: absolute;
  background: #fff;
  z-index: 999;
  width: calc(100% - 50px);
}

.suggestions:empty {
	display:none;
}
.suggestions li {
  padding: .4em .6em;
  border-bottom: 1px solid var(--colorGrey400);
  cursor: pointer;
}
.suggestions li:hover {
  /*background: var(--colorGrey200);*/
  background: var(--primaryColor400);
  color:#FFF;
  transition: ALL .2s ease;
}


/* Ricerca avanzata */

.toggle-advanced {
    display: flex;
    align-items: center;
    justify-content: end;
    background: none;
    border: none;
    color: var(--colorGrey700);
    cursor: pointer;
    font-weight: bold;
    font-size: 0.7em;
    padding: 5px 0 0 0;
}

.toggle-advanced::after {
   content: "▼";
    display: inline-block;
    margin-left: 6px;
    color: var(--primaryColor700);
    font-size: 1em;
    transition: transform 0.3s ease; /* Animazione fluida */
}

.toggle-advanced.active::after {
    transform: rotate(180deg);
}

.toggle-advanced::before {
    content: "Mostra più filtri";
}

.toggle-advanced.active::before {
    content: "Mostra meno filtri";
}

.openable {
    display:none;
}

.openable.active {
    display:block;
}






/*== CORRELATI ==*/

.correlati .articles-list article {
    flex: 1 1 100%;
}


.correlati .articles-list a.voce {
    display:none;
}

.correlati .articles-list .article-image {
    margin-bottom: 1em;
}

.correlati-autore .articles-list article {
    font-size: .8em;
}

#text .articles-list article {
    flex: 0 1 calc((100% - 30px) / 2); 
}

.articoli-autore .articles-list article .author,
.correlati-autore .articles-list article .author {
    display:none;
}

.titololista {
    width: 100%;
    font-family: 'Noto Sans',sans-serif;
    font-size: 1.5em;
    border-bottom: 1px solid var(--textColor);
    font-weight: 400;
    margin-bottom: 2em;
}


.wrapper-list[data-view='table'] .articles-list {
    display:block;
    gap:0;
    transition: all .2s ease;
}


.wrapper-list[data-view='grid'] .article-image a.voce,
.wrapper-list[data-view='table'] .article-header a.voce {
    display:inline-block;
}
.wrapper-list[data-view='grid'] .article-header a.voce,
.wrapper-list[data-view='table'] .article-image a.voce {
    display:none;
}

.wrapper-list[data-view='table'] .articles-list article {
    /*flex: 1 1 100%;*/
    display:flex;
    gap:20px;
    padding:20px;
    border-top: 1px solid var(--colorGrey400);
    transition: all .5s ease-in;
}

.wrapper-list[data-view='table'] .articles-list article:first-of-type {
    margin-top: 20px;
}

.wrapper-list[data-view='table'] .articles-list  article .article-image {
    min-width: 200px;
    max-width: 200px;
    margin-bottom: 0;
}

.wrapper-list[data-view='table'] .articles-list  article a.voce {
    margin-bottom: 1em;
    font-size: .7em;
}

.wrapper-list[data-view='table'] .articles-list .article-meta {
    display:block;
    text-align:left !important;
}

.wrapper-list[data-view='table'] .articles-list .date {
    text-align:left;
    margin-top: .5em
}

.wrapper-list .results {
    text-align:center;
    margin: 50px auto;
}

.wrapper-list .results.no-found {
    text-align:center;
    padding: 50px;
    max-width: 300px;
    border: 1px solid var(--colorGrey400);
    background-color: var(--colorGrey200);
}







/* === CARDS === */


.authors-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1em;
    align-items: start;   
    position: relative;
}

[data-view="table"] .authors-list {
    display:block;
}





.card {
    hyphens: none;
    -webkit-hyphens: none;
    -moz-hyphens: none;
}
    
.cards-list {
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    position: relative;
}


.cards-list	.card {
    font-family: var(--fontSans);
    border:none;
    background-color: transparent; 
}

.cards-list .full-row {
  grid-column: 1 / -1;   /* prende tutta la larghezza */
}

.card-image {
    border:none;
    aspect-ratio: 1 / 1;
    position: relative;
    background-color: var(--colorGrey200);
}

.card-image img {		
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    background-color: var(--colorGrey200);
}

.card-header {
    font-size: 1em;
    line-height: 1.4em;
    border:none;
    background-color: var(--primaryColor400);
    color:#FFF;
    text-align:left;
}

a.card-header:hover {
    color:#FFF;
    background-color: var(--primaryColor600);
    text-decoration: none;
    transition: ALL .3s ease;
}

.card-footer {
    border:none;
}

.card > *:empty {
    display:none;
}










/*=== STRUMENTI del TESTO ===*/

.text-tools {
    display:flex;
    gap: 50px;
    margin-bottom: 25px;
}

.tool-searchtext {
    flex:1;
    font-size: .9em;
}

.tool-searchtext input {
    width: 150px;
    height: 30px;
    font-size: .9em;
    margin-right: .5em;
}

.tool-searchtext #submit-searchtext {
    visibility: hidden;
    transition: ALL .3s ease;
}

.tool-searchtext #submit-searchtext.active {
    visibility: visible;
}

.tool-searchtext #message-searchtext {
    font-size: .7em;
    font-weight: 700;
    height: 20px;
    transition: ALL .3s ease;
}

.tool-sizetext {
    text-align:right;
}


.btn-changesize {
    font-size: 16px;
    line-height: 30px;
    font-weight: 670;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.btn-limit {
    opacity: .3;
    pointer-events: none; 
    -webkit-user-select: none; 
    -ms-user-select: none; 
    user-select: none; 
}

/* == evidenziazioni == */
.hlsearch { background: #fff5a6; border-radius: 2px; padding: 0 .08em; }
.hl-current { background: #ffd7a3; box-shadow: 0 0 0 2px rgba(255,175,89,.35) inset; }


/*== popup ricerca ==*/

#searchPopup {
  position: fixed;
  z-index: 9999;
  left: 50%;
  top: 10%;
  transform: translateX(-50%);
  background: var(--primaryColor600);
  color: #FFF;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  font: 14px/1.3;
  font-weight: 400;
}
#searchPopup .search-term { font-weight: 700; }
#searchPopup button:disabled { display:none; }

#searchPopup .popup-title {
	background: var(--primaryColor700);
	padding: 10px 0 10px 25px;
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;
}

#searchPopup .popup-title button {
	float:right;
	display:inline;
	background: transparent;
}


#searchPopup .popup-content {
	padding: 10px 25px;
}

#searchPopup table {
	caption-side: bottom;
	border-collapse: separate;
	border-spacing: 10px;
	border-color: transparent;
}

#searchPopup .popup-footer {
	padding: 10px 25px;
	border-top: 1px solid #FFF;
	text-align:center;
}


/*=== NOTE ===*/

#text .nota,
#text .note p {
	font-size: .9em;
}

#text .nota:first-of-type {
	margin-top: 100px;
}


#text .refnota::before {
  content: "\00A0";          /* 1 NBSP */
  /* opzionale: evita che si selezioni/clicki */
  user-select: none;
  pointer-events: none;
  text-decoration: none;
}





/*=== PAGE ===*/

.pagina .header {
    background: var(--colorGrey200);
    margin:0 0 75px 0;
    padding: 50px 0
}




/*=== PAGE MENU ===*/

	.page-menu {
		background-color:#FFF;
        width: 250px;
        padding:0;
	}
	.page-menu ul {
		list-style: none;
        padding:0;
        margin: 0;
	}
	.page-menu ul li {	
		display:block;
	}
	.page-menu ul li a {	
		display:block;
		background-color: var(--primaryColor400);
		color:#FFF;
		padding: .5em 1em;
		margin-bottom: 1px;
		transition: ALL .3s ease;
	}
	.page-menu ul li a:hover {	
		background-color: var(--primaryColor600);
		text-decoration:none;
	}
    
    
    

/* === ANIMAZIONE ===*/


@keyframes fromLeftSlow {
    0% {
        transform: scale(1.5) translate(50px,100px);	
    }
    100% {
        transform: scale(1);
    }
}

@keyframes zoomInSlow {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

/* Zoom veloce verso l'interno */
@keyframes zoomInFast {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.3);
    }
}

/* Zoom lento verso l'esterno */
@keyframes zoomOutSlow {
    0% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Zoom veloce verso l'esterno */
@keyframes zoomOutFast {
    0% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}


@keyframes fromUp {
    0% {
        background-position: 0 60%; 
        transform: scale(1.2); 
    }
    90% {
        background-position: 0 50%; 
        transform: scale(1.2); 
    }
}

@keyframes fromDown {
    0% {
        background-position: 0 50%; /* Inizio da sinistra */
        transform: scale(1.2); /* Ingrandisce il background */
    }
    70% {
        background-position: 0 60%; /* Scorre a destra del 10% */
        transform: scale(1.2); /* Mantiene l'ingrandimento */
    }
    100% {
        background-position: 0 65%; /* Scorre a destra del 10% */
        transform: scale(1.2); /* Mantiene l'ingrandimento */
    }
}



    .avviso {
        display:none;
        position: fixed;
        padding: 25px;
        top: 0;
        left: 0;
        right:0;
        bottom:0;
        background-color: #C00;
        color: #FFF;
        font-size: 1.5em;
        z-index:1000000;
        text-align:center;
        padding-top: 200px;
        font-weight: 700;
        line-height: 150%
    }


@media (max-width:1200px) {
    
    .slide-header{
        width: 500px;
    }
    
    .container-nav {
        padding: 0 !important;
    }
    
    .menu li a {
        padding: .0 .5em;
    }

    .if_desktop {
        display:none;
    }
    
}



@media (max-width:992px) {
    
    header .issn-registrazione {
        display:none;
    }
    
    .open-menu {
        display:inline-block;
    }
    
    .menu {
        display:none;
        position: absolute;
        top: 100%;
        right: 0;
        width: auto;
        min-width: 50%;
        padding:0;
        background-color: var(--primaryColor600);
        max-width: 300px;
        z-index: 100;
    }
    
    .menu.active {
        display:block;
    }
    
    .menu li {
        display: block;
    }
    
    .menu li a {
        text-align: left;
        padding: 0 1em 0 2em;
        border-top: 1px solid var(--primaryColor500);
    }

    nav .menuvoci {
        padding: 50px;
    }
    
    .nav-home a {
        width:100%;
    }

    .nav-home a::before {
       left:1em;
    }

    .sl-arrow {
        top: 30%;
    }
    
    .heading {
        /*min-height:auto;*/
        height: 80vh;
    }
    
    .heading .slide {
        /*position: static;*/
        /*display:block;*/
        height: 80vh;
        flex-wrap: no-wrap;
        flex-direction:column;
    }

    .slide-header {
        font-size: .9em;
        flex-basis:100%;
        flex: 0 0 auto;
        width: 100%;
        padding:50px 25px;
        order: 2;
    }
    
    .slide-header .summary {
        display:none
    }
    
    .slide-image {
        flex-basis:100%;
        width:100%;
        /*height: 50vh;*/
        max-height:40vh;
        flex: 1 1 auto;
        order: 1;
    }
 
     .slide-header .title {
        margin-top: 0
    }
    
    .page-menu {
        display:none;
    }
    
    .text {
        width:100%
    }
}



@media (max-width:768px) {
    
    .container {
        padding: 0 25px;
    }
    
    input[type="date"] {
        min-height: 30px;
        width: 100%;
    }
    
    .slide-header {
        font-size: .8em;
        padding: 25px;
    }

    .slide-header .title {
        margin-top: 0
    }


	.slide-image {
		max-height: 50vh;
	}
    
}

@media (max-width:576px) {

    .container {
        padding: 0 15px;
    }   

    .wrapper-list[data-view='table'] .articles-list  article .article-image {
        display:none
    }
   
    #gotop {
        display:none !important;
    }

}