/* barra superior amb logo ajuntament */
header section.barra_ajt {
    border-bottom: 2px solid black;
    padding: 5px 0;
    text-align: center;
    background: black;
}

header section.barra_ajt img{
    height: 40px;
}


/* logo capçalera */
header .navbar-brand img{
    height: 24px;
}


/* Menus */
.navbar {
    justify-content: space-between;
    align-items: center;
    padding: 0;
    flex-wrap: nowrap;
}
.menus {
    background: white;
    padding: 25px 0;
}
.navbar-toggler {
    border: 0;
    font-size: 30px;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23b2b2b2' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
.navbar-toggler:focus {
    box-shadow: none;
}

/* llistat menus */
header .offcanvas {
    border: 1px solid black;
}
header .offcanvas .nav-item {
    color: black;
    font-size: 1rem;
    font-family: 'Proxima Nova', 'Roboto', sans-serif;
    /*text-decoration: none;*/
    font-weight: normal;
    /*border-right: 1px solid #b2b2b2;*/
    /*min-width: 100px;*/
    border-radius: 0;
}
header .offcanvas .nav-item.cerca {
    border: 0;
}
header .offcanvas .nav-item a {
    padding: 10px 20px;
    margin-top: 1px;
}
header .offcanvas .nav-item a:hover,
header .offcanvas .nav-item a.select {
    background: rgba(0,0,0,0.1);
}

header .offcanvas-body {
    padding-left: 0;
    padding-right: 0;
    border-right: 0;
}

.sol_permis {
    margin-left: auto;
}
.sol_permis a {
    background: #e52d2d;
    color: white;
    display: flex;
    gap: 5px;
    border-radius: 999px;
    padding: 10px 20px;
    text-decoration: none;
    align-items: center
}

.sol_permis .text-extes,
.sol_permis .material-symbols-outlined {
    display: none;
}
.sol_permis .text-curt {
    display: block;
}
.cerca a {
    color: black;
    display: block;
    padding: 10px 10px;
    border-radius: 50%;
    margin-left: 10px;
    text-decoration: none;
}
.cerca a .material-symbols-outlined {
    display: block;
}
.cerca a:hover {
    background: rgba(0, 0, 0, 0.1);
}


/* llistat submenus*/
.dropdown-item:focus, .dropdown-item:hover {
    background: inherit;

}

.dropdown.submenu {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.dropdown.submenu > ul {
    width: 100%;
}

.dropdown .dropdown-menu {
    border: 0;
    border-radius: 0;
    padding: 0;
    margin-top: 1px;
    border-left: 2px solid #e52d2d;
    margin-left: 2px;
}
.dropdown-menu > li {
    border-bottom: 1px solid white;
}

.dropdown-menu > li:last-child {
    border-bottom: 0;
}
.dropdown .nav-link:not(.dropdown-toggle) {
    flex-grow: 1;
}

.barra_ajt .marges {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}
.barra_ajt .link:not(.select)::after {
    transform: scaleX(0);
}

.barra_ajt .link:not(.select):hover::after {
    transform: scaleX(100%);
}

.barra_ajt  .idiomes {
    color: white;
}

.barra_ajt .link:hover,
.barra_ajt .link {
    color: white;
}


@media only screen and (min-width: 768px)
{ /*Mida M */



}
@media only screen and (min-width: 992px)
{ /*Mida L */

    /* barra superior amb logo ajuntament*/
    header section.barra_ajt {
        text-align: left;
    }

    /* logo capçalera */
    header .navbar-brand img{
        height: 45px;
    }

    /* menus */
    .navbar {
        padding-right: 0;
    }

    .navbar-nav {
        gap: 20px;
        margin-left: 20px;
    }
    header section.menus .offcanvas {
        flex-direction: row;
    }

    header .offcanvas .nav-item:not(.cerca) a:hover,
    header .offcanvas .nav-item:not(.cerca) a.select {
        background: inherit;
    }

    .sol_permis .text-extes,
    .sol_permis .material-symbols-outlined {
        display: block;
    }
    .sol_permis .text-curt {
        display: none;
    }
    /* llistat submenus */

    .dropdown .nav-link.dropdown-toggle {
        display: none !important;
    }

}

@media only screen and (min-width: 1201px) /* Mida XL*/
{
    header section.menus .offcanvas a {
        font-size: 1.1rem;
    }
}
