/**
 * Node Theme — design system: token, tipografia, classi d'uso.
 *
 * I token sono i valori di partenza: Aspetto > Personalizza > Node Theme li sovrascrive
 * (stile in linea stampato subito dopo questo file).
 *
 * Le classi si applicano dal campo "Classi CSS" dei widget Elementor. I tag dei titoli
 * restano quelli della referente: le classi cambiano solo l'aspetto.
 */

:root {
	--nt-ink: #121416;
	--nt-ink-2: #1e2124;
	--nt-accent: #9dd12c;
	--nt-accent-dark: #4e7a0c;
	--nt-paper: #f4f5f0;
	--nt-white: #fff;
	--nt-text: #4a4f54;
	--nt-muted: #6b7177;
	--nt-text-dark: rgba(255, 255, 255, 0.72);
	--nt-dim: #a9aeb2;
	--nt-line: color-mix(in srgb, var(--nt-ink) 12%, transparent);
	--nt-line-dark: rgba(255, 255, 255, 0.1);
	--nt-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--nt-radius: 28px;
	--nt-grid: 80px;
	--nt-font-display: 'Archivo', sans-serif;
	--nt-font-body: 'Nunito Sans', sans-serif;
	--nt-header-h: 96px;
}

@media (max-width: 767px) {
	:root {
		--nt-radius: 20px;
	}
}

/* ==========================================================================
   Tipografia: larghezza dell'Archivo variabile (asse wdth = font-stretch)
   ========================================================================== */

h1, .h1 { font-stretch: 125%; }
h2, .h2, h3, .h3 { font-stretch: 112%; }

.nt-x,
.nt-x .ld-fh-element,
.nt-x .elementor-heading-title {
	font-family: var(--nt-font-display);
	font-stretch: 125%;
	font-weight: 800;
	letter-spacing: -0.02em;
}

/* Titolo a contorno: testo reale, riempimento trasparente. */
.nt-outline,
.nt-outline .ld-fh-element,
.nt-outline .elementor-heading-title {
	color: transparent !important;
	-webkit-text-stroke: 1.5px var(--nt-accent);
}

.nt-on-light .nt-outline,
.nt-outline.nt-on-light {
	-webkit-text-stroke-color: var(--nt-ink);
}

/* Stili di titolo indipendenti dal tag (H1/H2/H3 della referente). */
.nt-display-xl .ld-fh-element, .nt-display-xl .elementor-heading-title, .nt-display-xl {
	font: 800 104px/0.95 var(--nt-font-display); font-stretch: 125%; letter-spacing: -0.02em;
}
.nt-display-l .ld-fh-element, .nt-display-l .elementor-heading-title, .nt-display-l {
	font: 800 132px/0.92 var(--nt-font-display); font-stretch: 125%; letter-spacing: -0.02em;
}
.nt-h2 .ld-fh-element, .nt-h2 .elementor-heading-title {
	font: 800 64px/1 var(--nt-font-display); font-stretch: 112%; letter-spacing: -0.03em;
}
.nt-h2s .ld-fh-element, .nt-h2s .elementor-heading-title {
	font: 800 52px/1.02 var(--nt-font-display); font-stretch: 112%; letter-spacing: -0.03em;
}
.nt-card-title .ld-fh-element, .nt-card-title .elementor-heading-title, .nt-card-title {
	font: 700 26px/1.15 var(--nt-font-display); font-stretch: 112%; letter-spacing: -0.015em;
}
.nt-big .ld-fh-element, .nt-big p, .nt-big {
	font: 500 34px/1.32 var(--nt-font-display); font-stretch: 100%; letter-spacing: -0.01em;
}
.nt-lead .ld-fh-element, .nt-lead p, .nt-lead {
	font: 400 19px/1.6 var(--nt-font-body);
}
.nt-dim { color: var(--nt-dim); }

@media (max-width: 1024px) {
	.nt-display-xl .ld-fh-element, .nt-display-xl .elementor-heading-title, .nt-display-xl { font-size: 72px; }
	.nt-display-l .ld-fh-element, .nt-display-l .elementor-heading-title, .nt-display-l { font-size: 88px; }
	.nt-h2 .ld-fh-element, .nt-h2 .elementor-heading-title { font-size: 48px; }
	.nt-h2s .ld-fh-element, .nt-h2s .elementor-heading-title { font-size: 42px; }
	.nt-card-title .ld-fh-element, .nt-card-title .elementor-heading-title, .nt-card-title { font-size: 24px; }
	.nt-big .ld-fh-element, .nt-big p, .nt-big { font-size: 28px; }
	.nt-lead .ld-fh-element, .nt-lead p, .nt-lead { font-size: 18px; }
}

