:root {
    --font-Lato: Lato;
    --font-Lato-bold: LatoBold;
    --txt_blue: #045656;
    --bg_ligtblue: #D1DFDF;
    --bg_ltBeige: #F5F2ED;
    --bg_ltGrey: #E7E7E7;
    --bg_darkBeige: #CCC6C2;
    --bg_darkBeige50op: #a39a9580;
    --border_brown: #5C5856;
}

body {
    padding: 0;
    margin: 0;
    background-color: #fff;
    font-family: var(--font-Lato), Arial, Helvetica, sans-serif;
}

body.noscroll {
    overflow: hidden;
}

/*Hidden to user, visible by screen readers*/

.sr-only {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    display: inline;
}


/*Temporary hidden for user and SR*/

.hide {
    display: none;
}

div {
    display: block;
}

section {
    margin: 0;
}

h1,
h2,
h3,
h4 {
    color: var(--txt_blue);
    margin: 0px;
    padding: 0px;
}

p {
    margin: 0px;
    padding: 0px;
}

a {
    color: var(--txt_blue);
    margin: 1% 2%;
    padding: 1%;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

a:hover {
    text-decoration: underline;
}

a:active,
a:focus,
button:active,
button:focus {
    /* font-weight: bold; */
    outline: var(--txt_blue);
    outline: 0.15em solid var(--txt_blue);
    border-radius: 10px;
}

p.align-right {
    text-align: right;
    margin: 0;
}

.clearboth {
    clear: both;
}

/** MENU **/
header,
footer {
    display: flex;
    margin: 0;
    background-color: var(--bg_ligtblue);
}

header {
    padding: 10px 2.5vw;
}

#mainNav {
    display: block;
    width: 100%;
    margin: 0%;
    text-align: left;
    height: 35px;
}

#mainNav button {
    background: none;
    border: 2px solid transparent;
    display: block;
    color: var(--txt_blue);
    font-size: 1em;
    text-align: left;
    /* padding: 1% 1.5%; */
    width: 78px;
    height: 35px;
    text-align: center;
}

#mainNav button:hover {
    text-decoration: underline;
}

#mainNav button:active,
#mainNav button:focus {
    font-weight: bold;
    outline: var(--txt_blue);
    outline: 0.2em solid var(--txt_blue);
    border-radius: 4px;
}

#mainNav a {
    display: inline;
    color: var(--txt_blue);
    font-size: 1em;
    vertical-align: middle;
}

#mainNav .fa.rotate {
    transform: rotate(180deg);
}

#toggleNavMenu {
    float: left;
}

#toggleNavMenu img {
    width: 32px;
    height: auto;
    padding-top: 3px;
}

#toggleLangMenu {
    float: right;
}

#mainNav ul {
    list-style: none;
    margin: 0px;
    padding: 0px;
    margin-bottom: 5%;
    margin-left: 2%;
}

#mainNav li {
    padding: 1%;
    margin: 1% 0%;
}

#mainNavContent,
#langNavContent {
    width: 80vw;
    position: absolute;
    padding-top: 1em;
    background-color: rgba(235, 235, 235, 0.9);
    z-index: 10;
    top: 55px;
    left: 0;
}

#langNavContent {
    left: auto;
    right: 0px;
    /* width: 20vw; */
}

#mainNavContent h3 {
    /* text-transform: capitalize; */
    margin-bottom: 0px;
    margin-left: 3.5vw;
}

#mainNavContent ul {
    margin-left: 4.5vw;
}

#mainNavContent h3::before {
    content: url('img/listbullet.png');
    margin-right: 5px;
}

#currentLanguage::after {
    content: url('img/triangle_down.png');
    margin-left: 5px;
}

/** MAPPA **/
#interactive-map {
    position: relative;
    /* width: 95%; */
    height: 100%;
    /* max-height: 600px !important; */
    margin: 0%;
    padding: 0%;
    background-image: url("img/mapbackground.svg");
    width: 100%;
    background-size: 100%;
}

#interactive-map.allowScroll {
    pointer-events: none;
}


/* #interactive-map.unity-desktop {

} */

#interactive-map.unity-mobile {
    width: 100%;
    height: 100%;
}

