/* ==========================================================================
   Globo8 — stile minimale, bianco, "Apple-like"
   ========================================================================== */

:root {
	--bg: #ffffff;
	--fg: #1d1d1f;
	--muted: #6e6e73;
	--line: #d2d2d7;
	--soft: #f5f5f7;
	--accent: #0071e3;
	--black: #0b0b0c;
	--radius: 22px;
	--nav-h: 52px;
	--ease: cubic-bezier(.22, .61, .36, 1);
	--spring: cubic-bezier(.34, 1.56, .64, 1);
	--font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.47;
	letter-spacing: -.022em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
::selection { background: #111; color: #fff; }

.g8-container { width: min(1180px, 100% - 44px); margin-inline: auto; }
.g8-narrow { width: min(760px, 100% - 44px); }
.g8-center { text-align: center; }
.g8-main { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 96px; min-height: 70vh; }

/* Tipografia */
.g8-display { font-size: clamp(44px, 7vw, 88px); line-height: 1.04; letter-spacing: -.045em; font-weight: 700; margin: 0 0 .25em; }
.g8-h1 { font-size: clamp(34px, 4.5vw, 56px); line-height: 1.07; letter-spacing: -.04em; font-weight: 700; margin: 0 0 .4em; }
.g8-h2 { font-size: clamp(26px, 3vw, 40px); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; margin: 0 0 .3em; }
.g8-lead { font-size: clamp(19px, 2vw, 25px); line-height: 1.35; color: var(--muted); font-weight: 500; margin: 0 0 1.2em; max-width: 34ch; }
.g8-center .g8-lead, .g8-center.g8-lead { margin-inline: auto; }
.g8-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 600; color: var(--muted); margin: 0 0 12px; }
.g8-muted { color: var(--muted); }
.g8-small { font-size: 14px; }
.g8-prose { font-size: 18px; line-height: 1.6; }
.g8-prose p { margin: 0 0 1em; }
.g8-pill { display: inline-block; background: var(--soft); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 500; }

/* Bottoni */
.g8-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 24px; min-height: 44px;
	border-radius: 999px; border: 1px solid var(--black);
	background: var(--black); color: #fff;
	font-size: 17px; font-weight: 500; letter-spacing: -.01em;
	cursor: pointer; text-decoration: none !important;
	transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s;
}
.g8-btn:hover { transform: translateY(-1px) scale(1.02); box-shadow: 0 10px 30px rgba(0,0,0,.15); }
.g8-btn:active { transform: scale(.98); }
.g8-btn--ghost { background: transparent; color: var(--black); }
.g8-btn--ghost:hover { background: var(--black); color: #fff; }
.g8-btn--big { padding: 16px 32px; font-size: 19px; }
.g8-btn.is-disabled { opacity: .4; pointer-events: none; }
.g8-link { color: var(--accent); font-weight: 500; cursor: pointer; }

/* Rivelazione allo scroll (solo con JS) */
.g8-js .g8-reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.g8-js .g8-reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   NAV
   ========================================================================== */
.g8-nav {
	position: fixed; inset: 0 0 auto; z-index: 1000; height: var(--nav-h);
	background: rgba(255,255,255,.72);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
	border-bottom: 1px solid rgba(0,0,0,.06);
}
.admin-bar .g8-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .g8-nav { top: 46px; } }
.g8-nav__inner { height: 100%; width: min(1180px, 100% - 32px); margin: auto; display: flex; align-items: center; justify-content: space-between; }
.g8-brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 600; text-decoration: none !important; }
.g8-brand__ball, .g8-brand__logo { width: 28px; height: 28px; transition: transform .6s var(--spring); }
.g8-brand:hover .g8-brand__ball { transform: rotate(360deg); }
.g8-brand__name { font-size: 15px; letter-spacing: -.01em; }
.g8-menu ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.g8-menu a {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 8px 12px; border-radius: 999px;
	color: var(--fg); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
	text-decoration: none !important; opacity: .82; transition: opacity .2s, background .2s;
}
.g8-menu a:hover { opacity: 1; background: rgba(0,0,0,.05); }
.g8-menu a.is-current { opacity: 1; font-weight: 700; }
.g8-cart-count {
	display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px;
	border-radius: 999px; background: var(--black); color: #fff; font-size: 10px; letter-spacing: 0;
	transition: transform .4s var(--spring);
}
.g8-cart-count.is-empty { background: var(--line); color: var(--fg); }
.g8-cart-count.bump { transform: scale(1.4); }
.g8-lang__btn { border: 1px solid var(--line); margin-left: 6px; }
.g8-lang__btn span { opacity: .45; }
.g8-lang__btn span.is-on { opacity: 1; font-weight: 700; }
.g8-lang__btn i { font-style: normal; opacity: .3; }