@media (max-width: 767px) {
	.nt-display-xl .ld-fh-element, .nt-display-xl .elementor-heading-title, .nt-display-xl { font-size: 46px; }
	.nt-display-l .ld-fh-element, .nt-display-l .elementor-heading-title, .nt-display-l { font-size: 52px; }
	.nt-h2 .ld-fh-element, .nt-h2 .elementor-heading-title { font-size: 36px; }
	.nt-h2s .ld-fh-element, .nt-h2s .elementor-heading-title { font-size: 32px; }
	.nt-card-title .ld-fh-element, .nt-card-title .elementor-heading-title, .nt-card-title { font-size: 22px; }
	.nt-big .ld-fh-element, .nt-big p, .nt-big { font-size: 23px; }
	.nt-lead .ld-fh-element, .nt-lead p, .nt-lead { font-size: 17px; }
}

/* Etichetta di sezione: "01 · PRESENTAZIONE AZIENDALE". */
.nt-label,
.nt-label .ld-fh-element,
.nt-label .elementor-heading-title {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font: 800 12px/1 var(--nt-font-body);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--nt-muted);
}

.nt-label-n {
	font: 800 12px/1 var(--nt-font-display);
	font-stretch: 125%;
	letter-spacing: 0;
	color: var(--nt-accent-dark);
}

.nt-label-n::after {
	content: '·';
	margin-left: 10px;
	color: var(--nt-muted);
}

.nt-dark .nt-label,
.nt-dark .nt-label .ld-fh-element,
.nt-dark .nt-label .elementor-heading-title { color: rgba(255, 255, 255, 0.55); }
.nt-dark .nt-label-n { color: var(--nt-accent); }

/* Sul accento il grigio attenuato scende sotto 3:1: etichetta in inchiostro velato. */
.nt-accent-bg .nt-label,
.nt-accent-bg .nt-label .ld-fh-element,
.nt-accent-bg .nt-label .elementor-heading-title { color: color-mix(in srgb, var(--nt-ink) 72%, transparent); }
.nt-accent-bg .nt-label-n, .nt-accent-bg .nt-label-n::after { color: var(--nt-ink); }

/* H1 dell'hero reso come etichetta bianca con puntino accento. */
.nt-hero-h1 .ld-fh-element,
.nt-hero-h1 .elementor-heading-title,
.nt-hero-h1 h1 {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font: 800 13px/1 var(--nt-font-body) !important;
	letter-spacing: 0.16em !important;
	text-transform: uppercase;
	color: #fff !important;
}

.nt-hero-h1 .ld-fh-element::before,
.nt-hero-h1 .elementor-heading-title::before,
.nt-hero-h1 h1::before {
	content: '';
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--nt-accent);
	box-shadow: 0 0 0 6px color-mix(in srgb, var(--nt-accent) 18%, transparent), 0 0 18px color-mix(in srgb, var(--nt-accent) 60%, transparent);
	flex: none;
}

/* ==========================================================================
   Superfici: scuro, carta, accento, griglia blueprint, alone
   ========================================================================== */

/*
 * Le superfici vincono sempre (!important): un widget che imposta uno sfondo bianco di
 * base non deve mai finire sopra una sezione scura con i testi bianchi (bianco su bianco).
 */