#unity-canvas {
    max-width: 100% !important;
    /* max-height: 600px !important; */
    max-height: calc(100vh - 55px - 12vh) !important;
    aspect-ratio: 203 / 150;
    width: auto;
    display: block;
    margin: auto;
    background: #ffffff00;
}

@supports not (aspect-ratio: 203 / 150) {
    #unity-canvas {
        max-height: 600px !important;
        /* max-height: none; */
        width: 800px;
        height: 600px;
        display: block;
    }
}


/* 
.unity-mobile #unity-canvas {
    width: 100%;
    height: 100%;
} */

/** Unity loading options **/

#unity-loading-bar {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

#loading-logo {
    width: 141px;
    height: 119px;
    background: url("unity-logo-light.png") no-repeat center;
}

#unity-progress-bar-empty {
    width: 141px;
    height: 18px;
    margin-top: 10px;
    background: url("progress-bar-empty-light.png") no-repeat center;
}

#unity-progress-bar-full {
    width: 0%;
    height: 18px;
    margin-top: 10px;
    background: url("progress-bar-full-light.png") no-repeat center;
}


/* 
#unity-build-title {
    float: right;
    margin-right: 10px;
    line-height: 38px;
    font-family: arial;
    font-size: 18px;
} */

#unity-fullscreen-button {
    float: right;
    width: 38px;
    height: 38px;
    background: url("fullscreen-button.png") no-repeat center;
}

#unity-warning {
    position: absolute;
    left: 50%;
    top: 5%;
    transform: translate(-50%);
    background: white;
    /* padding: 10px; */
    display: none;
}


/** CONTENT DESCRIPTION **/

#outputLine {
    text-align: center;
    background-color: var(--bg_ligtblue);
    /* padding: 0.75em 2em; */
    padding: 0.75em 4vw
}

#outputLine h3 {
    font-size: 1em;
    display: inline;
}

#outputLine p {
    margin: 0px;
    padding: 0px;
}

#contentSection {
    display: block;
    /* padding: 1% 2.5%;
    Not here because of image section that should be 100%w */
    background-color: var(--bg_ltBeige);
    background-image: url("img/contentsidebackground.svg");
    background-position: top right;
    background-repeat: repeat-y;
    background-size: 20vw;
}

#contentSection section {
    text-align: justify;
    margin: auto;
}

#contentSection h3 {
    /* width: 60%; */
    width: 75vw;
    margin: auto 4vw;
    padding-top: 1.5em;
}

#contentSection article {
    width: 75vw;
    margin: auto 4vw;
    display: block;
    padding-bottom: 2.5vw;
}

#contentSection article.hide {
    display: none;
}

article h5 {
    margin: 2em 0em 1em 0em;
    padding: 0;
    font-size: 1em;
    font-weight: bold;
}

#POI_Restauro article.shortText h5 {
    margin: 0.75em 0em 0em 0em;
}

article h6 {
    margin: 0.75em 0em 0em 0em;
    padding: 0;
    font-size: 1em;
    font-weight: bold;
}

article p {
    /* margin-block-start: 0.75em;
    margin-block-end: 0.75em; */
    margin: 0.75em 0%;
}

article h6+p {
    margin-top: 0em;
}

#POI_Restauro article.shortText p {
    margin-top: 0em;
}

article .linkToLongText,
article .linkToTop,
#overlay_fullscreen a {
    padding: 2vw;
    border-radius: 1.5em;
    border: 2px solid var(--txt_blue);
    font-weight: bold;
    background-color: var(--bg_ltGrey);
    display: inline-block;
    margin: 1em 0 0 0;
}

article .linkToLongText:hover,
article .linkToTop:hover,
#overlay_fullscreen a:hover,
article .linkToLongText:active,
article .linkToTop:active,
#overlay_fullscreen a:active,
article .linkToLongText:focus,
article .linkToTop:focus,
#overlay_fullscreen a:focus-within {
    background-color: var(--txt_blue);
    color: var(--bg_ltGrey);
    /* border-radius: 4px; */
    /* outline: 0.2em solid var(--bg_darkBeige); */
}

#contentSection article.image_section {
    width: 100%;
    background-color: var(--bg_darkBeige50op);
    margin: 0;
    padding-top: 10px;
    padding-bottom: 20px;
}

