/* =========================================================
   Benedetti Tessuti · Public pages
   Strategy: Committed · Brand red carries identity, gold = filo conduttore
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600&display=swap');

:root {
  --bt-bg:        oklch(0.985 0.004 30);
  --bt-surface:   #ffffff;
  --bt-ink:       oklch(0.26 0.008 30);
  --bt-ink-soft:  oklch(0.46 0.010 30);
  --bt-ink-mute:  oklch(0.62 0.008 30);
  --bt-line:      oklch(0.90 0.008 30);
  --bt-line-soft: oklch(0.95 0.005 30);
  --bt-red:       oklch(0.46 0.215 27);
  --bt-red-deep:  oklch(0.39 0.205 27);
  --bt-gold:      oklch(0.74 0.100 80);
  --bt-radius:    2px;
  --bt-ease:      cubic-bezier(0.16, 1, 0.3, 1);
}

html, body { margin: 0; padding: 0; background: var(--bt-bg); color: var(--bt-ink); font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-weight: 400; font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body > .container.wrap { max-width: 520px; margin: 0 auto; padding: 88px 32px 64px; min-height: calc(100vh - 60px); display: flex; flex-direction: column; }

.header { text-align: center; margin: 0 0 56px; }
.header .logo a { display: inline-block; line-height: 0; }
.header .logo img { max-width: 200px; height: auto; display: block; margin: 0 auto; }
.bt-tagline { margin: 14px 0 0; font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bt-ink-mute); }

section { background: transparent; padding: 0; border: 0; }
section > h2 { font-family: 'Jost', sans-serif; font-weight: 300; font-size: 38px; line-height: 1.15; letter-spacing: -0.015em; color: var(--bt-ink); margin: 0 0 12px; text-align: left; }
.bt-subhead { margin: 0 0 40px; color: var(--bt-ink-soft); font-size: 16px; line-height: 1.6; max-width: 44ch; }
section > h2::before { content: ""; display: block; width: 32px; height: 2px; background: var(--bt-gold); margin: 0 0 24px; }

form.form { margin: 0; }
form.form > div { display: block; }
form.form p { margin: 0 0 22px; display: flex; flex-direction: column; gap: 8px; }
form.form label { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bt-ink-soft); margin: 0; }
form.form input[type="email"], form.form input[type="text"] { appearance: none; -webkit-appearance: none; background: transparent; border: 0; border-bottom: 1px solid var(--bt-line); border-radius: 0; padding: 10px 0 12px; font-family: inherit; font-size: 17px; font-weight: 400; color: var(--bt-ink); width: 100%; box-sizing: border-box; transition: border-color 250ms var(--bt-ease); }
form.form input::placeholder { color: transparent; }
form.form input:hover { border-bottom-color: var(--bt-ink-soft); }
form.form input:focus { outline: 0; border-bottom-color: var(--bt-red); }
input.nonce { display: none; }

ul.lists { list-style: none; margin: 8px 0 32px; padding: 20px 0 0; border-top: 1px solid var(--bt-line-soft); }
ul.lists h2 { font-family: 'Jost', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bt-ink-mute); margin: 0 0 16px; }
ul.lists li { display: flex; align-items: center; gap: 14px; padding: 6px 0; }
ul.lists input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border: 1.5px solid var(--bt-line); border-radius: var(--bt-radius); background: var(--bt-surface); margin: 0; cursor: pointer; position: relative; flex-shrink: 0; transition: border-color 200ms var(--bt-ease), background-color 200ms var(--bt-ease); }
ul.lists input[type="checkbox"]:hover { border-color: var(--bt-ink-soft); }
ul.lists input[type="checkbox"]:checked { background-color: var(--bt-red); border-color: var(--bt-red); }
ul.lists input[type="checkbox"]:checked::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
ul.lists input[type="checkbox"]:focus-visible { outline: 2px solid var(--bt-gold); outline-offset: 2px; }
ul.lists label { font-size: 16px; font-weight: 400; color: var(--bt-ink); margin: 0; text-transform: none; letter-spacing: 0; cursor: pointer; }

form.form button.button, button.button { appearance: none; -webkit-appearance: none; width: 100%; display: inline-block; background: var(--bt-red); color: #fff; border: 0; border-radius: var(--bt-radius); padding: 16px 24px; font-family: inherit; font-size: 14px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; transition: background-color 250ms var(--bt-ease), transform 200ms var(--bt-ease); margin-top: 8px; }
form.form button.button:hover, button.button:hover { background: var(--bt-red-deep); }
form.form button.button:active, button.button:active { transform: translateY(1px); }
form.form button.button:focus-visible, button.button:focus-visible { outline: 2px solid var(--bt-gold); outline-offset: 3px; }

p.right { text-align: center; margin: 28px 0 0; }
p.right a { font-size: 13px; font-weight: 400; color: var(--bt-ink-mute); text-decoration: none; border-bottom: 1px solid var(--bt-line); padding-bottom: 2px; transition: color 200ms var(--bt-ease), border-color 200ms var(--bt-ease); }
p.right a:hover { color: var(--bt-red); border-bottom-color: var(--bt-red); }

a { color: var(--bt-red); text-decoration: none; }
a:hover { color: var(--bt-red-deep); text-decoration: underline; text-underline-offset: 3px; }

section > p, .wrap > p { font-size: 16px; color: var(--bt-ink); line-height: 1.65; margin: 0 0 18px; }

footer.container { max-width: 520px; margin: 0 auto; padding: 32px; text-align: center; font-size: 12px; color: var(--bt-ink-mute); border-top: 0; }
footer.container a { color: var(--bt-ink-mute); border-bottom: 1px dotted var(--bt-line); }
footer.container a:hover { color: var(--bt-ink-soft); }

@media (prefers-reduced-motion: no-preference) {
  body > .container.wrap { animation: btReveal 600ms var(--bt-ease) both; }
  @keyframes btReveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
}

@media (max-width: 600px) {
  body > .container.wrap { padding: 48px 24px 40px; }
  section > h2 { font-size: 30px; }
  .header { margin-bottom: 40px; }
  .header .logo img { max-width: 160px; }
  form.form input[type="email"], form.form input[type="text"] { font-size: 16px; }
}
