/*
Theme Name: Municipios de la Diputación de Palencia
Template: Divi
Theme URI: http://www.dip-palencia.es/
Author: Diputación Provincial de Palencia
Author URI: http://www.dip-palencia.es/
*/

.flex {
    display: flex;
}

.text-primary,
.text-primary a {
    color: #137d93;
}

.text-white,
.text-white a {
    color: white;
}

.width-auto {
    width: auto !important;
}

body:not(.et_pb_pagebuilder_layout) div.entry-content {
    padding: 54px 0;
}

body.page-template-page_multimedia .et_pb_blog_grid .post-meta {
    display: none;
}

.flex-columnable.et_pb_row > .et_pb_column {
    display: flex;
    justify-content: center;
}

footer .et_pb_menu_0_tb_footer.et_pb_menu .et_mobile_menu {
    background: #137d93 !important;
}

header .et_pb_row--with-menu {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    margin: 0;
    max-width: 100%;
    padding: 0;
    width: 100%;
}

header .et_pb_row--with-menu > .et_pb_column {
    float: none;
    margin-right: 0 !important;
}

header .et_pb_row--with-menu .et_pb_column--with-menu {
    flex-basis: 100%;
    justify-content: flex-start;
}

header .et_pb_row--with-menu .et_pb_column--with-menu::before {
    flex-basis: 100%; height: 0; margin: 0; border: 0;
}

header .et_pb_row--with-menu > .et_pb_column:nth-child(1) {
    margin-left: auto;
    max-width: 300px;
    padding: 2em 0;
}

header .et_pb_row--with-menu > .et_pb_column:nth-child(2) {
    align-items: center;
    margin-right: auto !important;
    width: auto !important;
}

header .et_pb_row--with-menu > .et_pb_column:nth-child(2) > .et_pb_module {
    margin: 0;
}

header .et_pb_row--with-menu > .et_pb_column:nth-child(3) {
    justify-content: space-around;
}

header .et_pb_section_0_tb_header .et_pb_row_0_tb_header {
    font-size: 0.9em;
}

.et_pb_text.text-flex .et_pb_text_inner {
    display: flex;
}

.et_pb_text.text-flex-center .et_pb_text_inner {
    gap: 20px;
    justify-content: end;
    margin-right: 20px;
}

.text-color-neutral a {
    color: #333333b3;
}
#et-info-email::before,
#et-info-phone::before {
    text-shadow: 0 0;
    font-family: ETmodules!important;
    font-weight: 400;
    font-style: normal;
    font-variant: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1;
    text-transform: none;
    speak: none;
}

#et-info-phone::before {
    position: relative;
    top: 2px;
    margin-right: 2px;
    content: "\e090";
}

#et-info-email::before {
    margin-right: 4px;
    content: "\e076";
}

