.swiper {
    width: 100%;
    height: 800px;
}

.hits {
    width: 100%;
    height: 600px;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
  }

section {
    /* scroll-snap-align: start; */
}

.pub_home section {
    scroll-margin-top: 1rem;
}

/* VARS */
:root {
    /* Colors */
    --yellow: #F5C305;
    --dark-gray: #282828;
    --mid-gray: #484848;
    --light-gray: #686868;
    --white: #ffffff;

    /* Fonts */
    --max-text-width: 900px;

    /* Cover */
    --max-cover-width: 300px;

}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Publication details */
.separator_line {
    max-width: var(--max-text-width);
    height: 1px;
    border-bottom: 1px solid #ddd;
    clear: both;
}

h1.pub_title {
    font-size: 2rem;
    line-height: 2.75rem;
    font-weight: 500;
    text-align: left;
    color: var(--dark-gray);
    margin: 2rem 0;
    max-width: var(--max-text-width);
}

h1.pub_title small {
    display: block;
    clear: both;
    color: var(--dark-gray)
}

h1.pub_big_title {
    font-size: 2.25rem;
    line-height: 3rem;
    font-weight: 500;
    text-align: left;
    color: var(--dark-gray);
    margin: 2rem 0;
    max-width: var(--max-text-width);
}

h1.pub_big_title small {
    display: block;
    clear: both;
    color: var(--dark-gray)
}

p.pub_auhtors {
    font-size: 1.125rem;
    font-weight: 500;
    text-align: left;
    max-width: var(--max-text-width);
}

p.pub_abstract,
p.pub_in_progress,
p.pub_last {
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 300;
    text-align: left;
    max-width: var(--max-text-width);
}

ul.in_progress {
    padding-left: 1rem ;
    border-left: 3px solid var(--yellow)
}

p.pub_info {
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 300;
    text-align: left;
    max-width: var(--max-text-width);
}

p.pub_tree {
    padding-top: 3rem;
    color: var(--light-gray);
    opacity: 0.2;
    animation: fade-in 0.5s ease-in-out 0.1s forwards;
}


p.pub_copyright,
p.pub_keywords,
p.pub_permalink,
p.pub_date,
p.pub_journal_info{
    font-size: 0.77rem;
    line-height: 1rem;
    font-weight: 300;
    text-align: left;
    max-width: var(--max-text-width);
}

a.back_toc {
    float:right;
}
#toc {
    scroll-margin-top: 2rem;
}

a.pub_download {
    display: block;
    background: var(--yellow);
    color: var(--dark-gray);
    font-size: 1.125rem;
    text-decoration: none;
    padding: 0.5em 1em;
    font-weight: 400;
    max-width: var(--max-cover-width);
    margin-top: 2rem;
    text-align: center;
}

a.pub_download:hover,
a.pub_download:active,
a.pub_download:focus {
    text-decoration: underline;
}
a.pub_download > i {
    font-size: inherit;
    position: relative;
    margin:0;
    margin-left: 0.5em; /* Aggiungi uno spazio tra l'icona e il testo */
    vertical-align: middle; /* Allinea l'icona verticalmente al centro */
}

a.pub_download.single_article {
    font-size: 0.85rem;
}

p.pub_share ul {
    font-size: 0.77rem;  
}

div.pub_toc{
    max-width: var(--max-text-width);
}
div.pub_toc > h4,
div.pub_indexed > h4 {
    font-size: 1.125rem;
    color: var(--mid-gray);
    font-weight: 500;
}
div.pub_toc > ol {
    font-size: 0.85rem;
    line-height: 1.5rem;
    font-weight: 300;
    padding-left: 1.5em;
    max-width: var(--max-cover-width);
}


#panel-share-content > div > ul,
#panel-stats-content > div > ul {
    padding: 0 0 0 0.77em;
    max-width: var(--max-cover-width);
}
#panel-share-content > div > ul > li,
#panel-stats-content > div > ul > li {
    font-size: 0.85rem; 
    border-bottom: 1px solid #eee;
}

/* OTHER ARTICLES */
#panel-other-articles-content > div > ul {
    padding: 0 0 0 0.77em;
    max-width: var(--max-text-width);
    animation: fade-in 0.5s ease-in-out forwards;
}
#panel-other-articles-content > div > ul > li,
#panel-other-articles-content > div > ul > li,
.last_publication ul li{
    font-size: 0.85rem; 
}

