/* niXomen — stile di contact.html (ramo stay-tuned), stesso mondo di DESIGN.md "Il Manifesto". */
@font-face { font-family: "League Spartan"; src: url("/static/fonts/LeagueSpartan.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
:root {
  --paper: #ffffff; --ink: #111111; --ink-soft: #3a3a3d; --muted: #66666b;
  --red: #ff4a2e; --blue: #2b3bff; --sun: #ffc21a; --green: #00b67a; --pink: #ff5fa8;
  --display: "League Spartan", "Futura", "Avenir Next", -apple-system, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light; accent-color: var(--blue); caret-color: var(--red);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
::selection { background: var(--sun); color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 560px) { .wrap { padding: 0 18px; } }

header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
header img { width: 150px; }
.lang { font: 700 0.88rem var(--display); padding: 6px 12px; border-radius: 999px; border: 0; background: var(--ink); color: var(--paper); cursor: pointer; }

main { flex: 1; padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 8vw, 104px); }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr; gap: 28px; } }
h1 { font: 800 clamp(3rem, 7vw, 5.5rem)/0.9 var(--display); letter-spacing: -0.04em; margin: 0 0 0.4em; }
.lead { font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.45; color: var(--ink-soft); max-width: 26em; margin: 0 0 1.2em; text-wrap: pretty; }
.mail { font: 700 1.15rem var(--display); }

form { display: grid; gap: 16px; padding: 30px; border-radius: 22px; background: var(--sun); }
label { display: grid; gap: 6px; font: 700 0.98rem var(--display); }
input, textarea { width: 100%; font: 400 17px/1.4 var(--body); color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; padding: 12px 14px; }
input:focus, textarea:focus { outline: none; box-shadow: 0 0 0 4px rgba(43, 59, 255, 0.35); }
.small { font-size: 0.9rem; margin: 0; }
.button { justify-self: start; padding: 14px 24px; border-radius: 999px; border: 0; background: var(--ink); color: var(--paper); font: 700 1.05rem/1 var(--display); cursor: pointer; transition: transform 160ms var(--ease-out), background-color 150ms ease; }
.button:active { transform: scale(0.97); }
.button[disabled] { opacity: 0.6; cursor: wait; }
.status { margin: 0; font-weight: 700; }
.status:empty { display: none; }
.status.ok { color: #006b47; }
.status.error { color: #b3200a; }
@media (prefers-reduced-motion: reduce) { .button { transition: none; } }

footer { padding: 0 0 26px; font-size: 0.88rem; }
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); height: 18px; margin-bottom: 22px; }
.swatches span:nth-child(1) { background: var(--red); } .swatches span:nth-child(2) { background: var(--sun); }
.swatches span:nth-child(3) { background: var(--green); } .swatches span:nth-child(4) { background: var(--blue); }
.swatches span:nth-child(5) { background: var(--pink); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer nav a { color: var(--ink); text-decoration: none; font-weight: 600; }

@media (hover: hover) and (pointer: fine) {
  .button:hover, .lang:hover { background: var(--blue); }
  a:hover { text-decoration-thickness: 3px; }
  footer nav a:hover { text-decoration: underline; }
}

/* campo trappola per i bot: invisibile e fuori dalla tastiera, le persone non lo compilano */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
