/* ==========================================================================
   Brian Belloni: stili del tema (valgono anche nell'editor)
   Fondo scuro, Inter, turchese della chitarra come primario, legno come secondario.
   Scroll gestito, finestre a comparsa e inclinazione 3D sono in assets/js/theme.js.
   ========================================================================== */

:root {
	--bb-ease: cubic-bezier(0.22, 0.7, 0.2, 1);
	--bb-radius: 10px;
}

html {
	scroll-behavior: smooth;
	/* I link interni (es. il plettro) si fermano sotto l'header fisso, non dietro. */
	scroll-padding-top: calc(var(--wp-admin--admin-bar--height, 0px) + 4.5rem);
}
html.has-modal { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
::selection { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--base); }

a { text-underline-offset: 0.22em; text-decoration-thickness: 1px; transition: color 0.25s ease; }
strong { color: var(--wp--preset--color--ink); font-weight: 700; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--wp--preset--color--primary); }

/* Le fasce si toccano: niente spazio automatico tra i blocchi di primo livello. */
.wp-site-blocks > * + *,
.wp-block-post-content > .alignfull,
main > .alignfull + .alignfull { margin-block-start: 0; }

/* Riquadri: il padding resta dentro la larghezza. */
.notice, .soft-card, .cta, .cover-tile { box-sizing: border-box; }

/* --- Atmosfera: bagliori e grana ------------------------------------- */

.wp-site-blocks { position: relative; z-index: 1; }
body::before {
	content: "";
	position: fixed;
	inset: -20%;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(40% 35% at 15% 20%, color-mix(in srgb, var(--wp--preset--color--primary) 20%, transparent), transparent 70%),
		radial-gradient(35% 30% at 85% 75%, color-mix(in srgb, var(--wp--preset--color--wood) 14%, transparent), transparent 70%);
	animation: bb-drift 32s ease-in-out infinite alternate;
}
@keyframes bb-drift { to { transform: translate3d(4%, -3%, 0) rotate(3deg); } }
body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 9999;
	pointer-events: none;
	opacity: 0.07;
	background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.editor-styles-wrapper::before, .editor-styles-wrapper::after { display: none; }

/* Fasce con luce di scena */
.stage--teal, .home .wp-block-post-content > .stage--teal {
	background: radial-gradient(60% 45% at 50% 0%, color-mix(in srgb, var(--wp--preset--color--primary) 18%, transparent), transparent 70%), var(--wp--preset--color--base);
}
.stage--wood, .home .wp-block-post-content > .stage--wood {
	background: radial-gradient(50% 40% at 50% 38%, color-mix(in srgb, var(--wp--preset--color--wood) 16%, transparent), transparent 70%), var(--wp--preset--color--base);
}

/* --- Testi di servizio ------------------------------------------------ */

.kicker {
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
	margin-bottom: 0.75rem !important;
}
.kicker + .wp-block-heading { margin-top: 0 !important; }
.lead {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.6;
	max-width: 38rem;
}
.has-text-align-center.lead { margin-inline: auto; }
.meta {
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--wood);
}
.note {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--muted);
}
/* Descrizione dei prodotti: la mostra solo la finestra a comparsa */
.product-card .desc, .featured .desc { display: none; }
.editor-styles-wrapper .desc { display: block; opacity: 0.6; }

/* Intestazione di sezione centrata */
.section-head { text-align: center; margin-bottom: var(--wp--preset--spacing--40) !important; }
.section-head .wp-block-heading { margin: 0 auto; }
.section-head .note { margin-top: 0.75rem; }

/* Testo che si rivela parola per parola (le classi le mette il JS) */
.split-word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split .split-word > span {
	display: inline-block;
	transform: translateY(110%);
	transition: transform 1s var(--bb-ease);
	transition-delay: calc(var(--i, 0) * 45ms);
}
.split.is-visible .split-word > span { transform: none; }

/* --- Header ----------------------------------------------------------- */