#contentSection article.image_section .img_container {
    width: 75vw;
    margin: auto 4vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.image_section .align-right {
    width: 75vw;
    margin: auto 4vw;
}

.image_section a.openImgLink {
    /* width: 30%; */
    margin: 1vw;
    /* padding: 1vw; */
    min-width: 90px;
}

.image_section img {
    /* margin: auto; */
    width: calc(100% - 0.4em);
    height: auto;
    border: 0.15em solid var(--border_brown);
    cursor: pointer;
    /* display: inline-block;*/
}

/* #credits article,
#credits h3 {
    width: 80%;
} */

/* IMAGE OVERLAY */
#overlay_fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg_darkBeige);
    overflow-y: scroll;
}

#overlay_fullscreen.hide {
    display: none;
}

#overlay_fullscreen figure {
    width: 100%;
    /* height: 100%; */
    /* display: flex; */
    flex-direction: column;
    margin: auto;
    margin-top: 50px;
}

#overlay_close {
    text-align: right;
    /* margin: 1em; */
    position: fixed;
    right: 2em;
    top: 1em;
    /* padding: 0.75vw; */
    /* width: 1.2em; */
}


#overlay_fullscreen a {
    font-size: 2em;
    padding: 0;
    margin: 0;
    width: 1.2em;
    text-align: center;
    /* 
    font-size:2em;
    text-align: right;
    color: var(--border_brown); */
    transition: all .3s ease, border 0s;
}

#overlay_fullscreen a:hover {
    text-decoration: none;
    /* right: 20px; */
    /* padding: 0; */
    /* border: 0.2em solid var(--border_brown); */
    /* padding: 0.75vw; */
    /* width: 1.2em; */
}

#overlay_img {
    width: auto;
    max-width: 80vw;
    opacity: 1;
    height: auto;
    max-height: calc(100vh - 8em);
    border: 0.2em solid var(--border_brown);
    display: block;
    margin: auto;
    transition: all 0.3s ease;
}

#overlay_img.loaded {
    /* opacity: 1; */
}

#overlay_fullscreen figcaption {
    width: 80vw;
    margin: 1em auto;
    text-align: center;
}


/* FOOTER */
footer {
    padding: 1.5em 4vw;
    gap: 4vw;
    /* display: flex; */
}

footer div {
    width: 47%;
    margin: 0 auto;
}

footer h3 {
    color: #000;
}



/* RESPONSIVE MEDIA QUERIES */

@media (min-width:320px) {
    /* smartphones, iPhone, portrait 480x320 phones */

}

@media (min-width:481px) {

    /* portrait e-readers (Nook/Kindle), smaller tablets @ 600 or @ 640 wide. */
    #mainNavContent {
        /* line 172 */
        width: 50vw;
    }

    #langNavContent {
        /* line 173 */
        width: 40vw;
    }

    #outputLine {
        /* line 309 */
        /* padding: 0.75em 1em; */
    }

    article .linkToLongText,
    article .linkToTop,
    #overlay_fullscreen a {
        /* line 366 */
        padding: 1vw;
    }
}

@media (min-width:641px) {

    /* portrait tablets, portrait iPad, landscape e-readers, landscape 800x480 or 854x480 phones */
    #mainNavContent {
        /* line 172 */
        width: 40vw;
    }

    #langNavContent {
        /* line 173 */
        width: 35vw;
    }

    #outputLine {
        /* line 309 */
        /* padding: 0.75em 2em; */
    }

    #contentSection h3 {
        /* line 342 */
        width: 70vw;
        margin: auto 10vw;
    }

    #contentSection article {
        /* line 349 */
        width: 70vw;
        margin: auto 10vw;
    }

    article .linkToLongText,
    article .linkToTop,
    #overlay_fullscreen a {
        /* line 366 */
        padding: 0.75vw;
    }

    #contentSection article.image_section .img_container {
        /* line 399 */
        width: 70vw;
        margin: auto 10vw;
    }

    .image_section .align-right {
        /* line 407 */
        width: 70vw;
        margin: auto 10vw;
    }

    footer {
        /* line 494 */
        padding: 1.5em 9.5vw;
    }
}

