/*
Theme Name: Hero Stage
Theme URI: https://example.com/hero-stage
Author: Hero Stage
Description: Tema a schermo intero: logo in alto a sinistra, menu in alto a destra, contenuto centrale e icone social in basso a sinistra. Logo, contenuto centrale e icone social si modificano con Elementor dal backend.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hero-stage
Tags: dark, one-column, custom-menu, custom-background, translation-ready
*/

/* ==========================================================================
   Font locali (nessuna richiesta a server esterni)
   ========================================================================== */
@font-face {
	font-family: "Barlow Condensed";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Barlow Condensed";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
}

/* ==========================================================================
   Variabili (accento, testo e overlay sono modificabili da Personalizza)
   ========================================================================== */
:root {
	--hs-accent: #7be233;
	--hs-on-accent: #121212;
	--hs-text: #ffffff;
	--hs-muted: rgba(255, 255, 255, 0.72);
	--hs-bg: #161616;
	--hs-overlay: 0;
	--hs-pad-x: clamp(20px, 3.6vw, 56px);
	--hs-font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
	--hs-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background-color: var(--hs-bg);
	color: var(--hs-text);
	font-family: var(--hs-font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

a {
	color: var(--hs-accent);
	text-decoration: none;
}

a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--hs-accent);
	outline-offset: 3px;
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	word-wrap: normal !important;
}

.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	margin: 0;
	padding: 12px 20px;
	top: 8px;
	left: 8px;
	background: var(--hs-accent);
	color: var(--hs-on-accent);
	font-weight: 600;
	z-index: 1000;
}

/* ==========================================================================
   Struttura della pagina
   ========================================================================== */
.hs-site {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
}

.admin-bar .hs-site {
	min-height: calc(100vh - 32px);
	min-height: calc(100dvh - 32px);
}

@media (max-width: 782px) {
	.admin-bar .hs-site {
		min-height: calc(100vh - 46px);
		min-height: calc(100dvh - 46px);
	}
}

/* Velo scuro regolabile da Personalizza, utile con un'immagine di sfondo */
.hs-site::before {
	content: "";
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, var(--hs-overlay));
	pointer-events: none;
	z-index: 0;
}

.hs-header,
.hs-main,
.hs-footer {
	position: relative;
	z-index: 1;
}

.hs-main {
	flex: 1 0 auto;
}

/* ==========================================================================
   Header: logo a sinistra, menu a destra
   ========================================================================== */
.hs-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 28px var(--hs-pad-x);
	z-index: 20;
}

.hs-logo {
	flex: 0 1 auto;
	min-width: 0;
}

.hs-logo .elementor-widget-image img {
	display: block;
}

.hs-logo__text {
	font-family: var(--hs-font-display);
	font-weight: 700;
	font-size: 28px;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hs-text);
}

.hs-logo__text:hover {
	color: var(--hs-accent);
}

.hs-nav {
	margin-left: auto;
}

.hs-menu,
.hs-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hs-menu {
	display: flex;
	align-items: center;
	gap: clamp(18px, 2.4vw, 36px);
}

.hs-menu > li {
	position: relative;
}

.hs-menu a {
	display: block;
	padding: 8px 0;
	font-family: var(--hs-font-display);
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--hs-text);
	transition: color 0.2s ease;
}

.hs-menu a:hover,
.hs-menu .current-menu-item > a,
.hs-menu .current_page_item > a,
.hs-menu .current-menu-ancestor > a {
	color: var(--hs-accent);
}

/* Sottomenu a tendina */
.hs-menu .sub-menu {
	position: absolute;
	top: 100%;
	right: 0;
	min-width: 220px;
	padding: 10px 20px;
	background: #1d1d1d;
	border-radius: 6px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.hs-menu li:hover > .sub-menu,
.hs-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

/* Pulsante hamburger (solo mobile) */
.hs-nav-toggle {
	display: none;
	position: relative;
	z-index: 60;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--hs-text);
	cursor: pointer;
}

.hs-nav-toggle__bar,
.hs-nav-toggle__bar::before,
.hs-nav-toggle__bar::after {
	position: absolute;
	display: block;
	width: 22px;
	height: 2px;
	background: currentColor;
	transition: transform 0.25s ease, top 0.25s ease, background-color 0.25s ease;
}

.hs-nav-toggle__bar {
	top: 21px;
	left: 11px;
}

.hs-nav-toggle__bar::before,
.hs-nav-toggle__bar::after {
	content: "";
	left: 0;
}

.hs-nav-toggle__bar::before {
	top: -7px;
}

.hs-nav-toggle__bar::after {
	top: 7px;
}

.hs-nav-toggle[aria-expanded="true"] .hs-nav-toggle__bar {
	background: transparent;
}

.hs-nav-toggle[aria-expanded="true"] .hs-nav-toggle__bar::before {
	top: 0;
	transform: rotate(45deg);
}

.hs-nav-toggle[aria-expanded="true"] .hs-nav-toggle__bar::after {
	top: 0;
	transform: rotate(-45deg);
}