.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
}
.site-header {
	position: relative;
	color: var(--wp--preset--color--ink);
	background: color-mix(in srgb, var(--wp--preset--color--base) 82%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(16px);
	backdrop-filter: saturate(1.4) blur(16px);
	border-bottom: 1px solid transparent;
	transition: background-color 0.4s ease, border-color 0.4s ease;
}
.is-scrolled .site-header { border-bottom-color: var(--wp--preset--color--line); }
/* backdrop-filter fa da contenitore agli elementi fissi: con il menu aperto va tolto,
   altrimenti l'overlay resta chiuso dentro l'header invece di coprire lo schermo. */
.site-header:has(.is-menu-open) { -webkit-backdrop-filter: none; backdrop-filter: none; }
/* Il menu sta a destra: lo spazio libero resta tutto tra il nome e le voci. */
.site-header .wp-block-group > .site-nav { margin-left: auto; }
.site-brand a { text-decoration: none; color: inherit; }
.site-brand a:hover { color: var(--wp--preset--color--primary); }

/* Voci di menu con sottolineatura che entra da sinistra */
.site-nav .wp-block-navigation-item__content,
.footer-nav .wp-block-navigation-item__content {
	position: relative;
	text-decoration: none;
	padding-block: 0.3rem;
}
.site-nav .wp-block-navigation-item__content::after,
.footer-nav .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: var(--wp--preset--color--primary);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.5s var(--bb-ease);
}
.site-nav .wp-block-navigation-item__content:hover::after,
.footer-nav .wp-block-navigation-item__content:hover::after {
	transform: scaleX(1);
	transform-origin: left;
}
/* LED acceso sulla pagina corrente, come su una pedaliera */
.site-nav .current-menu-item > .wp-block-navigation-item__content::before {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -0.35rem;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
	box-shadow: 0 0 8px var(--wp--preset--color--primary);
	translate: -50% 0;
}
.site-nav .is-menu-open .current-menu-item > .wp-block-navigation-item__content::before { display: none; }
.site-nav .wp-block-navigation-item__content:hover,
.footer-nav .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--primary); }

/* Home: header trasparente sopra la foto, diventa pieno allo scroll */
.home .wp-site-blocks > header.wp-block-template-part { position: fixed; left: 0; right: 0; }
html:not(.is-scrolled) .home .site-header {
	background: transparent;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

/* Menu mobile a tutto schermo (hamburger solo sotto i 600px, come da WordPress) */
.site-nav .wp-block-navigation__responsive-container-open svg,
.site-nav .wp-block-navigation__responsive-container-close svg { width: 28px; height: 28px; }
.site-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--50);
	animation: bb-fade 0.35s ease both;
}
.site-nav .is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 4rem !important;
	align-items: flex-start !important;
}
.site-nav .is-menu-open .wp-block-navigation__container {
	align-items: flex-start !important;
	gap: 0.5rem !important;
}
.site-nav .is-menu-open .wp-block-navigation-item__content {
	font-size: clamp(2.25rem, 11vw, 3.75rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.02em;
}
.site-nav .is-menu-open .wp-block-navigation-item__content::after { display: none; }
.site-nav .is-menu-open .current-menu-item > .wp-block-navigation-item__content { color: var(--wp--preset--color--primary); }
.site-nav .is-menu-open .wp-block-navigation-item {
	opacity: 0;
	transform: translateY(14px);
	animation: bb-rise 0.6s var(--bb-ease) forwards;
}
.site-nav .is-menu-open .wp-block-navigation-item:nth-child(2) { animation-delay: 0.05s; }
.site-nav .is-menu-open .wp-block-navigation-item:nth-child(3) { animation-delay: 0.1s; }
.site-nav .is-menu-open .wp-block-navigation-item:nth-child(4) { animation-delay: 0.15s; }
.site-nav .is-menu-open .wp-block-navigation-item:nth-child(5) { animation-delay: 0.2s; }
.site-nav .is-menu-open .wp-block-navigation-item:nth-child(6) { animation-delay: 0.25s; }
@keyframes bb-rise { to { opacity: 1; transform: none; } }
@keyframes bb-fade { from { opacity: 0; } }

/* --- Home: foto e sipario --------------------------------------------- */

.hero.wp-block-cover {
	min-height: 100svh !important;
	padding: var(--wp--preset--spacing--50);
	overflow: hidden;
}
.hero::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 50%;
	background: linear-gradient(to top, var(--wp--preset--color--base), transparent);
	pointer-events: none;
	z-index: 1;
}
.hero .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
	width: 100% !important;
	max-width: var(--wp--style--global--content-size);
	margin-inline: auto !important;
}
.hero .wp-block-cover__image-background { animation: bb-zoom 2.4s var(--bb-ease) both; }
@keyframes bb-zoom { from { scale: 1.08; } }
.hero-bar { align-items: flex-end !important; }
.hero-bar p { margin: 0; }
.hero-tag {
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink);
}
/* Plettro rivolto in basso: invito a scorrere, come una pennata */
.hero-scroll {
	display: inline-grid;
	place-items: center;
	width: 5.5rem;
	height: 5.5rem;
	color: var(--wp--preset--color--primary);
	animation: bb-nudge 2.4s ease-in-out infinite;
}
.hero-scroll svg { display: block; width: 3.75rem; height: auto; overflow: visible; filter: drop-shadow(0 10px 24px rgb(0 0 0 / 0.55)); }
.hero-scroll path {
	fill: color-mix(in srgb, var(--wp--preset--color--primary) 18%, transparent);
	stroke: currentColor;
	stroke-width: 1.75;
	vector-effect: non-scaling-stroke;
	transition: fill 0.3s ease;
}
.hero-scroll:hover { animation: none; }
.hero-scroll:hover path { fill: currentColor; }
@keyframes bb-nudge { 0%, 100% { translate: 0 0; } 50% { translate: 0 9px; } }

