/* --- PRIORITÀ ASSOLUTA: VIA IL FOOTER --- */
.site-info, 
#colophon .site-info,
.site-footer .site-info {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}
1. DATA E AUTORE (Visibili e Perfetti)
   ========================================================= */

/* Rende visibile la data ovunque */
.home .entry-date,
.home .date,
.home .posted-on,
.home time {
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #666 !important;
}

/* Nasconde i doppioni (aggiornato/updated) */
.home .updated, 
.home .entry-meta .updated {
    display: none !important;
}

/* SOLO SU PC: Inserisce la stanghetta separatrice */
@media screen and (min-width: 900px) {
    .home .entry-date::before,
    .home .date::before,
    .home .posted-on::before,
    .home time::before {
        /* Inserisce: Spazio + Barra + Spazio */
        content: "\00a0\00a0\00a0|\00a0\00a0\00a0" !important; 
        color: #ccc !important;
        opacity: 1 !important;
        display: inline-block !important;
    }
}

/* =========================================================
   2. BARRA SEPARATRICE (Poesia/Filosofia)
   ========================================================= */
hr,
.wp-block-separator {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background-color: #666 !important;
    height: 2px !important;
    border: none !important;
    margin-top: 30px !important;
    margin-bottom: 30px !important;
}

/* =========================================================
   3. TELETRASPORTO LOGO SOPRA IL TITOLO
   ========================================================= */
.post .entry-header, 
.page .entry-header {
    padding-top: 140px !important;
    position: relative !important;
}

.logo-titolo {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    margin-top: 10px !important;
    width: 130px !important;
    height: auto !important;
    z-index: 99 !important;
}

.logo-titolo figcaption {
    display: none !important;
}

/* =========================================================
   4. RIMOZIONE SCRITTA FOOTER (Specifica per Twenty Sixteen)
   ========================================================= */

/* Nasconde la scritta "Proudly powered by..." */
.site-info,
#colophon .site-info {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    font-size: 0 !important; /* Trucco finale per farla sparire */
}

/* Rimuove lo spazio vuoto rimasto in basso */
.site-footer {
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
}
/* --- BAZOOKA: CANCELLA TUTTO IL PIÈ DI PAGINA --- */
footer#colophon, 
.site-footer,
div[class*="site-info"],
.imprint {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}
/* --- MOSTRA DATA ANCHE SU ARTICOLI IN EVIDENZA --- */
.sticky .entry-date,
.sticky .date,
.sticky .posted-on {
    display: inline !important;
    visibility: visible !important;
}

/* Sistema anche la stanghetta separatrice per gli articoli in evidenza */
@media screen and (min-width: 900px) {
    .sticky .posted-on::before {
        content: " | " !important;
        color: #ccc !important;
        margin-right: 15px !important;
        margin-left: 15px !important;
    }
}
/* --- STILE CAPOLETTERA MANUALE --- */
.has-drop-cap:first-letter {
    font-family: 'Playfair Display', serif !important; /* Il tuo font elegante */
    font-size: 4.5em !important;       /* Grandezza */
    font-weight: normal !important;
    color: #000 !important;            /* Nero pieno */
    margin: 0.1em 0.1em 0 0 !important; /* Spaziatura precisa */
    line-height: 0.8 !important;
    float: left !important;
}
/* Nasconde la navigazione Precedente/Successivo a fine post */
.post-navigation, 
.navigation.post-navigation,
.nav-links {
    display: none !important;
}
@media (max-width: 1500) {
    /* Riduci l'altezza del contenitore dell'header */
    .site-header, .ast-main-header-wrap, .elementor-location-header { 
        padding-top: 5px !important;
        padding-bottom: 5px !important;
        min-height: 50px !important; /* Forza un'altezza minima contenuta */
    }

    /* Riduci drasticamente il Logo */
    .custom-logo, .site-logo img, .site-branding img {
        max-height: 35px !important; /* Regola questo numero secondo necessità */
        width: auto !important;
    }
    
 /* Forza il selettore a restare ancorato all'inizio della pagina */
#gt_float_wrapper, 
.gtranslate_wrapper, 
div[class*="gt_container"] {
    position: absolute !important; /* Fondamentale: lo ancora alla pagina, non allo schermo */
    top: 20px !important;         /* Distanza dall'inizio della pagina */
    left: 15px !important;        /* Distanza dal bordo sinistro */
    bottom: auto !important;      /* Annulla eventuali ancoraggi al fondo */
    right: auto !important;
    display: block !important;
    z-index: 100 !important;      /* Lo tiene sopra l'header ma non sopra tutto il resto */
}
