/*
  WGT-01 — sito
  Tre colori: nero, verde del marchio, bianco. Tra una sezione e l'altra, bande di dither.
  Tre caratteri che vengono dagli algoritmi:
    Doto        — lettere fatte di punti (halftone, dot matrix)        → titoli
    Handjet     — lettere fatte di elementi che cambiano forma (Pattern) → parole in movimento
    Martian Mono — monospazio (ASCII, interfaccia del pannello)          → testo e controlli
*/

:root {
  --ink: #000000;
  --paper: #ffffff;
  --green: #0d9e5a;
  --green-hi: #35b978;
  --green-deep: #087744;

  --f-dot: "Doto", "Martian Mono", ui-monospace, monospace;
  --f-el: "Handjet", "Arial Narrow", sans-serif;
  --f-mono: "Martian Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --gutter: clamp(16px, 3.4vw, 48px);
  --max: 1440px;
  --line: 1px;

  --t-xs: 0.6875rem;
  --t-s: 0.8125rem;
  --t-m: 0.9375rem;
  --t-l: 1.125rem;
  --t-xl: clamp(1.375rem, 2.4vw, 1.875rem);
  --t-h: clamp(2.75rem, 7.4vw, 7.5rem);
  --t-giant: clamp(5rem, 22vw, 22rem);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font-family: var(--f-mono); font-size: var(--t-m); line-height: 1.62;
  font-variation-settings: "wdth" 87.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--green); color: var(--ink); }
:focus-visible { outline: 2px solid var(--green-hi); outline-offset: 3px; }
[data-c="green"] :focus-visible, [data-c="white"] :focus-visible { outline-color: var(--ink); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 10px 14px; background: var(--paper); color: var(--ink); }
.skip:focus { top: 12px; }

/* ---------- etichette tra parentesi, come nel pannello ---------- */
.lbl { font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: 0.02em; font-variation-settings: "wdth" 100; margin: 0; }
.lbl--muted { opacity: 0.7; }

/* ---------- testata: due finestre nere che galleggiano ---------- */
.site-header {
  position: fixed; inset: 12px var(--gutter) auto; z-index: 50;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; background: var(--ink); color: var(--paper); border: var(--line) solid rgba(255,255,255,.28); }
.wordmark {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 8px; text-decoration: none;
  font-family: var(--f-dot); font-weight: 900; font-size: 1.25rem; line-height: 1; white-space: nowrap;
}
.wordmark__sym { height: 28px; width: auto; color: var(--green); flex: none; } /* misura minima: 28 px = 2 px per cella */
.site-nav { display: flex; }
.site-nav a {
  display: block; padding: 9px 14px; text-decoration: none; font-size: var(--t-s);
  border-left: var(--line) solid rgba(255,255,255,.28);
}
.site-nav a:first-child { border-left: 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--green); color: var(--ink); }
@media (max-width: 640px) {
  .site-nav a { padding: 8px 7px; font-size: var(--t-xs); white-space: nowrap; }
  .wordmark { padding-right: 9px; }
  .site-nav .nav-optional { display: none; }
}

/* ---------- colori delle sezioni ---------- */
.tone { position: relative; }
.tone[data-c="black"] { background: var(--ink); color: var(--paper); }
.tone[data-c="green"] { background: var(--green); color: var(--ink); }
.tone[data-c="white"] { background: var(--paper); color: var(--ink); }
.band { height: 64px; width: 100%; image-rendering: pixelated; image-rendering: crisp-edges; background-size: auto 100%; background-repeat: repeat-x; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 140px) 0; }
.prose { max-width: 58ch; }
.prose p { margin: 0 0 1em; }
.small { font-size: var(--t-s); line-height: 1.55; }
.muted { opacity: 0.72; }

.h-dot {
  margin: 0; font-family: var(--f-dot); font-weight: 800; font-size: var(--t-h);
  line-height: 0.92; letter-spacing: -0.01em; text-wrap: balance;
}
.h-el {
  margin: 0; font-family: var(--f-el); font-weight: 700; font-size: var(--t-h); line-height: 0.86;
  font-variation-settings: "ELSH" var(--elsh, 2), "ELGR" var(--elgr, 1);
  transition: font-variation-settings .6s;
}

