/*
Theme Name:     Public Policy
Theme URI: 		https://www.publicpolicy.it
Description:    Il tema grafico del sito PublicPolicy.it
Author:         Carattere Mobile
Author URI: 	http://caratteremobile.com
Template:       Newspaper
Version:        1.11.0
*/


/*  ----------------------------------------------------------------------------
    This file will load automatically when the child theme is active. You can use it
    for custom CSS.
*/

/* Logo : Diminuisco margin e padding intorno */
.td-header-row [class*="td-header-sp"] {
    padding-right: 0;
    padding-left: 0;
}

.td-header-style-1 .td-header-sp-logo {
    margin: 18px 18px 18px 18px;
}

.td-header-style-1 .td-header-header > .td-header-sp-logo {
    margin-bottom: 18px; 
}

/* HEADER AD: Allineo il banner a destra */
.td-header-row {
    position: relative
}

.td-header-row > .td-header-sp-recs {
    float: right;
}

.td-header-row > .td-header-sp-recs,
.td-header-style-1 .td-header-row > .td-header-sp-recs {
    margin: 18px 0;
}

/* Menù Header boxato blu */
.td-header-main-menu {
    background-color: #0073aa;
}

/* Banner Responsive */
.OpenDecBannerPage {
    width: 100%;
    padding-bottom: 18.76%;
}

.responsive_img > a.td_single_image_bg {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-size: 100%;
}

/* WooCommerce */
.woocommerce .product span.onsale,
.woocommerce .product > span.onsale {
    background-color: #E93A25;
}

/* CF7 */
select.wpcf7-form-control {
    font-size: 12px;
    line-height: 21px;
    color: #444;
    border: 1px solid #e1e1e1;
    width: 100%;
    max-width: 100%;
    height: 34px;
    padding: 3px 25px 3px 6px;
}

select.wpcf7-form-control > option {
    color: #444;
}

.public-policy-menu-item,
.policy-europe-menu-item {
    background-color: #fff;
}
.public-policy-menu-item a,
.policy-europe-menu-item a {
    width: 160px;
    text-indent: -9999px;
}

.public-policy-menu-item a {
    background: transparent url('images/public-policy-logo.svg') no-repeat 50% 60%;
    background-size: 130px auto;
}

.policy-europe-menu-item a {
    background: transparent url('images/public-policy-europe-logo.svg') no-repeat 50% 60%;
    background-size: 130px auto;
}


@media (min-width: 1019px) and (max-width: 1140px) {
    .policy-europe-menu-item a{
        width: 120px;
        background-image: url('images/p-europe-logo.svg');
        background-size: 90px auto;
    }

    .public-policy-menu-item a {
        width: 120px;
        background-size: 90px auto;
    }
}

@media (min-width: 768px) and (max-width: 1018px) {
    .policy-europe-menu-item a{
        width: 60px;
        background-size: 42px auto;
        background-image: url('images/p-e-logo.svg');
    }

    .public-policy-menu-item a {
        width: 60px;
        background-size: 42px auto;
    }
}

.td-mobile-main-menu .policy-europe-menu-item a {
    width: 180px;
    text-indent: -9999px;
    background: transparent url('images/public-policy-europe-logo.svg') no-repeat 12px 60%;
    background-size: 140px auto;
}

a.td-post-category[href$="/policy-europe"] {
    background-color: rgba(254, 191, 47, 0.7);
}

a.td-post-category[href$="/policy-bytes"],
a.td-post-category[href$="/ia"],
a.td-post-category[href$="/reti-sociali"],
a.td-post-category[href$="/cybersecurity"],
a.td-post-category[href$="/big-tech"], 
a.td-post-category[href$="/diritti-digitali"] {
    background-color: rgba(255, 65, 78, 0.7);
}

.home .td-grid-style-1 .td-big-grid-post a.td-post-category[href*="/policy-europe"] {
    /* background-color: rgba(254, 191, 47, 0.7); */
        text-indent: -9999px;
        width: 155px;
        height: 30px;
        /* background: rgba(0,0,0,.7) url('images/policy-europe-logo.svg') no-repeat 50%; */
        background: transparent url('images/public-policy-europe-logo.svg') no-repeat 50% 60%;
        background-size: 140px auto;    
}

.home .td-grid-style-1 .td-big-grid-post a.td-post-category[href*="/policy-bytes"] {
    /* background-color: rgba(254, 191, 47, 0.7); */
        text-indent: -9999px;
        width: 155px;
        height: 30px;
        /* background: rgba(0,0,0,.7) url('images/policy-europe-logo.svg') no-repeat 50%; */
        background: transparent url('images/public-policy-bytes-logo.svg') no-repeat 50% 60%;
        background-size: 140px auto;    
}

.home .td-grid-style-1.td-hover-1 .td-big-grid-post:hover .td-post-category[href*="/policy-europe"],
.home .td-grid-style-1.td-hover-1 .td-big-grid-post:hover .td-post-category[href*="/policy-bytes"] {
    background-color: #fff;
}