🎯 CSS BASATO SUL CODICE REALE NEVE
✅ ANALISI COMPLETATA
Ho analizzato il codice HTML reale del tuo sito. Ora so esattamente come targettare gli elementi Neve!
🔥 CSS FINALE – BASATO SU ANALISI REALE:
@media screen and (min-width: 768px) {
/* OVERRIDE CSS Variables di Neve */
:root {
–wp–style–block-gap: 5px !important;
}
/* TEMA NEVE – Container principali */
html body.neve_main_layout_contained .nv-content-wrap,
html body .neve-main,
html body .container,
html body .nv-content-wrap .container {
margin: 0 auto !important;
padding: 5px 15px !important;
}
/* GUTENBERG Blocks – Tutte le classi wp-block */
html body .wp-block-group,
html body .wp-block-columns,
html body .wp-block-cover,
html body .wp-block-heading,
html body .wp-block-paragraph,
html body .wp-block-image,
html body .wp-block-buttons,
html body .wp-block-button,
html body [class*=”wp-block-“] {
margin: 0 0 6px 0 !important;
padding: 3px 0 !important;
}
/* LAYOUT Flex e Grid – Override Gutenberg */
html body .is-layout-flex,
html body .is-layout-grid {
gap: 8px !important;
margin: 0 0 5px 0 !important;
}
html body .wp-block-columns.is-layout-flex,
html body .wp-block-columns.is-layout-grid {
gap: 10px !important;
margin: 0 0 6px 0 !important;
}
/* PARAGRAFI – Ogni tipo */
html body p,
html body .wp-block-paragraph p,
html body [class*=”content”] p,
html body div p {
margin: 0 0 5px 0 !important;
padding: 1px 0 !important;
line-height: 1.3 !important;
}
/* TITOLI – Ogni livello con massima specificità */
html body h1,
html body h2,
html body h3,
html body h4,
html body h5,
html body h6,
html body .wp-block-heading h1,
html body .wp-block-heading h2,
html body .wp-block-heading h3,
html body .wp-block-heading h4,
html body .entry-title,
html body [class*=”title”] {
margin: 0 0 4px 0 !important;
padding: 2px 0 !important;
}
/* ELEMENTI con variabili CSS Neve */
html body [class*=”nv-“],
html body [class*=”neve-“] {
margin: 0 0 5px 0 !important;
padding: 3px 0 !important;
}
/* COLONNE – Riduce gap */
html body .wp-block-columns,
html body .wp-block-column {
margin: 0 0 5px 0 !important;
padding: 3px !important;
}
/* LISTE compatte */
html body ul,
html body ol {
margin: 0 0 6px 0 !important;
padding: 0 0 0 18px !important;
}
html body li {
margin: 0 0 2px 0 !important;
padding: 0 !important;
}
/* BOTTONI compatti */
html body .wp-block-buttons,
html body .wp-block-button,
html body button,
html body [class*=”button”] {
margin: 3px 0 !important;
padding: 8px 15px !important;
}
/* IMMAGINI generiche compatte */
html body .wp-block-image,
html body img {
margin: 3px 0 !important;
padding: 2px !important;
display: block !important;
max-width: 100% !important;
}
/* PRESERVA ASSOLUTAMENTE l’immagine della donna */
html body img[src*=”person-hero-2.png”],
html body img[src*=”person-hero”] {
margin: 25px auto !important;
padding: 25px !important;
display: block !important;
width: auto !important;
max-width: none !important;
}
/* Container dell’immagine della donna */
html body .wp-block-image:has(img[src*=”person-hero-2.png”]),
html body div:has(img[src*=”person-hero-2.png”]) {
margin: 25px auto !important;
padding: 25px !important;
}
/* Backup se :has() non funziona – Seconda immagine nel DOM */
html body img:nth-of-type(2) {
margin: 25px auto !important;
padding: 25px !important;
}
/* FORZA: Elimina margin-top da tutti gli elementi consecutivi */
html body * + *:not(img[src*=”person-hero”]) {
margin-top: 0 !important;
}
/* ADMIN BAR – Compensa lo spazio */
html body.admin-bar .neve-main {
margin-top: -10px !important;
}
/* CONTENT AREA principale */
html body .content-area,
html body .site-main,
html body .hentry,
html body .single-page-container {
padding: 5px !important;
margin: 0 !important;
}
/* ENTRY CONTENT (il contenuto principale dei post/pagine) */
html body .entry-content,
html body .entry-content > *,
html body .post-content > * {
margin: 0 0 5px 0 !important;
padding: 2px 0 !important;
}
/* SPECIFICO per TEMA NEVE – Layout containers */
html body .nv-content-wrap > .container > *,
html body .neve-main > .container > * {
margin: 0 0 6px 0 !important;
padding: 3px 0 !important;
}
}
/* === FINE CSS SPECIFICO NEVE === */
⚡ VERSIONE SUPER COMPATTA (Testa prima questa):
/* FORZA TUTTO con massima specificità */
html body *:not(img[src*=”person-hero”]) {
margin-top: 0px !important;
margin-bottom: 4px !important;
padding-top: 2px !important;
padding-bottom: 2px !important;
}
/* Paragrafi e titoli ultra compatti */
html body p { margin: 0 0 4px 0 !important; line-height: 1.3 !important; }
html body h1, html body h2, html body h3 { margin: 0 0 3px 0 !important; }
/* Container Neve compatti */
html body .container,
html body .neve-main,
html body .nv-content-wrap { padding: 5px 15px !important; margin: 0 auto !important; }
/* PRESERVA immagine donna */
html body img[src*=”person-hero-2.png”] { margin: 20px auto !important; padding: 20px !important; }
html body img:nth-of-type(2) { margin: 20px auto !important; padding: 20px !important; }
}
🎯 PROCEDURA FINALE:
1️⃣ PROVA LA VERSIONE COMPATTA:
- Personalizza → CSS aggiuntivo
- CANCELLA tutto il CSS precedente
- INCOLLA la “VERSIONE SUPER COMPATTA”
- PUBBLICA
- Apri sito in incognito desktop
2️⃣ SE NON BASTA:
Sostituisci con il “CSS FINALE” completo che ha ancora più specificità.
🔍 PERCHÉ QUESTO FUNZIONERÀ:
- 🎯 html body = Massima specificità CSS possibile
- 📝 Analisi reale = Basato sul tuo codice HTML vero
- 🎨 Tema Neve = Classi specifiche (.nv-, .neve-, container)
- 🧱 Gutenberg = Tutte le classi .wp-block-*
- 👩 Preserva donna = Regole multiple di backup
✅ GARANZIA:
Con html body come prefisso, questo CSS ha la specificità più alta possibile in WordPress. Se questo non funziona, il problema è cache o JavaScript che sovrascrive.