
/* ==========================================
   CW SINGLE POST DESIGN CHANGES
========================================== */

body.single-post div.post-thumbnail {
    display: none;
}

@media (max-width: 600px) {
    body.single-post img {
        width: 100%;
        display: inline-block;
        clear: both;
    }
}


/* ==========================================
   CW SPECIALTY PAGE DESIGN CHANGES
========================================== */

.page-id-8313 .header,
.page-id-8381 .header,
.page-id-8654 .header,
.page-id-8671 .header,
.page-id-8717 .header,
.page-id-8733 .header,
.page-id-8750 .header,
.page-id-8764 .header,
.page-id-8785 .header,
.page-id-8798 .header,
.page-id-8813 .header,
.page-id-8870 .header,
.page-id-8842 .header,
.page-id-8857 .header,
.page-id-8884 .header,
.page-id-8894 .header,
.page-id-8907 .header,
.page-id-4 .header,
.page-id-5 .header {
    padding: 140px 15px !important;
}

@media only screen and (max-width: 768px) {
    li {
        font-size: 0.9em;
    }
}

@media only screen and (max-width: 600px) {
    .wpforms-container.inline-fields .wpforms-form {
        display: block !important;
    }

    .wpforms-field-container {
        width: 100% !important;
        display: block !important;
    }

    .wpforms-field {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .wpforms-submit-container {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}


/* ==========================================
   CW FOOTER DESIGN CHANGES
========================================== */

.footer-widgets.clear {
    border-top: none;
    border-bottom: none;
}

footer#colophon {
    margin-bottom: 0;
}

div.site-info {
    display: none;
}

.wp-block-jetpack-subscriptions__container {
    color: black;
}

#subscribe-blog-blog_subscription-5 {
    background: #fff;
}

p#subscribe-email input {
    background: white !important;
    border: none !important;
}

p#subscribe-submit button {
    background: #7469b6;
}

div.child-pages.columns.clear {
    margin-bottom: 0;
    margin-top: 0;
}

.hentry {
    margin-bottom: 0;
}

.entry-content {
    margin-bottom: 0;
}

div.social-block {
    display: none;
}


/* ==========================================
   CW HEADER CHANGES
========================================== */

.page-id-8313 .header {
    padding-top: 140px !important;
    padding-bottom: 140px !important;
}

@media only screen and (min-width: 1200px) {
    .site-branding img {
        max-width: 80%;
    }

    .cw-nav-button {
        margin-top: -10px !important;
    }
}

.cw-nav-button {
    background-color: #6c3a7f;
    padding: 10px 30px;
}

.cw-nav-button:hover {
    background-color: #9452b4;
}

.cw-nav-button a,
.cw-nav-button a:hover,
.cw-nav-button a:active {
    color: #fff !important;
}

li#menu-item-8167 a {
    color: #fff !important;
}


/* /* ==========================================
   SCHEDULE A FREE CALL BUTTON
   MENU ITEM ID: 10945
========================================== */

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

    ul:has(> #menu-item-10945) {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }

    #menu-item-10945 {
        position: static !important;
        margin: 0 0 0 15px !important;
        display: flex !important;
        align-items: center !important;
        flex-shrink: 0 !important;
    }

    #menu-item-10945 > a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        background-color: #6c3a7f !important;
        color: #fff !important;
        padding: 14px 30px !important;
        line-height: 18px !important;
        margin: 0 !important;
        white-space: nowrap !important;
        text-decoration: none !important;
        border-radius: 3px !important;
    }

    #menu-item-10945 > a:hover {
        background-color: #9452b4 !important;
        color: #fff !important;
    }
}

