/* noiinvestiamo.it — foglio di stile */

@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-regular.woff") format("woff"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-bold.woff") format("woff"); font-weight: 700 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-semibold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-bold.woff") format("woff"); font-weight: 700 800; font-display: swap; }

:root {
  --ink: #0E2A27;
  --ink-2: #3F524F;
  --muted: #4A5C59;
  --teal: #0B6B5C;
  --teal-dark: #08493F;
  --teal-soft: #E1EFEB;
  --teal-tint: #E9F4F1;
  --teal-on-dark: #9FD6C9;
  --sun: #F2B33D;
  --sun-soft: #FCEBC4;
  --fog: #F4F7F6;
  --line: #D7E0DE;
  --line-strong: #B9C7C4;
  --white: #FFFFFF;
  --on-dark-muted: #C9D6D3;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.section { padding: 96px 0; }
.section--fog { background: var(--fog); }
.section--dark { background: var(--ink); color: var(--white); }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack-lg { display: flex; flex-direction: column; gap: 40px; }
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { display: grid; gap: 56px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: center; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 12px; z-index: 10; }

.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); }
.h1 { font-size: clamp(38px, 5.4vw, 58px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 700; }
.h2 { font-size: clamp(30px, 3.6vw, 40px); line-height: 1.1; font-weight: 700; }
.h3 { font-size: 21px; font-weight: 700; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 560px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 680px; }
.section-head--row { max-width: none; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }

.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; background: var(--teal-soft); color: var(--teal-dark); font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 999px; }
.pill--sun { background: var(--sun); color: var(--ink); font-weight: 700; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-weight: 600; font-size: 17px; text-decoration: none; padding: 15px 28px; border-radius: 999px; border: 0; cursor: pointer; transition: background .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--teal); color: var(--white); }
.btn--primary:hover { background: var(--teal-dark); color: var(--white); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--sun { background: var(--sun); color: var(--ink); font-weight: 700; }
.btn--sun:hover { background: #E5A322; color: var(--ink); }
.btn--small { font-size: 15px; padding: 11px 20px; }
.btn[disabled] { background: #DCE5E3; color: var(--muted); cursor: not-allowed; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 5; }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.wordmark { font-family: var(--display); font-size: 23px; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.wordmark b { font-weight: 800; }
.wordmark .w2 { font-weight: 500; color: var(--teal); }
.wordmark .w3 { font-weight: 500; color: var(--muted); }
.on-dark .wordmark { color: var(--white); }
.on-dark .wordmark .w2 { color: var(--teal-on-dark); }
.on-dark .wordmark .w3 { color: var(--on-dark-muted); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 15px; font-weight: 500; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--teal); }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.menu-cta, .menu-btn { display: none; }
.menu-btn { width: 44px; height: 44px; flex: none; align-items: center; justify-content: center; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--white); color: var(--ink); cursor: pointer; padding: 0; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 900px) {
  .nav { gap: 10px; }
  .menu-btn { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(14,42,39,.10); padding: 4px 24px 20px; }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 15px 0; border-bottom: 1px solid #E6ECEB; font-size: 17px; }
  .nav-links .menu-cta { display: inline-flex; margin-top: 16px; }
}
@media (max-width: 400px) {
  .header-cta { display: none !important; }
}

/* Hero */
.hero { background: var(--fog); border-bottom: 1px solid var(--line); padding: 80px 0; }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art .dot1 { position: absolute; width: 220px; height: 220px; border-radius: 50%; background: var(--sun); right: 0; top: -30px; }
.hero-art .dot2 { position: absolute; width: 140px; height: 140px; border-radius: 50%; background: var(--ink); left: 10px; bottom: -24px; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card--float { position: relative; width: 100%; max-width: 460px; box-shadow: 0 20px 50px rgba(14,42,39,.12); display: flex; flex-direction: column; gap: 16px; }
.card--fog { background: var(--fog); border: 0; }
.card--link { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, transform .15s; }
.card--link:hover { border-color: var(--teal); color: var(--ink); transform: translateY(-2px); }
.card--link .more { color: var(--teal); font-weight: 600; font-size: 15px; margin-top: 4px; }

.progress { height: 6px; border-radius: 999px; background: #E6ECEB; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--teal); border-radius: 999px; transition: width .3s; }
.progress-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); font-weight: 600; }

.option { display: block; text-align: left; font: inherit; font-size: 15px; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none; }
a.option:hover { border-color: var(--teal); color: var(--ink); }
.option--on { border: 2px solid var(--teal); background: var(--teal-tint); font-weight: 600; }

/* Trust strip */
.trust { border-bottom: 1px solid var(--line); padding: 32px 0; }
.trust .grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.trust-item { display: flex; gap: 12px; align-items: flex-start; }
.trust-item svg { flex: none; }
.trust-item strong { display: block; font-weight: 600; }

.step-num { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--white); background: var(--ink); }
.step-num--teal { background: var(--teal); }
.step-num--sun { background: var(--sun); color: var(--ink); }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; min-width: 640px; border-collapse: collapse; }
th, td { padding: 18px 20px; text-align: left; vertical-align: top; }
thead tr { background: var(--fog); }
tbody tr { border-top: 1px solid var(--line); }
th small { display: block; font-weight: 500; font-size: 14px; color: var(--muted); }
td.other { color: var(--ink-2); }