/* La foto resta ferma e le sezioni le scivolano sopra come un sipario. */
.home .wp-block-post-content > .hero.wp-block-cover { position: sticky; top: 0; z-index: 0; }
.home .wp-block-post-content > :not(.hero) {
	position: relative;
	z-index: 1;
	background: var(--wp--preset--color--base);
}
.home .hero + * {
	border-radius: 28px 28px 0 0;
	box-shadow: 0 -40px 80px -30px rgb(0 0 0 / 0.85);
}

/* --- Scroll gestito (CSS, senza JavaScript) --------------------------- */

@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: scroll()) {
		/* Linea di avanzamento sotto l'header */
		.site-header::after {
			content: "";
			position: absolute;
			left: 0;
			right: 0;
			bottom: -1px;
			height: 2px;
			background: linear-gradient(90deg, var(--wp--preset--color--primary), var(--wp--preset--color--wood));
			transform-origin: 0 50%;
			animation: bb-progress linear both;
			animation-timeline: scroll(root);
		}
		@keyframes bb-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

		/* La foto della home si allontana e si scurisce mentre sale il sipario */
		.home .hero .wp-block-cover__image-background {
			animation: bb-zoom 2.4s var(--bb-ease) both, bb-hero-away linear both;
			animation-timeline: auto, scroll(root);
			animation-range: normal, 0 100svh;
		}
		@keyframes bb-hero-away { to { transform: translateY(14%) scale(1.15); filter: brightness(0.3); } }
		.home .hero .wp-block-cover__inner-container {
			animation: bb-hero-fade linear both;
			animation-timeline: scroll(root);
			animation-range: 0 45svh;
		}
		@keyframes bb-hero-fade { to { opacity: 0; transform: translateY(-24px); } }

		/* Elementi che si alzano in 3D quando entrano nello schermo */
		.rise-3d {
			animation: bb-rise-3d linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 65%;
		}
		@keyframes bb-rise-3d {
			from { opacity: 0; transform: perspective(1200px) rotateX(16deg) translateY(70px); }
			to { opacity: 1; transform: none; }
		}

		/* Foto con parallasse */
		.parallax img {
			animation: bb-parallax linear both;
			animation-timeline: view();
		}
		@keyframes bb-parallax { from { transform: translateY(-5%); } to { transform: translateY(5%); } }
	}
}
.parallax { overflow: hidden; border-radius: var(--bb-radius); aspect-ratio: 4 / 5; }
.parallax img { width: 100%; height: 100%; object-fit: cover; scale: 1.12; }

/* Passaggio morbido tra le pagine */
@media (prefers-reduced-motion: no-preference) {
	@view-transition { navigation: auto; }
	::view-transition-old(root) { animation: 0.25s ease-in both bb-vt-out; }
	::view-transition-new(root) { animation: 0.5s cubic-bezier(0.22, 0.7, 0.2, 1) both bb-vt-in; }
	@keyframes bb-vt-out { to { opacity: 0; transform: translateY(-14px); } }
	@keyframes bb-vt-in { from { opacity: 0; transform: translateY(18px); } }
}

/* --- Inclinazione 3D (il JS aggiorna --rx, --ry, --gx, --gy) ---------- */

