/*

Theme name: Design Scuole Italia Child

Template: design-scuole

*/


/* Nav custom */
.nav-custom .nav-title {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px;
    font-size: 1.75rem;
    font-weight: 600;
}

.nav-custom .nav-title a {
    color: #ffffff;
}

.nav-custom .nav-list {
    display: flex;
    flex-direction: column;
    margin: 15px 0;
    padding: 0;
    line-height: 1;
}

.nav-custom .nav-list.dl-menu {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 15px;
}

.nav-custom .nav-list li {
    position: relative;
}

.nav-custom .nav-list li + li {
    margin-top: 2px;
}

.nav-custom .nav-list li > a {
    position: relative;
    display: block;
    color: #ffffff;
    text-decoration: none;
}

.nav-custom .nav-list li > a:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.nav-custom .nav-list li.current-menu-item > a {
    background-color: rgba(255, 255, 255, 0.15);
}

.nav-custom .nav-list li > a::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background-color: transparent;
}

.nav-custom .nav-list li > a:hover::before {
    background-color: #dc9b23;
}

.nav-custom .nav-list li.current-menu-item > a::before {
    background-color: #dc9b23;
}

.nav-custom .nav-list li > a:not(:only-child) {
    padding-right: 40px;
}
.nav-custom .nav-list li > a:not(:only-child)::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    display: block;
    width: 12px;
    height: 12px;
    margin-top: -6px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="%23FFFFFF"><path d="M22.5 5.1c1.3.2 2 1.8 1.1 2.9-3.4 3.6-7 7-10.4 10.4-.7.6-1.7.6-2.4.1-3.6-3.4-7-7-10.4-10.4-1.2-1.4.6-4.2 2.4-2.5l9.1 9.1 9.2-9.2c.5-.3.7-.5 1.4-.4z"/></svg>');
    background-size: 12px 12px;
    opacity: 1;
    z-index: 1;
}

.nav-custom .nav-list li > a.active:not(:only-child)::after {
    transform: rotate(180deg);
}
/* */

/* Level 1 */
.nav-custom .nav-list > li > a {
    padding: 15px;
    font-size: 1.125rem;
    font-weight: 600;
}

.nav-custom .nav-list > li:has(li.current-menu-item) > a {
    background-color: rgba(255, 255, 255, 0.15);
}

.nav-custom .nav-list > li:has(li.current-menu-item) > a::before {
    background-color: #dc9b23;
}
/* */

/* Level sub */
.nav-custom .nav-list ul {
    display: none;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 2px;
    margin-left: 15px;
    padding: 0;
}

.nav-custom .nav-list ul li > a {
    padding: 8px 15px;
    font-size: 1rem;
}
/* */


/* Nav desktop */
#main-header .nav-desktop {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 280px;
    background-color: #0057af;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 99999;
}
/* */


/* Nav mobile */
#main-header .cbp-spmenu {
    background-color: #0057af;
}

@media (max-width: 480px) {
    #main-header .cbp-spmenu {
        width: 80vw;
        left: -80vw;
    }

    #main-header .cbp-spmenu.menu-open {
        left: 0;
    }

    #main-header .hamburger.is-active {
        left: calc(80vw + 5px);
    }
}
/* */


/* Global */
#main-header {
    z-index: 2 !important;
}

@media (min-width: 1200px) {
    #main-wrapper {
        margin-left: 280px;
    }

    #sub-nav {
        display: none !important;
    }

    .header-utils {
        padding-right: 15px;
    }
}
/* */


/* Hero */
#main-container .section-hero-left .hero-img,
#main-container .section-hero .hero-img {
    background-size: 70% auto !important;
}

#main-container .section-hero .hero-img {
    background-color: #455b71 !important;
    background-position: center !important;
}
/* */