.other_article_title a{
    font-size: 1.125rem;
    line-height: 1.5rem;
    font-weight: 500;
    color: var(--dark-gray);
    margin: 0.5rem 0;
}
.other_article_title a:hover,
.other_article_title a:active,
.other_article_title a:focus{
    text-decoration: underline;
}



img.pub_cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: var( --max-cover-width);
}

img.pub_cover {
    filter: grayscale(100%);
    transition: filter 300ms ease-in-out;
}

img.pub_cover:hover {
    filter: grayscale(0%);
}

.cover_container {
    max-width: var(--max-cover-width);
    position: relative;
}

.pub_prev, .pub_next {
    position: absolute;
    color: #000;
    top: 50%;
    transform: translateY(-50%);
    transition: left 0.3s ease, right 0.3s ease;
}

.pub_prev {
    left: -2rem;
    text-shadow: 1px 0 0 #ddd;
    opacity: 0.5;
}

.pub_prev:hover {
    left: -3rem;
}

.pub_next {
    right: -2rem;
    text-shadow: -1px 0 0 #ddd;
    opacity: 0.5;
}

.pub_next:hover {
    right: -3rem;
}


a.menu_link,
a.menu_link:visited,
a.menu_link:focus,
a.tree_link,
a.author_link,
a.author_link:visited,
a.author_link:focus {
    color: var(--dark-gray);
    text-decoration: underline;
    font-weight: 500;
}

a.tree_link:active {
    color: var(--lighjt-gray);
}

a.note_link,
a.note_link:visited,
a.note_link:focus {
    text-decoration: none;
    text-transform: lowercase;
    color: var(--dark-gray);
}

a.note_link:hover {
    text-decoration: underline;
}

a.note_link.accent {
    font-weight: 500;
    text-transform: none;
}

a.toc_link,
a.toc_link:visited,
a.toc_link:focus {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 300;
}

a.toc_link:hover {
    text-decoration: underline;
}

/* Publication accordion */
.pub-accordion-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 500ms;
    transition: grid-template-rows 500ms, -ms-grid-rows 500ms;
}

.pub-accordion-content[aria-hidden=false] {
    grid-template-rows: 1fr;
}

.pub-accordion-content>div {
    overflow: hidden;
}


.pub-accordion {
    max-width: var(--max-text-width);
    cursor: pointer;
}

.pub-accordion-panel {
    padding: 0rem;
}

.pub-accordion h3 {
    font-size: 1.125rem;
    font-weight: 500;
    position: relative;
}

.pub-accordion h4 {
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    margin-bottom: 0.2em;
    border-bottom: 1px solid #ddd;
    max-width: var(--max-cover-width);
    color:var(--mid-gray);
}

