/* PAGINE: impostazioni generali */
body.page #content {
    width: calc(100% - 40px) !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

body.page #content .inner-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}

body.page #primary {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 auto !important;
}

body.page #secondary {
    display: none !important;
}

body.page .content-wrapper {
    padding: 60px !important;
    box-sizing: border-box !important;
}

/* DESKTOP: spostamento del menu */
@media screen and (min-width: 769px) {
    #site-navigation {
        position: relative;
        left: -100px;
    }
}

/* TABLET E SMARTPHONE */
@media screen and (max-width: 768px) {
    body.page #content {
        width: calc(100% - 20px) !important;
        max-width: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.page #content .inner-wrap {
        width: 100% !important;
        padding-top: 20px !important;
    }

    body.page .content-wrapper {
        padding: 20px !important;
    }

    body.page .entry-content,
    body.page .elementor {
        width: 100% !important;
        max-width: 100% !important;
    }

    #site-navigation {
        position: static !important;
        left: auto !important;
        transform: none !important;
    }
}

/* SMARTPHONE PICCOLI */
@media screen and (max-width: 480px) {
    body.page #content {
        width: calc(100% - 12px) !important;
    }

    body.page .content-wrapper {
        padding: 15px !important;
    }
}

/* Nasconde la lente di ricerca */
.header-search-icon,
.search-icon,
.search-toggle {
    display: none !important;
}

/* Spazio sopra e centratura dei pulsanti social */
.sd-sharing-enabled {
    margin-top: 50px !important;
}

.sd-sharing-enabled .sd-content ul {
    text-align: center !important;
}

/* Nasconde la sezione “Mi piace” di Jetpack */
.sharedaddy.sd-like-enabled {
    display: none !important;
}

html body div.sharedaddy.sd-like {
    display: none !important;
}

/* Logo con motto posizionato sotto */
.site-branding {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.site-logo-link {
    display: block !important;
    line-height: 0 !important;
}

.site-logo {
    float: none !important;
    padding: 0 !important;
}

#header-text {
    float: none !important;
    width: 100% !important;
    padding: 0 !important;
    text-align: center !important;
}

#header-text .site-title {
    display: none !important;
}

.site-description {
    display: block !important;
    width: 100% !important;
    margin: -20px 0 0 !important;
    clear: none !important;
    font-size: 14px !important;
    line-height: 1.1 !important;
    text-align: center !important;
}

@media (min-width: 769px) {

    .site-header .site-branding {
        width: 320px !important;
        max-width: 320px !important;
        flex: 0 0 320px !important;
        padding: 14px 0 !important;
    }

@media (min-width: 769px) {

    .site-branding {
        width: 320px !important;
        max-width: 320px !important;
        padding: 12px 0 !important;
    }

    .custom-logo-link,
    .site-logo {
        width: auto !important;
        height: auto !important;
    }

    .custom-logo-link img,
    .site-logo img,
    .site-branding img {
        width: 300px !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: none !important;
        object-fit: contain !important;
    }
}
	
	@media (min-width: 769px) {

    .site-header .container,
    .site-header .row {
        display: flex !important;
        align-items: center !important;
    }

    .site-branding,
    .main-navigation,
    #site-navigation {
        align-self: center !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
}
	
	@media (min-width: 769px) {
    .main-navigation,
    #site-navigation {
        transform: translateY(44px);
    }
}