/* Landing newsletter Nest — stesso linguaggio visivo di usanest.it:
   fondo #FBFBF9, ink #161A0F, Space Grotesk per i titoli (corsivo grigio-verde come accento), DM Sans per il testo,
   evidenziatore lime, eyebrow maiuscoli spaziati, card bianche a 24-32px, pillole nere, CTA finale scura. */
:root {
  --bg: #FBFBF9; --ink: #161A0F; --lime: #CFF851; --lime-hover: #BEEC3D; --muted: #6A725A;
  --card: #FFFFFF; --line: rgba(22, 26, 15, .09); --soft: rgba(22, 26, 15, .04);
  --display: "Space Grotesk", "DM Sans", sans-serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; letter-spacing: -.01em; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
[hidden] { display: none !important; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(251, 251, 249, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-sq { width: 28px; height: 28px; border-radius: 8px; background: var(--lime); display: grid; place-items: center; }
.logo-sq svg { width: 28px; height: 28px; fill: var(--ink); }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 18px; }
.brand-sub { color: var(--muted); font-size: 14px; margin-left: 4px; padding-left: 10px; border-left: 1px solid var(--line); }

/* tipografia */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.eyebrow--lime { color: var(--lime); }
h1 { font-family: var(--display); font-weight: 700; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 22px; }
mark { background: var(--lime); color: var(--ink); padding: 0 .18em; border-radius: 14px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.h2 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 32px; max-width: 22ch; }
.h2 em { font-weight: 400; font-style: italic; color: var(--muted); }
.h2--sm { font-size: clamp(26px, 3vw, 36px); margin-bottom: 16px; max-width: none; }
.h2--light { color: var(--bg); }
.sub { font-size: 19px; color: #3d4430; margin: 0 0 22px; max-width: 34em; }
.sub--light { color: rgba(251, 251, 249, .75); }
.lede { color: var(--muted); font-size: 18px; margin: -18px 0 28px; }
h3 { font-family: var(--display); font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; margin: 0 0 8px; }

/* bottoni */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--ink); color: var(--bg); font: inherit; font-weight: 600; font-size: 14px;
  border: 0; border-radius: 9999px; padding: 10px 18px; text-decoration: none; cursor: pointer; transition: transform .12s ease-out, background .2s; }
.pill:active { transform: scale(.97); }
.pill:disabled { opacity: .6; cursor: wait; }
.pill--lg { font-size: 16px; padding: 15px 26px; width: 100%; }
.pill--lime { background: var(--lime); color: var(--ink); }
.pill--lime:hover { background: var(--lime-hover); }
.link { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--lime); }

/* hero */
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 56px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: baseline; font-weight: 500; }
.ticks li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 6px; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23161A0F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; transform: translateY(3px); }

