/* Sezioni Page Designer - Shortcode */
.gf-free-content > *:first-child {
    margin-top: 0;
}

.gf-section--shortcode {
    margin-top: 0 !important;
}

.gf-section--shortcode > .gf-container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.gf-section--shortcode .gf-free-content,
.gf-section--shortcode .gf-free-content > *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.gf-section--shortcode .gf-free-content > *:last-child {
    margin-bottom: 0 !important;
}

/*
 * Alcuni shortcode, compreso lo slider ultimi articoli GF,
 * applicano un proprio margine superiore. Dentro la sezione
 * Shortcode lo azzeriamo, perché la spaziatura deve essere
 * controllata dal Designer della sezione, non dal plugin interno.
 */
.gf-section--shortcode .gf-lps,
.gf-section--shortcode [data-gf-lps-slider="1"] {
    margin-top: 0 !important;
}

/* =========================================================
   FIX 4.9 - SEZIONE SHORTCODE RAW CON LARGHEZZA OPZIONALE
   =========================================================
   Lo shortcode resta senza contenitore grafico del builder, ma può avere
   una larghezza massima e un padding laterale impostati dal Customizer.
*/
.gf-section.gf-section--shortcode.gf-section--shortcode-raw {
    display: block !important;
    width: 100%;
    border: 0 !important;
    background: transparent !important;
    box-sizing: border-box !important;
}

.gf-section.gf-section--shortcode.gf-section--shortcode-raw > .gf-free-content {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.gf-section.gf-section--shortcode.gf-section--shortcode-raw > .gf-free-content > *:first-child {
    margin-top: 0 !important;
}

.gf-section.gf-section--shortcode.gf-section--shortcode-raw > .gf-free-content > *:last-child {
    margin-bottom: 0 !important;
}
