/**
Theme Name: Astra Child
Author: Neikos Web Agency
Author URI: https://neikos.it
Description: Tema child di Astra per Lok 2000 — font self-hosted, design token e i pochi componenti generati da codice (tricolore, form CF7, menu). Gli stili dei moduli sono nelle impostazioni di Beaver Builder.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

/* ==========================================================================
   Font self-hosted (GDPR: nessuna richiesta a Google Fonts)
   ========================================================================== */

@font-face {
	font-family: 'Space Grotesk';
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url('assets/fonts/space-grotesk-var-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Space Grotesk';
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url('assets/fonts/space-grotesk-var-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'IBM Plex Sans';
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url('assets/fonts/ibm-plex-sans-var-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'IBM Plex Sans';
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url('assets/fonts/ibm-plex-sans-var-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'IBM Plex Mono';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('assets/fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'IBM Plex Mono';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('assets/fonts/ibm-plex-mono-400-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'IBM Plex Mono';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('assets/fonts/ibm-plex-mono-500-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'IBM Plex Mono';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('assets/fonts/ibm-plex-mono-500-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   Design token (colori, font, forme). Gli stili dei moduli sono nelle impostazioni di Beaver Builder:
   qui restano solo i valori usati dai componenti sotto.
   ========================================================================== */

:root {
	/* Blu */
	--lok-blue-700: #124f80;
	--lok-blue-600: #1c6dad;
	--lok-blue-500: #2e86c8;

	/* Azzurri su fondo scuro */
	--lok-sky-300: #6fbef0;
	--lok-line-dark: rgba(124, 196, 239, .14);

	/* Chiari */
	--lok-bg: #f4f6f9;
	--lok-border-input: #cdd6e0;

	/* Testo */
	--lok-ink: #0e1f31;
	--lok-ink-2: #334657;
	--lok-muted: #66788b;

	/* Tricolore e stati */
	--lok-green: #2e9e5b;
	--lok-white: #f3f6f8;
	--lok-red: #d6404a;
	--lok-success-bg: #eaf6ee;
	--lok-success-border: #bfe4c9;

	/* Tipografia */
	--lok-font-display: 'Space Grotesk', system-ui, sans-serif;
	--lok-font-body: 'IBM Plex Sans', system-ui, sans-serif;
	--lok-font-mono: 'IBM Plex Mono', ui-monospace, monospace;

	--lok-tricolore: linear-gradient(90deg, var(--lok-green) 0 33.3%, var(--lok-white) 33.3% 66.6%, var(--lok-red) 66.6% 100%);
}

/* ==========================================================================
   Base
   ========================================================================== */

body {
	font-family: var(--lok-font-body);
	background: var(--lok-bg);
	color: var(--lok-ink);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

h1, h2, h3, h4, h5, h6,
.fl-heading, .fl-module-heading .fl-heading {
	font-family: var(--lok-font-display);
	color: inherit;
}

h1, .fl-module-heading h1.fl-heading { font-weight: 700; line-height: 1.04; letter-spacing: -.025em; }
h2, .fl-module-heading h2.fl-heading { font-weight: 600; line-height: 1.08; letter-spacing: -.02em; }
h3, h4, .fl-module-heading h3.fl-heading { font-weight: 600; letter-spacing: -.015em; }

p { text-wrap: pretty; }

a { color: var(--lok-blue-600); }
a:hover, a:focus { color: var(--lok-blue-700); }

::selection { background: var(--lok-sky-300); color: #071726; }

/* ==========================================================================
   Componenti generati da codice (non classi sui moduli Beaver Builder)
   ========================================================================== */

/* Barretta tricolore */
.lok-tricolore {
	display: inline-block;
	width: 38px;
	height: 5px;
	border-radius: 3px;
	background: var(--lok-tricolore);
	vertical-align: middle;
}
.lok-tricolore--lg { width: 60px; height: 8px; border-radius: 4px; box-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.lok-tricolore--sm { width: 30px; }

/* Riquadro "IL TUO LOGO" tratteggiato (mockup della Home, modulo HTML) */
.lok-logo-slot {
	display: inline-block;
	border: 2px dashed var(--lok-blue-500);
	border-radius: 10px;
	background: rgba(255, 255, 255, .9);
	padding: 8px 16px;
	font-family: var(--lok-font-mono);
	font-size: 11.5px;
	letter-spacing: .18em;
	color: var(--lok-blue-600);
	white-space: nowrap;
}

/* Mockup "IL TUO LOGO" */
.lok-mockup { position: relative; justify-self: center; width: min(400px, 86vw); margin: 0 auto; }
.lok-mockup__card { background: #fff; border-radius: 20px; padding: 26px 26px 22px; box-shadow: 0 30px 60px rgba(0, 0, 0, .4); }
.lok-mockup__stage { position: relative; background: linear-gradient(150deg, #f4f6f9, #e6ecf3); border-radius: 14px; padding: 18px; display: flex; align-items: center; justify-content: center; min-height: 250px; }
.lok-mockup__stage img { max-height: 230px; width: auto; object-fit: contain; filter: drop-shadow(0 14px 22px rgba(14, 31, 49, .24)); }
.lok-mockup__stage .lok-logo-slot { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); }
.lok-mockup__caption { display: flex; align-items: center; gap: 9px; margin-top: 16px; font-family: var(--lok-font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--lok-muted); }
.lok-mockup__badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
.lok-mockup__badges div { background: rgba(8, 22, 40, .5); border: 1px solid rgba(124, 196, 239, .24); border-radius: 10px; padding: 11px 8px; text-align: center; font-size: 12px; color: rgba(214, 233, 248, .8); }
.lok-mockup__badges b { display: block; font-family: var(--lok-font-mono); font-weight: 400; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--lok-sky-300); margin-bottom: 3px; }

/* ==========================================================================
   Header (Header Builder di Astra)
   Logo, altezze, sfondo, filetto, colori e font del menu, sottomenu (sfondo, bordo, raggio, ombra, larghezza),
   bottone, hamburger, menu mobile e sticky con sfocatura sono nelle opzioni di Astra:
   Aspetto → Personalizza → Header Builder. Qui solo ciò che Astra non offre, agganciato ai menu dell'header
   e alle classi delle VOCI di menu (Aspetto → Menu → Classi CSS).
   ========================================================================== */

/* Voci di primo livello con angoli arrotondati (lo sfondo hover/attivo è nelle opzioni del menu). */
.ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link { border-radius: 8px; }

/* Sottomenu "Prodotti": spazio interno, voci arrotondate e in Space Grotesk. */
.ast-builder-menu-1 .main-header-menu .sub-menu { padding: 9px; }
.ast-builder-menu-1 .main-header-menu .sub-menu .menu-link {
	border-radius: 9px;
	font-family: var(--lok-font-display);
	font-weight: 600;
	font-size: 14.5px;
}

/* Descrizione sotto le voci del sottomenu (markup aggiunto da functions.php). */
.lok-menu-desc {
	display: block;
	font-family: var(--lok-font-body);
	font-weight: 400;
	font-size: 12.5px;
	color: rgba(214, 233, 248, .6);
	margin-top: 2px;
}
/* Voce "Tutti i prodotti →" (classe della voce di menu: lok-menu-all). */
.main-header-menu .sub-menu li.lok-menu-all > .menu-link {
	margin-top: 4px;
	border-top: 1px solid var(--lok-line-dark);
	border-radius: 0 0 9px 9px;
	font-family: var(--lok-font-mono);
	font-weight: 400;
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--lok-sky-300);
}
/* Voce visibile solo nel menu mobile (classe della voce di menu: lok-menu-mobile-only). */
#ast-desktop-header .menu-item.lok-menu-mobile-only { display: none; }

/* ==========================================================================
   Moduli (Contact Form 7)
   ========================================================================== */

.lok-form .wpcf7-form {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 16px;
}
.lok-form .lok-form__full { grid-column: 1 / -1; }
.lok-form label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
	font-weight: 500;
	color: var(--lok-ink-2);
}
.lok-form input[type="text"],
.lok-form input[type="email"],
.lok-form input[type="tel"],
.lok-form select,
.lok-form textarea {
	width: 100%;
	padding: 13px 14px;
	border: 1px solid var(--lok-border-input);
	border-radius: 10px;
	background: #fff;
	color: var(--lok-ink);
	font: inherit;
	font-size: 15px;
}
.lok-form input:focus, .lok-form select:focus, .lok-form textarea:focus { border-color: var(--lok-blue-500); outline: none; box-shadow: 0 0 0 3px rgba(46, 134, 200, .15); }
.lok-form .wpcf7-acceptance label { flex-direction: row; align-items: flex-start; gap: 9px; font-weight: 400; color: var(--lok-muted); }
.lok-form input[type="submit"] {
	justify-self: start;
	background: var(--lok-blue-500);
	color: #fff;
	padding: 15px 30px;
	border: 0;
	border-radius: 10px;
	font-family: var(--lok-font-display);
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
}
.lok-form input[type="submit"]:hover { background: var(--lok-blue-600); }
.lok-form .wpcf7-response-output { grid-column: 1 / -1; border-radius: 12px; margin: 0 !important; padding: 16px 18px !important; }
.lok-form .wpcf7 form.sent .wpcf7-response-output { background: var(--lok-success-bg); border-color: var(--lok-success-border) !important; }
