/*
Theme Name: Netlogos Light
Theme URI: https://www.netlogos.it/
Author: Netlogos
Description: Tema leggero e compatibile con Elementor, ispirato all'aspetto del sito Netlogos.
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: netlogos-light
*/

:root {
	--nl-ink: #10284b;
	--nl-muted: #687080;
	--nl-paper: #fff;
	--nl-header: #e3e8f4;
	--nl-accent: #00a6a6;
	--nl-width: 1230px;
	--nl-font: Outfit, system-ui, sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: var(--nl-muted);
	background: var(--nl-paper);
	font-family: var(--nl-font);
	font-size: 17px;
	line-height: 1.65;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
}

.nl-skip-link {
	position: absolute;
	z-index: 1000;
	top: 1rem;
	left: 1rem;
	padding: .6rem .9rem;
	transform: translateY(-200%);
	color: var(--nl-paper);
	background: var(--nl-ink);
}

.nl-skip-link:focus {
	transform: translateY(0);
}

.nl-header {
	position: relative;
	z-index: 30;
	background: var(--nl-header);
}

.nl-header__inner {
	width: min(var(--nl-width), calc(100% - 48px));
	min-height: 109px;
	margin-inline: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}

.nl-brand,
.nl-brand img {
	display: block;
}

.nl-brand img {
	width: 220px;
	max-height: 70px;
	object-fit: contain;
	object-position: left center;
}

.nl-brand__name {
	color: var(--nl-ink);
	font-size: 1.5rem;
	font-weight: 700;
	text-decoration: none;
}

.nl-nav {
	margin-left: auto;
}

.nl-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nl-nav > div > ul,
.nl-nav > ul {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 2vw, 2.15rem);
}

.nl-nav li {
	position: relative;
}

.nl-nav a {
	display: block;
	padding: .6rem 0;
	color: var(--nl-ink);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.nl-nav a:hover,
.nl-nav a:focus-visible,
.nl-nav .current-menu-item > a,
.nl-nav .current_page_item > a {
	color: var(--nl-accent);
}

.nl-nav .sub-menu {
	position: absolute;
	z-index: 40;
	top: 100%;
	left: -.8rem;
	min-width: 220px;
	padding: .55rem .9rem;
	background: #fff;
	box-shadow: 0 10px 28px rgb(16 40 75 / 13%);
	opacity: 0;
	visibility: hidden;
	transform: translateY(5px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
}

.nl-nav li:hover > .sub-menu,
.nl-nav li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nl-nav .sub-menu a {
	padding: .5rem 0;
}

.nl-nav .sub-menu .sub-menu {
	top: -.55rem;
	left: calc(100% - .15rem);
}

.nl-nav .menu-item-has-children > a::after {
	margin-left: .4rem;
	content: "⌄";
	font-size: .8em;
}

.nl-nav .sub-menu .menu-item-has-children > a::after {
	content: "›";
}

.nl-menu-toggle {
	display: none;
	min-width: 44px;
	min-height: 44px;
	border: 0;
	border-radius: 4px;
	color: #fff;
	background: var(--nl-ink);
	font: inherit;
	font-size: 1.35rem;
	cursor: pointer;
}

.nl-main {
	min-height: 55vh;
}

.nl-main--singular:not(.nl-main--elementor) {
	width: min(var(--nl-width), calc(100% - 48px));
	margin: 3rem auto;
}

.nl-main--singular:not(.nl-main--elementor) h1,
.nl-main--singular:not(.nl-main--elementor) h2,
.nl-main--singular:not(.nl-main--elementor) h3 {
	color: var(--nl-ink);
	line-height: 1.2;
}

.nl-main--singular:not(:has(.elementor)) .entry-title {
	margin: 0 0 1.5rem;
	font-size: clamp(2rem, 4vw, 3.25rem);
}

.nl-main--archive {
	width: min(var(--nl-width), calc(100% - 48px));
	margin: 3rem auto;
}

.archive-header {
	margin-bottom: 2rem;
}

.archive-header h1 {
	color: var(--nl-ink);
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.2;
}

.nl-archive-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
	gap: 1.5rem;
}

.nl-post-card {
	padding: 1.5rem;
	border: 1px solid #e7ebf1;
	border-radius: 8px;
	background: #fff;
}

.nl-post-card h2 {
	margin-top: 0;
	color: var(--nl-ink);
	font-size: 1.4rem;
	line-height: 1.3;
}

.nl-post-card h2 a {
	text-decoration: none;
}

.nl-footer {
	padding: 2rem 24px;
	color: #fff;
	background: var(--nl-ink);
}

.nl-footer__inner {
	width: min(var(--nl-width), 100%);
	margin-inline: auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .6rem 2rem;
}

.nl-footer p {
	margin: 0;
}

.nl-footer a {
	color: #fff;
}

.nl-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
}

