/* Tema "corporate chiaro" (07/11/2026), sopra site.css. Nessuna libreria.
 * Colore: carta #FFFFFF · superfici #F5F7FA · filetti #E4E8EE · grafite #15181D · grigio #5A6472 · un solo accento, blu Adriatico #0B5BD3
 * Carattere: Geist 400/600 (self-hosted), titoli stretti. Allineamento a sinistra.
 * Unico gesto audace: il ventaglio di schermate nell'apertura, che si apre una volta. Il resto sale piano allo scroll, una volta.
 */

:root {
  --color-paper: #ffffff;
  --color-paper-2: #f5f7fa;
  --color-paper-3: #eceff3;
  --color-rule: #e4e8ee;
  --color-rule-strong: #c9d0d9;
  --color-muted: #5a6472;
  --color-ink-2: #3a424d;
  --color-ink: #15181d;
  --color-link: #0b5bd3;
  --color-focus: #0b5bd3;
  --accent: #0b5bd3;
  --accent-hover: #0a4fb8;
  --accent-soft: #eaf1fc;
  --color-live: #17803d;
  --color-live-soft: #e8f5ec;
  --color-signal: #9a5b00;
  --color-signal-soft: #fdf3e4;

  --font-display: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-ui: 10px;
  --radius-media: 18px;
  --shadow-lift: 0 1px 2px rgba(21, 24, 29, 0.06), 0 12px 32px -12px rgba(21, 24, 29, 0.22);
}

