* {
    scroll-behavior: smooth;
    scrollbar-width: none;
    --bs-table-bg: transparent;
}

.art-article {
    margin: 50px auto;
}


#page-container-sidebar.open .sidebar.art-article {
    margin: 18px auto;
}

#page-container-sidebar.open.expanded .sidebar.art-article {
    margin: 50px auto;
}

#page-container-sheet.open main > .art-article {
    margin: 18px auto;
}

#page-container-sheet.open.expanded main > .art-article {
    margin: 50px auto;
}

header.container-header {
    margin-top: 10px;
}

ul.art-hmenu > li > a > span {
    position: relative;
}

ul.art-hmenu > li > a > span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 0.8px; /* Spessore della sottolineatura */
    background-color: #333; /* Colore della sottolineatura */
    -webkit-transition: width .3s ease-out, background-color .15s ease-out;
    -moz-transition: width .3s ease-out, background-color .15s ease-out;
    transition: width .3s ease-out, background-color .15s ease-out;
}

ul.art-hmenu > li > a > span:hover::after,
ul.art-hmenu > li.active > a > span:after {
    width: 100%;
}

#page-container-sheet {
    height: calc(100vh - 55.8px); /* Imposta un'altezza per vedere lo scrolling */
    overflow-y: auto; /* Aggiunge la barra di scorrimento solo in verticale se necessario */
    scroll-behavior: smooth;
    scrollbar-width: none;
    width: 70%;
    transition: width 0.5s ease, flex-basis 0.5s ease;
}

#page-container-sidebar {
    border-left: 5px solid #000;
    height: calc(100vh - 55.8px); /* Imposta un'altezza per vedere lo scrolling */
    overflow-y: auto; /* Aggiunge la barra di scorrimento solo in verticale se necessario */
    scroll-behavior: smooth;
    scrollbar-width: none;
    flex: 0 0 auto;
    width: 30%;
    transition: width 0.5s ease, flex-basis 0.5s ease;
}

nav.art-nav.menu-default, #menu-sidebar {
    position: relative;
}

nav.art-nav.menu-default::before {
    --bs-gutter-x: 3em;
    content: '';
    position: absolute;
    left: calc(var(--bs-gutter-x) * .5);
    right: calc(var(--bs-gutter-x) * .5);
    height: 1px;
    display: block;
    background-color: #000;
}

#menu-sidebar::before {
    --bs-gutter-x: 2.8em;
    content: '';
    position: absolute;
    left: calc(var(--bs-gutter-x) * .5);
    right: calc(var(--bs-gutter-x) * .5);
    height: 1px;
    display: block;
    background-color: #000;
}

#navbar1 ul li a {
    padding-right: 0;
    padding-left: 10px;
}

#navbar1 ul li a:after {
    content: ',';
}

#navbar1 ul li:last-child a:after {
    content: '';
}

#menu-sidebar ul {
    --bs-gutter-x: 2.8em;
    padding-left: calc(var(--bs-gutter-x) * .5);
    padding-right: calc(var(--bs-gutter-x) * .5);
}

#menu-sidebar ul li a {
    padding-left: 0;
    padding-right: 10px;
}

#menu-sidebar ul li a:after {
    content: ',';
}

#menu-sidebar ul li:last-child a:after {
    content: '';
}

.container-header > .row > #menu-sidebar {
    /*background: #fff;*/
    border-left: 5px solid #000;
    flex: 0 0 auto;
    width: 30%;
    /*border-bottom: 1px solid #e5e5e5;*/
    transition: width 0.5s ease, flex-basis 0.5s ease;
}

.container-header > .row > #menu-header {
    /*background-color: #FFFFFF;*/
    /*border-bottom: 1px solid #e5e5e5;*/
    width: 70%;
    transition: width 0.5s ease, flex-basis 0.5s ease;
}

.art-nav .container-nav, .art-nav {
    background-color: transparent;
}

button#expand-sheet, button#expand-sidebar, button#open-close-sidebar, button#open-close-sheet {
    background: #fff;
    color: #000;
    display: flex;
    align-items: center;
    padding: 6px;
    border: 1px solid #e5e5e5;
    font-size: 20px;
}

button#expand-sidebar {
    border-left: none;
    border-top: none;
}

button#open-close-sidebar {
    border-right: none;
    border-top: none;
}

button#open-close-sheet {
    border-left: none;
    border-top: none;
}

button#expand-sheet {
    border-right: none;
    border-top: none;
    position: sticky;
    z-index: 2;
    top: 0;
    margin-left: auto;
}

.project-details-intro {
    /*max-width: 1000px;*/
    width: 100%;
    margin: 0 auto;
    height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
}

#art-project-details {
    height: calc(100vh - 40px);
}

.project-details-intro .page-title {
    flex-grow: 1;
    align-content: center;
}

.project-details-intro #gallery-progetti {
    height: 70%;
}

.project-details-intro #sticker-section {
    height: 30%;
}

.swiper-slide .img-wrapper {
    height: 100%;
    display: inline-block;
    position: relative;
}