.nl-footer__links a {
	text-decoration: none;
}

.nl-footer__links .nl-social-link {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
}

.nl-social-link__icon {
	display: block;
	width: 1.2rem;
	height: 1.2rem;
	fill: currentColor;
}

body.page-id-61 .bi.bi-linkedin {
	display: block;
	width: 1.25rem;
	height: 1.25rem;
	background-color: currentColor;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M5.2 3.5a2 2 0 1 0 0 4 2 2 0 0 0 0-4zM3.5 9h3.4v11.5H3.5V9zm5.5 0h3.2v1.6h.1c.5-.9 1.6-1.9 3.4-1.9 3.6 0 4.3 2.3 4.3 5.2v6.6h-3.4v-5.9c0-1.4 0-3.2-2-3.2s-2.3 1.5-2.3 3.1v6H9V9z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M5.2 3.5a2 2 0 1 0 0 4 2 2 0 0 0 0-4zM3.5 9h3.4v11.5H3.5V9zm5.5 0h3.2v1.6h.1c.5-.9 1.6-1.9 3.4-1.9 3.6 0 4.3 2.3 4.3 5.2v6.6h-3.4v-5.9c0-1.4 0-3.2-2-3.2s-2.3 1.5-2.3 3.1v6H9V9z'/%3E%3C/svg%3E");
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
	font-size: 0;
}

body.page-id-61 #wpforms-3906 {
	width: 100%;
	max-width: 760px;
	margin: 24px auto;
}

body.page-id-61 #wpforms-form-3906,
body.page-id-61 #wpforms-3906 .wpforms-field-container {
	width: 100%;
}

@media (max-width: 767px) {
	body.page-id-61 #wpforms-3906 {
		max-width: 100%;
	}
}

.nl-pagination {
	margin-top: 2rem;
}

.nl-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.nl-pagination a,
.nl-pagination span {
	padding: .5rem .75rem;
	border: 1px solid #e7ebf1;
}

.nl-pagination .current {
	color: #fff;
	background: var(--nl-ink);
}

@media (max-width: 1023px) {
	.nl-header__inner {
		width: calc(100% - 32px);
		min-height: 76px;
	}

	.nl-brand img {
		width: 180px;
		max-height: 58px;
	}

	.nl-menu-toggle {
		display: inline-grid;
		place-items: center;
	}

	.nl-nav {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		max-height: calc(100vh - 76px);
		overflow-y: auto;
		padding: 0 20px;
		background: var(--nl-header);
		box-shadow: 0 12px 20px rgb(16 40 75 / 12%);
		visibility: hidden;
		transform: translateY(-6px);
		opacity: 0;
		transition: opacity .15s ease, transform .15s ease, visibility .15s;
	}

	.nl-header.is-menu-open .nl-nav {
		padding-top: .5rem;
		padding-bottom: 1rem;
		visibility: visible;
		transform: translateY(0);
		opacity: 1;
	}

	.nl-nav > div > ul,
	.nl-nav > ul {
		display: block;
	}

	.nl-nav a {
		padding: .75rem .2rem;
	}

	.nl-nav .sub-menu,
	.nl-nav .sub-menu .sub-menu {
		position: static;
		display: none;
		padding: 0 .9rem;
		box-shadow: none;
		visibility: visible;
		opacity: 1;
		transform: none;
	}

	.nl-nav .menu-item-has-children.is-submenu-open > .sub-menu,
	.nl-nav .menu-item-has-children.is-submenu-open > .sub-menu .menu-item-has-children.is-submenu-open > .sub-menu {
		display: block;
	}

	.nl-main--singular:not(.nl-main--elementor),
	.nl-main--archive {
		width: calc(100% - 32px);
		margin-block: 2rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: .01ms !important;
	}
}
