/* Moltiplicati — stili. Mobile first; breakpoint principali a 640, 900 e 1100 px. */

/* ---------- font (OFL, ospitati nel sito; licenze in assets/fonts/FONT-LICENSES.md) ---------- */
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-display-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-display-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url("../fonts/martian-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url("../fonts/martian-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url("../fonts/martian-mono-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- token ---------- */
:root {
  --paper: #F4F5F1;
  --paper-2: #ECEEE8;
  --card: #FFFFFF;
  --ink: #101814;
  --ink-2: #36423B;
  --muted: #56625B;
  --soft: #66716B;
  --line: rgba(16, 24, 20, .14);
  --line-strong: rgba(16, 24, 20, .28);
  --green: #0A7A41;        /* testo e link su fondo chiaro */
  --green-g: #0A964E;      /* grafica */
  --green-hi: #3FD983;     /* su fondo scuro */
  --dark: #0F1612;
  --on-dark: #E8ECE9;
  --on-dark-2: #B4BEB8;
  --on-dark-line: rgba(232, 236, 233, .16);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --hh: 68px;              /* altezza intestazione */
  --radius: 6px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hh) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
a:hover { color: var(--green); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }
.dark :focus-visible, .site-footer :focus-visible { outline-color: var(--green-hi); }
sup { font-size: .62em; line-height: 0; }
sup a { text-decoration: none; color: var(--green); font-weight: 600; padding: 0 1px; }
.dark sup a { color: var(--green-hi); }
em { font-style: italic; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 4px; text-decoration: none; }
.skip:focus { top: 12px; color: var(--paper); }

h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.022em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.4rem); line-height: 1.06; }
h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); line-height: 1.6; color: var(--ink-2); }
.fine { font-size: .9375rem; color: var(--muted); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.note { font-family: var(--mono); font-size: .75rem; color: var(--muted); }

.eyebrow { font-family: var(--mono); font-size: .75rem; line-height: 1.6; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow .num, .eyebrow .x { margin-right: .6em; }
.eyebrow .num, .eyebrow .x { color: var(--green); }
.eyebrow .num::after { content: ""; display: inline-block; width: 22px; height: 1px; background: currentColor; margin-left: .75em; vertical-align: .3em; opacity: .6; }

/* ---------- pulsanti e link ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 24px; border-radius: 4px; border: 1px solid transparent; font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.btn span[aria-hidden] { transition: transform .2s ease; }
.btn:hover span[aria-hidden] { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--green); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--on-dark); color: var(--dark); }
.btn-light:hover { background: var(--green-hi); color: var(--dark); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-plain { font-weight: 500; text-underline-offset: 5px; text-decoration-thickness: 1px; min-height: 44px; display: inline-flex; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--green); font-weight: 600; text-decoration: none; }
.link-arrow span { transition: transform .2s ease; }
.link-arrow:hover span { transform: translateX(3px); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

/* ---------- logo: un × in un quadrato; durante il momento firma parte come + ---------- */
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); min-height: 44px; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 30px; height: 30px; border-radius: 4px; background: var(--ink); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.logo-x { position: relative; width: 16px; height: 16px; transition: transform .5s cubic-bezier(.65, 0, .35, 1); }
.logo-x::before, .logo-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 17px; height: 2.4px; border-radius: 2px; background: var(--green-hi); transition: background .5s ease; }
.logo-x::before { transform: translate(-50%, -50%) rotate(45deg); }
.logo-x::after { transform: translate(-50%, -50%) rotate(-45deg); }
html.sig:not(.sig-turn) .site-header .logo-x { transform: rotate(-45deg); }
html.sig:not(.sig-turn) .site-header .logo-x::before, html.sig:not(.sig-turn) .site-header .logo-x::after { background: var(--paper); }
.logo-word { font-family: var(--mono); font-weight: 500; font-size: 1.0625rem; letter-spacing: -.02em; }
.logo-light { color: var(--on-dark); }
.logo-light:hover { color: var(--on-dark); }
.logo-light .logo-mark { background: var(--on-dark); }
.logo-light .logo-x::before, .logo-light .logo-x::after { background: var(--green); }

