/*!
Theme Name: dto 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: liviaeirene
*/


/* ul list inline */

.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) */
}

.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, #00B8DE 0%, rgba(0, 184, 222, 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;
}

/* 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 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 {
    color: #000000 !important;
}

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 {
    color: #000000 !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;
}

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