@font-face {
    font-family: "Oswald";
    src: url("https://polentz.github.io/enricomalatesta/assets/fonts/oswald-variablefont_wght-webfont.woff2") format("woff2"),
        url("https://polentz.github.io/enricomalatesta/assets/fonts/oswald-variablefont_wght-webfont.woff") format("woff");
}

@-webkit-keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

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

    100% {
        opacity: 1;
    }
}

body {
    overflow: hidden;
    font-family: "Fira Sans", sans-serif;
    font-weight: 400;
    font-size: var(--text-font-size);
    line-height: 1.3;
    color: var(--txt-color);
}

em {
    font-style: italic;
}

strong {
    font-weight: 700;
}

sup {
    display: inline;
    vertical-align: super;
    font-size: smaller;
}

title-tag,
note-tag {
    display: inline;
}

h1,
title-tag {
    font-family: "Oswald";
    font-weight: 400;
    font-size: var(--title-font-size);
    text-transform: uppercase;
}

img,
video {
    width: 100%;
}

note-tag,
.light-font {
    font-family: "Fira Sans", sans-serif;
    font-weight: 200;
}

a,
.active,
.link {
    position: relative;
    display: inline;
    white-space: nowrap;
    cursor: pointer;
}

a::before,
.active::before,
.link::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    background: var(--txt-color);
    top: 95%;
    left: 0;
    pointer-events: none;
    -webkit-transform-origin: 100% 50%;
    -ms-transform-origin: 100% 50%;
    transform-origin: 100% 50%;
    -webkit-transform: scale3d(0, 1, 1);
    transform: scale3d(0, 1, 1);
    transition: transform 0.3s;
}

a:hover::before,
.active:hover::before,
.link:hover::before,
a.current::before,
.link.current::before {
    -webkit-transform-origin: 0% 50%;
    -ms-transform-origin: 0% 50%;
    transform-origin: 0% 50%;
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
}

a note-tag,
p a {
    color: var(--atag-color);
}

a note-tag:hover,
p a:hover {
    color: var(--txt-color);
}

a title-tag {
    color: var(--txt-color);
}

.draggable {
    cursor: move;
}

#footer {
    height: var(--footer-height);
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: var(--bg-color);
    z-index: 1;
}

#footer::after {
    content: "";
    height: 1px;
    width: calc(100% - 20px);
    position: absolute;
    top: -1px;
    left: 50%;
    -webkit-transform: translate(-50%, 0);
    -ms-transform: translate(-50%, 0);
    transform: translate(-50%, 0);
    background-color: var(--txt-color);
    pointer-events: none;
}

.footer-inner {
    height: 100%;
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 10px;
    font-family: "Oswald";
    font-weight: 400;
    font-size: var(--title-font-size);
    text-transform: uppercase;
}

.footer-inner a,
.footer-inner p {
    font-family: "Oswald";
    font-weight: 400;
    font-size: var(--title-font-size);
    text-transform: uppercase;
}

#container {
    width: 100%;
    height: var(--doc-height);
    position: relative;
    overflow: hidden;
}

.main {
    height: var(--main-height);
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding: 0 10px;
    overflow: hidden;
}

.main-content:has(> .list-block),
.gallery-block,
.main-block {
    -webkit-transition: all .5s ease;
    -o-transition: all .5s ease;
    transition: all .5s ease;
}

.main-content:has(> .list-block):hover,
.gallery-block:hover,
.main-block:hover {
    -webkit-transform: translateY(-10px);
    -ms-transform: translateY(-10px);
    transform: translateY(-10px);
}

.main-content {
    overflow-y: scroll;
    -webkit-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.main-content.span-6 {
    grid-column: span 3;
}

.main-content.span-3 {
    grid-column: span 1;
}

.gallery-block {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 10px;
}

.main-block:not(:first-of-type),
.list-block:not(:first-of-type) {
    padding-top: 10px;
}

.list-block:not(:first-of-type) .list-block-date {
    padding-top: 20px;
}

.main-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    -webkit-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.main-block:not(:first-of-type) {
    border-top: solid 1px var(--txt-color);
    margin-top: 120px;
}

.main-block.border {
    border: solid 1px var(--txt-color);
    -webkit-box-shadow: 0px 0px 3px 0 var(--txt-color);
    box-shadow: 0px 0px 3px 0 var(--txt-color);
    padding: 20px;
    margin: 0px 1px 10px 1px;
}

.main-content:has(> .main-block.border) {
    gap: 0px;
}

.main-block.selected {
    transform: translateY(-10px);
}

.main-block-image {
    gap: 12px;
}

.main-block-image.flex-column {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-flow: row;
}

.main-block-image.grid-2-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-flow: row;
}

