/* Hallmark floor, custom editorial direction inside ImprendiLife (_4_IP/BRAND/_IMPRENDILIFE/DESIGN.md):
   Light paper front-page broadsheet, zero SaaS cards/shadows/pills/icons/status dots/two-color heads.
   Typography, hairlines, serif pull-quotes, transparent cutout portrait on paper, one navy band at the close. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("./plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("./inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("./inter-500.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #003058;
  --navy-500: #245A80;
  --green: #70B840;
  --green-hover: #7EC64D;
  --green-ink: #35631B;
  --ink: #1B2731;
  --ink-2: #485866;
  --paper: #F7F9FA;
  --paper-alt: #EFF3F6;
  --surface: #FDFEFF;
  --on-navy: #E4EDF4;
  --on-navy-2: #B3C5D6;
  --line: rgba(0, 48, 88, 0.14);
  --line-strong: rgba(0, 48, 88, 0.26);
  --line-navy: rgba(255, 255, 255, 0.18);
  --danger: #B8382E;
  --danger-bg: #FCECEB;
  --book-shadow: 0 2px 5px rgba(0, 24, 48, 0.14), 0 14px 28px rgba(0, 24, 48, 0.18);

  --display: "Plus Jakarta Sans", "Avenir Next", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

  --r-sm: 4px;
  --r-btn: 6px;
  --max: 1180px;
  --gutter: clamp(20px, 4.5vw, 48px);
  --gap-col: clamp(32px, 5.5vw, 84px);
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font: 400 17.5px/1.68 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  color: var(--navy);
  overflow-wrap: break-word;
  min-width: 0;
}

::selection { background: var(--green); color: var(--navy); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; transition: none; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 40;
  background: var(--navy);
  color: var(--surface);
  padding: 10px 16px;
  border-radius: var(--r-sm);
  font: 600 14px/1 var(--body);
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------------------------------- Primary action (flat green, navy ink) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 28px;
  border: 0;
  border-radius: var(--r-btn);
  background: var(--green);
  color: var(--navy);
  font: 700 16px/1.2 var(--display);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.14s var(--ease);
}
.btn:hover { background: var(--green-hover); }
.btn--full { width: 100%; }

/* ---------------------------------- Masthead (paper, plain text, hairline) */
.masthead {
  border-bottom: 1px solid var(--line);
}
.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
  padding-block: 16px;
}
.brand-logo {
  height: 27px;
  width: auto;
}
.masthead-meta {
  margin: 0;
  font: 500 14.5px/1.4 var(--body);
  color: var(--ink-2);
}

/* ---------------------------------- Hero (Light editorial broadsheet) */
.hero {
  padding-block: clamp(36px, 5vw, 68px) clamp(56px, 7vw, 88px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7.2fr) minmax(0, 4.6fr);
  gap: var(--gap-col);
  align-items: start;
}
.hero-grid > * { min-width: 0; }

.kicker {
  margin: 0 0 18px;
  font: 500 15px/1.4 var(--body);
  color: var(--green-ink);
}

.hero h1 {
  font-weight: 800;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.028em;
  margin-bottom: 22px;
  max-width: 17ch;
}

.hero-sub {
  font: 400 clamp(17.5px, 1.45vw, 19.5px)/1.6 var(--body);
  color: var(--ink-2);
  max-width: 50ch;
  margin-bottom: 28px;
}

.event-facts {
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  display: grid;
  gap: 6px;
  font: 500 15.5px/1.5 var(--body);
  color: var(--navy);
}
.event-facts li:last-child {
  font-weight: 400;
  color: var(--ink-2);
}

