/*!
Theme Name: Fotovoltaici Group Kadence Child
Template: kadence
Author: F. Buratti
Author URI: https://filippoburatti.net/
Description: A child theme for the Kadence Theme.
Version: 1.0.0
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: fotovoltaicigroup
*/


/* ul list */

.list.list-inline {

}

.list-inline > li {
    /* Rimuove i margini predefiniti, usa un padding orizzontale come separatore */
    display: inline-block; 
    padding: 0; /* Spaziatura orizzontale leggera tra gli elementi */
    margin:0;
}

/* Spaziatura: applica 1rem a destra, eccetto l'ultimo elemento */
.list-inline > li:not(:last-child) {
    margin-right: 1rem; /* Spaziatura pulita e scalabile (circa 16px) */
}


.single-content ul.wp-block-list, 
.single-content ol.wp-block-list {
    padding-left: 1.2em;
    margin-left: 0;
}

.site-main > .entry-header {
    margin-bottom: 3rem !important;
}

.entry-header h1::after,
.gradient-line::after {
    content: "";
    display: block;
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, #00965E 0%, rgba(0, 150, 94, 0) 100%);
    margin-top: 8px;
}

/* HERO ARCHIVI */

.entry-hero-container-inner .entry-header {
    min-height:auto !important;
    padding: 1em 0 2em 0;
    margin-bottom: 0;
}

.archive-description img.alignright, .archive-description img.alignleft { margin-bottom: 2rem;}

/* CAROUSEL */
.wp-block-kadence-advancedgallery .kb-gallery-pause-button {
    padding: 4px 6px !important;
}

.kb-advanced-slider .kb-splide .splide__arrow { height: 2em !important; }

.kb-advanced-slider .kb-splide .splide__pagination, 
.kb-advanced-slider .kb-splide ul.splide__pagination.splide__pagination {
bottom: clamp(0.75rem, 2vw, 1.2rem) !important;
}

/* MAIN HEADER */
.header-button, .mobile-header-button {
    display: inline-flex !important;
    align-items: center;
    gap: 8px; /* Spazio tra testo e icona */
}
.header-button::after, .mobile-header-button::after {
    content: "";
    width: 1em;
    height: 1em;
    background-color: currentColor; /* L'icona prenderà lo stesso colore del testo */
    
    /* Codifica dell'SVG che hai fornito */
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line></svg>') no-repeat center;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line></svg>') no-repeat center;
    
    mask-size: contain;
    -webkit-mask-size: contain;
}

/* NAVIGATION */
.widget_pages a:hover, .widget_nav_menu a:hover, 
.main-navigation .primary-menu-container > ul > li.menu-item > a:hover,
.header-navigation .header-menu-container ul ul li.menu-item > a:hover {
    text-decoration: underline !important;
}

/* -----------------------------------------------------
 * Allineameto verticale CARD
 * ----------------------------------------------------- */
 .card-equal-height .wp-block-kadence-column > .kt-inside-inner-col {
    height: 100%;
    display: flex;
 }

 .card-equal-height .wp-block-kadence-column > .kt-inside-inner-col > .wp-block-kadence-column {
    flex-grow: 1;
 }

.card-equal-height .wp-block-kadence-advancedbtn { margin-top: auto !important; }

/* -----------------------------------------------------
 * Allineameto verticale LOOP ARTICOLI - block & archive
 * ----------------------------------------------------- */
article.entry.loop-entry {
	display: grid;
	grid-template-rows: auto 1fr;
}

.loop-entry.type-post .entry-taxonomies .category-style-pill a {
}

article.entry.loop-entry .entry-content-wrap {
	display: flex;
	flex-direction: column;
}

article.entry.loop-entry .entry-header .entry-meta {
    margin-bottom: 0; 
} 

article.entry.loop-entry .entry-summary, 
article.entry.loop-entry .entry-summary p {
    margin:0;
} 

article.entry.loop-entry .entry-footer {
    margin-top: auto; 
} 

article.entry.loop-entry .entry-footer .more-link-wrap {
    margin-top: var(--global-xs-spacing);
}

article.entry.loop-entry .entry-header + .entry-footer .more-link-wrap {
    margin-top: 0; 
} 

