/*
Theme Name: Sageo
Theme URI: https://sageo.it/
Author: Anchora
Author URI: https://anchora.company
Description: Tema per Sageo, società di business development e formazione ESG che connette aziende e professionisti per favorire competenze, partnership e crescita nell'industria.
Version: 1.1.3
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sageo
Tags: consulenza, formazione, esg, industria, vetrina
*/

html { scroll-padding-top: 88px; }
body.sageo-body, body {
	margin: 0;
	background: #fff;
	color: #666;
	font-family: KoHo, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.7;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }

.site-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 50;
	height: 88px;
	background: #fff;
}
.site-header-inner {
	max-width: 1080px;
	height: 100%;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.logo-img { height: 72px; width: auto; display: block; }
.site-nav { display: flex; gap: 28px; }
.site-nav a {
	color: rgba(0,0,0,.6);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .04em;
	text-decoration: none;
	text-transform: uppercase;
}
.header-tools { display: flex; align-items: center; gap: 4px; }
.lang-switch {
	display: inline-flex;
	align-items: center;
	line-height: 0;
	text-decoration: none;
	padding: 8px;
}
.lang-switch img {
	width: 24px;
	height: 16px;
	display: block;
	object-fit: cover;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(0,0,0,.15);
}
.mobile-nav a.lang-switch {
	display: inline-flex;
	padding: 12px 0;
}
.menu-toggle {
	display: none;
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	padding: 10px;
}
.menu-toggle span {
	display: block;
	height: 2px;
	margin: 5px 0;
	background: #03394c;
}
.mobile-nav {
	display: none;
	background: #fff;
	border-top: 1px solid rgba(0,0,0,.06);
	padding: 8px 24px 16px;
}
.mobile-nav a {
	display: block;
	padding: 12px 0;
	text-decoration: none;
	text-transform: uppercase;
	font-size: 14px;
	font-weight: 700;
}
main { padding-top: 88px; }

.s-section { position: relative; padding: 54px 0; }
.s-section.specialty { display: flex; flex-wrap: wrap; padding-left: 0; padding-right: 0; }
.s-row {
	display: flex;
	flex-wrap: wrap;
	width: min(1080px, 92%);
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}
.s-row.is-inner { width: 100%; }
.s-col { box-sizing: border-box; min-width: 0; }
.w-1_2 { width: 50%; }
.w-1_3 { width: 33.333%; }
.w-2_3 { width: 66.666%; }
.w-1_4 { width: 25%; }
.w-1_6 { width: 16.666%; }
.w-4_4 { width: 100%; }

.s-text h1,
.s-text h2,
.s-text h3,
.s-blurb h3,
.s-blurb h4,
.s-cta h2 {
	font-family: var(--h-family, KoHo, Helvetica, Arial, sans-serif);
	font-weight: var(--h-weight, 700);
	font-style: var(--h-style, normal);
	text-transform: var(--h-transform, none);
	font-size: var(--h-size, inherit);
	line-height: var(--h-lh, 1.2);
	color: var(--h-color, inherit);
	margin: 0 0 .4em;
}
.s-text h1 nobr { display: block; }
.s-text h2, .s-cta h2 {
	font-family: var(--h2-family, var(--h-family, KoHo, Helvetica, Arial, sans-serif));
	font-weight: var(--h2-weight, var(--h-weight, 700));
	font-size: var(--h2-size, var(--h-size, inherit));
	line-height: var(--h2-lh, var(--h-lh, 1.2));
	text-transform: var(--h2-transform, var(--h-transform, none));
	color: var(--h2-color, var(--h-color, inherit));
}
.s-text h3, .s-blurb h3 {
	font-family: var(--h3-family, var(--h-family, KoHo, Helvetica, Arial, sans-serif));
	font-weight: var(--h3-weight, var(--h-weight, 700));
	font-size: var(--h3-size, var(--h-size, 25px));
	line-height: var(--h3-lh, var(--h-lh, 1.3));
	text-transform: var(--h3-transform, var(--h-transform, none));
	color: var(--h3-color, var(--h-color, inherit));
}
.s-text h4, .s-blurb h4 {
	font-family: var(--h4-family, var(--h-family, KoHo, Helvetica, Arial, sans-serif));
	font-weight: var(--h4-weight, var(--h-weight, 700));
	font-size: var(--h4-size, 15px);
	line-height: var(--h4-lh, 1.4);
	letter-spacing: var(--h4-spacing, 0);
	text-transform: var(--h4-transform, none);
	color: var(--h4-color, inherit);
	margin: 0 0 .4em;
}
.s-text p, .s-blurb p { font-size: var(--p-size, 16px); line-height: var(--p-lh, 1.7); color: var(--p-color, inherit); }
.s-text a { color: var(--a-color, #35a8e0); }
.text-highlight { position: relative; color: #35a8e0; }
.text-highlight::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	height: 0.2em;
	width: 100%;
	background: #35a8e0;
	z-index: -1;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform .3s ease;
}
.text-highlight:hover::before { transform: scaleX(1); }

.s-row > .s-col { padding-left: 15px; padding-right: 15px; }
.s-row.is-flush > .s-col { padding-left: 0; padding-right: 0; }
.s-section.specialty > .s-col { padding-left: 0; padding-right: 0; }
.s-text { color: var(--p-color, inherit); }
a.s-blurb { display: block; color: inherit; text-decoration: none; }
.s-blurb img { display: block; width: auto; height: auto; max-width: 100%; margin-bottom: 12px; }
.s-blurb-icon { display: inline-block; width: 128px; max-width: 100%; margin-bottom: 30px; line-height: 0; vertical-align: top; }
.s-blurb-icon img { margin-bottom: 0; }
.s-blurb.is-center { text-align: center; }
.s-blurb.is-row { display: flex; align-items: center; gap: 12px; }
.s-blurb.is-row h4 { margin: 0; }
.s-ico { color: #fff; width: 20px; height: 20px; display: inline-flex; flex: 0 0 20px; }
.s-ico svg { width: 20px; height: 20px; display: block; }
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.s-image { overflow: hidden; }
.s-section.specialty .s-image { margin-left: 0; margin-right: 0; }
.s-image img { display: block; width: 100%; }
.s-cta .s-btn, .s-text + .s-btn, .s-toggle + .s-btn { margin-top: 18px; }

.s-btn {
	display: inline-block;
	background: #03394c;
	color: #fff;
	text-decoration: none;
	text-transform: uppercase;
	border: 0;
	border-radius: 100px;
	padding: 12px 22px;
	font-weight: 700;
	letter-spacing: .04em;
	cursor: pointer;
	box-sizing: border-box;
}
.s-down {
	width: 32px;
	height: 32px;
	border: 1px solid rgba(255,255,255,.7);
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	text-decoration: none;
}

.s-toggle { border-bottom: 1px solid rgba(0,0,0,.1); }
.s-toggle button {
	width: 100%;
	display: flex;
	justify-content: space-between;
	gap: 16px;
	background: transparent;
	border: 0;
	padding: 16px 0;
	text-align: left;
	font: inherit;
	font-weight: 600;
	color: #666;
	cursor: pointer;
}
.accordion-panel { display: none; padding-bottom: 16px; }
.accordion.is-open .accordion-panel { display: block; }
.accordion.is-open .accordion-icon { transform: rotate(45deg); display: inline-block; }

.s-fields { display: flex; flex-wrap: wrap; gap: 16px 20px; }
.s-field { width: 100%; }
.s-field-half { width: calc(50% - 10px); }
.s-input {
	width: 100%;
	box-sizing: border-box;
	background: transparent;
	border: 1.6px solid rgba(255,255,255,.3);
	border-radius: 2px;
	color: rgba(255,255,255,.9);
	padding: 16px;
	font: inherit;
	text-transform: uppercase;
}
.s-input::placeholder { color: rgba(255,255,255,.7); }
.s-input option {
	color: #03394c;
	background-color: #fff;
}
.s-form { color: #fff; }
.s-form legend { font-size: 14px; margin-bottom: 8px; }
.s-choice { display: flex; gap: 8px; align-items: center; margin: 8px 0; text-transform: uppercase; font-size: 14px; }
.s-hp { position: absolute; left: -9999px; }
.s-notice { background: #fff; color: #02638e; padding: 12px 14px; margin-bottom: 16px; }
.choice {
	appearance: none;
	width: 16px;
	height: 16px;
	border: 1px solid rgba(255,255,255,.7);
	border-radius: 2px;
	background: transparent;
}
.choice:checked { background: #35a8e0; box-shadow: inset 0 0 0 3px #03394c; }

#contatti > .s-col { box-sizing: border-box; }
.site-footer {
	background: #232323;
	color: rgba(255,255,255,.75);
	text-align: center;
	padding: 28px 16px 36px;
}
.s-code a {
	display: inline-block;
	background: #fff;
	color: #232323;
	text-decoration: none;
	border-radius: 4px;
	padding: 4px 10px;
	margin: 16px;
	font-size: 12px;
}
.site-footer a {
	display: inline-block;
	background: #fff;
	color: #232323;
	text-decoration: none;
	border-radius: 4px;
	padding: 4px 10px;
	margin: 0 6px 12px;
	font-size: 12px;
}

[data-anim] { opacity: 0; }
[data-anim].is-in {
	animation-duration: 1s;
	animation-timing-function: ease-in-out;
	animation-fill-mode: both;
}
[data-anim="flip"].is-in { animation-name: sageo-flip; }
[data-anim="fold"].is-in { animation-name: sageo-fold; }
[data-anim="slide-left"].is-in { animation-name: sageo-slide-left; }
[data-anim="slide-right"].is-in { animation-name: sageo-slide-right; }
[data-anim="zoom"].is-in { animation-name: sageo-zoom; }
[data-anim="fade-top"].is-in { animation-name: sageo-fade-top; }
[data-anim-delay="200"].is-in { animation-delay: 200ms; }
[data-anim-delay="600"].is-in { animation-delay: 600ms; }
@keyframes sageo-flip { from { opacity: 0; transform: perspective(800px) rotateX(-60deg); } to { opacity: 1; transform: none; } }
@keyframes sageo-fold { from { opacity: 0; transform: perspective(900px) rotateX(-55deg); transform-origin: top center; } to { opacity: 1; transform: none; } }
@keyframes sageo-slide-left { from { opacity: 0; transform: translateX(-14%); } to { opacity: 1; transform: none; } }
@keyframes sageo-slide-right { from { opacity: 0; transform: translateX(10%); } to { opacity: 1; transform: none; } }
@keyframes sageo-zoom { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
@keyframes sageo-fade-top { from { opacity: 0; transform: translateY(-30%); } to { opacity: 1; transform: none; } }

.page-miss { max-width: 720px; margin: 0 auto; padding: 140px 24px 80px; }
.page-miss h1 { color: #333; text-transform: uppercase; }
.page-miss .s-btn { margin-right: 12px; }

#usp {
	height: 180vh;
	padding: 0;
}
#usp .s-row {
	position: sticky;
	top: 88px;
	height: calc(100vh - 88px);
	align-items: center;
}
#usp .s-cta {
	text-align: center !important;
	margin-left: auto;
	margin-right: auto;
}
#usp .s-cta h2 {
	transform: scale(0.82);
	transform-origin: center center;
}
#usp .s-mark {
	padding-bottom: 0.12em;
	background-image: linear-gradient(#fff, #fff);
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: calc(var(--draw, 0) * 100%) 0.08em;
}
#usp .s-btn {
	opacity: 0;
}

@media (max-width: 980px) {
	.site-nav { display: none; }
	.menu-toggle { display: block; }
	.mobile-nav.is-open { display: block; }
	.w-1_2, .w-1_3, .w-2_3, .w-1_4, .w-1_6 { width: 100%; }
	.s-field-half { width: 100%; }
	.sageo-hide-phone { display: none !important; }
	.s-section.specialty .s-text.sageo-hide-desktop h3 { text-align: center; }
	#approfondimento-aree .s-cta {
		padding-left: 28px !important;
		padding-right: 28px !important;
	}
	#approfondimento-aree .s-cta h2 {
		font-size: clamp(22px, 6.5vw, 34px);
	}
	.s-text h1 { font-size: 40px; }
	#usp { height: 140vh; }
}
@media (min-width: 981px) {
	.sageo-hide-desktop { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
	[data-anim], [data-anim].is-in { opacity: 1; animation: none; }
	#usp { height: auto; padding: 54px 0; }
	#usp .s-row { position: static; height: auto; }
	#usp .s-cta h2 { transform: none; }
	#usp .s-mark { background-size: 100% 0.08em; }
	#usp .s-btn { opacity: 1; }
}
