﻿* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: Arial, Helvetica, sans-serif;
}

.clearfix::after {
	content: "";
	display: table;
	clear: both;
}

#cabecalho {
	width: 100%;
}

/* barra branca */
#barra-primaria {
	background: #ffffff;
	min-height: 50px;
	padding: 5px 40px;
}

#lado-esquerdo-topo {
	min-width: 200px;
}

#lado-esquerdo-topo img {
	height: 34px;
	vertical-align: middle;
	margin-right: 12px;
}

#lado-esquerdo-topo img.iconeExclamacao {
	height: 36.4px;
}

#telefone {
	color: #0D4973;
	font-family: 'Sora', sans-serif;
	font-weight: bold;
	font-size: 16px;
	vertical-align: middle;
}

#menu-topo {
	margin-left: auto;
}

#menu-topo a {
	color: #121212;
	font-size: 16px;
	text-decoration: none;
	font-weight: 400;
	margin-right: 35px;
	font-family: 'Sora', sans-serif;
}

#menu-topo a:hover {
	text-decoration: underline;
}

#controle-fonte {
	float: right;
	border: 1px solid #333;
	border-radius: 5px;
	padding: 4px 12px;
}

#controle-fonte a {
	font-size: 13px;
	color: #333;
	text-decoration: none;
	font-weight: 600;
	margin: 0 4px;
}

#controle-fonte span {
	font-size: 13px;
	color: #333;
	user-select: none;
}

/* barra azul */

#barra-primaria,
#barra-secundaria {
	display: flex;
	align-items: center;
}

#barra-secundaria {
	background:
		linear-gradient(90deg,
			#2868a8 0%,
			#1e4d7a 20%,
			#153658 35%,
			#001f3f 50%,
			#153658 65%,
			#1e4d7a 80%,
			#2868a8 100%);
	min-height: 60px;
	padding: 0 40px;
	width: 100%;
	overflow: visible;
}

#logo {
	margin-right: 25px;
}

#logo img {
	height: 35px;
}

#lado-direito-menu {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: nowrap;
}



#menu-principal,
#menu-topo {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.dropdown {
	position: relative;
	display: inline-block;
	padding: 5px 15px;
}

.dropdown>a {
	color: #FFFFFFBF;
	font-size: 16px;
	text-decoration: none;
	font-weight: 700;
	font-family: 'Sora', sans-serif;
	display: block;
}

.dropdown>a:hover {
	text-decoration: underline;
}

.dropdown-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: #ffffff;
	min-width: 250px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	border-radius: 4px;
	padding: 10px 0;
	z-index: 1000;
	margin-top: 10px;
}

.dropdown:last-of-type>.dropdown-menu {
	right: 0;
	left: auto;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.dropdown-menu a {
	color: #333;
	text-decoration: none;
	padding: 10px 20px;
	display: block;
	font-size: 14px;
	font-weight: 400;
}

.dropdown-menu a:hover {
	background: #f5f5f5;
}

.dropdown-menu li {
	list-style: none;
}

.mega-menu .dropdown-menu {
	min-width: 700px;
	padding: 20px;
}

.mega-menu .dropdown-menu .row {
	display: flex;
	gap: 20px;
}

.mega-menu .dropdown-menu .col-md-4 {
	flex: 1;
}

.mega-menu .dropdown-menu h3 {
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 15px;
	color: #2868a8;
}

/* #region Pesquisa */

#pesquisa {
	flex: 0 0 auto;
}

#pesquisa .caixa-de-busca {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-end;

	padding: 0 7px;
	overflow: hidden;
}

#pesquisa .texto-busca {
	width: 0;
	min-width: 0;
	height: 36px;

	margin: 0;
	padding: 0;

	border: 0;
	border-radius: 18px;
	outline: 0;

	color: #ffffff;
	background-color: rgba(255, 255, 255, 0.12);

	font-size: 14px;
	line-height: 1;

	opacity: 0;

	transition:
		width 0.4s ease,
		padding 0.4s ease,
		opacity 0.2s ease;
}

#pesquisa .texto-busca::placeholder {
	color: #ffffff;
	opacity: 1;
}

