@font-face{font-family:"Montserrat";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/montserrat-400.woff2) format("woff2")}
@font-face{font-family:"Montserrat";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/montserrat-500.woff2) format("woff2")}
@font-face{font-family:"Montserrat";font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/montserrat-700.woff2) format("woff2")}
@font-face{font-family:"Montserrat";font-style:normal;font-weight:800;font-display:swap;src:url(/assets/fonts/montserrat-800.woff2) format("woff2")}

  /* Layout: home a bande alternate blu notte / nebbia, hero con freccia ascendente del monogramma come motivo guida.
     Palette e font da brand guidelines v1.0 (60% Blu Notte, 30% neutri, 10% Arancio). */
  :root {
    --navy: #0F1B3D;
    --orange: #FF6B35;
    --orange-text: #C8470F;
    --bg: #FFFFFF;
    --band: #F4F6FB;
    --fg: #0F1B3D;
    --muted: #55607D;
    --line: #DDE2EE;
    --card: #FFFFFF;
    --hero-bg: #0F1B3D;
    --hero-fg: #FFFFFF;
    --hero-muted: #B7C0D9;
    --font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #0B1430; --band: #0F1B3D; --fg: #F4F6FB; --muted: #AEB8D2; --line: #243255; --card: #14224A;
      --hero-bg: #070E22; --orange-text: #FF8A5C; color-scheme: dark;
    }
  }
  :root[data-theme="dark"] {
    --bg: #0B1430; --band: #0F1B3D; --fg: #F4F6FB; --muted: #AEB8D2; --line: #243255; --card: #14224A;
    --hero-bg: #070E22; --orange-text: #FF8A5C; color-scheme: dark;
  }

  * { box-sizing: border-box; }
  body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 16px; line-height: 1.6; }
  h1, h2, h3 { line-height: 1.1; margin: 0; text-wrap: balance; }
  p { margin: 0; }
  a { color: inherit; }
  .wrap { max-width: 1120px; margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
  .wrap > * { min-width: 0; }
  section { padding-block: 88px; }
  .eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--orange-text); margin-bottom: 14px; }
  h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.01em; }
  .lead { color: var(--muted); max-width: 56ch; margin-top: 16px; }

  /* Header */
  .top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--hero-bg); border-bottom: 1px solid rgba(255,255,255,.08); }
  body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--hero-bg); }
  .top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
  .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
  .brand svg { width: 40px; height: 40px; flex: none; }
  .brand b { display: block; font-size: 17px; font-weight: 700; line-height: 1.1; }
  .brand small { display: block; font-size: 10px; font-weight: 500; letter-spacing: .3em; color: var(--orange); }
  nav { display: flex; align-items: center; gap: 28px; }
  nav a { color: var(--hero-muted); text-decoration: none; font-size: 14px; font-weight: 500; }
  nav a:hover { color: #fff; }
  .btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 12px; background: var(--orange); color: var(--navy); font: 700 15px var(--font); text-decoration: none; border: 0; cursor: pointer; transition: background-color .2s, transform .2s; }
  .btn:hover { background: #FF8256; transform: translateY(-1px); }
  .btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
  .btn.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
  .btn.ghost:hover { background: rgba(255,255,255,.08); }
  .top .btn { padding: 10px 18px; font-size: 14px; }

  /* Hero */
  .hero { background: var(--hero-bg); color: var(--hero-fg); padding-block: 96px 104px; position: relative; overflow: hidden; }
  .hero::after { content: ""; position: absolute; right: -6%; bottom: -30%; width: 62%; aspect-ratio: 1; background: radial-gradient(circle at center, rgba(255,107,53,.22), transparent 62%); pointer-events: none; }
  .hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; position: relative; z-index: 1; }
  .hero h1 { font-size: clamp(36px, 5.6vw, 64px); font-weight: 800; letter-spacing: -.02em; }
  .hero h1 em { font-style: normal; color: var(--orange); }
  .hero p.sub { margin-top: 24px; max-width: 50ch; color: var(--hero-muted); font-size: 18px; }
  .cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
  .arrow { width: 100%; max-width: 420px; justify-self: center; }
  .arrow path.up { stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1.4s .2s ease-out forwards; }
  .arrow polygon { opacity: 0; animation: pop .4s 1.4s ease-out forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes pop { to { opacity: 1; } }
  @media (prefers-reduced-motion: reduce) {
    .arrow path.up { animation: none; stroke-dashoffset: 0; }
    .arrow polygon { animation: none; opacity: 1; }
    .btn { transition: none; }
  }

  /* Chi sono */
  .about { background: var(--band); }
  .about .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: center; }
  .photo { position: relative; max-width: 420px; width: calc(100% - 20px); }
  .photo::before { content: ""; position: absolute; inset: 20px -20px -20px 20px; background: var(--navy); border-radius: 28px; }
  .photo .ph { position: relative; aspect-ratio: 4 / 5; border-radius: 28px; background: linear-gradient(160deg, #1B2B5C, #0F1B3D); display: grid; place-items: center; color: var(--hero-muted); font-size: 13px; text-align: center; padding: 24px; border: 1px solid rgba(255,255,255,.1); }
  .photo .ph svg { width: 96px; margin-bottom: 14px; }
  .about p + p { margin-top: 16px; }
  .about .txt p { color: var(--muted); max-width: 52ch; }
  .about h2 { margin-bottom: 20px; }
  .about .btn { margin-top: 28px; background: var(--navy); color: #fff; }
  .about .btn:hover { background: #1B2B5C; }

  .stats { display: flex; flex-wrap: wrap; gap: 20px 44px; margin: 44px 0 0; }
  .stats dt { font-size: 34px; font-weight: 800; color: var(--orange); line-height: 1; }
  .stats dd { margin: 6px 0 0; font-size: 13px; color: var(--hero-muted); }
  .clients { background: var(--band); padding-block: 40px; }
  .clients .eyebrow { margin-bottom: 18px; }
  .clients ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 32px; font-weight: 700; color: var(--muted); font-size: 15px; }
  .contacts { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 6px; color: var(--hero-muted); font-size: 15px; }
  .contacts strong { color: #fff; }
  .chk { display: flex; align-items: center; gap: 10px; font-weight: 500; }
  .chk input { width: auto; }
  /* Servizi */
  .services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; margin-top: 48px; }
  .svc { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; }
  .svc h3 { font-size: 21px; font-weight: 700; }
  .svc p { color: var(--muted); font-size: 15px; }
  .svc ul { margin: 4px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
  .svc .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--navy); display: grid; place-items: center; }
  .svc .ico svg { width: 22px; height: 22px; }
  .svc a.more { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 14px; color: var(--orange-text); text-decoration: none; }
  .svc a.more:hover { text-decoration: underline; text-underline-offset: 3px; }

  /* Blog */
  .blog { background: var(--band); }
  .blog-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; }
  .posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 40px; }
  .post { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: transform .2s; }
  .post:hover { transform: translateY(-3px); }
  .post .img { aspect-ratio: 16 / 8; background: linear-gradient(120deg, var(--navy), #243A7A); position: relative; }
  .post .img::after { content: ""; position: absolute; right: 18px; bottom: 14px; width: 54px; height: 54px; border-radius: 50%; background: var(--orange); opacity: .9; }
  .post .body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; }
  .post .cat { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-text); }
  .post h3 { font-size: 18px; font-weight: 700; line-height: 1.25; }
  .post p { color: var(--muted); font-size: 14px; }

  /* FAQ */
  .faq-list { margin-top: 40px; max-width: 760px; border-top: 1px solid var(--line); }
  details { border-bottom: 1px solid var(--line); padding: 20px 0; }
  summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
  summary::-webkit-details-marker { display: none; }
  summary::after { content: "+"; color: var(--orange-text); font-size: 24px; line-height: 1; }
  details[open] summary::after { content: "–"; }
  details p { color: var(--muted); margin-top: 12px; max-width: 62ch; }

  /* Contatti */
  .contact { background: var(--hero-bg); color: var(--hero-fg); }
  .contact .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
  .contact .lead { color: var(--hero-muted); }
  form { display: grid; gap: 16px; background: var(--card); color: var(--fg); padding: 32px; border-radius: 22px; }
  label { font-size: 13px; font-weight: 700; display: grid; gap: 6px; }
  input, textarea, select { font: 400 15px var(--font); padding: 13px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); color: var(--fg); width: 100%; }
  textarea { min-height: 110px; resize: vertical; }
  .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .note { font-size: 12px; color: var(--muted); }
  .ok { display: none; padding: 14px 16px; border-radius: 10px; background: #E5F6EC; color: #11502B; font-size: 14px; font-weight: 500; }
  .ok.show { display: block; }

  /* Footer */
  footer { background: var(--hero-bg); color: var(--hero-muted); padding-block: 28px; font-size: 13px; border-top: 1px solid rgba(255,255,255,.08); }
  footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
  footer button { background: none; border: 0; color: var(--hero-muted); font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }

  /* Admin demo */
  .badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: var(--navy); color: #fff; margin-bottom: 14px; }
  .tablewrap { overflow-x: auto; margin-top: 32px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
  table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14px; }
  th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
  th { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
  tr:last-child td { border-bottom: 0; }
  .pill { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
  .pill.new { background: #FFE6DB; color: #8A2F08; }
  .pill.done { background: #E5F6EC; color: #11502B; }
  .admin-actions { margin-top: 28px; }
  .admin-actions .btn { background: var(--navy); color: #fff; }

  @media (max-width: 860px) {
    section { padding-block: 64px; }
    
    .hero { padding-block: 64px 72px; }
    .hero .wrap, .about .wrap, .contact .wrap { grid-template-columns: 1fr; gap: 44px; }
    .arrow { max-width: 260px; justify-self: start; }
    .row { grid-template-columns: 1fr; }
    form { padding: 24px; }
  }

  /* ---- Sito multipagina ---- */
  nav a[aria-current="page"]:not(.btn) { color: #fff; box-shadow: inset 0 -2px 0 var(--orange); }
  .crumbs { font-size: 13px; color: var(--hero-muted); margin-bottom: 18px; }
  .crumbs a { text-decoration: none; }
  .crumbs a:hover { text-decoration: underline; }
  .pagehead { background: var(--hero-bg); color: var(--hero-fg); padding-block: 72px 80px; }
  .pagehead h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -.02em; }
  .pagehead p.sub { margin-top: 20px; max-width: 60ch; color: var(--hero-muted); font-size: 18px; }
  .pagehead .cat { display: inline-block; margin-bottom: 14px; }
  .meta { margin-top: 18px; font-size: 13px; color: var(--hero-muted); }
  .svc { text-decoration: none; transition: transform .2s; }
  a.svc:hover { transform: translateY(-3px); }
  .svc .tag { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-text); }
  .chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
  .chip { font: 500 13px var(--font); padding: 8px 16px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--card); color: var(--fg); cursor: pointer; }
  .chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
  .post.soon { opacity: .75; cursor: default; }
  .post.soon:hover { transform: none; }
  .post .date { font-size: 12px; color: var(--muted); }
  .prose { max-width: 720px; }
  .prose h2 { font-size: 28px; margin: 48px 0 14px; }
  .prose h3 { font-size: 20px; font-weight: 700; margin: 28px 0 10px; }
  .prose p, .prose ul, .prose ol { margin: 0 0 16px; color: var(--fg); }
  .prose li { margin-bottom: 8px; }
  .prose a { color: var(--orange-text); font-weight: 500; }
  .prose table { display: block; overflow-x: auto; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
  .prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
  .prose th { background: var(--band); }
  .prose > p:first-child { font-size: 19px; }
  .demo-note { background: var(--band); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; font-size: 13px; color: var(--muted); max-width: 720px; margin-bottom: 36px; }
  .form-sec .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
  .form-sec { background: var(--hero-bg); color: var(--hero-fg); }
  .form-sec .lead { color: var(--hero-muted); }
  .success h3 { font-size: 22px; margin-bottom: 8px; }
  .success p { color: var(--muted); margin-bottom: 18px; }
  .contacts-big { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
  .contacts-big li { font-size: 15px; color: var(--hero-muted); }
  .contacts-big strong { display: block; color: #fff; font-size: 20px; font-weight: 700; }
  .social { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
  .social a { color: var(--hero-muted); }
  .site-footer { background: var(--hero-bg); color: var(--hero-muted); padding-block: 56px 28px; font-size: 14px; border-top: 1px solid rgba(255,255,255,.08); }
  .site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 32px; }
  .site-footer h4 { margin: 0 0 12px; color: #fff; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
  .site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
  .site-footer a { color: var(--hero-muted); text-decoration: none; }
  .site-footer a:hover { color: #fff; text-decoration: underline; }
  .site-footer .legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; }
  .site-footer button { background: none; border: 0; color: var(--hero-muted); font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }
  [data-page="admin"] { background: var(--band); min-height: 80vh; padding-block: 64px; }
  @media (max-width: 860px) {
    .form-sec .wrap { grid-template-columns: 1fr; gap: 40px; }
    .pagehead { padding-block: 48px 56px; }
  }
  /* ---- Ottimizzazione tablet e mobile ---- */
  input, textarea, select { font-size: 16px; }
  .prose table { min-width: 0; width: max-content; max-width: 100%; }
  nav a:not(.btn) { padding-block: 6px; }
  @media (max-width: 860px) {
    .hero { position: relative; }
    .hero .wrap { position: relative; z-index: 1; }
    .arrow { position: absolute; right: -10px; top: 24px; width: min(46vw, 280px); max-width: none; z-index: 0; justify-self: auto; }
    .photo { margin-inline: auto; }
    .stats { gap: 18px 32px; }
  }
  @media (max-width: 640px) {
    .top .wrap { padding-block: 10px; row-gap: 6px; }
    .brand svg { width: 32px; height: 32px; }
    .brand b { font-size: 15px; }
    nav a:not(.btn) { font-size: 14px; }
    section { padding-block: 52px; }
    .hero { padding-block: 44px 52px; }
    .hero p.sub, .pagehead p.sub { font-size: 16px; }
    .cta .btn { width: 100%; justify-content: center; }
    .svc { padding: 24px 20px; }
    .pagehead { padding-block: 36px 44px; }
    .chip { padding: 10px 16px; }
    form { padding: 20px; }
    .prose h2 { font-size: 24px; margin-top: 36px; }
    .prose > p:first-child { font-size: 17px; }
    .site-footer .cols { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
    .site-footer .legal { flex-direction: column; }
    .contacts-big strong { font-size: 17px; overflow-wrap: anywhere; }
    summary { font-size: 16px; }
  }
  @media (max-width: 380px) {
    .site-footer .cols { grid-template-columns: 1fr; }
    .stats dt { font-size: 28px; }
  }
  .menu-btn { display: none; width: 44px; height: 44px; border: 1.5px solid rgba(255,255,255,.3); border-radius: 12px; background: transparent; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
  .menu-btn span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
  .top.open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .top.open .menu-btn span:nth-child(2) { opacity: 0; }
  .top.open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  @media (max-width: 640px) {
    .top .wrap { flex-wrap: wrap; }
    .menu-btn { display: flex; }
    .top nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 12px; }
    .top.open nav { display: flex; }
    .top nav a:not(.btn) { font-size: 17px; padding: 14px 4px; border-top: 1px solid rgba(255,255,255,.1); }
    .top nav a[aria-current="page"]:not(.btn) { box-shadow: none; color: var(--orange); }
    .top nav a.btn { display: inline-flex; justify-content: center; margin-top: 12px; padding: 14px 26px; font-size: 15px; }
  }
  @media (prefers-reduced-motion: reduce) { .menu-btn span { transition: none; } }
  @media (max-width: 520px) { .row { grid-template-columns: 1fr; } }
  @media (min-width: 641px) and (max-width: 860px) { .top nav { gap: 20px; } }
  .arrow { opacity: .14; }
  .form-sec { border-top: 1px solid rgba(255,255,255,.08); }

  .clients .logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
  .clients .logos li { width: 170px; height: 104px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
  .clients .logos img { max-width: 132px; max-height: 72px; width: auto; height: auto; filter: grayscale(1) contrast(1.2); opacity: .9; transition: filter .25s, opacity .25s; }
  .clients .logos li:hover img { filter: none; opacity: 1; }
  .clients .logos li.txt span { font-weight: 800; font-size: 14px; letter-spacing: .08em; color: #0F1B3D; text-align: center; }
  @media (max-width: 640px) { .clients .logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .clients .logos li { width: auto; } }
  @media (prefers-reduced-motion: reduce) { .clients .logos img { transition: none; } }
  /* Griglia articoli: colonne fisse, così 1 o 2 card restano della stessa dimensione */
  .posts { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
  @media (max-width: 900px) { .posts { gap: 16px; } .post .body { padding: 16px 16px 20px; } .post h3 { font-size: 16px; } .post .cat { font-size: 10px; letter-spacing: .1em; } }
  @media (max-width: 640px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 480px) { .posts { grid-template-columns: minmax(0, 1fr); } }
  .post[hidden], [hidden] { display: none !important; }

  /* Filtro categorie blog */
  .chips-wrap { position: relative; }
  .chips { margin-top: 0; }
  .chip { display: inline-flex; align-items: center; gap: 8px; transition: background-color .2s, border-color .2s; }
  .chip:hover { border-color: var(--navy); }
  .chip .n { font-size: 11px; font-weight: 700; min-width: 22px; padding: 2px 7px; border-radius: 99px; background: var(--band); color: var(--muted); text-align: center; }
  .chip[aria-pressed="true"] .n { background: var(--orange); color: var(--navy); }
  .result { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
  .result + .posts { margin-top: 20px; }
  @media (max-width: 640px) {
    .chips-wrap { margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); }
    .chips { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px max(16px, env(safe-area-inset-left, 0px)) 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .chips::-webkit-scrollbar { display: none; }
    .chip { flex: none; scroll-snap-align: start; white-space: nowrap; }
    .chips-wrap::after { content: ""; position: absolute; top: 0; right: 0; bottom: 6px; width: 28px; pointer-events: none; background: linear-gradient(to right, transparent, var(--band)); }
  }
  @media (prefers-reduced-motion: reduce) { .chip { transition: none; } }

  /* Pagine servizio */
  .pagehead .cta { margin-top: 28px; }
  .svc-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: start; }
  .svc-two h2 { font-size: clamp(24px, 3vw, 32px); }
  .checklist { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; }
  .checklist li { position: relative; padding-left: 32px; color: var(--fg); }
  .checklist li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--orange); }
  .checklist li::after { content: ""; position: absolute; left: 6px; top: calc(.3em + 4px); width: 4px; height: 8px; border: solid var(--navy); border-width: 0 2px 2px 0; transform: rotate(45deg); }
  .steps { list-style: none; counter-reset: st; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
  .steps li { counter-increment: st; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px 22px; }
  .steps li::before { content: counter(st); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 14px; }
  .steps h3 { font-size: 17px; margin-bottom: 8px; }
  .steps p { color: var(--muted); font-size: 14px; }
  .kpis { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
  .kpis li { padding: 9px 16px; border-radius: 99px; background: var(--band); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }
  .rels { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 28px; }
  .rel { display: grid; gap: 6px; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; transition: transform .2s; }
  .rel:hover { transform: translateY(-3px); }
  .rel span { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-text); }
  .rel strong { font-size: 16px; line-height: 1.3; }
  @media (max-width: 860px) { .svc-two { grid-template-columns: 1fr; gap: 40px; } }
  @media (prefers-reduced-motion: reduce) { .rel { transition: none; } }
  .band { background: var(--band); }

  /* Footer */
  .site-footer { padding-block: 64px 28px; }
  .site-footer .f-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1.3fr); gap: 48px; }
  .site-footer .f-brand p { margin: 18px 0 22px; max-width: 38ch; color: var(--hero-muted); }
  .site-footer .f-brand .brand b { font-size: 18px; }
  .site-footer .f-brand .btn { color: var(--navy); padding: 12px 22px; font-size: 14px; }
  .site-footer .f-brand .btn:hover { color: var(--navy); text-decoration: none; }
  .site-footer .social { margin-top: 24px; gap: 8px; }
  .site-footer .social a { display: inline-flex; align-items: center; padding: 8px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 99px; font-size: 13px; font-weight: 500; color: #fff; text-decoration: none; }
  .site-footer .social a:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.35); text-decoration: none; }
  .site-footer h4 { margin-bottom: 16px; }
  .site-footer ul { gap: 10px; }
  .site-footer .f-contacts li { display: grid; gap: 2px; color: #fff; }
  .site-footer .f-contacts span { font-size: 12px; color: var(--hero-muted); letter-spacing: .04em; }
  .site-footer .f-contacts a { color: #fff; font-weight: 500; overflow-wrap: break-word; }
  .site-footer .legal { margin-top: 48px; align-items: center; }
  .site-footer .legal-links, .site-footer .legal-end { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
  @media (max-width: 960px) { .site-footer .f-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .site-footer .f-brand { grid-column: 1 / -1; } }
  @media (max-width: 640px) {
    .site-footer { padding-block: 44px 24px; }
    .site-footer .f-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
    .site-footer .f-grid > div:last-child { grid-column: 1 / -1; }
    .site-footer .f-brand .btn { width: 100%; justify-content: center; }
    .site-footer .legal { flex-direction: column; align-items: flex-start; gap: 14px; }
  }

  .site-footer .wrap { display: block; }
  .site-footer .social { display: flex; flex-wrap: wrap; }
  .site-footer .brand { color: #fff; }
  .site-footer .brand:hover { text-decoration: none; }
  @media (max-width: 960px) { .site-footer .f-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

  .site-footer .social { gap: 10px; }
  .site-footer .social a { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; }
  .site-footer .social svg { width: 20px; height: 20px; }
  .site-footer .social a:hover { background: var(--orange); border-color: var(--orange); color: var(--navy); }
  /* Sezioni modulo: sfondo chiaro, diverso da quello del footer */
  .form-sec { background: var(--band); color: var(--fg); border-top: 0; }
  .form-sec .lead { color: var(--muted); }
  .form-sec form { border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(15, 27, 61, .08); }
  .contacts-big li { color: var(--muted); }
  .contacts-big strong { color: var(--fg); }

  /* Foto "Chi sono": ritratto circolare con cornice già inclusa nel file */
  .about .photo { max-width: 380px; width: 100%; margin-inline: auto; }
  .about .photo::before { display: none; }
  .about .photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 50%; }
  @media (max-width: 860px) { .about .photo { max-width: 280px; margin-inline: 0; } }

  /* Pagina Chi sono */
  .about-head .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: center; }
  .about-head .photo { max-width: 340px; width: 100%; justify-self: center; }
  .about-head .photo::before { display: none; }
  .about-head .photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 50%; }
  .about-head .stats { margin-top: 32px; }
  .story p { margin: 0 0 16px; color: var(--muted); max-width: 58ch; font-size: 17px; }
  @media (max-width: 860px) {
    .about-head .wrap { grid-template-columns: 1fr; gap: 32px; }
    .about-head .photo { order: -1; max-width: 220px; justify-self: start; }
  }

  .review .q { font-size: 17px; font-weight: 500; color: var(--muted); font-style: italic; }
  .review .who { font-size: 13px; font-weight: 700; color: var(--fg); margin-top: auto; }
  .clients-sec .clients .wrap { padding-inline: 0; }

  /* Linea del tempo */
  .timeline { list-style: none; margin: 0; padding: 0 0 0 36px; position: relative; display: grid; gap: 36px; }
  .timeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
  .timeline li { position: relative; }
  .timeline li::before { content: ""; position: absolute; left: -36px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--band); border: 3px solid var(--orange); }
  .timeline li:last-child::before { background: var(--orange); }
  .timeline .when { display: block; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-text); }
  .timeline h3 { font-size: 21px; margin: 6px 0 8px; }
  .timeline p { margin: 0; color: var(--muted); max-width: 54ch; }
  .story-sec .lead { margin-top: 18px; }

  .contacts-big a { color: inherit; text-decoration: none; }
  .contacts-big a:hover { text-decoration: underline; text-underline-offset: 4px; }
  .creds { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
  .creds li { padding: 8px 16px; border-radius: 99px; border: 1px solid rgba(255,255,255,.22); font-size: 13px; font-weight: 500; color: #fff; }

  .form-sec { scroll-margin-top: 68px; }

  .prose li > p { margin: 0; }
  .prose details { margin: 0 0 10px; }

  .post .img.has { background: none; }
  .post .img.has::after { display: none; }
  .post .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .pagehead.cover { background-size: cover; background-position: center; }

  .prose h2 + h3 { margin-top: 14px; }
  .prose h2:first-child { margin-top: 0; }
  .prose ul, .prose ol { padding-left: 22px; }

  .prose h2, .prose h3 { line-height: 1.25; }

  .post h2 { font-size: 18px; font-weight: 700; line-height: 1.25; letter-spacing: 0; }
  @media (max-width: 900px) { .post h2 { font-size: 16px; } }

  /* ---- Sito a pagine vere ---- */
  .skip { position: absolute; left: -9999px; top: 8px; background: #fff; color: #0F1B3D; padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 700; text-decoration: none; }
  .skip:focus { left: 8px; }
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; }
  .crumbs li + li::before { content: "»"; margin-right: 8px; }
  .site-footer .ft { margin: 0 0 12px; color: #fff; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
  a.chip { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
  .chip[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
  .related { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--line); }
  .related h2 { font-size: 26px; margin: 0 0 24px; }
  .prose .related h2 { margin-top: 0; }
  .pagehead .meta a { color: inherit; }
  .pagehead a.eyebrow { text-decoration: none; display: inline-block; }
  main:focus { outline: none; }
  .success h3 { margin: 0 0 8px; }
  .chip[aria-current="page"] .n { background: var(--orange); color: var(--navy); }
  .f-contacts a, .site-footer a { overflow-wrap: anywhere; }
  .prose strong, .prose a, .prose li { overflow-wrap: anywhere; }
  .site-footer .f-contacts a { overflow-wrap: anywhere; }
  .site-footer .f-grid > * { min-width: 0; }
  .prose a.btn { color: var(--navy); text-decoration: none; }
  .prose .btn { margin-top: 8px; }

.lead-form .tel{display:flex;gap:8px}.lead-form .tel select{flex:0 0 auto;width:auto;max-width:46%;min-width:0}.lead-form .tel input{flex:1 1 auto;min-width:0}
.grecaptcha-badge{visibility:hidden}.lead-form .rc{margin:12px 0 0;font-size:12px;line-height:1.5;color:var(--muted)}.lead-form .rc a{color:inherit;text-decoration:underline}