.main-block-image.grid-3-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-auto-flow: row;
}

.main-block-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
}

.main-block-text h2 {
    font-family: "Oswald";
    font-size: var(--title-font-size);
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.main-block-audio {
    margin-top: 20px;
}

.audio-player {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: solid 1px var(--txt-color);
}

.audio-player hr {
    width: 100%;
    height: 1px;
    background: var(--txt-color);
    border: none;
}

.audio-title p {
    font-family: "Oswald";
    font-weight: 400;
    text-transform: uppercase;
    font-size: var(--title-font-size);
}

.audio-controls {
    width: 100%;
    display: grid;
    grid-template-columns: 30px [line2] auto [col4-start] 30px;
    justify-items: stretch;
    align-items: center;
    gap: 10px;
}

.audio-button {
    width: 30px;
    height: 30px;
}

.audio-button svg {
    stroke: var(--txt-color);
    stroke-width: 1px;
}

.audio-play {
    position: relative;
    cursor: pointer;
}

.play-icon.toggle-play {
    opacity: 0;
}

.pause-icon {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.pause-icon.toggle-play {
    opacity: 1;
}

.audio-time {
    min-width: 144px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.audio-time span {
    font-size: var(--caption-font-size);
    font-weight: 400;
    text-align: center;
    color: var(--txt-color);
    white-space: nowrap;
}

.seek-slider-container {
    position: relative;
    width: 100%;
    height: 4px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.seek-slider-container::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: var(--seek-before-width);
    height: 4px;
    background-color: var(--txt-color);
    pointer-events: none;
}

input.seek-slider {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    margin: 0;
    padding: 0;
    outline: none;
    border: none;
    background-color: lightgrey;
    cursor: pointer;
}

input.seek-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
}

input.seek-slider::-moz-range-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
}

input.seek-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: 0;
    width: 0;
}

input.seek-slider::-moz-range-thumb {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: 0;
    width: 0;
    border: none;
}

.audio-volume {
    position: relative;
    cursor: pointer;
}

.volume-icon.toggle-volume {
    opacity: 0;
}

.mute-icon {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.mute-icon.toggle-volume {
    opacity: 1;
}

.list-block:first-of-type {
    padding-top: 10px;
}

.list-block:last-of-type {
    padding-bottom: 10px;
}

.list-block-date {
    font-family: "Fira Sans", sans-serif;
    font-weight: 400;
    font-size: var(--text-font-size);
}

.list-block-title {
    font-family: "Oswald";
    font-weight: 400;
    text-transform: uppercase;
    font-size: var(--title-font-size);
}

.list-block-title.active {
    cursor: pointer;
}

.list-block-text {
    padding-top: 10px;
}

.mu::before,
.mu::after {
    content: none;
}

.mu {
    width: 40px;
}

.about {
    width: 60%;
    height: 80%;
    position: fixed;
    top: 5%;
    left: 20%;
    z-index: 998;
    background-color: var(--bg-color);
    overflow-y: hidden;
    opacity: 0;
    pointer-events: none;
    border: solid 1px var(--txt-color);
    -webkit-box-shadow: 0 0 15px 5px var(--bg-color);
    box-shadow: 0 0 15px 5px var(--bg-color);
    -webkit-transition: opacity 0.5s ease;
    -o-transition: opacity 0.5s ease;
    transition: opacity 0.5s ease;
}

.about.actual-page {
    z-index: 2;
}

.about-wrapper {
    height: 100%;
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    font-size: var(--text-font-size);
}

.about-content,
.about-image {
    width: 50%;
}

.about-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
}

.about-content-text p,
.info-content-text p {
    margin-bottom: 20px;
}

.about-content-caption {
    font-size: var(--caption-font-size);
}

.about-image img {
    height: 100%;
    object-fit: cover;
}