/* ---------- pulsanti e controlli ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.7em; min-height: 46px; padding: 0 18px;
  border: var(--line) solid currentColor; background: transparent; text-decoration: none; cursor: pointer;
  font-family: var(--f-mono); font-size: var(--t-s); font-weight: 600; font-variation-settings: "wdth" 100;
}
.btn::before { content: ""; width: 8px; height: 8px; background: currentColor; flex: none; }
.btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
[data-c="white"] .btn:hover, [data-c="green"] .btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--go { background: var(--green); border-color: var(--green); color: var(--ink); }
.btn--go:hover { background: var(--green-hi); border-color: var(--green-hi); color: var(--ink); }
[data-c="green"] .btn--go { background: var(--ink); color: var(--green); border-color: var(--ink); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.chip {
  min-height: 36px; padding: 0 12px; border: var(--line) solid currentColor; background: transparent; cursor: pointer;
  font-family: var(--f-mono); font-size: var(--t-s); font-variation-settings: "wdth" 87.5;
}
.chip[aria-pressed="true"] { background: var(--green); color: var(--ink); border-color: var(--green); }
[data-c="green"] .chip[aria-pressed="true"] { background: var(--ink); color: var(--green); border-color: var(--ink); }
[data-c="white"] .chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

input[type="range"] { width: 100%; accent-color: var(--green-hi); height: 26px; }
[data-c="green"] input[type="range"], [data-c="white"] input[type="range"] { accent-color: var(--ink); }

/* ---------- pannello: la finestra del plugin ---------- */
.panel { border: var(--line) solid currentColor; background: inherit; }
.panel__bar, .win__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 5px 6px 5px 10px;
  background: currentColor; font-size: var(--t-xs); font-variation-settings: "wdth" 100; user-select: none;
}
.panel__bar > span, .win__bar > span:first-child { color: var(--bar-ink, var(--paper)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-c="black"] .panel__bar > span, [data-c="black"] .win__bar > span:first-child { --bar-ink: var(--ink); }
.panel.is-min > :not(.panel__bar), .win.is-min > :not(.win__bar) { display: none !important; }
.win__ctrl { display: flex; gap: 4px; flex: none; }
.win__ctrl button {
  width: 22px; height: 18px; padding: 0; line-height: 1; cursor: pointer; font-size: 12px;
  border: var(--line) solid var(--bar-ink, var(--paper)); background: transparent; color: var(--bar-ink, var(--paper));
}
[data-c="black"] .win__ctrl button { --bar-ink: var(--ink); }
.panel__body { padding: 14px; display: grid; gap: 14px; }
.panel__row { display: grid; gap: 6px; }
.panel__row > span, .panel__row > label { font-size: var(--t-xs); opacity: 0.8; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- HERO ---------- */
.hero { min-height: 100vh; overflow: hidden; display: grid; align-items: end; }
@supports (min-height: 100svh) { .hero { min-height: 100svh; } }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__inner {
  position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto;
  padding: 120px var(--gutter) calc(120px + clamp(20px, 4vh, 48px));
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: end;
  pointer-events: none;
}
.hero__inner a, .hero__inner button, .hero__inner input { pointer-events: auto; }
.hero h1 {
  margin: 0 0 0.08em -0.04em; font-family: var(--f-dot); font-weight: 900;
  font-size: clamp(3.4rem, 11.5vw, 11.5rem); line-height: 0.82; letter-spacing: -0.02em;
}
.hero__lead { max-width: 34ch; margin: 0 0 22px; font-size: var(--t-l); line-height: 1.5; }
.hero__lead span { background: var(--ink); box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 0 .2em; }
.hero__panel { background: var(--ink); color: var(--paper); border-color: rgba(255,255,255,.5); }
.hero__panel .panel__bar { border-color: rgba(255,255,255,.5); }
.hero__meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.hero .lbl span, .hero p.lbl { background: var(--ink); }
.hero .lbl { width: fit-content; }
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; padding-top: 58vh; }
  .hero__panel { max-width: 340px; }
}

@property --elsh { syntax: "<number>"; inherits: true; initial-value: 2; }
@keyframes elsh { 0% { --elsh: 2; } 100% { --elsh: 16; } }

