.bg-secondary {
    background-color: #ddd!important;
}

section {
    padding-bottom: 10vh;
    overflow: hidden;
}

section .section-icon {
    color: #ccc;
    text-align: center;
    display: block;
    margin: 5vh 0;
}

.navbar-brand img {
    height: 30px;
}

.navbar-dark .navbar-toggler {
    border-color: #fff;
}

.has-error label,
.has-error .form-text {
    color: #f00;
}

.has-error .form-control {
    border-color: #f00;
}

.spt {
    display: none;
}

hr.spacer {
    margin: 5rem 0;
}

.btn-prenota .fas {
    color: #fff;
}

.img-fit {
    object-fit: cover;
}

/* Home css */

#home {
    padding: 0;
}

#home .container {
    height: 100%;
    display: flex;
}

#home .container img {
    border: 1px solid #eee;
    box-shadow: 0 7px 14px rgba(0, 0, 0, .3);
}

img[data-role="change-foto"] {
    aspect-ratio: 1/1;
}

body.bg-image #home {
    position: relative;
    overflow: hidden;
}

body.bg-image #home .background-image {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-blend-mode: multiply;
    filter: blur(2px);
    opacity: 0.4;
}

body.bg-image:not(.template2) #main-navbar-nav {
    transition: background-color 0.5s linear;
}

body.bg-image:not(.template2) #main-navbar-nav:not(.scrolled) {
    background-color: transparent !important
}


/* End Home css */


/* Curriculum css */

#curriculum .curriculum-text h4 {
    margin-top: 3rem;
}

#curriculum .curriculum-text h4:first-of-type {
    margin-top: 0;
}


/* End Curriculum css */


/* Prestazioni section */

#prestazioni .idc-lista-prestazioni .lista-prestazioni li,
#prestazioni-modal .idc-lista-prestazioni-modal .lista-prestazioni li {
    margin-bottom: 1.75rem;
}

#prestazioni .idc-lista-prestazioni .lista-keywords {
    column-count: 3;
}

#prestazioni .idc-lista-prestazioni .lista-keywords li {
    margin-bottom: 1.25rem;
}

#prestazioni-modal {
    visibility: visible;
}


/* End Prestazioni section */


/* Commenti css */

#commenti .testimonial_item {
    width: 100%;
    background: #fff none repeat scroll 0 0;
    padding: 32px 20px;
    position: relative;
    box-shadow: 0 0 4px -2px;
    float: left;
    margin-top: 50px;
    margin-bottom: 80px;
}

#commenti .testimonial_item>p {
    color: #555;
    float: left;
    line-height: 24px;
    margin: 12px 0;
    font-style: italic;
    font-size: 16px;
}

#commenti .testimonial_item .fas {
    color: #000;
    font-size: 75px;
    left: 20px;
    opacity: 0.3;
    position: absolute;
    top: -37px;
}

#commenti .testimonial_item .photo_sec {
    bottom: -95px;
    left: 0;
    position: absolute;
    text-align: center;
    width: 100%;
}

#commenti .testimonial_item .photo_sec>img {
    border-radius: 100%;
    height: 66px;
    width: 66px;
    border: 1px solid #bbb;
}

#commenti .testimonial_item .name {
    font-size: 24px;
    margin: 10px 0 0;
}

#commenti .testimonial_item .testi_btn {
    font-size: 18px;
}


/* End Commenti css */


/* Pubblicazioni css */

#pubblicazioni ul li {
    margin-bottom: 20px;
}


/* End Pubblicazioni css */


/* Galleria css */

#galleria .foto-gallery a {
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 5px;
}


/* End Galleria css */


/* Prenota css */

#prenota .studio-map {
    min-height: 200px;
    padding: 0 50px;
}

#prenota .disp-days {
    overflow-x: auto;
    white-space: nowrap;
    -ms-overflow-style: none;
    overflow: -moz-scrollbars-none;
    scrollbar-width: none;
    scrollbar-height: none;
}

#prenota .disp-days::-webkit-scrollbar {
    width: 0px;
    height: 0px;
}

#prenota .disp-days .day-box {
    display: inline-block;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin: 0 0 25px 15px;
    padding: 5px;
    width: calc(40% - 25px);
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
    position: relative;
}

#prenota .disp-days .day-box.active {
    background-color: #fff0da;
    border: 1px solid #f90;
}

#prenota .disp-days .day-box.active:before {
    border-top: 10px solid #dc8400;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    bottom: 0px;
    content: "";
    position: absolute;
    left: 45%;
    margin-left: -5px;
    width: 0;
    height: 0;
    margin-bottom: -10px;
}

