/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

header.site-header {
	position: fixed;
	width: 100%;
	z-index: 999999;
	background: #dedede08;
}

footer.site-info {
	display: none;
}

.main-navigation, .main-navigation ul ul {
	background: transparent;
}

.main-navigation .main-nav ul li a, .main-navigation .menu-toggle, .main-navigation .menu-bar-items {
	color: white !important;
}

.main-navigation .main-nav ul li[class*="current-menu-"] > a {
	text-decoration: underline;
	text-decoration-thickness: 3px;
}

/* OVERLAY */
.mobile-menu {
    position: fixed;
    /* inset: 0; */
    background-color: #135fc7;
    z-index: 99999999;
    padding: 40px 30px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    display: none !important;
    flex-direction: column;
    width: 350px;
    right: 0;
    height: 100vh;
}

.mobile-menu.open {
	display: flex !important;
}

/* CLOSE / HAMBURGER */
.menu-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 26px;
  cursor: pointer;
}

/* MENU LIST */
.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: 100px;
}

/* VOCE MENU */
.menu-list > li {
  margin-bottom: 22px;
}

/* LINK & BUTTON */
.menu-list a,
.submenu-toggle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 26px;
  font-weight: 300;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* HOVER */
.menu-list a:hover,
.submenu-toggle:hover {
  color: #ffffff;
}

/* ARROW */
.has-submenu .arrow {
  font-size: 18px;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

/* SUBMENU */
.submenu {
  list-style: none;
  padding-left: 20px;
  margin-top: 12px;
  display: none;
}

.submenu li {
  margin-bottom: 14px;
}

.submenu a {
  font-size: 22px;
  font-weight: 300;
  opacity: 0.85;
}

/* OPEN STATE */
.has-submenu.open .submenu {
  display: block;
}

.has-submenu.open .arrow {
  transform: rotate(180deg);
}

#mobileMenu {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#mobileMenu.open {
  opacity: 1;
  pointer-events: auto;
}


/* DESKTOP: uguale, solo respiro migliore */
@media (min-width: 1024px) {
  .menu-list {
    max-width: 520px;
  }
}

button:hover, html input[type="button"]:hover, input[type="reset"]:hover, input[type="submit"]:hover, a.button:hover, button:focus, html input[type="button"]:focus, input[type="reset"]:focus, input[type="submit"]:focus, a.button:focus, a.wp-block-button__link:not(.has-background):active, a.wp-block-button__link:not(.has-background):focus, a.wp-block-button__link:not(.has-background):hover {
	background: transparent !important;
	background-color: transparent !important;
}

.site-content {
	display: flex;
	flex-direction: column;
}

.post-hero {
	height: 500px;
	position:absolute;
	left: 0;
	width: 100%;
	align-content: center;
}

.post-hero__overlay {
	width: 100%;
    height: 100%;
    position: relative;
    background: rgba(0,0,0,0.5);
    align-content: center;
}

.post-hero__content {
	max-width: 1200px;
	margin: auto;
	color: white;
}

.post-hero__category {
	padding-bottom: 15px;
}

.post-hero~.site-main {
	margin-top: 550px;
}

@media (max-width: 769px) {
	.post-hero__overlay {
		padding: 50px 20px;
	}
	
	.post-hero~.site-main {
		padding: 50px 20px !important;
		margin: 0 !important;
		margin-top: 500px !important;
	}
	
	header.site-header {
		position: relative;
	}
	
	.site-header .header-image {
		width: 200px;
	}
	
}