/* ---------- intestazione ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid transparent; transition: border-color .25s ease; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { height: var(--hh); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-desktop { display: none; align-items: center; gap: 30px; font-size: .9375rem; font-weight: 500; }
.nav-desktop a:not(.btn) { text-decoration: none; padding: 10px 0; }
.burger { width: 44px; height: 44px; margin-right: -10px; border: 0; background: transparent; cursor: pointer; position: relative; color: var(--ink); }
.burger span { position: absolute; left: 11px; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .35s cubic-bezier(.65, 0, .35, 1), top .35s ease; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.nav-mobile { border-top: 1px solid var(--line); background: var(--paper); height: calc(100vh - var(--hh)); height: calc(100dvh - var(--hh)); overflow-y: auto; overscroll-behavior: contain; }
.nav-mobile .wrap { display: flex; flex-direction: column; padding-block: 8px 20px; }
.nav-mobile a:not(.btn) { display: flex; align-items: center; min-height: 52px; font-size: 1.125rem; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); }
.nav-mobile .btn { margin-top: 18px; }
.nav-desktop a[aria-current="page"], .nav-mobile a[aria-current="page"] { color: var(--green); }
@media (min-width: 900px) {
  :root { --hh: 76px; }
  .nav-desktop { display: flex; }
  .burger, .nav-mobile { display: none !important; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; display: flex; flex-direction: column; isolation: isolate; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-inner { position: relative; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; padding-block: clamp(36px, 7vw, 64px) 0; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; max-width: 880px; }
.hero h1 { font-size: clamp(2.35rem, 1.3rem + 4.3vw, 4.375rem); line-height: 1.03; }
.hero h1 > span { display: block; }
.hero .h1-soft { color: var(--soft); }
.hero .lead { max-width: 600px; color: var(--ink-2); }
.hero-mark { height: clamp(150px, 42vw, 220px); }
.hero-in { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hero-lead { display: flex; flex-direction: column; gap: 12px; max-width: 620px; }
.hero-choice { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.choice-label { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.hero-choice .cta-row { gap: 12px; }
@media (max-width: 559px) { .hero-choice .btn { width: 100%; justify-content: space-between; } }

@media (min-width: 900px) {
  .hero { min-height: min(calc(100svh - var(--hh)), 940px); }
  .hero-inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; align-content: center; padding-block: clamp(40px, 7vh, 88px); }
  .hero-copy { gap: 26px; }
  .hero-mark { height: 100%; min-height: 320px; }
}

/* ---------- sezioni ---------- */
.section { padding-block: clamp(72px, 9vw, 128px); }
.section.alt { background: var(--paper-2); }
.section.dark { background: var(--dark); color: var(--on-dark); }
.dark .eyebrow { color: #9BA69F; }
.dark .eyebrow .num, .dark .eyebrow .x { color: var(--green-hi); }
.dark p { color: var(--on-dark-2); }
.dark .note { color: #9BA69F; }
.dark a:hover { color: var(--green-hi); }
.section-head { max-width: 780px; display: flex; flex-direction: column; gap: 18px; margin-bottom: clamp(36px, 5vw, 60px); }
.split { display: grid; gap: clamp(44px, 6vw, 96px); align-items: center; }
.split-text { display: flex; flex-direction: column; gap: 20px; }
.split-text h2 { margin-bottom: 4px; }
@media (min-width: 1000px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  .split-top { align-items: start; }
}

/* reveal: solo con JavaScript attivo, mai con movimento ridotto */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
  html.js [data-reveal].in { opacity: 1; transform: none; }
}

/* ---------- 01 confronto: + strumento, × squadra ---------- */
.compare { border-bottom: 1px solid var(--line-strong); }
.compare-head, .compare-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; border-top: 1px solid var(--line-strong); }
.compare-head { padding: 12px 0; font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.compare-head span { display: inline-flex; align-items: center; gap: 10px; }
.compare-head span:last-child { color: var(--green); }
.compare-head b { font-weight: 500; font-size: 1rem; letter-spacing: 0; }
.compare-row { padding: 22px 0; align-items: baseline; }
.compare dt { color: var(--muted); font-size: 1rem; }
.compare dd { font-family: var(--serif); font-weight: 500; font-size: clamp(1.25rem, 1.05rem + .7vw, 1.625rem); line-height: 1.2; letter-spacing: -.015em; }
@media (min-width: 1000px) { #prospettiva .split { align-items: end; } }

/* ---------- 02 servizi ---------- */
.services { display: grid; gap: 20px; }
.service { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3.4vw, 44px); display: flex; flex-direction: column; gap: 16px; }
.service-num { font-family: var(--mono); font-size: .8125rem; color: var(--green); }
.service h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); letter-spacing: -.02em; line-height: 1.1; }
.service .claim { font-weight: 600; }
.service > p:not(.claim):not(.fine) { color: var(--ink-2); }
.service .link-arrow { margin-top: auto; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-family: var(--mono); font-size: .75rem; line-height: 1.3; padding: 7px 10px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); }
.tags-lg li { font-family: var(--sans); font-size: .875rem; background: var(--card); }
.phases { display: grid; gap: 10px; }
.phases div { background: var(--paper); border-radius: 4px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.phases strong { font-size: .9375rem; }
.phases span { font-size: .9375rem; color: var(--ink-2); }
.bridge { margin-top: 32px; color: var(--ink-2); }
.bridge a { color: var(--green); font-weight: 600; text-underline-offset: 4px; }
@media (min-width: 900px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }

/* ---------- 03 offerte ---------- */
.offers { display: grid; gap: 16px; }
.offer { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 2.6vw, 32px); display: flex; flex-direction: column; gap: 12px; }
.offer-meta { font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.offer p:not(.offer-meta):not(.price) { color: var(--ink-2); font-size: 1rem; }
.offer .price { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--mono); font-weight: 500; }
#iniziare .fine.center { margin-top: 28px; }
@media (min-width: 900px) { .offers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }

