/**
 * Pagina "Dietro il Glitch" (about) — GlitchZone. Step 6b.
 *
 * Estratto BYTE-FEDELE dai selettori about-specifici dello statico v13
 * (glitchzone-statico/glitchzone_chi_siamo_v13.html, <style> 39-1016). Base, header,
 * footer, glitch-mode e GZ-ANIMS li dà già il tema (sempre-on): qui SOLO ciò che è
 * esclusivo dell'about. Enqueue condizionale `gz-about` su is_page_template
 * (inc/enqueue.php), dep gz-base. Firewall: si copia dallo statico, non si linka.
 *
 * 6b-1: keyframe dell'hero (mancanti sui file caricati su about) + hero + wrapper.
 *       Manifesto/storia/valori/business si aggiungono a 6b-2/6b-3.
 *
 * Colore: l'about non è né term né single → `--cat-color` prende il DEFAULT di
 * base.css (= var(--primary), verde), identico all'intento dello statico (:root v13).
 */

/* ── Keyframe dell'hero (byte-fedeli da v13 93-127; assenti su base/header/footer/
   glitch-mode/animations → vivono qui, file page-scoped caricato solo su about). ── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-10px); } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes intermittent-glitch {
    0%, 95% { text-shadow: 0 0 20px var(--cat-glow); transform: translate(0); }
    96% { text-shadow: 2px 0 var(--primary), -2px 0 var(--accent); transform: translate(-2px, 0); }
    97% { text-shadow: -2px 0 var(--primary), 2px 0 var(--accent); transform: translate(2px, 0); }
    98%, 100% { text-shadow: 0 0 20px var(--cat-glow); transform: translate(0); }
}
@keyframes soft-glitch {
    0% { clip-path: inset(0 0 0 0); transform: translate(0); filter: hue-rotate(0deg); }
    20% { clip-path: inset(20% 0 60% 0); transform: translate(-2px, 1px); }
    40% { clip-path: inset(60% 0 20% 0); transform: translate(2px, -1px); filter: hue-rotate(15deg); }
    60% { clip-path: inset(40% 0 40% 0); transform: translate(-2px, 0); }
    80% { clip-path: inset(0 0 0 0); transform: translate(1px, 0); filter: hue-rotate(-10deg); }
    100% { clip-path: inset(0 0 0 0); transform: translate(0); filter: hue-rotate(0deg); }
}
/* cursorBlink: cursore del typewriter del manifesto (6b-4); .cursor è creato dal JS. */
@keyframes cursorBlink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

/* ── Wrapper del <main> (≈ `main` dello statico v13: 800px, più stretto di .container). ── */
.about-page { max-width: 800px; margin: 0 auto; padding: 32px 24px; }

/* ── Hero Card (v13 177-245) ── */
.hero-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: var(--cat-color); box-shadow: 0 0 15px var(--cat-glow); z-index: 4;
}

.hero-card::after {
    content: ''; position: absolute; inset: 0;
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    z-index: 3; pointer-events: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-card:hover::after {
    border-color: var(--cat-color);
    box-shadow: inset 0 0 20px var(--cat-soft);   /* era rgba(0,255,136,.1) hardcoded → token (parità single) */
}
.hero-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px -10px rgba(0,0,0,0.6);   /* hover-lift = hero dei single (single-base.css) */
}

.hero-image {
    height: 160px;
    background: linear-gradient(135deg, #1a1a2e 0%, #1b2e1f 100%);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.hero-image::before {
    content: ''; position: absolute; inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.15) 2px, rgba(0, 0, 0, 0.15) 4px);
    pointer-events: none; z-index: 1;
}

.hero-icon-wrapper { position: relative; display: inline-block; z-index: 2; }
.hero-icon { font-size: 4rem; display: block; animation: float 3s ease-in-out infinite; transition: transform 0.3s ease; }
.hero-icon-wrapper::before {
    content: ''; position: absolute; inset: -12px; border: 1px dashed var(--cat-color); border-radius: 50%; opacity: 0; transition: all 0.5s ease; animation: spin 10s linear infinite;
}
.hero-card:hover .hero-icon-wrapper::before { opacity: 0.5; }
.hero-card:hover .hero-icon { animation: soft-glitch 0.5s linear; }

.hero-content { padding: 28px 24px; text-align: center; }

