/* Hamburguer */
#hamburguer {
	padding: 7px 0 0 0;
	margin: 0px;
	width: 18px;
	height: 11px;
	cursor: pointer;
	cursor: hand;
	display: inline-block;
	vertical-align: top;
	transition: all 0.3s ease-out
}
#hamburguer:after {
	content: attr(data-content);
	display: inline-block;
	vertical-align: top;
	margin: -14px 0 0 0px;
	padding: 0 0 0 25px;
	width: 0px;
	color: rgba(0, 0, 0, 0);
	transition: all 0.3s ease-out;
	overflow: hidden;
}
#hamburguer:hover {
	transform: translateX(-40px);
}
#hamburguer:hover:after {
	width: 50px;
	color: rgba(0, 0, 0, 1);
}
#hamburguer span {
	content: '';
	display: block;
	width: 18px;
	height: 3px;
	background: #000;
	border-radius: 4px;
}
#hamburguer span:before {
	content: '';
	position: absolute;
	display: block;
	width: 18px;
	height: 3px;
	background: #000;
	border-radius: 4px;
	margin: -7px 0 0 0;
}
#hamburguer span:after {
	content: '';
	position: absolute;
	display: block;
	width: 18px;
	height: 3px;
	background: #000;
	border-radius: 4px;
	margin: 7px 0 0 0;
}
#hamburguer:hover span {
	transform: rotate(135deg);
	transition: all 0.22s;
}
#hamburguer:hover span:before {
	opacity: 0;
	margin: 0px;
}
#hamburguer:hover span:after {
	transform: rotate(-90deg);
	margin: 0px;
}

@media only screen and (max-width: 1200px) {
	nav {
		display: grid;
		grid-template-columns: auto auto;
		padding-left: 20px;
		padding-right: 20px;
	}
	nav #hamburguer {
		display: block;
		justify-self: flex-end;
		margin: 0 0 0 auto;
	}
	nav section:nth-of-type(1) div {
		display: none;
	}
	menu section:nth-of-type(2){
		display: block;
		justify-self: center;
		text-align: left;
		color: #FFF;
	}
	menu section:nth-of-type(3){
		display: block;
		color: #FFF;
	}
	
	/* Menu mobile */
	menu {
		position: fixed;
		background: #666666;
		top: 0px;
		bottom: 0px;
		right: 0px;
		margin: 0px;
		height: 100%;
		text-align: center;
		padding: 10px 30px 40px 30px !important;
		display: grid;
		grid-template-rows: 40px 100px 90px auto;
		grid-template-columns: auto;
		transform: translateX(100%);
		transition: all 0.5s ease-in;
		overflow: hidden;
		overflow-y: auto;
		z-index: 9999;
	}
	menu ul li {
		display: block;
	}
	
	menu::-webkit-scrollbar {
		width: 3px;
	}
	menu::-webkit-scrollbar-track {
		-webkit-box-shadow: inset 0 0 6px #CEEEFB;
	} 
	menu::-webkit-scrollbar-thumb {
	  background-color: #1B2638;
	  outline: 1px solid #1B2638;
	}
	
	/* Fechar menu */
	menu section:nth-of-type(1) {
		display: block;
		vertical-align: top;
		justify-self: end;
		color: rgba(255, 255, 255, 0);
		font-size: 13px;
		line-height: 15px;
		height: 17px;
		cursor: pointer;
		cursor: hand;
		white-space: nowrap;
		overflow: hidden;
		width: 20px;
		transition: all 0.3s ease-out;
	}
	menu section:nth-of-type(1):hover {
		color: rgba(255, 255, 255, 1);
		width: 130px;
		transition: all 0.3s ease-in;
	}
	menu section:nth-of-type(1) span {
		content: '';
		display: inline-block;
		vertical-align: middle;
		background: #FFF;
		width: 18px;
		height: 3px;
		margin: 0 10px 0 0;
		border-radius: 4px;
		transform: rotate(45deg);
		-webkit-transform: rotate(45deg);
	}
	menu section:nth-of-type(1) span:before {
		content: '';
		position: absolute;
		background: #FFF;
		width: 18px;
		height: 3px;
		margin: 0 0 0 -9px;
		border-radius: 4px;
		transform: rotate(-90deg);
		-webkit-transform: rotate(-90deg);
	}
	
	/* Submenus */
	menu li ul {
		position: relative;
		background: none;
		border-radius: 0px;
		padding: 0px;
		transition: all 0.5s ease-in;
	}
	menu ul li:hover > ul {
		padding: 10px 0 20px 0;
		transition-delay: 0.5s;
	}
	menu ul li a, menu ul li label {
		color: #FFF;
		font-weight: 400;
		font-size: 18px;
		padding: 10px;
		border-radius: 7px;
		font-weight: 600;
	}
	menu ul li a:hover, menu ul li:hover label {
		background: #FFF;
		color: #1B2638;
		cursor: pointer;
		cursor: hand;
	}
	
	menu li ul li a, menu li ul li label {
		color: #FFF;
		font-size: 16px;
		padding: 6px 10px;
		border-radius: 7px;
		font-weight: 400;
	}
	menu li ul li a:hover, menu li ul li label:hover {
		color: #000;
	}
	
	menu ul li a:after, menu ul li label:after {
		content: none;
	}
	
	menu ul li label span:after {
		border: solid #FFF;
		border-width: 0 2px 2px 0;
	}
}

@media only screen and (max-width: 950px) {
	#ppnoticias section {
		grid-template-columns: repeat(2, 1fr);
	}
	#ppnoticias section a:last-of-type {
		display: none;
	}
	#barra {
		grid-template-columns: auto;
		grid-gap: 10px;
		padding-left: 50px;
		padding-right: 50px;
	}
	#tornarsocio, #museu, #corpo {
		padding-left: 50px;
		padding-right: 50px;
	}
	#contactos, #relacionadas, #noticia {
		grid-template-columns: auto;
	}
	
}

@media only screen and (max-width: 850px) {
	.duas_colunas, .tres_colunas {
		grid-template-columns: auto;
		grid-template-areas: unset;
	}
	.colleft, .colright {
		grid-area: unset;
	}
}

@media only screen and (max-width: 720px) {
	#ppnoticias section, footer {
		grid-template-columns: auto;
	}
	#ppnoticias section a:last-of-type {
		display: block;
	}
	footer {
		text-align: center;
	}
	footer ul {
		justify-self: center;
		text-align: center;
	}
	#baixo {
		grid-template-columns: auto;
		text-align: center;
	}
	#baixo ul {
		justify-self: center;
	}
	#baixo ul li {
		display: block;
	}
	header section {
		padding-left: 20px;
		padding-right: 20px;
	}
	
	.quadro_pessoal div {
		grid-template-columns: 30px 20px auto;
	}
	.quadro_pessoal div label:nth-of-type(2) {
		display: none;
	}
}