/* Nami Hub — hub d'ingresso con il triangolo delle tre aree. */

@font-face { font-family: "Nami Playfair"; src: url(fonts/playfair-display-latin-400-italic.woff2) format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "Nami Playfair"; src: url(fonts/playfair-display-latin-500-italic.woff2) format("woff2"); font-style: italic; font-weight: 500; font-display: swap; }
@font-face { font-family: "Nami Grotesk"; src: url(fonts/space-grotesk-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nami Grotesk"; src: url(fonts/space-grotesk-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Nami Grotesk"; src: url(fonts/space-grotesk-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nami Mono"; src: url(fonts/space-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nami Mono"; src: url(fonts/space-mono-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

/* Pagina con il template dell'hub: niente margini/spazi del tema. */
body.nami-hub-page { margin: 0; background: #0A0A0A; }
body.nami-hub-page .wp-site-blocks { padding: 0 !important; margin: 0 !important; }
body.nami-hub-page .wp-site-blocks > * { margin-block: 0 !important; }

.nh {
	--nh-serif: "Nami Playfair", "Playfair Display", Georgia, serif;
	--nh-sans: "Titillium Web", system-ui, -apple-system, "Segoe UI", sans-serif;
	--nh-grot: "Nami Grotesk", "Space Grotesk", "Titillium Web", sans-serif;
	--nh-mono: "Nami Mono", "Space Mono", ui-monospace, monospace;
	--nh-head: Arial, "Helvetica Neue", Helvetica, sans-serif;
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: none !important;
	min-height: max(700px, 100vh);
	min-height: max(700px, 100svh);
	margin: 0 !important;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	background-color: var(--nh-bg);
	color: var(--nh-fg);
	font-family: var(--nh-sans);
	font-size: 18px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	transition: background-color .7s ease, color .7s ease;
}
.admin-bar .nh { min-height: max(700px, calc(100vh - 32px)); }
.nh *, .nh *::before, .nh *::after { box-sizing: border-box; }
.nh a { color: inherit; }
.nh p, .nh h1, .nh h2, .nh ul { margin: 0; }
.nh em { font-family: var(--nh-serif); font-style: italic; font-weight: 400; }
.nh-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nh a:focus-visible, .nh button:focus-visible { outline: 2px solid var(--nh-accent); outline-offset: 3px; background: transparent; }
.nh .nh-enter:focus-visible { outline-color: var(--nh-fg); }

.nh-wrap { position: relative; z-index: 2; width: 100%; max-width: 1360px; margin: 0 auto; padding-inline: 40px; }

/* Decorazioni di sfondo per area (dissolvenza incrociata) */
.nh-deco { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .7s ease; z-index: 0; }
.nh[data-area="none"] .nh-deco--none,
.nh[data-area="eventi"] .nh-deco--eventi,
.nh[data-area="stampa"] .nh-deco--stampa,
.nh[data-area="marketing"] .nh-deco--marketing { opacity: 1; }
.nh-deco--none { background: radial-gradient(circle at 70% 50%, rgba(255,255,255,.07), rgba(255,255,255,0) 45%); }
.nh-deco--eventi { background: radial-gradient(circle at 70% 48%, rgba(212,185,126,.28), rgba(212,185,126,0) 42%), radial-gradient(circle at 18% 85%, rgba(162,135,10,.18), rgba(162,135,10,0) 40%); }
.nh-deco--marketing { background: radial-gradient(circle at 72% 46%, rgba(108,92,255,.55), rgba(108,92,255,0) 44%), radial-gradient(circle at 88% 90%, rgba(198,255,61,.22), rgba(198,255,61,0) 32%); }
.nh-dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1.4px); background-size: 28px 28px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%, #000 80%, transparent); mask-image: linear-gradient(90deg, transparent, #000 45%, #000 80%, transparent); }
.nh-crop { position: absolute; width: 34px; height: 34px; border: 0 solid #0A0A0A; }
.nh-crop--tl { top: 22px; left: 22px; border-top-width: 1px; border-left-width: 1px; }
.nh-crop--tr { top: 22px; right: 22px; border-top-width: 1px; border-right-width: 1px; }
.nh-crop--bl { bottom: 22px; left: 22px; border-bottom-width: 1px; border-left-width: 1px; }
.nh-crop--br { bottom: 22px; right: 22px; border-bottom-width: 1px; border-right-width: 1px; }

/* Intestazione */
.nh-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 26px; padding-bottom: 22px; z-index: 6; }
.nh-brand { display: flex; color: var(--nh-fg); transition: color .7s ease; }
.nh-logo { display: block; height: 42px; width: auto; }
.nh-nav { display: flex; align-items: center; gap: 32px; }
.nh-nav__link { text-decoration: none; font-size: 16px; }
.nh-nav__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.nh-burger { width: 52px; height: 52px; border-radius: 999px; border: 0; padding: 0; background: var(--nh-accent); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; transition: background-color .7s ease; }
.nh-burger__line { display: block; width: 18px; height: 1.5px; background: var(--nh-on-accent); transition: transform .25s ease, background-color .7s ease; }
.nh-burger[aria-expanded="true"] .nh-burger__line:first-child { transform: translateY(3.25px) rotate(45deg); }
.nh-burger[aria-expanded="true"] .nh-burger__line:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

/* Menu a comparsa */
.nh-menu { position: absolute; inset: 0; z-index: 5; background: var(--nh-bg); display: flex; align-items: center; padding: 120px 40px 60px; }
.nh-menu[hidden] { display: none; }
.nh-menu__list { list-style: none; padding: 0; width: 100%; max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; gap: 6px; }
.nh-menu__list a { display: inline-flex; align-items: baseline; gap: 18px; text-decoration: none; font-family: var(--nh-head); font-weight: 700; font-size: clamp(36px, 6vw, 72px); line-height: 1.08; letter-spacing: -0.03em; }
.nh-menu__list a:hover { color: var(--nh-accent); }
.nh-menu__num { font-family: var(--nh-sans); font-size: 15px; font-weight: 600; letter-spacing: .1em; opacity: .6; }

/* Corpo */
.nh-hero { flex: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; padding-top: 20px; padding-bottom: 20px; }
.nh-copy-col { display: grid; }
.nh-copy { grid-area: 1 / 1; display: none; flex-direction: column; gap: 24px; }
.nh[data-area="none"] .nh-copy--none,
.nh[data-area="eventi"] .nh-copy--eventi,
.nh[data-area="stampa"] .nh-copy--stampa,
.nh[data-area="marketing"] .nh-copy--marketing { display: flex; animation: nh-fade .55s cubic-bezier(.2,.7,.2,1); }
@keyframes nh-fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.nh-kicker { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #D4B97E; }
.nh-text { max-width: 440px; font-size: 18px; line-height: 1.55; opacity: .75; }
.nh-title { font-weight: 700; color: inherit; }
.nh-title--none { font-family: var(--nh-head); font-size: clamp(54px, 6.4vw, 92px); line-height: .9; letter-spacing: -0.045em; }
.nh-title--none em { letter-spacing: -0.02em; color: #D4B97E; }

/* Eventi — nero e oro */
.nh-title--eventi { font-family: var(--nh-serif); font-style: italic; font-weight: 400; font-size: clamp(84px, 9.2vw, 132px); line-height: .9; letter-spacing: -0.03em; color: #D4B97E; }
.nh-sub--eventi { font-family: var(--nh-head); font-size: 34px; line-height: 1.05; letter-spacing: -0.02em; }

/* Stampa — carta e CMYK */
.nh-copy--stampa { gap: 22px; }
.nh-copy--stampa .nh-kicker { font-family: var(--nh-mono); font-weight: 400; letter-spacing: .06em; color: #0A0A0A; }
.nh-cmyk { display: flex; height: 10px; width: 220px; }
.nh-cmyk span { flex: 1; }
.nh-cmyk span:nth-child(1) { background: #00A0E3; }
.nh-cmyk span:nth-child(2) { background: #E5007E; }
.nh-cmyk span:nth-child(3) { background: #FFE600; }
.nh-cmyk span:nth-child(4) { background: #0A0A0A; }
.nh-title--stampa { font-family: var(--nh-grot); font-size: clamp(70px, 8.2vw, 118px); line-height: .86; letter-spacing: -0.05em; text-transform: uppercase; color: #0A0A0A; }
.nh-dot { color: #E5007E; }
.nh-sub--stampa { font-family: var(--nh-grot); font-size: 26px; line-height: 1.15; font-weight: 500; letter-spacing: -0.01em; }
.nh-copy--stampa .nh-text { color: #3A3A3A; opacity: 1; }

/* Marketing — indaco, viola e lime */
.nh-copy--marketing .nh-kicker { font-family: var(--nh-grot); font-size: 14px; font-weight: 500; letter-spacing: .02em; text-transform: none; color: #C6FF3D; }
.nh-title--marketing { font-family: var(--nh-grot); font-size: clamp(58px, 7.2vw, 104px); line-height: .9; letter-spacing: -0.05em; }
.nh-title--marketing span { color: #C6FF3D; }
.nh-sub--marketing { font-family: var(--nh-grot); font-size: 24px; line-height: 1.2; opacity: .88; }

/* Pulsanti "Entra" */
.nh-enter { display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 28px; text-decoration: none; font-weight: 600; font-size: 17px; transition: transform .2s ease; }
.nh-enter:hover { transform: translateX(4px); }
.nh .nh-enter--eventi { background: #D4B97E; color: #0A0A0A; border-radius: 999px; }
.nh .nh-enter--stampa { background: #0A0A0A; color: #FFFFFF; border-radius: 2px; font-family: var(--nh-mono); font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.nh .nh-enter--marketing { background: #C6FF3D; color: #0E0B2E; border-radius: 16px; font-family: var(--nh-grot); }

/* Triangolo */
.nh-tri-col { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.nh-tri { position: relative; width: min(640px, 100%); aspect-ratio: 205 / 194; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.nh-tri__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.nh-tri__svg--3d { opacity: 0; pointer-events: none; }
.nh-tri.is-3d .nh-tri__svg--3d { opacity: 1; pointer-events: auto; }
.nh-tri.is-3d .nh-tri__svg--flat { opacity: 0; pointer-events: none; }
.nh-tri path { stroke: var(--nh-stroke); stroke-width: .5; stroke-linejoin: round; }
.nh-face { transition: fill .5s ease; }

/* Scelta area */
.nh-pickers { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.nh-pk { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px 0 8px; border-radius: 999px; border: 1px solid currentColor; text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1; opacity: .62; transition: opacity .25s ease; }
.nh-pk:hover, .nh-pk:focus-visible, .nh-pk.is-on { opacity: 1; }
.nh-pk__dot { width: 30px; height: 30px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: var(--nh-dot); color: var(--nh-dot-ink); }

/* Piè di pagina */
.nh-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; padding-bottom: 26px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; opacity: .72; }
.nh-foot a { text-decoration: none; }

@media (max-width: 900px) {
	.nh-wrap { padding-inline: 20px; }
	.nh-top { padding-top: 18px; padding-bottom: 8px; }
	.nh-logo { height: 34px; }
	.nh-nav__link, .nh-foot__hint { display: none; }
	.nh-hero { grid-template-columns: minmax(0, 1fr); gap: 8px; align-content: start; padding-top: 0; }
	.nh-copy-col { order: 2; }
	.nh-tri-col { order: 1; }
	.nh-tri { width: min(420px, 100%); }
	.nh-copy { gap: 18px; }
	.nh-sub--eventi { font-size: 28px; }
	.nh-sub--stampa, .nh-sub--marketing { font-size: 22px; }
	.nh-text { font-size: 17px; }
	.nh-cmyk { width: 160px; }
	.nh-crop { width: 22px; height: 22px; }
	.nh-crop--tl, .nh-crop--tr { top: 12px; }
	.nh-crop--bl, .nh-crop--br { bottom: 12px; }
	.nh-crop--tl, .nh-crop--bl { left: 12px; }
	.nh-crop--tr, .nh-crop--br { right: 12px; }
	.nh-menu { padding: 110px 20px 40px; align-items: flex-start; }
	.nh-foot { flex-wrap: wrap; letter-spacing: .06em; }
}

@media (prefers-reduced-motion: reduce) {
	.nh, .nh-deco, .nh-face, .nh-burger, .nh-burger__line { transition: none; }
	.nh-copy { animation: none !important; }
	.nh-enter:hover { transform: none; }
}

/* Anteprima nell'editor */
.nh-editor-ph { padding: 48px 32px; background: #0A0A0A; color: #fff; text-align: center; font-family: system-ui, sans-serif; }
.nh-editor-ph strong { display: block; font-size: 20px; margin-bottom: 6px; }