#prenota .disp-days .day-box.active:after {
    border-top: 9px solid #fff0da;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    bottom: 0px;
    content: "";
    position: absolute;
    left: 45%;
    margin-left: -4px;
    width: 0;
    height: 0;
    margin-bottom: -9px;
}

#prenota .disp-days .day-box .day {
    font-weight: bold;
    text-transform: uppercase;
}

#prenota .disp-days .day-box .day img {
    height: 15px;
    vertical-align: text-top;
}

#prenota .disp-days .day-box .day-disp {
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* End Prenota css */


/* Footer */

footer {
    padding: 20px 0;
}

footer ul.list-inline {
    margin-bottom: 0;
}


/* End footer css */


/* scrollup */

.scrollup {
    width: 30px;
    height: 30px;
    border-radius: 15px;
    opacity: .5;
    position: fixed;
    bottom: 70px;
    right: 25px;
    color: #fff;
    cursor: pointer;
    background-color: #000;
    z-index: 1000;
    transition: opacity .5s, background-color .25s;
    display: none;
}

.scrollup:hover {
    opacity: 1;
}

.scrollup i {
    font-size: 13px;
    position: absolute;
    opacity: 1;
    color: #fff;
    left: 50%;
    top: 50%;
    margin-top: -7px;
    margin-left: -6px;
    text-decoration: none;
}


/* End Scrollup */


/* media query for other devices */

@media (max-width: 480px) {
    img[data-cke-saved-src] {
        display: block;
        margin: 0 auto !important;
        width: auto !important;
    }
}

@media (max-width: 480px) {
    img[data-cke-saved-src] {
        display: block;
        margin: 0 auto !important;
        width: auto !important;
    }
}

@media (max-width: 767px) {
    #home {
        text-align: center;
        padding-top: 56px;
    }
    #home img {
        width: 100px;
        height: 100px;
        margin-bottom: 1rem;
    }
    #prestazioni .idc-lista-prestazioni .lista-keywords {
        column-count: 1;
    }
}

@media (min-width: 768px) {
    #home {
        height: 70vh;
    }
}

@media (min-width: 992px) {
    .btn-prenota {
        border-radius: .25rem;
        margin-left: 1.5rem;
        border: 1px solid #fff;
        margin-top: -2px;
    }
}


/* customization for template1_2col */

body.template1_2col #curriculum .curriculum-text {
    column-count: 2;
}

@media (max-width: 767px) {
    body.template1_2col #curriculum .curriculum-text,
    body.template1_2col #prestazioni .idc-lista-prestazioni .lista-keywords {
        column-count: 1;
    }
}


/* end customization for template1_2col */


/* customization for template1_pren */

body.template1_pren section .section-icon {
    color: #ccc;
    text-align: center;
    display: block;
    margin-top: 5vh;
}

body.template1_pren section h2 {
    margin-bottom: 5vh;
}

body.template1_pren #prenota .section-icon {
    display: none !important;
}

body.template1_pren .left-col hr.spacer:last-of-type {
    display: none !important;
}


/* end customization for template1_pren */


/* customization for template2 */

@media (max-width: 991px) {
    body.template2.bg-image #main-navbar-nav {
        transition: background-color 0.5s linear;
    }
    body.template2.bg-image #main-navbar-nav:not(.scrolled) {
        background-color: transparent !important
    }
}

@media (min-width: 992px) {
    body.template2 {
        padding-top: 0;
        padding-left: 17rem
    }
    body.template2 #main-navbar-nav {
        text-align: center;
        position: fixed;
        top: 0;
        left: 0;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        width: 17rem;
        height: 100vh
    }
    body.template2 #main-navbar-nav .navbar-brand {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        margin: auto auto 0;
        padding: .5rem;
    }
    body.template2 #main-navbar-nav .navbar-brand .img-profile {
        max-width: 10rem;
        max-height: 10rem;
        border: .5rem solid rgba(255, 255, 255, .2)
    }
    body.template2 #main-navbar-nav .navbar-collapse {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        /* -webkit-box-align:start; */
        -ms-flex-align: start;
        /* align-items:flex-start; */
        /* -webkit-box-flex:0; */
        -ms-flex-positive: 0;
        flex-grow: 0;
        width: 100%;
        margin-bottom: auto;
    }
    body.template2 #main-navbar-nav .navbar-collapse .navbar-nav {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        width: 100%;
    }
    body.template2 #main-navbar-nav .navbar-collapse .navbar-nav .nav-item {
        display: block;
    }
    body.template2 #main-navbar-nav .navbar-collapse .navbar-nav .nav-item .nav-link {
        display: block;
        font-weight: 800;
        letter-spacing: .05rem;
        text-transform: uppercase;
    }
}


/* end customization for template2 */