#sidebar-buttons, #sheet-buttons {
    display: flex;
    position: sticky;
    top: 50px;
    z-index: 2;
}

#page-container-sidebar.open button#open-close-sidebar i.icon-open {
    display: none;
}

#page-container-sidebar.open button#open-close-sidebar i.icon-close {
    display: block;
}

#page-container-sidebar.closed button#open-close-sidebar i.icon-close,
#page-container-sidebar.closed button#expand-sidebar {
    display: none;
}

#page-container-sidebar.closed #sidebar-buttons {
    position: absolute;
    right: 5px;
}

#page-container-sidebar.closed button#open-close-sidebar i.icon-open {
    display: block;
}

#page-container-sidebar.open.expanded button#open-close-sidebar {
    display: none;
}

/* */

#page-container-sheet.open button#open-close-sheet i.icon-open {
    display: none;
}

#page-container-sheet.open button#open-close-sheet i.icon-close {
    display: block;
}

#page-container-sheet.closed button#open-close-sheet i.icon-close,
#page-container-sheet.closed button#expand-sheet {
    display: none;
}

#page-container-sheet.closed #menu-header {
    display: none;
}

#page-container-sheet.closed #sheet-buttons {
    position: absolute;
    left: 5px;
}

#page-container-sheet.closed button#open-close-sheet i.icon-open {
    display: block;
}

#page-container-sheet.open.expanded button#open-close-sheet {
    display: none;
}

.art-nav {
    border-bottom: none;
}

body {
    /*border: 5px solid #000;*/
}

#page-container-sheet.expanded .art-progetti_1.grid .grid-item {
    float: left;
    /*width: 50%;*/
    width: 100%;
    /*height: 440px;*/
}

#page-container-sheet.expanded .art-progetti_1.grid .grid-item:nth-child(even) > .art-portfolio-item {
    float: right;
}

#page-container-sheet.expanded .art-progetti_1.grid .grid-item > .art-portfolio-item {
    width: 70%;
}

#page-container-sheet.expanded .art-progetti_1.grid .grid-item.grid-item--height2 {
    /*height: 740px;*/
}

#page-container-sheet.expanded .art-progetti_1.grid .grid-item.grid-item--height2 > .art-portfolio-item {
    width: 50%;
}

#page-container-sheet.expanded .art-progetti_1.grid .grid-item.grid-item--height2 .art-portfolio-image-container {
    /*height: 700px;*/
    width: 100%;
    aspect-ratio: 9/16;
}

.form-check-input:checked {
    background-color: #000 !important;
    border-color: #000 !important;
}

.joomla-alert--close {
    display: none;
}
/*
#page-container-sheet.expanded .art-progetti_1 .grid-item:nth-child(even) .art-portfolio-item {
    padding-left: 15px;
}

#page-container-sheet.expanded .art-progetti_1 .grid-item:nth-child(odd) .art-portfolio-item {
    padding-right: 15px;
}
*/

/*
.art-gallery-article .swiper {
    max-height: 280px;
}

#page-container-sheet.expanded .art-gallery-article .swiper {
    max-height: 550px;
}
*/

#gallery-progetti .image-product {
    height: 100%;
}

#page-container-sheet .art-project-details {
    padding: 18rem 0 50px 0;
    /*margin: 50px 0;*/
}

#page-container-sheet.open:not(.expanded) [class^="col-lg-"] {
    width: 100%;
    margin-bottom: 20px;
}

#page-container-sheet.open:not(.expanded) .special-box {
    margin: 0;
}

.art-project-details .art-social-list .art-social-item:first-child {
    margin-left: 6px;
}

.art-project-details .art-social-list .art-social-item {
    margin: 0 3px;
    font-size: 12px;
    color: #999;
}

.blog-category .controls, .content-category .controls {
    display: none;
    justify-content: center;
    margin-bottom: 50px;
}

.blog-category .controls > button.control, .content-category .controls > button.control {
    border: 0;
    background: none;
    margin: 0 10px;
    padding: 0;
    position: relative;
}

.blog-category .controls > button.control > span:after, .content-category .controls > button.control > span:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 0.8px;
    background-color: #333;
    -webkit-transition: width .3s ease-out, background-color .15s ease-out;
    -moz-transition: width .3s ease-out, background-color .15s ease-out;
    transition: width .3s ease-out, background-color .15s ease-out;
}

.blog-category .controls > button.control > span:hover::after,
.blog-category .controls > button.control.mixitup-control-active span:after,
.content-category .controls > button.control > span:hover::after,
.content-category .controls > button.control.mixitup-control-active span:after {
    width: 100%;
}

.special-box {
    background: #fff;
    margin: 0 20px;
    padding: 100px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

#archive-items h2 {
    margin: 0;
}

#archive-items thead, #archive-items tbody, #archive-items tfoot, #archive-items tr, #archive-items td, #archive-items th {
    border: 0;
}

#archive-items h2 > a {
    margin: 0;
}

