/*
Theme Name:        Promovent
Theme URI:         https://promovent.it
Description:       Tema del brand Promovent per l'app di organizzatori e promoter e per lo Shop di acquisto biglietti. Da usare con il plugin Promovent Core. Versione di test.
Version:           0.1.0
Requires at least: 6.3
Requires PHP:      7.4
Author:            Promovent
License:           GPL-2.0-or-later
Text Domain:       promovent
*/

/* ===================================================================== Font (locale, OFL) */
@font-face {
	font-family: "Work Sans";
	src: url("assets/fonts/WorkSans-var.woff") format("woff");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

/* ===================================================================== Token (design system Promovent) */
:root,
[data-theme="light"] {
	--brand-orange: #FDA32A;
	--brand-orange-dark: #E8901C;
	--brand-navy: #12203A;
	--night: #0E181E;
	--ink: #363A42;
	--muted: #A7ABB1;
	--muted-text: #7C8088;       /* metadati che devono restare leggibili (4.5:1 su bianco) */
	--muted-soft: #BDBFC5;
	--surface: #FFFFFF;
	--surface-100: #FCFCFC;
	--surface-200: #F4F4F8;
	--field: #F0F0F0;
	--line: #E0E0E4;
	--status-public: #4AAF50;
	--status-private: #FB0E54;
	--status-reserved: #FFC54A;
	--presence: #F7A132;
	--on-dark: #FFFFFF;
	--on-brand: #FFFFFF;
	--accent-text: #C77A0E;      /* arancio scurito per testo piccolo su bianco */

	--font-sans: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;
	--space-6: 24px;
	--space-8: 32px;

	--radius-xs: 3px;
	--radius-sm: 6px;
	--radius-md: 12px;
	--radius-lg: 24px;
	--radius-pill: 999px;

	--shadow-card: 0 6px 20px rgba(18, 32, 58, .12);
	--shadow-soft: 0 2px 8px rgba(18, 32, 58, .08);

	--bottomnav-h: 64px;
	--content-max: 760px;
	color-scheme: light;
}

/* Dark mode (toggle in Impostazioni): stesse proporzioni, superfici notte. */
[data-theme="dark"] {
	--ink: #ECEEF2;
	--muted: #8C929C;
	--muted-text: #A4AAB4;
	--muted-soft: #6C727C;
	--surface: #16222C;
	--surface-100: #0E181E;
	--surface-200: #1E2B36;
	--field: #22303C;
	--line: #2C3A46;
	--accent-text: #FDA32A;
	--shadow-card: 0 6px 20px rgba(0, 0, 0, .35);
	--shadow-soft: 0 2px 8px rgba(0, 0, 0, .3);
	color-scheme: dark;
}

/* ===================================================================== Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--surface-100);
	color: var(--ink);
	font: 400 15px/1.47 var(--font-sans);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--brand-orange); outline-offset: 2px; }

/* Scala tipografica */
.pv-display { font-size: 36px; line-height: 1.06; font-weight: 700; letter-spacing: -.5px; }
.pv-title-hero { font-size: 26px; line-height: 1.2; font-weight: 600; }
.pv-title-1 { font-size: 26px; line-height: 1.23; font-weight: 600; letter-spacing: -.2px; }
.pv-title-2 { font-size: 20px; line-height: 1.3; font-weight: 600; }
.pv-headline { font-size: 16px; line-height: 1.375; font-weight: 600; }
.pv-overline { display: block; font-size: 10px; line-height: 1.4; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.pv-sub { margin-top: var(--space-1); color: var(--accent-text); font-size: 12px; font-weight: 600; }
.pv-muted { color: var(--muted-text); }
.pv-accent { color: var(--accent-text); }
.pv-hint { color: var(--muted-text); font-size: 13px; }
.pv-center { text-align: center; }
.pv-wordmark { font-weight: 700; letter-spacing: -.3px; }
.is-danger { color: var(--status-private) !important; }