.g8-burger { display: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; position: relative; }
.g8-burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--fg); transition: transform .3s var(--ease), top .3s; }
.g8-burger span:first-child { top: 16px; } .g8-burger span:last-child { top: 23px; }
.g8-nav.is-open .g8-burger span:first-child { top: 19.5px; transform: rotate(45deg); }
.g8-nav.is-open .g8-burger span:last-child { top: 19.5px; transform: rotate(-45deg); }

@media (max-width: 900px) {
	.g8-burger { display: block; }
	.g8-menu {
		position: fixed; inset: var(--nav-h) 0 auto; background: #fff;
		-webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
		max-height: 0; overflow: hidden; transition: max-height .5s var(--ease);
	}
	.g8-nav.is-open .g8-menu { max-height: 100vh; border-bottom: 1px solid var(--line); }
	.g8-menu ul { flex-direction: column; align-items: stretch; padding: 12px 22px 28px; gap: 0; }
	.g8-menu a { font-size: 22px; letter-spacing: -.02em; text-transform: none; padding: 12px 0; border-radius: 0; border-bottom: 1px solid var(--soft); width: 100%; }
	.g8-lang__btn { border: 0; margin: 0; }
}

/* ==========================================================================
   FOOTER + MODALE GENERICO
   ========================================================================== */
.g8-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 12px; color: var(--muted); }
.g8-footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.g8-footer__links { display: flex; gap: 18px; }
.g8-footer a { color: var(--muted); }