/* ---------- 04 come lavoriamo: + → × ---------- */
.steps { display: grid; gap: 36px; margin-bottom: clamp(40px, 5vw, 56px); counter-reset: step; }
.step { border-top: 1px solid var(--on-dark-line); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.step h3 { color: var(--on-dark); font-size: 1.375rem; }
.step h3::before { counter-increment: step; content: "0" counter(step) "  "; font-family: var(--mono); font-size: .8125rem; font-weight: 500; color: var(--green-hi); vertical-align: .2em; white-space: pre; }
.step-mark { width: 48px; height: 48px; border: 1px solid var(--on-dark-line); border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.step-mark span { position: relative; width: 20px; height: 20px; transition: transform .9s cubic-bezier(.65, 0, .35, 1) .25s; }
.step-mark span::before, .step-mark span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 2px; border-radius: 2px; background: var(--on-dark); transform: translate(-50%, -50%); transition: background .6s ease .5s; }
.step-mark span::after { transform: translate(-50%, -50%) rotate(90deg); }
.step.in .sm-turn { transform: rotate(22.5deg); }
.step.in .sm-times { transform: rotate(45deg); }
.step.in .sm-times::before, .step.in .sm-times::after { background: var(--green-hi); }
html:not(.js) .sm-turn { transform: rotate(22.5deg); }
html:not(.js) .sm-times { transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) { .sm-turn { transform: rotate(22.5deg); } .sm-times { transform: rotate(45deg); } }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }

/* ---------- 05 perché ---------- */
.reasons { display: grid; gap: 32px; }
.reason { border-top: 1px solid var(--line-strong); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.reason p { color: var(--ink-2); }
@media (min-width: 760px) { .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 56px; } }

/* ---------- livelli dello Sprint AI ---------- */
.levels { display: grid; gap: 16px; }
@media (min-width: 760px) { .levels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
.level { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 10px; }
.level:last-child { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.level:last-child p:not(.level-num) { color: var(--on-dark-2); }
.level:last-child .level-num { color: var(--green-hi); }
.level-num { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--green); }
.level h3 { font-family: var(--serif); font-weight: 500; font-size: 2.25rem; line-height: 1; letter-spacing: -.02em; }
.level .level-when { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: .75rem; color: var(--ink-2); }
.level:last-child .level-when { border-top-color: var(--on-dark-line); color: #9BA69F; }

/* ---------- domande ---------- */
.faq-wrap .section-head { margin-bottom: clamp(28px, 4vw, 44px); }
.faq { max-width: 880px; border-bottom: 1px solid var(--line-strong); }
.faq-group { margin: 0 0 12px; font-family: var(--mono); font-size: .75rem; font-weight: 500; line-height: 1.6; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.faq + .faq-group { margin-top: clamp(40px, 5vw, 56px); }
.faq details { border-top: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 16px 0; font-weight: 600; font-size: 1.0625rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--green); }
.faq-x { position: relative; flex: none; width: 18px; height: 18px; transition: transform .45s cubic-bezier(.65, 0, .35, 1); }
.faq-x::before, .faq-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; border-radius: 2px; background: currentColor; transform: translate(-50%, -50%); }
.faq-x::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] .faq-x { transform: rotate(45deg); color: var(--green); }
.faq details p { padding: 0 0 22px; max-width: 720px; color: var(--ink-2); }
@media (min-width: 900px) { .faq summary { font-size: 1.125rem; } }