.wpcf7-form-control-wrap input[type=text],
.wpcf7-form-control-wrap input[type=email] {
    background-color: #eee !important;
    border: none !important;
    width: 100% !important;
    -moz-border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    border-radius: 0 !important;
    font-size: 14px;
    color: #999 !important;
    padding: 16px !important;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.wpcf7-form-control-wrap textarea {
    background-color: #eee !important;
    border: none !important;
    width: 100% !important;
    -moz-border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    border-radius: 0 !important;
    font-size: 14px;
    color: #999 !important;
    padding: 16px !important;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.wpcf7-submit {
    color: #137d93 !important;
    margin: 8px auto 0;
    cursor: pointer;
    font-size: 20px;
    font-weight: 500;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    padding: 6px 20px;
    line-height: 1.7em;
    background: transparent;
    border: 2px solid;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -moz-transition: all 0.2s;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;

}

.et_pb_row_with_empty {
    padding-bottom: 6%;
    transform: translateY(0) !important;
}

.et_pb_row_with_empty > .et_pb_column_2_3:not(.et_pb_column_empty) {
    width: 100%;
}

.item-break-1 {
    grid-column-start: 2 !important;
}

.item-break-2 {
    grid-column-start: 3 !important;
}

.item-break-3 {
    grid-column-start: 4 !important;
}

/** collapsible **/

.et_mobile_menu > .menu-item-has-children > a {
    background-color: transparent;
    position: relative;
}

.et_mobile_menu > .menu-item-has-children > a:after {
    font-family: 'ETmodules';
    content: '\4c';
    font-weight: normal;
    position: absolute;
    font-size: 16px;
    top: 13px;
    right: 10px;
}

.et_mobile_menu > .menu-item-has-children > .icon-switch:after {
    content: '\4d';
}

.et_mobile_menu .sub-menu .menu-item {
    display: none;
}

.second-level {
    display: none;
}

.reveal-items {
    display: block !important;
}

.et_mobile_menu {
    left: inherit !important;
    margin-top: 20px;
    right: 0;
    width: calc(var(--prvw) * 0.90);
}

.et_pb_menu_0_tb_footer.et_pb_menu .et_mobile_menu {
    background-color: #137d93!important;
}

/** collapsible end **/

@media all and (max-width: 767px) {

    .flex-columnable.et_pb_row > .et_pb_column {
        flex-direction: column;
    }


    .et_pb_text.text-flex-center .et_pb_text_inner {
        flex-direction: column;
        margin: 0;
        text-align: center;
        row-gap: 2px !important;
    }

    .flex-row-mobile {
        display: flex;
        flex-direction: row;
    }

    .flex-row-mobile > .et_pb_column {
        float: none;
        margin: 0 !important;
        padding: 0 !important;
        flex-basis: 100%;
    }

    .flex-row-mobile-2 > .et_pb_column {
        flex-basis: 50% !important;
    }

    .mobile-break-row .et_pb_text_inner  {

    }


    .mobile-flex > .et_pb_column {

    }

}

@media screen and (min-width: 981px) {

    header .et_pb_row_0_tb_header .et_pb_text_0_tb_header {
        margin: 0 auto;
        text-align: left;
        width: 80%;
    }

    .desktop-text-block > .et_pb_text_inner {
        display: block !important;
    }

    .desktop-text-block > .et_pb_text_inner > div {
        display: inline-block !important;
    }

    .et-menu li li a {
        width: 275px !important;
    }

    .nav li li {
        line-height: 1.5em !important;
        padding: 0 5px !important;
    }

}

@media screen and (max-width: 980px) {

    header .et_pb_row--with-menu > .et_pb_column {
        width: auto;
    }

    header .et_pb_row--with-menu > .et_pb_column:nth-child(1) {
        margin-left: 5%;
        margin-bottom: 0;
        max-width: auto;
        padding: 1em 0;
        order: 0;
        width: auto !important;
    }

    header .et_pb_row--with-menu > .et_pb_column:nth-child(2) {
        justify-content: center;
        margin: 0 auto;
        flex-basis: 80%;
        padding: 1.5rem 0;
        order: 2;
    }

    header .et_pb_row--with-menu > .et_pb_column:nth-child(3) {
        align-items: center;
        margin-right: 5% !important;
        max-width: 50px;
        order: 1;
    }

    header .et_pb_row--with-menu > .et_pb_column--with-menu {
        align-items: center;
        display: flex;
        flex-basis: auto;
    }

    header .et_pb_row--with-menu #search-box {
        width: 100%;
    }

    header .et_pb_row--with-menu .et_pb_module.et_pb_menu {
        background-color: transparent;
    }

    header .et_pb_text.text-flex-center .et_pb_text_inner {
        gap: 16px;
        justify-content: center;
    }

    header .et_pb_row--with-menu .et_mobile_menu {
        /*left: 0;
        position: fixed;
        top: 130px;*/
    }

}

header ul.et-menu.nav li.menu-item-has-children > ul.sub-menu {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(1000,auto);
    justify-content: start;
    width: auto !important;
}

header ul.et-menu.nav li.menu-item-has-children > ul.sub-menu > li {
    grid-column-start: 1;
}

header .et-menu.nav li.menu-item-has-children > ul.sub-menu li.item-break {
    grid-row: 1;
}

.menu-column {
    display: flex;
    flex-direction: row;
    gap: 2em;
}

body.home .et_pb_section_1_tb_body {
    margin-bottom: 48px;
}

/* WCAG-AA */

 .et_pb_section_0_tb_header.et_pb_section,
.et_pb_section_0_tb_header.et_pb_section .et_pb_row_0_tb_header {
    background-color: #ffffff !important;
}

.et-pb-controllers a {
    background-color: white;
    color: black;
    opacity: 1;
}

.et_pb_text_2_tb_body .et_pb_text_inner h4 {
    color: black !important;
}

body.home .et_pb_section_6_tb_body.et_pb_with_background .et_pb_text_inner span a {
    color: white;
    font-weight: bold;
    text-decoration: underline !important;
}