.tilt {
	position: relative;
	transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
	transform-style: preserve-3d;
}
.tilt > * { transform: translateZ(0); }
.tilt__glare {
	position: absolute;
	inset: 0;
	z-index: 2;
	border-radius: inherit;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.5s ease;
	background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgb(255 255 255 / 0.16), transparent 55%);
}
.tilt.is-tilting .tilt__glare { opacity: 1; }

/* --- Pulsanti --------------------------------------------------------- */

.wp-block-button__link,
.hero-scroll,
.bb-modal__close {
	transform: translate(var(--mx, 0px), var(--my, 0px));
	transition: transform 0.6s var(--bb-ease), background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.is-arrow .wp-block-button__link::after {
	content: "→";
	display: inline-block;
	margin-left: 0.5em;
	transition: transform 0.4s var(--bb-ease);
}
.is-arrow .wp-block-button__link:hover::after { transform: translateX(4px); }
@media (hover: hover) {
	.wp-block-button.is-style-outline > .wp-block-button__link:hover {
		background: var(--wp--preset--color--primary);
		border-color: var(--wp--preset--color--primary);
		color: var(--wp--preset--color--base);
	}
}
.wp-block-button__link.is-disabled { opacity: 0.45; pointer-events: none; }

/* --- Video YouTube: anteprima che apre la finestra a comparsa --------- */

.bb-video { margin: 0; }
.bb-video__poster {
	display: block;
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	padding: 0;
	border: 0;
	border-radius: var(--bb-radius);
	overflow: hidden;
	background: var(--wp--preset--color--surface);
	cursor: pointer;
	isolation: isolate;
	transition: transform 0.7s var(--bb-ease), box-shadow 0.7s var(--bb-ease);
}
.tilt.is-tilting .bb-video__poster { transform: translateZ(24px); box-shadow: 0 40px 60px -30px rgb(0 0 0 / 0.9); }
.bb-video__poster img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.9);
	transition: transform 0.9s var(--bb-ease), filter 0.6s ease;
}
.bb-video__poster::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgb(11 14 15 / 0.25);
	transition: background-color 0.5s ease;
}
.bb-video__play {
	position: absolute;
	inset: 50% auto auto 50%;
	z-index: 1;
	width: clamp(4rem, 8vw, 5.5rem);
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
	translate: -50% -50%;
	box-shadow: 0 12px 40px -12px rgb(0 0 0 / 0.6);
	transition: scale 0.5s var(--bb-ease), background-color 0.3s ease;
}
.bb-video__play::before {
	content: "";
	position: absolute;
	inset: 50% auto auto 54%;
	translate: -50% -50%;
	border-style: solid;
	border-width: 0.6em 0 0.6em 1em;
	border-color: transparent transparent transparent var(--wp--preset--color--base);
	font-size: clamp(0.9rem, 1.6vw, 1.15rem);
}
.bb-video__poster:hover img,
.bb-video__poster:focus-visible img { transform: scale(1.04); filter: saturate(1.05); }
.bb-video__poster:hover::after { background: rgb(11 14 15 / 0.1); }
.bb-video__poster:hover .bb-video__play { scale: 1.1; background: var(--wp--preset--color--wood); }
.bb-video figcaption {
	margin-top: 0.9rem;
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--wood);
}
.bb-video figcaption strong { color: var(--wp--preset--color--ink); }

/* --- Finestra a comparsa ---------------------------------------------- */