/* ==========================================
   MOBILE HEADER AND MENU FIX
========================================== */

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

    /* Header */
    #masthead {
        background-color: #fff !important;
        width: 100% !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    /* Logo */
    .site-branding {
        width: 100% !important;
        float: none !important;
        text-align: center !important;
        margin: 0 auto !important;
        padding: 12px 10px 5px !important;
        box-sizing: border-box !important;
    }

    .site-branding img,
    .custom-logo {
        display: block !important;
        width: auto !important;
        max-width: 190px !important;
        max-height: 75px !important;
        height: auto !important;
        margin: 0 auto !important;
    }

    /* Navigation container */
    nav#site-navigation {
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 15px 12px !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    /* Schedule a Free Call button below logo */
    nav#site-navigation #menu-item-10945 {
        display: block !important;
        width: 100% !important;
        max-width: 280px !important;
        margin: 8px auto 12px !important;
        padding: 0 !important;
        float: none !important;
        position: static !important;
        list-style: none !important;
    }

    nav#site-navigation #menu-item-10945 > a {
        display: block !important;
        width: 100% !important;
        padding: 13px 15px !important;
        background-color: #6c3a7f !important;
        color: #fff !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        line-height: 20px !important;
        text-align: center !important;
        text-decoration: none !important;
        border-radius: 5px !important;
        box-sizing: border-box !important;
    }

    nav#site-navigation #menu-item-10945 > a:hover {
        background-color: #9452b4 !important;
        color: #fff !important;
    }

    /* Menu toggle */
    button.menu-toggle {
        display: block !important;
        margin: 8px auto 12px !important;
        padding: 9px 22px !important;
        background-color: #fff !important;
        color: #6c3a7f !important;
        border: 1px solid #6c3a7f !important;
        border-radius: 4px !important;
        font-size: 12px !important;
        line-height: 18px !important;
    }

    /* Keep the theme's menu open/close functionality */
    nav#site-navigation ul.menu,
    nav#site-navigation ul.nav-menu {
        display: none;
        width: 100% !important;
        padding: 5px 0 !important;
        margin: 0 !important;
        background-color: #fff !important;
        box-sizing: border-box !important;
    }

    nav#site-navigation.toggled ul.menu,
    nav#site-navigation.toggled ul.nav-menu {
        display: block !important;
    }

    /* Main menu links */
    nav#site-navigation ul.menu > li > a,
    nav#site-navigation ul.nav-menu > li > a {
        display: block !important;
        width: 100% !important;
        padding: 12px 10px !important;
        color: #333 !important;
        font-size: 13px !important;
        line-height: 20px !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    /* Submenu links */
    nav#site-navigation ul.sub-menu li a {
        padding: 10px 12px !important;
        font-size: 12px !important;
        line-height: 18px !important;
        text-align: center !important;
    }
}


/* ==========================================
   MOBILE HEADER OPTIMIZATION
========================================== */

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

    /* Header alignment */
    #masthead {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Logo */
    .site-branding {
        width: 100% !important;
        text-align: center !important;
        margin: 0 auto !important;
        padding: 5px 0 12px !important;
    }

    .site-branding img,
    .custom-logo {
        display: block !important;
        max-width: 180px !important;
        max-height: 75px !important;
        width: auto !important;
        height: auto !important;
        margin: 0 auto !important;
    }

    /* Navigation container */
    nav#site-navigation {
        width: 100% !important;
        margin: 0 !important;
        float: none !important;
        text-align: center !important;
    }

    /* Mobile menu toggle */
    button.menu-toggle {
        display: block !important;
        margin: 5px auto 10px !important;
        padding: 10px 20px !important;
        color: #6c3a7f !important;
        border: 1px solid #6c3a7f !important;
        border-radius: 3px !important;
        font-size: 14px !important;
    }

    /* Main navigation links */
    nav#site-navigation ul.menu > li > a,
    nav#site-navigation ul.nav-menu > li > a {
        display: block !important;
        padding: 12px 15px !important;
        font-size: 14px !important;
        line-height: 20px !important;
        text-align: center !important;
    }

    /* Submenu links */
    nav#site-navigation ul.sub-menu li a {
        padding: 9px 15px !important;
        font-size: 12px !important;
        line-height: 18px !important;
        text-align: center !important;
    }

    /* Schedule a Free Call button */
    #menu-item-10936 {
        width: 90% !important;
        max-width: 320px !important;
        margin: 12px auto !important;
        position: static !important;
        display: block !important;
        text-align: center !important;
    }

    #menu-item-10936 > a {
        display: block !important;
        width: 100% !important;
        padding: 13px 15px !important;
        box-sizing: border-box !important;
        background-color: #6c3a7f !important;
        color: #fff !important;
        text-align: center !important;
        font-size: 14px !important;
        line-height: 20px !important;
        white-space: normal !important;
    }

    #menu-item-10936 > a:hover {
        background-color: #9452b4 !important;
        color: #fff !important;
    }
}