/* card e form */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.form-card { border-radius: 32px; padding: 32px; box-shadow: 0 1px 2px rgba(22, 26, 15, .04), 0 12px 40px -12px rgba(22, 26, 15, .12); }
.form-card--dark { background: #23291A; border-color: rgba(251, 251, 249, .08); color: var(--bg); box-shadow: none; }
.form-title { font-family: var(--display); font-size: 26px; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 4px; }
.form-sub { color: var(--muted); margin: 0 0 20px; }
.nl-form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email] { font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: 14px; padding: 13px 15px; width: 100%; }
input[type=text]:focus, input[type=email]:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(207, 248, 81, .6); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13px; line-height: 1.45; color: var(--muted); }
.form-card--dark .check { color: rgba(251, 251, 249, .7); }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.form-card--dark .check input { accent-color: var(--lime); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.micro { font-size: 13px; color: var(--muted); margin: 0; text-align: center; }
.msg { margin: 0; font-size: 14px; font-weight: 600; color: #B4361B; }
.form-card--dark .msg { color: var(--lime); }
.msg:empty { display: none; }
.done p { margin: 8px 0 0; }

/* numeri */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 32px 24px; display: grid; gap: 4px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-n { font-weight: 900; font-size: clamp(44px, 5vw, 60px); line-height: 1; letter-spacing: -.03em; }
.stat-l { color: var(--muted); }

/* sezioni */
.block { padding-top: 96px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid3 p, .step p, .case p { margin: 0; color: #3d4430; }
.bridge { margin: 28px 0 0; font-size: 18px; max-width: 46em; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { border-top: 2px solid var(--ink); padding-top: 18px; }
.step-n { display: inline-block; font-weight: 900; font-size: 15px; background: var(--lime); border-radius: 8px; padding: 2px 8px; margin-bottom: 14px; }

.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.case { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 26px; display: grid; gap: 12px; align-content: start; }
.case-top { display: grid; gap: 2px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.case-co { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.case-n { font-weight: 900; font-size: 46px; line-height: 1; letter-spacing: -.03em; }
.case-l { font-size: 14px; color: var(--muted); }
.case h3 { margin: 0; }
.case p { font-size: 15px; }

.about { display: grid; grid-template-columns: auto 1fr; gap: 28px; padding: 40px; background: #F3F5EC; border: 0; border-radius: 32px; }
.about p { margin: 0 0 14px; max-width: 46em; color: #3d4430; }
.avatar { width: 84px; height: 84px; border-radius: 24px; background: var(--ink); color: var(--lime); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 40px; }

.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; max-width: 820px; }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 500; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: #3d4430; max-width: 40em; }

.final { background: var(--ink); color: var(--bg); margin-top: 110px; padding: 88px 0; }
.final-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.final .h2 { max-width: 16ch; }
.final mark { border-radius: 12px; }
.final-alt { grid-column: 1 / -1; margin: 0; color: rgba(251, 251, 249, .7); }
.final-alt a { color: var(--lime); font-weight: 600; text-decoration: none; }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 24px; padding-bottom: 32px; font-size: 14px; color: var(--muted); }

/* pagine di esito (confermata / scaduto / errore) */
.result { max-width: 760px; margin: 64px auto 0; padding: 48px; border-radius: 32px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 18px; justify-items: start; }
.result h1 { margin: 0; font-size: clamp(34px, 5vw, 52px); }
.result p { margin: 0; font-size: 18px; color: #3d4430; max-width: 36em; }
.result .pill { width: auto; }

@media (max-width: 900px) {
  .hero, .final-in { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding-top: 40px; }
  .cases, .grid3 { grid-template-columns: 1fr; }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .block { padding-top: 72px; }
}
@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat { padding: 22px 4px; }
  .grid4 { grid-template-columns: 1fr; }
  .form-card, .card { padding: 24px 20px; }
  .about { grid-template-columns: 1fr; padding: 28px 22px; gap: 16px; }
  .avatar { width: 64px; height: 64px; font-size: 30px; border-radius: 18px; }
  .brand-sub { display: none; }
  .final { padding: 64px 0; margin-top: 80px; }
  .result { padding: 32px 22px; margin-top: 32px; }
}

/* pain (sezione «Ti suona familiare?») */
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pain { display: grid; gap: 6px; align-content: start; }
.pain p { margin: 0; color: #3d4430; }
.pain-n { font-weight: 900; font-size: 14px; color: var(--muted); letter-spacing: .08em; }
.quotes { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quotes-title { grid-column: 1 / -1; margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.quotes blockquote { margin: 0; background: var(--ink); color: var(--bg); border-radius: 24px; padding: 24px; font-family: var(--display); font-size: 19px; line-height: 1.35; display: grid; gap: 14px; align-content: space-between; }
.quotes cite { font-family: var(--sans); font-style: normal; font-size: 13px; color: var(--lime); }
@media (max-width: 900px) { .grid2, .quotes { grid-template-columns: 1fr; } }

/* autore in hero */
.author { display: flex; align-items: center; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.author img { width: 56px; height: 56px; border-radius: 18px; object-fit: cover; }
.author div { display: grid; line-height: 1.3; }
.author span { color: var(--muted); font-size: 14px; }

/* numeri con etichetta */
.stats-label { margin-bottom: 0; padding-top: 8px; }

/* chi sono */
.me { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.me-photo { margin: 0; position: sticky; top: 96px; }
.me-photo img { width: 100%; height: auto; display: block; border-radius: 32px; aspect-ratio: 1; object-fit: cover; }
.me-text p { margin: 0 0 16px; font-size: 17px; color: #3d4430; max-width: 38em; }
.me-text strong { color: var(--ink); }
.me-text .h2 { margin-bottom: 24px; }
.how { margin-top: 80px; }
.how .step { border-top: 2px solid var(--ink); padding-top: 18px; }
@media (max-width: 900px) {
  .me { grid-template-columns: 1fr; gap: 28px; }
  .me-photo { position: static; max-width: 420px; }
  .how { margin-top: 56px; }
}

/* Rewind (CTA finale) */
.final { padding-bottom: 72px; }
.rewind { background: radial-gradient(ellipse 70% 45% at 50% 58%, rgba(207, 248, 81, .10), transparent 70%), #10130B; color: var(--bg); padding: 88px 0 96px; border-top: 1px solid rgba(251, 251, 249, .08); }
.rewind-head { text-align: center; display: grid; justify-items: center; }
.rewind-head .h2 { max-width: 20ch; }
.rewind-head .sub { max-width: 40em; }
.rewind-video { margin: 36px auto 0; max-width: 860px; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; background: #000; border: 1px solid rgba(251, 251, 249, .12); }
.rewind-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.rewind-caption { text-align: center; color: rgba(251, 251, 249, .6); font-size: 14px; margin: 14px 0 0; }
.rewind-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 860px; margin: 40px auto 0; text-align: center; }
.rewind-stats div { display: grid; gap: 4px; }
.rs-n { font-weight: 900; font-size: 40px; line-height: 1; color: var(--lime); letter-spacing: -.03em; }
.rs-l { font-size: 14px; color: rgba(251, 251, 249, .65); }
.proof { text-align: center; margin: 72px 0 28px; font-size: 18px; color: rgba(251, 251, 249, .65); }
.proof strong { color: var(--bg); }
.rcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.rcard { margin: 0; background: var(--bg); color: var(--ink); border-radius: 20px; padding: 18px 20px; display: grid; gap: 8px; }
.rcard-head { display: flex; gap: 10px; align-items: center; }
.rcard-head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.rcard-head div { display: grid; line-height: 1.25; }
.rcard-head span { font-size: 12px; color: var(--muted); }
.stars { color: #E2A33B; letter-spacing: 2px; font-size: 15px; }
.rcard blockquote { margin: 0; font-size: 14px; line-height: 1.5; color: #2c3224; }
.rewind-cta { margin-top: 44px; display: grid; justify-items: center; gap: 12px; }
.pill--auto { width: auto; padding: 17px 32px; font-size: 17px; }
.micro--light { color: rgba(251, 251, 249, .6); }
.micro--light a { color: var(--lime); }
@media (max-width: 900px) {
  .rcards { grid-template-columns: 1fr; }
  .rewind-stats { grid-template-columns: 1fr; gap: 22px; }
  .rewind { padding: 64px 0 72px; }
  .pill--auto { width: 100%; }
}
.ticks-title { font-weight: 700; margin: 0 0 10px; }