/* ---------- GALLERIA ---------- */
.g-head { display: flex; align-items: flex-end; gap: 0 clamp(16px, 3vw, 40px); flex-wrap: wrap; margin-bottom: 36px; }
.g-head .num {
  font-family: var(--f-el); font-weight: 800; font-size: clamp(8rem, 26vw, 26rem); line-height: 0.74;
  color: var(--green-hi); font-variation-settings: "ELSH" var(--elsh, 2); animation: elsh 12s steps(14) infinite;
}
.g-head .h-dot { padding-bottom: 0.08em; }
.g-head .prose { flex: 1 1 260px; padding-bottom: 8px; }
.gallery { border-color: rgba(255,255,255,.6); }
.gallery .panel__bar { border-color: rgba(255,255,255,.6); }
.gallery__body { display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.style-list { list-style: none; margin: 0; padding: 0; border-right: var(--line) solid rgba(255,255,255,.6); }
.style-list button {
  width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 10px 12px; background: none; border: 0; border-bottom: var(--line) solid rgba(255,255,255,.18);
  text-align: left; cursor: pointer; font-size: var(--t-s);
}
.style-list button:hover { background: rgba(255,255,255,.08); }
.style-list button[aria-selected="true"] { background: var(--green); color: var(--ink); font-weight: 700; }
.svg-tag { font-size: var(--t-xs); opacity: 0.8; }
.stage { padding: 12px; }
.stage__frame { position: relative; aspect-ratio: 3 / 2; background: #111; overflow: hidden; touch-action: pan-y; user-select: none; }
.stage__frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage__before { clip-path: inset(0 calc(100% - var(--split, 50%)) 0 0); }
.stage__handle { position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 44px; margin-left: -22px; cursor: ew-resize; background: none; border: 0; padding: 0; }
.stage__handle::before { content: ""; position: absolute; left: 21px; top: 0; bottom: 0; width: 2px; background: var(--green-hi); }
.stage__handle::after { content: "◂▸"; position: absolute; left: 4px; top: 50%; transform: translateY(-50%); width: 36px; padding: 4px 0; background: var(--green-hi); color: var(--ink); font-size: 12px; text-align: center; }
.stage__labels { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; padding: 8px; pointer-events: none; }
.stage__labels span { background: var(--ink); color: var(--paper); padding: 2px 6px; font-size: var(--t-xs); }
.stage__foot { display: grid; grid-template-columns: 1fr auto; gap: 14px 24px; align-items: start; margin-top: 12px; }
.stage__note { margin: 0; max-width: 56ch; font-size: var(--t-s); }
.photos { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.photos button { width: 46px; height: 46px; padding: 0; border: 2px solid transparent; background: #111; cursor: pointer; }
.photos button[aria-pressed="true"] { border-color: var(--green-hi); }
.photos img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
@media (max-width: 900px) {
  .gallery__body { grid-template-columns: 1fr; }
  .style-list { display: flex; flex-wrap: wrap; border-right: 0; border-bottom: var(--line) solid rgba(255,255,255,.6); }
  .style-list li { flex: 0 0 auto; }
  .style-list button { width: auto; border: 0; border-right: var(--line) solid rgba(255,255,255,.18); }
  .style-list .svg-tag { display: none; }
  .stage__foot { grid-template-columns: 1fr; }
  .photos { justify-content: flex-start; }
}

/* ---------- SVG ---------- */
.svg-sec__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .25em; margin: 0; }
.svg-sec__title .a { font-family: var(--f-dot); font-weight: 900; font-size: clamp(3.5rem, 12vw, 12rem); line-height: .85; color: var(--green); }
[data-c="green"] .svg-sec__title .a { color: var(--ink); }
.svg-sec__title .arrow { font-size: clamp(2rem, 6vw, 6rem); line-height: 1; }
.svg-sec__title .b {
  font-family: var(--f-mono); font-weight: 200; font-size: clamp(3rem, 10vw, 10rem); line-height: .9;
  font-variation-settings: "wdth" 75; color: transparent; -webkit-text-stroke: 1.5px var(--paper);
}
@media (max-width: 900px) { .svg-sec__title .b { -webkit-text-stroke-width: 1px; } }

/* ---------- TYPE ---------- */
.type-sec { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto 1fr; gap: 28px var(--gutter); align-items: start; }
/* titolo e testo a sinistra, manifesto a destra allineato in alto con il titolo */
.type-sec > .type-head { grid-column: 1; grid-row: 1; }
.type-sec > .prose { grid-column: 1; grid-row: 2; }
.type-sec > .poster { grid-column: 2; grid-row: 1 / span 2; width: 100%; }
.type-head { display: flex; flex-direction: column; font-size: clamp(2.5rem, 5.6vw, 6.25rem); }
.type-head .h-dot { font-size: inherit; transition: font-size .45s cubic-bezier(.2,.7,.2,1); }
.type-head .h-dot span { display: block; }
.archetypes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.archetypes .chip { text-align: left; }
.poster { --p-veil: 0 0 0; position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #0b1016; color: var(--p-ink, #fff); container-type: inline-size; margin: 0; }
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1), object-position .6s; }
.poster__veil { position: absolute; inset: 0; transition: background .5s; }
.poster__text { position: absolute; inset: 7cqw; display: grid; transition: all .5s cubic-bezier(.2,.7,.2,1); font-family: var(--f-mono); }
.poster__text > * { margin: 0; transition: all .5s cubic-bezier(.2,.7,.2,1); }
.p-kicker { font-size: 3.2cqw; }
.p-title { font-family: var(--f-dot); font-size: 14cqw; line-height: .86; font-weight: 900; }
.p-info { font-size: 3.2cqw; line-height: 1.4; }
.p-cta { font-size: 3.2cqw; font-weight: 700; justify-self: start; padding: .5em .8em; background: var(--p-accent, var(--green)); color: var(--p-on-accent, #000); }
.poster__grid { position: absolute; inset: 7cqw; pointer-events: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 2.4cqw; opacity: 0; transition: opacity .3s; }
.poster__grid span { background: color-mix(in srgb, var(--p-accent, #35b978) 16%, transparent); border-inline: 1px solid color-mix(in srgb, var(--p-accent, #35b978) 75%, transparent); }
.poster.show-grid .poster__grid { opacity: 1; }
.poster[data-a="asse"] .poster__text { align-content: end; justify-items: center; text-align: center; gap: 2.6cqw; }
.poster[data-a="asse"] .p-title { font-size: 11.5cqw; }
.poster[data-a="asse"] .p-cta { justify-self: center; }
.poster[data-a="asse"] .poster__veil { background: linear-gradient(to top, rgb(var(--p-veil) / .88), rgb(var(--p-veil) / 0) 62%); }
.poster[data-a="asse"] img { object-position: 50% 20%; }
.poster[data-a="bandiera"] .poster__text { align-content: start; justify-items: start; gap: 2.4cqw; grid-template-rows: auto auto 1fr auto; }
.poster[data-a="bandiera"] .p-info { align-self: end; }
.poster[data-a="bandiera"] .poster__veil { background: linear-gradient(to bottom, rgb(var(--p-veil) / .85), rgb(var(--p-veil) / 0) 55%), linear-gradient(to top, rgb(var(--p-veil) / .7), rgb(var(--p-veil) / 0) 35%); }
.poster[data-a="bandiera"] img { object-position: 60% 50%; }
.poster[data-a="gigante"] .poster__text { align-content: center; gap: 2cqw; }
.poster[data-a="gigante"] .p-title { font-size: 22cqw; line-height: .8; }
.poster[data-a="gigante"] .poster__veil { background: rgb(var(--p-veil) / .55); }
.poster[data-a="gigante"] img { transform: scale(1.12); }
.poster[data-a="colonna"] .poster__text { left: 52cqw; align-content: space-between; gap: 2cqw; }
.poster[data-a="colonna"] .p-title { font-size: 9.5cqw; }
.poster[data-a="colonna"] .poster__veil { background: linear-gradient(to right, rgb(var(--p-veil) / 0) 46%, rgb(var(--p-veil) / .92) 46%); }
.poster[data-a="colonna"] img { object-position: 25% 50%; }
.poster[data-a="calma"] .poster__text { align-content: start; gap: 2.2cqw; right: 30cqw; }
.poster[data-a="calma"] .p-title { font-size: 12cqw; }
.poster[data-a="calma"] .poster__veil { background: radial-gradient(120% 70% at 10% 0%, rgb(var(--p-veil) / .85), rgb(var(--p-veil) / 0) 60%); }
.poster[data-a="calma"] img { object-position: 80% 70%; }
.poster[data-a="striscia"] .poster__text { inset: auto 0 9cqw 0; padding: 4cqw 7cqw; background: var(--p-accent, var(--green)); color: var(--p-on-accent, #000); grid-template-columns: 1fr auto; align-items: end; gap: 1cqw 4cqw; }
.poster[data-a="striscia"] .p-title { font-size: 10.5cqw; grid-column: 1 / -1; }
.poster[data-a="striscia"] .p-kicker { grid-column: 1 / -1; order: -1; }
.poster[data-a="striscia"] .p-cta { background: var(--p-on-accent, #000); color: var(--p-accent, var(--green)); }
.poster[data-a="striscia"] .poster__veil { background: none; }
@media (max-width: 900px) { .type-sec { grid-template-columns: 1fr; } .type-sec > * { grid-column: 1 !important; grid-row: auto !important; } .poster { max-width: 480px; } }

/* ---------- PROVA (invito) ---------- */
.try { display: grid; place-items: center; }
/* una finestra al centro della sezione; dentro, una selezione "a formiche in marcia" come in Photoshop */
.try__win { width: min(100%, 980px); }
.try__body { padding: clamp(14px, 2.4vw, 28px); background: var(--paper); }
.try__status { flex-wrap: wrap; }
.try__zone { --ant: var(--ink); position: relative; width: 100%; padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 64px); text-align: center; display: grid; justify-items: center; gap: 18px;
  background:
    linear-gradient(90deg, var(--ant) 50%, transparent 0) top / 16px 1px repeat-x,
    linear-gradient(90deg, var(--ant) 50%, transparent 0) bottom / 16px 1px repeat-x,
    linear-gradient(0deg, var(--ant) 50%, transparent 0) left / 1px 16px repeat-y,
    linear-gradient(0deg, var(--ant) 50%, transparent 0) right / 1px 16px repeat-y;
  animation: ants 1s linear infinite; }
@keyframes ants { to { background-position: 16px 0, -16px 100%, 0 -16px, 100% 16px; } }
@media (prefers-reduced-motion: reduce) { .try__zone { animation: none; } }
.try__zone .h-dot { font-size: clamp(2.6rem, 8vw, 8rem); line-height: .8; margin: 0; max-width: 100%; text-align: center; }
.try__zone > * { max-width: 100%; }
.try__zone .prose { max-width: 46ch; margin: 0; }
.try__zone .actions { justify-content: center; }
.try__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin: 0; }

/* ---------- DOWNLOAD ---------- */
.dl .h-dot { font-size: clamp(3.5rem, 12.5vw, 12.5rem); line-height: .82; margin-bottom: .4em; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: var(--line) solid currentColor; }
.steps li { padding: 14px 20px 22px 0; }
.steps li + li { border-left: var(--line) solid currentColor; padding-left: 20px; }
.steps h3 { margin: 10px 0 6px; font-family: var(--f-el); font-weight: 700; font-size: clamp(2rem, 3.4vw, 3rem); line-height: .95; }
.steps p { margin: 0; max-width: 34ch; font-size: var(--t-s); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .steps li + li { border-left: 0; border-top: var(--line) solid currentColor; padding-left: 0; } }
.status { display: inline-flex; gap: 10px; align-items: center; padding: 8px 12px; margin-bottom: 26px; border: var(--line) dashed currentColor; font-size: var(--t-s); }
.status::before { content: ""; width: 8px; height: 8px; background: currentColor; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.req { display: grid; grid-template-columns: max-content 1fr; gap: 6px 28px; margin: 0; font-size: var(--t-s); }
.req dt { font-weight: 700; }
.req dd { margin: 0; }

/* ---------- PIÈ DI PAGINA ---------- */
.site-footer { padding: 48px 0 36px; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--gutter); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; gap: 10px; font-size: var(--t-s); }

.site-footer__home { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 6px 18px; margin-top: 28px; padding-top: 18px; border-top: var(--line) solid rgba(255,255,255,.28); text-decoration: none; color: var(--paper); }
.site-footer__url { font-family: var(--f-dot); font-weight: 900; font-size: clamp(2.2rem, 7.5vw, 7rem); line-height: .85; overflow-wrap: anywhere; }
.site-footer__arrow { font-size: clamp(1.6rem, 4vw, 3.5rem); line-height: 1; color: var(--green-hi); transition: transform .25s; }
.site-footer__home:hover .site-footer__url, .site-footer__home:focus-visible .site-footer__url { color: var(--green-hi); }
.site-footer__home:hover .site-footer__arrow { transform: translate(6px, -6px); }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } .site-footer__home { grid-template-columns: 1fr auto; } .site-footer__home .lbl { grid-column: 1 / -1; } }

/* ---------- PAGINE INTERNE ---------- */
.page-hero { padding: 120px 0 40px; }
.page-hero h1 { margin: 0; font-family: var(--f-dot); font-weight: 900; font-size: clamp(2rem, 8.4vw, 9rem); line-height: .86; overflow-wrap: anywhere; }
.page-hero p { margin: 18px 0 0; font-size: var(--t-l); max-width: 50ch; opacity: .85; }
.page-hero p.lbl { margin: 0 0 14px; font-size: var(--t-xs); }

/* prova */
.tool { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: var(--gutter); align-items: start; }
.tool .panel { border-color: rgba(255,255,255,.5); }
.tool .panel__bar { border-color: rgba(255,255,255,.5); }
.drop { position: relative; display: grid; place-items: center; text-align: center; min-height: 120px; padding: 16px; border: var(--line) dashed rgba(255,255,255,.6); cursor: pointer; font-size: var(--t-s); }
.drop.is-over { border-color: var(--green-hi); background: rgba(53,185,120,.12); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.range-row { display: grid; grid-template-columns: 1fr 3.5ch; gap: 10px; align-items: center; font-variant-numeric: tabular-nums; font-size: var(--t-s); }
fieldset.panel__row { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.panel__row legend { padding: 0; margin-bottom: 6px; font-size: var(--t-xs); opacity: .8; }
.result { position: relative; background: #111; min-height: 320px; display: grid; place-items: center; border: var(--line) solid rgba(255,255,255,.5); }
.result canvas { max-height: 80vh; width: auto; height: auto; }
.privacy { border-left: 3px solid var(--green-hi); padding: 2px 0 2px 12px; margin: 0; }

/* documentazione */
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); padding-top: 48px; padding-bottom: 96px; align-items: start; }
.doc-nav { position: sticky; top: 76px; font-size: var(--t-s); max-height: calc(100vh - 90px); overflow: auto; }
.doc-nav p { margin: 18px 0 6px; font-weight: 700; }
.doc-nav p:first-child { margin-top: 0; }
.doc-nav ul { list-style: none; margin: 0; padding: 0; }
.doc-nav a { display: block; padding: 3px 0 3px 12px; text-decoration: none; border-left: 2px solid #ddd; }
.doc-nav a:hover { border-left-color: #000; }
.doc-nav a[aria-current="page"] { border-left-color: var(--green); background: rgba(13,158,90,.12); font-weight: 700; }
.doc-body { max-width: 70ch; }
.doc-body h2 { font-family: var(--f-el); font-weight: 700; font-size: clamp(2.25rem, 4vw, 3.25rem); line-height: 1; margin: 1.6em 0 .4em; }
.doc-body h3 { font-size: var(--t-l); margin: 1.6em 0 .4em; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body table { border-collapse: collapse; width: 100%; margin: 1em 0 1.6em; font-size: var(--t-s); }
.doc-body th, .doc-body td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid #ddd; vertical-align: top; }
.doc-body th { border-bottom: 1.5px solid #000; }
.doc-body code { font-size: .92em; background: #eef6f1; padding: .1em .35em; }
.doc-body blockquote { margin: 1.4em 0; padding: 10px 0 10px 16px; border-left: 3px solid var(--green); }
.doc-body blockquote p { margin: 0; }
.doc-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 16px; border-top: 1px solid #000; font-size: var(--t-s); }
.doc-pager a { text-decoration: none; font-weight: 700; }
.doc-pager small { display: block; font-weight: 400; opacity: .65; }
.doc-figure { margin: 1.4em 0; }
.doc-figure canvas { width: 100%; aspect-ratio: 3 / 2; background: #fff; border: 1px solid #000; }
.doc-figure figcaption { font-size: var(--t-xs); opacity: .7; margin-top: 6px; }
@media (max-width: 860px) { .docs { grid-template-columns: 1fr; } .doc-nav { position: static; max-height: none; border-bottom: 1px solid #000; padding-bottom: 18px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }


/* ---------- FINESTRE ---------- */
.win { position: relative; background: var(--paper); color: var(--ink); border: var(--line) solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.win .win__bar { color: var(--ink); background: var(--ink); }
.win .win__bar > span:first-child, .win .win__ctrl button { --bar-ink: var(--paper); color: var(--paper); }
.win .win__ctrl button { border-color: var(--paper); }
.win__tools { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; padding: 8px 10px; border-bottom: var(--line) solid var(--ink); }
.win__canvas { width: 100%; aspect-ratio: 4 / 3; background: #fff; touch-action: none; }
.win__canvas--sq { aspect-ratio: 1; cursor: grab; }
.win__canvas--sq:active { cursor: grabbing; }
.win__text { padding: 10px 12px 12px; border-top: var(--line) solid var(--ink); font-size: var(--t-s); }
.win__text p { margin: 0 0 8px; }
.win__text a { font-weight: 700; }
.win__body { padding: 12px; display: grid; gap: 12px; font-size: var(--t-s); }
.win__body p { margin: 0; }
.win__status { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 4px 6px 4px 10px; border-top: var(--line) solid var(--ink); font-size: var(--t-xs); background: #f1f1f1; }
.win__poster { border-top: 0; }
.win--dark { background: var(--ink); color: var(--paper); }
.win--dark .win__bar { background: var(--green-hi); }
.win--dark .win__bar > span:first-child, .win--dark .win__ctrl button { color: var(--ink); border-color: var(--ink); }
.win__code { margin: 0; padding: 12px 14px; font-family: var(--f-mono); font-size: var(--t-xs); line-height: 1.7; white-space: pre; overflow: auto; color: var(--green-hi); min-height: 13em; }
.win.is-drag { opacity: .92; }
.chip--xs { min-height: 24px; padding: 0 8px; font-size: var(--t-xs); }
[data-c="black"] .win .chip[aria-pressed="true"], [data-c="green"] .win .chip[aria-pressed="true"], [data-c="white"] .win .chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.win--dark .chip { color: var(--paper); }

.desk-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px var(--gutter); align-items: end; margin-bottom: 40px; }
.desk-head .h-dot { font-size: clamp(2.75rem, 6.2vw, 6.5rem); }
.desk-head:has(.svg-sec__title) { grid-template-columns: 1fr; }
.desk-head:has(.svg-sec__title) .prose { max-width: 70ch; }
.desk-head .prose { padding-bottom: 6px; }
.desk { position: relative; }
@media (min-width: 901px) {
  .desk .win { position: absolute; left: var(--x); top: var(--y); width: var(--w); }
  .desk--tools { height: 780px; }
  .desk--vec { height: 980px; }
  .desk .win:hover { z-index: 5; }
}
@media (max-width: 900px) {
  .desk-head { grid-template-columns: 1fr; }
  .desk .win { margin: 0 6px 28px 0; }
}

/* ---------- PATTERN a tutto sfondo ---------- */
.pattern-sec { position: relative; overflow: hidden; min-height: 112vh; }
.pattern-sec .surface { position: absolute; inset: 0; width: 100%; height: 100%; }
.pattern-sec__inner { position: relative; z-index: 1; padding-top: clamp(80px, 10vw, 140px); padding-bottom: clamp(80px, 10vw, 140px); display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px var(--gutter); align-items: start; pointer-events: none; }
.pattern-sec__inner > * { pointer-events: auto; }
.pattern-title { font-size: clamp(3.5rem, 10.5vw, 11rem); }
.pattern-title { color: var(--ink); }
.pattern-title span { display: table; background: var(--paper); padding: 0 .12em .04em; margin-bottom: .06em; }
.pattern-title span:nth-child(2) { margin-left: 14%; }
.pattern-title span:nth-child(3) { margin-left: 34%; }
.pattern-win { margin-top: 40px; }
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { padding: 8px 0 8px 18px; border-top: var(--line) solid currentColor; position: relative; font-size: var(--t-s); }
.facts li::before { content: "■"; position: absolute; left: 0; font-size: 9px; top: 12px; }
@media (max-width: 900px) {
  .pattern-sec__inner { grid-template-columns: 1fr; }
  .pattern-title span:nth-child(n) { margin-left: 0; }
}
.docs > * { min-width: 0; }
.doc-body { overflow-wrap: break-word; }
@media (max-width: 860px) { .doc-body table { display: block; overflow-x: auto; } }


/* ---------- PANNELLO + DOCUMENTO (tre strumenti) ---------- */
.ps { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 28px; align-items: start; }
.ps-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: var(--line) solid var(--ink); }
.ps-tabs button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border: 0; cursor: pointer;
  background: #f1f1f1; border-right: var(--line) solid var(--ink); font-family: var(--f-el); font-weight: 700; font-size: 1.75rem; line-height: 1;
  font-variation-settings: "ELSH" 2;
}
.ps-tabs button:last-child { border-right: 0; }
.ps-tabs button[aria-selected="true"] { background: var(--paper); box-shadow: inset 0 -4px 0 var(--green); }
.ps-tabs .lbl { font-family: var(--f-mono); font-weight: 400; }
.ps-pane { padding: 14px; display: grid; gap: 14px; font-size: var(--t-s); }
.ps-pane p { margin: 0; }
.ps-pane a { font-weight: 700; }
.ps-doc__area { background: #1c1c1c; padding: clamp(14px, 3vw, 36px); display: grid; place-items: center; min-height: 420px; }
.ps-doc__area canvas { width: 100%; aspect-ratio: 3 / 2; background: #fff; box-shadow: 0 0 0 1px #000; }
.ps-doc__area .poster { width: min(100%, 360px); }
@media (max-width: 900px) { .ps { grid-template-columns: 1fr; } .ps-doc__area { min-height: 0; } }

/* ---------- RASTER → VETTORIALE ---------- */
.vec-zoom { display: grid; grid-template-columns: auto minmax(0, 1fr) 6ch; gap: 16px; align-items: center; max-width: 720px; margin: 0 0 28px; }
.vec-zoom input { accent-color: var(--green-hi); }
[data-c="green"] .vec-zoom input { accent-color: var(--ink); }
.vec-zoom__val { font-family: var(--f-dot); font-weight: 900; font-size: 1.75rem; }
.vec-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.vec-fig { margin: 0; display: grid; gap: 16px; align-content: start; }
.vec-fig figcaption h3 { margin: 0 0 6px; font-family: var(--f-el); font-weight: 700; font-size: clamp(1.75rem, 2.6vw, 2.4rem); line-height: 1; }
.vec-fig figcaption p { margin: 0 0 14px; max-width: 46ch; font-size: var(--t-s); }
.vec-cmyk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: clamp(20px, 3vw, 40px); align-items: center; margin-top: clamp(48px, 6vw, 80px); max-width: 860px; }
.vec-cmyk .prose p { margin: 0 0 16px; font-size: var(--t-s); }
.vec-cmyk .win { max-width: 360px; justify-self: end; width: 100%; }
.vec-cmyk .win__tools .chip { min-height: 30px; padding: 0 8px; font-size: var(--t-xs); }
@media (max-width: 900px) { .vec-pair, .vec-cmyk { grid-template-columns: 1fr; } .vec-zoom { grid-template-columns: 1fr 6ch; } .vec-zoom .lbl { grid-column: 1 / -1; } }

/* ---------- SAGOME DI SFONDO ---------- */
.tone { isolation: isolate; }
.tone > .wrap, .tone > .hero__inner { position: relative; z-index: 1; }

/* ---------- ogni sezione è un documento: righelli, guide, crocini, barra di stato ---------- */
.docframe { --df: rgba(255,255,255,.26); --df-guide: rgba(53,185,120,.4); position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; font-family: var(--f-mono); }
[data-c="green"] > .docframe { --df: rgba(0,0,0,.3); --df-guide: rgba(0,0,0,.16); }
[data-c="white"] > .docframe { --df: rgba(0,0,0,.24); --df-guide: rgba(13,158,90,.38); }
.docframe__x { position: absolute; left: 18px; right: 0; top: 0; height: 18px; border-bottom: 1px solid var(--df);
  background:
    repeating-linear-gradient(to right, var(--df) 0 1px, transparent 1px 10%) left bottom / 100% 100% no-repeat,
    repeating-linear-gradient(to right, var(--df) 0 1px, transparent 1px 5%) left bottom / 100% 9px no-repeat,
    repeating-linear-gradient(to right, var(--df) 0 1px, transparent 1px 1%) left bottom / 100% 4px no-repeat; }
.docframe__x span { position: absolute; top: 1px; padding-left: 3px; font-size: 9px; line-height: 1; color: var(--df); }
.docframe__x span:last-child { display: none; }
.docframe__y { position: absolute; left: 0; top: 18px; bottom: 0; width: 18px; border-right: 1px solid var(--df);
  background:
    repeating-linear-gradient(to bottom, var(--df) 0 1px, transparent 1px 96px) right top / 100% 100% no-repeat,
    repeating-linear-gradient(to bottom, var(--df) 0 1px, transparent 1px 48px) right top / 9px 100% no-repeat,
    repeating-linear-gradient(to bottom, var(--df) 0 1px, transparent 1px 12px) right top / 4px 100% no-repeat; }
.docframe__corner { position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-right: 1px solid var(--df); border-bottom: 1px solid var(--df); }
.docframe__guide { position: absolute; top: 18px; bottom: 0; width: 1px; margin-left: 9px; background: var(--df-guide); }
.docframe__crop { position: absolute; width: 16px; height: 16px; border: 0 solid var(--df); }
.docframe__crop--tl { left: 30px; top: 30px; border-width: 1px 0 0 1px; }
.docframe__crop--tr { right: 12px; top: 30px; border-width: 1px 1px 0 0; }
.docframe__crop--bl { left: 30px; bottom: 12px; border-width: 0 0 1px 1px; }
.docframe__crop--br { right: 12px; bottom: 12px; border-width: 0 1px 1px 0; }
.docframe p.docframe__status { position: absolute; opacity: 1; max-width: none; left: 54px; bottom: 12px; margin: 0; font-size: 10px; line-height: 16px; color: var(--df); letter-spacing: .02em; }
.page-hero .docframe__status, .page-hero .docframe__crop--bl, .page-hero .docframe__crop--br { display: none; }
@media (max-width: 760px) {
  .docframe__x span:nth-child(even) { display: none; }
  .docframe__guide { display: none; }
}

/* ---------- TRE STRUMENTI (presentazione) ---------- */
.tools-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 18px; align-items: end; margin-bottom: clamp(40px, 6vw, 88px); }
.tools-title { grid-column: 1 / -1; margin: 0; display: grid; }
/* due livelli: la riga piccola fa da etichetta, la riga grande porta il peso */
.tools-title__a { justify-self: start; font-family: var(--f-dot); font-weight: 650; font-size: clamp(1.9rem, 4.2vw, 4.4rem); line-height: .9; letter-spacing: -.01em; margin: 0 0 .12em .06em; }
.tools-title__b { font-family: var(--f-dot); font-weight: 900; font-size: clamp(3.2rem, 11vw, 11.5rem); line-height: .8; letter-spacing: -.02em; white-space: nowrap; margin-left: -.04em; }
.tools-head__text { grid-column: 7 / -1; margin: 0; max-width: 52ch; font-size: var(--t-l); line-height: 1.5; padding-left: 16px; border-left: 4px solid var(--ink); }
.tools-head__text b { font-weight: 800; }
@media (max-width: 760px) { .tools-title__b { white-space: normal; font-size: clamp(3rem, 15vw, 6rem); } }
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 36px); align-items: start; }
.tools [data-show="pattern"] { grid-column: 1; grid-row: 1; }
.tools [data-show="stili"] { grid-column: 2; grid-row: 1; margin-top: clamp(0px, 5vw, 72px); }
.tools [data-show="type"] { grid-column: 3; grid-row: 1; margin-top: clamp(0px, 10vw, 144px); }
.tool-card__img { display: block; width: 100%; aspect-ratio: 4 / 5; background: #fff; }
.tool-card__doc { background: #1c1c1c; aspect-ratio: 4 / 5; display: grid; place-items: center; padding: 8%; }
.tool-card__doc .poster { width: 100%; }
.tool-card__text { padding: 14px 16px 18px; border-top: var(--line) solid var(--ink); }
.tool-card__text h3 { margin: 0 0 8px; font-family: var(--f-el); font-weight: 700; font-size: clamp(2.5rem, 4vw, 3.75rem); line-height: .9; font-variation-settings: "ELSH" 2; }
.tool-card__text p { margin: 0 0 12px; font-size: var(--t-s); }
.tool-card__text a { font-weight: 700; font-size: var(--t-s); }
.tool-card .win__bar span span { color: inherit; }
@media (max-width: 900px) {
  .tools-head { grid-template-columns: 1fr; }
  .tools-head__text { grid-column: 1 / -1; }
  .tools { grid-template-columns: 1fr; }
  .tools > * { grid-column: auto !important; grid-row: auto !important; margin-top: 0 !important; }
}
.poster .p-title { overflow-wrap: anywhere; }

/* ---------- cookie: banner e pagina ---------- */
.consent { position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px; margin-inline: auto; max-width: 720px;
  padding: 18px 20px; background: var(--ink); color: var(--paper); border: var(--line) solid rgba(255,255,255,.5); box-shadow: 6px 6px 0 var(--green); }
.consent[hidden] { display: none; }
.consent__t { margin: 0 0 6px; font-family: var(--f-dot); font-weight: 900; font-size: 1.6rem; line-height: 1; }
.consent__d { margin: 0 0 14px; font-size: var(--t-s); line-height: 1.55; max-width: 62ch; }
.consent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.consent__actions .btn { min-width: 128px; justify-content: center; color: var(--paper); border-color: var(--paper); }
.consent__actions .btn:hover { background: var(--green); border-color: var(--green); color: var(--ink); }
.consent__actions a { font-size: var(--t-s); color: var(--paper); }
.consent__x { position: absolute; top: 6px; right: 8px; width: 36px; height: 36px; background: none; border: 0; color: var(--paper); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.linkish { padding: 0; background: none; border: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.cookie-page { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px var(--gutter); align-items: start; }
.cookie-prefs { position: sticky; top: 90px; }
.cookie-prefs__body { padding: 14px 16px 16px; display: grid; gap: 12px; }
.cookie-row { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: var(--t-s); cursor: pointer; }
.cookie-row input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--green); }
.cookie-row--locked { opacity: .7; cursor: default; }
.cookie-prefs .actions { display: grid; gap: 8px; }
.cookie-prefs .btn { justify-content: center; }
@media (max-width: 900px) { .cookie-page { grid-template-columns: minmax(0, 1fr); } .cookie-prefs { position: static; } }
@media (max-width: 760px) { .doc-body table { display: block; overflow-x: auto; } }

/* ---------- logo ufficiale: simbolo + WGT-01 + WALIFE GENERATIVE TOOLS ---------- */
.logo-sym { display: block; aspect-ratio: 12 / 14; }
.lockup { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: .22em; align-items: end; justify-content: start; margin: 0; }
.lockup__sym { grid-row: 1 / span 2; height: 1.18em; width: auto; color: var(--green); align-self: start; margin-top: .02em; }
.lockup__num { color: var(--green); }
.lockup__word { font-family: var(--f-dot); font-weight: 900; line-height: .78; letter-spacing: -.02em; }
.lockup__sub { align-self: start; font-family: var(--f-mono); font-weight: 600; font-size: .1em; letter-spacing: .42em; text-transform: uppercase; line-height: 1; margin-top: .9em; white-space: nowrap; }
.hero h1.lockup { margin: 0 0 .22em -0.02em; }
.lockup--footer { font-size: clamp(3rem, 6vw, 5.5rem); margin-bottom: 18px; color: var(--paper); }
.lockup--footer .lockup__sub { font-size: .13em; }
@media (max-width: 600px) { .lockup__sub { letter-spacing: .25em; font-size: .12em; } }
/* lockup della hero sempre su un piano nero: il "-01" verde non si perde nell'immagine verde */
.hero h1.lockup { background: var(--ink); padding: .12em .16em .14em .12em; width: fit-content; }

/* finestre su sfondo nero: bordo chiaro e ombra verde, altrimenti la cornice sparisce */
[data-c="black"] .win { border-color: rgba(255,255,255,.7); box-shadow: 6px 6px 0 var(--green); }
[data-c="black"] .win .win__bar { border-bottom: var(--line) solid rgba(255,255,255,.7); }

/* ---------- lingua ---------- */
.site-nav .lang-switch { font-weight: 700; letter-spacing: .04em; }
.lang-switch__to { opacity: .45; font-weight: 400; }
.site-nav .lang-switch:hover .lang-switch__to { opacity: .8; }

/* ---------- newsletter "avvisami all'uscita" ---------- */
.newsletter { max-width: 760px; }
.tone[data-c="black"] .newsletter { box-shadow: 6px 6px 0 var(--green); border-color: var(--paper); }
.section--nl { padding-top: 72px; padding-bottom: 96px; }
.newsletter__body { padding: 22px 24px 20px; display: grid; gap: 12px; }
.newsletter__body p { margin: 0; max-width: 58ch; }
.newsletter__t { font-size: clamp(2.4rem, 5vw, 4rem); line-height: .95; margin: 0; }
.newsletter__row { display: flex; gap: 0; margin-top: 4px; }
.newsletter__row input[type="email"] {
  flex: 1 1 auto; min-width: 0; font: inherit; font-size: var(--t-s); padding: 11px 12px;
  border: var(--line) solid var(--ink); border-right: 0; background: #fff; color: var(--ink); border-radius: 0;
}
.newsletter__row input[type="email"]:focus-visible { outline: 3px solid var(--green); outline-offset: 0; }
.newsletter__row .btn { flex: none; border-color: var(--ink); }
.newsletter__msg:empty { display: none; }
.newsletter__msg[data-state="ok"] { color: #06623a; font-weight: 700; }
.newsletter__msg[data-state="err"] { color: #b3261e; font-weight: 700; }
.newsletter__note a { font-weight: 700; }
@media (max-width: 520px) {
  .newsletter__row { flex-direction: column; gap: 8px; }
  .newsletter__row input[type="email"] { border-right: var(--line) solid var(--ink); }
}
.section--nl .newsletter { margin-inline: auto; }