/* ==========================================
   CW FONT CHANGES
========================================== */

h2,
h3 {
    text-transform: capitalize !important;
    color: #6C3A7F !important;
}

.panel-row-style-for-2444-1 a,
.panel-row-style-for-2444-2 a {
    color: #6C3A7F !important;
}


/* ==========================================
   HOMEPAGE DESIGN CHANGES
========================================== */

.home h2.entry-title:after {
    background-color: rgba(0, 0, 0, .25);
    max-width: 70px;
    height: 3px;
    margin: 20px auto 1em;
    display: block;
    content: '';
}


/* ==========================================
   CALL BOOKING BUTTON
========================================== */

a.actionbook {
    color: #fff;
    width: 56% !important;
    box-sizing: border-box;
}

span.callbook-icona-busta-lettera,
.callbook_under,
.callbook_logo {
    display: none;
}

.actioncall {
    padding-right: 0;
    padding-left: 1.25em;
    text-align: left !important;
    width: 44% !important;
    box-sizing: border-box;
}

#callbook > a > span.callbook-align {
    text-transform: none;
}

#cookie-law-info-again {
    bottom: 60px !important;
    right: 10px !important;
}

@media only screen and (max-device-width: 736px) and (min-device-width: 320px) {
    .actionbook {
        box-sizing: border-box;
        padding-left: 0;
        padding-right: 1em;
    }
}


/* ==========================================
   HEADER COLOUR AND LAYOUT
========================================== */

#masthead {
    background-color: white;
}

li.menu-item a {
    color: black !important;
}

ul.sub-menu {
    background-color: white !important;
}

nav#site-navigation {
    margin-top: 30px;
}

button.menu-toggle {
    color: black !important;
}


/* ==========================================
   CONTENT AND SECTION SPACING
========================================== */

@media screen and (min-width: 80em) {
    .content-caption {
        max-width: 60% !important;
    }
}

@media screen and (min-width: 55em) {
    .standard-menu .section {
        padding-top: 7%;
        padding-bottom: 4%;
    }
}

#pl-2438 {
    font-style: normal;
}


/* ==========================================
   FOOTER COLOUR
========================================== */

footer.site-footer {
    background-color: #6C3A7F;
}

footer.site-footer a {
    color: white !important;
    text-decoration: underline;
}

footer.site-footer h2,
footer.site-footer h3 {
    color: white !important;
}

@media screen and (max-width: 55em) {
    .social-block {
        background-color: #604860;
    }
}


/* ==========================================
   BUTTON DESIGN
========================================== */

a.button {
    color: white !important;
    background-color: #6c3a7f !important;
}

a.button:hover {
    background-color: #9452b4 !important;
}


/* ==========================================
   TOP BAR
========================================== */

div#tpbr_topbar #tpbr_box {
    font-family: 'Merriweather', Times, serif !important;
}


/* ==========================================
   BLOG TITLE SIZES
========================================== */

body.blog h2.entry-title {
    font-size: 1rem !important;
}

.sidebar-right-layout .wp-post-image,
.single .wp-post-image,
.page .wp-post-image {
    margin-bottom: .875em;
    height: 100%;
    max-height: 278px;
}


/* ==========================================
   GENERAL MOBILE STYLES
========================================== */

@media (max-width: 550px) {

    p {
        font-size: .9em;
    }

    .content-caption .entry-content .button {
        font-size: 13px;
        font-style: normal;
        padding: 12px 15px;
        display: inline-block;
        margin-bottom: 5px;
        text-align: center;
    }

    .welcome-btn {
        display: block;
        width: 100%;
        font-size: 14px !important;
        margin-bottom: 10px !important;
    }

    div.sow-accordion-open-close-button {
        padding-left: 30px;
    }
}


/* ==========================================
   END OF CUSTOM CSS
========================================== */
