/*
Theme Name: Nettl Divi Child
Theme URI: https://www.nettl.com/uk/
Description: Bespoke child theme for Divi
Author: Nettl
Author URI: https://www.nettl.com/uk/
Template: Divi
*/

/* --- Global Utilities & Dividers --- */
.btnmargin {
    margin-bottom: 22px !important;
}
#main-content .et_pb_bottom_inside_divider {
    bottom: -1px;
}
#main-content .et_pb_top_inside_divider {
    top: -1px;
}

/* --- Menu Submenu Backgrounds --- */
.et-db #page-container #et-boc .et-l .et_pb_menu_1_tb_header.et_pb_menu .nav li ul, 
.et-db #et-boc .et-l .et_pb_menu_0_tb_header.et_pb_menu .nav li ul {
    background-color: white !important;
}

/* --- Password Protected Post Form --- */
#main-content .ppw-post-password-form {
    max-width: 768px;
    margin: 40px auto;
    font-size: 18px;
    line-height: 2;
}
#main-content .ppw-post-password-form .ppw-pwd-label input {
    width: 100%;
    height: 40px;
    border-radius: 5px;
    background-color: #82358c1f;
}
#main-content .ppw-post-password-form .ppw-pwd-submit-btn {
    background: #82358c;
    color: white;
    padding: 10px 40px;
    font-size: 20px;
    display: block;
    float: none;
    margin: 20px auto;
    cursor: pointer;
    border: 2px solid #82358c;
    border-radius: 5px;
    transition: all .3s ease-in-out;
}
#main-content .ppw-post-password-form .ppw-pwd-submit-btn:hover {
    background: white;
    color: #82358c;
}

/* --- Blog & Categories --- */
#main-content .category-title {
    text-align: center;
    margin-bottom: 30px;
    flex: 0 0 100%;
}
.category-159 #main-content .posts h2, 
.category-161 #main-content .posts h2, 
.category-163 #main-content .posts h2 {
    font-size: 18px;
    line-height: 1.1;
}
.category-159 #main-content .posts .post-meta, 
.category-161 #main-content .posts .post-meta, 
.category-163 #main-content .posts .post-meta {
    display: none;
}

/* --- Divi Salvattore (Masonry Grid) Defaults --- */
#left-area .posts .et_pb_salvattore_content[data-columns]::before {
    content: '1 .column.size-1of1' !important;
}
#left-area .posts .column.size-1of1 {
    width: 90% !important;
    margin: 5%;
    float: none;
}
#left-area .posts .et_pb_salvattore_content .et_pb_post {
    border: 1px solid #d8d8d8;
    padding: 19px;
    background-color: #fff;
    word-wrap: break-word;
}

/* --- Floating Phone Button --- */
.floatingphonebutton {
    display: none;
}


/* =========================================
   MEDIA QUERIES 
   ========================================= */

@media (max-width: 1400px) {
    #main-content .homehero {
        background-size: contain;
        background-repeat: no-repeat;
    }
}

@media (max-width: 1070px) {
    .et_pb_menu .et-menu>li {
        padding-left: 8px;
        padding-right: 8px;
    }
    .et-menu .menu-item-has-children>a:first-child {
        padding-right: 14px;
    }
}

@media only screen and (max-width: 768px) {
    .floatingphonebutton {
        display: block;
        position: fixed;
        bottom: 10px;
        right: 15px;
        background: #34a83a;
        z-index: 999;
        padding: 11px 10px 0px 10px;
        border-radius: 50%;
        box-shadow: 0 0 8px 0px #999;
    }
    .floatingphonebutton a {
        font-size: 0;
    }
    .floatingphonebutton a:before {
        content: "\e090";
        font-family: "ETmodules"; /* Added safety quotes */
        font-size: 25px;
        color: white;
    }
}

/* Divi Salvattore (Masonry Grid) Tablet/Desktop */
@media only screen and (min-width: 600px) {
    #left-area .posts .et_pb_salvattore_content[data-columns]::before {
        content: '2 .column.size-1of2' !important;
    }
    #left-area .posts .column.size-1of2 {
        width: 48% !important;
        margin-right: 1%;
        float: left;
    }
}