.g8-modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; }
.g8-modal[hidden] { display: none; }
.g8-modal__backdrop, .g8-product-zoom__backdrop, .g8-book__backdrop {
	position: absolute; inset: 0; background: rgba(0,0,0,.82);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	animation: g8-fade .35s var(--ease);
}
.g8-modal__box { position: relative; width: min(1100px, 94vw); animation: g8-pop .5s var(--spring); }
.g8-modal__content { aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 40px 120px rgba(0,0,0,.6); }
.g8-modal__content video, .g8-modal__content iframe { width: 100%; height: 100%; border: 0; display: block; }
.g8-modal__title { color: #fff; margin: 14px 4px 0; font-weight: 600; font-size: 17px; }
.g8-modal__close {
	position: absolute; top: -52px; right: 0; width: 40px; height: 40px; border-radius: 50%;
	border: 0; background: rgba(255,255,255,.16); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
	transition: background .2s, transform .3s var(--spring);
}
.g8-modal__close:hover { background: rgba(255,255,255,.3); transform: rotate(90deg); }
@keyframes g8-fade { from { opacity: 0; } }
@keyframes g8-pop { from { opacity: 0; transform: scale(.92) translateY(20px); } }
body.g8-locked { overflow: hidden; }

/* ==========================================================================
   INTRO — palla 8 che spacca lo schermo
   ========================================================================== */
.g8-intro { position: fixed; inset: 0; z-index: 5000; pointer-events: auto; }
.g8-intro__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.g8-intro__skip {
	position: absolute; right: 22px; bottom: 22px; z-index: 2;
	padding: 8px 16px; border-radius: 999px; border: 0;
	background: rgba(0,0,0,.6); color: #fff; font-size: 13px; cursor: pointer;
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	opacity: .85;
}
html:not(.g8-js) .g8-intro { display: none; }
.g8-shake { animation: g8-shake .5s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes g8-shake {
	10%, 90% { transform: translate3d(-2px, 1px, 0); }
	20%, 80% { transform: translate3d(4px, -3px, 0); }
	30%, 50%, 70% { transform: translate3d(-7px, 4px, 0); }
	40%, 60% { transform: translate3d(7px, -2px, 0); }
}

/* ==========================================================================
   HOME
   ========================================================================== */
.g8-hero { padding: 9vh 0 7vh; text-align: center; }
.g8-hero .g8-display { max-width: 14ch; margin-inline: auto; }
.g8-hero .g8-lead { margin-inline: auto; }
.g8-hero__ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.g8-section-head { text-align: center; margin-bottom: 40px; }

.g8-pips { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.g8-pip {
	all: unset; box-sizing: border-box; cursor: pointer; display: block;
	border-radius: var(--radius); transition: transform .5s var(--ease);
}
.g8-pip__media {
	position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden;
	border-radius: var(--radius); background: var(--soft);
	box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 12px 30px rgba(0,0,0,.08);
	transition: box-shadow .5s var(--ease), transform .5s var(--ease);
	-webkit-mask-image: -webkit-radial-gradient(white, black);
}
.g8-pip__media img, .g8-pip__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s, transform 1.2s var(--ease); }
.g8-pip__media video { opacity: 0; }
.g8-pip.is-playing video { opacity: 1; }
.g8-pip:hover .g8-pip__media { transform: translateY(-6px) scale(1.015); box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 30px 60px rgba(0,0,0,.18); }
.g8-pip:hover img { transform: scale(1.05); }
.g8-pip:focus-visible .g8-pip__media { outline: 3px solid var(--accent); outline-offset: 4px; }
.g8-pip__play {
	position: absolute; left: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%;
	display: grid; place-items: center; background: rgba(255,255,255,.75);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	transition: transform .4s var(--spring), opacity .3s;
}
.g8-pip__play svg { width: 20px; height: 20px; fill: var(--black); margin-left: 2px; }
.g8-pip:hover .g8-pip__play { transform: scale(1.12); }
.g8-pip.is-playing .g8-pip__play { opacity: 0; }
.g8-pip__meta { display: flex; justify-content: space-between; gap: 12px; padding: 14px 4px 0; }
.g8-pip__title { font-weight: 600; font-size: 17px; }
.g8-pip__year { color: var(--muted); font-size: 15px; }
.g8-pip--placeholder { cursor: default; }
.g8-pip--placeholder .g8-pip__media { background: linear-gradient(135deg, #f5f5f7, #e8e8ed); }
.g8-admin-hint { grid-column: 1 / -1; text-align: center; }

/* Hero a due colonne con la palla 3D */
.g8-hero--split {
	display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(24px, 5vw, 80px);
	text-align: left; min-height: calc(100vh - var(--nav-h) - 80px); padding: 4vh 0 6vh;
}
.g8-hero--split .g8-display { max-width: 11ch; margin: 0 0 .3em; font-size: clamp(44px, 6.2vw, 84px); }
.g8-hero--split .g8-lead { margin: 0 0 1.4em; max-width: 30ch; }
.g8-hero--split .g8-hero__ctas { justify-content: flex-start; }
.g8-hero__orb { position: relative; display: grid; justify-items: center; }
.g8-orb {
	position: relative; width: min(470px, 40vw); aspect-ratio: 1; border-radius: 50%;
	cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent;
	transform-origin: 50% 50%; will-change: transform;
	animation: g8-orb-in 1.2s var(--spring) both .15s;
}
.g8-orb.is-flying { z-index: 4900; cursor: default; }
.g8-orb:focus-visible { box-shadow: 0 0 0 4px var(--accent); }
.g8-orb__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.g8-orb__fallback {
	display: none; position: absolute; inset: 0; border-radius: 50%; place-items: center;
	background: radial-gradient(circle at 34% 28%, #5a5a5e 0%, #1a1a1c 38%, #050505 70%, #000 100%);
	box-shadow: inset -18px -26px 50px rgba(0,0,0,.9);
}
.g8-orb__fallback b { width: 44%; aspect-ratio: 1; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: clamp(50px, 7vw, 110px); font-weight: 800; color: #111; }
.g8-orb.is-fallback .g8-orb__fallback { display: grid; }
.g8-orb.is-fallback .g8-orb__canvas { display: none; }
.g8-orb__shadow {
	display: block; width: 62%; height: 34px; margin-top: -6px; border-radius: 50%;
	background: radial-gradient(closest-side, rgba(0,0,0,.22), transparent);
	transition: opacity .2s; animation: g8-fade 1.2s ease both .4s;
}
.g8-orb__hint { margin: 14px 0 0; text-align: center; }
@keyframes g8-orb-in { from { opacity: 0; transform: translateY(30px) scale(.86); } }
.g8-sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.g8-intro { pointer-events: none; }
.g8-intro:not(.is-active) { visibility: hidden; }
.g8-intro__skip { pointer-events: auto; }
@media (max-width: 820px) {
	.g8-hero--split { grid-template-columns: 1fr; min-height: 0; padding-top: 2vh; gap: 20px; }
	.g8-hero__orb { order: -1; }
	.g8-orb { width: min(300px, 70vw); }
}

/* ==========================================================================
   GLOBINI
   ========================================================================== */
.g8-globini__head { text-align: center; }
.g8-globini__head .g8-lead { margin-inline: auto; }
.g8-counter { font-size: 15px; color: var(--muted); }
.g8-counter strong { color: var(--fg); font-size: 22px; font-variant-numeric: tabular-nums; }
.g8-table-wrap { width: min(1280px, 100% - 24px); margin: 30px auto 40px; }
.g8-table {
	position: relative; height: min(72vh, 760px); min-height: 420px;
	border-radius: 36px; overflow: hidden;
	background: radial-gradient(120% 90% at 50% 0%, #ffffff 0%, #f5f5f7 70%, #ececf0 100%);
	box-shadow: inset 0 0 0 1px rgba(0,0,0,.05), inset 0 -30px 80px rgba(0,0,0,.04);
	cursor: grab;
	touch-action: pan-y;
}
.g8-table:active { cursor: grabbing; }
.g8-table canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.g8-table__tip {
	position: absolute; pointer-events: none; transform: translate(-50%, calc(-100% - 14px));
	background: rgba(29,29,31,.9); color: #fff; font-size: 13px; font-weight: 600;
	padding: 6px 10px; border-radius: 10px; white-space: nowrap;
}
.g8-demo-note { margin-top: 14px; }
.g8-globini__cta { display: grid; justify-items: center; gap: 18px; }
.g8-globini__cta .g8-small { max-width: 52ch; }
.g8-myball { display: flex; align-items: center; gap: 14px; font-size: 20px; }
.g8-myball__dot {
	width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
	background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.55), transparent 40%), var(--c);
	box-shadow: inset -6px -8px 16px rgba(0,0,0,.25), 0 10px 20px rgba(0,0,0,.15);
}
.g8-myball__dot b { width: 26px; height: 26px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 12px; }

/* ==========================================================================
   SHOP — binari che scorrono, effetto lente
   ========================================================================== */
.g8-shop__head { text-align: center; }
.g8-shop__head .g8-lead { margin-inline: auto; }
.g8-marquees { display: grid; gap: 4px; margin-top: 50px; }
.g8-track {
	overflow-x: auto; overflow-y: hidden; padding: 70px 0;
	scrollbar-width: none; -ms-overflow-style: none;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	margin: -50px 0;
}
.g8-track::-webkit-scrollbar { display: none; }
.g8-track__rail { display: flex; gap: 40px; width: max-content; padding: 0 28px; }
.g8-art {
	all: unset; box-sizing: border-box; cursor: zoom-in; width: clamp(200px, 20vw, 290px); flex: none;
	transform: translateY(calc(var(--lift, 0) * -1px)) scale(var(--s, 1));
	transform-origin: 50% 70%;
	transition: transform .18s ease-out;
	position: relative; z-index: calc(var(--z, 0) + 1);
}
.g8-art__frame {
	position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden;
	background: linear-gradient(180deg, #fafafa, #f2f2f5);
	box-shadow: 0 1px 1px rgba(0,0,0,.04);
	transition: box-shadow .3s;
}
.g8-art:hover .g8-art__frame { box-shadow: 0 30px 60px rgba(0,0,0,.14); }
.g8-art__frame img {
	position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain;
	filter: drop-shadow(0 18px 24px rgba(0,0,0,.18));
	user-select: none; -webkit-user-drag: none;
}
.g8-art__lens {
	position: absolute; width: 150px; height: 150px; left: 0; top: 0; border-radius: 50%;
	pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.6);
	background-repeat: no-repeat; background-color: rgba(255,255,255,.35);
	box-shadow: 0 0 0 1px rgba(255,255,255,.9) inset, 0 0 0 1px rgba(0,0,0,.08), 0 18px 40px rgba(0,0,0,.25);
	-webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
	transition: opacity .25s, transform .35s var(--spring);
}
.g8-art.is-lens .g8-art__lens { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.g8-art__cap { display: flex; justify-content: space-between; gap: 10px; padding: 12px 6px 0; font-size: 15px; }
.g8-art__name { font-weight: 600; }
.g8-art__price { color: var(--muted); white-space: nowrap; }
.g8-art__price del { opacity: .6; }
.g8-art__price ins { text-decoration: none; }

.g8-product-zoom { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; }
.g8-product-zoom[hidden] { display: none; }
.g8-product-zoom__backdrop { background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%); }
.g8-product-zoom__panel {
	position: relative; width: min(1120px, 94vw); max-height: 90vh; overflow: auto;
	display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center;
	background: #fff; border-radius: 36px; padding: 40px;
	box-shadow: 0 50px 140px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.04);
	animation: g8-pop .55s var(--spring);
}
.g8-product-zoom__panel .g8-modal__close { top: 18px; right: 18px; background: var(--soft); color: var(--fg); z-index: 2; }
.g8-product-zoom__img { background: var(--soft); border-radius: 28px; aspect-ratio: 4 / 5; display: grid; place-items: center; overflow: hidden; }
.g8-product-zoom__img img { width: 86%; height: 86%; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0,0,0,.2)); transform-origin: 0 0; }
.g8-product-zoom__price { font-size: 22px; margin-bottom: 18px; }
.g8-product-zoom__desc { color: var(--muted); font-size: 16px; }
.g8-product-zoom__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 26px 0 14px; }
.g8-product-zoom__actions .is-added { background: #1d8a3c; border-color: #1d8a3c; color: #fff; }
@media (max-width: 760px) {
	.g8-product-zoom__panel { grid-template-columns: 1fr; padding: 22px; gap: 18px; border-radius: 28px; }
	.g8-product-zoom__img { aspect-ratio: 1; }
}

/* ==========================================================================
   PORTFOLIO
   ========================================================================== */
.g8-portfolio__grid { display: grid; grid-template-columns: minmax(260px, 5fr) 7fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.g8-standee { margin: 0; position: sticky; top: calc(var(--nav-h) + 30px); perspective: 1200px; }
.g8-standee img, .g8-standee__placeholder {
	width: 100%; max-height: 80vh; object-fit: contain; object-position: bottom;
	transform: rotateY(var(--sy, 0deg)) rotateX(var(--sx, 0deg));
	transform-origin: 50% 100%;
	transition: transform .3s ease-out;
	filter: drop-shadow(18px 10px 0 rgba(0,0,0,.05)) drop-shadow(0 20px 30px rgba(0,0,0,.12));
	position: relative; z-index: 1;
}
.g8-standee__placeholder { aspect-ratio: 200 / 520; display: grid; place-items: center; background: none; }
.g8-standee__placeholder svg { width: 70%; fill: #e8e8ed; }
.g8-standee__placeholder small { position: absolute; bottom: 30%; left: 10%; right: 10%; text-align: center; color: var(--muted); font-size: 13px; }
.g8-standee__shadow { display: block; width: 70%; height: 22px; margin: -14px auto 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.18), transparent); }
.g8-bio { margin-bottom: 40px; max-width: 60ch; }

.g8-oracle { display: grid; justify-items: center; gap: 14px; padding: 36px 20px 34px; border-radius: 36px; background: var(--soft); }
.g8-oracle__btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }

.g8-magic { --size: 220px; position: relative; width: var(--size); height: calc(var(--size) + 26px); cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.g8-magic__ball {
	position: relative; width: var(--size); height: var(--size); border-radius: 50%; overflow: hidden;
	background: radial-gradient(circle at 34% 28%, #5a5a5e 0%, #1a1a1c 38%, #050505 70%, #000 100%);
	box-shadow: inset -18px -26px 50px rgba(0,0,0,.9), inset 10px 12px 30px rgba(255,255,255,.06), 0 30px 50px rgba(0,0,0,.25);
	transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
	transition: transform .25s ease-out;
}
.g8-magic:focus-visible .g8-magic__ball { box-shadow: 0 0 0 4px var(--accent), 0 30px 50px rgba(0,0,0,.25); }
.g8-magic__face {
	position: absolute; left: 50%; top: 50%; width: 48%; height: 48%;
	transform: translate(calc(-50% + var(--fx, 0px)), calc(-50% + var(--fy, 0px))) scale(var(--fs, 1));
	transition: transform .25s ease-out;
}
.g8-magic__eight, .g8-magic__window {
	position: absolute; inset: 0; border-radius: 50%; transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.g8-magic__eight {
	background: radial-gradient(circle at 40% 35%, #fff, #e9e9e9 70%, #cfcfcf);
	display: grid; place-items: center; color: #111; font-weight: 800; font-size: calc(var(--size) * .26); letter-spacing: -.04em;
	box-shadow: inset -4px -6px 10px rgba(0,0,0,.18);
}
.g8-magic__window {
	opacity: 0; transform: scale(.7);
	background: radial-gradient(circle at 50% 45%, #0c1f5c 0%, #071234 60%, #020617 100%);
	box-shadow: inset 0 0 0 5px #1c1c1e, inset 0 8px 18px rgba(0,0,0,.8);
	display: grid; place-items: center;
}
.g8-magic__tri {
	width: 78%; aspect-ratio: 1 / .9; margin-top: 8%;
	clip-path: polygon(50% 100%, 0 0, 100% 0);
	background: linear-gradient(180deg, #2f5fe0, #1c3ea8);
	display: flex; align-items: flex-start; justify-content: center; padding: 10% 18% 0;
	opacity: 0; transform: translateY(20px) scale(.6) rotate(-14deg); filter: blur(4px);
	transition: opacity .9s var(--ease), transform 1.1s var(--ease), filter .9s;
}
.g8-magic__answer { color: #e9f0ff; font-size: calc(var(--size) * .046); line-height: 1.15; font-weight: 700; text-transform: uppercase; text-align: center; letter-spacing: .02em; }
.g8-magic.is-revealed .g8-magic__eight { opacity: 0; transform: scale(1.2); }
.g8-magic.is-revealed .g8-magic__window { opacity: 1; transform: none; }
.g8-magic.is-answering .g8-magic__tri { opacity: 1; transform: none; filter: none; }
.g8-magic__shine {
	position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
	background: radial-gradient(circle at var(--hx, 32%) var(--hy, 24%), rgba(255,255,255,.38) 0%, rgba(255,255,255,.08) 12%, transparent 24%);
}
.g8-magic__shadow { position: absolute; left: 15%; right: 15%; bottom: 0; height: 18px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.28), transparent); }
.g8-magic.is-shaking .g8-magic__ball { animation: g8-8shake .9s cubic-bezier(.36,.07,.19,.97); }
@keyframes g8-8shake {
	0% { transform: none; }
	10% { transform: translate(-14px, -6px) rotate(-12deg); }
	22% { transform: translate(16px, 4px) rotate(10deg); }
	34% { transform: translate(-16px, 2px) rotate(-10deg); }
	46% { transform: translate(14px, -4px) rotate(8deg); }
	58% { transform: translate(-10px, 3px) rotate(-6deg); }
	70% { transform: translate(7px, -2px) rotate(4deg); }
	84% { transform: translate(-3px, 1px) rotate(-2deg); }
	100% { transform: none; }
}

/* Sfogliabile */
.g8-book { position: fixed; inset: 0; z-index: 2000; }
.g8-book[hidden] { display: none; }
.g8-book__ui { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr; color: #fff; }
.g8-book__bar { display: flex; align-items: center; gap: 18px; padding: 16px 22px; position: relative; z-index: 2; }
.g8-book__title { font-size: 17px; }
.g8-book__pages { color: rgba(255,255,255,.6); font-size: 14px; font-variant-numeric: tabular-nums; }
.g8-book__dl { margin-left: auto; color: #fff; font-size: 14px; }
.g8-book__close { position: static; }
.g8-book__stage { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 10px 30px; min-height: 0; }
.g8-book__book { position: relative; perspective: 2600px; transition: transform .8s var(--ease); }
.g8-book__msg { color: rgba(255,255,255,.75); text-align: center; }
.g8-leaf { position: absolute; top: 0; left: 50%; width: 50%; height: 100%; transform-origin: 0 50%; transform-style: preserve-3d; transition: transform 1s cubic-bezier(.645,.045,.355,1); cursor: pointer; }
.g8-leaf.is-flipped { transform: rotateY(-180deg); }
.g8-leaf__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #fff; overflow: hidden; }
.g8-leaf__face img { width: 100%; height: 100%; object-fit: contain; display: block; }
.g8-leaf__face--front { border-radius: 0 6px 6px 0; box-shadow: inset 18px 0 30px -18px rgba(0,0,0,.35); }
.g8-leaf__face--back { transform: rotateY(180deg); border-radius: 6px 0 0 6px; box-shadow: inset -18px 0 30px -18px rgba(0,0,0,.35); }
.g8-book.is-single .g8-leaf { left: 0; width: 100%; }
.g8-book.is-single .g8-leaf.is-flipped { opacity: 0; pointer-events: none; transition: transform 1s cubic-bezier(.645,.045,.355,1), opacity .2s .8s; }
.g8-book__nav {
	width: 48px; height: 48px; border-radius: 50%; border: 0; flex: none;
	background: rgba(255,255,255,.14); color: #fff; font-size: 30px; line-height: 1; cursor: pointer;
	transition: background .2s, opacity .2s;
}
.g8-book__nav:hover { background: rgba(255,255,255,.28); }
.g8-book__nav:disabled { opacity: .2; cursor: default; }
.g8-spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: #fff; animation: g8-spin .8s linear infinite; margin: 0 auto 14px; }
@keyframes g8-spin { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
	.g8-portfolio__grid { grid-template-columns: 1fr; }
	.g8-standee { position: relative; top: 0; max-width: 340px; margin: 0 auto; }
	.g8-magic { --size: 190px; }
}

/* ==========================================================================
   CONTATTI — biglietto/tavolo da biliardo 3D
   ========================================================================== */
.g8-contacts__head .g8-lead { margin-inline: auto; }
.g8-card-scene {
	--w: min(760px, 90vw); --h: calc(var(--w) * .56); --rail: calc(var(--h) * .085); --d: 34px; --leg: calc(var(--h) * .34);
	position: relative; display: grid; place-items: center;
	padding: 40px 0 calc(var(--leg) * .55 + 60px);
	perspective: 1700px; perspective-origin: 50% 20%;
	margin-bottom: 30px;
}
.g8-card {
	position: relative; width: var(--w); height: var(--h);
	transform-style: preserve-3d;
	transform: rotateX(var(--rx, 26deg)) rotateY(var(--ry, 0deg)) rotateZ(var(--rz, 0deg));
	will-change: transform;
}
.g8-card__top {
	position: absolute; inset: 0; border-radius: 10px;
	background:
		repeating-linear-gradient(92deg, rgba(255,255,255,.04) 0 2px, transparent 2px 7px),
		linear-gradient(135deg, #6b3a1f 0%, #4a2412 40%, #5c2f17 60%, #3a1a0b 100%);
	box-shadow: inset 0 2px 0 rgba(255,255,255,.18), inset 0 -3px 6px rgba(0,0,0,.5);
	transform-style: preserve-3d;
}
.g8-card__felt {
	position: absolute; inset: var(--rail); border-radius: 8px; overflow: hidden;
	background:
		radial-gradient(120% 120% at 50% 40%, #1f8a55 0%, #13703f 55%, #0b5530 100%);
	box-shadow: inset 0 0 0 4px #0f6338, inset 0 8px 18px rgba(0,0,0,.45), inset 0 -4px 10px rgba(0,0,0,.25);
	transform-style: preserve-3d;
}
.g8-card__felt::after { /* trama del panno */
	content: ""; position: absolute; inset: 0; opacity: .18; pointer-events: none;
	background-image: radial-gradient(rgba(0,0,0,.6) 1px, transparent 1px);
	background-size: 3px 3px;
}
.g8-card__diamonds {
	position: absolute; inset: calc(var(--rail) * .42); pointer-events: none;
	background:
		radial-gradient(circle, #f3e6c8 0 2px, transparent 2.5px) 0 0 / 25% 100% repeat-x,
		radial-gradient(circle, #f3e6c8 0 2px, transparent 2.5px) 0 0 / 100% 25% repeat-y;
	background-position: 12.5% 0, 0 12.5%;
	-webkit-mask: linear-gradient(#000 0 0) top / 100% 6px no-repeat, linear-gradient(#000 0 0) bottom / 100% 6px no-repeat;
	mask: linear-gradient(#000 0 0) top / 100% 6px no-repeat, linear-gradient(#000 0 0) bottom / 100% 6px no-repeat;
	opacity: .9;
}
.g8-pocket { position: absolute; width: calc(var(--rail) * 1.15); height: calc(var(--rail) * 1.15); border-radius: 50%; background: radial-gradient(circle at 50% 55%, #000 55%, #1b1b1b 70%, #2b2b2b 100%); z-index: 2; box-shadow: 0 0 0 3px rgba(0,0,0,.25); }
.g8-pocket--tl { left: calc(var(--rail) * .35); top: calc(var(--rail) * .35); }
.g8-pocket--tr { right: calc(var(--rail) * .35); top: calc(var(--rail) * .35); }
.g8-pocket--bl { left: calc(var(--rail) * .35); bottom: calc(var(--rail) * .35); }
.g8-pocket--br { right: calc(var(--rail) * .35); bottom: calc(var(--rail) * .35); }
.g8-pocket--tm { left: 50%; top: calc(var(--rail) * .12); transform: translateX(-50%); }
.g8-pocket--bm { left: 50%; bottom: calc(var(--rail) * .12); transform: translateX(-50%); }

.g8-card__text { position: absolute; inset: 9% 9% 9% 9%; color: #f4fbf6; display: flex; flex-direction: column; justify-content: center; transform: translateZ(1px); text-shadow: 0 1px 2px rgba(0,0,0,.35); z-index: 1; }
.g8-card__name { font-size: clamp(22px, 4.4vw, 40px); font-weight: 700; letter-spacing: -.035em; line-height: 1; margin: 0 0 4px; }
.g8-card__role { margin: 0 0 clamp(10px, 2.4vw, 22px); opacity: .8; font-size: clamp(12px, 1.8vw, 17px); }
.g8-card__list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2px, .8vw, 8px); font-size: clamp(11px, 1.7vw, 16px); }
.g8-card__list li { display: flex; gap: 12px; align-items: baseline; }
.g8-card__list span { min-width: 5.5em; text-transform: uppercase; letter-spacing: .12em; font-size: .68em; opacity: .65; }
.g8-card__list a, .g8-card__list em { color: #fff; font-style: normal; font-weight: 500; }
.g8-card__list a:hover { text-decoration: underline; }
.g8-card__ball { position: absolute; border-radius: 50%; width: calc(var(--h) * .11); height: calc(var(--h) * .11); box-shadow: 4px 6px 6px rgba(0,0,0,.35); transform: translateZ(2px); }
.g8-card__ball--8 { right: 16%; top: 30%; background: radial-gradient(circle at 35% 30%, #666 0%, #111 45%, #000 100%); display: grid; place-items: center; }
.g8-card__ball--8 i { width: 46%; height: 46%; border-radius: 50%; background: #fff; color: #000; font-style: normal; font-weight: 800; font-size: calc(var(--h) * .035); display: grid; place-items: center; }
.g8-card__ball--cue { right: 30%; bottom: 22%; background: radial-gradient(circle at 35% 30%, #fff 0%, #f1efe6 50%, #cfcabb 100%); }
.g8-card__glare {
	position: absolute; inset: 0; border-radius: inherit; pointer-events: none; mix-blend-mode: soft-light;
	background: radial-gradient(60% 80% at var(--gx, 30%) var(--gy, 20%), rgba(255,255,255,.55), transparent 60%);
}
.g8-card__side { position: absolute; background: linear-gradient(180deg, #4a2412, #2a1207); }
.g8-card__side--front { left: 0; top: 100%; width: 100%; height: var(--d); transform-origin: top; transform: rotateX(-90deg); border-radius: 0 0 6px 6px; background: linear-gradient(180deg, #5a2c15, #2d1408); }
.g8-card__side--back { left: 0; bottom: 100%; width: 100%; height: var(--d); transform-origin: bottom; transform: rotateX(90deg); }
.g8-card__side--left { right: 100%; top: 0; width: var(--d); height: 100%; transform-origin: right; transform: rotateY(-90deg); background: linear-gradient(90deg, #2a1207, #4a2412); }
.g8-card__side--right { left: 100%; top: 0; width: var(--d); height: 100%; transform-origin: left; transform: rotateY(90deg); background: linear-gradient(90deg, #4a2412, #2a1207); }
.g8-card__leg { position: absolute; width: 7%; height: var(--leg); transform-origin: top; background: linear-gradient(90deg, #2a1207, #5a2c15 45%, #2a1207); border-radius: 0 0 10px 10px; }
.g8-card__leg--1 { left: 6%; top: 90%; transform: translateZ(calc(var(--d) * -1)) rotateX(-90deg); }
.g8-card__leg--2 { right: 6%; top: 90%; transform: translateZ(calc(var(--d) * -1)) rotateX(-90deg); }
.g8-card__leg--3 { left: 6%; top: 8%; transform: translateZ(calc(var(--d) * -1)) rotateX(-90deg); filter: brightness(.6); }
.g8-card__leg--4 { right: 6%; top: 8%; transform: translateZ(calc(var(--d) * -1)) rotateX(-90deg); filter: brightness(.6); }
.g8-card-floor { position: absolute; left: 50%; bottom: 24px; width: calc(var(--w) * .95); height: 60px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.22), transparent); filter: blur(6px); pointer-events: none; }

/* ==========================================================================
   WOOCOMMERCE (carrello, checkout, account, prodotto)
   ========================================================================== */
.g8-woo .woocommerce-notices-wrapper:empty { display: none; }
.g8-woo .woocommerce-message, .g8-woo .woocommerce-info, .g8-woo .woocommerce-error,
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	border: 0 !important; border-radius: 16px; background: var(--soft) !important; color: var(--fg) !important; padding: 16px 20px 16px 50px !important; list-style: none;
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--fg) !important; }
.woocommerce-error { background: #fff1f0 !important; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt,
.wc-block-components-button:not(.is-link) {
	background: var(--black) !important; color: #fff !important; border-radius: 999px !important;
	padding: 12px 24px !important; font-weight: 500 !important; border: 0 !important; transition: transform .2s, box-shadow .2s;
}
.woocommerce a.button:hover, .woocommerce button.button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,.15); }
.woocommerce input.input-text, .woocommerce textarea, .woocommerce select, .woocommerce form .form-row input.input-text,
.wc-block-components-text-input input {
	border: 1px solid var(--line) !important; border-radius: 12px !important; padding: 12px 14px !important; font: inherit; background: #fff;
}
.woocommerce input.input-text:focus { outline: none; border-color: var(--accent) !important; box-shadow: 0 0 0 4px rgba(0,113,227,.15); }
.woocommerce table.shop_table { border-radius: 20px; border-color: var(--line); overflow: hidden; }
.woocommerce div.product .product_title { font-size: clamp(32px, 4vw, 52px); letter-spacing: -.04em; line-height: 1.05; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--fg); font-size: 24px; }
.woocommerce div.product div.images img { border-radius: 28px; background: var(--soft); }
.woocommerce span.onsale { background: var(--black); }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 10px 0; border-bottom: 1px solid var(--soft); color: var(--fg); }
.g8-thanks-ball { font-size: 20px; background: var(--soft); border-radius: 18px; padding: 18px 22px; }
.g8-page-title { text-align: center; }

/* ==========================================================================
   404 + misc
   ========================================================================== */
.g8-404 { display: grid; place-items: center; }
.g8-entry { margin-bottom: 60px; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.g8-intro { display: none !important; }
}