.hero-title {
    font-family: 'Space Mono', monospace; font-size: 1.8rem; font-weight: 700; line-height: 1.3; margin-bottom: 12px; color: var(--text-primary);
}
.hero-title .highlight {
    color: var(--cat-color);
    text-shadow: 0 0 20px var(--cat-glow);
    animation: intermittent-glitch 4s infinite;
}

.hero-subtitle { font-size: 1rem; color: var(--text-secondary); }

/* STATS */
.stats-row {
    display: flex; justify-content: center; gap: 32px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border);
}
.stat-item { text-align: center; }
.stat-value { font-family: 'Space Mono', monospace; font-size: 1.3rem; font-weight: 700; color: var(--cat-color); text-shadow: 0 0 10px var(--cat-glow); min-width: 50px; }
.stat-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* ── Manifesto (v13 248-274) ── */
/* DE-BOX 30 giu (punto 2 redesign about): il manifesto non è un box ma una DICHIARAZIONE.
   Via bordo/radius/gradiente/fondo → statement centrato + aria; una corta linea-accento sopra
   il titolo fa da "apertura" (non una scatola). */
.manifesto-box {
    margin: 56px 0;
    text-align: center;
    animation: fadeInUp 0.6s ease forwards 0.2s; opacity: 0;
}
.manifesto-box::before {
    content: ''; display: block; width: 40px; height: 3px; margin: 0 auto 22px;
    background: var(--cat-color); box-shadow: 0 0 12px var(--cat-glow);
}

.manifesto-title {
    font-family: 'Space Mono', monospace; font-size: 0.8rem; color: var(--cat-color); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; min-height: 1.2em;
}
.manifesto-text { font-size: 1.25rem; font-weight: 500; line-height: 1.7; color: white; min-height: 4em; }
.manifesto-text .accent { color: var(--accent); }
.cursor { color: var(--accent); font-style: normal; font-weight: 400; animation: cursorBlink 0.7s infinite; }

/* ── Chi Siamo / storia (v13 277-289) ── */
.content-section {
    margin-bottom: 56px;
    animation: fadeInUp 0.6s ease forwards 0.3s; opacity: 0;
}

.section-title {
    font-family: 'Space Mono', monospace; font-size: 0.9rem; color: var(--cat-color); margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
    text-shadow: 0 0 10px var(--cat-glow);
}
.section-title::before { content: '//'; color: var(--accent); }

.content-section p { color: var(--text-secondary); font-size: 1rem; margin-bottom: 12px; }
.content-section strong { color: white; }

/* ── Valori (v13 292-311, 487-493) ── */
.values-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 56px;   /* gap 12→24: aria al posto dei bordi */
    animation: fadeInUp 0.6s ease forwards 0.4s; opacity: 0;
}

/* DE-BOX 30 giu (punto 3 redesign about): i valori non sono card → icona + titolo + desc,
   niente fondo/bordo/radius/hover-lift. 3 pilastri puliti (come i servizi de-boxati del Business). */
.value-card {
    padding: 8px; text-align: center;
}
.value-title { font-family: 'Space Mono', monospace; font-size: 0.8rem; color: var(--cat-color); margin-bottom: 8px; }
.value-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }

/* Icona SVG del value-card: lo statico la disegnava con stroke=var(--cat-color) inline;
   il registro usa currentColor → il colore-sezione lo imposta qui (pattern icons.php). */
.value-icon-svg { display: flex; justify-content: center; margin: 0 auto 12px; color: var(--cat-color); }
.value-icon-svg svg { width: 30px; height: 30px; }

/* ── Business / media-kit (v13 316-454, 496-512, 527-550) ── */
.business-section {
    animation: fadeInUp 0.6s ease forwards 0.5s; opacity: 0;
}
/* DE-BOX 30 giu (punto 1 redesign about): via il box giallo 2px + pulse-border + radius + gradiente.
   La "zona business" la firmano l'header giallo, gli accenti, il callout warning e il CTA — non un box.
   L'aria dai valori sopra la dà già .values-grid (margin-bottom:56px). */
.business-box {
    padding: 0;
}
.business-header { text-align: center; margin-bottom: 24px; }
.business-title {
    font-family: 'Space Mono', monospace;
    font-size: 1.3rem;
    color: var(--yellow);
    text-shadow: 0 0 15px var(--yellow-glow);
    margin-bottom: 8px;
}
.business-subtitle { font-size: 0.95rem; color: var(--text-secondary); }