/* ---------------------------------- Registration form (flat, hairline, honest) */
.optin {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  padding: clamp(24px, 3vw, 32px);
}
.optin-head {
  font: 700 20px/1.25 var(--display);
  color: var(--navy);
  margin: 0 0 6px;
}
.optin-sub {
  font: 400 14.5px/1.5 var(--body);
  color: var(--ink-2);
  margin: 0 0 20px;
}

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font: 500 14px/1.35 var(--body);
  color: var(--navy);
  margin-bottom: 6px;
}
.field .opt {
  font-weight: 400;
  color: var(--ink-2);
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  font: 400 16px/1.3 var(--body);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  transition: border-color 0.14s var(--ease), background-color 0.14s var(--ease);
}
.field input:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--navy);
}
.field .hint {
  display: block;
  margin-top: 5px;
  font: 400 13px/1.4 var(--body);
  color: var(--ink-2);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 18px;
  font: 400 13.5px/1.45 var(--body);
  color: var(--ink-2);
  cursor: pointer;
}
.consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--navy);
}
.consent a {
  color: var(--navy);
  text-underline-offset: 2px;
}

.form-note {
  margin: 12px 0 0;
  font: 400 13px/1.45 var(--body);
  color: var(--ink-2);
}
.form-error {
  display: none;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--danger-bg);
  color: var(--danger);
  font: 500 14px/1.4 var(--body);
}
.form-error.is-visible { display: block; }

/* ---------------------------------- Editorial Sections (hairlines, no boxes) */
.sec {
  padding-block: clamp(64px, 8.5vw, 112px);
  border-top: 1px solid var(--line);
}
.sec--alt {
  background: var(--paper-alt);
}
.sec-label {
  margin: 0 0 20px;
  font: 500 14.5px/1.4 var(--body);
  color: var(--green-ink);
}

/* Band 2: Il punto (serif pull-quote left + calm reading column right) */
.point-grid {
  display: grid;
  grid-template-columns: minmax(0, 4.6fr) minmax(0, 6.4fr);
  gap: var(--gap-col);
  align-items: start;
}
.serif-thesis {
  margin: 0;
  font: 400 clamp(28px, 3.1vw, 40px)/1.22 var(--serif);
  color: var(--navy);
  max-width: 18ch;
}
.prose {
  font-size: 18px;
  line-height: 1.72;
  color: var(--ink-2);
  max-width: 56ch;
}
.prose strong {
  color: var(--navy);
  font-weight: 600;
}
.prose .kicker-end {
  margin-top: 24px;
  font: 700 18.5px/1.4 var(--display);
  color: var(--navy);
}

/* Band 3: Cosa vedi (Manifesto-style editorial index: thin 300 numerals + hairlines) */
.index-head {
  font-weight: 800;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.022em;
  max-width: 22ch;
  margin-bottom: clamp(32px, 4.5vw, 52px);
}

.index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}
.index-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px 32px;
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.index-num {
  font: 300 40px/1 var(--display);
  letter-spacing: -0.03em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.index-copy {
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 64ch;
}
.index-copy strong {
  color: var(--navy);
  font-weight: 600;
}

/* Book preview row (same index rhythm, no card box, no drop shadow box) */
.gift-row {
  display: grid;
  grid-template-columns: 88px 104px minmax(0, 1fr);
  gap: 20px 32px;
  padding-top: 32px;
  align-items: center;
}
.gift-tag {
  font: 500 14px/1.35 var(--body);
  color: var(--green-ink);
  align-self: start;
  padding-top: 6px;
}
.gift-cover {
  width: 104px;
  border-radius: 2px;
  box-shadow: var(--book-shadow);
}
.gift-copy {
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--ink);
  max-width: 54ch;
}
.gift-copy strong {
  color: var(--navy);
  font-weight: 600;
}

/* Band 4: Patti chiari + Per chi e (plain editorial columns, vertical hairline, zero icons) */
.rules-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.rules-col--right {
  padding-left: clamp(28px, 4vw, 56px);
  border-left: 1px solid var(--line);
}
.rules-grid h2 {
  font-weight: 800;
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.18;
  letter-spacing: -0.018em;
  margin-bottom: 18px;
}
.rules-grid p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 52ch;
}
.rules-grid strong {
  color: var(--navy);
  font-weight: 600;
}
.fit-split + .fit-split {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

/* Band 5: Chi conduce (cutout portrait directly on paper, hairline floor, serif lead) */
.bio-grid {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: var(--gap-col);
  align-items: end;
}
.bio-figure {
  margin: 0;
}
.bio-cutout {
  border-bottom: 1px solid var(--line-strong);
  padding-inline: 8px;
}
.bio-cutout img {
  width: 100%;
  height: auto;
}
.bio-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font: 400 13.5px/1.4 var(--body);
  color: var(--ink-2);
}

