/*! GoSuite · sito pubblico generalista (v1.03.0).
   Solo la home (index.html). Academy e Manifesto restano sui fogli di prima.
   Idea: il percorso di un contatto (Arriva → Richiamato → Appuntamento → Cliente) è il segno della pagina.
   Colori: carta fredda, inchiostro del logo, un blu di segnale per il percorso; il magenta solo per Studio. */

@font-face {
  font-family: "Archivo GS";
  src: url("/assets/fonts/archivo-latin-wdth-v0660.woff2") format("woff2-variations"), url("/assets/fonts/archivo-latin-wdth-v0660.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F4F6F9;
  --surface: #FFFFFF;
  --ink: #0F1729;
  --body: #47536A;
  --muted: #697387;
  --line: #DCE1E9;
  --signal: #2747E8;
  --signal-deep: #1A33B8;
  --signal-soft: #E7EBFD;
  --studio: #BE185D;
  --studio-soft: #FCEEF5;
  --radius: 14px;
  --display: "Archivo GS", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --text: "Archivo GS", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --container: 1180px;
  --gutter: 24px;
  --section: clamp(64px, 8vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--body); font-family: var(--text); font-size: 17px; line-height: 1.6; overflow-x: hidden; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--ink); font-family: var(--display); }
h2 { font-size: clamp(30px, 3.6vw, 46px); font-stretch: 78%; font-weight: 760; line-height: 1.04; letter-spacing: -0.01em; }
h3 { font-size: 20px; font-stretch: 88%; font-weight: 700; line-height: 1.25; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: #fff; text-decoration: none; }
.skip-link:focus { top: 12px; }
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section-tint { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head p { font-size: 19px; max-width: 62ch; }

/* pulsanti */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff; font-weight: 650; font-size: 15px; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.button:hover { background: var(--signal-deep); border-color: var(--signal-deep); }
.button-quiet { background: transparent; color: var(--ink); }
.button-quiet:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.button-large { min-height: 52px; padding: 13px 24px; font-size: 16px; }
.button-studio { background: var(--studio); border-color: var(--studio); }
.button-studio:hover { background: #9D174D; border-color: #9D174D; }
.text-link { color: var(--signal-deep); font-weight: 650; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

/* testata */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(244, 246, 249, .92); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand img { width: 132px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 560; }
.site-nav > a { text-decoration: none; color: var(--body); }
.site-nav > a:hover, .site-nav > a[aria-current="true"] { color: var(--ink); }
.nav-actions { display: flex; gap: 10px; }
.nav-toggle { display: none; }

/* apertura */
.hero { padding-block: clamp(40px, 7vw, 92px) clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.hero h1 { font-size: clamp(48px, 8.2vw, 112px); font-stretch: 68%; font-weight: 800; line-height: .9; letter-spacing: -0.02em; max-width: 9.5ch; }
.hero-side { display: grid; gap: 24px; padding-bottom: 8px; }
.hero-lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--ink); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* il percorso del contatto */
.route { margin: clamp(40px, 6vw, 72px) 0 0; padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.route-sector { margin-bottom: 22px; font-size: 14px; font-weight: 650; color: var(--muted); }
.route-sector span { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--signal-soft); color: var(--signal-deep); transition: opacity .3s; }
.route-line { --fill: 0; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.route-line::before, .route-line::after { content: ""; position: absolute; top: 9px; left: 10px; right: 10px; height: 4px; border-radius: 4px; background: var(--line); }
.route-line::after { right: auto; width: calc((100% - 20px) * var(--fill)); background: var(--signal); transition: width .7s cubic-bezier(.4, 0, .2, 1); }
.route-stop { position: relative; z-index: 1; display: grid; gap: 8px; padding-top: 36px; }
.route-stop::before { content: ""; position: absolute; top: 0; left: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 4px solid var(--line); transition: border-color .3s, background .3s; }
.route-stop b { font-family: var(--display); font-stretch: 80%; font-size: 22px; font-weight: 760; color: var(--muted); line-height: 1.1; transition: color .3s; }
.route-stop span { font-size: 15px; line-height: 1.45; color: var(--muted); opacity: .55; transition: opacity .3s, color .3s; }
.route-stop.is-on::before { border-color: var(--signal); background: var(--signal); }
.route-stop.is-on b { color: var(--ink); }
.route-stop.is-on span { opacity: 1; color: var(--body); }
.route figcaption { margin-top: 22px; font-size: 13px; color: var(--muted); }
.route.is-changing [data-route-text], .route.is-changing [data-route-sector] { opacity: 0; }

/* il problema */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.leaks { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.leaks li { padding: 18px 0; border-top: 1px solid var(--line); font-size: 18px; }
.leaks li:last-child { border-bottom: 1px solid var(--line); }
.leaks b { color: var(--ink); }

/* come funziona */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 3px solid var(--ink); }
.steps li::before { content: counter(step); font-family: var(--display); font-stretch: 70%; font-weight: 800; font-size: 44px; line-height: 1; color: var(--signal); }
.steps p { font-size: 16px; }

/* nucleo */
.core { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 5vw, 64px); margin: 0; }
.core-item { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.core dt { display: flex; align-items: center; gap: 12px; align-self: start; color: var(--ink); font-family: var(--display); font-stretch: 86%; font-weight: 720; font-size: 19px; line-height: 1.2; }
.core dt img { flex: none; width: 36px; height: 36px; border-radius: 10px; }
.core-glyph { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--signal-soft); color: var(--signal-deep); }
.core dd { margin: 0; font-size: 16px; }

/* settori */
.sectors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 48px); margin: 0 0 clamp(32px, 4vw, 48px); padding: 0; list-style: none; }
.sectors li { display: grid; gap: 6px; padding: 20px 0; border-top: 1px solid var(--line); }
.sectors li:last-child h3 { color: var(--signal-deep); }
.sectors p { font-size: 16px; }
.package { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); padding: clamp(24px, 4vw, 44px); border-radius: 22px; background: var(--ink); color: #C9D1E0; }
.package h3 { color: #fff; font-size: clamp(26px, 3vw, 36px); font-stretch: 76%; font-weight: 780; line-height: 1.05; margin: 6px 0 14px; }
.package-copy { display: grid; align-content: start; gap: 4px; }
.package-copy p { max-width: 46ch; }
.package-copy .text-link { margin-top: 14px; color: #fff; }
.package-tag { font-size: 14px; font-weight: 650; color: #9FB4FF; }
.package-apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.package-apps li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; font-size: 15px; line-height: 1.4; }
.package-apps img { flex: none; width: 36px; height: 36px; border-radius: 10px; }
.package-apps b { display: block; color: #fff; font-size: 16px; }

/* Studio */
.studio { background: var(--studio-soft); border-block: 1px solid #F6D3E3; }
.studio-name { margin-bottom: 12px; font-weight: 700; color: var(--studio); }
.studio-copy { display: grid; gap: 18px; font-size: 18px; }
.studio-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 16px; }
.studio-list li { position: relative; padding-left: 26px; }
.studio-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 3px; background: var(--studio); }
.studio-actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.studio-actions .text-link { color: #9D174D; font-size: 15px; }

/* ruoli */
.roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.roles article { display: grid; gap: 8px; align-content: start; }
.roles h3 { padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.roles p { font-size: 16px; }

/* domande */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; color: var(--ink); font-weight: 650; font-size: 18px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; font-size: 22px; line-height: 1; color: var(--signal); }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { padding: 0 0 20px; max-width: 64ch; }

/* demo */
.demo-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.demo-copy { display: grid; gap: 18px; font-size: 18px; }
.demo-login { font-size: 16px; }
.demo-form { display: grid; gap: 18px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.demo-form h3 { font-size: 22px; }
.demo-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.demo-fields label, .demo-other { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.demo-wide { grid-column: 1 / -1; }
.demo-form input:not([type="checkbox"]), .demo-form select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #C5CCD8; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.demo-topics { margin: 0; padding: 0; border: 0; display: grid; gap: 10px; }
.demo-topics legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.demo-topics legend small { font-weight: 400; color: var(--muted); }
.demo-topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.demo-topic-grid label { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-weight: 500; cursor: pointer; }
.demo-topic-grid input, .demo-consent input { width: 18px; height: 18px; accent-color: var(--signal); }
.demo-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.demo-consent a { color: var(--signal-deep); }
.demo-submit { justify-self: start; }
.demo-status { font-size: 15px; min-height: 1.2em; }
.demo-status.is-success { color: #0B7A55; }
.demo-status.is-error { color: #B42318; }

/* piede */
.site-footer { padding-block: 56px 32px; background: var(--surface); border-top: 1px solid var(--line); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.footer-brand { display: grid; gap: 14px; max-width: 36ch; align-content: start; }
.footer-grid h3 { font-size: 15px; margin-bottom: 10px; }
.footer-grid > div:not(.footer-brand) { display: grid; gap: 8px; align-content: start; }
.footer-grid a { text-decoration: none; color: var(--body); }
.footer-grid a:hover { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer-bottom div { display: flex; gap: 16px; }
.footer-bottom a { color: inherit; }

/* tablet */
@media (max-width: 1020px) {
  .steps, .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .core { grid-template-columns: 1fr; }
  .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .package { grid-template-columns: 1fr; }
}
/* menu a tendina */
@media (max-width: 900px) {
  .nav-toggle { display: inline-grid; gap: 5px; width: 44px; height: 44px; place-content: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; }
  .nav-toggle span:not(.sr-only) { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: flex; }
  .site-nav > a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav-actions { padding-top: 16px; }
  .nav-actions .button { flex: 1; }
  .hero-grid, .split, .faq-grid, .demo-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 11ch; }
}
/* telefono */
@media (max-width: 620px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .route-line { grid-template-columns: 1fr; gap: 18px; padding-left: 36px; }
  .route-line::before, .route-line::after { top: 10px; bottom: 10px; left: 9px; right: auto; width: 4px; height: auto; }
  .route-line::after { height: calc((100% - 20px) * var(--fill)); bottom: auto; }
  .route-stop { padding-top: 0; }
  .route-stop::before { left: -36px; }
  .route-stop b { font-size: 20px; }
  .steps, .roles, .sectors, .package-apps, .demo-fields, .demo-topic-grid { grid-template-columns: 1fr; }
  .core-item { grid-template-columns: 1fr; gap: 10px; }
  .hero-actions .button { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .route-line::after, .route-stop::before, .route-stop b, .route-stop span, .route-sector span { transition: none; }
}