/* Reach Stats */
.reach-stats {
    display: flex; justify-content: center; gap: 32px; margin-bottom: 44px;   /* divisore → sola aria */
}
.reach-item { text-align: center; }
.reach-value {
    font-family: 'Space Mono', monospace; font-size: 1.2rem; font-weight: 700; color: var(--yellow); text-shadow: 0 0 10px var(--yellow-glow); min-width: 50px;
}
.reach-label { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }

/* Servizi */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
/* DE-BOX: i servizi non sono più card → icona + label, niente fondo/bordo/radius/hover-lift. */
.service-card {
    padding: 8px 12px; text-align: center;
}
.service-name { font-family: 'Space Mono', monospace; font-size: 0.7rem; color: var(--yellow); text-transform: uppercase; }

/* Warning box */
/* DE-BOX → callout giallo (come l'anti-pollo dei single): barra-accento + velo, spigoli vivi. */
.warning-box {
    background: color-mix(in srgb, var(--yellow) 5%, transparent);
    border: 0; border-left: 3px solid var(--yellow); border-radius: 0;
    padding: 18px 22px; margin: 44px 0;
}
.warning-header {
    font-family: 'Space Mono', monospace; font-size: 0.75rem; color: var(--yellow); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.warning-content p { color: var(--text-primary); font-size: 0.95rem; margin-bottom: 10px; line-height: 1.6; }
.warning-content p:last-child { margin-bottom: 0; }
.warning-content strong { color: var(--yellow); }
.warning-content .highlight-line { color: var(--accent); font-family: 'Space Mono', monospace; font-size: 0.85rem; }

/* CTA */
.business-cta { text-align: center; margin-top: 44px; }   /* divisore → sola aria */
.cta-text { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 16px; }
.cta-email {
    display: inline-block; background: var(--yellow); color: var(--background); padding: 14px 32px; border-radius: var(--radius-sm);
    font-family: 'Space Mono', monospace; font-weight: 700; font-size: 1rem; text-decoration: none; transition: all 0.3s ease; position: relative; overflow: hidden;
}
.cta-email::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent); transition: left 0.5s ease;
}
.cta-email:hover::before { left: 100%; }
.cta-email:hover { transform: translateY(-2px); box-shadow: 0 0 30px var(--yellow-glow); color: var(--background); text-shadow: none; }
.cta-note { font-family: 'Space Mono', monospace; font-size: 0.7rem; color: var(--text-muted); margin-top: 12px; }

/* Icone SVG del business box: lo statico aveva stroke=var(--yellow) inline → il
   registro usa currentColor, il giallo lo imposta il contesto qui. */
.business-icon-svg { display: flex; justify-content: center; margin: 0 auto 12px; color: var(--yellow); }
.business-icon-svg svg { width: 40px; height: 40px; }
.service-icon-svg { display: flex; justify-content: center; margin: 0 auto 8px; color: var(--yellow); }
.service-icon-svg svg { width: 24px; height: 24px; }
.warning-icon-svg { color: var(--yellow); }
.warning-icon-svg svg { width: 14px; height: 14px; }

/* ── Ponte Tech-Zone (cross-promo → sito serio): callout de-box BLU (#3b82f6 = brand TZ, NON la
   palette GZ → "porta all'altro sito"). Prima del disclaimer. Il bottone resta tondo (azione). ── */
/* Riga narrativa (30 giu): il ponte non è più un banner/CTA (stonava nel racconto) ma una frase
   centrata col link blu «Tech-Zone →» → registro silenzioso della pagina. Identità blu = il link. */
.techzone-bridge {
    margin: 80px 0; text-align: center;                        /* aria sopra/sotto: stacca Valori (verde) e Business (giallo) */
}
.tzb-line {
    max-width: 520px; margin: 0 auto;
    font-size: 1rem; color: var(--text-secondary); line-height: 1.6;
}
.tzb-link {
    font-family: 'Space Mono', monospace; font-weight: 700; color: #3b82f6;
    text-decoration: none; white-space: nowrap; transition: text-shadow 0.2s ease;
}
.tzb-link:hover { text-shadow: 0 0 10px rgba(59, 130, 246, 0.5); text-decoration: underline; }

/* ── Responsive (v13 553-564) ── */
@media (max-width: 768px) {
    .stats-row { flex-wrap: wrap; gap: 20px; }
    .hero-title { font-size: 1.5rem; }
    .values-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
}