@media (min-width:961px) {

    /* tablet, landscape iPad, lo-res laptops ands desktops */
    /* portrait tablets, portrait iPad, landscape e-readers, landscape 800x480 or 854x480 phones */
    #mainNavContent {
        /* line 172 */
        width: 21.9vw;
    }

    #langNavContent {
        /* line 173 */
        width: 25vw;
    }


}

@media (min-width:1025px) {

    /* big landscape tablets, laptops, and desktops */
    #mainNavContent {
        /* line 172 */
        width: 21.7vw;
    }

    #langNavContent {
        /* line 173 */
        width: 20vw;
    }

    #contentSection h3 {
        /* line 342 */
        width: 55vw;
        margin: auto;
    }

    #contentSection article {
        /* line 349 */
        width: 55vw;
        margin: auto;
    }

    #contentSection article.image_section .img_container {
        /* line 399 */
        width: 55vw;
        margin: auto;
    }

    .image_section .align-right {
        /* line 407 */
        width: 55vw;
        margin: auto;
    }

    footer {
        /* line 494 */
        padding: 1.5em 19.5vw;
    }
}

@media (max-width:1024px) {

    /* hi-res laptops and desktops */
    .icon {
        width: 14px !important;
        height: 14px !important;
        padding: 9px !important;

    }


    .icon i {
        scale: .7;
        margin-right: -5px;
        margin-bottom: -5px;
        /* Adjust as needed */
    }
}




/* Aggiunte */

a.openImgLink {
    position: relative;
    display: inline-block;
    padding: 10px;
}

.icon {
    position: absolute;
    bottom: 13px;
    right: 12px;
    font-size: 20px;
    color: #045656;
    width: 30px;
    height: 30px;
    background: white;
    border: solid 0.15em #5C5856;
    padding: 10px;
    clip-path: polygon(100% 100%, 100% 0, 0 100%);
    transition: all 0.3s ease;
}


.icon i {
    position: absolute;
    bottom: 5px;
    /* Adjust as needed */
    right: 5px;
    /* Adjust as needed */
}

.openImgLink:hover .icon, .openImgLink:focus-within .icon {
    color: white;
    background: #045656
}

.content h3 {
    font-size: 1.9em;
}

.content .shortText p:nth-child(2) {
    font-size: 1.3em;
    max-width: 50%;
    text-align: left;
    color: #6e635e;
    text-transform: uppercase;
    font-weight: bold;
    margin-top: 2em;
    margin-bottom: 1.5em;
}

.content .shortText img+p {
    font-size: 1.1em;
    max-width: 80%;
    text-align: left;
    margin-bottom: 20px;
}


/* .content .shortText p:nth-child(2):before {
    content: '';
    width: 100px;
    height: 100px;
    background: url(img/Icone/Ghetto.png);
    background-size: contain;
    background-repeat: no-repeat;
    top: 70px;
    right: -160%;
    position: relative;
    display: block;
} */

.content .shortText img {
    position: absolute;
    margin-top: -220px;
    right: 22vw;
    /* right: 30vw; */
    width: 120px;
}

p {
    line-height: 1.5em;
}

.img_container img {
    border-radius: 10px 10px 0 10px;
    min-height: 50%;

}

.img_container a {
    min-height: 50px;
}

#overlay_fullscreen {
    background-image: url(img/Icone/SfondoImmagini.jpg);
    background-size: cover;
    background-repeat: no-repeat;
}

footer {
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    width: 100%;
    min-height: 100px;
    bottom: 100%;
    left: 0;
    display: inline-block;
    background-image: url(img/footer.png);
    /* background-color: red; */
    background-position: bottom;
    background-size: contain;
    background-repeat: no-repeat;
    border-bottom: 6px solid #5F5444;
    /* background-attachment: fixed; */
}

#credits {
    padding-bottom: 80px;
}

#mainNav button#toggleMusic {
    display: block;
    float: right;
    background: #E7E7E7;
    border-radius: 100%;
    margin-right: 10px;
    width: 35px;
    height: 35px;
    border: solid 1px #045656;
    cursor: pointer;
}

.delimiter {
    content: '';
    position: relative;
    display: inline-block;
    /* border-left: 1px solid 969696; */
    /* right: 90px; */
    /* margin-left: 20px; */
    /* adjust this */
    height: 80%;
    width: 2px;
    height: 25px;
    background: #969696;
    float: right;
    margin-top: 5px;
    /* adjust this */
}
