/*
Theme Name:   Galaxia Trade
Theme URI:    https://www.galaxiatrade.it/
Description:  Tema child di Hello Elementor per Galaxia Trade. Contiene solo gli effetti grafici (sfondo stellato, glow, card "vetro", animazioni). Contenuti, colori e font si modificano da Elementor (Impostazioni sito).
Author:       Galaxia Trade
Template:     hello-elementor
Version:      1.0.0
Text Domain:  galaxia-trade
*/

/* -------------------------------------------------------------
   Token di design (gli stessi di galaxiatrade.it).
   I colori "veri" usati dai widget sono nei Colori globali di
   Elementor: questi servono solo agli effetti qui sotto.
------------------------------------------------------------- */
:root {
	--gt-bg: #06070f;
	--gt-bg-alt: #0a0c1c;
	--gt-surface: rgba(255, 255, 255, 0.045);
	--gt-surface-strong: rgba(255, 255, 255, 0.07);
	--gt-border: rgba(255, 255, 255, 0.09);
	--gt-text: #eceef8;
	--gt-text-dim: #9aa0c0;
	--gt-accent-1: #8b6bff;
	--gt-accent-2: #34d8ff;
	--gt-accent-3: #ff7ce0;
	--gt-grad: linear-gradient(135deg, var(--gt-accent-1), var(--gt-accent-2));
	--gt-header-h: 84px;
}

html { scroll-behavior: smooth; }

body {
	background-color: var(--gt-bg);
	color: var(--gt-text);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

::selection { background: rgba(139, 107, 255, 0.45); color: #fff; }

/* Le ancore del menu non finiscono sotto l'header fisso */
[id] { scroll-margin-top: calc(var(--gt-header-h) + 12px); }

/* -------------------------------------------------------------
   Sfondo stellato fisso (inserito da functions.php)
------------------------------------------------------------- */
.gt-starfield {
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(1.5px 1.5px at 20px 30px, rgba(255,255,255,0.55), transparent),
		radial-gradient(1px 1px at 90px 120px, rgba(255,255,255,0.4), transparent),
		radial-gradient(1.5px 1.5px at 160px 60px, rgba(255,255,255,0.5), transparent),
		radial-gradient(1px 1px at 230px 180px, rgba(255,255,255,0.35), transparent),
		radial-gradient(1.5px 1.5px at 300px 40px, rgba(255,255,255,0.5), transparent),
		radial-gradient(1px 1px at 40px 220px, rgba(255,255,255,0.3), transparent),
		radial-gradient(1.5px 1.5px at 380px 260px, rgba(255,255,255,0.45), transparent),
		radial-gradient(1px 1px at 130px 300px, rgba(255,255,255,0.3), transparent);
	background-repeat: repeat;
	background-size: 420px 420px;
	opacity: 0.7;
}
.gt-starfield::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 15% 10%, rgba(139,107,255,0.20), transparent 40%),
		radial-gradient(circle at 85% 25%, rgba(52,216,255,0.14), transparent 40%),
		radial-gradient(circle at 50% 90%, rgba(255,124,224,0.10), transparent 45%);
}