@media (max-width: 860px) {
	.hs-nav-toggle {
		display: inline-block;
	}

	.hs-nav {
		position: fixed;
		inset: 0;
		z-index: 50;
		display: flex;
		align-items: center;
		justify-content: center;
		margin: 0;
		background: rgba(12, 12, 12, 0.97);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.25s ease, visibility 0.25s;
	}

	.hs-nav.is-open {
		opacity: 1;
		visibility: visible;
	}

	.hs-menu {
		flex-direction: column;
		align-items: center;
		gap: 18px;
	}

	.hs-menu a {
		font-size: 32px;
		text-align: center;
	}

	.hs-menu .sub-menu {
		position: static;
		min-width: 0;
		padding: 0;
		background: transparent;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.hs-menu .sub-menu a {
		font-size: 22px;
		color: var(--hs-muted);
	}
}

body.hs-nav-open {
	overflow: hidden;
}

/* ==========================================================================
   Footer: icone social in basso a sinistra
   ========================================================================== */
.hs-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 28px var(--hs-pad-x);
}

.hs-social {
	min-width: 0;
}

.hs-footer__copy {
	margin: 0;
	font-size: 13px;
	color: var(--hs-muted);
}

/* ==========================================================================
   Home: contenuto centrato, header e footer sovrapposti ai bordi
   ========================================================================== */
.hs-is-home .hs-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
}

.hs-is-home .hs-footer {
	position: absolute;
	left: 0;
	bottom: 0;
}

.hs-is-home .hs-footer__copy {
	display: none;
}

.hs-is-home .hs-main {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 120px var(--hs-pad-x);
	text-align: center;
}

.hs-home__center {
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
}

.hs-hero-title {
	margin: 0 0 12px;
	font-family: var(--hs-font-display);
	font-weight: 700;
	font-size: clamp(52px, 9vw, 112px);
	line-height: 0.95;
	text-transform: uppercase;
}

.hs-hero-tagline {
	margin: 0;
	font-size: clamp(18px, 2vw, 24px);
	color: var(--hs-muted);
}

/* ==========================================================================
   Pagine interne, articoli, 404
   ========================================================================== */
.hs-main--inner {
	padding: 24px var(--hs-pad-x) 72px;
}

.hs-main--elementor {
	padding: 0;
}

.hs-container {
	width: 100%;
	max-width: 820px;
	margin: 0 auto;
}

.hs-entry {
	margin-bottom: 56px;
}

.hs-entry__title {
	margin: 0 0 12px;
	font-family: var(--hs-font-display);
	font-weight: 700;
	font-size: clamp(40px, 6vw, 72px);
	line-height: 1;
	text-transform: uppercase;
}

.hs-entry__title a {
	color: var(--hs-text);
}

.hs-entry__title a:hover {
	color: var(--hs-accent);
}

.hs-entry__meta {
	margin-bottom: 20px;
	font-size: 14px;
	color: var(--hs-muted);
}

.hs-entry__content > * + * {
	margin-top: 1.2em;
}

.hs-entry__content h2,
.hs-entry__content h3,
.hs-entry__content h4 {
	font-family: var(--hs-font-display);
	font-weight: 700;
	line-height: 1.05;
	text-transform: uppercase;
}

.hs-entry__content a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.hs-entry__content blockquote {
	margin-left: 0;
	padding-left: 20px;
	border-left: 3px solid var(--hs-accent);
	color: var(--hs-muted);
}

.hs-entry__content pre,
.hs-entry__content code {
	background: #1f1f1f;
	border-radius: 4px;
}

.hs-entry__content pre {
	padding: 16px;
	overflow-x: auto;
}

.hs-entry__content table {
	width: 100%;
	border-collapse: collapse;
}

.hs-entry__content th,
.hs-entry__content td {
	padding: 10px 12px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.16);
	text-align: left;
}

.hs-pagination,
.navigation.pagination {
	margin-top: 40px;
}

.navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.navigation.pagination a,
.navigation.pagination .current {
	padding: 6px 14px;
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 999px;
	font-size: 14px;
}

.navigation.pagination .current {
	background: var(--hs-accent);
	border-color: var(--hs-accent);
	color: var(--hs-on-accent);
}

.hs-404 {
	text-align: center;
	padding: 12vh 0;
}

.hs-404__code {
	margin: 0;
	font-family: var(--hs-font-display);
	font-weight: 700;
	font-size: clamp(96px, 22vw, 240px);
	line-height: 0.9;
	color: var(--hs-accent);
}

.hs-button {
	display: inline-block;
	padding: 12px 28px;
	border-radius: 999px;
	background: var(--hs-accent);
	color: var(--hs-on-accent);
	font-weight: 600;
}

.hs-button:hover {
	color: var(--hs-on-accent);
	filter: brightness(1.08);
}

/* ==========================================================================
   Anteprima dei blocchi del tema dentro l'editor di Elementor
   ========================================================================== */
body.hs-block-preview {
	min-height: 100vh;
	padding: 40px;
	background: var(--hs-bg);
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
	}
}