.bio-text {
  padding-bottom: 24px;
}
.bio-text h2 {
  font-weight: 800;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.bio-lead {
  font: 400 clamp(21px, 2vw, 25px)/1.45 var(--serif);
  color: var(--navy);
  max-width: 42ch;
  margin-bottom: 22px;
}
.bio-body {
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink-2);
  max-width: 58ch;
}

/* Band 6: Single Navy Anchor Close (left-aligned editorial split) */
.close-band {
  background: var(--navy);
  color: var(--on-navy);
  padding-block: clamp(56px, 7vw, 88px);
}
.close-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: var(--gap-col);
  align-items: center;
}
.close-band h2 {
  color: var(--surface);
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.022em;
  margin-bottom: 12px;
}
.close-meta {
  font: 400 17.5px/1.55 var(--body);
  color: var(--on-navy);
  margin: 0 0 8px;
}
.close-sign {
  font: 400 15.5px/1.5 var(--body);
  color: var(--on-navy-2);
  margin: 0;
}
.close-action {
  justify-self: end;
}

/* Footer (minimal quiet paper bar) */
.footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding-block: 26px;
  font: 400 13.5px/1.5 var(--body);
  color: var(--ink-2);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  flex-wrap: wrap;
}
.footer img { height: 22px; width: auto; }
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer a {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}
.footer a:hover { color: var(--navy); }

/* ---------------------------------- Thank You Page */
.ty-wrap {
  padding-block: clamp(48px, 7vw, 88px);
}
.ty-col {
  max-width: 640px;
}
.ty-col h1 {
  font-weight: 800;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.ty-date {
  font: 600 18px/1.5 var(--body);
  color: var(--navy);
  margin-bottom: 14px;
}
.ty-lead {
  font-size: 17.5px;
  line-height: 1.68;
  color: var(--ink-2);
}
.ty-paper {
  margin: 28px 0;
  padding: 18px 0 18px 20px;
  border-left: 2px solid var(--navy);
  font: 400 20px/1.5 var(--serif);
  color: var(--navy);
}
.ty-opt {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.ty-opt label {
  display: block;
  font: 500 15.5px/1.5 var(--body);
  color: var(--navy);
  margin-bottom: 12px;
}
.ty-opt-row {
  display: flex;
  gap: 10px;
}
.ty-opt-row input {
  flex: 1;
  min-height: 48px;
  padding: 10px 14px;
  font: 400 16px/1.3 var(--body);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
}
.ty-opt-row input:focus {
  outline: none;
  border-color: var(--navy);
}
.ty-opt-row .btn {
  min-height: 48px;
  padding: 12px 22px;
  white-space: nowrap;
}
.ty-saved {
  display: none;
  margin-top: 10px;
  font: 500 14.5px/1.4 var(--body);
  color: var(--green-ink);
}
.ty-saved.is-visible { display: block; }
.ty-back {
  display: inline-block;
  margin-top: 28px;
  font: 500 14.5px/1.4 var(--body);
  color: var(--navy-500);
  text-underline-offset: 3px;
}

/* ---------------------------------- Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .point-grid,
  .rules-grid,
  .bio-grid,
  .close-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .rules-col--right {
    padding-left: 0;
    padding-top: 28px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .bio-figure { max-width: 280px; }
  .bio-text { padding-bottom: 0; }
  .close-action { justify-self: start; }
  .serif-thesis { max-width: none; }
}

@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .masthead-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .brand-logo { height: 24px; }
  .index-row {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px 16px;
    padding-block: 22px;
  }
  .index-num { font-size: 28px; }
  .gift-row {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px 20px;
  }
  .gift-tag { grid-column: 1 / -1; padding-top: 0; }
  .gift-cover { width: 88px; }
  .ty-opt-row { flex-direction: column; }
  .close-action, .close-action .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .field input { transition: none; }
}
