/* Sindic */

/* Responsive styles
----------------------------------------------------------------------------- */

@media only screen and (max-width: 1024px) {

    /* Layout
    ------------------------------------------------------------------------- */
    .body-wrapper {
        padding-bottom: 0;
    }

    /* Header
    ------------------------------------------------------------------------- */
    #header .layout-wrapper {
        width: 100%;
    }

    #header .logo {
        border-left: 0;
    }

    #header .language_selector {
        margin-right: 2.5%;
    }

    #header .phone {
        right: 230px;
    }

    #header .search {
        right: 2.5%;
    }

    #header .main_menu {
        padding: 1em 0;
        position: static;
        border-top: 1px solid #fff;
        clear: both;
        display: block;
    }

    #header .main_menu ul {
        display: table;
        width: 100%;
    }

    #header .main_menu ul li {
        display: table-cell;
        text-align: center;
        padding: 0.25em 0.6em;
        vertical-align: middle;
    }

    #header .main_menu ul li + li {
        margin-left: auto;
    }

    /* Homepage
    ------------------------------------------------------------------------- */
    #cos.home {
        padding-top: 2.5%;
    }

    #cos.home .topics .list {
        display: block;
        text-align: center;
    }

    #cos.home .topics .list .item {
        display: inline-block;
        margin-bottom: 40px;
        width: 200px;
    }

    /* Portal de la transparencia
    ------------------------------------------------------------------------- */
    #cos #contingut .portal-transparencia {
        margin-left: 0;
        margin-right: 0;
    }

    #cos #contingut .portal-transparencia .row {
        display: block;
        margin-left: -4.5%;
        width: auto;
    }

    #cos #contingut .portal-transparencia .column {
        display: inline-block;
        width: 45%;
        margin-left: 4.5%;
        margin-bottom: 4.5%;
    }


    /* Footer
    ------------------------------------------------------------------------- */
    #footer {
        position: static;
    }
}

@media only screen and (max-width: 1220px) {

    #cos.home .banners .list .item.text,
    #cos.home .banners .list .item.text .wrapper,
    #cos.home .banners .list .item.image-small {
        height: 8.25vw !important;
    }

    #cos .banners .list .item.text .text {
        font-size: 1.5vw !important;
    }
}

@media only screen and (max-width: 1024px) {

    /* Layout
    ------------------------------------------------------------------------- */
    .layout-wrapper {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    #cos #columna-menu,
    #header .language_selector,
    #header .main_menu {
        display: none;
    }

    #cos #contingut {
        float: none;
        width: auto;
    }

    /* Corporate bar
    ------------------------------------------------------------------------- */
    #corporate .search {
        display: none;
    }

    #corporate .layout-wrapper {
        padding-left: 0;
        padding-right: 0;
    }

    #corporate .logo {
        border-left: 0;
    }

    #corporate .logo img {
        width: 45px;
    }

    #corporate .phone {
        right: 15px;
        top: 8px;
    }

    /* Header
    ------------------------------------------------------------------------- */
    #header .logo {
        margin-left: -15px;
        width: 90px;
    }

    #header .search {
        display: none;
    }

    #header .phone {
        top: 10px;
        right: 10px;
    }

    #header .complaints {
        bottom: 10px;
        display: block;
        margin: 0;
        position: absolute;
        right: 10px;
    }

    #subsite-header h1 {
        position: static;
    }

    #subsite-header.infants,
    #subsite-header.pacients {
        background-image: none;
    }

    #subsite-header .layout-wrapper {
        background-image: none !important;
        min-height: 0;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    #subsite-header .logo {
        font-size: 2.5em;
        position: static;
    }

    #subsite-header .language_selector {
        display: none;
    }

    #subsite-menu {
        display: none;
    }

    #footer .corporation,
    #footer .links {
        float: none;
        max-width: none;
    }

    #footer .links {
        margin-top: 40px;
        text-align: left;
    }

    #cookie-policy {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    #cookie-policy .layout-wrapper {
        padding-right: 0;
    }

    #cookie-policy a#acc-cookie {
        position: static;
        display: inline-block;
        margin-top: 15px;
    }


    /* Breadcrumb
    ------------------------------------------------------------------------- */
    #cos .breadcrumb {
        margin-top: -1.5em;
    }


     /* Homepage
    ------------------------------------------------------------------------- */
    #cos.home .banners .list .item.text .image img {
        width: 30px;
    }
}

@media only screen and (max-width: 800px) {

    /* Homepage
    ------------------------------------------------------------------------- */
    #cos .block + .block {
        margin-top: 2em;
    }

    #cos.home {
        padding: 2em 0;
    }

    #cos.home .banners {
        float: none;
        width: 100%;
        margin-right: 0;
        margin-bottom: 5em;
    }

    #cos.home .banners .list .item.text,
    #cos.home .banners .list .item.text .wrapper,
    #cos.home .banners .list .item.image-small {
        height: 20vw !important;
    }

    #cos .banners .list .item.text .text {
        font-size: 3.5vw !important;
    }

    #cos.home .banners .list .item.text .image img {
        width: 6vw;
    }


    #cos.home .highlights .list .item {
        width: 47%;
    }


    #cos.home .newsletter {
        margin-top: 3em;
    }
}

@media only screen and (max-width: 640px) {

    /* Breadcrumb
    ------------------------------------------------------------------------- */
    #cos .breadcrumb {
        display: none;
    }


    /* Homepage
    ------------------------------------------------------------------------- */
    #cos.home .topics .list .item {
        width: 49%;
    }

    #cos.home .highlights .list {
        margin-left: 0;
    }

    #cos.home .highlights .list .item {
        width: 100%;
        margin-top: 0;
        margin-left: 0;
        margin-bottom: 1.2em;
        display: block;
        padding-right: 0;
        width: auto;
    }

    #cos.home .newsletter {
        display: block;
        margin-top: 5em;
        padding-left: 0;
        width: auto;
        border-left: 0;
        text-align: center;
    }


    /* Footer
    ------------------------------------------------------------------------- */
    #footer {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    #footer .links .sections li.transparencia {
        display: inline-block;
    }

    #footer .transparencia {
        display: block;
    }
}