.bb-modal {
	width: min(1100px, calc(100vw - 2rem));
	max-width: none;
	max-height: calc(100vh - 2rem);
	margin: auto;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--text);
	overflow: visible;
}
.bb-modal::backdrop {
	background: rgb(4 6 7 / 0.72);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
}
.bb-modal[open] { animation: bb-modal-in 0.55s var(--bb-ease) both; }
.bb-modal[open]::backdrop { animation: bb-fade 0.4s ease both; }
.bb-modal.is-closing { animation: bb-modal-out 0.3s ease both; }
.bb-modal.is-closing::backdrop { animation: bb-fade 0.3s ease both reverse; }
@keyframes bb-modal-in { from { opacity: 0; transform: translateY(24px) scale(0.97); } }
@keyframes bb-modal-out { to { opacity: 0; transform: translateY(12px) scale(0.98); } }
.bb-modal__panel {
	position: relative;
	max-height: calc(100vh - 2rem);
	overflow-y: auto;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 16px;
}
.bb-modal__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 50%;
	background: color-mix(in srgb, var(--wp--preset--color--base) 80%, transparent);
	color: var(--wp--preset--color--ink);
	cursor: pointer;
}
.bb-modal__close:hover { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--base); }
.bb-modal--video .bb-modal__panel { aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
/* Nel video il pulsante di chiusura sta fuori dal riquadro, lontano dai comandi di YouTube */
.bb-modal--video .bb-modal__close { top: -3.25rem; right: 0; }
.bb-modal--video iframe { display: block; width: 100%; height: 100%; border: 0; }
.bb-modal--product .bb-modal__panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.bb-modal__media {
	display: grid;
	place-items: center;
	padding: clamp(1.5rem, 4vw, 3rem);
	background: radial-gradient(70% 60% at 50% 45%, color-mix(in srgb, var(--wp--preset--color--primary) 22%, transparent), transparent 70%), var(--wp--preset--color--base);
}
.bb-modal__media img {
	display: block;
	max-height: 62vh;
	width: auto;
	max-width: 100%;
	border-radius: 3px;
	box-shadow: 0 40px 70px -30px rgb(0 0 0 / 0.9);
}
.bb-modal__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.75rem;
	padding: clamp(1.5rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem);
}
.bb-modal__body h2 { margin: 0; font-size: var(--wp--preset--font-size--x-large); }
.bb-modal__body p { margin: 0; }
.bb-modal__body .kicker { margin-bottom: 0 !important; }
.bb-modal__desc { color: var(--wp--preset--color--text); max-width: 34rem; }
.bb-modal__body .price { margin-top: 0.5rem; font-size: 1.5rem; }
.bb-modal__body .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.5rem; }
/* WordPress lega lo stile "outline" a una classe numerata per ogni pulsante della pagina:
   quelli creati dal JS nella finestra non ce l'hanno, quindi lo stile va ripetuto qui. */
:where(.bb-modal) .wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	border: 1px solid var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}

/* --- Lettore delle tablature (alphaTab) ------------------------------ */

.bb-modal--tab .bb-modal__panel { display: flex; flex-direction: column; overflow: hidden; }
.tab-player__head { padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 4vw, 2.5rem) 1rem; padding-right: 4.5rem; }
.tab-player__head h2 { margin: 0; font-size: var(--wp--preset--font-size--x-large); }
.tab-player__head p { margin: 0; }
.tab-player__head .kicker { margin-bottom: 0.35rem !important; }
.tab-player__head .meta { margin-top: 0.35rem; }
.tab-player__stage {
	position: relative;
	flex: 1 1 auto;
	min-height: 14rem;
	max-height: min(56vh, 34rem);
	overflow: auto;
	border-block: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--base);
	scrollbar-width: thin;
	scrollbar-color: var(--wp--preset--color--line) transparent;
}
.tab-player__sheet { min-height: 100%; }
.tab-player__status {
	position: absolute;
	inset: 0;
	display: grid;
	place-content: center;
	justify-items: center;
	gap: 1rem;
	margin: 0;
	padding: 1.5rem;
	text-align: center;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	background: var(--wp--preset--color--base);
}
.tab-player__status[hidden] { display: none; }
/* Attesa: sei "meccaniche" che si accendono una dopo l'altra, dal Mi basso al cantino */
.tab-player__tuner { display: inline-flex; gap: 0.5rem; }
.tab-player__tuner i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--wp--preset--color--line);
	animation: bb-tuner 1.5s ease-in-out infinite;
	animation-delay: calc(var(--n, 0) * 0.14s);
}
.tab-player__tuner i:nth-child(2) { --n: 1; }
.tab-player__tuner i:nth-child(3) { --n: 2; }
.tab-player__tuner i:nth-child(4) { --n: 3; }
.tab-player__tuner i:nth-child(5) { --n: 4; }
.tab-player__tuner i:nth-child(6) { --n: 5; }
@keyframes bb-tuner {
	0%, 60%, 100% { background: var(--wp--preset--color--line); box-shadow: none; }
	25% { background: var(--wp--preset--color--primary); box-shadow: 0 0 10px var(--wp--preset--color--primary); }
}
.tab-player__bar {
	display: flex;
	align-items: center;
	gap: clamp(0.75rem, 2vw, 1.25rem);
	padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 0.5rem;
}
.tab-player__play {
	flex: none;
	display: grid;
	place-items: center;
	width: 3.25rem;
	height: 3.25rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	cursor: pointer;
	transition: scale 0.4s var(--bb-ease), background-color 0.3s ease, opacity 0.3s ease;
}
.tab-player__play:disabled { opacity: 0.35; cursor: progress; }
.tab-player__play:not(:disabled):hover { scale: 1.08; background: var(--wp--preset--color--wood); }
.tab-player__progress {
	flex: 1 1 auto;
	height: 2px;
	border-radius: 2px;
	background: var(--wp--preset--color--line);
}
.tab-player__progress span {
	position: relative;
	display: block;
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: var(--wp--preset--color--primary);
}
.tab-player__progress span::after {
	content: "";
	position: absolute;
	right: -4px;
	top: 50%;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
	box-shadow: 0 0 10px var(--wp--preset--color--primary);
	translate: 0 -50%;
}
.tab-player__time {
	flex: none;
	font-size: 0.75rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--muted);
}
.tab-player__speed { flex: none; display: inline-flex; gap: 0.25rem; }
.tab-player__speed button {
	padding: 0.4rem 0.7rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	background: transparent;
	color: var(--wp--preset--color--muted);
	font: 600 0.6875rem/1 var(--wp--preset--font-family--sans);
	letter-spacing: 0.06em;
	cursor: pointer;
	transition: border-color 0.3s ease, color 0.3s ease;
}
.tab-player__speed button:hover { color: var(--wp--preset--color--ink); }
.tab-player__speed button.is-active { border-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--ink); }
.tab-player__note {
	margin: 0;
	padding: 0.25rem clamp(1.25rem, 4vw, 2.5rem) 1.25rem;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}
