/*
	Theme Name: Lab591
	Description: Tema figlio di Hello Elementor per lab591.com.
	Author: Lab591
	Template: hello-elementor
	Version: 1.0.0
	Requires at least: 6.0
	Requires PHP: 7.4
	Text Domain: lab591
*/

/*
 * Token del brand (vedi STYLE-GUIDE.md). I colori e i font principali sono anche nei globali
 * del kit Elementor: nel CSS personalizzato preferire var(--e-global-color-*) quando esiste.
 */
:root {
	--lab-green: #5ac134;
	--lab-green-light: #7bd35a;
	--lab-green-dark: #3f9a1f;
	--lab-bg: #171415;
	--lab-surface: #231f20;
	--lab-raised: #2e2a2b;
	--lab-border: #403a3b;
	--lab-white: #ffffff;
	--lab-text: #d9d5d6;
	--lab-muted: #9c9697;

	--lab-font-title: 'Share Tech', ui-sans-serif, system-ui, sans-serif;
	--lab-font-mono: 'Share Tech Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
	--lab-font-text: 'IBM Plex Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

	--lab-radius: 4px;
	--lab-radius-lg: 12px;
}

body {
	background-color: var(--lab-bg);
	color: var(--lab-text);
	font-family: var(--lab-font-text);
	-webkit-font-smoothing: antialiased;
}

::selection {
	background: var(--lab-green);
	color: var(--lab-bg);
}

:focus-visible {
	outline: 2px solid var(--lab-green);
	outline-offset: 2px;
}

/*
 * Occhiello: aggiungere la classe CSS "lab-eyebrow" a un widget Titolo (Avanzate → Classi CSS)
 * per avere il puntino verde pulsante prima del testo, come nella coming soon.
 */
.lab-eyebrow .elementor-heading-title {
	display: inline-flex;
	align-items: center;
	gap: .75em;
}

.lab-eyebrow .elementor-heading-title::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
	animation: lab-pulse 2s ease-in-out infinite;
}

@keyframes lab-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: .3; }
}

@media (prefers-reduced-motion: reduce) {
	.lab-eyebrow .elementor-heading-title::before { animation: none; }
}

/* Footer sempre in fondo, anche nelle pagine corte. */
body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

body > .elementor-location-footer {
	margin-top: auto;
}

/* Caselle e radio dei form con i colori del brand (niente bianco di sistema). */
input[type="checkbox"],
input[type="radio"] {
	accent-color: var(--lab-green);
	color-scheme: dark;
}

/* Niente margine sotto l'ultimo paragrafo dei testi: allineamenti puliti. */
.elementor-widget-text-editor p:last-child {
	margin-bottom: 0;
}

/*
 * Elenco asciutto: aggiungere la classe CSS "lab-list" a un Editor di testo con un elenco puntato.
 * Voci in monospace separate da linee sottili (usato in Home per i servizi).
 */
.lab-list ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.lab-list li {
	padding: 12px 0;
	border-top: 1px solid var(--lab-border);
	font-family: var(--lab-font-mono);
	font-size: 14px;
	letter-spacing: .04em;
	color: var(--lab-text);
}

.lab-list li:last-child {
	border-bottom: 1px solid var(--lab-border);
}

/*
 * Pagine legali (privacy, cookie): classe CSS "lab-legal" sul container.
 * Colonna di lettura stretta, sottotitoli più piccoli dei titoli di sezione, tabelle a righe sottili.
 */
.e-con.lab-legal > .e-con-inner > .elementor-element.elementor-widget,
.e-con.lab-legal > .elementor-element.elementor-widget {
	max-width: 760px;
	width: 100%;
}

.lab-legal h2 {
	margin: 48px 0 12px;
	font-family: var(--lab-font-title);
	font-size: 26px;
	font-weight: 400;
	line-height: 1.25;
	color: #fff;
}

.lab-legal ul {
	padding-left: 1.2em;
}

.lab-legal li {
	margin-bottom: 8px;
}

.lab-legal .lab-legal__date {
	font-family: var(--lab-font-mono);
	font-size: 13px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--lab-muted);
}

.lab-legal table {
	width: 100%;
	margin: 16px 0 24px;
	border-collapse: collapse;
	font-size: 15px;
}

.lab-legal th,
.lab-legal td {
	padding: 12px 16px 12px 0;
	border: 0;
	border-bottom: 1px solid var(--lab-border);
	background: none;
	text-align: left;
	vertical-align: top;
}

.lab-legal th {
	font-family: var(--lab-font-mono);
	font-size: 13px;
	font-weight: 400;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--lab-muted);
}

.lab-legal td:first-child {
	font-family: var(--lab-font-mono);
	font-size: 14px;
	color: #fff;
}

@media (max-width: 767px) {
	.lab-legal table {
		display: block;
		overflow-x: auto;
	}
}

/* Link legali nel footer (classe "lab-footer-links" sull'Elenco icone): sottolineatura sottile e staccata. */
.lab-footer-links a {
	text-decoration: none !important;
}

.lab-footer-links .elementor-icon-list-text {
	text-decoration: underline;
	text-decoration-color: currentColor;
	text-decoration-thickness: 1px;
	text-underline-offset: .35em;
}

/*
 * Glossario: pagina con classe "lab-glossary" (oltre a "lab-legal") e termini collegati nei testi.
 * Nei testi un termine tecnico è un link con classe "lab-term" verso /glossario/#termine; la definizione
 * breve compare come suggerimento al passaggio del mouse (attributo title).
 */
.lab-glossary .lab-glossary__list {
	margin: 24px 0 0;
}

.lab-glossary dt {
	margin: 36px 0 6px;
	font-family: var(--lab-font-title);
	font-size: 22px;
	line-height: 1.25;
	color: var(--lab-green);
	scroll-margin-top: 96px;
}

.lab-glossary dt:first-child {
	margin-top: 8px;
}

.lab-glossary dt:target {
	color: #fff;
}

.lab-glossary dd {
	margin: 0;
}

a.lab-term {
	color: inherit;
	text-decoration: underline dotted;
	text-decoration-color: var(--lab-green);
	text-decoration-thickness: 1px;
	text-underline-offset: .22em;
	cursor: help;
	transition: color .2s ease;
}

a.lab-term:hover,
a.lab-term:focus-visible {
	color: var(--lab-green);
}
