/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */


.bapf_tag_cloud ul {
    text-align: left;
}

 .bapf_tag_cloud.casa-editrice-filter input[type=checkbox]+label {
    padding: 3px !important;
    background-color: #214597;
	color:#fff;font-size:16px;
}

 .bapf_tag_cloud.marchi-filter input[type=checkbox]+label{ background-color: #cca400;
	color:#fff;font-size:16px;}
	
	
 .bapf_tag_cloud.tipologia-filter input[type=checkbox]+label{ background-color: #ee876b;
	color:#fff;font-size:16px;}
	
	
.prezzo-filter .irs--flat .irs-from, .prezzo-filter .irs--flat .irs-single, .prezzo-filter .irs--flat .irs-to {
    color: #fff;
    font-size: 10px;
    line-height: 1.333;
    text-shadow: none;
    padding: 1px 5px;
    background-color: #214597;
    border-radius: 4px;
}

.prezzo-filter .irs--flat .irs-bar {
    top: 25px;
    height: 12px;
    background-color: #214597;
}
	
a {
    background-color: transparent;
    text-decoration: none;
    color: #c9a204;
}	
	
	
	.bapf_srch.bapf_button_icon span.bapf_search:hover {
    color: #ffffff;
}
[type=button]:focus, [type=button]:hover, [type=submit]:focus, [type=submit]:hover, button:focus, button:hover {
    background-color: #3F51B5;

}

[type=button], [type=submit], button {
    border: 0px solid #c36;
}

.mec-event-cost, .mec-event-more-info, .mec-event-website, .mec-events-meta-date, .mec-single-event-additional-organizers, .mec-single-event-category, .mec-single-event-date, .mec-single-event-label, .mec-single-event-location, .mec-single-event-organizer, .mec-single-event-time {
    background: #fff;

}

.mec-single-event .mec-event-meta .mec-events-event-categories a, .mec-single-event .mec-event-meta dd {
    color: #000000;
}

.mec-single-event .mec-event-meta .mec-events-address {
    color: #000000;
}

.mec-wrap p {    color: #000000;}

.woocommerce-message {
    border-top-color: #8fae1b;
}

.woocommerce-error, .woocommerce-info, .woocommerce-message {
    background-color: #F6EAE047;
    color: #2a3074;
    border-top: 3px solid #2a3074;
}

.woocommerce-message::before {
    color: #8fae1b;
}
	
	
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button {
    color: #fff;
    background-color: #2a3074;
    font-weight: 400;
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button:hover {
    background-color: #c9a204;
    text-decoration: none;
    background-image: none;
    color: #fff;
}
	
	.woocommerce nav.woocommerce-pagination ul li a:focus, .woocommerce nav.woocommerce-pagination ul li a:hover, .woocommerce nav.woocommerce-pagination ul li span.current {
    color: #fff;
    background-color: #2a3074;
}

#add_payment_method #payment div.payment_box, .woocommerce-cart #payment div.payment_box, .woocommerce-checkout #payment div.payment_box {
     color: #fff;
    background-color: #2a3074;
}

#add_payment_method #payment div.payment_box::before, .woocommerce-cart #payment div.payment_box::before, .woocommerce-checkout #payment div.payment_box::before {
    border: 1em solid #2a3074;    border-right-color: transparent;
    border-left-color: transparent;
    border-top-color: transparent;}

.woocommerce nav.woocommerce-pagination ul li {
    border-right: 1px solid #2a3074;
 
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button.alt {
       color: #fff;
    background-color: #2a3074;
    -webkit-font-smoothing: antialiased;
}

label.error a, .woocommerce-error  a{
    color: #ffffff !important;
  
}

.woocommerce nav.woocommerce-pagination ul {
border: 1px solid #2a3074;
}
	
#add_payment_method #payment, .woocommerce-cart #payment, .woocommerce-checkout #payment {
    background: #F6EAE047;

}	
	
.elementor-menu-cart__footer-buttons .elementor-button--checkout {
    background-color: #2a3074
   
}

.elementor-menu-cart__footer-buttons .elementor-button--view-cart {
background-color: #2a3074
}
	
.prezzo-filter .irs--flat .irs-handle>i:first-child {
background-color: #214597;}

 .bapf_sfilter.bapf_button_berocket.reset-filter .bapf_button {
    font-size: 14px;

    background-color: #214597;
    border-radius: 0px;
}
	
.info-evento-shortcode{    font-size: 20px;
   margin: -9px 0 19px 35px !important;
    color: #8A99A8 !important; }

.info-evento h5 {
    font-size: 20px;
    margin: -9px 0 19px 35px !important;
    color: #8A99A8 !important;
    margin: 0;
}


/* Container Eventi */
.pi-mese-titolo {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #2c3e50;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
}

.pi-eventi-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

/* Card Singolo Evento Layout a Griglia 1/5 e 4/5 */
.pi-evento-item {
    display: flex;
    flex-direction: row; /* Mantiene l'allineamento orizzontale */
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    gap: 20px; /* Spazio tra immagine e blocco testo */
    transition: all 0.2s ease-in-out;
}

.pi-evento-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* Immagine a Sinistra: occupa esattamente 1/5 dello spazio (20%) */
.pi-evento-thumb {
    flex: 0 0 20%; /* Fissa la larghezza al 20% (1/5) */
    max-width: 20%;
    aspect-ratio: 4 / 3; /* Mantiene una proporzione armoniosa per le foto */
    overflow: hidden;
    border-radius: 6px;
}

.pi-evento-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pi-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 24px;
}

/* Blocco Testi a Destra: occupa i restanti 4/5 dello spazio */
.pi-evento-details {
    flex: 0 0 calc(80% - 20px); /* 80% meno il gap tra i blocchi */
    max-width: calc(80% - 20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pi-evento-title {
    margin: 4px 0 8px 0 !important;
    font-size: 1.25rem;
    line-height: 1.3;
}

.pi-evento-title a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
}

.pi-evento-title a:hover {
    color: #ba7460; /* Colore verde in hover */
}

/* Meta Data, Ora e Luogo */
.pi-evento-meta {
    font-size: 0.92rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.pi-evento-meta .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #ba7460;
}

/* Stili per Eventi Passati */
.pi-evento-item.evento-passato {
    opacity: 0.65;
    background-color: #f8fafc;
}

.pi-badge-passato {
    font-size: 0.75rem;
    background-color: #94a3b8;
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    vertical-align: middle;
    margin-left: 8px;
    font-weight: normal;
}




/* Ottimizzazione Mobile (sotto i 600px passa in verticale per non schiacciare le foto) */
@media (max-width: 600px) {
    .pi-evento-item {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .pi-evento-thumb,
    .pi-evento-details {
        flex: 0 0 100%;
        max-width: 100%;