/* Cursori di alphaTab: battuta in corso, punto di lettura, note che suonano */
.tab-player__sheet .at-cursor-bar { background: color-mix(in srgb, var(--wp--preset--color--primary) 12%, transparent); }
.tab-player__sheet .at-cursor-beat { background: var(--wp--preset--color--primary); width: 2px; box-shadow: 0 0 10px var(--wp--preset--color--primary); }
.tab-player__sheet .at-selection div { background: color-mix(in srgb, var(--wp--preset--color--wood) 18%, transparent); }
.tab-player__sheet .at-highlight * { fill: var(--wp--preset--color--primary); stroke: var(--wp--preset--color--primary); }

/* Pulsante "Preview" con il triangolo del play */
.tab-preview .wp-block-button__link { display: inline-flex; align-items: center; gap: 0.55em; }
.tab-preview .wp-block-button__link::before {
	content: "";
	border-style: solid;
	border-width: 0.36em 0 0.36em 0.6em;
	border-color: transparent transparent transparent currentColor;
}
.formats {
	margin: 0.5rem 0 0;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}
.product-card .product-foot .wp-block-buttons { gap: 0.4rem; flex-wrap: nowrap; }
.product-card .product-foot .wp-block-button__link { font-size: 0.75rem; padding: 0.55rem 1rem; }

/* --- Spartiti --------------------------------------------------------- */

.cover-tile {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--bb-radius);
	padding: clamp(1.75rem, 5vw, 3rem) !important;
	transition: border-color 0.5s ease;
}
.cover-tile .wp-block-image { margin: 0; }
.cover-tile .wp-block-image, .cover-tile a { display: block; transform-style: preserve-3d; }
.cover-tile img {
	display: block;
	border-radius: 3px !important;
	box-shadow: 0 30px 50px -25px rgb(0 0 0 / 0.8);
	transition: transform 0.7s var(--bb-ease), box-shadow 0.7s var(--bb-ease);
}
.cover-tile.is-tilting { border-color: color-mix(in srgb, var(--wp--preset--color--primary) 55%, transparent); }
.cover-tile.is-tilting img { transform: translateZ(40px); box-shadow: 0 60px 80px -35px rgb(0 0 0 / 0.95); }
.product-grid {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)) !important;
	gap: clamp(1.5rem, 3vw, 2.5rem) !important;
}
.product-card.is-hidden { display: none; }
.product-card h3 { margin: var(--wp--preset--spacing--30) 0 0.25rem; }
.product-card .meta { margin: 0; }
.product-card .wp-block-buttons { margin: 0; }
.product-card .product-foot { margin-top: 1rem; align-items: center !important; }
.price {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--wp--preset--color--ink);
}
.featured .price { font-size: 1.5rem; }
.featured .stage-cover { max-width: 24rem; margin-inline: auto; }
.featured .kicker { margin-top: var(--wp--preset--spacing--40); }