.nt-dark { background-color: var(--nt-ink) !important; color: var(--nt-text-dark); }
.nt-dark h1, .nt-dark h2, .nt-dark h3, .nt-dark h4,
.nt-dark .ld-fh-element { color: #fff; }
.nt-paper { background-color: var(--nt-paper) !important; }
.nt-accent-bg { background-color: var(--nt-accent) !important; color: var(--nt-ink); }
.nt-accent-bg h1, .nt-accent-bg h2, .nt-accent-bg h3, .nt-accent-bg .ld-fh-element { color: var(--nt-ink); }

/*
 * Il tema colora ogni link in :hover con --color-link-hover (oliva scuro), e "a:hover" batte le
 * classi dei link NT che non dichiarano un proprio hover: su fondo scuro diventa nero su nero.
 * Il colore di hover segue quindi la superficie: inchiostro sul chiaro e sul accento, accento sullo
 * scuro (.nt-dark dopo, per vincere su .nt-sec.nt-dark).
 */
.nt-sec, .nt-paper, .nt-accent-bg { --color-link-hover: var(--nt-ink); }
.nt-dark { --color-link-hover: var(--nt-accent); }

/*
 * Colore dei link "nudi" (banner cookie, privacy, testi del tema): il blu BIIG #5b7bfb delle
 * opzioni del tema sta a 3,7:1 sul bianco. Inchiostro di base (classe del body per battere la
 * regola body del tema), bianco sulle superfici scure.
 */
body { --color-link: var(--nt-ink); --color-link-hover: var(--nt-accent-dark); }
.nt-dark { --color-link: #fff; }

/* Griglia 80 px: scura (nt-bp), chiara (nt-bp-lt), su accento (nt-bp-accent). */
.nt-bp, .nt-bp-lt, .nt-bp-accent {
	background-image:
		linear-gradient(var(--nt-bp-c) 1px, transparent 1px),
		linear-gradient(90deg, var(--nt-bp-c) 1px, transparent 1px);
	background-size: var(--nt-grid) var(--nt-grid);
	background-position: -1px -1px;
}
.nt-bp { --nt-bp-c: rgba(255, 255, 255, 0.045); }
.nt-bp-lt { --nt-bp-c: color-mix(in srgb, var(--nt-ink) 5.5%, transparent); }
.nt-bp-accent { --nt-bp-c: color-mix(in srgb, var(--nt-ink) 8%, transparent); }

.nt-glow { position: relative; overflow: hidden; }
.nt-glow::after {
	content: '';
	position: absolute;
	right: -20%;
	bottom: -40%;
	width: 70vw;
	height: 70vw;
	max-width: 1100px;
	max-height: 1100px;
	background: radial-gradient(circle, color-mix(in srgb, var(--nt-accent) 20%, transparent), transparent 65%);
	pointer-events: none;
	z-index: 0;
}
.nt-glow > .elementor-container,
.nt-glow > .e-con-inner { position: relative; z-index: 1; }

/* ==========================================================================
   Bottone a capsula (widget Pulsante di Elementor + classe nt-btn)
   Varianti: nt-btn--accent (default), nt-btn--ink, nt-btn--outline, nt-btn--outline-dark,
   nt-btn--sm (header). Il cerchio con la freccia e' un ::after, niente icona da impostare.
   ========================================================================== */

.nt-btn .elementor-button {
	--nt-btn-h: 60px;
	--nt-btn-c: 42px;
	--nt-btn-bg: var(--nt-accent);
	--nt-btn-fg: var(--nt-ink);
	--nt-btn-circle: var(--nt-ink);
	--nt-btn-arrow: var(--nt-accent);
	--nt-btn-border: transparent;
	display: inline-flex;
	align-items: center;
	gap: 18px;
	height: var(--nt-btn-h);
	padding: 0 calc((var(--nt-btn-h) - var(--nt-btn-c)) / 2) 0 28px;
	border: 1px solid var(--nt-btn-border);
	border-radius: 999px;
	background: var(--nt-btn-bg);
	color: var(--nt-btn-fg);
	font: 800 14px/1 var(--nt-font-body);
	letter-spacing: 0.04em;
	transition: background-color 0.25s var(--nt-ease), color 0.25s var(--nt-ease), border-color 0.25s var(--nt-ease), transform 0.35s var(--nt-ease);
}

/*
 * Colore del testo in ogni stato del link: Elementor ha ".elementor-button:focus, :hover, :visited
 * { color: #fff }" alla stessa specificita' di ".nt-btn .elementor-button", e senza questa regola un
 * bottone chiaro gia' visitato o appena cliccato diventava bianco su bianco.
 */
.nt-btn .elementor-button:is(:link, :visited, :hover, :focus, :focus-visible, :active) { color: var(--nt-btn-fg); }

.nt-magnetic { transition: transform 0.35s var(--nt-ease); }

/* Il bottone non va mai a capo e non si fa schiacciare dai titoli accanto. */
.nt-btn { flex: none; }
.nt-btn .elementor-button { white-space: nowrap; }

.nt-btn .elementor-button-icon { display: none; }
.nt-btn .elementor-button-text { color: inherit; }

/*
 * Cerchio a destra: colore pieno (--nt-btn-circle) + freccia disegnata in SVG con il
 * colore gia' dentro (--nt-arrow-img). Le varianti cambiano solo queste due variabili.
 */
.nt-btn .elementor-button {
	--nt-arrow-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 42 42'%3E%3Cpath d='M14 21h14M22 15l6 6-6 6' fill='none' stroke='%239dd12c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.nt-btn .elementor-button::after {
	content: '';
	flex: none;
	width: var(--nt-btn-c);
	height: var(--nt-btn-c);
	border-radius: 50%;
	background-color: var(--nt-btn-circle);
	background-image: var(--nt-arrow-img);
	background-position: center;
	background-size: 100% 100%;
	background-repeat: no-repeat;
	transition: transform 0.35s var(--nt-ease);
}

.nt-btn .elementor-button:hover::after,
.nt-btn .elementor-button:focus-visible::after { transform: rotate(-45deg); }

.nt-btn--ink .elementor-button {
	--nt-btn-bg: var(--nt-ink);
	--nt-btn-fg: #fff;
	--nt-btn-circle: var(--nt-accent);
	--nt-arrow-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 42 42'%3E%3Cpath d='M14 21h14M22 15l6 6-6 6' fill='none' stroke='%23121416' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.nt-btn--outline .elementor-button {
	--nt-btn-bg: transparent;
	--nt-btn-fg: var(--nt-ink);
	--nt-btn-border: var(--nt-ink);
	--nt-btn-circle: var(--nt-ink);
}
.nt-btn--outline .elementor-button:hover { --nt-btn-bg: var(--nt-ink); --nt-btn-fg: #fff; }

.nt-btn--outline-dark .elementor-button {
	--nt-btn-bg: transparent;
	--nt-btn-fg: #fff;
	--nt-btn-border: rgba(255, 255, 255, 0.35);
	--nt-btn-circle: #fff;
	--nt-arrow-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 42 42'%3E%3Cpath d='M14 21h14M22 15l6 6-6 6' fill='none' stroke='%23121416' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.nt-btn--outline-dark .elementor-button:hover { --nt-btn-border: #fff; }

.nt-btn--accent .elementor-button:hover { --nt-btn-bg: color-mix(in srgb, var(--nt-accent) 80%, #fff); }

.nt-btn--sm .elementor-button { --nt-btn-h: 50px; --nt-btn-c: 34px; padding-left: 22px; }

@media (max-width: 767px) {
	.nt-btn--full .elementor-button { width: 100%; justify-content: space-between; }
}

/* Link freccia: cerchio con bordo + testo. */
.nt-arrow-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font: 800 13px/1 var(--nt-font-body);
	letter-spacing: 0.06em;
	color: inherit;
	text-decoration: none;
}

.nt-arrow-link::before {
	content: '';
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid currentColor;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M13 20h14M21 14l6 6-6 6' fill='none' stroke='%23121416' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat;
	transition: background-color 0.25s var(--nt-ease);
	flex: none;
}

.nt-arrow-link:hover::before { background-color: var(--nt-accent); border-color: var(--nt-accent); }

/* Chip (categoria sulle immagini dei progetti). */
.nt-chip {
	display: inline-flex;
	align-items: center;
	height: 30px;
	padding: 0 14px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--nt-ink) 72%, transparent);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: #fff;
	font: 700 12px/1 var(--nt-font-body);
	letter-spacing: 0.02em;
}

/* Card e immagini arrotondate. */
.nt-card, .nt-round img, .nt-round .elementor-widget-container { border-radius: var(--nt-radius); overflow: hidden; }

/* ==========================================================================
   Entrate allo scroll (nt-reveal) e apertura a maschera (nt-mask)
   Lo stato iniziale vale solo con JS attivo e movimento non ridotto: senza JS
   tutto resta visibile.
   ========================================================================== */

.nt-js:not(.nt-reduced-motion) .nt-reveal:not(.nt-in) { opacity: 0; transform: translateY(24px); }
.nt-reveal { transition: opacity 0.8s var(--nt-ease), transform 0.8s var(--nt-ease); }
.nt-reveal.nt-in { opacity: 1; transform: none; }

.nt-js:not(.nt-reduced-motion) .nt-mask img { clip-path: inset(10% round var(--nt-radius)); }
.nt-mask img { transition: clip-path 1.2s var(--nt-ease); }
.nt-mask.nt-in img { clip-path: inset(0 round var(--nt-radius)); }

/* ==========================================================================
   Accessibilita'
   ========================================================================== */

:where(a, button, [tabindex]):focus-visible {
	outline: 2px solid var(--nt-accent);
	outline-offset: 2px;
	box-shadow: 0 0 0 4px var(--nt-ink);
}

.nt-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	.nt-reveal, .nt-mask img, .nt-btn .elementor-button, .nt-btn .elementor-button::after { transition: none !important; }
}