.pub-accordion-trigger {
    background: transparent;
    border: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

.pub-accordion-trigger span {
    display: inline-block;
    transition: transform 0.5s ease-in-out;
}

.pub-accordion-trigger[aria-expanded="true"] span {
    transform: rotate(135deg);
}

button.pub-accordion-trigger:focus,
button.pub-accordion-trigger:active {
    background-color: transparent;
    /* Imposta il colore di sfondo a trasparente quando il button è attivo o ha il focus */
}


/* Custom Button */
.slide_link {
    transition: all 0.6s ease-in-out;
    transition-delay: 0.2s;
}

.slide_link:hover {
    outline: 0;
    color: var(--white);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    padding: 0 0.5em;
}

.slide_link:active {
    outline: 0;
    color: var(--white);
    text-decoration: none;
}

.slide-right {
    background: linear-gradient(to left, transparent 50%, var(--mid-gray) 50%);
    background-size: 200% 100%;
    background-position: right bottom;
}

.slide-right:hover,
.slide-right:active,
.slide-right:focus{
    background-position: left bottom;
    color: var(--white);
}

/* Article content from old website */
.pub_article {
    max-width: var(--max-text-width);
}

.pub_article h2 {
    font-size: 1.250rem;
    font-weight: 500;
    text-align: left;
    margin-bottom: 1rem;
    margin-top: 3.5rem;
}

.pub_article h3 {
    font-size: 1.125rem;
    font-weight: 500;
    text-align: left;
    margin-bottom: 1rem;
    margin-top: 3.5rem;
}
.pub_article p{
    font-size: 1rem;
    line-height: 1.375rem;
    font-weight: 300;
}
.pub_article section {
    scroll-margin-top: 2rem;
}

.pub_article .ftn {
    background: #eee;
    padding: 0 0.3em ;
    scroll-margin-top: 2rem;
}
.pub_article .ftn p {
    font-size: 0.85rem;
    margin:0;
}
.pub_article .ftn-container {
    padding:0;
}

.pub_article blockquote {
    border-left: 5px solid var(--light-gray);
    width: 90%;
    margin-right: auto;
    margin-left: auto;
}

.pub_article table {
    border:3px solid var(--light-gray);
    max-width: 90%;
    margin: 2rem auto;
}

.pub_article table caption{
    background-color: #eee;
}

.pub_article .sp-xref-ftn {
    display: inline-block;
    background-color: #eee; 
    padding: 8px 1px;
    color: var(--dark-gray);
}

.pub_article figure img {
    width:100%;
}

.pub_article figcaption p {
    font-size: 0.85rem;
    margin:0;
}

span.sp-label {
    font-weight: 500;
}

  
#back-to-toc {
    position: fixed;
    bottom: 50px; /* adjust this value to position the div above the footer */
    right: 50px; /* adjust this value to position the div horizontally */
    display: none;
    background: var(--dark-gray);
    z-index: 99;
    padding: 0.2rem 0.4rem;
    animation: fade-in 0.5s ease-in-out forwards;
}

#back-to-toc a,
#back-to-toc a:visited,
#back-to-toc a:focus,
#back-to-toc a:hover,
#back-to-toc a:active { 
    color: white;
}

p.no_space_around {
    margin: 0;
}

/* Issue covers */
ul.issue_covers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    grid-gap: 10px; /* adjust this value to change the spacing between the covers */
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  ul.issue_covers li {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  ul.issue_covers li img {
    max-width: 100%;
    height: auto;
  }


  .copy_button {
    border: none;
    background: none;
  }

  .copy_button i {
    font-size: 1rem;
    cursor: pointer;
    top: 2px;
    position: relative;
  }


.issue-link {
    position: relative;
    display: inline-block;
}

.issue-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-color: rgba(0, 0, 0, 0.8);
    transition: opacity 0.3s ease-in-out;
}

.issue-overlay-text {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.issue-title {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    color: #fff;
    font-size: 0.85rem;
    margin: 0;
}


.issue-link:hover .issue-overlay {
    opacity: 1;
}

.issue-link:hover .issue-overlay-text {
    opacity: 1;
}

  .download-button {
    background-image: linear-gradient(
        -225deg,
        #000 0%,
        #F5C305 15%,
        #fff 23%,
        #000 24%,
        #000 100%

      );
      background-size: auto auto;
      background-clip: border-box;
      background-size: 200% auto;
      background-clip: text;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: textclip 4s linear infinite;
      display: inline-block;
    }
    
    @keyframes textclip {
      to {
        background-position: -200% center;
        
      }
      
    }


    a.button_form_proposal {
        display: inline block;
        background: var(--yellow);
        color: var(--dark-gray);
        font-size: 0.85rem;
        text-decoration: none;
        padding: 0.5em 1em;
        font-weight: 400;
    }
    
    a.button_form_proposal:hover,
    a.button_form_proposal:active,
    a.button_form_proposal:focus {
        text-decoration: underline;
    }
    a.button_form_proposal > i {
        font-size: inherit;
        position: relative;
        margin:0;
        margin-left: 0.5em; /* Aggiungi uno spazio tra l'icona e il testo */
        vertical-align: middle; /* Allinea l'icona verticalmente al centro */
    }

table.metadata {
    width: 70%;
    margin-left: auto;
}
table.metadata tr {
    padding: 4px;
    border:0;   
    margin:0;   
}

table.metadata td,
table.metadata th {
    padding: 0 4px 0 0;
}
table.metadata td p {
    padding: 0;
}

table.metadata th {
    background-color: #eee; 
}

/* counter */
.counter {
    padding-top:1rem;
    padding-bottom:1rem;
}
.counter li {
    position: relative; 
    display: flex;
    align-items: flex-end; 
}

.counter li .label {
    width:3.5rem;
    position: absolute; 
    font-size: 0.65rem; 
    transform: rotate(-90deg); 
    transform-origin: bottom left; 
    left: 0; 
    z-index: 2; 
    text-align: center;
    margin-left:0.65rem;
    background-color: #777;
    color:white;

    display:none;
    
}

.counter li .number {
    position: relative; 
    height: 3.7rem; 
    left: 1.5rem; 
    z-index: 1; 
}


.counter li span {
    font-size: 3.5rem;
    font-weight: bold;
    line-height: 100%;
    color: #eee;
    text-shadow:    0 1px 0 #fff, 0 2px 0 #c9c9c9, 
                    0 3px 0 #bbb, 0 4px 0 #b9b9b9, 
                    0 5px 0 #aaa, 0 6px 1px rgba(0, 0, 0, 0.1), 
                    0 0 5px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.3), 
                    0 3px 5px rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.25), 
                    0 10px 10px rgba(0, 0, 0, 0.2), 0 20px 20px rgba(0, 0, 0, 0.15);
}