/* Filtri per livello */
.filters { margin-bottom: var(--wp--preset--spacing--50) !important; }
.filters .wp-block-buttons { justify-content: center; }
.filters .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-size: 0.75rem;
	padding: 0.55rem 1.1rem;
}
.filters .wp-block-button__link::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--wp--preset--color--line);
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.filters .wp-block-button.is-active .wp-block-button__link {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--ink);
}
.filters .wp-block-button.is-active .wp-block-button__link::before {
	background: var(--wp--preset--color--primary);
	box-shadow: 0 0 10px var(--wp--preset--color--primary);
}
@media (hover: hover) {
	.filters .wp-block-button__link:hover::before { background: var(--wp--preset--color--base); box-shadow: none; }
}

/* Jack: il pulsante "Get in touch" si collega alla presa */
.jack .wp-block-button__link { display: inline-flex; align-items: center; gap: 0.7rem; }
.jack .wp-block-button__link::before {
	content: "";
	order: 2;
	width: 28px;
	height: 12px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 12'%3E%3Crect y='5' width='7' height='2' rx='1'/%3E%3Crect x='6' y='2' width='10' height='8' rx='2'/%3E%3Crect x='16' y='4' width='6' height='4'/%3E%3Crect x='23' y='3' width='5' height='6' rx='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 12'%3E%3Crect y='5' width='7' height='2' rx='1'/%3E%3Crect x='6' y='2' width='10' height='8' rx='2'/%3E%3Crect x='16' y='4' width='6' height='4'/%3E%3Crect x='23' y='3' width='5' height='6' rx='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: translate 0.5s var(--bb-ease);
}
.jack .wp-block-button__link::after {
	content: "";
	order: 3;
	box-sizing: border-box;
	width: 10px;
	height: 10px;
	margin-left: -0.35rem;
	border: 2px solid currentColor;
	border-radius: 50%;
	transition: box-shadow 0.4s ease;
}
.jack .wp-block-button__link:hover::before { translate: 7px 0; }
.jack .wp-block-button__link:hover::after { box-shadow: 0 0 10px currentColor; }

/* --- Liste a righe (curriculum, band, contatti) ------------------------ */

.rows { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--wp--preset--color--line); }
.rows li {
	display: grid;
	grid-template-columns: 14px minmax(0, 1fr) minmax(0, 1.4fr);
	gap: 0.5rem 2rem;
	padding: 1.1rem 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	transition: background-color 0.3s ease, padding-left 0.4s var(--bb-ease);
}
.rows li:hover { background: color-mix(in srgb, var(--wp--preset--color--surface) 70%, transparent); padding-left: 0.75rem; }
/* Intarsio di madreperla, come i segnatasti */
.rows li::before {
	content: "";
	width: 8px;
	height: 8px;
	margin-top: 0.55em;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, #fbf7ef, #b8afa3 55%, #7d7368);
	box-shadow: 0 0 0 1px rgb(0 0 0 / 0.4);
	transition: background 0.3s ease, box-shadow 0.3s ease;
}
.rows li:hover::before { background: var(--wp--preset--color--primary); box-shadow: 0 0 10px var(--wp--preset--color--primary); }
.row-main { display: flex; flex-direction: column; gap: 0.15rem; }
.row-main strong { font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; }
.row-sub { font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; color: var(--wp--preset--color--wood); }
.row-detail { color: var(--wp--preset--color--text); }

/* --- Le sei corde (vibrano: vedi theme.js) ------------------------------ */

.strings { position: relative; height: 96px; margin-bottom: var(--wp--preset--spacing--30); }
.strings__svg { display: block; width: 100%; height: 100%; overflow: visible; }
.strings__lines path {
	fill: none;
	stroke: color-mix(in srgb, var(--wp--preset--color--muted) 55%, transparent);
	vector-effect: non-scaling-stroke;
	transition: stroke 0.6s ease;
}
.strings__lines path:nth-child(1) { stroke-width: 1; }
.strings__lines path:nth-child(2) { stroke-width: 1.2; }
.strings__lines path:nth-child(3) { stroke-width: 1.45; }
.strings__lines path:nth-child(4) { stroke-width: 1.8; }
.strings__lines path:nth-child(5) { stroke-width: 2.2; }
.strings__lines path:nth-child(6) { stroke-width: 2.6; }
.strings__lines path.is-plucked { stroke: var(--wp--preset--color--primary); transition: none; }
.strings__hits path { fill: none; stroke: transparent; stroke-width: 14; vector-effect: non-scaling-stroke; pointer-events: stroke; }
.strings__tuning {
	position: absolute;
	top: 5px;
	left: 0;
	z-index: 1;
	display: grid;
	grid-auto-rows: 14px;
	width: 2rem;
	background: var(--wp--preset--color--base);
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 14px;
	color: var(--wp--preset--color--muted);
}