article.entry.loop-entry .entry-footer a.post-more-link {
    font-weight: 700;
    letter-spacing: .025em;
    font-size: 75%;
    /* color: #00b8de; */
}

article.entry.loop-entry .entry-footer a.post-more-link:hover,
article.entry.loop-entry .entry-footer a.post-more-link:focus,
article.entry.loop-entry .entry-footer a.post-more-linka:active {
    color: var(--global-palette-highlight-alt);
}

/* SINGLE POST */
.entry-taxonomies .category-style-pill a {
}


.single-post .entry-content-wrap .kb-row-layout-wrap.wp-block-kadence-rowlayout { margin-bottom: -2rem !important;}


/* STLE CARD ARTICOLI */
.entry.loop-entry {
    box-shadow: 0px 15px 15px -10px rgba(0, 0, 0, 0.1) !important;
}

.entry-related-carousel .kadence-posts-list { margin-bottom: 20px !important;}

/* CORRELATI */
.single-post .entry-related-carousel h3.entry-title {
    font-size: 24px;
    line-height: 1.2;
}
.single-post .entry-related-carousel .entry-footer, 
.single-post .entry-related-carousel .entry-taxonomies {
    display: block;
}

/* FRECCIA READ MORE INFOBOX */
.kt-blocks-info-box-learnmore::after {
    content: "";
    display: inline-block;
    width: 0.8125em; 
    height: 0.8125em; 
    /* Gap personalizzato */
    margin-left: 0.5em;
    /* vertical-align: middle; */
    background-color: currentColor; 
    -webkit-mask-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg viewBox='0 0 448 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z'%3E%3C/path%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg viewBox='0 0 448 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z'%3E%3C/path%3E%3C/svg%3E");
    
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

/* MODAL DIALOG */
/* Il contenitore del dialogo */
.modal-pilota {
    border: none;
    border-radius: 4px; /* Un raggio piccolo è più "tecnico" */
    padding: 0;
    width: 90%;
    max-width: 700px;
    max-height: 85vh; /* Evita che su schermi piccoli esca fuori */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    background: #ffffff;
    overflow-y: auto; /* Permette lo scroll se il testo è lunghissimo */
}

/* Lo sfondo oscurato (Backdrop) */
.modal-pilota::backdrop {
    background: rgba(15, 15, 15, 0.5);
    backdrop-filter: blur(4px); /* Effetto vetro molto moderno */
}

/* Il contenuto interno */
.modal-inner {
    padding: 1.5rem 2rem;
    position: relative;
}

/* Reset e Posizionamento del tasto chiudi */
.close-btn, .close-btn:focus {
    /* Reset stili Kadence/Tema */
    appearance: none;
    -webkit-appearance: none;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0;
    
    /* Dimensioni e Forma */
    width: 32px;
    height: 32px;
    border-radius: 50%;
    
    /* Posizionamento assoluto rispetto a .modal-inner */
    position: absolute;
    top: 15px;
    right: 15px;
    
    /* Centratura della "X" */
    display: flex !important;
    align-items: center;
    justify-content: center;
    
    /* Tipografia e Colore */
    font-family: Arial, sans-serif; /* Per una X pulita e standard */
    font-size: 20px;
    line-height: 1;
    background: #00B8DE; 
    color: #ffffff; 
    cursor: pointer;
    z-index: 99;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #27267e !important;
    color: #ffffff !important;
    transform: rotate(90deg);
}

@media (max-width: 767px) {
    .modal-pilota {
        width: 90%; /* Quasi a tutto schermo per sfruttare la larghezza */
        max-height: 90vh; /* Un po' più alta per far leggere più testo */
    }
    
    .modal-inner {
        padding: 1rem 1.2rem; /* Più spazio sopra per la X, meno ai lati */
    }

    .close-btn {
        top: 10px;
        right: 10px;
    }
}

/* COMPLIANZ */
#cmplz-document {
    font-size: inherit !important;
    max-width: inherit !important;
}

#cmplz-document p {
    font-size: inherit !important;
}

.cmplz-cookiebanner .cmplz-title,
.cmplz-cookiebanner .cmplz-buttons .cmplz-btn { font-weight: 600 !important;}