/* Playground theme — main.css
   Tokens: light di default, dark con body.pg-dark. Accent unit via --uc. */

:root {
	--bg: #ffffff; --ink: #1D1D1D; --body: #555555; --dim: #767676;
	--faint: #767676; --line: #e8e8e8; --panel: #fafafa;
	--navbg: rgba(255, 255, 255, 0.85);
	--govBody: #8f8f8f; --red: #ED1C24; --red-ink: #C8101A;
}
body.pg-dark {
	--bg: #141414; --ink: #ffffff; --body: #b0b0b0; --dim: #8a8a8a;
	--faint: #5f5f5f; --line: #2c2c2c; --panel: #1e1e1e;
	--navbg: rgba(20, 20, 20, 0.85); --govBody: #555555;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0; background: var(--bg); color: var(--ink);
	font-family: 'Instrument Sans', system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
	transition: background 0.45s, color 0.45s;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--red); }
::selection { background: var(--red); color: #fff; }
img { max-width: 100%; height: auto; display: block; }
p, .pg-prose { font-family: 'Newsreader', Georgia, serif; font-size: 1.06em; line-height: 1.72; letter-spacing: 0.002em; }
i { font-style: italic; color: var(--red); font-weight: 700; }
.pg-dot { font-style: normal; font-weight: inherit; }

/* Contenuto editor / the_content(): stessa scala tipografica del design */
.pg-prose > :first-child { margin-top: 0; }
.pg-prose p { font-family: 'Newsreader', Georgia, serif; font-size: 17.5px; line-height: 1.72; color: var(--body); margin: 0 0 18px; }
.pg-prose h2 { font-family: 'Instrument Sans', sans-serif; font-size: clamp(26px, 2.8vw, 34px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); margin: 48px 0 20px; }
.pg-prose h3 { font-family: 'Instrument Sans', sans-serif; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin: 30px 0 8px; }
.pg-prose ul, .pg-prose ol { margin: 0 0 18px; padding-left: 22px; }
.pg-prose li { font-family: 'Newsreader', Georgia, serif; font-size: 17.5px; line-height: 1.7; color: var(--body); margin: 0 0 10px; }
.pg-prose strong { color: var(--ink); font-weight: 600; }
.pg-prose a { color: var(--red); font-weight: 600; }
.pg-prose blockquote { font-family: 'Newsreader', Georgia, serif; font-style: italic; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.4; color: var(--ink); border-left: 4px solid var(--red); margin: 40px 0; padding: 4px 0 4px 28px; }

/* Pagine legali — layout a due colonne con indice laterale (come il design) */
.pg-legal-updated { margin-top: 30px; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: 0.04em; color: var(--dim); border: 1px solid var(--line); border-radius: 100px; padding: 9px 18px; }
.pg-legal-updated span { width: 7px; height: 7px; background: var(--red); border-radius: 100px; }
.pg-legal-updated strong { color: var(--ink); font-weight: 600; }
.pg-legal-section { border-top: none; padding-top: 40px; }
.pg-legal-grid { display: grid; grid-template-columns: 250px 1fr; gap: 80px; align-items: start; }
.pg-legal-toc { position: sticky; top: 96px; }
.pg-legal-toc-h { font-size: 12px; letter-spacing: 0.14em; font-weight: 700; color: var(--dim); margin-bottom: 20px; }
.pg-legal-toc a { display: flex; gap: 12px; padding: 9px 0; font-size: 14px; line-height: 1.4; color: var(--body); border-top: 1px solid var(--line); font-family: 'Instrument Sans', sans-serif; }
.pg-legal-toc a:first-of-type { border-top: none; }
.pg-legal-toc a:hover { color: var(--red); }
.pg-legal-toc a span { color: var(--red); font-weight: 700; font-variant-numeric: tabular-nums; flex: none; }
.pg-legal-body { max-width: 720px; }
@media (max-width: 900px) { .pg-legal-grid { grid-template-columns: 1fr; gap: 40px; } .pg-legal-toc { position: static; top: auto; } }

/* LAB Playground */
.pg-lab-acr { padding-top: 60px; }
.pg-lab-acr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.pg-lab-letter { padding: 44px 40px 8px 0; position: relative; }
.pg-lab-letter + .pg-lab-letter { border-left: 1px solid var(--line); padding-left: 40px; }
.pg-lab-glyph { display: block; font-size: clamp(90px, 11vw, 160px); font-weight: 600; letter-spacing: -0.05em; line-height: 0.85; color: var(--ink); }
.pg-lab-word { margin-top: 20px; font-family: 'Instrument Sans', sans-serif; font-size: clamp(19px, 1.9vw, 24px); font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.pg-lab-note { margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: var(--body); max-width: 300px; }
@media (max-width: 820px) { .pg-lab-acr-grid { grid-template-columns: 1fr; } .pg-lab-letter { padding: 34px 0 8px; border-top: 1px solid var(--line); } .pg-lab-letter + .pg-lab-letter { border-left: none; padding-left: 0; } .pg-lab-letter:first-child { border-top: none; } }

.pg-prod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 56px; }
.pg-prod-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; padding: 34px 34px 30px; color: var(--ink); transition: transform 0.4s cubic-bezier(0.2,0.7,0.2,1), box-shadow 0.4s, border-color 0.3s; }
.pg-prod-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--uc) 45%, var(--line)); box-shadow: 0 30px 70px -40px color-mix(in srgb, var(--uc) 80%, transparent); color: var(--ink); }
.pg-prod-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.pg-prod-status { display: inline-flex; align-items: center; gap: 8px; font-family: 'Instrument Sans', sans-serif; font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--body); }
.pg-prod-status span { width: 8px; height: 8px; border-radius: 100px; background: var(--uc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--uc) 20%, transparent); }
.pg-prod-unit { font-family: 'Instrument Sans', sans-serif; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.pg-prod-name { font-family: 'Instrument Sans', sans-serif; font-size: clamp(30px, 3.4vw, 44px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.pg-prod-desc { margin: 16px 0 0; font-size: 16px; line-height: 1.6; color: var(--body); flex: 1; }
.pg-prod-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.pg-prod-price { font-family: 'Instrument Sans', sans-serif; font-size: 15px; font-weight: 600; color: var(--ink); }
.pg-prod-go { font-family: 'Instrument Sans', sans-serif; font-size: 14.5px; font-weight: 600; color: var(--uc, var(--red)); }
.pg-prod-next { border-style: dashed; justify-content: flex-start; --uc: var(--red); }
.pg-prod-next:hover { transform: none; box-shadow: none; }
.pg-prod-next-mark { width: 48px; height: 48px; border-radius: 14px; background: var(--panel); display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--dim); margin-bottom: 22px; }
@media (max-width: 820px) { .pg-prod-grid { grid-template-columns: 1fr; } }

.pg-lab-princ { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; margin-top: 56px; }
.pg-lab-princ-item { position: relative; }
.pg-lab-princ-n { font-family: 'Instrument Sans', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; color: var(--red); }
.pg-lab-princ-item h3 { margin: 14px 0 8px; font-family: 'Instrument Sans', sans-serif; font-size: 21px; font-weight: 600; letter-spacing: -0.01em; color: var(--bg); }
.pg-lab-princ-item p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--govBody); }
@media (max-width: 820px) { .pg-lab-princ { grid-template-columns: 1fr; gap: 32px; } }