/* ---------- chi siamo ---------- */
.team { display: grid; gap: 28px; }
.person { display: flex; flex-direction: column; gap: 8px; }
.portrait { position: relative; aspect-ratio: 4 / 5; border-radius: 4px; background: #DDE1D9; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.initials { font-family: var(--serif); font-size: 3.5rem; color: #8C978F; }
.ph { position: absolute; bottom: 12px; left: 12px; font-family: var(--mono); font-size: .6875rem; color: var(--muted); }
.person .role { display: block; font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--green); }
.person p:not(.role) { color: var(--ink-2); font-size: 1rem; }
#chi-siamo > .wrap > .fine { margin-top: 36px; }
@media (min-width: 640px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .team { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }

/* ---------- contatto ---------- */
.contact { display: grid; gap: 40px; align-items: start; }
.contact-intro { display: flex; flex-direction: column; gap: 18px; }
.contact-intro h2 { color: var(--on-dark); }
.contact-intro a { color: var(--on-dark); text-underline-offset: 4px; }
.form-card { background: var(--card); color: var(--ink); border-radius: 8px; padding: clamp(20px, 3.4vw, 40px); }
.form-card p { color: var(--muted); }
#lead-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-row { display: grid; gap: 18px; }
label, legend { font-size: .9375rem; font-weight: 600; color: var(--ink); }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], textarea { width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: #fff; border: 1px solid #C5CBC3; border-radius: 4px; padding: 0 14px; min-height: 50px; transition: border-color .2s ease, box-shadow .2s ease; -webkit-appearance: none; appearance: none; }
textarea { padding: 12px 14px; min-height: 120px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #8A948D; }
input:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(10, 122, 65, .18); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 10px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 14px; border-radius: 4px; border: 1px solid #C5CBC3; background: #fff; color: var(--ink); font: 500 .9375rem/1.2 var(--sans); cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.quiz { background: var(--paper); border-radius: 6px; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.quiz-head { display: flex; flex-direction: column; gap: 2px; }
.quiz-head strong { color: var(--ink); }
.quiz-head span { font-size: .875rem; }
.checks { display: grid; gap: 4px; }
.checks.gift { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.checks label, .radio-row label { display: flex; align-items: center; gap: 10px; min-height: 40px; font-weight: 400; font-size: .9375rem; cursor: pointer; }
.radio-row { display: flex; flex-wrap: wrap; gap: 0 18px; }
.freq legend { font-size: .875rem; margin-bottom: 4px; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--green); flex: none; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-card .fine { font-size: .8125rem; }
.form-card .fine a { color: var(--ink); }
.form-error { color: #A3261B !important; font-weight: 500; font-size: .9375rem; }
.thanks { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 0; }
.thanks:focus { outline: none; }
.thanks h3 { font-family: var(--serif); font-weight: 500; font-size: 2rem; }
.thanks-mark { width: 52px; height: 52px; border-radius: 6px; background: var(--ink); position: relative; }
.thanks-mark::before, .thanks-mark::after { content: ""; position: absolute; left: 50%; top: 50%; width: 26px; height: 3px; border-radius: 2px; background: var(--green-hi); transform: translate(-50%, -50%) rotate(45deg); }
.thanks-mark::after { transform: translate(-50%, -50%) rotate(-45deg); }
@media (min-width: 560px) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; } }
@media (min-width: 1000px) { .contact { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; } .contact-intro { position: sticky; top: calc(var(--hh) + 32px); } }

/* ---------- piè di pagina ---------- */
.site-footer { background: var(--dark); color: var(--on-dark); border-top: 1px solid var(--on-dark-line); padding-block: 48px calc(40px + env(safe-area-inset-bottom)); }
.site-footer .muted { color: #9BA69F; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 40px; margin-bottom: 32px; }
.footer-top .muted { margin-top: 12px; font-size: .9375rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-links a { color: var(--on-dark); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.footer-links a:hover { color: var(--green-hi); }
.sources { list-style: decimal; padding-left: 1.2em; margin-top: 14px; font-size: .75rem; color: #8F9A93; display: grid; gap: 2px; }

/* ---------- pagine legali ---------- */
.legal { padding-block: clamp(48px, 7vw, 96px) clamp(72px, 9vw, 120px); }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem); line-height: 1.05; margin: 14px 0 10px; }
.legal .updated { font-family: var(--mono); font-size: .75rem; color: var(--muted); margin-bottom: 36px; }
.legal h2 { font-size: clamp(1.375rem, 1.2rem + .6vw, 1.75rem); line-height: 1.2; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 1.25em; display: grid; gap: 8px; margin-top: 12px; }
.legal a { color: var(--green); text-underline-offset: 3px; }
.legal address { font-style: normal; line-height: 1.7; color: var(--ink); }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; text-decoration: none; }

/* ---------- home: le due porte ---------- */
.doors { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.door { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 18px; background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: border-color .2s ease, transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s ease; }
.door:hover { color: var(--ink); border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 12px 30px -20px rgba(16, 24, 20, .5); }
.door:focus-visible { outline-offset: 4px; }
.door-label { font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.door-title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem); line-height: 1.05; letter-spacing: -.02em; }
.door-text { font-size: .9375rem; line-height: 1.5; color: var(--ink-2); }
.door-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: .75rem; color: var(--ink-2); }
.door-arrow { font-family: var(--sans); font-size: 1.125rem; line-height: 1; color: var(--green); transition: transform .25s ease; }
.door:hover .door-arrow { transform: translateX(4px); }
.door-priv { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.door-priv:hover { color: var(--on-dark); border-color: var(--green-hi); }
.door-priv .door-label, .door-priv .door-arrow, .door-priv .door-title em { color: var(--green-hi); }
.door-priv .door-text { color: var(--on-dark-2); }
.door-priv .door-foot { border-top-color: var(--on-dark-line); color: #9BA69F; }

/* ---------- testata delle pagine interne: campo di + che sfuma ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(52px, 9vw, 120px) clamp(56px, 8vw, 104px); border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .22; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34'%3E%3Cpath d='M17 12.5v9M12.5 17h9' stroke='%23101814' stroke-width='1.2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E"); -webkit-mask-image: linear-gradient(105deg, transparent 35%, #000 90%); mask-image: linear-gradient(105deg, transparent 35%, #000 90%); }
.page-hero .wrap { display: flex; flex-direction: column; gap: 22px; }
.page-hero h1 { font-size: clamp(2.35rem, 1.3rem + 4.3vw, 4.5rem); line-height: 1.03; max-width: 900px; }
.page-hero h1 em { color: var(--green); }
.page-hero .lead { max-width: 640px; }
.page-hero .cta-row { gap: 12px 18px; }
.page-hero-dark { background: var(--dark); color: var(--on-dark); border-bottom: 0; }
.page-hero-dark::before { opacity: .32; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34'%3E%3Cpath d='M17 12.5v9M12.5 17h9' stroke='%233FD983' stroke-width='1.2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E"); }
.page-hero-dark h1 em { color: var(--green-hi); }
.sprint-title { font-size: clamp(4rem, 2rem + 8vw, 8.25rem) !important; line-height: .92 !important; letter-spacing: -.035em; }
.sprint-sub { font-family: var(--serif); font-weight: 500; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); line-height: 1.25; letter-spacing: -.01em; color: var(--on-dark) !important; max-width: 28ch; }
.facts { display: grid; gap: 1px; max-width: 780px; background: var(--on-dark-line); border: 1px solid var(--on-dark-line); border-radius: var(--radius); overflow: hidden; }
.facts > div { background: var(--dark); padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; }
.facts dt { font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: #9BA69F; }
.facts dd { font-weight: 600; line-height: 1.4; color: var(--on-dark); }
@media (min-width: 640px) { .facts { grid-template-columns: 1.3fr 1fr .7fr; } }

/* ---------- percorso dello Sprint AI: cinque tappe ---------- */
.modules { display: grid; gap: 24px; }
.module { border-top: 1px solid var(--line-strong); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.module-num { font-family: var(--mono); font-size: .8125rem; color: var(--green); }
.module h3 { font-family: var(--serif); font-weight: 500; font-size: 1.625rem; line-height: 1.1; letter-spacing: -.015em; }
.module p { color: var(--ink-2); font-size: .9375rem; }
.modules + .tags { margin-top: clamp(32px, 4vw, 48px); }
@media (min-width: 640px) { .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; } }
@media (min-width: 1000px) { .modules { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; } }

/* ---------- barra fissa su mobile ---------- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(244, 245, 241, .97); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .sticky-cta { display: none !important; } }

/* ---------- movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
}
