/**
 * Homepage Title Fix - Rimuove titoli duplicati
 * Nasconde il titolo "Amministrazione Trasparente" ripetuto 3 volte
 */

/* ===== NASCONDI TITOLO DUPLICATO HOMEPAGE ===== */

/* Nascondi il titolo della pagina se è uguale al titolo del sito */
.home .entry-content>h1:first-child,
.home .entry-content>h2:first-child,
.home .entry-content>h3:first-child {
    display: none;
}

/* Nascondi anche se è dentro un div o paragrafo */
.home .entry-content>div:first-child>h1:first-child,
.home .entry-content>div:first-child>h2:first-child,
.home .entry-content>div:first-child>h3:first-child,
.home .entry-content>p:first-child>h1:first-child,
.home .entry-content>p:first-child>h2:first-child,
.home .entry-content>p:first-child>h3:first-child {
    display: none;
}

/* Nascondi titolo con bordo blu a sinistra (specifico per "Amministrazione Trasparente") */
.home .entry-content h1[style*="border-left"],
.home .entry-content h2[style*="border-left"],
.home .entry-content h3[style*="border-left"] {
    display: none;
}

/* Alternativa: nascondi solo se contiene esattamente "Amministrazione Trasparente" */
.home .entry-content h1:contains("Amministrazione Trasparente"),
.home .entry-content h2:contains("Amministrazione Trasparente"),
.home .entry-content h3:contains("Amministrazione Trasparente") {
    display: none;
}

/* ===== MANTIENI SOLO HERO SECTION ===== */

/* Hero section rimane visibile */
.hero-section {
    display: block !important;
}

.hero-section h1 {
    display: block !important;
}

/* ===== SPAZIATURA DOPO RIMOZIONE TITOLO ===== */

/* Riduci spazio in alto se il primo elemento è nascosto */
.home .entry-content {
    padding-top: 0;
}

.home .entry-content>*:first-child {
    margin-top: 0;
}

/* ===== ALTERNATIVE SPECIFICHE ===== */

/* Se il titolo ha una classe specifica */
.home .page-title,
.home .entry-title {
    display: none;
}

/* Se è dentro un header */
.home .entry-content>header:first-child,
.home .entry-content>.page-header:first-child {
    display: none;
}

/* ===== MANTIENI TITOLI SEZIONI ===== */

/* Mantieni titoli delle sezioni (non il primo) */
.home .entry-content h2:not(:first-child),
.home .entry-content h3:not(:first-child) {
    display: block !important;
}

/* Mantieni titoli dentro le card/celle della tabella */
.home .entry-content table h2,
.home .entry-content table h3,
.home .entry-content table strong {
    display: block !important;
}