.pg-skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--bg); padding: 12px 20px; z-index: 100; }
.pg-skip:focus { left: 12px; top: 12px; }

/* Loghi: mostra quello giusto per tema */
.pg-logo-light { display: none; }
body.pg-dark .pg-logo-light { display: block; }
body.pg-dark .pg-logo-dark { display: none; }
.pg-footer .pg-logo-light { display: block; }
.pg-footer .pg-logo-dark { display: none; }
body.pg-dark .pg-footer .pg-logo-light { display: none; }
body.pg-dark .pg-footer .pg-logo-dark { display: block; }

/* ---------- Nav ---------- */
.pg-nav {
	position: fixed; top: 0; left: 0; right: 0; z-index: 50;
	display: flex; align-items: center; justify-content: space-between;
	padding: 0 36px; height: 64px; background: var(--navbg);
	backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.pg-nav-logo img { height: 17px; }
.pg-nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.pg-blog-badge { font-size: 10.5px; letter-spacing: 0.08em; font-weight: 700; color: var(--red); border: 1px solid var(--red); border-radius: 100px; padding: 2px 8px; margin-left: 8px; }
.pg-theme-toggle { background: none; border: 1px solid var(--line); border-radius: 100px; width: 34px; height: 34px; cursor: pointer; font-size: 16px; color: var(--ink); display: flex; align-items: center; justify-content: center; }
.pg-theme-toggle:hover { border-color: var(--red); color: var(--red); }
.pg-lang { display: inline-flex; align-items: center; font-size: 13px; text-transform: lowercase; }
.pg-lang-item { color: var(--faint); font-weight: 400; text-decoration: none; }
.pg-lang-item:hover { color: var(--red); }
.pg-lang-item.pg-lang-current { color: var(--ink); font-weight: 700; }
.pg-lang-item + .pg-lang-item { margin-left: 16px; position: relative; }
.pg-lang-item + .pg-lang-item::before { content: '/'; color: var(--faint); position: absolute; left: -10px; font-weight: 400; }
.pg-burger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.pg-burger span { width: 22px; height: 2px; background: var(--ink); display: block; }

/* Mega menu */
.pg-mega { position: fixed; top: 64px; left: 0; right: 0; z-index: 49; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1); }
.pg-mega-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); padding: 10px 36px 0; }
.pg-mega a { display: flex; flex-direction: column; padding: 30px 26px 34px; border-top: 3px solid var(--uc); color: var(--ink); }
.pg-mega a:hover { background: color-mix(in srgb, var(--uc) 7%, var(--bg)); }
.pg-mega-idx { font-size: 12px; letter-spacing: 0.1em; color: var(--dim); }
.pg-mega-name { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin-top: 12px; }
.pg-mega-name i { color: var(--uc); }
.pg-mega-field { font-size: 13.5px; color: var(--dim); margin-top: 6px; }
.pg-mega-essence { font-family: 'Newsreader', Georgia, serif; font-style: italic; font-size: 15px; line-height: 1.5; color: var(--body); margin-top: 16px; }
.pg-mega-cta { font-size: 13.5px; font-weight: 600; margin-top: 18px; color: var(--uc); }

/* ---------- Tipografia / layout ---------- */
.pg-container { max-width: 1200px; margin: 0 auto; padding-left: 36px; padding-right: 36px; }
.pg-container-narrow { max-width: 780px; margin: 0 auto; padding-left: 36px; padding-right: 36px; }
.pg-section { padding: 110px 0; border-top: 1px solid var(--line); }
.pg-section-dark { position: relative; overflow: hidden; background: var(--ink); color: var(--bg); transition: background 0.45s, color 0.45s; }
.pg-section-dark::before { content: ''; position: absolute; inset: -20% -10% auto -10%; height: 120%; background: radial-gradient(50% 60% at 20% 0%, rgba(237,28,36,.16), transparent 70%), radial-gradient(46% 60% at 85% 20%, rgba(46,98,240,.12), transparent 70%); pointer-events: none; z-index: 0; }
.pg-section-dark > * { position: relative; z-index: 1; }
.pg-section-dark a:not(.pg-btn) { color: var(--bg); }
.pg-eyebrow span { display: inline-block; }
.pg-eyebrow span::first-letter { text-transform: uppercase; }
.pg-h1::first-letter, .pg-h2::first-letter, .pg-h3::first-letter, .pg-step-name::first-letter, .pg-unit-title::first-letter { text-transform: uppercase; }
.pg-center { text-align: center; }
.pg-center .pg-lead, .pg-center .pg-quote { margin-left: auto; margin-right: auto; }
.pg-center .pg-eyebrow { justify-content: center; }
.pg-center-flex { justify-content: center; }
.pg-left { text-align: left; }
.pg-h1 { margin: 0.2em 0; font-size: clamp(48px, 7vw, 96px); font-weight: 600; letter-spacing: -0.05em; line-height: 0.95; }
.pg-h2 { margin: 0.3em 0; font-size: clamp(38px, 5vw, 68px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.02; }
.pg-h3 { margin: 0.3em 0 1em; font-size: clamp(28px, 3.4vw, 44px); font-weight: 600; letter-spacing: -0.03em; }
.pg-lead { font-size: 19px; line-height: 1.65; color: var(--body); max-width: 620px; }
.pg-section-dark .pg-lead, .pg-section-dark p { color: var(--govBody); }
.pg-eyebrow { display: flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: 0.14em; color: var(--dim); margin-bottom: 8px; font-family: 'Instrument Sans', sans-serif; }
.pg-idx { font-size: 13px; letter-spacing: 0.1em; color: var(--faint); }
.pg-label { font-size: 12px; letter-spacing: 0.14em; font-weight: 700; color: var(--red-ink); text-transform: uppercase; }
.pg-split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.pg-cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin: 40px 0; }
.pg-quote { font-family: 'Newsreader', Georgia, serif; font-style: italic; font-size: clamp(28px, 4vw, 48px); line-height: 1.3; max-width: 800px; margin: 26px auto 0; }
.pg-breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--dim); flex-wrap: wrap; margin-bottom: 40px; }
.pg-breadcrumb a { color: var(--dim); }
.pg-breadcrumb a:hover { color: var(--red); }