/* list container stat */
ul.articles_list {
    position: relative; /* Rende ul il contenitore di posizionamento per gli elementi posizionati in modo assoluto */
    padding-left: 86px !important; /* Sposta tutti gli li a destra di 80px */
}

.other_articles_stat {
    position: absolute; /* Posiziona article_stat_list in modo assoluto rispetto a ul */
    left: 0; /* Allinea article_stat_list a sinistra di ul */
    text-align: right;
    padding-right:4px;  
    padding-top:4px;
    width: 70px; /* Imposta la larghezza di article_stat_list a 80px */
    box-shadow:  #ddd 3px 0 0; /* Aggiungi un'ombra a article_stat_list */
    height:100%;
}

.other_articles_stat span {
    font-size: 0.8rem;
    display: block; /* Fa sì che gli span siano allineati uno sopra l'altro */
}

.other_articles_stat span i{
    vertical-align: middle;
    font-size: 1rem; /* Modifica questo valore per cambiare la dimensione dell'icona */
}

/* last publication div */
div.last_publication {
    display: grid;
    grid-template-columns: minmax(auto,220px) auto;
    grid-template-areas: 
        'cover content';
    grid-gap: 1.5rem;
    max-width: var(--max-text-width);
}
  
.last_publication img {
    grid-area: cover;
    width: 100%;

}

.last_publication ul {
    grid-area: content;
    margin: 0;
    padding: 0;
    justify-self: start; /* Allinea il contenuto a sinistra */
}

.last_publication a{
    color: var(--dark-gray);
}

.last_publication a:hover,
.last_publication a:active,
.last_publication a:focus{
    text-decoration: underline;
}

.last_publication .last_title {
    font-size: 1.25rem;
    line-height: 1.5rem;
    font-weight: 500;
    color: var(--dark-gray);
    margin: 0.5rem 0;
}

.last_publication .last_subtitle {
    font-size: 1.125rem;
    line-height: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--mid-gray);
}

.last_publication .last_summary {
    font-size: 0.85rem;
    line-height: 1.25rem;
    font-weight: 300;
    color: var(--dark-gray);
    padding-top:1rem;
    padding-right:1rem;
    display: -webkit-box;
    -webkit-line-clamp: 5; /* Numero di righe dopo il quale troncare il testo */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Media query for mobile devices */
@media (max-width: 600px) {
    div.last_publication {
        grid-template-columns: auto auto;
        grid-template-areas: 
            'content'
            'cover';
    }
    .last_publication img {
        width:0;
        display: none;
    }
}

/* Bottoni per covers/test list */
#all_issues_container > div > button {
    border: none;
    background-color: var(--dark-gray);
    color: black;
    margin-bottom: 0.5rem;
    margin-right: 0.2rem;
    padding:0.2rem 0.5rem;  
    cursor: pointer;
    font-size: 0.85rem;
    color:white !important;
}

.button-inactive {
    background-color: #ccc !important;
}
