/* eClaps — layout: colonna editoriale allineata a sinistra, fasce piene a tutta larghezza, schede campagna come elemento firma */
:root {
  --paper: #FFFFFF;
  --surface: #FFFFFF;
  --tint: #E3F5F5;
  --peach: #FFF2EA;
  --ink: #1E3A3C;
  --text: #3A4A4C;
  --muted: #5E6E70;
  --line: #DCE8E8;
  --accent: #127C7F;
  --accent-text: #0F6E71;
  --accent-soft: #E3F5F5;
  --on-accent: #FFFFFF;
  --orange: #FF985A;
  --orange-text: #B4501A;
  --band: #173436;
  --band-text: #F1F8F8;
  --band-muted: #A9C3C4;
  --band-label: #7FD6D8;
  --ok: #1F7A55;
  --blue-muted: #D9F1F1;
  --blue-label: #FFC9A8;
  color-scheme: light;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "Figtree", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1180px;
  --r: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 800; font-stretch: 92%; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 800; font-stretch: 94%; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 58ch; }
.prose { max-width: 66ch; display: grid; gap: 1rem; }
.label { font: 500 0.75rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-text); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* Header */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--accent); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: #FFFFFF; text-decoration: none; font-weight: 500; font-size: 0.97rem; padding: 8px 12px; border-radius: 6px; }
.nav a:hover { background: rgba(255,255,255,.14); }
.nav a[aria-current="page"] { color: #FFFFFF; box-shadow: inset 0 -2px 0 #FFFFFF; border-radius: 0; }
.head-cta { display: flex; gap: 8px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.5); color: #FFFFFF; border-radius: 8px; padding: 8px 12px; font: 600 0.9rem var(--body); cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 1rem/1 var(--body); padding: 14px 22px; border-radius: 8px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--tint); }
.btn-sm { padding: 10px 16px; font-size: 0.93rem; }
.on-band .btn-ghost { border-color: var(--band-text); color: var(--band-text); }
.on-band .btn-ghost:hover { background: rgba(255,255,255,.08); }

/* Sections */
section { padding-block: clamp(56px, 8vw, 104px); }
.sec-head { display: grid; gap: 14px; margin-bottom: 44px; max-width: 760px; }
.band { background: var(--band); color: var(--band-text); }
.band h1, .band h2, .band h3 { color: var(--band-text); }
.band .lede, .band p.muted { color: var(--band-muted); }
.band .label { color: var(--band-label); }
.tinted { background: var(--tint); }

/* Hero */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(48px, 6vw, 80px); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero h1 em { font-style: normal; color: var(--orange-text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { font-size: 0.85rem; color: var(--muted); max-width: 52ch; }
.page-hero { padding-block: clamp(48px, 6vw, 84px) clamp(36px, 5vw, 60px); border-bottom: 1px solid var(--line); }
.page-hero .wrap { display: grid; gap: 20px; }
.crumb { font: 500 0.8rem var(--mono); color: var(--muted); }
.crumb a { color: var(--muted); }

/* Campaign card (signature element) */
.campaign { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(23,20,46,.35); }
.campaign .cover { aspect-ratio: 16 / 7; position: relative; background: var(--tint); }
.campaign .cover canvas, .campaign .cover svg { width: 100%; height: 100%; display: block; }
.campaign .tag { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font: 600 0.72rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 6px 8px; border-radius: 5px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.chip.hot { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.chip.example { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.campaign .body { padding: 20px; display: grid; gap: 14px; flex: 1; align-content: start; }
.campaign .who { font-size: 0.85rem; color: var(--muted); }
.campaign h3 { font-size: 1.15rem; }
.bar { height: 8px; background: var(--tint); border-radius: 99px; overflow: hidden; position: relative; }
.bar span { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 99px; }
.bar i { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); }
.raise { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.raise strong { font: 700 1.35rem var(--display); color: var(--ink); }
.raise small { color: var(--muted); font-size: 0.85rem; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.facts div { padding: 12px 14px; display: grid; gap: 2px; border-right: 1px solid var(--line); min-width: 0; }
.facts div:last-child { border-right: 0; }
.facts dt { font: 500 0.68rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; font: 600 0.88rem var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.legend { font-size: 0.78rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.legend i { display: inline-block; width: 2px; height: 12px; background: var(--ink); }

/* Grids */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Path cards (investitori / aziende / club) */
.path { display: grid; gap: 16px; padding: 30px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); align-content: start; text-decoration: none; color: inherit; transition: border-color .15s ease; }
.path:hover { border-color: var(--accent); }
.path .go { font-weight: 600; color: var(--accent-text); margin-top: auto; }
.path.feature { background: var(--band); border-color: var(--band); color: var(--band-text); }
.path.feature h3 { color: var(--band-text); } .path.feature .label, .path.feature .go { color: var(--band-label); }
.path.feature p { color: var(--band-muted); }

/* Instrument rows */
.rows { display: grid; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 220px 1fr 1fr; gap: 28px; padding-block: 28px; border-bottom: 1px solid var(--line); }
.row > * { min-width: 0; }
.row h3 { font-size: 1.35rem; }
.row .risk { font-size: 0.95rem; color: var(--muted); }
.row .risk b { color: var(--ink); font-weight: 600; display: block; margin-bottom: 4px; font-size: 0.8rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; }

/* Steps (real sequence) */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.step { padding: 24px 24px 24px 0; border-top: 2px solid var(--ink); display: grid; gap: 10px; align-content: start; counter-increment: s; }
.step + .step { padding-left: 24px; border-left: 1px solid var(--line); }
.step::before { content: counter(s, decimal-leading-zero); font: 600 0.85rem var(--mono); color: var(--accent-text); }
.band .step { border-top-color: var(--band-text); }
.band .step + .step { border-left-color: rgba(255,255,255,.12); }
.band .step p { color: var(--band-muted); }

/* Compare table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 0.97rem; }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font: 700 1.05rem var(--display); color: var(--ink); background: var(--tint); }
tbody th { font: 500 0.78rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); width: 22%; }
tr:last-child th, tr:last-child td { border-bottom: 0; }

/* Facts strip */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.strip div { padding: 26px 22px; display: grid; gap: 6px; border-right: 1px solid var(--line); }
.strip div:last-child { border-right: 0; }
.strip strong { font: 800 1.9rem/1 var(--display); color: var(--ink); font-stretch: 90%; }
.strip span { font-size: 0.92rem; color: var(--muted); }

/* Notice / risk box */
.notice { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 18px 22px; border-radius: 0 var(--r) var(--r) 0; font-size: 0.95rem; color: var(--text); display: grid; gap: 6px; }
.notice strong { color: var(--ink); }

/* Checklist */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font: 700 1.1rem/1.35 var(--display); color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 400 1.6rem var(--body); color: var(--accent-text); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 24px; max-width: 70ch; color: var(--text); display: grid; gap: 10px; }
.faq-group { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding-block: 24px; }
.faq-group > * { min-width: 0; }

/* Forms */
.form { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(22px, 3vw, 34px); }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.field input, .field select, .field textarea { font: 400 1rem var(--body); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.consent { display: flex; gap: 10px; font-size: 0.88rem; color: var(--muted); align-items: flex-start; }
.consent input { margin-top: 4px; accent-color: var(--accent); }
.form-msg { font-size: 0.95rem; padding: 12px 14px; border-radius: 8px; background: var(--tint); color: var(--ink); }

/* Club tiers */
.club-card { display: grid; gap: 18px; padding: 32px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); align-content: start; }
.club-card.dark { background: var(--band); border-color: var(--band); color: var(--band-text); }
.club-card.dark h3 { color: var(--band-text); }
.club-card.dark p, .club-card.dark li { color: var(--band-muted); }
.club-card.dark .label { color: var(--band-label); }

/* CTA band */
.cta .wrap { display: grid; grid-template-columns: 1.3fr auto; gap: 32px; align-items: end; }
.cta .acts { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.site-foot { background: var(--band); color: var(--band-muted); padding-block: 64px 36px; font-size: 0.93rem; }
.site-foot .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
.site-foot h4 { font: 600 0.75rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--band-text); margin-bottom: 14px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot a { color: var(--band-muted); text-decoration: none; }
.site-foot a:hover { color: var(--band-text); }
.site-foot .logo img { height: 28px; width: auto; margin-bottom: 16px; }
.legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: grid; gap: 12px; font-size: 0.82rem; line-height: 1.55; }
.legal p { max-width: 110ch; }

/* Responsive */
@media (max-width: 980px) {
  .hero .wrap, .cta .wrap { grid-template-columns: 1fr; }
  .g4, .steps, .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .strip div:nth-child(2) { border-right: 0; }
  .strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .g3 { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 1fr 1fr; }
  .row h3 { grid-column: 1 / -1; }
  .site-foot .cols { grid-template-columns: 1fr 1fr; }
  .faq-group { grid-template-columns: 1fr; gap: 8px; }
  .menu-btn { display: inline-block; }
  .nav, .head-cta { display: none; }
  .site-head.open .wrap { flex-wrap: wrap; }
  .site-head.open .nav { display: flex; flex-direction: column; align-items: stretch; width: 100%; order: 3; padding-bottom: 8px; }
  .site-head.open .head-cta { display: flex; width: 100%; order: 4; padding-bottom: 16px; }
  .site-head.open .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 #FFFFFF; }
}
@media (max-width: 640px) {
  .g2, .g3, .g4, .steps, .strip, .row, .form .two { grid-template-columns: 1fr; }
  .step, .step + .step { padding-left: 0; border-left: 0; }
  .strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .strip div:last-child { border-bottom: 0; }
  .site-foot .cols { grid-template-columns: 1fr; }
  .facts dd { font-size: 0.9rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Filtri campagne */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { font: 600 0.92rem var(--body); padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }


/* Header: pulsanti su fondo cobalto */
.site-head .btn-ghost { border-color: rgba(255,255,255,.7); color: #FFFFFF; }
.site-head .btn-ghost:hover { background: rgba(255,255,255,.14); }
.site-head .btn-primary { background: #FFFFFF; color: var(--accent); }
.site-head .btn-primary:hover { background: var(--accent-soft); }
.site-head a:focus-visible, .site-head button:focus-visible { outline-color: #FFFFFF; }

/* Fascia cobalto, alternata alla fascia blu notte */
.band-blue { background: var(--accent); }
.band-blue .lede, .band-blue p.muted, .band-blue .step p, .band-blue .prose p { color: var(--blue-muted); }
.band-blue .label, .band-blue .crumb, .band-blue .crumb a { color: var(--blue-label); }
.band-blue .step { border-top-color: #FFFFFF; }
.band-blue .step::before { color: #FFFFFF; }
.band-blue .step + .step { border-left-color: rgba(255,255,255,.22); }
.band-blue .btn-primary { background: #FFFFFF; color: var(--accent); }
.band-blue .btn-primary:hover { background: var(--accent-soft); }
.band-blue a:not(.btn):not(.path) { color: #FFFFFF; }
.band-blue .checks li::before { border-color: #FFFFFF; }
.band-blue .checks li, .band-blue .prose li { color: var(--band-text); }
.band-blue .path { border-color: transparent; }
.band-blue .path:hover { border-color: var(--band); }
.band-blue a:focus-visible { outline-color: #FFFFFF; }

/* Testata delle pagine interne in blu notte */
.page-hero.band { border-bottom: 0; }
.band .crumb, .band .crumb a { color: var(--band-muted); }
.band .notice { background: rgba(255,255,255,.06); color: var(--band-text); border-left-color: var(--band-label); }
.band .notice strong { color: #FFFFFF; }
.band .btn-ghost { border-color: var(--band-text); color: var(--band-text); }
.band .checks li::before { border-color: var(--band-label); }

/* Elementi chiari dentro le fasce scure tornano ai colori del testo normale */
.band .table-wrap, .band .form, .band .path:not(.feature) { color: var(--text); }
.band .form h3, .band .path:not(.feature) h3 { color: var(--ink); }
.band .path:not(.feature) .label { color: var(--accent-text); }
.band .path:not(.feature) .go { color: var(--accent-text); }
.band .table-wrap { border-color: transparent; }

/* Alternanza: bianco, turchese chiaro, pesca, petrolio, ardesia */
.peach { background: var(--peach); }
.hero { background: var(--tint); }
.peach .label { color: var(--orange-text); }
.chip.hot { background: var(--orange); color: #3A1A06; border-color: var(--orange); }
.peach .notice, .notice { border-left-color: var(--orange); }
.notice { background: var(--peach); }
.path.feature { background: var(--band); }
.band-blue .path:hover { border-color: var(--orange); }

/* Pagina "prossimamente" */
.soon-pill { font: 600 0.75rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: #FFFFFF; border: 1px solid rgba(255,255,255,.55); border-radius: 99px; padding: 6px 12px; }
.site-head .soon-cta { margin-left: auto; }
.soon-hero .wrap { align-items: start; }
.soon-facts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.soon-facts li { display: grid; grid-template-columns: 190px 1fr; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line); align-items: baseline; }
.soon-facts strong { font: 700 1.05rem var(--display); color: var(--ink); }
.soon-facts span { color: var(--muted); font-size: 0.95rem; }
div.path:hover { border-color: transparent; }
.site-foot .logo p { max-width: 60ch; }
@media (max-width: 640px) { .soon-pill { display: none; } .soon-facts li { grid-template-columns: 1fr; gap: 2px; } }
