/* 
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 */

/*Testo iniziale*/
.testo-home{
    line-height: 1.7 !important;
}
/*FINE Testo iniziale*/

/*Card Grid*/
/* 1. Trasforma il contenitore principale in una griglia Flex moderna */
.card-post-grid .eael-post-grid {
    display: flex !important;
    flex-wrap: wrap !important;
}

/* 2. Forza ciascun articolo (card) ad allungarsi al 100% dell'altezza della riga */
.card-post-grid article.eael-grid-post {
    display: flex !important;
    flex-direction: column !important;
}

/* 3. Estende l'holder interno per tutta l'altezza disponibile */
.card-post-grid .eael-grid-post-holder,
.card-post-grid .eael-grid-post-holder-inner {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    height: 100% !important;
}
/*FINE Card Grid*/

/*Ricerca Tool e Pagina Risultati*/
.search-results .page-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px; /* Portato a 20px per staccare meglio i box come l'originale */
    max-width: min(100%, var(--width, 1140px)) !important;
}

.search-results .asl_res_url{
    color: #1f2022 !important;
    font-family: Arial !important;
    font-size: 16px !important;
}

.search-results .post img{
    display: none;
}

.search-results .entry-title a{
    color: #1F2022 !important;
    font-family: Georgia !important;
    font-weight: 700;
    font-size: 20px;
    text-decoration: none;

}
.search-results .entry-title a .asl_single_highlighted.asl_single_highlighted_exact,
.search-results .entry-title p .asl_single_highlighted.asl_single_highlighted_exact{
    background-color: #f4f4f5 !important;
}

.search-results .page-content .post {
    background-color: #f4f4f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px; /* Aumentato leggermente per dare più respiro */

    /* MODIFICA FONDAMENTALE: permette alle card di essere alte uguali e gestire lo spazio interno */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
}

.search-results .page-content .entry-title a:hover {
    color: #8f6900 !important;
}

.search-results .page-content .entry-title {
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.3;
}

.search-results .page-content .post p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0 0 15px 0; /* Spazio inferiore prima del Leggi di più */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #1f2022;
}

/* STILE PER IL NUOVO LINK "LEGGI DI PIÙ" */
.search-results .page-content .post .leggi-di-piu {
    display: inline-block;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #8f6900 !important; /* Colore oro/ocra ripreso dall'immagine originale */
    text-decoration: underline;
}

.search-results .page-content .post .leggi-di-piu:hover {
    color: #5a4200 !important;
}

.search-results .nav-next a,
.search-results .nav-previous a{
    color: #1f2022;
    text-decoration: underline;
}

.search-results .site-main{
    max-width: 100% !important;
    padding: 40px 80px !important;
    display: flex;
    gap: 20px;
    flex-direction: column;
}
.search-results .page-content,
.search-results .entry-title{
    max-width: 100% !important;
    margin: 0;
}
.pagination{
    margin: unset;
}

/* Schermi medi (es. Tablet): passa a 2 colonne */
@media (max-width: 1024px) {
    .page-content {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Schermi piccoli (es. Smartphone): passa a colonna singola */
@media (max-width: 600px) {
    .page-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}
/*FINE Ricerca Tool e Pagina Risultati*/


/*Articoli*/

.single-post main a, .single-post main a strong{
    color: #8f6900 !important;
}
.single-post main a:hover, .single-post main a strong:hover{
    color: #5a4200 !important;
}
.single-post  .page-content,
.single-post  .entry-title{
    max-width: 100% !important;
    margin: 0;
}

.single-post .site-main {
    max-width: 100% !important;
    /* Eredita la larghezza massima globale impostata su Elementor */
    width: min(100%, var(--width, 1140px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 40px 80px !important;
    box-sizing: border-box;
    width: 100% !important;
}

@media (max-width: 1024px) {
    .search-results .site-main,
    .single-post .site-main {
        /* Riduce il padding a 20px su schermi piccoli per non schiacciare il testo */
        padding: 20px !important;
    }
}
/*FINE Articoli*/









@media (min-width: 1025px) and (max-width: 1470px) {
    .elementor-widget-navigation-menu ul li a {
        padding: 5px !important;
        font-size: 14px !important;
    }

    /* Assicura che il contenitore principale usi flex e non mandi a capo gli elementi */
    .elementor-element-2fae7b0 {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }

    /* 1. BLOCCO LOGO (Sinistra) - 20% */
    .elementor-element-2fae7b0 > .elementor-element-1b133f5 {
        flex: 0 0 10% !important;
        max-width: 10% !important;
    }

    /* 2. BLOCCO MENU DESKTOP (Centro) - 60% */
    .elementor-element-2fae7b0 > .elementor-element-66a9807 {
        flex: 0 0 80% !important;
        max-width: 80% !important;
    }

    /* 3. BLOCCO RICERCA AJAX (Destra) - 20% */
    .elementor-element-2fae7b0 > .elementor-element-792ebc7 {
        flex: 0 0 10% !important;
        max-width: 10% !important;
    }
    .asl_w_container{
        margin: 0px 80px 0px 0px;
        min-width: fit-content;
    }
    .div.asl_m .probox .proinput{
        margin: 0px;
    }
}
