:root {
  --font-heading: "Segoe UI";
  --font-body: "Segoe UI";
  --ink: #071a33;
  --blue: #075eae;
  --blue-deep: #053f7d;
  --cyan: #34c3e8;
  --pale: #edf5fa;
  --paper: #fbfdff;
  --line: #d8e4ed;
  --muted: #5b6b7d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: var(--font-body), sans-serif; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img, video { display: block; max-width: 100%; }
.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 10px 15px; background: #fff; }
.skip-link:focus { top: 10px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-heading), sans-serif; text-wrap: balance; }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(216, 228, 237, .86); background: rgba(251, 253, 255, .94); backdrop-filter: blur(14px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { width: 164px; height: 52px; display: flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 164px; height: auto; object-fit: contain; }
nav { display: flex; gap: 30px; font-size: 13px; font-weight: 700; }
nav a, .header-affiliate { transition: color .2s; }
nav a:hover, .header-affiliate:hover, .text-link:hover { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-affiliate { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }

.button { min-height: 52px; padding: 0 23px; display: inline-flex; align-items: center; justify-content: center; gap: 24px; border: 1px solid var(--blue); border-radius: 3px; background: var(--blue); color: #fff; font-weight: 800; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.button:hover { border-color: var(--blue-deep); background: var(--blue-deep); transform: translateY(-1px); }
.button-small { min-height: 42px; padding: 0 17px; gap: 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .035em; }
.button-ghost { border-color: #b9cddd; background: transparent; color: var(--ink); }
.button-ghost:hover { border-color: var(--blue); background: #f3f8fc; color: var(--blue); }
.button-cyan { border-color: var(--cyan); background: var(--cyan); color: var(--ink); }
.button-cyan:hover { border-color: #79ddf3; background: #79ddf3; }
.text-link { color: var(--blue); font-size: 14px; font-weight: 800; }
.light-link { color: #78def4; }

.hero { min-height: 720px; display: flex; align-items: center; overflow: hidden; background: linear-gradient(118deg, #fff 0 63%, #eaf4f9 63%); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 72px; padding-top: 64px; padding-bottom: 64px; }
.eyebrow { margin: 0 0 18px; color: var(--blue); font-size: 11px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow.light { color: #72d9ef; }
h1 { max-width: 720px; margin: 0; font-size: clamp(48px, 5.7vw, 74px); line-height: 1.01; letter-spacing: -.065em; }
h1 span { color: var(--blue); }
.hero-lead { max-width: 650px; margin: 28px 0 32px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 12px; }
.hero-trust { display: flex; gap: 22px; margin-top: 45px; padding-top: 21px; border-top: 1px solid var(--line); }
.hero-trust span { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; }
.hero-trust b { color: var(--cyan); font: 800 10px/1 var(--font-heading); }
.hero-media { position: relative; height: 570px; overflow: hidden; border-radius: 4px; background: var(--ink); box-shadow: 0 28px 65px rgba(7, 42, 82, .2); }
.hero-media > img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge { position: absolute; right: 18px; bottom: 18px; left: 18px; padding: 17px 19px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid rgba(255,255,255,.24); border-radius: 3px; background: rgba(5, 25, 49, .88); color: #fff; backdrop-filter: blur(8px); }
.hero-badge span { color: rgba(255,255,255,.65); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.hero-badge strong { font-size: 12px; }

.diana-section { position: relative; overflow: hidden; padding: 98px 0; background: var(--ink); color: #fff; }
.diana-section::after { content: ""; position: absolute; width: 540px; height: 540px; right: -260px; top: -280px; border-radius: 50%; background: rgba(52, 195, 232, .12); filter: blur(2px); }
.diana-shell { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 100px; }
.diana-mark { position: relative; width: min(410px, 100%); aspect-ratio: 3 / 4; overflow: hidden; border: 1px solid rgba(255,255,255,.2); border-radius: 5px; background: #05080c; box-shadow: 0 28px 70px rgba(0,0,0,.3); }
.diana-mark::after { content: "DIANA · SCANDOC"; position: absolute; right: 16px; bottom: 16px; padding: 7px 9px; border: 1px solid rgba(255,255,255,.22); border-radius: 2px; background: rgba(5,19,38,.78); color: rgba(255,255,255,.8); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.diana-mark img { width: 100%; height: 100%; object-fit: cover; }
.diana-copy h2, .section-heading h2, .method h2, .video-library-heading h2, .affiliate-section h2, .contact-copy h2 { margin: 0; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.06; letter-spacing: -.055em; }
.diana-lead { max-width: 660px; margin: 24px 0; color: rgba(255,255,255,.72); font-size: 18px; }
.diana-features { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 24px; }
.diana-features span { padding: 8px 11px; border: 1px solid rgba(255,255,255,.2); border-radius: 30px; color: rgba(255,255,255,.86); font-size: 11px; font-weight: 700; }
.diana-note { margin: 0 0 18px; color: rgba(255,255,255,.47); font-size: 12px; }

.services { padding: 100px 0 108px; }
.section-heading, .video-library-heading { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 72px; margin-bottom: 43px; }
.section-heading > p, .video-library-heading > p { max-width: 430px; margin: 0 0 5px; color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card { min-height: 430px; padding: 31px 29px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 3px; background: #fff; }
.service-featured { border-color: var(--blue); background: linear-gradient(150deg, #064a8d, #0a6ab9); color: #fff; }
.card-top { display: flex; align-items: center; justify-content: space-between; color: #8190a0; font: 800 10px/1 var(--font-heading); letter-spacing: .1em; text-transform: uppercase; }
.service-featured .card-top { color: rgba(255,255,255,.68); }
.card-top i { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--pale); color: var(--blue); font-style: normal; font-size: 22px; }
.service-featured .card-top i { background: rgba(255,255,255,.14); color: #fff; }
.service-card h3 { margin: 46px 0 13px; font-size: 28px; line-height: 1.1; letter-spacing: -.04em; }
.service-card p { margin: 0; color: var(--muted); }
.service-featured p { color: rgba(255,255,255,.74); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 25px; }
.chips span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 20px; color: var(--muted); font-size: 10px; font-weight: 700; }
.service-featured .chips span { border-color: rgba(255,255,255,.26); color: #fff; }
.service-card > a { display: flex; justify-content: space-between; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); color: var(--blue); font-size: 13px; font-weight: 800; }
.service-featured > a { border-color: rgba(255,255,255,.22); color: #fff; }

.method { padding: 100px 0; background: #eaf3f8; }
.method-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 86px; align-items: start; }
.method-intro > p:last-child { max-width: 460px; margin-top: 24px; color: var(--muted); }
.method-points { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); list-style: none; border-top: 1px solid #c8d8e3; }
.method-points li { min-height: 215px; padding: 26px 25px; border-right: 1px solid #c8d8e3; border-bottom: 1px solid #c8d8e3; }
.method-points li:nth-child(even) { border-right: 0; }
.method-points span { color: var(--blue); font: 800 10px/1 var(--font-heading); }
.method-points h3 { margin: 47px 0 8px; font-size: 20px; }
.method-points p { margin: 0; color: var(--muted); font-size: 13px; }

.video-feature { padding: 98px 0; background: #fff; }
.video-library { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.video-card { display: grid; grid-template-columns: minmax(190px, .72fr) 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 3px; background: #f5f9fc; }
.video-card-media { position: relative; min-height: 360px; overflow: hidden; display: grid; place-items: center; background: #02070d; }
.video-card-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #02070d; }
.video-card-content { padding: 28px 25px; display: flex; flex-direction: column; justify-content: space-between; }
.video-number { color: var(--blue); font: 800 10px/1 var(--font-heading); letter-spacing: .12em; }
.video-card h3 { margin: 0; font-size: 21px; line-height: 1.17; letter-spacing: -.035em; }
.video-card-content p { margin: 12px 0 0; color: var(--muted); font-size: 13px; }

.affiliate-section { padding: 100px 0; background: linear-gradient(135deg, #0759a6 0%, #083d75 100%); color: #fff; }
.affiliate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 95px; align-items: start; }
.affiliate-copy > p { max-width: 550px; margin: 0 0 16px; color: rgba(255,255,255,.76); font-size: 17px; }
.affiliate-copy .affiliate-detail { color: rgba(255,255,255,.5); font-size: 13px; }
.affiliate-copy .button { margin-top: 18px; }

.contact-section { padding: 100px 0; background: #edf4f8; }
.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 90px; align-items: start; }
.contact-copy > p:not(.eyebrow) { max-width: 430px; color: var(--muted); }
.contact-links { display: flex; flex-direction: column; margin: 27px 0 34px; }
.contact-links a { width: max-content; margin: 3px 0; font-weight: 750; }
.contact-links span { display: inline-block; width: 78px; color: #718091; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.mini-faq { border-top: 1px solid #c8d7e2; }
details { border-bottom: 1px solid #c8d7e2; }
summary { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; cursor: pointer; list-style: none; font: 700 14px/1.4 var(--font-heading); }
summary::-webkit-details-marker { display: none; }
summary span { color: var(--blue); font-size: 20px; }
details p { margin: -3px 25px 18px 0; color: var(--muted); font-size: 13px; }
.quote-form { padding: 35px 39px; border-radius: 3px; background: #fff; box-shadow: 0 18px 45px rgba(19,55,90,.1); }
.form-title { display: flex; justify-content: space-between; margin-bottom: 23px; padding-bottom: 17px; border-bottom: 1px solid var(--line); color: var(--blue); font-size: 10px; font-weight: 850; letter-spacing: .13em; }
.form-title b { color: #93a0ad; }
.quote-form label { display: block; margin-bottom: 14px; font-size: 11px; font-weight: 800; }
.quote-form input, .quote-form select, .quote-form textarea { width: 100%; margin-top: 6px; border: 1px solid #cad7e2; border-radius: 2px; background: #fbfdff; color: var(--ink); }
.quote-form input, .quote-form select { height: 44px; padding: 0 11px; }
.quote-form textarea { padding: 10px 11px; resize: vertical; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { border-color: var(--cyan); outline: 2px solid rgba(52,195,232,.16); }
.quote-form .privacy { display: flex; align-items: center; gap: 9px; color: var(--muted); font-weight: 500; }
.privacy input { width: 16px; height: 16px; margin: 0; }
.form-button { width: 100%; }
.form-note { margin: 10px 0 0; color: var(--muted); font-size: 10px; text-align: center; }

footer { padding: 58px 0 18px; background: #051326; color: #fff; }
.footer-main { display: grid; grid-template-columns: 1.35fr .65fr .75fr 1fr; align-items: start; gap: 55px; padding-bottom: 48px; }
.footer-logo { width: 188px; height: 68px; padding: 9px 12px; display: flex; align-items: center; border-radius: 2px; background: #fff; }
.footer-logo img { width: 164px; height: auto; object-fit: contain; }
.footer-brand p { max-width: 280px; margin: 20px 0 0; color: rgba(255,255,255,.53); font-size: 13px; }
.footer-nav, .footer-social, .footer-cta { display: flex; flex-direction: column; gap: 8px; }
.footer-nav > span, .footer-social > span, .footer-cta > span { margin-bottom: 6px; color: rgba(255,255,255,.37); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .15em; }
.footer-nav a, .footer-social a, .footer-cta a { color: rgba(255,255,255,.74); font-size: 13px; }
.footer-social a { display: flex; justify-content: space-between; gap: 16px; }
.footer-social a:hover, .footer-nav a:hover, .footer-cta a:hover { color: #72d9ef; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.39); font-size: 10px; }

@media (max-width: 1040px) {
  nav { display: none; }
  .hero-grid { gap: 45px; }
  .hero-media { height: 520px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-featured { grid-row: span 2; }
  .video-card { grid-template-columns: 1fr; }
  .video-card-media { min-height: 0; aspect-ratio: 4 / 5; }
  .video-card-content { min-height: 190px; }
}

@media (max-width: 760px) {
  .container { width: calc(100% - 32px); }
  .header-inner { min-height: 68px; gap: 14px; }
  .header-affiliate { display: none; }
  .hero { min-height: 0; background: linear-gradient(180deg, #fff 0 63%, #eaf4f9 63%); }
  .hero-grid, .diana-shell, .section-heading, .method-grid, .video-library-heading, .affiliate-grid, .contact-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero-grid { padding-top: 48px; padding-bottom: 54px; }
  h1 { font-size: clamp(42px, 12vw, 58px); }
  .hero-media { height: min(520px, 120vw); }
  .hero-trust { flex-wrap: wrap; }
  .diana-section, .services, .method, .video-feature, .affiliate-section, .contact-section { padding: 72px 0; }
  .diana-mark { width: min(400px, 88vw); margin: 0 auto; }
  .service-grid { grid-template-columns: 1fr; }
  .service-featured { grid-row: auto; }
  .service-card { min-height: 390px; }
  .video-library { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-card-content { min-height: 210px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .brand, .brand img { width: 138px; }
  .button-small { min-height: 39px; padding: 0 12px; font-size: 10px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-trust { align-items: stretch; flex-direction: column; gap: 9px; margin-top: 34px; }
  .hero-media { height: 390px; }
  .hero-badge { align-items: flex-start; flex-direction: column; gap: 4px; }
  .diana-copy h2, .section-heading h2, .method h2, .video-library-heading h2, .affiliate-section h2, .contact-copy h2 { font-size: 37px; }
  .diana-lead { font-size: 16px; }
  .method-points, .video-library { grid-template-columns: 1fr; }
  .method-points li, .method-points li:nth-child(even) { min-height: 175px; padding: 24px 8px; border-right: 0; }
  .method-points h3 { margin-top: 32px; }
  .video-card { grid-template-columns: minmax(125px, .72fr) 1fr; }
  .video-card-media { min-height: 320px; aspect-ratio: auto; }
  .video-card-content { min-height: 0; padding: 23px 18px; }
  .video-card h3 { font-size: 18px; }
  .video-card-content p { font-size: 12px; }
  .quote-form { padding: 27px 20px; }
  .contact-links a { width: 100%; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

@media (max-width: 360px) {
  .container { width: calc(100% - 24px); }
  .brand, .brand img { width: 124px; }
  .button-small { padding: 0 10px; }
  h1 { font-size: 40px; }
  .video-card { grid-template-columns: 1fr; }
  .video-card-media { min-height: 0; aspect-ratio: 4 / 5; }
  .video-card-content { min-height: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Posizionamento ScanDoc: processo e utilizzo nei sistemi del cliente. */
.hero-distinction { margin: 0 0 14px; color: var(--ink); font-weight: 800; font-size: 17px; }
.process-strip { display: flex; flex-wrap: wrap; gap: 8px 12px; padding: 0; margin: 0 0 28px; list-style: none; color: var(--blue-deep); font-size: 12px; font-weight: 700; }
.process-strip li { display: inline-flex; align-items: center; gap: 12px; }
.process-strip li:not(:last-child)::after { content: "→"; color: var(--blue); }
.integration-note { margin-top: 30px; padding: 26px 30px; border-left: 3px solid var(--cyan); background: var(--pale); }
.integration-note h3 { margin: 0 0 10px; font-size: 22px; }
.integration-note p { max-width: 900px; margin: 10px 0 0; color: var(--muted); font-size: 15px; }
@media (max-width: 520px) { .integration-note { padding: 22px 18px; } .hero-distinction { font-size: 16px; } }

.archive-preview { padding: 38px 30px 100px; color: #fff; background: linear-gradient(145deg, var(--ink), var(--blue-deep)); min-height: 100%; }
.archive-kicker { margin: 0 0 16px; color: #79ddf3; text-transform: uppercase; font-size: 10px; letter-spacing: .12em; font-weight: 700; }
.archive-preview h2 { margin: 0 0 24px; font-size: clamp(27px, 3vw, 38px); line-height: 1.15; letter-spacing: -.035em; }
.archive-search { display: flex; gap: 12px; align-items: center; padding: 12px 15px; margin-bottom: 18px; border: 1px solid #6b93b4; border-radius: 4px; color: #d9efff; font-size: 13px; }
.archive-file { display: flex; align-items: center; gap: 12px; padding: 13px; margin-bottom: 10px; border-radius: 4px; background: #f6fbff; color: var(--ink); }
.archive-file > span:first-child { color: var(--blue); font-size: 23px; }
.archive-file strong, .archive-file small { display: block; }
.archive-file strong { font-size: 13px; }.archive-file small { color: var(--muted); font-size: 11px; }
.archive-check { margin-left: auto; color: var(--blue); font-weight: 800; }
.archive-caption { margin: 14px 0 0; color: #c0d9ec; font-size: 10px; }
.hero-media { height: auto; min-height: 570px; }
@media(max-width: 760px) { .hero-media { height: auto; min-height: 0; } .archive-preview { padding: 30px 22px 100px; } }