.about-close {
    font-family: "Oswald", sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    font-size: var(--title-font-size);
    color: var(--txt-color);
    cursor: pointer;
    padding: 10px;
    -webkit-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.about-close {
    position: absolute;
    top: 0;
    right: 0;
}

.about.open {
    opacity: 1;
    pointer-events: all;
}

#footer-mobile,
#menu-mobile {
    display: none;
}

.item {
    width: 45%;
    max-height: 80%;
    position: fixed;
    top: 5%;
    left: var(--random-left);
    background-color: var(--bg-color);
    overflow-y: scroll;
    opacity: 0;
    pointer-events: none;
    display: none;
    border: solid 1px var(--txt-color);
    -webkit-box-shadow: 0 0 15px 5px var(--bg-color);
    box-shadow: 0 0 15px 5px var(--bg-color);
    z-index: 3;
}

.item.open {
    opacity: 1;
    pointer-events: all;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.item-content {
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 30px;
    padding: 10px;
}

.item-content-title {
    font-family: "Oswald";
    font-size: var(--title-font-size);
    font-weight: 400;
    text-transform: uppercase;
}

.item-content-image {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 10px
}

.item-content-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-family: "Oswald", sans-serif;
    font-weight: 400;
    font-size: var(--title-font-size);
    text-transform: uppercase;
}

@media screen and (max-width: 800px) {
    body {
        overflow-y: scroll;
    }

    .draggable {
        cursor: default;
    }

    #container {
        overflow-y: scroll;
        width: 100%;
        height: auto;
        position: static;
    }

    .main {
        display: flex;
        flex-direction: column;
        height: auto;
        overflow-y: scroll;
        margin-bottom: var(--footer-height);
    }

    .main-content {
        width: 100%;
    }

    .main-content:has(> .list-block) {
        order: -1
    }

    #footer {
        display: none;
    }

    #footer-mobile {
        display: block;
        height: var(--footer-height);
        width: 100%;
        position: fixed;
        bottom: 0;
        left: 0;
        background-color: var(--bg-color);
        z-index: 999;
    }

    #footer-mobile::after {
        content: "";
        height: 1px;
        width: calc(100% - 20px);
        position: absolute;
        top: -1px;
        left: 50%;
        -webkit-transform: translate(-50%, 0);
        -ms-transform: translate(-50%, 0);
        transform: translate(-50%, 0);
        background-color: var(--txt-color);
        pointer-events: none;
    }

    .about.open {
        overflow-y: scroll;
    }

    #menu-mobile {
        display: block;
        height: auto;
        width: 100%;
        position: fixed;
        bottom: calc(var(--footer-height) + 1px);
        left: 0;
        background-color: var(--bg-color);
        z-index: 999;
        opacity: 0;
        pointer-events: none;
        -webkit-transition: all 0.5s ease;
        -o-transition: all 0.5s ease;
        transition: all 0.5s ease;
    }

    #menu-mobile::before {
        content: '';
        position: absolute;
        width: calc(100% - 20px);
        height: 1px;
        background: var(--txt-color);
        top: 0;
        left: 10px;
        pointer-events: none;
    }

    #menu-mobile.open {
        opacity: 1;
        pointer-events: all;
    }

    .menu-mobile-inner {
        height: 100%;
        width: 100%;
        font-family: "Oswald", sans-serif;
        font-weight: 400;
        font-size: var(--title-font-size);
        text-transform: uppercase;
        padding: 10px;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start;
        gap: 10px;
    }

    .about {
        width: 100%;
        height: calc(90vh - 1px);
        position: fixed;
        top: 0;
        left: 0;
        -webkit-transform: none;
        -ms-transform: none;
        transform: none;
        -webkit-box-shadow: none;
        box-shadow: none;
        border: none;
    }

    .about-wrapper {
        height: 80%;
        display: block;
        padding: 10px;
    }

    .about-content {
        padding: 50px 10px 10px 10px;
    }

    .about-content,
    .about-image {
        width: 100%;
    }

    .about-image img {
        display: block;
    }

    .about-close {
        position: fixed;
        right: 0;
    }

    .item {
        width: 85%;
        position: fixed;
        top: 10px;
        left: 50%;
        transform: translate(-50%, 0%);
    }

}