/*
Theme Name: Mentore
Theme URI: https://mentore.org
Author: Stefano Coquinati
Description: Tema minimale per il portale operativo mentore.org. Hero con nome del portale, navigazione ai quattro angoli, sezione sticker e footer.
Version: 1.2
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: mentore
*/

@font-face {
	font-family: "Bricolage";
	src: url("assets/fonts/bricolage.woff2") format("woff2");
	font-weight: 200 800;
	font-stretch: 75% 100%;
	font-display: swap;
}

:root {
	--blu: #1b3bc8;
	--blu-scuro: #132a94;
	--chiaro: #f4f1ea;
	--inchiostro: #10163a;
	--bianco: #ffffff;
	--margine: clamp(20px, 5vw, 80px);
	--font: "Bricolage", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font);
	color: var(--inchiostro);
	background: var(--chiaro);
	-webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ---------- Etichette (stile "MULTI AXES" del riferimento) ---------- */
.etichetta {
	font-size: clamp(13px, 1.1vw, 16px);
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1.4;
}

/* ---------- HERO ---------- */
.hero {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	background: var(--blu);
	color: var(--bianco);
	display: grid;
	place-items: center;
	padding: calc(var(--margine) + 40px) var(--margine);
	overflow: hidden;
}

.angolo {
	position: absolute;
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 6px 0;
	border-bottom: 1px solid transparent;
	transition: border-color .2s ease, opacity .2s ease;
}
.angolo:hover,
.angolo:focus-visible { border-bottom-color: currentColor; outline: none; }

.angolo--alto-sx  { top: var(--margine);    left: var(--margine); }
.angolo--alto-dx  { top: var(--margine);    right: var(--margine); }
.angolo--basso-sx { bottom: var(--margine); left: var(--margine); }
.angolo--basso-dx { bottom: var(--margine); right: var(--margine); }

.angolo .freccia { font-size: 0.95em; }

.marchio {
	margin: 0;
	display: inline-flex;
	flex-direction: column;
	align-items: flex-end;
	line-height: 0.82;
	font-weight: 800;
	font-stretch: 75%;
	font-variation-settings: "opsz" 96;
	letter-spacing: -0.035em;
}

.marchio__nome {
	display: block;
	font-size: clamp(84px, 19vw, 340px);
}

.marchio__dominio {
	display: block;
	font-size: clamp(32px, 6.5vw, 116px);
	letter-spacing: -0.02em;
	margin-top: 0.04em;
	margin-right: 0.04em;
}

/* ---------- SEZIONE STICKER ---------- */
.missione {
	background: var(--chiaro);
	padding: clamp(80px, 12vw, 160px) var(--margine);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 40px;
}

.sticker {
	width: clamp(260px, 34vw, 420px);
	height: auto;
	transform: rotate(-6deg);
	filter: drop-shadow(0 14px 22px rgba(16, 22, 58, .18));
	transition: transform .4s ease;
}
.sticker:hover { transform: rotate(0deg) scale(1.02); }

.sticker__ruota { transform-origin: 200px 200px; animation: gira 40s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	.sticker__ruota { animation: none; }
}

.illustrazione,
.illustrazione img {
	display: block;
	width: min(100%, 1100px);
	height: auto;
	margin-left: auto;
	margin-right: auto;
}

.contenuto-home {
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	font-size: 18px;
	line-height: 1.6;
}
.contenuto-home > * { margin-left: auto; margin-right: auto; }
.contenuto-home > *:not(.alignwide):not(.alignfull):not(.wp-block-image) { max-width: 760px; }
.contenuto-home .alignwide { max-width: 1100px; }
.contenuto-home .alignfull { max-width: none; width: 100vw; margin-left: calc(50% - 50vw); }
.contenuto-home h2 {
	font-size: clamp(32px, 4.5vw, 56px);
	font-weight: 800;
	font-stretch: 75%;
	letter-spacing: -0.03em;
	line-height: 1;
	color: var(--blu);
}
.contenuto-home a { color: var(--blu); }
.payoff-home {
	font-size: clamp(22px, 2.6vw, 34px);
	font-weight: 700;
	font-stretch: 85%;
	letter-spacing: -0.015em;
	color: var(--blu);
}
.nota-admin {
	font-size: 14px;
	background: #fff;
	border: 1px dashed var(--blu);
	padding: 10px 14px;
	max-width: 560px;
}

/* ---------- CONTENUTI PAGINE INTERNE ---------- */
.barra {
	background: var(--blu);
	color: var(--bianco);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
	padding: 22px var(--margine);
}
.barra__logo {
	font-weight: 800;
	font-stretch: 75%;
	font-size: 30px;
	letter-spacing: -0.03em;
	text-decoration: none;
}
.barra__nav { display: flex; gap: clamp(16px, 3vw, 40px); flex-wrap: wrap; }
.barra__nav a { text-decoration: none; }
.barra__nav a:hover, .barra__nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

.contenuto {
	max-width: 820px;
	margin: 0 auto;
	padding: clamp(48px, 8vw, 110px) var(--margine);
	font-size: 18px;
	line-height: 1.65;
}
.contenuto h1 {
	font-size: clamp(40px, 6vw, 76px);
	font-weight: 800;
	font-stretch: 75%;
	letter-spacing: -0.03em;
	line-height: 1;
	margin: 0 0 32px;
	color: var(--blu);
}
.contenuto h2, .contenuto h3 { font-weight: 700; line-height: 1.15; }
.contenuto a { color: var(--blu); }
.contenuto img { max-width: 100%; height: auto; }
.contenuto article + article { margin-top: 56px; padding-top: 40px; border-top: 1px solid rgba(16,22,58,.15); }

/* ---------- FOOTER ---------- */
.piede {
	background: var(--inchiostro);
	color: rgba(255,255,255,.82);
	padding: clamp(48px, 6vw, 72px) var(--margine) 32px;
}
.piede__griglia {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 40px;
	padding-bottom: 40px;
	border-bottom: 1px solid rgba(255,255,255,.15);
}
.piede__logo {
	font-size: 44px;
	font-weight: 800;
	font-stretch: 75%;
	letter-spacing: -0.03em;
	color: var(--bianco);
	margin: 0 0 10px;
	line-height: 1;
}
.piede__payoff { margin: 0; max-width: 34ch; line-height: 1.5; }
.piede h2 { margin: 0 0 14px; color: var(--bianco); }
.piede ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.piede a { text-decoration: none; }
.piede a:hover { color: var(--bianco); text-decoration: underline; }
.piede__fondo {
	display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
	padding-top: 24px; font-size: 14px; color: rgba(255,255,255,.6);
}

@media (max-width: 720px) {
	.piede__griglia { grid-template-columns: 1fr; }
	.marchio__nome { font-size: 25vw; }
	.marchio__dominio { font-size: 10vw; }
}