/* Guide cards */
.guide { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.guide-art { height: 140px; display: flex; align-items: center; justify-content: center; }
.guide-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.tag { font-size: 13px; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: .06em; }
.soon { align-self: flex-start; font-size: 12px; font-weight: 700; background: var(--fog); color: var(--muted); padding: 3px 10px; border-radius: 999px; }

/* Advisor cards */
.advisor { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.advisor-top { display: flex; gap: 14px; align-items: center; }
.advisor-top > div:last-child { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.advisor-avatar { width: 64px; height: 64px; flex: none; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark); display: flex; align-items: center; justify-content: center; }
.advisor-avatar--sun { background: var(--sun-soft); color: #6B4A06; }
.advisor-avatar--grey { background: #DCE3E2; color: var(--ink); }
.advisor-name { font-family: var(--body); font-size: 18px; letter-spacing: 0; margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { background: var(--fog); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; }
.advisor-cta { margin-top: auto; align-self: flex-start; font-weight: 600; font-size: 15px; color: var(--muted); border: 1.5px dashed var(--line-strong); border-radius: 999px; padding: 9px 16px; }

/* Band */
.band .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; padding-top: 72px; padding-bottom: 72px; }
.band p { color: var(--on-dark-muted); font-size: 18px; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 0 0 20px; }
summary { font-weight: 600; font-size: 18px; cursor: pointer; list-style-position: outside; }
details p { margin-top: 12px; color: var(--ink-2); }

/* Footer */
.site-footer { background: var(--fog); border-top: 1px solid var(--line); padding: 56px 0 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 56px; font-size: 15px; }
.footer-cols div { display: flex; flex-direction: column; gap: 10px; }
.footer-cols a { color: var(--ink-2); text-decoration: none; }
.footer-cols a:hover { color: var(--teal); }
.legal { margin-top: 40px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 24px; }

/* Forms */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); box-shadow: 0 12px 40px rgba(14,42,39,.06); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
legend { font-family: var(--display); font-size: clamp(26px, 3vw, 32px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; padding: 0; margin-bottom: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-weight: 600; font-size: 15px; }
input[type=text], input[type=email], input[type=tel], select, textarea { font: inherit; font-size: 16px; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--white); color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: 2px solid var(--teal-soft); }
textarea { resize: vertical; }
.choices { display: flex; flex-direction: column; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); font-size: 16px; }
.choice span::after { content: ""; width: 20px; height: 20px; flex: none; }
.choice:hover span { border-color: var(--teal); }
.choice input:checked + span { border: 2px solid var(--teal); background: var(--teal-tint); font-weight: 600; }
.choice input:checked + span::after { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B6B5C' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/contain no-repeat; }
.choice input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--teal); flex: none; }
.form-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid #E6ECEB; padding-top: 20px; margin-top: 8px; }
.link-btn { font: inherit; font-weight: 600; background: none; border: 0; color: var(--ink); padding: 12px 4px; cursor: pointer; }
.hidden-field { display: none; }
.error { color: #A12C1F; font-size: 14px; font-weight: 600; }
.js .step[hidden] { display: none; }
.no-js-only { display: none; }
html:not(.js) .no-js-only { display: block; }
html:not(.js) .js-only { display: none; }
html:not(.js) .step + .step { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--line); }

/* Prose (privacy) */
.prose h2 { font-size: 26px; margin-top: 40px; margin-bottom: 12px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }

.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: flex; gap: 10px; }
.checklist svg { flex: none; margin-top: 1px; }
.steps-list { list-style: none; margin: 0; padding: 0; }
.steps-list li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps-list li:last-child { border-bottom: 0; }
.steps-list .n { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--teal); width: 28px; flex: none; }
.steps-list strong { display: block; }

