* {
    box-sizing: border-box;
}

html, body {
	margin: 0;
	height: 100%;
}

#page {
    display: flex;
    flex-flow: column;
    min-height: 100vh;
    overflow-x: clip;
}

#page-body {
    flex: 1;
    display: flex;
    flex-flow: row;
}

main {
    flex: 1;
}

#page-body>*:empty:not(main) {
    display: none;
}

#before-main {
    width: var(--left-column-width, 170px);
}

#after-main {
    width: var(--right-column-width, 170px);
}





/* CONFIG */

* {
    /* Layout */
    --left-column-width: 200px;
    --right-column-width: 170px;
    --page-max-width: 1650px;
    --page-max-width: 100%;

}

head {
	display: none;
}

#page>*{
    margin-left: auto;
    margin-right: auto;
    max-width: var(--page-max-width);
    width: 100%;
    /*
    -webkit-box-shadow: 0px 12px 10px 10px rgba(75,80,209,1);
    -moz-box-shadow: 0px 12px 10px 10px rgba(75,80,209,1);
    box-shadow: 0px 12px 10px 10px rgba(75,80,209,1);
    */
}

@media (max-width: 400px) {
	
	#page-body {
		flex-direction: column;
	}
	
	#page-body>* {
		width: 100%;
	}
	
}


/* CUSTOM */

#page-header, #page-footer {
    --background-color: var(--footer-color, #8BC34A);    
    text-align: center;
    font-weight: bold;
    font-size: 30px;
}

#page-header {
    background-color: var(--header-color, #8BC34A);   
}

html {
    background-color: #2196F3;
}
main {
    --background-color: white;
    max-width: 100%;
}
#before-main, #after-main {
    background-color: var(--left-column-color, #ff9800);
    color: white;
    font-weight: bold;
    font-size: 15px;
    font-family: monospace;
    padding: 5px;
}

#page-header-body-container, #after-main {
    position: relative;
    height: auto;
}

#page-header {
    position: sticky;
    top: 0;
	min-height: 148px;
	z-index: 100;
}

.suscription.block {
    position: sticky;
    top: 200px;
}

/* STICKY STYLE */

html.is-scrolled #page-header {
	background-color: transparent;
}

html.is-scrolled #page-header .header-content {
	-webkit-backdrop-filter: blur(15px);
	backdrop-filter: blur(15px);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 9px 15px 3px;
    background-color: hsl(0deg 0% 100% / 30%);
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

html.is-scrolled #page-header .header-content #notice {
    display: none;
}

html.is-scrolled #page-header nav.navbar {
    padding-top: 0;
    padding-bottom: 0;
}

html.is-scrolled #primary-menu {
    line-height: 50px;
}

html.is-scrolled header nav .logo img {
    height: 50px;
    width: auto;
}

/* MENU RESPONSIVE */


#page-header nav.navbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 16px 32px;
    position: relative;
}



#primary-menu {
    line-height: 70px;
}

#primary-menu > ul {
    display: flex;
    padding-left: 100px;
    margin: 10px 0;
}

#primary-menu ul > li {
    display: inline-block;
    margin-right: 32px;
}

#primary-menu .page_item a {
    font-weight: 500;
    text-decoration: none;
    font-size: 16px;
    color: black;
}

#primary-menu a:hover {
    color: #f64522
}

#primary-menu .page_item button {
    background: none;
    border: none;
    padding: 0px 5px;
    vertical-align: middle;
}

html.is-scrolled #primary-menu .page_item button {
    top: 15px;
}

#primary-menu .page_item button::after{
    display: inline-block;
    content: "\f107";
    font-family: fa-icons;
    font-weight: 900;
    margin-left: 0;
    font-size: 8px;
    vertical-align: bottom;
}

#primary-menu .page_item h2 {
    margin: 0;
    position: relative;
}

.subitem {
    line-height: 1.3;
    padding: 32px;
    padding-top: 24px;
}

.subitem h3 {
    margin: 0;
    border-bottom: solid 1px #DDDFE3;
    font-family: 'silka';
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.subitem-body > * {
    width: 100%;
}

.subitem h4 {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    margin-bottom: 20px;
}

#primary-menu .cat-formation a.training-title {
    font-weight: 500;
    font-size: 15px;
    margin: 0;
    margin-top: 20px;
}

a.training-title span.level {
    display: block;
}

@media screen and (min-width: 1380px) {

	#primary-menu .page_item button[aria-expanded="true"]::before {
        content: "";
        position: absolute;
        left: 30%;
        bottom: 0px;
        display: block;
        z-index: 1;
        width: 0;
        height: 0;
        border-left: 15px solid transparent;
        border-right: 15px solid transparent;
        border-bottom: 15px solid white;
	}

	html.is-scrolled #primary-menu .page_item button[aria-expanded="true"]::before {
		bottom: -5px;
	}

	.subitem {
		position: absolute;
		background: white;
		padding: 20px;
		border-radius: 14px;
		box-shadow: 0px 12px 24px 0px rgba(0,0,0,0.33);
	}
		
	.subitem[hidden] {
        display: block !important;
        /*
        visibility: hidden;
        max-height: 0;
        width: 0;
        left: 50%;
        overflow: hidden;
        */
		visibility: hidden;
		opacity: 0;
		transition: visibility 0.5s, opacity 0.5s linear;
	}

	.subitem {
		/*
        height: auto;
        max-height: 1000px;
        width: 90%;
        left: 5%;
        */
        opacity: 1;
		visibility: visible;
        transition: visibility 0s, opacity 0.5s linear;
	}
		
	.subitem-body {
		display: flex;
		justify-content: space-between;
	}
	
	html:not(.is-scrolled) body.home #primary-menu .page_item h2 a:not(:focus-visible) {
		box-shadow: 0 0 5px 3px #EEF5FF;
		background-color: #EEF5FF;
	}
	
	
}

@media screen and (max-width: 1380px) {

	#page-header nav.navbar {
        min-height: 100px;
        padding-bottom: 0;
        padding-left: 15px;
        padding-right: 15px;
        display: block;
        position: relative;
        background-color: white;
    }
    
    body.home #page-header nav.navbar {
        background-color: #EEF5FF;
	}

	html.is-scrolled #page-header nav.navbar {
		padding-top: 15px;
	}

	html.is-scrolled #page-header nav.navbar {
		min-height: 75px;
	}

	button#toggle-menu {
		padding: 0;
		border: none;
		background: transparent;
		position: absolute;
		right: 15px;
		font-size: 32px;
		top: 15px;
	}

	html:not(.is-scrolled) button#toggle-menu {
		top: 30px;
	}

	button#toggle-menu::after {
		content: none;
	}
	
	#primary-menu > ul {
		display: block;
        position: absolute;
        background: white;
        width: 100%;
        right: 0;
        top: 100%;
        margin-top: 0px;
        padding-left: 15px;
        padding-right: 15px;
        padding-bottom: 15px;
        line-height: 50px;
        max-height: calc(100vh - 75px);
        overflow-y: auto;
	}

	#primary-menu ul > li {
		display: block;
	}
	
	#primary-menu .page_item h2 {
        display: flex;
        border: solid 2px;
        margin-top: 15px;
        padding: 10px;
        border-radius: 5px;
        justify-content: space-between;
        align-items: baseline;
        
	}
	
	#primary-menu .page_item button {
		background: none;
		border: none;
		padding: 0px 5px;
		vertical-align: middle;
		position: absolute;
		top: 15px;
		right: 10px;
	}
	
	#primary-menu .page_item button::after {
		font-size: 32px;
	}

	#primary-menu ul > li {
		margin-right: 0;
	}

}
