/* ForGuest – foglio di stile del sito */

:root {
  --bg: #f5f5f2;
  --surface: #ebebe6;
  --surface-2: #e6e6e1;
  --white: #ffffff;
  --ink: #0d1117;
  --ink-2: #2b303a;
  --muted: #5b6170;
  --navy: #10213a;
  --navy-2: #1a3050;
  --navy-ink: #f5f5f2;
  --navy-muted: #c9d3e2;
  --accent: #e6005a;
  --accent-dark: #c2004c;
  --accent-soft: #ffd6e4;
  --accent-light: #ff6fa0;
  --radius-pill: 999px;
  --wrap: 1360px;
  --gutter: 32px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 18px; line-height: 1.5; letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }
.ok { color: var(--accent-light); }
.note { font-size: 14px; color: var(--navy-muted); margin: 10px 0 0; }

/* Tipografia */
.h-display { font-weight: 600; letter-spacing: -0.045em; line-height: 0.95; margin: 0; font-size: clamp(52px, 6.8vw, 108px); }
.h-display--page { font-size: clamp(44px, 5.4vw, 84px); }
.h-display--article { font-size: clamp(38px, 4.6vw, 68px); line-height: 1; }
.h-section { font-weight: 600; letter-spacing: -0.045em; line-height: 0.98; margin: 0; font-size: clamp(38px, 4.6vw, 72px); }
.h-section--sm { font-size: clamp(30px, 3vw, 44px); margin-bottom: 24px; }
.lead { font-size: clamp(18px, 1.4vw, 21px); max-width: 44ch; margin: 24px 0 0; color: var(--ink-2); }
.link-strong { font-weight: 600; }

/* Pulsanti */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; text-decoration: none; border: 0; cursor: pointer;
  padding: 18px 28px; border-radius: var(--radius-pill); font-weight: 600; min-height: 48px;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 12px 20px; min-height: 44px; font-size: 16px; }
.btn--ghost { background: var(--surface-2); color: var(--ink); }
.btn--ghost:hover { background: #dcdcd5; color: var(--ink); }
.btn--block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245, 245, 242, .94); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { font-weight: 700; font-size: 24px; letter-spacing: -0.04em; text-decoration: none; }
.nav { display: flex; align-items: center; gap: 28px; font-weight: 500; font-size: 16px; }
.nav__link { background: none; border: 0; padding: 8px 0; cursor: pointer; color: var(--ink); text-decoration: none; font-weight: 500; }
.nav__link.is-active { color: var(--accent); }
.nav__item { position: relative; }
.nav__item--mega > .nav__link::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.mega {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--white); padding: 28px; display: grid; grid-template-columns: repeat(4, minmax(170px, 1fr)); gap: 28px;
  box-shadow: 0 24px 60px rgba(13, 17, 23, .14); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.mega--small { grid-template-columns: minmax(220px, 1fr); }
