/*
Theme Name: CCI Piemonte
Theme URI: https://github.com/nodesoccoop/wp-piemonte
Author: Node / AG
Author URI: https://territoriale-wp.nodetest.it
Description: Child theme di "Territoriale" per le personalizzazioni locali del sito Confcooperative Piemonte
Template: territoriale
Version: 2.0.0
Requires at least: 5.9
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: territoriale-child
Tags: custom-theme
*/

/* fix - Parent theme */
.article-listing__footer .fa-eye, .article-content__footer .fa-eye,
.article-listing__footer .fa-calendar, .article-content__date .fa-calendar,
.card-grid__body .fa-calendar {
    display: none;
}

/* fix - Blocco ACF "Banner Menu News": colonne in base alla larghezza del blocco, non della finestra */
.bannerCCI-news {
    container-type: inline-size;
    container-name: banner-cci-news;
}

/* il titolo non deve finire sotto la decorazione a destra (larga 100px) */
.bannerCCI-news__item .bannerCCI-news__title {
    padding-right: calc(100px + 0.5rem);
}

/* blocco stretto (es. pagine con sidebar): 2 box per riga e spaziatura ridotta */
@container banner-cci-news (max-width: 899.98px) {
    .bannerCCI-news > .row {
        --bs-gutter-x: 1.5rem;
        --bs-gutter-y: 1.5rem;
    }
    .bannerCCI-news > .row > [class*="col-"] {
        flex: 0 0 auto;
        width: 50%;
    }
}

/* blocco molto stretto: 1 box per riga */
@container banner-cci-news (max-width: 479.98px) {
    .bannerCCI-news > .row > [class*="col-"] {
        width: 100%;
    }
}