ul.list-group > li.list-group-item {
    background-color: transparent;
    padding: 15px 0;
    border-left: none;
    border-right: none;
}

a.site-brand-text {
    font-size: 15px;
}

.navbar-collapse, ul.art-hmenu {
    height: auto;
}

.container-header .navbar-brand {
    font-size: 15px;
}

/*#sticker-section {
    width: 100%;
    max-width: 1000px;
}*/

#sticker-section.fixed {
    position: fixed;
    z-index: 9;
}

#link-readmore, #link-gallery, #gallery-progetti {
    transition: opacity 400ms ease;
}

.project-details-intro h1 {
    font-size: 32px;
}

.project-details-intro h2 {
    font-size: 32px;
}

#page-container-sheet.open:not(.expanded) #sticker-section {
    position: relative !important;
}

#page-container-sheet.open:not(.expanded) .art-project-details {
    padding: 50px 0;
    height: unset;
}

#page-container-sheet.open:not(.expanded) .project-details-intro {
    height: unset;
}

.project-gallery .swiper-slide {
    aspect-ratio: 16 / 9;
}

/*.art-portfolio-image-container:before {
    content: '';
    background-image: url("../images/mini-logo.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    width: 50px;
    height: 50px;
    position: absolute;
    top: 10px;
    right: 10px;
}*/

/*.art-portfolio-card-title:before {
    content: '';
    background-image: url("../images/mini-logo.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    width: 50px;
    height: 50px;
    position: absolute;
    top: 10px;
    right: 10px;
}*/

.project-details-intro .swiper-wrapper,
.project-details-intro .art-gallery-article,
.project-details-intro .art-gallery-images,
#gallery-progetti > div,
.project-details-intro .art-gallery-article > .swiper {
    height: 100%;
}

.art-gallery-images .swiper-slide {
    position: relative;
    height: 100%;
    text-align: center;
}

.art-gallery-images .swiper-slide .img-wrapper:before {
    content: '';
    background-image: url("../images/mini-logo.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    width: 50px;
    height: 50px;
    position: absolute;
    top: 10px;
    right: 10px;
}

#archive-items table h2, #archive-items table h2 > a {
    font-size: 14px;
}

/* Extra extra large devices (<1400px) */
@media (max-width: 1399.98px) {

}

/* Extra large devices (max-width 1199.98px) */
@media (max-width: 1199.98px) {
    .project-details-intro, #art-project-details {
        height: initial;
    }

    .project-details-intro #link-readmore, .project-details-intro #link-gallery {
        display: none;
    }

    #page-container-sheet .art-project-details {
        padding: 0;
    }

    #menu-header {
        padding: 10px 0;
    }

    #menu-header #hamburgerMenu {
        padding: 0;
    }

    #menu-sidebar {
        display: none;
    }

    #page-container-sidebar {
        display: none;
    }

    #page-container-sheet {
        height: auto;
    }

    header.container-header {
        margin: 0;
    }

    .art-logo > img {
        margin: 10px 0;
    }

    .art-portfolio-card-title {
        display: none;
    }

    nav.art-nav.menu-default::before {
        content: none;
    }

    .art-progetti_1.grid .grid-item div.art-portfolio-image-container {
        height: 300px;
    }

    #page-container-sheet.expanded .art-progetti_1.grid .grid-item {
        float: left;
        width: 100%;
        height: 400px;
    }

    #page-container-sheet.expanded .art-progetti_1.grid .grid-item > .art-portfolio-item {
        width: 100%;
    }

    #page-container-sheet.expanded .art-progetti_1.grid .grid-item.grid-item--height2 > .art-portfolio-item {
        width: 100%;
    }

    #page-container-sheet.expanded .art-progetti_1.grid .grid-item.grid-item--height2 .art-portfolio-image-container {
        height: 300px;
    }

    #page-container-sheet.expanded .art-progetti_1.grid .grid-item.grid-item--height2 {
        height: 400px;
    }

    #navbar1 ul li a:after {
        content: none;
    }

    .project-details-intro .swiper-wrapper,
    .project-details-intro .art-gallery-article,
    .project-details-intro .art-gallery-images,
    #gallery-progetti > div,
    .project-details-intro .art-gallery-article > .swiper {
        height: auto;
    }

    .art-gallery-images .swiper-slide, .swiper-slide .img-wrapper, #gallery-progetti .image-product {
        height: auto;
    }

    #sticker-section.page-title {
        margin-top: 20px;
    }

    .project-details-intro h2, .project-details-intro h1 {
        font-size: 20px;
    }
}


/* Large devices (max-width 991.98px): Desktops */
@media (max-width: 991.98px) {
    #archive-items table h2, #archive-items table h2 > a {
        font-size: 20px;
    }
}

/* Medium devices (max-width 767.98px): Tablets */
@media (max-width: 767.98px) {
    #archive-items table h2, #archive-items table h2 > a {
        font-size: 14px;
    }
}


/* Small devices (max-width 575.98px): Mobile portrait */
@media (max-width: 575.98px) {


}