/* ---------- Bottoni ---------- */
.pg-btn { display: inline-block; padding: 15px 32px; border-radius: 100px; font-size: 15.5px; font-weight: 600; font-family: 'Instrument Sans', sans-serif; cursor: pointer; border: none; white-space: nowrap; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.pg-btn-red { background: var(--red-ink); color: #fff; }
.pg-btn-red:hover { background: var(--ink); color: var(--bg); }
.pg-btn-ink { background: var(--ink); color: var(--bg); }
.pg-btn-ink:hover { background: var(--red); color: #fff; }
.pg-btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.pg-btn-ghost:hover { border-color: var(--red); color: var(--red); }
.pg-section-dark .pg-btn-ghost { color: var(--bg); border-color: var(--govBody); }
.pg-section-dark .pg-btn-ghost:hover { border-color: var(--red); color: var(--red); }
.pg-btn-unit { background: color-mix(in srgb, var(--uc, var(--red)) 86%, #000); color: #fff; }
.pg-btn-unit:hover { background: var(--ink); color: var(--bg); }
.pg-btn-full { width: 100%; }
.pg-nav-cta { padding: 10px 22px; font-size: 14px; }

/* ---------- Hero ---------- */
.pg-hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 120px 24px 80px; }
/* CLS: riserva l'ingombro del blocco hero così non salta al caricamento di font/tubi */
.pg-hero-content { min-height: 62vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pg-hero-canvas { position: absolute; inset: 0; cursor: crosshair; }

/* Hero "tubi neon": dark, canvas WebGL + fallback CSS */
.pg-hero-tubes { background: #0b0b0d; color: #fff; cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"><circle cx="12" cy="12" r="6" fill="none" stroke="%23ED1C24" stroke-width="2"/><circle cx="12" cy="12" r="1.5" fill="%23ED1C24"/></svg>') 12 12, crosshair; }
/* Hero: nessuna sfumatura in basso (stacco netto verso il marquee) */
/* CTA principali con glow coerente sul dark */
.pg-hero-tubes .pg-btn-ink { background: var(--red-ink); color: #fff; box-shadow: 0 10px 34px rgba(237,28,36,.32); }
.pg-hero-tubes .pg-btn-ink:hover { background: #fff; color: var(--ink); }
.pg-hero-tubes .pg-btn-unit { box-shadow: 0 10px 34px color-mix(in srgb, var(--uc, var(--red)) 40%, transparent); }
.pg-hero-tubes .pg-hero-canvas { display: block; width: 100%; height: 100%; z-index: 1; touch-action: pan-y; }
/* Su touch i tubi non girano: il canvas non deve intercettare i gesti,
   altrimenti blocca lo scroll della pagina sull'area della splash. */
@media (hover: none), (pointer: coarse) {
	.pg-hero-tubes .pg-hero-canvas,
	.pg-tubes-fallback { pointer-events: none; touch-action: auto; }
	.pg-hero-tubes { touch-action: auto; cursor: auto; }
}
.pg-hero-tubes .pg-hero-content { z-index: 10; }
.pg-hero-tubes .pg-hero-title { color: #fff; text-shadow: 0 4px 40px rgba(0,0,0,.85); font-size: clamp(76px, 12.5vw, 184px); line-height: 0.92; }
.pg-hero-tubes .pg-hero-title i { color: #ED1C24; font-style: normal; }
.pg-hero-tubes .pg-hero-dot { color: #ED1C24; font-weight: inherit; }
.pg-hero-tubes .pg-eyebrow { color: rgba(255,255,255,.82); }
.pg-hero-tubes .pg-eyebrow i { color: #ED1C24; }
.pg-hero-tubes .pg-hero-sub { color: rgba(255,255,255,.78); text-shadow: 0 2px 20px rgba(0,0,0,.8); }
.pg-hero-tubes .pg-hero-hint { color: rgba(255,255,255,.6); background: rgba(255,255,255,.06); }
.pg-hero-tubes .pg-btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.pg-hero-tubes .pg-btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.pg-tubes-fallback { position: absolute; inset: 0; overflow: hidden; filter: blur(38px) saturate(1.25); z-index: 1; pointer-events: none; }
.pg-tubes-blob { position: absolute; border-radius: 50%; mix-blend-mode: screen; will-change: transform; }

/* Blocco "chi siamo": testo + media + 3 pilastri */
.pg-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.pg-about-grid .pg-lead { margin: 28px 0 0; max-width: 520px; }
.pg-about-grid .pg-btn { margin-top: 34px; }
.pg-about-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.pg-about-media img, .pg-about-ph, .pg-about-video { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4 / 3; }
.pg-about-ph { background: linear-gradient( 135deg, color-mix( in srgb, var(--red) 16%, var(--panel) ), var(--panel) ); }
.pg-pillars { display: grid; grid-template-columns: repeat( 3, 1fr ); gap: 36px; margin-top: 90px; border-top: 1px solid var(--line); padding-top: 48px; }
.pg-pillar-rule { display: block; width: 38px; height: 2px; background: var(--red); margin-bottom: 24px; }
.pg-pillar-name { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }

/* Chi siamo — visual rete */
.pg-about-net { position: relative; height: 56vh; min-height: 380px; border: 1px solid var(--line); overflow: hidden; }
.pg-about-net .pg-hero-canvas { cursor: crosshair; }
.pg-about-net-hint { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); font-size: 12.5px; letter-spacing: 0.08em; color: var(--dim); background: var(--navbg); backdrop-filter:blur(10px); border: 1px solid var(--line); border-radius: 100px; padding: 8px 18px; white-space: nowrap; max-width: calc(100% - 32px); }
@media (max-width: 600px) { .pg-about-net-hint { white-space: normal; text-align: center; border-radius: 16px; line-height: 1.4; } }
@media (max-width: 760px) { .pg-about-net { display: none; } }

/* Metodo — step */
.pg-step-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 70px; align-items: start; }
.pg-step-head { position: sticky; top: 100px; }
.pg-step-num { font-size: clamp(70px, 9vw, 130px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; color: var(--faint); }
.pg-step-name { margin: 14px 0 0; font-size: clamp(38px, 5vw, 64px); font-weight: 600; letter-spacing: -0.04em; }
.pg-step-name .pg-step-mark { color: var(--red); font-style: normal; }
.pg-step-body .pg-lead { max-width: none; }
.pg-step-points { list-style: none; margin: 34px 0 0; padding: 0; border-top: 1px solid var(--line); }
.pg-step-points li { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; font-family: 'Newsreader', Georgia, serif; font-size: 16.5px; line-height: 1.55; color: var(--body); }
.pg-slash { color: var(--red); font-weight: 700; font-style: italic; flex: none; }
.pg-cta-center .pg-h2 { text-align: center; }
.pg-cta-center .pg-lead, .pg-cta-center .pg-eyebrow { text-align: center; }
.pg-cta-center .pg-eyebrow { justify-content: center; }
.pg-cta-center .pg-hero-ctas { justify-content: center; }
@media (max-width: 900px) {
	.pg-step-grid { grid-template-columns: 1fr; gap: 32px; }
	.pg-step-head { position: static; }
}
.pg-pillar-name i { color: var(--red); }
.pg-pillar p { margin: 12px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--body); }
@media (max-width: 900px) {
	.pg-about-grid, .pg-pillars { grid-template-columns: 1fr; gap: 44px; }
	.pg-pillars { gap: 30px; }
}
.pg-hero-veil { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 66% 64% at 50% 52%, color-mix(in srgb, var(--bg) 96%, transparent) 0%, color-mix(in srgb, var(--bg) 85%, transparent) 52%, transparent 80%); }
.pg-hero-content { position: relative; text-align: center; pointer-events: none; }
.pg-hero-content .pg-eyebrow { justify-content: center; }
.pg-hero-content a, .pg-hero-content button { pointer-events: auto; }
.pg-hero-title { margin: 0; font-size: clamp(84px, 15vw, 225px); line-height: 0.88; font-weight: 600; letter-spacing: -0.055em; font-family: 'Instrument Sans', 'Instrument Sans Fallback', Arial, sans-serif; }
/* CLS: a capo deterministico. Le parole non si spezzano mai e sotto 900px il
   titolo va SEMPRE su due righe, indipendentemente dalle larghezze del font
   (fallback o reale) — quindi il numero di righe non cambia mai dopo il paint. */
.pg-hero-w { white-space: nowrap; display: inline-block; }
@media (max-width: 900px) {
	.pg-hero-title { display: flex; flex-direction: column; align-items: center; }
}
.pg-hero-title .pg-line { display: block; }
.pg-hero-title [data-letter] { display: inline-block; will-change: transform; opacity: 1; transform: none; }
/* Stato iniziale dell'animazione: applicato solo quando il JS è pronto,
   così al primo paint (LCP) il titolo è già visibile anche se il JS è lento/assente. */
.pg-anim-ready .pg-hero-title [data-letter] { opacity: 0; transform: translateY(20px); }
.pg-hero-sub { margin: 44px auto 0; max-width: 540px; font-size: 19px; line-height: 1.55; color: var(--body); }
.pg-hero-ctas { display: flex; gap: 14px; margin-top: 42px; flex-wrap: wrap; }
.pg-hero-content .pg-hero-ctas { justify-content: center; }
.pg-hero-hint { position: absolute; bottom: -60px; left: 50%; transform: translateX(-50%); font-size: 12.5px; letter-spacing: 0.08em; color: var(--dim); background: var(--navbg); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 100px; padding: 8px 18px; white-space: nowrap; }
.pg-page-hero { position: relative; padding: 170px 0 90px; overflow: hidden; }
.pg-page-hero .pg-hero-canvas { opacity: 0.4; }
/* Glow statico coerente con i tubi, tenue sotto ai contenuti */
.pg-page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(38% 60% at 16% 12%, color-mix(in srgb, var(--uc, var(--red)) 14%, transparent), transparent 70%), radial-gradient(34% 56% at 88% 8%, rgba(46,98,240,.08), transparent 70%); pointer-events: none; z-index: 0; }
.pg-page-hero .pg-container, .pg-page-hero .pg-container-narrow { z-index: 1; }
.pg-page-hero .pg-container, .pg-page-hero .pg-container-narrow { position: relative; }

/* Marquee */
.pg-marquee { background: #0b0b0d; color: #fff; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); overflow: hidden; padding: 22px 0; white-space: nowrap; }
body.pg-dark .pg-marquee { background: #0b0b0d; color: #fff; }
.pg-marquee-track { display: inline-flex; animation: pg-marquee 26s linear infinite; }
.pg-marquee-group { display: inline-flex; gap: 56px; padding-right: 56px; font-size: 22px; font-weight: 600; }
.pg-marquee-group em { color: rgba(255,255,255,.72); }
@keyframes pg-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 1024px) { .pg-marquee-track { animation-duration: 70s !important; } .pg-marquee-group { gap: 30px; padding-right: 30px; font-size: 16px; } }

/* ---------- Loop ---------- */
.pg-loop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 60px; border-top: 1px solid var(--line); }
/* Chi siamo — fascia numeri */
.pg-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.pg-stat { padding: 40px 24px 0 0; position: relative; }
.pg-stat::before { content: ''; position: absolute; top: -1px; left: 0; width: 38px; height: 2px; background: var(--red); }
.pg-stat-num { font-size: clamp(44px, 6vw, 80px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.pg-stat-label { margin-top: 14px; font-size: 15.5px; line-height: 1.5; color: var(--body); max-width: 220px; }
@media (max-width: 860px) { .pg-stats { grid-template-columns: 1fr 1fr; gap: 34px 0; } .pg-loop-3 { grid-template-columns: 1fr !important; } .pg-loop-3 .pg-loop-step { border-top: 1px solid var(--line); } }
/* Chi siamo — cosa ci rende diversi */
.pg-diffs { border-top: 1px solid var(--line); margin-top: 40px; }
.pg-diff { display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; align-items: baseline; padding: 34px 0; border-bottom: 1px solid var(--line); }
.pg-diff-no { font-size: clamp(20px, 2.4vw, 30px); font-weight: 600; letter-spacing: -0.02em; color: var(--dim); text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.pg-diff-yes { font-size: clamp(20px, 2.4vw, 30px); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
@media (max-width: 760px) { .pg-diff { grid-template-columns: 1fr; gap: 8px; } }
.pg-section-dark .pg-loop-grid { border-color: rgba(128, 128, 128, 0.3); }
.pg-loop-step { padding: 38px 28px 10px 0; position: relative; }
.pg-loop-step::before { content: ''; position: absolute; top: -1px; left: 0; width: 38px; height: 2px; background: var(--uc, var(--red)); }
.pg-loop-name { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; margin-top: 14px; }
.pg-loop-step p { font-size: 15.5px; line-height: 1.6; color: var(--body); max-width: 250px; }

/* ---------- Accordion unit ---------- */
.pg-accordion { border-top: 1px solid var(--line); margin-top: 50px; }
.pg-acc-item { border-bottom: 1px solid var(--line); }
.pg-acc-head { display: flex; align-items: baseline; gap: 28px; padding: 36px 0; cursor: pointer; width: 100%; background: none; border: none; text-align: left; font-family: inherit; color: var(--ink); }
.pg-acc-name { font-size: clamp(44px, 6.5vw, 88px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.pg-acc-name i { color: var(--uc); }
.pg-acc-field { margin-left: auto; font-size: 15px; color: var(--dim); }
.pg-acc-plus { font-size: 26px; color: var(--uc); transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); width: 28px; text-align: center; }
.pg-acc-item.open .pg-acc-plus { transform: rotate(45deg); }
.pg-acc-body { max-height: 0; overflow: hidden; transition: max-height 0.55s cubic-bezier(0.2, 0.7, 0.2, 1); display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 0 0 0 64px; }
.pg-acc-item.open .pg-acc-body { max-height: 420px; padding-bottom: 44px; }
.pg-acc-body .pg-btn { grid-column: 1 / -1; justify-self: start; }

/* ---------- Servizi unit ---------- */
.pg-services { margin-top: 50px; border-top: 1px solid var(--line); }
.pg-service { display: grid; grid-template-columns: 90px 1fr 1.4fr; gap: 30px; padding: 34px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.pg-service .pg-idx { color: var(--uc); font-weight: 700; }
.pg-service h3 { margin: 0; font-size: clamp(21px, 2vw, 26px); font-weight: 600; letter-spacing: -0.02em; font-family: 'Instrument Sans', sans-serif; }
.pg-service p { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--body); }
/* Servizi unit — card numerate (versione forte) */
.pg-unit-services .pg-svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 56px; }
.pg-svc-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; padding: 34px 32px 30px; background: var(--bg); transition: transform 0.4s cubic-bezier(0.2,0.7,0.2,1), box-shadow 0.4s, border-color 0.3s; }
.pg-svc-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--uc); transform: scaleX(0); transform-origin: left; transition: transform 0.4s cubic-bezier(0.2,0.7,0.2,1); }
.pg-svc-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--uc) 45%, var(--line)); box-shadow: 0 30px 70px -44px color-mix(in srgb, var(--uc) 85%, transparent); }
.pg-svc-card:hover::before { transform: scaleX(1); }
.pg-svc-n { display: block; font-family: 'Instrument Sans', sans-serif; font-size: clamp(38px, 4vw, 52px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: color-mix(in srgb, var(--uc) 30%, var(--faint)); }
.pg-svc-card:hover .pg-svc-n { color: var(--uc); }
.pg-svc-card h3 { margin: 22px 0 10px; font-family: 'Instrument Sans', sans-serif; font-size: clamp(20px, 2vw, 25px); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.pg-svc-card p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--body); }
.pg-svc-arrow { display: none; }
/* Varianti "flat" senza righe separatorie (pulse/cookiecontrol) */
.pg-flat.pg-diffs { border-top: none; }
.pg-flat .pg-diff { border-bottom: none; padding-top: 14px; padding-bottom: 14px; }
.pg-flat.pg-faq details { border-bottom: none; padding: 16px 0; }
.pg-flat.pg-faq details:first-child { border-top: none; padding-top: 0; }s, transform 0.3s; }
.pg-svc-card:hover .pg-svc-arrow { opacity: 1; transform: translateX(0); }
/* Chi siamo — discipline senza bordi (griglia a due colonne) */
.pg-services-plain { border-top: none; display: grid; grid-template-columns: 1fr 1fr; gap: 48px 56px; }
.pg-services-plain .pg-service { border-bottom: none; padding: 0; grid-template-columns: 1fr; gap: 10px; }
@media (max-width: 760px) { .pg-services-plain { grid-template-columns: 1fr; gap: 34px; } }
/* Landing prodotto — Pulse */
.pg-pulse-meta { margin-top: 22px; font-size: 13.5px; letter-spacing: 0.04em; color: var(--dim); }
.pg-pulse-shot { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: color-mix(in srgb, var(--uc) 8%, var(--panel)); }
.pg-pulse-shot-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--dim); font-size: 14px; font-family: 'Instrument Sans', sans-serif; text-align: center; padding: 0 24px; }
.pg-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.pg-plan { position: relative; border: 1px solid var(--line); border-radius: 16px; padding: 34px 30px; display: flex; flex-direction: column; }
.pg-plan-best { border-color: var(--uc); }
.pg-plan-badge { position: absolute; top: -12px; left: 30px; background: var(--uc); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 12px; border-radius: 100px; }
.pg-plan-name { font-size: 16px; font-weight: 600; letter-spacing: 0.02em; }
.pg-plan-price { font-size: clamp(38px, 4vw, 52px); font-weight: 600; letter-spacing: -0.03em; margin: 10px 0 4px; }
.pg-plan-price span { font-size: 15px; font-weight: 400; color: var(--dim); letter-spacing: 0; }
.pg-plan-desc { font-size: 15px; line-height: 1.55; color: var(--body); margin: 0 0 26px; flex: 1; }
.pg-pulse-note { margin-top: 24px; font-size: 13.5px; color: var(--dim); }
.pg-faq details { border-bottom: 1px solid var(--line); padding: 26px 0; }
.pg-faq details:first-child { border-top: 1px solid var(--line); }
.pg-faq summary { list-style: none; cursor: pointer; font-size: 18px; font-weight: 600; font-family: 'Instrument Sans', sans-serif; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq summary::after { content: '+'; color: var(--uc, var(--red)); font-size: 22px; font-weight: 400; }
.pg-faq details[open] summary::after { content: '\2013'; }
.pg-faq p { margin: 14px 0 0; font-size: 16px; line-height: 1.65; color: var(--body); }
/* Teaser prodotto nella business unit */
.pg-lab-product { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; border: 1px solid var(--line); border-left: 3px solid var(--uc, var(--red)); border-radius: 14px; padding: 32px 34px; margin-top: 60px; background: color-mix(in srgb, var(--uc) 5%, transparent); }
.pg-lab-product .pg-label { color: var(--uc, var(--red)); }
.pg-lab-product h3 { margin: 10px 0 6px; font-size: clamp(24px, 3vw, 34px); font-weight: 600; letter-spacing: -0.02em; }
.pg-lab-product p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--body); max-width: 560px; }
@media (max-width: 820px) { .pg-pricing { grid-template-columns: 1fr; } .pg-lab-product { grid-template-columns: 1fr; } }
/* Landing prodotto — CookieControl (install, dashboard, differenze) */
.pg-install { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.pg-install-card { border: 1px solid var(--line); border-radius: 16px; padding: 30px 28px; }
.pg-install-n { font-family: 'Instrument Sans', sans-serif; font-size: 14px; font-weight: 700; letter-spacing: 0.1em; }
.pg-install-card h3 { margin: 14px 0 8px; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; font-family: 'Instrument Sans', sans-serif; }
.pg-install-card p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--body); }
.pg-dash { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 52px; }
.pg-dash-card { border: 1px solid rgba(128,128,128,0.3); border-radius: 16px; padding: 30px; }
.pg-dash-card h3 { margin: 0 0 8px; font-size: 21px; font-weight: 600; letter-spacing: -0.01em; color: var(--bg); font-family: 'Instrument Sans', sans-serif; }
.pg-dash-card p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--govBody); }
.pg-diff-plain { font-size: clamp(18px, 2vw, 24px); font-weight: 500; letter-spacing: -0.01em; color: var(--body); font-family: 'Instrument Sans', sans-serif; }
@media (max-width: 820px) { .pg-install { grid-template-columns: 1fr; } .pg-dash { grid-template-columns: 1fr; } }
/* Metodo — manifesto "think outside the box" */
.pg-box { position: relative; }
.pg-box-lead { font-size: clamp(40px, 6.5vw, 88px); font-weight: 600; letter-spacing: -0.045em; line-height: 0.98; margin: 20px 0 40px; }
.pg-box-p { font-family: 'Newsreader', Georgia, serif; font-size: clamp(19px, 2.1vw, 24px); line-height: 1.62; color: var(--ink); max-width: 720px; margin: 0 0 26px; text-wrap: pretty; }
.pg-box-p em { font-style: italic; color: var(--red); }
.pg-box-close { font-family: 'Instrument Sans', sans-serif; font-size: clamp(22px, 2.6vw, 32px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; max-width: 720px; margin: 44px 0 0; padding-top: 40px; border-top: 1px solid var(--line); }
.pg-box-close em { font-style: italic; color: var(--red); }

/* Unit hero + card */
.pg-unit-hero { position: relative; padding: 150px 0 100px; overflow: hidden; }
.pg-unit-hero .pg-hero-canvas { opacity: 0.45; }
.pg-unit-hero .pg-container { position: relative; z-index: 10; }
/* Unit hero con tubi (dark, colore della unit) */
.pg-unit-hero.pg-hero-tubes { background: #0b0b0d; }
.pg-unit-hero.pg-hero-tubes .pg-unit-title { color: #fff; text-shadow: 0 4px 40px rgba(0,0,0,.85); }
.pg-unit-hero.pg-hero-tubes .pg-unit-essence,
.pg-unit-hero.pg-hero-tubes .pg-lead { color: rgba(255,255,255,.82); text-shadow: 0 2px 20px rgba(0,0,0,.8); }
.pg-unit-hero.pg-hero-tubes .pg-breadcrumb,
.pg-unit-hero.pg-hero-tubes .pg-breadcrumb a,
.pg-unit-hero.pg-hero-tubes .pg-idx,
.pg-unit-hero.pg-hero-tubes .pg-idx { color: rgba(255,255,255,.7); }
.pg-unit-hero.pg-hero-tubes .pg-unit-field { color: color-mix(in srgb, var(--uc) 55%, #fff); background: color-mix(in srgb, var(--uc) 22%, transparent); }
.pg-unit-hero.pg-hero-tubes .pg-btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.pg-unit-hero.pg-hero-tubes .pg-btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.pg-unit-badges { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.pg-unit-field { font-size: 12.5px; letter-spacing: 0.08em; font-weight: 700; color: var(--uc); background: color-mix(in srgb, var(--uc) 8%, var(--bg)); border-radius: 100px; padding: 5px 14px; }
.pg-unit-title { margin: 10px 0 0; font-size: clamp(72px, 13vw, 190px); line-height: 0.9; font-weight: 600; letter-spacing: -0.055em; }
.pg-unit-row .pg-h2 i { color: var(--uc); }
.pg-unit-title i { color: var(--uc); }
.pg-unit-essence { font-family: 'Newsreader', Georgia, serif; font-style: italic; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.35; max-width: 640px; margin: 26px 0 0; }
.pg-unit-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.pg-unit-card { border: 1px solid var(--line); border-top: 3px solid var(--uc); padding: 34px 30px; display: flex; flex-direction: column; }
.pg-unit-card:hover { background: color-mix(in srgb, var(--uc) 6%, var(--bg)); color: var(--ink); }
.pg-unit-card-name { font-size: 24px; font-weight: 600; }
.pg-unit-card-name i { color: var(--uc); }
.pg-unit-card-field { font-size: 13.5px; color: var(--dim); margin-top: 6px; }
.pg-unit-card-essence { font-family: 'Newsreader', Georgia, serif; font-style: italic; font-size: 15px; line-height: 1.5; color: var(--body); margin-top: 16px; }
.pg-unit-card-cta { font-size: 14px; font-weight: 600; margin-top: 22px; color: var(--uc); }
.pg-unit-row { border-top: 3px solid var(--uc); }

/* ---------- Blog ---------- */
.pg-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.pg-blog-list { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 28px; }
.pg-card-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.pg-card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--panel); }
.pg-card-featured .pg-card-img { aspect-ratio: 16 / 9; }
.pg-card-img img { width: 100%; height: 100%; object-fit: cover; }
/* CLS: forza dimensioni anche quando un plugin di lazy-load sostituisce src con un gif */
img.attachment-pg-card, img.size-pg-card { aspect-ratio: 16 / 10; width: 100%; height: auto; }
img.pg-about-video { aspect-ratio: 4 / 3; width: 100%; height: auto; }
.pg-card-ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, color-mix(in srgb, var(--uc) 18%, var(--panel)), var(--panel)); }
.pg-card-body { padding-top: 20px; }
.pg-card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--dim); }
.pg-cat { font-size: 12px; letter-spacing: 0.06em; font-weight: 700; color: #fff; background: color-mix(in srgb, var(--uc, var(--red)) 70%, #000); border-radius: 100px; padding: 5px 13px; }
/* Contrasto AA: scurisci i colori unit quando fanno da sfondo a testo piccolo bianco */
.pg-cat:hover { color: #fff; opacity: 0.85; }
.pg-tag { font-size: 12px; font-weight: 600; color: var(--dim); border: 1px solid var(--line); border-radius: 100px; padding: 4px 12px; }
.pg-card-title { margin: 16px 0 0; font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; font-family: 'Instrument Sans', sans-serif; }
.pg-card-featured .pg-card-title { font-size: clamp(28px, 3vw, 40px); }
.pg-card-excerpt { margin: 12px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--body); }
.pg-card-more { display: inline-block; margin-top: 16px; font-size: 14.5px; font-weight: 600; }
.pg-card { transition: transform 0.4s cubic-bezier(0.2,0.7,0.2,1); }
.pg-card:hover { transform: translateY(-4px); }
.pg-card .pg-card-img { transition: box-shadow 0.4s; }
.pg-card:hover .pg-card-img { box-shadow: 0 24px 60px -34px color-mix(in srgb, var(--uc, var(--red)) 70%, transparent); }
.pg-card:hover .pg-card-title { color: var(--red); }
.pg-card-title { transition: color 0.3s; }
.pg-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 70px; }
.pg-pagination .page-numbers { padding: 10px 16px; border: 1px solid var(--line); border-radius: 100px; font-size: 14px; }
.pg-pagination .current { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pg-term-others { margin-top: 80px; border-top: 1px solid var(--line); padding-top: 40px; }
.pg-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.pg-pill-link { font-size: 13.5px; font-weight: 600; border: 1px solid var(--line); border-radius: 100px; padding: 9px 18px; }
.pg-pill-link:hover { border-color: var(--uc, var(--red)); color: var(--uc, var(--red)); }

/* Articolo */
.pg-article-hero { padding: 150px 0 40px; }
.pg-article-author { margin-top: 20px; font-size: 14px; color: var(--dim); }
.pg-article-cover { margin-top: 50px; aspect-ratio: 21 / 9; overflow: hidden; }
.pg-article-cover img { width: 100%; height: 100%; object-fit: cover; }
.pg-tldr { border: 1px solid var(--line); border-left: 3px solid var(--uc, var(--red)); padding: 28px 32px; margin: 50px 0; }
.pg-tldr ul { margin: 14px 0 0; padding-left: 20px; }
.pg-tldr li { margin: 8px 0; font-family: 'Newsreader', Georgia, serif; line-height: 1.55; }
.pg-article-body { font-size: 18.5px; line-height: 1.75; }
/* Articolo: colonna di lettura un po' più larga (senza toccare le pagine legali) */
.pg-article .pg-container-narrow { max-width: 920px; }
.pg-article-body h2, .pg-article-body h3 { font-family: 'Instrument Sans', sans-serif; letter-spacing: -0.02em; margin-top: 1.8em; }
.pg-faq { margin: 70px 0; }
.pg-faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.pg-faq summary { font-weight: 600; font-size: 18px; cursor: pointer; font-family: 'Instrument Sans', sans-serif; }
.pg-faq p { color: var(--body); line-height: 1.65; }

/* ---------- Form ---------- */
.pg-contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start; }
.pg-form { background: var(--bg); border: 1px solid var(--line); padding: 48px 44px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.07); }
.pg-form-title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.pg-form-error { color: var(--red); font-size: 14.5px; }
.pg-form-need { border: none; margin: 32px 0 0; padding: 0; }
.pg-form-need legend { font-size: 12.5px; letter-spacing: 0.1em; font-weight: 700; color: var(--body); text-transform: uppercase; padding: 0; }
.pg-pill { position: relative; }
.pg-pill input { position: absolute; opacity: 0; pointer-events: none; }
.pg-pill span { display: inline-block; font-size: 13.5px; font-weight: 600; border-radius: 100px; padding: 9px 18px; border: 1px solid var(--line); color: var(--uc, var(--ink)); cursor: pointer; transition: all 0.25s; }
.pg-pill input:checked + span { background: var(--uc, var(--ink)); border-color: var(--uc, var(--ink)); color: var(--bg); }
.pg-pill input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.pg-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 30px; }
.pg-form input[type="text"], .pg-form input[type="email"], .pg-form textarea {
	width: 100%; border: none; border-bottom: 1px solid var(--line); padding: 16px 0;
	font-size: 16px; outline: none; background: none; color: var(--ink);
	font-family: 'Instrument Sans', sans-serif; margin-top: 6px; transition: border-color 0.25s;
}
.pg-form input:focus, .pg-form textarea:focus { border-bottom-color: var(--red); }
.pg-form textarea { resize: vertical; }
.pg-turnstile { margin-top: 18px; margin-bottom: 4px; min-height: 65px; }
.pg-turnstile iframe { border-radius: 10px; }
.pg-form-privacy { display: flex; gap: 12px; align-items: flex-start; margin-top: 26px; font-size: 13.5px; line-height: 1.55; color: var(--ink); cursor: pointer; font-family: 'Instrument Sans', sans-serif; }
.pg-form-privacy a { color: var(--red-ink); text-decoration: underline; font-weight: 600; }
.pg-form-privacy input { margin-top: 3px; accent-color: var(--red); width: 16px; height: 16px; flex: none; }
.pg-form .pg-btn { margin-top: 32px; }
.pg-form-thanks { font-size: clamp(24px, 3vw, 36px); font-weight: 600; letter-spacing: -0.03em; }
.pg-form-ok[hidden] { display: none; }
.pg-form-wrap { position: relative; }
.pg-form-ok[hidden] { display: none; }
.pg-form-ok { position: absolute; top: 0; left: 0; right: 0; z-index: 6; display: flex; flex-direction: column; gap: 6px; background: color-mix(in srgb, var(--red) 8%, var(--bg)); border: 1px solid color-mix(in srgb, var(--red) 32%, var(--line)); border-radius: 16px; padding: 26px 30px; box-shadow: 0 24px 60px -30px rgba(0,0,0,.3); animation: pgFormOk 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.pg-form-ok-title { font-size: clamp(21px, 2.4vw, 28px); font-weight: 600; letter-spacing: -0.03em; color: var(--ink); display: inline-flex; align-items: baseline; gap: 2px; }
.pg-form-ok-sub { font-size: 16px; color: var(--body); }
.pg-rocket { display: inline-block; will-change: transform, opacity; }
.pg-form-ok.is-launch .pg-rocket { animation: pgRocket 1.15s cubic-bezier(0.5, 0, 0.75, 0) forwards; }
@keyframes pgRocket {
  0%   { transform: translate(0,0) rotate(0deg); opacity: 1; }
  18%  { transform: translate(-4px,4px) rotate(-6deg); opacity: 1; }
  100% { transform: translate(560px,-620px) rotate(38deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .pg-form-ok.is-launch .pg-rocket { animation: none; } }
@keyframes pgFormOk { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.pg-hp { position: absolute !important; left: -9999px !important; }
.pg-contact-mail { display: inline-block; margin-top: 30px; font-size: 17px; font-weight: 600; }

/* ---------- Footer ---------- */
.pg-footer { position: relative; overflow: hidden; background: var(--ink); color: var(--bg); transition: background 0.45s, color 0.45s; }
.pg-footer::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 240px; background: radial-gradient(40% 100% at 12% 0%, rgba(237,28,36,.14), transparent 70%), radial-gradient(36% 100% at 60% 0%, rgba(156,46,232,.10), transparent 70%), radial-gradient(40% 100% at 92% 0%, rgba(0,160,92,.10), transparent 70%); pointer-events: none; }
.pg-footer-inner { position: relative; }
.pg-footer a { color: var(--govBody); }
.pg-footer a:hover { color: var(--red); }
.pg-footer-inner { max-width: 1200px; margin: 0 auto; padding: 90px 36px 0; }
.pg-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
.pg-footer-brand img { height: 16px; }
.pg-footer-brand p { font-size: 16px; line-height: 1.6; color: var(--govBody); max-width: 280px; }
.pg-footer-brand > a { color: var(--bg); font-weight: 600; }
.pg-footer-h { font-size: 12px; letter-spacing: 0.14em; font-weight: 700; color: var(--red); margin-bottom: 20px; }
.pg-footer nav a { display: block; margin: 12px 0; font-size: 15px; }
.pg-footer-unit { display: flex !important; align-items: center; gap: 10px; }
.pg-footer-unit span { width: 8px; height: 8px; background: var(--uc); flex: none; }
.pg-footer-unit:hover { color: var(--uc) !important; }
.pg-footer-ai { margin-top: 80px; border-top: 1px solid rgba(128, 128, 128, 0.3); padding: 44px 0; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.pg-footer-ai-title { font-size: 19px; font-weight: 600; }
.pg-footer-ai p { font-size: 14.5px; line-height: 1.6; color: var(--govBody); max-width: 420px; }
.pg-footer-ai-links { display: flex; gap: 10px; flex-wrap: wrap; }
.pg-footer-ai-links a { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(128, 128, 128, 0.35); border-radius: 100px; padding: 10px 20px; font-size: 14px; font-weight: 600; color: var(--bg); }
.pg-footer-ai-links a:hover { border-color: var(--red); color: var(--red); }
.pg-footer-legal { border-top: 1px solid rgba(128, 128, 128, 0.3); padding: 30px 0 36px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--govBody); }
.pg-footer-legal-links { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; }
@media (max-width: 600px) { .pg-footer-legal-links { gap: 10px 16px; font-size: 12.5px; } .pg-footer-payoff { flex-basis: 100%; } }
.pg-footer-payoff { font-weight: 600; color: var(--bg); }
.pg-blog-all { display: flex; justify-content: center; margin-top: 48px; }

/* ---------- Reveal / kinetic ---------- */
[data-pg-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 0.85s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1); }
[data-pg-reveal].pg-in { opacity: 1; transform: translateY(0); }
[data-pg-kinetic] .pg-w { display: inline-block; opacity: 0; transform: translateY(0.6em) rotate(2deg); transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); margin-right: 0.24em; }
[data-pg-kinetic].pg-in .pg-w { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
	[data-pg-reveal], [data-pg-kinetic] .pg-w { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.pg-nav { padding: 0 22px; }
	.pg-nav-links { display: none; position: fixed; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; padding: 24px 22px; gap: 18px; }
	.pg-nav-links.open { display: flex; }
	.pg-burger { display: flex; }
	.pg-mega { display: none; }
	.pg-container, .pg-container-narrow, .pg-footer-inner { padding-left: 22px; padding-right: 22px; }
	.pg-section { padding: 70px 0; }
	.pg-cols-2, .pg-contact-grid, .pg-blog-list, .pg-card-featured, .pg-footer-grid { grid-template-columns: 1fr; }
	.pg-card-grid, .pg-unit-cards { grid-template-columns: 1fr; }
	.pg-loop-grid { grid-template-columns: 1fr 1fr; }
	.pg-acc-head { gap: 14px; flex-wrap: wrap; }
	.pg-acc-body { grid-template-columns: 1fr; padding-left: 0; gap: 20px; }
	.pg-acc-item.open .pg-acc-body { max-height: 800px; }
	.pg-service { grid-template-columns: 1fr; gap: 10px; }
	.pg-form { padding: 34px 26px; }
	.pg-form-row { grid-template-columns: 1fr; gap: 6px; }
	.pg-hero { min-height: 88vh; }
	.pg-contact-grid { gap: 40px; }
}
