/*
 * Theme Name:   Massaro Studio
 * Theme URI:    https://massarostudio.it
 * Author:       Massaro Studio
 * Author URI:   https://massarostudio.it
 * Description:  Tema custom per Massaro Studio — stile Luma, scuro, accento lime.
 * Version:      2.0
 * License:      GNU General Public License v2 or later
 * License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain:  massarostudio
 */

/* ==========================================================================
   @font-face — Font self-hosted (GDPR-safe, no CDN)
   ========================================================================== */

@font-face {
	font-family: 'Unbounded';
	src: url('assets/fonts/unbounded.woff2') format('woff2');
	font-weight: 200 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Manrope';
	src: url('assets/fonts/manrope.woff2') format('woff2');
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}

/* ==========================================================================
   Design Token — Variabili CSS globali (stile Luma)
   ========================================================================== */

:root {
	/* --- Colori --- */
	--c-bg:         #07080b;
	--c-bg-2:       #0d0f14;
	--c-bg-3:       #141720;
	--c-line:       rgba(255, 255, 255, 0.09);
	--c-line-2:     rgba(255, 255, 255, 0.16);
	--c-text:       #f3f4f6;
	--c-muted:      #9198a5;
	--c-accent:     #c8ff2e;
	--c-accent-ink: #0b0d02;
	--c-live:       #ff3b5c;

	/* Alias retrocompatibili (usati nel PHP/HTML esistente) */
	--c-ink:        var(--c-text);
	--c-ink-soft:   var(--c-muted);
	--c-bg-alt:     var(--c-bg-2);
	--c-navy-900:   var(--c-bg);
	--c-navy-mid:   var(--c-bg-2);
	--c-navy-700:   var(--c-bg-2);
	--c-tile:       var(--c-bg-3);
	--c-line-dark:  var(--c-line);
	--c-blue-500:   var(--c-accent);
	--c-blue-400:   var(--c-accent);
	--c-text-light: var(--c-muted);
	--c-text-secondary: #b0b6c1;
	--c-eyebrow:    var(--c-accent);

	/* --- Tipografia --- */
	--font-display: 'Unbounded', system-ui, sans-serif;
	--font-body:    'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-size-base:  1rem;
	--font-size-sm:    0.8125rem;  /* 13px */
	--font-size-md:    0.9375rem;  /* 15px */
	--font-size-lg:    1.3125rem;  /* 21px */
	--font-size-xl:    1.5rem;     /* 24px */
	--font-size-2xl:   clamp(1.5rem, 3vw, 1.9rem);       /* ~24-30px (era 28-36) */
	--font-size-3xl:   clamp(1.8rem, 4.4vw, 3.8rem);    /* ~29-61px (era 34-72) */
	--font-size-hero:  clamp(2.4rem, 7.4vw, 6.8rem);    /* ~38-109px (era 44-124) */
	--line-height-base: 1.6;
	--line-height-heading: 1.05;

	/* --- Spaziature --- */
	--space-xs:  0.25rem;
	--space-sm:  0.5rem;
	--space-md:  1rem;
	--space-lg:  2rem;
	--space-xl:  4rem;
	--space-2xl: 6rem;

	/* --- Layout --- */
	--max-width: 1240px;
	--max-width-narrow: 820px;
	--radius:    18px;
	--radius-lg: 28px;

	/* --- Transizioni --- */
	--ease: cubic-bezier(.2, .7, .1, 1);
	--transition-base: 0.3s var(--ease);
}

/* ==========================================================================
   Reset CSS minimale
   ========================================================================== */

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

html {
	font-size: 100%;
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	overflow-x: clip;
	scroll-padding-top: 100px;
}

body {
	font-family: var(--font-body);
	font-size: 17px;
	line-height: var(--line-height-base);
	color: var(--c-text);
	background-color: var(--c-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}

/* Blocca scroll body quando il menu mobile è aperto */
body.menu-is-open {
	overflow: hidden;
}

img,
picture,
video,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

ul,
ol {
	list-style: none;
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	line-height: var(--line-height-heading);
	font-weight: 700;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

h5, h6 {
	font-family: var(--font-body);
	line-height: var(--line-height-heading);
	font-weight: 600;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color var(--transition-base);
}

a:hover {
	color: var(--c-accent);
}

::selection {
	background: var(--c-accent);
	color: var(--c-accent-ink);
}

/* --- Bottoni --- */

.btn-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	height: 56px;
	padding: 0 26px;
	border-radius: 999px;
	border: 1px solid var(--c-accent);
	background: var(--c-accent);
	color: var(--c-accent-ink);
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
	cursor: pointer;
	white-space: nowrap;
	text-decoration: none;
	box-shadow: 0 10px 40px -10px rgba(200, 255, 46, 0.55);
	transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s, border-color 0.3s;
}

.btn-cta:hover {
	color: var(--c-accent-ink);
	transform: translateY(-2px);
	box-shadow: 0 16px 60px -10px rgba(200, 255, 46, 0.8);
}

.btn-cta--large {
	height: 66px;
	padding: 0 34px;
	font-size: 15px;
}

.btn-ghost {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	height: 56px;
	padding: 0 26px;
	border-radius: 999px;
	border: 1px solid var(--c-line-2);
	background: transparent;
	color: var(--c-text);
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
	cursor: pointer;
	white-space: nowrap;
	text-decoration: none;
	transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}

.btn-ghost:hover {
	color: var(--c-text);
	transform: translateY(-2px);
	border-color: var(--c-text);
}

button,
input,
textarea,
select {
	font: inherit;
	color: inherit;
}

@media (max-width: 1024px) {
	body { font-size: 16px; }
	.btn-cta,
	.btn-ghost {
		white-space: normal;
		height: auto;
		min-height: 56px;
		padding-top: 10px;
		padding-bottom: 10px;
		text-align: center;
		line-height: 1.2;
	}
}