/* --- Pagine interne --------------------------------------------------- */

.page-intro { text-align: center; border-bottom: 1px solid var(--wp--preset--color--line); }
.page-intro__title { margin: 0 auto; }
.page-intro__lead { margin-top: 1rem; }
.page-intro__lead p { max-width: 36rem; margin: 0 auto; color: var(--wp--preset--color--muted); }

.notice {
	text-align: center;
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	padding: 0.75rem 1.5rem;
	margin: 0 auto var(--wp--preset--spacing--40) !important;
	max-width: max-content;
}
.notice strong { color: var(--wp--preset--color--primary); }
.soft-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--bb-radius);
	padding: clamp(1.5rem, 4vw, 2rem) !important;
	height: 100%;
	transition: border-color 0.4s ease, transform 0.5s var(--bb-ease);
}
.soft-card:hover { border-color: color-mix(in srgb, var(--wp--preset--color--primary) 55%, transparent); transform: translateY(-4px); }
.step-number { margin: 0 0 1rem; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; color: var(--wp--preset--color--primary); }
.cta {
	text-align: center;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1.5rem, 6vw, 4rem) !important;
}
.contact-big { font-size: clamp(1.125rem, 2.2vw, 1.375rem); font-weight: 700; line-height: 1.3; word-break: break-word; color: var(--wp--preset--color--ink); }
.contact-big a { color: inherit; text-decoration: none; }
.contact-big a:hover { color: var(--wp--preset--color--primary); }

.not-found { text-align: center; }
.not-found .lead { margin-inline: auto; }

/* --- Footer ----------------------------------------------------------- */

.site-footer { text-align: center; border-top: 1px solid var(--wp--preset--color--line); }
.site-footer__claim {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 800;
	line-height: 1.1;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink);
}
.site-footer__claim em { font-style: normal; color: var(--wp--preset--color--primary); }
.site-footer .wp-block-separator { margin-block: var(--wp--preset--spacing--40) !important; opacity: 1; }
.site-footer__bottom {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--muted);
}
.site-footer__bottom p { margin: 0; }
.footer-nav { font-size: 0.75rem !important; gap: 1.25rem !important; }
.site-social .wp-social-link { color: var(--wp--preset--color--text) !important; transition: transform 0.4s var(--bb-ease), color 0.3s ease; }
.site-social .wp-social-link svg { width: 1.5rem; height: 1.5rem; }
.site-social .wp-social-link:hover { transform: translateY(-3px); color: var(--wp--preset--color--primary) !important; }

/* --- Comparsa allo scroll (attivata dal JS) ---------------------------- */

.will-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--bb-ease), transform 0.9s var(--bb-ease); }
.will-reveal.is-visible { opacity: 1; transform: none; }

/* --- Mobile ----------------------------------------------------------- */

@media (max-width: 781px) {
	.hero-bar { flex-direction: column; align-items: flex-start !important; gap: 1rem !important; }
	.hero-scroll { display: none; }
	.home .hero + * { border-radius: 20px 20px 0 0; }
	.rows li { grid-template-columns: 14px 1fr; }
	.rows .row-detail { grid-column: 2; }
	.site-footer__bottom { flex-direction: column; gap: 0.75rem !important; }
	.footer-nav { flex-wrap: wrap; justify-content: center; gap: 0.5rem 1rem !important; }
	.notice { border-radius: 14px; max-width: none; }
	.bb-modal { width: calc(100vw - 1rem); max-height: calc(100vh - 1rem); }
	.bb-modal--product .bb-modal__panel { grid-template-columns: 1fr; max-height: calc(100vh - 1rem); }
	.bb-modal__media img { max-height: 38vh; }
	.tab-player__bar { flex-wrap: wrap; }
	.tab-player__progress { order: 5; flex-basis: 100%; margin-block: 0.5rem 0.25rem; }
	.tab-player__time { margin-left: auto; }
	.tab-player__stage { max-height: 52vh; }
}