.mega::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav__item--mega:hover .mega, .nav__item--mega:focus-within .mega, .nav__item--mega.is-open .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega__col { display: flex; flex-direction: column; gap: 10px; }
.mega__title { margin: 0 0 4px; font-size: 14px; color: var(--muted); font-weight: 600; }
.mega a { text-decoration: none; font-size: 16px; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s ease, opacity .2s ease; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.hero__lead { margin: 32px 0 0; max-width: 40ch; font-size: clamp(19px, 1.5vw, 22px); color: var(--ink-2); }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.hero__note { margin: 40px 0 0; font-size: 15px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s ease-out infinite; }
.hero__stage { position: relative; height: 560px; }
.hero__media { position: absolute; inset: 0 70px 60px 0; overflow: hidden; background: #f0f0ec; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__kpi { position: absolute; left: 20px; top: 20px; background: rgba(16, 33, 58, .92); color: var(--navy-ink); padding: 14px 16px; font-size: 13px; display: flex; gap: 20px; }
.hero__kpi span { display: block; color: #9fb0c8; }
.hero__kpi strong { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.hero__app { position: absolute; right: 0; bottom: 0; width: 210px; height: 380px; background: var(--bg); border-radius: 30px; padding: 10px; box-shadow: 0 30px 60px rgba(13, 17, 23, .25); }
.hero__app-in { background: #fff; border-radius: 22px; height: 100%; padding: 18px 14px; display: flex; flex-direction: column; gap: 10px; font-size: 12px; }
.hero__app-in > strong { font-size: 16px; letter-spacing: -0.03em; }
.chip-row { background: var(--surface); padding: 10px 12px; border-radius: 12px; display: flex; flex-direction: column; }
.chip-row--accent { background: var(--accent-soft); }
.hero__app-btn { margin-top: auto; background: var(--accent); color: #fff; border-radius: var(--radius-pill); padding: 11px; text-align: center; font-weight: 600; }
.toasts { position: absolute; left: -28px; bottom: 24px; width: 300px; height: 66px; }
.toast { position: absolute; inset: 0; background: #fff; padding: 12px 16px; box-shadow: 0 18px 40px rgba(13, 17, 23, .18); font-size: 14px; opacity: 0; animation: toast 9s ease-in-out infinite; }

/* Nastro */
.marquee { overflow: hidden; margin-top: 64px; padding: 22px 0; background: var(--ink); color: var(--navy-ink); }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: drift 42s linear infinite; font-size: clamp(22px, 2.2vw, 32px); font-weight: 600; letter-spacing: -0.03em; white-space: nowrap; }
.marquee .dot { color: var(--accent); }

/* Sezioni */
.section { padding-top: 150px; }
.section--tight { padding-top: 72px; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 40px; }
.section__head p { margin: 0; max-width: 38ch; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--top { align-items: start; }

/* Filtri e schede prodotto */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chip { border: 0; border-radius: var(--radius-pill); padding: 12px 20px; min-height: 44px; cursor: pointer; background: var(--surface-2); color: var(--ink); font-weight: 600; font-size: 16px; transition: background .15s ease, color .15s ease, transform .15s ease; }
.chip:active { transform: scale(.96); }
.chip.is-on { background: var(--ink); color: #fff; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tile { display: flex; flex-direction: column; text-decoration: none; background: var(--surface); overflow: hidden; transition: transform .25s var(--ease), background .2s ease; }
.tile:hover { transform: translateY(-6px); background: #fff; color: var(--ink); }
.tile--big { grid-column: span 2; }
.tile[hidden] { display: none; }
.tile__pv { display: block; height: 210px; background: var(--navy); color: var(--navy-ink); font-size: 12px; position: relative; overflow: hidden; transition: transform .5s var(--ease); }
.tile--big .tile__pv { height: 250px; }
.tile:hover .tile__pv { transform: scale(1.03); }
.tile__img { width: 100%; height: 100%; object-fit: cover; }
.tile__badge { position: absolute; left: 16px; bottom: 16px; background: var(--accent); color: #fff; padding: 7px 14px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 600; }
.tile__body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tile__cat { font-size: 14px; color: var(--muted); font-weight: 500; }
.tile__title { font-size: 27px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
.tile--big .tile__title { font-size: 36px; }
.tile__desc { font-size: 17px; color: var(--ink-2); }
.tile__more { font-weight: 600; color: var(--accent); margin-top: auto; padding-top: 8px; }
.tile--cta { background: var(--accent); }
.tile--cta .tile__title, .tile--cta .tile__desc, .tile--cta .tile__more { color: #fff; }
.tile--cta .tile__body { justify-content: center; min-height: 240px; }
.tile--cta:hover { background: var(--accent-dark); }
.tiles--three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 40px; }

/* Frammenti d'interfaccia nelle schede */
.ui { display: flex; flex-direction: column; justify-content: center; gap: 5px; height: 100%; padding: 16px; }
.ui-head { display: flex; justify-content: space-between; font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.ui-row { display: flex; justify-content: space-between; gap: 8px; background: var(--navy-2); padding: 7px 10px; }
.ui-row--accent { background: var(--accent); }
.ui-note { color: #9fb0c8; margin-top: 6px; }
.ui-progress { display: block; height: 6px; background: var(--navy-2); margin-top: 8px; }
.ui-progress span { display: block; height: 6px; width: 72%; background: var(--accent); transform-origin: left; }
.ui--cal { justify-content: flex-start; padding: 18px; }
.cal-row { display: grid; grid-template-columns: 80px repeat(10, minmax(0, 1fr)); gap: 3px; align-items: center; }
.cal-name { color: var(--navy-muted); }
.cal-bar { color: var(--ink); font-weight: 600; font-size: 11px; padding: 5px 8px; white-space: nowrap; overflow: hidden; transform-origin: left; }
.cal-bar--a { background: var(--accent); }
.cal-bar--b { background: var(--accent-light); }
.cal-bar--c { background: #5b8fd8; }
.ui--pitches { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; align-content: center; }
.pitch { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; background: var(--navy-2); }
.pitch--on { background: var(--accent); }
.pitch--sel { background: var(--bg); color: var(--ink); }
.ui--crm { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; align-content: center; }
.crm-col { display: flex; flex-direction: column; gap: 5px; }
.crm-h { color: #9fb0c8; }

/* Servizi */
.services-visual { position: relative; height: 520px; }
.services-visual__main { position: absolute; inset: 0 90px 70px 0; overflow: hidden; background: var(--surface); }
.services-visual__main img { width: 100%; height: 100%; object-fit: cover; }
.social-card { position: absolute; right: 0; bottom: 0; width: 230px; background: #fff; box-shadow: 0 30px 60px rgba(13, 17, 23, .2); padding: 12px; font-size: 13px; }
.social-card__head { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.social-card__head span { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); }
.social-card__img { aspect-ratio: 1; background: var(--navy); color: var(--navy-ink); display: flex; align-items: flex-end; padding: 14px; font-size: 20px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.social-card__meta { margin-top: 8px; color: var(--muted); }
.link-list { margin-top: 16px; }
.link-list__item { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; padding: 20px 0; text-decoration: none; }
.link-list__title { font-size: clamp(24px, 2.3vw, 34px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; }
.link-list__arrow { font-size: 26px; transition: transform .2s ease; }
.link-list__item:hover .link-list__arrow { transform: translateX(6px); }
.link-list__desc { font-size: 17px; color: var(--ink-2); max-width: 50ch; }

/* Fascia scura e innovazione */
.band { margin-top: 150px; padding: 120px 0; }
.band--dark { background: var(--navy); color: var(--navy-ink); }
.band--dark .lead { color: var(--navy-muted); }
.chat { background: var(--navy-2); padding: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; max-width: 520px; margin-top: 40px; }
.chat p { margin: 0; padding: 10px 14px; max-width: 85%; }
.chat__me { align-self: flex-end; background: var(--accent); }
.chat__ai { align-self: flex-start; background: var(--bg); color: var(--ink); }
.chat__typing { display: flex; gap: 5px; padding: 14px 16px !important; }
.chat__typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); animation: blink 1.2s ease-in-out infinite; }
.chat__typing span:nth-child(2) { animation-delay: .2s; }
.chat__typing span:nth-child(3) { animation-delay: .4s; }
.innov-list { display: flex; flex-direction: column; gap: 10px; }
.innov { background: var(--navy-2); display: grid; grid-template-columns: 38% 1fr; min-height: 150px; overflow: hidden; }
.innov__img { overflow: hidden; }
.innov__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.innov:hover .innov__img img { transform: scale(1.06); }
.innov__body { padding: 24px 26px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.innov h3 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; }
.innov p { margin: 0; font-size: 17px; color: var(--navy-muted); }

/* Fascia cloud */
.cloud-band { position: relative; overflow: hidden; min-height: 560px; display: flex; align-items: flex-end; background: var(--navy); }
.cloud-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cloud-band::after { content: ''; position: absolute; inset: 0; background: rgba(13, 17, 23, .55); }
.cloud-band__in { position: relative; z-index: 1; color: var(--navy-ink); padding-top: 120px; padding-bottom: 80px; width: 100%; }
.cloud-band .h-display { max-width: 13ch; font-size: clamp(44px, 5.6vw, 92px); }
.pills { list-style: none; padding: 0; margin: 40px 0 0; display: flex; gap: 12px; flex-wrap: wrap; font-size: 18px; }
.pills li { background: rgba(245, 245, 242, .14); padding: 14px 20px; }

/* Metodo */
.media-16x9 { aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy); }
.media-16x9 img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.media-16x9:hover img { transform: scale(1.05); }
.progress { height: 8px; background: var(--surface-2); margin: 48px 0 10px; }
.progress span { display: block; height: 8px; background: var(--accent); transform-origin: left; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.step { display: flex; flex-direction: column; gap: 6px; padding: 22px 18px; min-height: 150px; background: var(--surface-2); }
.step strong { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.step span { font-size: 15px; }
.step--accent { background: var(--accent); color: #fff; }

/* FAQ */
.faq { margin-top: 40px; display: flex; flex-direction: column; gap: 8px; max-width: 980px; }
.faq__item { background: var(--surface); padding: 0 28px; }
.faq__item summary { cursor: pointer; list-style: none; padding: 24px 0; font-size: clamp(19px, 1.6vw, 23px); font-weight: 600; letter-spacing: -0.02em; display: flex; justify-content: space-between; gap: 24px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; font-size: 28px; line-height: 1; color: var(--accent); }
.faq__item[open] summary::after { content: '−'; }
.faq__a p { margin: 0 0 24px; max-width: 70ch; color: var(--ink-2); }

/* News */
.news { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 24px; }
.news--one { grid-template-columns: minmax(0, 560px); }
.news__card a { text-decoration: none; display: flex; flex-direction: column; gap: 12px; height: 100%; }
.news__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.news__card--lead .news__img { aspect-ratio: 16 / 10; }
.news__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news__card a:hover .news__img img { transform: scale(1.05); }
.news__ph { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-size: 80px; font-weight: 700; color: var(--accent); }
.news__meta { font-size: 14px; color: var(--muted); font-weight: 500; }
.news__title { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.12; }
.news__card--lead .news__title { font-size: 30px; }
.news__ex { margin: 0; font-size: 17px; color: var(--ink-2); }
.news__more { font-weight: 600; color: var(--accent); }

/* Contatti e modulo */
.contact-box { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; background: var(--white); padding: 56px; align-items: start; }
.contact-ways { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-direction: column; gap: 10px; font-weight: 500; }
.form { display: flex; flex-direction: column; gap: 8px; }
.form label { font-weight: 500; margin-top: 8px; }
.form input, .form select, .form textarea { font: inherit; border: 2px solid transparent; background: #f0f0ec; padding: 15px 18px; color: var(--ink); width: 100%; border-radius: 0; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); outline: none; }
.form textarea { resize: vertical; min-height: 130px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form__row > div { display: flex; flex-direction: column; gap: 8px; }
.opt { color: var(--muted); font-weight: 400; font-size: 15px; }
.check { display: flex !important; gap: 12px; align-items: flex-start; font-size: 15px; font-weight: 400 !important; margin: 12px 0 8px !important; }
.check input { width: 22px !important; height: 22px; margin-top: 1px; padding: 0 !important; accent-color: var(--accent); flex: none; }
.form__msg { padding: 14px 18px; font-weight: 500; }
.form__msg--ok { background: #e1f3e4; color: #12461d; }
.form__msg--err { background: #fde2d8; color: #7a2309; }
.form__note { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.form button[disabled] { opacity: .6; cursor: wait; }
.cf-turnstile { margin-top: 8px; }
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.way { background: var(--surface); padding: 32px; text-decoration: none; display: flex; flex-direction: column; gap: 6px; transition: background .2s ease, transform .2s ease; }
.way:hover { background: #fff; transform: translateY(-4px); color: var(--ink); }
.way span { color: var(--muted); font-size: 15px; }
.way strong { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; }

/* Pagine interne */
.page-hero { padding-top: 24px; }
.crumbs ol { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-wrap: wrap; gap: 6px; font-size: 15px; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 6px; }
.crumbs a { color: var(--muted); }
.page-hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.page-hero__cat { margin: 0 0 20px; font-weight: 600; color: var(--accent); font-size: 16px; }
.page-hero__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* Contenuti editabili (body_html di pagine e post) */
.fg-content { font-size: 19px; line-height: 1.6; color: var(--ink-2); }
.fg-content > * + * { margin-top: 1.1em; }
.fg-content h2 { font-size: clamp(30px, 3vw, 44px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; color: var(--ink); margin-top: 1.8em; }
.fg-content h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; color: var(--ink); margin-top: 1.4em; }
.fg-content p, .fg-content ul, .fg-content ol { max-width: 70ch; }
.fg-content a { color: var(--accent-dark); }
.fg-content img { margin: 1.4em 0; }
.fg-content figure figcaption { font-size: 15px; color: var(--muted); margin-top: 8px; }
.fg-content blockquote { margin: 1.6em 0; padding: 0 0 0 0; font-size: clamp(22px, 2vw, 28px); font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.fg-content table { border-collapse: collapse; width: 100%; font-size: 17px; }
.fg-content th, .fg-content td { text-align: left; padding: 12px; border-bottom: 1px solid #d8d8d1; }
.fg-content iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.fg-lead { font-size: clamp(21px, 1.8vw, 26px) !important; line-height: 1.4; color: var(--ink) !important; max-width: 52ch !important; }
.fg-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 40px !important; max-width: none !important; }
.fg-feature { background: var(--surface); padding: 30px 28px; }
.fg-feature h3 { margin: 0 0 10px; font-size: 23px; }
.fg-feature p { margin: 0; font-size: 17px; }
.fg-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.fg-list li { position: relative; padding-left: 30px; }
.fg-list li::before { content: ''; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
.fg-callout { background: var(--accent-soft); padding: 24px 28px; color: var(--ink) !important; max-width: none !important; }
.fg-cta { background: var(--navy); color: var(--navy-ink); padding: 40px; }
.fg-cta a { color: #fff; font-weight: 600; }
.fg-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; max-width: none !important; }
.fg-steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 12px; }
.fg-steps li { background: var(--surface); padding: 22px 24px 22px 70px; position: relative; counter-increment: s; }
.fg-steps li::before { content: counter(s); position: absolute; left: 24px; top: 20px; font-weight: 700; color: var(--accent); font-size: 22px; }

/* Articolo */
.article__head { padding-top: 24px; }
.article__meta { font-size: 15px; color: var(--muted); margin: 0 0 20px; }
.article__meta a { color: var(--accent-dark); font-weight: 600; text-decoration: none; }
.article__lead { font-size: clamp(20px, 1.7vw, 24px); color: var(--ink-2); margin: 24px 0 0; }
.article__cover { margin-top: 48px; max-width: 1100px; }
.article__cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article__body { margin-top: 56px; }
.article__cta { display: flex; flex-direction: column; gap: 6px; margin-top: 64px; background: var(--navy); color: var(--navy-ink); padding: 32px 36px; text-decoration: none; transition: background .2s ease; }
.article__cta:hover { background: var(--navy-2); color: #fff; }
.article__cta span { color: var(--navy-muted); font-size: 15px; }
.article__cta strong { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }

/* Blog */
.blog-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.search { display: flex; gap: 8px; width: min(100%, 440px); }
.search input { flex: 1; font: inherit; border: 2px solid transparent; background: #fff; padding: 14px 18px; min-width: 0; }
.search input:focus { border-color: var(--accent); outline: none; }
.result-info { margin-top: 40px; color: var(--muted); }
.pager { display: flex; gap: 8px; margin-top: 56px; flex-wrap: wrap; }
.pager a { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); text-decoration: none; font-weight: 600; }
.pager a.is-on { background: var(--ink); color: #fff; }

/* Footer */
.site-footer { background: var(--ink); color: var(--navy-ink); overflow: hidden; margin-top: 150px; }
.site-footer a { color: var(--navy-ink); text-decoration: none; }
.site-footer a:hover { color: var(--accent-light); }
.site-footer__grid { padding-top: 80px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; font-size: 16px; }
.site-footer__col { display: flex; flex-direction: column; gap: 8px; }
.site-footer__brand { font-size: 26px; font-weight: 700; letter-spacing: -0.04em; margin: 0; }
.site-footer__desc { color: #9aa1ad; margin: 4px 0 12px; max-width: 36ch; }
.site-footer__contact { margin: 0; line-height: 1.9; }
.site-footer__title { margin: 0 0 6px; font-weight: 600; color: #9aa1ad; }
.site-footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; font-size: 14px; color: #9aa1ad; }
.site-footer__mark { margin: 32px 0 0; font-weight: 700; font-size: 24vw; letter-spacing: -0.06em; line-height: .8; white-space: nowrap; padding-left: 20px; transform: translateY(18%); }

/* Movimento */
@keyframes up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes toast { 0%, 4% { opacity: 0; transform: translateY(16px); } 9%, 30% { opacity: 1; transform: none; } 36%, 100% { opacity: 0; transform: translateY(-10px); } }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,0,98, .55); } 100% { box-shadow: 0 0 0 14px rgba(255,0,98, 0); } }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.1); } }

.in { animation: up .8s var(--ease) both; }
.d2 { animation-delay: .12s; } .d3 { animation-delay: .22s; } .d4 { animation-delay: .34s; }
.float { animation: floaty 6s ease-in-out infinite; }
.kb { animation: kb 18s ease-in-out infinite alternate; }
.rvbar { transform-origin: left center; animation: grow 1.1s var(--ease) both; }

/* Comparsa allo scorrimento: gestita da site.js (aggiunge .is-visible). Senza JS tutto resta visibile. */
.js .rv, .js .rv2 { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .rv2 { transition-delay: .08s; }
.js .rv.is-visible, .js .rv2.is-visible { opacity: 1; transform: none; }
.js .progress .rvbar, .js .tile .rvbar { animation: none; transform: scaleX(0); transition: transform 1.2s var(--ease) .2s; }
.js .is-visible .rvbar, .js .rvbar.is-visible { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv, .js .rv2 { opacity: 1; transform: none; }
  .js .rvbar { transform: none; }
  .toast { opacity: 1; position: static; }
  .toast + .toast { display: none; }
}

/* Tablet e smartphone */
@media (max-width: 1100px) {
  .mega { grid-template-columns: repeat(2, minmax(170px, 1fr)); }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fg-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --gutter: 16px; }
  body { font-size: 17px; }
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 76px 0 0 0; background: var(--bg); flex-direction: column; align-items: stretch; gap: 0; padding: 16px 16px 40px; overflow-y: auto; transform: translateX(100%); transition: transform .3s var(--ease); }
  .nav.is-open { transform: none; }
  .nav > .nav__link, .nav__item > .nav__link { padding: 16px 0; font-size: 22px; font-weight: 600; text-align: left; width: 100%; }
  .nav .btn { margin-top: 20px; }
  .mega { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; padding: 0 0 16px; display: none; grid-template-columns: 1fr 1fr; gap: 16px; background: transparent; }
  .nav__item--mega:hover .mega, .nav__item--mega:focus-within .mega { transform: none; }
  .nav__item--mega.is-open .mega { display: grid; transform: none; }
  .mega a { white-space: normal; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero, .split, .contact-box, .page-hero__grid, .fg-split { grid-template-columns: 1fr; }
  .hero { padding-top: 16px; gap: 32px; }
  .h-display { font-size: 13vw; }
  .h-display--page { font-size: 11vw; }
  .h-display--article { font-size: 9.5vw; }
  .hero__stage { height: 420px; }
  .hero__media { inset: 0 40px 50px 0; }
  .hero__app { width: 160px; height: 290px; }
  .toasts { left: 8px; bottom: 8px; width: 250px; }
  .hero__kpi { gap: 12px; padding: 10px 12px; }
  .hero__kpi strong { font-size: 20px; }
  .tiles, .tiles--three, .news, .ways, .fg-features { grid-template-columns: 1fr; }
  .tile--big { grid-column: auto; }
  .services-visual { height: 380px; }
  .services-visual__main { inset: 0 50px 60px 0; }
  .social-card { width: 170px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .innov { grid-template-columns: 1fr; }
  .innov__img { aspect-ratio: 16 / 9; }
  .section { padding-top: 96px; }
  .band { margin-top: 96px; padding: 80px 0; }
  .contact-box { padding: 28px 20px; gap: 32px; }
  .form__row { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .cloud-band { min-height: 440px; }
}
@media (max-width: 520px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .hero__app { display: none; }
  .hero__media { inset: 0 0 40px 0; }
  .mega { grid-template-columns: 1fr; }
}

/* ===== HERO con sfondo rete neurale ===== */
.hero-bg { position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 75% 40%, #1a3358 0%, #0d1a2e 55%, #070e1a 100%); color: #f5f5f2; }
.hero-bg .neural { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.hero-bg__glow { position: absolute; z-index: -1; pointer-events: none; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
  right: -10vw; top: -20%; background: radial-gradient(circle, rgba(255,0,98,.22) 0%, rgba(255,0,98,0) 60%); filter: blur(10px); }
.hero-bg::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(7,14,26,.78) 0%, rgba(7,14,26,.35) 45%, rgba(7,14,26,0) 70%); }
.hero-bg .hero { padding-top: 72px; padding-bottom: 80px; }
.hero-bg .h-display { color: #fff; }
.hero-bg .hero__lead { color: #c9d3e2; }
.hero-bg .hero__note { color: #9fb0c8; }
.hero-bg .btn--ghost { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); backdrop-filter: blur(6px); }
.hero-bg .btn--ghost:hover { background: rgba(255,255,255,.2); color: #fff; }
.hero-bg .hero__media { background: #0d1a2e; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.hero-bg .hero__app { box-shadow: 0 30px 70px rgba(0,0,0,.55); }
@media (max-width: 900px) {
  .hero-bg .hero { padding-top: 40px; padding-bottom: 48px; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(7,14,26,.7) 0%, rgba(7,14,26,.2) 60%); }
}

/* ===== Logo ===== */
.brand { display: inline-flex; align-items: center; line-height: 0; }
.brand img { height: 28px; width: auto; display: block; }
.site-footer__brand img { height: 30px; width: auto; display: block; }
@media (max-width: 600px) { .brand img { height: 24px; } }

/* ===== Pannello dati "vetro" al posto dell'immagine hero ===== */
.hero-bg .hero__media--glass { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 18px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 80px rgba(0,0,0,.35);
  padding: 20px; display: flex; flex-direction: column; gap: 18px; margin: 0; }
.hero__media--glass .hero__kpi { position: static; background: rgba(7,14,26,.55); border-radius: 12px; justify-content: space-between; }
.glass-chart { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.glass-chart__t { margin: 0 0 10px; font-size: 13px; color: #9fb0c8; }
.glass-chart__bars { flex: 1; display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; align-items: end; min-height: 90px; }
.glass-chart__bars i { display: block; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, rgba(201,211,226,.55), rgba(201,211,226,.15));
  transform-origin: bottom; animation: growY 1.1s var(--ease) both; }

.glass-chart__bars i.on { background: linear-gradient(180deg, #ff0062, rgba(255,0,98,.35)); box-shadow: 0 0 24px rgba(255,0,98,.45); }
.glass-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.glass-list li { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; background: rgba(255,255,255,.07); border-radius: 10px; padding: 10px 14px; font-size: 13px; color: #c9d3e2; }
.glass-list b { color: #fff; font-weight: 600; }
.glass-list span { grid-column: 1; }
.glass-list em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-size: 12px; font-weight: 600; color: #fff;
  background: rgba(255,0,98,.22); border: 1px solid rgba(255,0,98,.5); padding: 4px 10px; border-radius: 999px; }
@keyframes growY { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (max-width: 900px) {
  .hero-bg .hero__media--glass { padding: 14px; gap: 12px; }
  .glass-list li:nth-child(3) { display: none; }
}
@media (max-width: 600px) { .glass-list { display: none; } }
@media (prefers-reduced-motion: reduce) { .glass-chart__bars i { animation: none; } }
/* spazio per lo smartphone che si sovrappone al pannello */
.hero__media--glass .glass-chart, .hero__media--glass .glass-list { margin-right: 150px; }
@media (max-width: 900px) { .hero__media--glass .glass-chart, .hero__media--glass .glass-list { margin-right: 128px; } }
@media (max-width: 600px) { .hero__media--glass .glass-chart, .hero__media--glass .glass-list { margin-right: 0; } }

/* ===== Fix leggibilità e raccordo hero → nastro ===== */
/* il fondo della hero sfuma in un colore pieno, uguale al nastro sotto */
.hero-bg { background:
  linear-gradient(180deg, rgba(8,17,31,0) 70%, #08111f 100%),
  radial-gradient(120% 90% at 75% 40%, #1a3358 0%, #0d1a2e 55%, #070e1a 100%); }
.hero-bg + .marquee { margin-top: 0; background: #08111f; color: #c9d3e2; border: 0; }
/* notifiche nella hero: vetro scuro con testo chiaro */
.hero-bg .toast { background: rgba(16,33,58,.92); color: #c9d3e2; border: 1px solid rgba(255,255,255,.14);
  border-left: 3px solid #ff0062; border-radius: 10px; box-shadow: 0 18px 40px rgba(0,0,0,.4);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hero-bg .toast strong { color: #fff; }
/* lo smartphone ha fondo chiaro: testo scuro */
.hero-bg .hero__app { color: var(--ink); }

/* =====================================================================
   COMPONENTI DEL SITO COMPLETO
   ===================================================================== */

/* Font ospitato sul sito (nessuna richiesta a server esterni, conforme GDPR) */
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/assets/fonts/hanken-grotesk-latin.woff2') format('woff2'); }

/* Menu */
.mega { grid-template-columns: repeat(3, minmax(240px, 1fr)); }
.mega a { white-space: normal; line-height: 1.3; }
.mega__all { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--surface-2); font-weight: 600; color: var(--accent) !important; }
.mega a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.nav__lang { font-size: 14px; font-weight: 700; letter-spacing: .04em; text-decoration: none; border: 1.5px solid currentColor; border-radius: var(--radius-pill); padding: 4px 10px; line-height: 1.2; }
.nav__lang:hover { color: var(--accent); }
.link-btn { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-align: left; font: inherit; }
.site-footer .link-btn:hover { color: var(--accent-light); }

/* WhatsApp */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px rgba(13,17,23,.25); transition: transform .2s ease; }
.wa-float:hover { color: #fff; transform: scale(1.07); }

/* Banner cookie */
.ck { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; display: flex; justify-content: center; pointer-events: none; }
.ck__box { pointer-events: auto; width: min(760px, 100%); background: var(--white); color: var(--ink); padding: 26px 28px; border-radius: 18px;
  box-shadow: 0 30px 80px rgba(13,17,23,.28); border-top: 4px solid var(--accent); transform: translateY(24px); opacity: 0; transition: transform .3s var(--ease), opacity .3s ease; }
.ck.is-in .ck__box { transform: none; opacity: 1; }
.ck__title { margin: 0 0 8px; font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }
.ck__text { margin: 0; font-size: 15px; color: var(--ink-2); }
.ck__text a { color: var(--accent-dark); }
.ck__prefs { margin-top: 16px; display: grid; gap: 8px; }
.ck__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--bg); padding: 14px 16px; border-radius: 12px; cursor: pointer; }
.ck__row strong { display: block; font-size: 16px; }
.ck__row span { font-size: 14px; color: var(--muted); }
.ck__always { font-size: 13px !important; font-weight: 600; color: var(--accent-dark) !important; white-space: nowrap; }
.ck__switch { appearance: none; -webkit-appearance: none; flex: none; width: 46px; height: 26px; border-radius: 999px; background: #cfcfc8; position: relative; cursor: pointer; transition: background .2s ease; }
.ck__switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.ck__switch:checked { background: var(--accent); }
.ck__switch:checked::after { transform: translateX(20px); }
.ck__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; justify-content: flex-end; }
.ck__btn { min-width: 130px; }
.ck .btn { transform: none; }

/* Anteprime d'interfaccia (mock) */
.mock-card { background: var(--navy); color: var(--navy-ink); font-size: 13px; border-radius: 16px; overflow: hidden; min-height: 300px; display: flex; box-shadow: 0 30px 70px rgba(13,17,23,.18); }
.mock-card > .ui { width: 100%; padding: 28px; gap: 8px; }
.mock-card .ui-row { padding: 11px 14px; border-radius: 8px; }
.mock-card .ui-head { font-size: 14px; margin-bottom: 8px; }
.mock-card--hero { min-height: 380px; }
.mock-card .cal-row { grid-template-columns: 90px repeat(10, minmax(0, 1fr)); gap: 4px; }
.mock-card .cal-bar { padding: 8px; border-radius: 4px; }
.mock-card .ui--cal { justify-content: center; }
.tile__pv .ui-row { border-radius: 4px; }
.ui--phone { align-items: center; justify-content: center; }
.mini-phone { width: 190px; background: #fff; color: var(--ink); border-radius: 26px; padding: 16px 12px; display: flex; flex-direction: column; gap: 8px; font-size: 12px; box-shadow: 0 0 0 8px var(--bg); }
.mini-phone > strong { font-size: 15px; letter-spacing: -0.03em; }
.tile__pv .mini-phone { width: 150px; padding: 10px 9px; gap: 5px; font-size: 10px; box-shadow: 0 0 0 5px var(--bg); transform: translateY(18px); }
.tile__pv .mini-phone .chip-row { padding: 6px 8px; }
.tile__pv .mini-phone .hero__app-btn { padding: 7px; }
.mock-card .mini-phone { width: 230px; font-size: 13px; }
.chip-row b { font-weight: 600; }

/* Pagine interne */
.page-hero__visual { min-width: 0; }
.page-hero__text--wide { max-width: 980px; }
.proof { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; color: var(--muted); font-weight: 500; }
.proof li { display: flex; align-items: center; gap: 8px; }
.proof li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.kicker { margin: 0 0 16px; font-weight: 600; color: var(--accent); font-size: 16px; }
.h-section--md { font-size: clamp(32px, 3.6vw, 56px); }

.intro { display: grid; grid-template-columns: 1fr; gap: 56px; align-items: start; }
.intro--stats { grid-template-columns: 1.4fr 1fr; }
.intro__lead { font-size: clamp(22px, 2vw, 30px); line-height: 1.32; letter-spacing: -0.02em; color: var(--ink); margin: 0; max-width: 34ch; font-weight: 500; }
.intro__text p:not(.intro__lead) { font-size: 19px; color: var(--ink-2); max-width: 62ch; margin: 22px 0 0; }
.stats { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--surface); padding: 24px; display: flex; flex-direction: column-reverse; gap: 6px; }
.stat dt { font-size: 15px; color: var(--muted); }
.stat dd { margin: 0; font-size: clamp(34px, 3.4vw, 50px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; color: var(--ink); }

.features { display: grid; gap: 12px; }
.features--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.features--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.features--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature { background: var(--surface); padding: 30px 28px 32px; display: flex; flex-direction: column; gap: 10px; transition: background .2s ease, transform .25s var(--ease); }
.feature:hover { background: #fff; transform: translateY(-4px); }
.feature__n { font-size: 14px; font-weight: 700; color: var(--accent); letter-spacing: .04em; }
.feature h3 { margin: 0; font-size: 23px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.feature p { margin: 0; font-size: 17px; color: var(--ink-2); }

.split--rev > :first-child { order: 2; }
.split__p { font-size: 19px; color: var(--ink-2); margin: 22px 0 0; max-width: 56ch; }
.split__cta { margin: 32px 0 0; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; font-size: 18px; color: var(--ink-2); }
.checks li::before { content: ''; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); }
.checks li::after { content: ''; position: absolute; left: 7px; top: calc(.2em + 6px); width: 8px; height: 5px; border-left: 2px solid var(--accent-dark); border-bottom: 2px solid var(--accent-dark); transform: rotate(-45deg); }
.checks--sm li { font-size: 16px; }

.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.flow--many { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.flow__step { background: var(--surface-2); padding: 22px 18px; min-height: 150px; display: flex; flex-direction: column; gap: 6px; }
.flow__n { font-size: 14px; font-weight: 700; color: var(--accent); }
.flow__step strong { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.flow__step span:not(.flow__n) { font-size: 15px; color: var(--ink-2); }
.flow__step--accent { background: var(--accent); color: #fff; }
.flow__step--accent .flow__n, .flow__step--accent span { color: #fff !important; }

.plans { display: grid; gap: 14px; align-items: stretch; }
.plans--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px; }
.plans--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan { background: var(--white); padding: 34px 30px; display: flex; flex-direction: column; gap: 10px; position: relative; border: 2px solid transparent; }
.plan--featured { border-color: var(--accent); box-shadow: 0 30px 60px rgba(230,0,90,.12); }
.plan__badge { position: absolute; top: -14px; left: 30px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: var(--radius-pill); }
.plan__name { margin: 0; font-size: 30px; font-weight: 600; letter-spacing: -0.04em; }
.plan__tag { margin: 0; color: var(--muted); font-size: 16px; }
.plan__price { margin: 6px 0 0; font-size: 20px; font-weight: 600; }
.plan__price strong { font-size: 44px; letter-spacing: -0.04em; }
.plan .checks { margin: 14px 0 24px; flex: 1; }
.plans__note { margin-top: 20px; color: var(--muted); font-size: 15px; }

.audience { background: var(--white); padding: 48px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: center; }
.audience__list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.audience__list li { background: var(--bg); padding: 12px 18px; border-radius: var(--radius-pill); font-weight: 500; font-size: 17px; }

.callout { position: relative; overflow: hidden; }
.callout::before { content: ''; position: absolute; right: -10%; top: -40%; width: 60%; height: 180%; background: radial-gradient(circle, rgba(255,0,98,.22), rgba(255,0,98,0) 60%); pointer-events: none; }
.callout__in { position: relative; }
.callout .h-section { max-width: 18ch; }
.btn--glass { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.btn--glass:hover { background: rgba(255,255,255,.2); color: #fff; }

.tiles--three { margin-top: 32px; }
.section--tight .tiles--three { margin-top: 28px; }

/* Contatti */
.contact-ways li { display: flex; flex-direction: column; }
.contact-ways li span { font-size: 14px; color: var(--muted); font-weight: 500; }
.contact-ways a { font-size: 20px; font-weight: 600; text-decoration: none; letter-spacing: -0.02em; }
.offices { background: var(--white); padding: 48px; }
.offices__list { margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.offices__list dt { font-size: 14px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.offices__list dd { margin: 0; font-size: 17px; }

/* Pagine legali */
.legal { padding-top: 24px; }
.legal .h-display--article { margin-bottom: 16px; }
.toc { background: var(--surface); padding: 24px 28px; margin: 40px 0 0; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; font-size: 16px; }
.toc li { margin: 4px 0; break-inside: avoid; }
.legal__body { margin-top: 24px; font-size: 17px; }
.legal__body h2 { font-size: clamp(24px, 2.2vw, 32px); }
.legal__body table { font-size: 15px; }
.legal__body table td, .legal__body table th { vertical-align: top; }

/* Grazie e 404 */
.thanks { padding-top: 80px; padding-bottom: 40px; max-width: 980px; }
.thanks__steps { margin: 36px 0 0; padding-left: 22px; display: grid; gap: 10px; font-size: 19px; color: var(--ink-2); }
.nf__or { margin: 56px 0 12px; color: var(--muted); }
.nf__links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.nf__links a { display: inline-block; background: var(--surface); padding: 10px 16px; text-decoration: none; font-weight: 500; }

/* Blog */
.news--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 48px; }
.faq__title { margin-top: 64px; }

/* Responsive dei nuovi componenti */
@media (max-width: 1100px) {
  .features--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow--many { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .offices__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mega { grid-template-columns: repeat(2, minmax(170px, 1fr)); }
}
@media (max-width: 900px) {
  .intro--stats, .audience, .plans--2, .plans--3, .features--2, .features--3, .features--4, .news--grid { grid-template-columns: 1fr; }
  .split--rev > :first-child { order: 0; }
  .flow, .flow--many { grid-template-columns: 1fr 1fr; }
  .audience, .offices { padding: 28px 20px; }
  .mock-card--hero { min-height: 300px; }
  .mock-card > .ui { padding: 18px; }
  .nav__lang { align-self: flex-start; margin-top: 16px; font-size: 16px; padding: 6px 14px; }
  .mega__all { border-top: 0; padding-top: 0; }
  .toc ol { columns: 1; }
  .ck__box { padding: 20px; }
  .ck__actions { justify-content: stretch; }
  .ck__btn { flex: 1 1 140px; }
  .wa-float { width: 50px; height: 50px; right: 14px; bottom: 14px; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .offices__list { grid-template-columns: 1fr; }
  .mock-card .cal-row { grid-template-columns: 64px repeat(10, minmax(0, 1fr)); }
}