.step-head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.q-main { padding-top: 48px; padding-bottom: 80px; }
.pc-hero { padding-top: 64px; padding-bottom: 96px; }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .section { padding: 56px 0; }
  .stack { gap: 20px; }
  .stack-lg { gap: 28px; }
  .grid { gap: 16px; }
  .grid-2 { gap: 32px; }
  .h1 { font-size: 34px; line-height: 1.08; }
  .h2 { font-size: 27px; line-height: 1.15; }
  .lead { font-size: 17px; }
  .eyebrow { font-size: 13px; }
  .pill { font-size: 13px; padding: 5px 12px; }
  .hide-sm { display: none !important; }

  /* Header su una riga */
  .site-header .container { flex-wrap: nowrap; padding-top: 10px; padding-bottom: 10px; gap: 12px; }
  .logo { gap: 8px; min-width: 0; }
  .logo svg { width: 26px; height: 26px; }
  .wordmark { font-size: 19px; }
  .nav { flex-wrap: nowrap; }
  .nav .btn { font-size: 14px; padding: 10px 14px; white-space: nowrap; }
  .nav-links .menu-cta { font-size: 16px; padding: 14px 20px; }

  /* Pulsanti a tutta larghezza */
  .btns { flex-direction: column; align-items: stretch; gap: 10px; }
  .btns .btn { width: 100%; padding: 14px 20px; font-size: 16px; }

  /* Hero */
  .hero { padding: 32px 0 44px; }
  .hero-art .dot1, .hero-art .dot2 { display: none; }
  .card--float { max-width: none; box-shadow: 0 8px 24px rgba(14,42,39,.08); }
  .pc-hero { padding-top: 32px; padding-bottom: 56px; }

  /* Card */
  .card, .advisor { padding: 20px; }
  .card--link { padding: 16px 44px 16px 18px; gap: 4px; position: relative; }
  .card--link strong { font-size: 16px !important; }
  .card--link .muted { font-size: 14px; }
  .card--link .more { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); margin: 0; font-size: 0; }
  .card--link .more::after { content: "→"; font-size: 20px; }
  .step-head { flex-direction: row; align-items: center; gap: 14px; }
  .step-num { width: 38px; height: 38px; font-size: 17px; flex: none; }
  .h3 { font-size: 19px; }
  .guide-art { height: 96px; }
  .guide-art svg { width: 48px; height: 48px; }
  .guide-body { padding: 18px 20px; }
  .advisor-avatar { width: 52px; height: 52px; }

  .trust { padding: 24px 0; }
  .trust .grid { gap: 18px; }

  /* Tabella trasformata in schede */
  .table-wrap { overflow: visible; }
  table { min-width: 0; }
  thead { display: none; }
  table, tbody, tr, th, td { display: block; width: 100%; }
  tbody tr { padding: 18px 18px 14px; }
  tbody tr:first-child { border-top: 0; }
  th[scope=row] { padding: 0 0 10px; font-size: 17px; }
  td { padding: 0 0 10px; }
  td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: 2px; }
  td.other::before { color: var(--muted); }

  /* Fascia consulenti, FAQ, footer */
  .band .container { padding-top: 48px; padding-bottom: 48px; gap: 24px; }
  .band .btn { width: 100%; }
  .band p { font-size: 16px; }
  summary { font-size: 16px; }
  details { padding-bottom: 16px; }
  .site-footer { padding: 40px 0 28px; }
  .footer-top { gap: 28px; }
  .footer-cols { gap: 28px 40px; }
  .legal { margin-top: 28px; }

  /* Questionario */
  .q-main { padding-top: 24px; padding-bottom: 48px; }
  .choice span { padding: 14px 16px; font-size: 15px; }
  .form-nav .btn { padding: 14px 22px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Card scorrevoli in orizzontale su mobile */
@media (max-width: 640px) {
  .scroller { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -20px; padding: 0 20px 8px; scrollbar-width: none; }
  .scroller::-webkit-scrollbar { display: none; }
  .scroller > * { flex: 0 0 84%; scroll-snap-align: start; scroll-margin-left: 20px; }
  .checklist li { font-size: 15px; }
}

/* I link interni non finiscono sotto l'intestazione fissa */
section[id], main[id] { scroll-margin-top: 72px; }
@media (max-width: 640px) { .nav-links { padding: 4px 20px 20px; } }