body { letter-spacing: -0.011em; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; color: var(--color-ink); }
::selection { background: var(--accent-soft); color: var(--color-ink); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- bottoni ---------- */
.btn { border-radius: var(--radius-ui); font-weight: 600; letter-spacing: -0.01em; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--quiet { background: #fff; color: var(--color-ink); border-color: var(--color-rule-strong); }
.btn--quiet:hover { border-color: var(--color-ink); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-hover); }
.btn--sm { font-weight: 600; min-height: 2.5rem; }
.btn--lg { font-size: 1rem; min-height: 3.25rem; padding: 0 1.5rem; }
.link-arrow { color: var(--accent); font-weight: 500; }
.chip, .work .chip { background: transparent; color: var(--accent); padding: 0; min-height: 2.75rem; font-weight: 500; }
.chip:hover, .work .chip:hover { background: transparent; text-decoration: underline; text-underline-offset: 0.25em; }
.work .chip:first-child { background: var(--color-ink); color: #fff; padding: 0 1rem; border-radius: var(--radius-ui); }
.work .chip:first-child:hover { background: #2b3038; text-decoration: none; }

/* ---------- testata ---------- */
.site-head { background: rgba(255, 255, 255, 0.85); }
.site-head.is-scrolled { border-bottom-color: var(--color-rule); }
.site-head__inner { min-height: 4rem; }
.wordmark { font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.02em; color: var(--color-ink); }
.site-head .btn--sm { display: none; }
@media (min-width: 52rem) {
  .site-head__inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .site-head .site-nav { justify-self: center; gap: 2rem; }
  .site-head .site-nav a { font-size: 0.9375rem; color: var(--color-ink-2); opacity: 1; }
  .site-head .site-nav a:hover { color: var(--color-ink); }
  .site-head .btn--sm { display: inline-flex; justify-self: end; }
}

/* ---------- apertura ---------- */
.pro .hero { background: var(--color-paper); color: var(--color-ink); padding-block: clamp(3rem, 8vw, 6rem) clamp(3rem, 7vw, 5rem); }
.pro .hero__grid { justify-items: start; text-align: left; gap: 3rem; }
.pro .hero__text { justify-items: start; max-width: 40rem; }
.hero__kicker { font-size: 0.9375rem; font-weight: 500; color: var(--accent); }
.pro .hero__title { margin-top: 1rem; max-width: 15ch; font-size: clamp(2.5rem, 1.5rem + 3.8vw, 4.25rem); line-height: 1.02; letter-spacing: -0.04em; color: var(--color-ink); }
.pro .hero__lede { margin-top: 1.5rem; max-width: 34rem; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.55; color: var(--color-ink-2); }
.pro .hero__actions { justify-content: flex-start; gap: 0.75rem; margin-top: 2rem; }
.hero__proof { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--color-rule); font-size: 0.9375rem; color: var(--color-muted); max-width: 34rem; }

/* ventaglio di schermate: tre telefoni sovrapposti che si aprono una volta */
.fan { position: relative; width: min(100%, 24rem); aspect-ratio: 1 / 1.05; justify-self: center; }
.fan img {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 42%;
  aspect-ratio: 600 / 1298;
  object-fit: cover;
  border-radius: 13% / 6%;
  background: var(--color-paper-3);
  box-shadow: var(--shadow-lift);
  outline: 1px solid rgba(21, 24, 29, 0.08);
  outline-offset: -1px;
  transform-origin: 50% 100%;
}
.fan img:nth-child(1) { transform: translateX(-100%) rotate(-8deg); }
.fan img:nth-child(2) { transform: translateX(-50%) translateY(-6%); z-index: 2; }
.fan img:nth-child(3) { transform: translateX(0%) rotate(8deg); }
@media (prefers-reduced-motion: no-preference) {
  .fan img { animation: fan-open 900ms cubic-bezier(0.16, 1, 0.3, 1) 150ms both; }
  .fan img:nth-child(2) { animation-name: fan-rise; }
  .pro .hero__text > * { animation: rise 600ms cubic-bezier(0.16, 1, 0.3, 1) both; }
  .pro .hero__text > :nth-child(2) { animation-delay: 60ms; }
  .pro .hero__text > :nth-child(3) { animation-delay: 120ms; }
  .pro .hero__text > :nth-child(4) { animation-delay: 180ms; }
  .pro .hero__text > :nth-child(5) { animation-delay: 240ms; }
}
@keyframes fan-open { from { transform: translateX(-50%) translateY(4%) rotate(0deg); opacity: 0; } }
@keyframes fan-rise { from { transform: translateX(-50%) translateY(8%); opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@container (min-width: 60rem) {
  .pro .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 4rem; }
  .fan { width: 100%; }
}

/* ---------- benefici ---------- */
.why { padding-block: 0 clamp(3rem, 7vw, 5rem); }
.why__list { display: grid; gap: 2rem; padding: 2.5rem 0 0; margin: 0; list-style: none; border-top: 1px solid var(--color-rule); }
.why__list h3 { font-size: 1.125rem; letter-spacing: -0.02em; }
.why__list p { margin-top: 0.5rem; color: var(--color-muted); max-width: 32rem; }
@container (min-width: 48rem) { .why__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; } }

/* ---------- intestazioni di sezione: a sinistra ---------- */
.section-head { text-align: left; justify-items: start; margin: 0 0 3rem; max-width: 40rem; }
.section-head h2, .board h2, .method__aside h2, .faq h2, .contact h2 { font-size: clamp(1.9rem, 1.35rem + 1.8vw, 2.75rem); }
.section-head p { font-size: 1.0625rem; line-height: 1.55; color: var(--color-muted); }

/* ---------- tabellone, in chiaro ---------- */
.board {
  --color-night: var(--color-paper-2);
  --color-night-ink: var(--color-ink);
  --color-night-muted: var(--color-muted);
  --color-night-rule: var(--color-rule-strong);
  --color-lamp-go: #17803d;
  --color-lamp-wait: #c27c0e;
  --color-lamp-idle: #9aa3ae;
}
.board__table { font-family: var(--font-body); }
.board__table th[scope="row"] { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.02em; }
.board__table a { color: var(--color-ink); text-decoration-color: var(--color-rule-strong); }
.board__table a:hover { color: var(--accent); text-decoration-color: currentColor; }
@container (min-width: 52rem) { .board__table th[scope="row"] { font-size: 1.125rem; } }

/* ---------- lavori: righe divise da filetti, non schede ---------- */
.works { padding-block: clamp(4rem, 9vw, 7rem) 2rem; }
.work { background: none; border-radius: 0; padding: 3rem 0; border-top: 1px solid var(--color-rule); }
.work + .work { margin-top: 0; }
.work__title { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.work__link { color: inherit; text-decoration: none; display: inline-flex; align-items: baseline; gap: 0.35rem; }
.work__link .icon { width: 0.7em; height: 0.7em; color: var(--color-muted); transition: transform var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.work__link:hover { color: var(--accent); }
.work__link:hover .icon { color: var(--accent); transform: translate(2px, -2px); }
.work__lede { font-weight: 500; color: var(--color-ink); }
.status li { background: var(--color-paper-2); }
.pills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.25rem; padding: 0; list-style: none; }
.pills li { padding: 0.2rem 0.6rem; border-radius: 6px; background: var(--color-paper-2); color: var(--color-ink-2); font-size: 0.8125rem; line-height: 1.5; }
.work__media { padding: 0; }
.work__media img { border-radius: var(--radius-media); box-shadow: var(--shadow-lift); transition: transform 400ms var(--ease-out), box-shadow 400ms var(--ease-out); }
@media (hover: hover) {
  .work:hover .work__media img:first-child { transform: translateY(-6px); }
  .work:hover .work__media img:last-child { transform: translateY(-2px); }
}
.work__media img:first-child, .work__media img:last-child { translate: none; }
@container (min-width: 60rem) {
  .work { padding: 4rem 0; }
  .work__media { padding: 0 2rem; gap: 1.5rem; }
}

/* ---------- siti ---------- */
.trade { padding-block: 2rem clamp(4rem, 9vw, 7rem); }
.site-card img { border-radius: var(--radius-media); transition: transform 400ms var(--ease-out), box-shadow 400ms var(--ease-out); }
@media (hover: hover) { .site-card:hover img { transform: translateY(-4px); box-shadow: var(--shadow-lift); } }
.site-card h3 { font-size: 1.375rem; }

/* ---------- metodo ---------- */
.method { background: var(--color-paper-2); color: var(--color-ink); }
.method .steps p, .method__aside p { color: var(--color-muted); }
.steps li { background: #fff; box-shadow: none; border: 1px solid var(--color-rule); border-radius: 14px; }
.steps li::before { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--accent); line-height: 1.3; }
.steps h3 { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600; }

/* ---------- chi sono, domande, contatti ---------- */
.about__statement { letter-spacing: -0.035em; }
.values li { border-top-color: var(--color-rule); }
.faq__grid { border-top: 0; padding-top: 0; }
.faq summary { font-size: 1.0625rem; }
.faq summary::after { color: var(--accent); }
.faq summary:hover { color: var(--accent); }
.contact { background: var(--color-paper-2); }
.field input, .field select, .field textarea { border-radius: var(--radius-ui); border-color: var(--color-rule-strong); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--accent); }

/* ---------- piede ---------- */
.letter-close .sign { color: var(--accent); }
.foot-line { border-top-color: var(--color-rule); }

/* ---------- comparsa allo scroll: una volta, piano ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .why__list .reveal:nth-child(2) { transition-delay: 80ms; }
  .js .why__list .reveal:nth-child(3) { transition-delay: 160ms; }
}

/* ---------- pagine secondarie ---------- */
.case-hero h1 { letter-spacing: -0.04em; }
