.site-above-header-wrap,
.site-primary-header-wrap,
/* .site-above-footer-wrap, */
.site-primary-footer-wrap,
.site-below-footer-wrap {
	width: var(--wp--custom--ast-container-width);
	max-width: var(--jennerjunior-content-max-width);
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 0px !important;
	padding-right: 0px !important;
}

div#ast-desktop-header .homepage.menu-item {display: none;}

/* Header */
	/* Top Header */
		.ast-above-header-wrap .main-header-menu > .menu-item {
			line-height: 1.2em !important;
			flex-direction: row;
			width: fit-content !important;
		}
		@media screen and (min-width: 922px) {
			.ast-above-header-wrap .main-header-menu > .menu-item:after { /* Separatore */
				content: "|";
				width: 28px;
				display: flex;
				color: white;
				justify-content: center;
			}
		}
		.ast-above-header-wrap .site-header-above-section-right > div {padding: 0;} /* rimuove lo spazio inutile tra menu ed icone social */
		.ast-above-header-wrap .menu-item > .menu-link:hover {text-decoration: underline !important;}

		/* Responsive */
			@media screen and (max-width: 921px) {
				ul#ast-hf-menu-2 {
					justify-content: center;
					gap: 10px 30px;
					width: fit-content;
					border: none !important;
					margin: 20px auto !important;
					flex-wrap: wrap;
				}
			}
		/* END Responsive */
	/* END Top Header */
	/* Main Header */	
		.ast-main-header-wrap ul#ast-hf-menu-1 {gap: 28px;} /* gap tra menu items */
		.ast-main-header-wrap .ast-menu-hover-style-underline > .menu-item:hover > .menu-link:before,
		.ast-desktop .ast-menu-hover-style-overline > .menu-item:hover > .menu-link:before { /* Astra non permette di modificare la larghezza e spessore del bordo sotto i menu durante l'hover */
			width: 100%;
			height: 4px;
		}
		.ast-main-header-wrap .main-header-menu > li.menu-item:hover > a.menu-link > span.menu-text {font-weight: 700;}
		
		/* Disable on item, default animation border bottom */
			.ast-desktop .ast-menu-hover-style-underline > .menu-item > .menu-link:before,
			.ast-desktop .ast-menu-hover-style-overline > .menu-item > .menu-link:before {
				transform: scale(1, 1) translate(50%, 0) !important;
				transition: opacity 300ms ease-in-out;
				opacity: 0;
			}
			.ast-desktop .ast-menu-hover-style-underline > .menu-item:hover > .menu-link:before,
			.ast-desktop .ast-menu-hover-style-overline > .menu-item:hover > .menu-link:before {
				opacity: 1;
			}
			.ast-desktop svg.custom-logo.astra-logo-svg.inline-svg-image, svg.astra-logo-svg.inline-svg-image {height: auto;}
		/* END Disable on item, default animation border bottom */
		
		/* Sub-menu */
			.ast-main-header-wrap span.ast-icon.icon-arrow {display: none;}
			.ast-main-header-wrap .main-header-menu .sub-menu .menu-link {text-align: center;}
			#ast-desktop-header .main-header-menu > .menu-item:not(:nth-last-child(-n + 1)) > ul.sub-menu {
				right: 50% !important;
				transform: translateX(50%);
				left: auto;
			}
			#ast-desktop-header .main-header-menu > .menu-item:nth-last-child(-n + 1) > ul.sub-menu {
				right: 0 !important;
				left: auto;
			}
			#ast-desktop-header .main-header-menu > .menu-item:nth-last-child(-n + 1) > ul.sub-menu ul.sub-menu {
				right: 100% !important;
				left: auto;
			}
			.main-header-menu .menu-item:hover > .sub-menu > li {border-bottom: 2px solid var(--ast-global-color-6);}
		/* END Sub-menu */
		/* Sticky */
			/* Effetto riduzione */
				.ast-sticky-header-shrink .ast-primary-header-bar.ast-header-sticked,
				.ast-sticky-header-shrink .ast-primary-header-bar.ast-header-sticked .site-primary-header-wrap,
				.ast-header-sticked .ast-primary-header-bar .site-primary-header-wrap,
				.ast-sticky-header-shrink .ast-mobile-header-wrap .ast-primary-header-bar.ast-header-sticked,
				.ast-sticky-header-shrink .ast-mobile-header-wrap .ast-stick-primary-below-wrapper.ast-header-sticked .ast-below-header,
				.ast-sticky-header-shrink .ast-stick-primary-below-wrapper.ast-header-sticked .ast-primary-header-bar .site-primary-header-wrap {
					min-height: 80px;
				}
				.ast-sticky-main-shrink .ast-sticky-shrunk.main-header-bar .ast-site-identity {padding: 0px !important;}
			/* END Effetto riduzione */
			.ast-sticky-active .site-logo-img img {
				filter: none;
				width: fit-content !important;
			}
		/* END Sticky */
		/* Responsive */
			#ast-mobile-header {background-color: white;}
			@media screen and (min-width: 922px) and (max-width: 1010px) {#masthead .site-logo-img .astra-logo-svg {max-width: 220px;}}
			@media screen and (max-width: 921px) {
				#masthead .site-logo-img .astra-logo-svg {height: fit-content !important;}
				.ast-sticky-active .ast-builder-grid-row {
					max-width: var(--jennerjunior-content-max-width);
					margin: auto;
					width: 100%;
				}
			}
		/* END Responsive */
		/* OFF-CANVAS */
			#ast-mobile-popup.active.show {z-index: 999999999999;} /* Serve solo per andare sopra il float btn di "prenota online" */
			#ast-mobile-popup .ast-mobile-popup-header {
				position: fixed;
				right: 0;
			}
			#ast-mobile-popup [data-section="section-hb-social-icons-1"] {justify-content: center !important;}
			#ast-mobile-popup svg.ast-mobile-svg.ast-close-svg {
				width: 30px;
				height: auto;
				aspect-ratio: 1 / 1;
			}
			#ast-mobile-popup button#menu-toggle-close {
				height: 100px;
				width: auto;
				aspect-ratio: 1 / 1;
				display: flex;
				justify-content: center;
				align-items: center;
			}

			.menu-item button.ast-menu-toggle {
				border: 0px !important;
				box-shadow: none !important;
			}
		/* END OFF-CANVAS */
	/* END Main Header */
/* END Header */

/* Footer */
	#content:not(:has(.sezione-finale)) ~ footer,
	.sezione-finale {
		/* Aggiunge lo spazio prefooter di default, tranne le pagine con le sezioni finali */
		margin-top: var(--jennerjunior-pagine_interne-rowgap);
	}
	/* Sezione 1 */
		.site-primary-footer-wrap section.widget_media_image:has( svg.image.wp-image-10546) {margin-bottom: 40px;}
		.site-primary-footer-wrap svg.image.wp-image-10546 {height: auto;}
		.site-primary-footer-wrap svg.image.wp-image-10546 path {fill: white;}
	/* END Sezione 1 */

	/* Sezione 3 */
		.site-primary-footer-wrap img[src*='Jenner']:not([src*='Logo-Jenner-Junior-negativo']) {width: 160px;}
		.site-primary-footer-wrap img[src*='progetto-salute'] {width: 105px;}
		.site-primary-footer-wrap .site-footer-primary-section-3 {margin-bottom: auto !important;}
	/* END Sezione 3 */
	/* Copyright */

	/* END Copyright */
/* END Footer */

/* For Developer backend */
.site-primary-footer-wrap[data-section="section-primary-footer-builder"] {border: 0px !important;}