/* GhostGuard: stile della vetrina. Colori e font da theme.json. */
:root {
	--gg-fondo: var(--wp--preset--color--base, #131416);
	--gg-carta: var(--wp--preset--color--surface, #1c1e21);
	--gg-carta-2: var(--wp--preset--color--surface-2, #26292d);
	--gg-testo: var(--wp--preset--color--text, #eceef0);
	--gg-tenue: var(--wp--preset--color--muted, #a6abb2);
	--gg-accento: var(--wp--preset--color--primary, #ffc531);
	--gg-linea: rgba(255, 255, 255, 0.09);
	--gg-raggio: 16px;
}

body { background: var(--gg-fondo); color: var(--gg-testo); }
.gg-main { margin: 0; }
.gg-main > * { margin-block: 0; }
.gg-wrap { max-width: 1160px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 32px); }
.gg-stretto { max-width: 820px; }
.gg-accento { color: var(--gg-accento); }

/* Bottoni */
.gg-btn { display: inline-flex; align-items: center; gap: .45rem; border-radius: 999px; padding: .85em 1.5em; font-weight: 800; text-decoration: none; line-height: 1.1; transition: transform .15s ease, background-color .15s ease, color .15s ease; }
.gg-btn--main { background: var(--gg-accento); color: #1a1300; }
.gg-btn--main:hover, .gg-btn--main:focus-visible { background: #ffd768; color: #1a1300; }
.gg-btn--ghost { border: 1px solid var(--gg-linea); color: var(--gg-testo); }
.gg-btn--ghost:hover, .gg-btn--ghost:focus-visible { border-color: var(--gg-testo); color: #fff; }
.gg-btn--sm { padding: .6em 1.1em; font-size: .9rem; }
.gg-btn:active { transform: scale(.97); }
.gg-btn:focus-visible, .gg-nav a:focus-visible, .gg-domanda summary:focus-visible { outline: 2px solid var(--gg-accento); outline-offset: 3px; }

/* Testata */
.gg-header { position: sticky; top: 0; z-index: 20; background: rgba(19, 20, 22, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--gg-linea); }
.gg-header__in { max-width: 1160px; margin: 0 auto; padding: .75rem clamp(16px, 4vw, 32px); display: flex; align-items: center; gap: 1.5rem; }
.gg-brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: #fff; }
.gg-brand__name { font-family: var(--wp--preset--font-family--display); font-weight: 800; letter-spacing: .06em; font-size: 1.05rem; color: #fff; }
.gg-brand__name span { color: var(--gg-accento); }
.gg-nav { display: flex; gap: 1.3rem; margin-left: auto; }
.gg-nav a { color: var(--gg-tenue); text-decoration: none; font-size: .93rem; }
.gg-nav a:hover { color: #fff; }
.gg-header__azioni { display: flex; gap: .5rem; }
@media (max-width: 900px) { .gg-nav { display: none; } .gg-header__azioni { margin-left: auto; } }
@media (max-width: 520px) { .gg-header__cta { display: none; } }

/* Apertura */
.gg-hero { position: relative; overflow: hidden; padding: clamp(4rem, 12vw, 8.5rem) 0 clamp(3.5rem, 9vw, 6rem); background:
	radial-gradient(60% 70% at 85% 10%, rgba(255, 197, 49, .18), transparent 70%),
	radial-gradient(45% 55% at 5% 90%, rgba(255, 77, 94, .10), transparent 70%); }
.gg-hero__in { max-width: 640px; }
.gg-occhiello { color: var(--gg-accento); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; margin: 0 0 1rem; }
.gg-hero__titolo { font-size: clamp(2.4rem, 6.5vw, 4.6rem); line-height: 1.04; margin: 0 0 1.3rem; }
.gg-hero__testo { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--gg-tenue); max-width: 680px; margin: 0 0 2rem; }
.gg-azioni { display: flex; flex-wrap: wrap; gap: .75rem; }
.gg-hero__punti { list-style: none; padding: 0; margin: 2.2rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; color: var(--gg-tenue); font-size: .93rem; }
.gg-hero__punti li::before { content: ""; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--gg-accento); margin-right: .55rem; vertical-align: middle; }

/* Sezioni */
.gg-sezione { padding: clamp(3.5rem, 9vw, 6rem) 0; }
.gg-sezione--scura { background: var(--gg-carta); border-block: 1px solid var(--gg-linea); }
.gg-sezione h2, .gg-chiusura h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 1rem; }
.gg-intro { color: var(--gg-tenue); max-width: 680px; margin: 0 0 2rem; }
.gg-grande { font-size: clamp(1.15rem, 2.2vw, 1.45rem); line-height: 1.5; color: #fff; margin: 0; }
.gg-due { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.gg-tre { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.gg-tre h3 { font-size: 1.15rem; margin: 0 0 .4rem; }
.gg-tre p { color: var(--gg-tenue); margin: 0; }

/* Passi */
.gg-passi { list-style: none; counter-reset: passo; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.gg-passi li { counter-increment: passo; background: var(--gg-carta-2); border: 1px solid var(--gg-linea); border-radius: var(--gg-raggio); padding: 1.3rem; color: var(--gg-tenue); }
.gg-passi li::before { content: counter(passo); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--gg-accento); color: #1a1300; font-weight: 800; margin-bottom: .8rem; }
.gg-passi strong { display: block; color: #fff; margin-bottom: .3rem; }

/* La squadra */
.gg-griglia { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.gg-carta { display: flex; flex-direction: column; background: var(--gg-carta); border: 1px solid var(--gg-linea); border-radius: var(--gg-raggio); padding: 1.2rem; transition: border-color .2s ease, transform .2s ease; }
.gg-carta:hover { border-color: rgba(255, 197, 49, .55); transform: translateY(-2px); }
.gg-carta h3 { font-size: 1.1rem; margin: 0 0 .5rem; color: #fff; }
.gg-carta p { margin: 0; color: var(--gg-tenue); font-size: .95rem; }

/* Elenchi */
.gg-lista { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.gg-lista li { position: relative; padding: .85rem 1rem .85rem 2.6rem; background: var(--gg-carta-2); border: 1px solid var(--gg-linea); border-radius: 12px; }
.gg-lista li::before { content: ""; position: absolute; left: 1rem; top: 1.15rem; width: .75rem; height: .4rem; border-left: 2px solid var(--gg-accento); border-bottom: 2px solid var(--gg-accento); transform: rotate(-45deg); }
.gg-lista--no li { background: var(--gg-carta); }
.gg-lista--no li::before { width: .8rem; height: 2px; border: 0; background: var(--gg-accento); top: 1.45rem; transform: none; }

/* Domande */
.gg-domanda { border-bottom: 1px solid var(--gg-linea); padding: 1rem 0; }
.gg-domanda summary { cursor: pointer; font-weight: 700; color: #fff; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.gg-domanda summary::-webkit-details-marker { display: none; }
.gg-domanda summary::after { content: "+"; color: var(--gg-accento); font-weight: 800; transition: transform .2s ease; }
.gg-domanda[open] summary::after { transform: rotate(45deg); }
.gg-domanda p { color: var(--gg-tenue); margin: .7rem 0 0; }

/* Chiusura */
.gg-chiusura { padding: clamp(3.5rem, 9vw, 6rem) 0; text-align: center; background: radial-gradient(60% 80% at 50% 100%, rgba(255, 197, 49, .16), transparent 70%); }
.gg-chiusura p { color: var(--gg-tenue); margin: 0 0 1.6rem; }

/* Piè di pagina */
.gg-footer { border-top: 1px solid var(--gg-linea); padding: 2.5rem 0; }
.gg-footer__in { max-width: 1160px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 32px); display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
.gg-footer__brand { max-width: 560px; }
.gg-footer__brand p { color: var(--gg-tenue); font-size: .88rem; margin: .8rem 0 0; }
.gg-footer__brand p a { color: var(--gg-testo); }
.gg-footer__nav { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; align-items: center; }
.gg-footer__nav a { color: var(--gg-tenue); text-decoration: none; font-size: .9rem; }
.gg-footer__nav a:hover { color: #fff; }



/* Apertura con la scena del cacciatore (stile degli eroi di PressKeep e ScaleSquad) */
.gg-hero__griglia { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; }
@media (max-width: 960px) { .gg-hero__griglia { grid-template-columns: 1fr; } }
.gg-hero__titolo { font-size: clamp(2.2rem, 5vw, 3.9rem); }
.gg-scena { position: relative; margin: 0; width: 100%; container-type: inline-size; }
.gg-scena__camera { position: relative; aspect-ratio: 1100 / 790; }
.gg-scena__palco { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gg-scena__pezzo { position: absolute; }
.gg-scena__robo { left: 27cqw; top: 6cqw; width: 47cqw; }
.gg-robot { display: block; width: 100%; height: auto; overflow: visible; }
.gg-fantasma { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 1.6cqw rgba(255, 77, 94, .55)); }
.gg-scena__preso { left: 80cqw; top: 9cqw; width: 11cqw; text-align: center; }
.gg-scena__preso span { display: inline-block; margin-top: .6cqw; padding: .3cqw 1cqw; border-radius: 2cqw; background: rgba(255, 77, 94, .18); border: 1px solid rgba(255, 77, 94, .55); color: #ffb3bb; font-size: 1.4cqw; font-weight: 700; letter-spacing: .04em; }
.gg-scena__f2 { left: 91cqw; top: 32cqw; width: 7cqw; opacity: .85; }
.gg-scena__f3 { left: 84cqw; top: 47cqw; width: 5.5cqw; opacity: .6; }
.gg-scena__in { position: relative; border-radius: 2.2cqw; background: linear-gradient(160deg, rgba(40, 43, 47, .95), rgba(19, 20, 22, .95)); border: 1px solid rgba(255, 197, 49, .35); box-shadow: 0 2.4cqw 5cqw rgba(0, 0, 0, .5), 0 0 3cqw rgba(255, 197, 49, .1); color: #eceef0; font-size: 1.5cqw; line-height: 1.4; }
.gg-scena__rapporto { left: 0; top: 12cqw; width: 29cqw; z-index: 2; }
.gg-scena__rapporto .gg-scena__in { padding: 1.6cqw; }
.gg-scena__barra { display: flex; align-items: center; gap: .8cqw; padding-bottom: 1.1cqw; margin-bottom: 1.2cqw; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.gg-scena__barra img { width: 2.8cqw; height: 2.8cqw; flex: none; }
.gg-scena__barra b { font-family: var(--wp--preset--font-family--display); font-size: 1.6cqw; }
.gg-scena__barra i { margin-left: auto; font-style: normal; font-size: 1.1cqw; color: #ffd768; border: 1px solid rgba(255, 197, 49, .45); border-radius: 2cqw; padding: .2cqw .8cqw; }
.gg-scena__voci { list-style: none; margin: 0; padding: 0; display: grid; gap: .8cqw; }
.gg-scena__voci li { padding: .8cqw 1cqw .8cqw 2.4cqw; border-radius: 1.2cqw; background: rgba(255, 255, 255, .04); position: relative; font-size: 1.3cqw; color: #a6abb2; }
.gg-scena__voci li b { display: block; color: #fff; font-size: 1.35cqw; }
.gg-scena__voci li::before { content: ''; position: absolute; left: .9cqw; top: 1.3cqw; width: .9cqw; height: .9cqw; border-radius: 50%; }
.gg-scena__voci .ko::before { background: #ff4d5e; box-shadow: 0 0 .8cqw #ff4d5e; }
.gg-scena__voci .at::before { background: #ffc531; box-shadow: 0 0 .8cqw #ffc531; }
.gg-scena__voci .ok::before { background: #4ade80; }
/* Il nome del cacciatore sul piedistallo (15/11/2026, Stefano: «Decon», da decontamination). */
.gg-scena__nome { left: 36cqw; top: 61.2cqw; width: 28cqw; z-index: 3; display: flex; justify-content: center; }
.gg-scena__targa { display: inline-flex; align-items: center; padding: .9cqw 2.6cqw; border-radius: 4cqw; background: linear-gradient(160deg, rgba(40, 43, 47, .96), rgba(14, 15, 17, .96)); border: 1px solid rgba(255, 197, 49, .6); box-shadow: 0 0 2.6cqw rgba(255, 197, 49, .3), inset 0 1px 0 rgba(255, 255, 255, .08); }
.gg-scena__targa b { font-weight: 800; font-size: 2cqw; letter-spacing: .14em; text-transform: uppercase; color: #ffc531; white-space: nowrap; }
.gg-scena__pillola { left: 3cqw; top: 56cqw; z-index: 2; }
.gg-scena__pillola .gg-scena__in { display: flex; align-items: center; gap: .9cqw; padding: 1cqw 1.8cqw 1cqw 1.1cqw; border-radius: 4cqw; font-weight: 700; font-size: 1.5cqw; white-space: nowrap; }
.gg-scena__pillola svg { width: 3cqw; height: 3cqw; flex: none; }
@media (prefers-reduced-motion: no-preference) {
	.gg-scena__in { animation: ggGalla 6.5s ease-in-out infinite; }
	.gg-scena__pillola .gg-scena__in { animation-delay: -2.4s; }
	.gg-scena__robo .gg-robot { animation: ggGalla 4.2s ease-in-out infinite; }
	.gg-robot__raggio { animation: ggRaggio 1.6s ease-in-out infinite; }
	.gg-robot__radar { transform-box: view-box; transform-origin: 0 -10px; animation: ggGira 2.4s linear infinite; }
	.gg-robot__luce, .gg-robot__spia { animation: ggLuce 1.8s ease-in-out infinite; }
	.gg-fantasma--preso { animation: ggPreso 1.6s ease-in-out infinite; }
	.gg-fantasma--scappa { animation: ggScappa 3.2s ease-in-out infinite; }
	.gg-fantasma--lento { animation-duration: 4.4s; animation-delay: -1.5s; }
	.gg-scena__neon { animation: ggLuce 3.6s ease-in-out infinite; }
}
@keyframes ggGalla { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.2cqw); } }
@keyframes ggRaggio { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@keyframes ggGira { to { transform: rotate(360deg); } }
@keyframes ggLuce { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes ggPreso { 0%, 100% { transform: translate(0, 0) rotate(-6deg) scale(1); } 50% { transform: translate(-.8cqw, .6cqw) rotate(5deg) scale(.92); } }
@keyframes ggScappa { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(1.2cqw, -1.6cqw); } }

/* GhostGuard: componenti in più */
.gg-carta--grande { padding: clamp(1.3rem, 3vw, 2rem); }
.gg-carta--grande h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.gg-carta--grande .gg-lista li { background: var(--gg-fondo); }
.gg-etichetta { color: var(--gg-accento); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .75rem; margin: 0 0 .3rem; }
.gg-numero { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 2px solid var(--gg-accento); color: var(--gg-accento); font-weight: 800; margin-bottom: .9rem; }
.gg-cifra { font-family: var(--wp--preset--font-family--display); font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; color: #fff; margin: 0 0 .4rem !important; line-height: 1.1; }
.gg-chip { list-style: none; padding: 0; margin: .8rem 0 1rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.gg-chip li { border: 1px solid var(--gg-linea); background: var(--gg-carta-2); border-radius: 999px; padding: .3rem .8rem; font-size: .88rem; color: var(--gg-testo); }
.gg-nota { color: var(--gg-tenue); font-size: .88rem; margin: 1rem 0 0; }
.gg-footer__fonti { font-size: .78rem !important; }
.gg-tre > div > h3 { font-size: 1.15rem; margin: 0 0 .4rem; }

@media (prefers-reduced-motion: reduce) {
	.gg-btn, .gg-carta, .gg-domanda summary::after { transition: none; }
	.gg-carta:hover { transform: none; }
}

/* Testata su telefono: il bottone resta su una riga */
.gg-header__azioni .gg-btn { white-space: nowrap; }
@media (max-width: 420px) { .gg-brand__name { font-size: .95rem; } .gg-header__in { gap: .75rem; } }

/* Giallo e rosso dell'allerta su grigio (Stefano 15/11): il rosso segna il pericolo */
:root { --gg-rosso: #ff4d5e; }
.gg-occhiello { color: var(--gg-rosso); }
.gg-hero { background:
	radial-gradient(55% 65% at 88% 10%, rgba(255, 197, 49, .16), transparent 70%),
	radial-gradient(45% 55% at 4% 92%, rgba(255, 77, 94, .14), transparent 70%); }
.gg-hero__punti li::before { background: var(--gg-rosso); }
.gg-header { border-bottom: 0; }
.gg-header::after, .gg-footer::before { content: ''; display: block; height: 4px; background: repeating-linear-gradient(-45deg, #ffc531 0 12px, #26292d 12px 24px); }
.gg-footer { border-top: 0; padding-top: 0; }
.gg-footer::before { margin-bottom: 2.5rem; }
.gg-etichetta { color: var(--gg-rosso); }
.gg-numero { border-color: var(--gg-rosso); color: var(--gg-rosso); }
.gg-carta:hover { border-color: rgba(255, 77, 94, .55); }
.gg-passi li::before { background: linear-gradient(135deg, #ffc531, #ff4d5e); }
.gg-lista--no li::before { background: var(--gg-rosso); }
.gg-chip li { background: #26292d; }
.gg-chiusura { background: radial-gradient(60% 80% at 50% 100%, rgba(255, 77, 94, .16), transparent 70%); }
.gg-accento { background: linear-gradient(100deg, #ffc531 30%, #ff7a45 75%, #ff4d5e); -webkit-background-clip: text; background-clip: text; color: transparent; }
