/* IHR Menu: barra do computador com painéis, e gaveta dos outros ecrãs.
   Medidas copiadas do mega menu e da popup 15140 que o widget substitui.
   Os seletores levam a etiqueta (a, button) para ganharem aos estilos do kit (.elementor-kit-1081 a / button). */

/* ---------- Barra ---------- */

/* Os painéis ocupam a largura toda do contentor da barra: o JS mede-o e passa as medidas em
   --ihr-pan-x (esquerda), --ihr-pan-w (largura) e --ihr-pan-y (fundo), contadas a partir do menu. */
.ihr-menu {
	position: relative;
}

.ihr-menu__barra {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 25px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ihr-menu__li {
	margin: 0;
	padding: 0;
}

.ihr-menu a.ihr-menu__voce,
.ihr-menu button.ihr-menu__voce {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin: 0;
	padding: 20px 20px 20px 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	font-family: Aptos, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	white-space: nowrap;
	color: #090B06;
	cursor: pointer;
	transition: color .3s;
}

.ihr-menu a.ihr-menu__voce:hover,
.ihr-menu a.ihr-menu__voce:focus,
.ihr-menu button.ihr-menu__voce:hover,
.ihr-menu button.ihr-menu__voce:focus,
.ihr-menu .is-aperto > button.ihr-menu__voce {
	background: none;
	color: #3B44B5;
}

.ihr-menu__chevron {
	width: 16px;
	height: 16px;
	transition: transform .3s;
}

.is-aperto > .ihr-menu__voce .ihr-menu__chevron {
	transform: rotate(180deg);
}

/* ---------- Painel ---------- */

.ihr-menu__pannello {
	position: absolute;
	top: calc(var(--ihr-pan-y, 100%) - 5px);
	left: var(--ihr-pan-x, 0px);
	width: var(--ihr-pan-w, 100%);
	z-index: 995;
	overflow: hidden;
	border-radius: 0 0 20px 20px;
	background: #F8F8F8 no-repeat right bottom / 336px auto;
	box-shadow: 0 0 90px 0 rgba(0, 0, 0, .1);
	font-family: Aptos, sans-serif;
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s, visibility 0s linear .2s;
}

.is-aperto > .ihr-menu__pannello {
	opacity: 1;
	visibility: visible;
	transition: opacity .2s;
}

/* Mesma largura e margens que o conteúdo do contentor da barra (variáveis do próprio Elementor). */
.ihr-menu__pannello-in {
	box-sizing: border-box;
	width: 100%;
	max-width: calc(var(--content-width, 1300px) + var(--padding-left, 0px) + var(--padding-right, 0px));
	margin: 0 auto;
	padding: 50px var(--padding-right, 0px) 50px var(--padding-left, 0px);
}

.ihr-menu__testa {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 54px;
}

.ihr-menu__titoli {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ihr-menu p.ihr-menu__sopra,
.ihr-menu p.ihr-menu__titolo {
	margin: 0;
	font-weight: 600;
	line-height: .95;
}

.ihr-menu p.ihr-menu__sopra {
	font-size: 14px;
	letter-spacing: -.8px;
	color: #4C4C4C;
}

.ihr-menu p.ihr-menu__titolo {
	font-size: 24px;
	letter-spacing: -.2px;
	color: #090B06;
}

.ihr-menu a.ihr-menu__cta,
.ihr-cas a.ihr-cas__cta {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 12px 24px;
	border: 1px solid #fff;
	border-radius: 12px;
	background: #3B44B5;
	font-family: Aptos, sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
	color: #fff !important;
	white-space: nowrap;
	transition: transform .25s, box-shadow .25s;
}

.ihr-menu a.ihr-menu__cta {
	align-self: flex-end;
}

.ihr-menu a.ihr-menu__cta:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

.ihr-menu__seta {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.ihr-menu__gruppi {
	display: flex;
	flex-direction: column;
	gap: 35px;
	margin-top: 30px;
	padding-top: 30px;
	border-top: 1px solid #DEDCDC;
}

.ihr-menu .ihr-menu__gruppo-tit {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: -.1px;
	text-decoration: none;
	color: #000 !important;
}

.ihr-menu a.ihr-menu__gruppo-tit:hover {
	color: #3B44B5 !important;
}

.ihr-menu__icona {
	display: flex;
	flex-shrink: 0;
}

.ihr-menu__icona svg,
.ihr-menu__icona img {
	width: 20px;
	height: 20px;
}

.ihr-menu__icona i {
	font-size: 20px;
}

.ihr-menu__pillole {
	display: flex;
	flex-wrap: wrap;
	gap: 17px 20px;
	margin: 27px 0 0 1px;
	padding: 0;
	list-style: none;
}

.ihr-menu__pillole li {
	margin: 0;
	line-height: normal;
}

.ihr-menu a.ihr-menu__pillola {
	display: block;
	padding: 10px 20px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 0 50px 0 rgba(0, 0, 0, .05);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
	color: #090B06 !important;
	transition: transform .25s, box-shadow .25s;
}

.ihr-menu a.ihr-menu__pillola:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

/* ---------- Gaveta (portátil, tablet, telemóvel) ---------- */

.ihr-cas {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 9990;
	overflow: hidden;
	border-top: 1px solid #E1E1E1;
	background: #F1F1F3;
	font-family: Aptos, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.5;
	color: #000;
	text-align: left;
}

.ihr-cas[hidden] {
	display: none !important;
}

.ihr-cas *,
.ihr-cas *::before,
.ihr-cas *::after {
	box-sizing: border-box;
}

.ihr-cas__pag {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 25px 20px 40px;
}

.ihr-cas__pag::-webkit-scrollbar {
	display: none;
}

@media (min-width: 768px) {
	.ihr-cas__pag {
		padding: 35px 25px 40px;
	}
}

/* As páginas de Corsi e Esami entram pela direita. Escondidas, ficam invisíveis
   (antes ficavam à vista quando a página do site era mais larga do que o ecrã). */
.ihr-cas__sub {
	padding-top: 0;
	background: #F5F5F7;
	transform: translateX(100%);
	visibility: hidden;
	transition: transform .35s cubic-bezier(.32, .72, 0, 1), visibility 0s linear .35s;
}

.ihr-cas__sub.is-attiva {
	transform: none;
	visibility: visible;
	transition: transform .35s cubic-bezier(.32, .72, 0, 1);
}

.ihr-cas a.ihr-cas__cta {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px; /* a sombra azul come parte do espaço: assim parece igual ao dos cartões brancos */
	padding: 24px;
	border: 0;
	font-size: 18px;
	box-shadow: 0 4px 12px rgba(59, 76, 202, .25);
}

.ihr-cas__lista {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ihr-cas__lista li {
	margin: 0;
}

.ihr-cas a.ihr-cas__voce,
.ihr-cas button.ihr-cas__voce {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	margin: 0;
	padding: 24px;
	border: 1px solid rgba(0, 0, 0, .04);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
	font-family: inherit;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: normal;
	text-align: left;
	text-transform: none;
	text-decoration: none;
	color: #000 !important;
	cursor: pointer;
	transition: background .2s, transform .2s;
}

.ihr-cas a.ihr-cas__voce:hover,
.ihr-cas button.ihr-cas__voce:hover,
.ihr-cas button.ihr-cas__voce:focus {
	background: #fafafa;
	color: #000 !important;
}

.ihr-cas .ihr-menu__seta {
	width: 18px;
	height: 18px;
}

.ihr-cas button.ihr-cas__indietro {
	position: sticky;
	top: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 8px;
	width: calc(100% + 40px);
	margin: 0 -20px 12px;
	padding: 24px;
	border: 0;
	border-radius: 0 0 21px 21px;
	background: #F5F5F7;
	box-shadow: 0 0 90px 0 rgba(0, 0, 0, .1);
	font-family: inherit;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.5;
	text-align: left;
	text-transform: none;
	color: #000 !important;
	cursor: pointer;
}

@media (min-width: 768px) {
	.ihr-cas button.ihr-cas__indietro {
		width: calc(100% + 50px);
		margin: 0 -25px 12px;
	}
}

.ihr-cas__indietro svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	color: #6b7280;
}

.ihr-cas__acc-lista {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ihr-cas .ihr-cas__acc {
	flex-shrink: 0;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, .04);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

.ihr-cas button.ihr-cas__acc-testa,
.ihr-cas a.ihr-cas__acc-testa,
.ihr-cas div.ihr-cas__acc-testa {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	margin: 0;
	padding: 24px;
	border: 0;
	border-radius: 0;
	background: #fff;
	font-family: inherit;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.5;
	text-align: left;
	text-transform: none;
	text-decoration: none;
	color: #000 !important;
	cursor: pointer;
}

.ihr-cas a.ihr-cas__acc-testa,
.ihr-cas div.ihr-cas__acc-testa {
	border: 1px solid rgba(0, 0, 0, .04);
	border-radius: 12px;
}

.ihr-cas__acc-sx {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 12px;
	min-width: 0;
	padding-right: 20px;
}

.ihr-cas__acc-sx > span:last-child {
	flex: 1;
	min-width: 0;
	white-space: normal;
	overflow-wrap: break-word;
}

.ihr-cas .ihr-menu__icona svg,
.ihr-cas .ihr-menu__icona img {
	width: 21px;
	height: 21px;
}

.ihr-cas__freccia {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	margin-left: 8px;
	color: #9ca3af;
	transition: transform .3s cubic-bezier(.32, .72, 0, 1);
}

.is-aperto > .ihr-cas__acc-testa .ihr-cas__freccia {
	transform: rotate(180deg);
}

.ihr-cas__acc-corpo {
	display: flex;
	flex-direction: column;
	gap: 27px;
	max-height: 0;
	overflow: hidden auto;
	padding: 0 24px;
	background: #fafafa;
	visibility: hidden;
	transition: max-height .35s cubic-bezier(.32, .72, 0, 1), padding .35s ease, visibility 0s linear .35s;
}

.is-aperto > .ihr-cas__acc-corpo {
	max-height: 60vh;
	padding: 24px;
	visibility: visible;
	transition: max-height .35s cubic-bezier(.32, .72, 0, 1), padding .35s ease;
}

.ihr-cas a.ihr-cas__link {
	display: block;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.5;
	text-decoration: none;
	color: rgba(0, 0, 0, .75) !important;
}

.ihr-cas a.ihr-cas__link:hover {
	color: #3B44B5 !important;
}

/* Com a gaveta aberta, a página não faz scroll e o ícone do cabeçalho passa a X. */
html.ihr-menu-aperto,
html.ihr-menu-aperto body {
	overflow: hidden;
}

html.ihr-menu-aperto a[href="#ihr-menu"] svg,
html.ihr-menu-aperto a[href="#ihr-menu"] img {
	display: none !important;
}

html.ihr-menu-aperto a[href="#ihr-menu"]::after {
	content: '\2715';
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	font-weight: 400;
	line-height: 1;
	color: #000;
}

/* Pré-visualização no editor do Elementor. */
.ihr-cas.ihr-cas--anteprima {
	position: relative;
	z-index: 1;
	max-width: 420px;
	height: 640px;
	margin-top: 20px;
}