/* -------------------------------------------------------------
   Header (template "Header" di Elementor Header & Footer Builder)
------------------------------------------------------------- */
body header#masthead,
body.ehf-header header#masthead {
	position: sticky;
	top: 0;
	z-index: 999;
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	background: rgba(6, 7, 15, 0.55);
	border-bottom: 1px solid transparent;
	transition: border-color .3s ease, background .3s ease;
}
body.admin-bar.ehf-header header#masthead { top: 32px; }
@media (max-width: 782px) { body.admin-bar.ehf-header header#masthead { top: 46px; } }
@media (max-width: 600px) { body.admin-bar.ehf-header header#masthead { top: 0; } }
body.gt-scrolled.ehf-header header#masthead {
	border-bottom-color: var(--gt-border);
	background: rgba(6, 7, 15, 0.85);
}

/* Menu: link e voce finale "pulsante" */
.gt-nav .hfe-nav-menu > li > a.hfe-menu-item { transition: color .2s ease; }
.gt-nav .hfe-nav-menu li.hfe-button-wrapper .hfe-menu-item.elementor-button,
.gt-nav .hfe-nav-menu li.hfe-button-wrapper .elementor-button {
	background: var(--gt-grad);
	box-shadow: 0 8px 30px rgba(139,107,255,0.35);
	transition: transform .2s ease, filter .2s ease;
}
.gt-nav .hfe-nav-menu li.hfe-button-wrapper .elementor-button:hover {
	transform: translateY(-2px);
	filter: brightness(1.06);
}
/* Menu mobile */
.gt-nav .hfe-nav-menu__layout-horizontal.hfe-dropdown,
.gt-nav nav.hfe-dropdown {
	background: rgba(6,7,15,0.97);
	border-bottom: 1px solid var(--gt-border);
}
.gt-nav .hfe-dropdown .menu-item a.hfe-menu-item { border-bottom: 1px solid var(--gt-border); }
.gt-nav .hfe-dropdown li.hfe-button-wrapper { padding: 14px 20px 18px; }

/* -------------------------------------------------------------
   Utility da assegnare in Elementor (Avanzate > Classi CSS)
------------------------------------------------------------- */

/* Contatori con numero sfumato */
.gt-grad-number .elementor-counter-number-wrapper {
	align-self: flex-start;
	width: fit-content;
}

/* Testo sfumato: nel titolo scrivi <span class="gt-grad-text">...</span> */
.gt-grad-text,
.gt-grad-number .elementor-counter-number-wrapper {
	background: var(--gt-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent !important;
	-webkit-text-fill-color: transparent;
}

/* Pulsante primario: alone e sollevamento (colori/sfumatura si cambiano in Elementor) */
.gt-btn-primary .elementor-button {
	box-shadow: 0 8px 30px rgba(139,107,255,0.35);
	transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}
.gt-btn-primary .elementor-button:hover {
	transform: translateY(-2px);
	filter: brightness(1.06);
}
.gt-btn-ghost .elementor-button { transition: background .2s ease, transform .2s ease; }
.gt-btn-ghost .elementor-button:hover { transform: translateY(-2px); }

/* Card "vetro": sollevamento al passaggio del mouse (classe sul contenitore).
   Sfondo e bordo in hover si impostano in Elementor > Stile > Hover. */
.gt-card {
	transition: transform .25s ease, border-color .25s ease, background-color .25s ease;
}
.gt-card:hover { transform: translateY(-4px); }

/* Finestra "browser" finta */
.gt-window {
	box-shadow: 0 0 60px rgba(139,107,255,0.18), 0 30px 60px rgba(0,0,0,0.35);
}
.gt-dots { display: flex; gap: 8px; align-items: center; }
.gt-dots span {
	width: 9px; height: 9px;
	border-radius: 50%;
	background: rgba(255,255,255,0.18);
	display: block;
}

/* Lista con spunte sfumate che compaiono in sequenza */
.gt-checklist .elementor-icon-list-item {
	border-bottom: 1px dashed var(--gt-border);
	opacity: 0;
	transform: translateX(-8px);
	animation: gtRowIn .5s ease forwards;
}
.gt-checklist .elementor-icon-list-item:last-child { border-bottom: none; }
.gt-checklist .elementor-icon-list-item:nth-child(1) { animation-delay: .2s; }
.gt-checklist .elementor-icon-list-item:nth-child(2) { animation-delay: .55s; }
.gt-checklist .elementor-icon-list-item:nth-child(3) { animation-delay: .9s; }
.gt-checklist .elementor-icon-list-item:nth-child(4) { animation-delay: 1.25s; }
.gt-checklist .elementor-icon-list-item:nth-child(5) { animation-delay: 1.6s; }
.gt-checklist .elementor-icon-list-item:nth-child(6) { animation-delay: 1.95s; }
.gt-checklist .elementor-icon-list-icon {
	width: 22px; height: 22px;
	flex-shrink: 0;
	padding: 0 !important;
	margin-inline-end: 7px;
	border-radius: 50%;
	background: var(--gt-grad);
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
}
.gt-checklist .elementor-icon-list-icon svg { flex-shrink: 0; }
.elementor-editor-active .gt-checklist .elementor-icon-list-item { opacity: 1; transform: none; animation: none; }
@keyframes gtRowIn { to { opacity: 1; transform: translateX(0); } }

/* Lista con spunte senza animazione/separatori (box Offerta Startup) */
.gt-checklist-static .elementor-icon-list-item {
	opacity: 1;
	transform: none;
	animation: none;
	border-bottom: none !important;
}

/* Banner "Dominio e hosting inclusi": parte in grassetto più chiara */
.gt-included strong { color: var(--gt-text); }
.gt-included p { margin: 0; }

/* Pillola "Sei una startup?" */
.gt-startup-pill .elementor-button {
	white-space: normal;
	text-align: left;
	box-shadow: 0 0 30px rgba(255,124,224,0.15);
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.gt-startup-pill .elementor-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 0 36px rgba(255,124,224,0.3);
}

/* Barra di avanzamento sfumata */
.gt-progress .elementor-progress-wrapper { overflow: hidden; border-radius: 999px; }
.gt-progress .elementor-progress-bar { background: var(--gt-grad) !important; }

/* Badge "✦" piccolo (classe sul widget Titolo) */
.gt-badge .elementor-heading-title { display: inline-flex; }

/* Numeri degli step */
.gt-step-num .elementor-heading-title { letter-spacing: .05em; }

/* Righe "Perché noi" */
.gt-feature-row { border-top: 1px solid var(--gt-border); }

/* Decorazione orbitale nell'hero */
.gt-orbit {
	pointer-events: none;
}
.gt-orbit svg { width: 100%; height: auto; display: block; }
.gt-orbit .gt-orbit-ring { transform-origin: 200px 200px; animation: gtSpin 60s linear infinite; }
@keyframes gtSpin { to { transform: rotate(360deg); } }

/* Icona logo con glow (sezione Chi siamo) */
.gt-glow img { filter: drop-shadow(0 0 40px rgba(139,107,255,0.45)); }

/* Accordion FAQ: "+" che ruota */
.gt-faq .e-n-accordion-item-title-icon { transition: transform .2s ease; }
.gt-faq .e-n-accordion-item[open] .e-n-accordion-item-title-icon .e-opened svg { transform: rotate(45deg); }

/* -------------------------------------------------------------
   Form contatti (WPForms) in stile scuro
------------------------------------------------------------- */
.gt-form .wpforms-container { margin: 0 !important; }
.gt-form .wpforms-field-label,
.gt-form .wpforms-field-label-inline { font-weight: 500 !important; }
.gt-form .wpforms-field input,
.gt-form .wpforms-field textarea {
	transition: border-color .2s ease, background-color .2s ease;
}
.gt-form .wpforms-field input:focus,
.gt-form .wpforms-field textarea:focus {
	border-color: var(--gt-accent-1) !important;
	box-shadow: none !important;
	background-color: rgba(255,255,255,0.05) !important;
}
.gt-form .wpforms-field-label-inline a { color: var(--gt-accent-2); }
.gt-form .wpforms-submit-container { padding-top: 6px !important; }
.gt-form button.wpforms-submit {
	width: 100% !important;
	background: var(--gt-grad) !important;
	border: none !important;
	border-radius: 999px !important;
	color: #06070f !important;
	font-weight: 600 !important;
	box-shadow: 0 8px 30px rgba(139,107,255,0.35);
	transition: transform .2s ease, filter .2s ease;
}
.gt-form button.wpforms-submit:hover { transform: translateY(-2px); filter: brightness(1.06); }
@media (max-width: 600px) {
	.gt-form .wpforms-field.wpforms-one-half {
		width: 100% !important;
		margin-left: 0 !important;
		float: none !important;
	}
}
.gt-form .wpforms-confirmation-container-full {
	background: rgba(74,222,128,0.08) !important;
	border: 1px solid rgba(74,222,128,0.35) !important;
	color: var(--gt-text) !important;
	border-radius: 14px;
}

/* -------------------------------------------------------------
   Pagine interne (Privacy Policy ecc.) senza Elementor
------------------------------------------------------------- */
body:not(.elementor-page) .site-main,
body:not(.elementor-page) main#content {
	max-width: 820px;
	margin: 0 auto;
	padding: 72px 24px 96px;
}
body:not(.elementor-page) .site-main a { color: var(--gt-accent-2); }
body:not(.elementor-page) .site-main h1 { color: var(--gt-text); font-size: 2rem; margin-bottom: 24px; }
body:not(.elementor-page) .site-main h2 { color: var(--gt-accent-2); font-size: 1.2rem; margin: 34px 0 12px; }
body:not(.elementor-page) .site-main h3 { color: var(--gt-text); }
body:not(.elementor-page) .site-main p,
body:not(.elementor-page) .site-main li { color: var(--gt-text-dim); font-size: 0.96rem; margin-bottom: 12px; }
body:not(.elementor-page) .site-main ul { padding-left: 20px; margin-bottom: 16px; }

/* Focus visibile (accessibilità) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
	outline: 2px solid var(--gt-accent-2);
	outline-offset: 3px;
	border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.gt-checklist .elementor-icon-list-item { opacity: 1; transform: none; animation: none; }
	.gt-orbit .gt-orbit-ring { animation: none; }
	.gt-card, .gt-card:hover { transform: none; }
}