#pesquisa .caixa-de-busca:hover .texto-busca,
#pesquisa .caixa-de-busca:focus-within .texto-busca,
#pesquisa .caixa-de-busca.busca-aberta .texto-busca,
#pesquisa .texto-busca:not(:placeholder-shown) {
	width: 215px;
	padding: 0 12px;

	opacity: 1;
}

#pesquisa input[type="image"] {
	flex: 0 0 40px;

	width: 40px;
	height: 40px;

	margin: 0;
	padding: 10px;
}

#pesquisa #busca-aberta {
	display: none;
}

#pesquisa .texto-busca:not(:placeholder-shown)~#busca-aberta {
	display: block;
}

#pesquisa .texto-busca:not(:placeholder-shown)~#busca-fechada {
	display: none;
}

#pesquisa .texto-busca:placeholder-shown~#busca-aberta {
	display: none;
}

#pesquisa .texto-busca:placeholder-shown~#busca-fechada {
	display: block;
}

/* #endregion */

/* RESOLUÇÕES E CABECALHO MOBILE */

/* #region CABEÇALHO RESPONSIVO */

@media (max-width: 990px), (any-hover: none) {

	header {
		display: flex;
	}

	#barra-primaria {
		display: none !important;
	}

	#barra-secundaria {
		flex-wrap: wrap;
		justify-content: center;
		row-gap: 6px;
	}

	#botao_menu_mobile {
		order: 2;

		color: #ffffff;
		font-size: 20px;

		cursor: pointer;
		pointer-events: auto;

		z-index: 2000;
	}

	#pesquisa {
		order: 1;
	}

	#pesquisa .caixa-de-busca {
		margin-bottom: 6px;
	}

	#menu-principal > :not(#pesquisa) {
		display: none;
		width: 100%;
	}

	#menu-toggle:checked ~ header #barra-secundaria {
		flex-direction: column;
		align-items: flex-start;

		padding-right: 20px;
		padding-left: 20px;

		background: #0d2f52;
	}

	#menu-toggle:checked ~ header #logo,
	#menu-toggle:checked ~ header #pesquisa {
		display: none !important;
	}

	#menu-toggle:checked ~ header #lado-direito-menu {
		width: 100%;
		margin-left: 0;
	}

	#menu-toggle:checked ~ header #menu-principal {
		position: relative;
		display: flex;

		width: 100%;

		z-index: 1000;
	}

	#menu-toggle:checked ~ header #botao_menu_mobile {
		display: block;

		width: auto;
		margin: 0;
	}

	#menu-toggle:checked ~ header .dropdown {
		display: block !important;

		width: 100%;
		min-width: 0;
	}

	#menu-toggle:checked ~ header .dropdown > a {
		display: flex;
		align-items: center;
		justify-content: space-between;

		width: 100%;
		padding: 12px 25px;

		color: #ffffff;
		font-size: 16px;
	}

	#menu-toggle:checked ~ header .dropdown > a::after {
		content: "▾";

		font-size: 14px;

		transition: transform 0.3s ease;
	}

	#menu-toggle:checked ~ header .dropdown.resp-active > a::after {
		transform: rotate(180deg);
	}

	#menu-toggle:checked ~ header .dropdown > .dropdown-menu {
		position: static;
		display: none;

		width: 100%;
		min-width: 0;
		max-width: none;

		margin: 0;
		padding: 6px 0;

		background: #0d2f52;
		border-left: 3px solid #00b4ff;
		box-shadow: none;
	}

	#menu-toggle:checked ~ header .dropdown.resp-active > .dropdown-menu {
		display: block;
	}

	#menu-toggle:checked ~ header .dropdown-menu a {
		display: block;

		padding: 12px 0 12px 48px;

		color: #ffffff;
		font-size: 14px;
		white-space: normal;
	}

	#menu-toggle:checked ~ header .dropdown-menu a:hover {
		background: #164a7a;
	}
}

@media (min-width: 991px) and (any-hover: hover) {

	#botao_menu_mobile {
		display: none !important;
	}

	.dropdown:hover > .dropdown-menu,
	.dropdown:focus-within > .dropdown-menu {
		display: block;
		animation: fadeIn 0.2s ease-in;
	}

	.dropdown-menu::before {
		content: "";

		position: absolute;
		top: -10px;
		right: 0;
		left: 0;

		height: 10px;

		background: transparent;
	}
}

/* #endregion */