/* doculea.it, foglio di stile unico. Colori del marchio Doculea: blu notte
   0A2039, avorio FAFAF7, azzurro 249DDA. L'azzurro pieno serve per pieghe,
   filetti e anelli, per testo e link c'è la versione più scura 176F9E che
   tiene il contrasto AA sull'avorio. Manrope è il carattere del logotipo,
   servito da qui con licenza SIL OFL 1.1, nessuna richiesta a terzi. */
@font-face {
    font-family: 'Manrope';
    src: url('../fonts/Manrope-Variable.ttf') format('truetype');
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}
:root {
    --paper: #fafaf7;
    --paper-2: #f1f3f0;
    --surface: #ffffff;
    --ink: #0a2039;
    --ink-2: #43576c;
    --ink-3: #5d7387;
    --line: #dce3e9;
    --azure: #249dda;
    --azure-ink: #176f9e;
    --band: #0a2039;
    --band-ink: #f0f6fc;
    --band-muted: #b8ccdd;
    --band-link: #7cc4ee;
    --shadow: 0 30px 80px -30px rgba(10, 32, 57, 0.35);
    color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
    :root {
        --paper: #101e2d;
        --paper-2: #142638;
        --surface: #1c2f42;
        --ink: #f0f6fc;
        --ink-2: #bdcfdf;
        --ink-3: #aac0d3;
        --line: #2a4054;
        --azure-ink: #7cc4ee;
        --band: #071627;
        --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
    }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Manrope', 'Helvetica Neue', Arial, sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--azure-ink); text-decoration: none; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--azure); outline-offset: 4px; border-radius: 4px; }
img, picture { max-width: 100%; display: block; }
p { margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: .5rem 1rem; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.container { width: min(1200px, 100% - 3rem); margin-inline: auto; }
.prose { text-align: justify; hyphens: none; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; color: var(--azure-ink); }
.eyebrow::before { content: ''; display: block; width: 28px; height: 1px; background: var(--azure); opacity: .6; }
.h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); line-height: 1.12; font-weight: 700; letter-spacing: -.025em; }
.lede { font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 12px; font-size: 14.5px; font-weight: 600; transition: transform .2s ease, opacity .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { color: var(--paper); opacity: .9; }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-paper { background: var(--band-ink); color: var(--band); }
.btn-paper:hover { color: var(--band); }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--azure-ink); white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: var(--azure); }

/* Testata */
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 64px; }
.brand img { width: 132px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.logo-light, .logo-dark { display: block; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { .logo-light { display: none; } .logo-dark { display: block; } }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 620px 420px at 78% 40%, rgba(36, 157, 218, 0.14), transparent 70%); }
.hero .container { position: relative; display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 56px; align-items: center; padding: 72px 0 96px; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(2.5rem, 4.4vw, 3.9rem); line-height: 1.04; font-weight: 700; letter-spacing: -.035em; }
.hero .lede { font-size: 18px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { font-size: 13px; line-height: 1.6; color: var(--ink-3); }
.hero-shot { position: relative; }
.frame { position: relative; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.frame img { width: 100%; height: auto; }
.frame .fold { position: absolute; top: 0; right: 0; width: 36px; height: 36px; }
.chip { display: flex; flex-direction: column; gap: 8px; width: 17rem; max-width: calc(100% - 2rem); padding: 14px 16px; margin: -.75rem 0 0 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(10, 32, 57, 0.35); font-size: 12px; }
.chip-head { display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.chip-head::before { content: ''; width: 7px; height: 7px; border-radius: 999px; background: #e8a33d; }
.chip-file { font-weight: 600; color: var(--ink); }
.chip dl { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.chip dl div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chip dt { color: var(--ink-3); }
.chip dd { margin: 0; font-weight: 600; text-align: right; color: var(--ink); }
@media (min-width: 1024px) { .hero-shot .chip { position: absolute; left: -1.5rem; bottom: 2.5rem; margin: 0; } }

/* Fascia di fiducia */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.trust ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0 auto; padding: 20px 0; list-style: none; }
.trust li { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; }
.trust svg { flex-shrink: 0; width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--surface); color: var(--azure-ink); }

/* Sezioni */
.section { padding: 96px 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; }
.section-head > div { display: flex; flex-direction: column; gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 44px; }
.band { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.card h3 { font-size: 18px; line-height: 1.3; font-weight: 600; }
.card p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.card .num { position: absolute; top: 28px; right: 28px; font-size: 11px; letter-spacing: .08em; color: var(--ink-3); }
.tile { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--paper-2); color: var(--azure-ink); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; flex-direction: column; gap: 14px; }
.steps h3 { font-size: 20px; font-weight: 600; }
.steps p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.step-n { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--azure-ink); font-size: 14px; font-weight: 700; }
.figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.figure .frame { width: min(1000px, 100%); }
.figure figcaption { font-size: 12px; color: var(--ink-3); text-align: center; }
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.note { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 2px solid var(--line); }
.note h3 { font-size: 17px; font-weight: 600; }
.note p { font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.privacy { background: var(--band); color: var(--band-ink); }
.privacy .container { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; }
.privacy .h2 { color: var(--band-ink); font-size: clamp(1.8rem, 3vw, 2.4rem); }
.privacy .side { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.privacy .side svg { color: var(--azure); }
.privacy .body { display: flex; flex-direction: column; gap: 22px; font-size: 16px; line-height: 1.7; color: var(--band-muted); }
.privacy .body .small { font-size: 14px; }
.privacy a { color: var(--band-link); font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: .25em; }
.privacy a:hover { color: var(--band-ink); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 980px; }
.plan { display: flex; flex-direction: column; gap: 18px; padding: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.plan-featured { border-color: var(--azure); box-shadow: 0 0 0 3px rgba(36, 157, 218, 0.15); }
.plan h3 { font-size: 20px; font-weight: 600; }
.price { display: flex; align-items: baseline; gap: 10px; }
.price strong { font-size: 52px; line-height: 1; font-weight: 700; letter-spacing: -.03em; }
.price span { font-size: 14px; color: var(--ink-3); }
.plan p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.plan .lead { font-weight: 600; color: var(--ink); }
.plan .small { font-size: 13px; color: var(--ink-3); }
.fineprint { display: flex; flex-direction: column; gap: 12px; max-width: 800px; font-size: 13.5px; line-height: 1.7; color: var(--ink-3); }
.fineprint nav { display: flex; gap: 24px; }
.fineprint nav a { font-weight: 600; text-decoration: underline; text-underline-offset: .25em; }
.faq-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 80px; align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 16px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex-shrink: 0; width: .55rem; height: .55rem; margin-right: .3rem; border-right: 2px solid var(--azure-ink); border-bottom: 2px solid var(--azure-ink); transform: rotate(45deg); transition: transform .2s ease; }
.faq[open] summary::after { transform: rotate(225deg); }
.faq p { padding: 0 0 24px; font-size: 14.5px; line-height: 1.7; color: var(--ink-2); max-width: 640px; }
.cta { padding: 80px 0 40px; }
.cta-box { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 22px; padding: 64px 72px; border-radius: 36px; background: var(--band); color: var(--band-ink); }
.cta-box .fold { position: absolute; top: 0; right: 0; width: 180px; height: 180px; }
.cta-box img { width: 168px; height: auto; }
.cta-box .h2 { color: var(--band-ink); font-size: clamp(1.7rem, 2.8vw, 2.25rem); max-width: 620px; }
.cta-box p { max-width: 560px; font-size: 17px; line-height: 1.6; color: var(--band-muted); }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding-top: 6px; }
.cta-actions a:not(.btn) { color: var(--band-link); font-size: 14px; font-weight: 600; }

/* Piè di pagina */
.site-footer { padding: 56px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .8fr .8fr 1fr; gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; max-width: 360px; }
.footer-brand img { width: 132px; height: auto; }
.footer-brand p { font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.footer-brand .mono { font-size: 11.5px; color: var(--ink-3); }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col span { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.footer-col span::before { content: ''; display: block; width: 20px; height: 1px; background: var(--azure); opacity: .6; }
.footer-col a { font-size: 14px; color: var(--ink-2); }
.footer-col a:hover { color: var(--ink); }
.colophon { display: flex; flex-direction: column; gap: 8px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.7; color: var(--ink-3); }
.colophon .legal { font-size: 11px; }

/* Pagine legali */
.legal-hero { border-bottom: 1px solid var(--line); background: var(--paper-2); }
.legal-hero .container { display: flex; flex-direction: column; gap: 18px; padding: 56px 0; }
.legal-hero h1 { font-size: clamp(2.2rem, 3.6vw, 2.9rem); line-height: 1.08; font-weight: 700; letter-spacing: -.03em; }
.legal-hero .lede { max-width: 640px; }
.legal-hero .mono { font-size: 12px; color: var(--ink-3); }
.back { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; }
.legal-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 80px; align-items: start; padding: 64px 0 96px; }
.toc { position: sticky; top: 96px; display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.toc a { display: block; padding: 8px 0 8px 16px; border-left: 2px solid var(--line); font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.toc a:hover { border-left-color: var(--azure); color: var(--ink); }
.legal { display: flex; flex-direction: column; gap: 14px; max-width: 760px; font-size: 16px; line-height: 1.8; color: var(--ink-2); text-align: justify; hyphens: none; overflow-wrap: anywhere; }
.legal h2 { margin: 28px 0 4px; font-size: 22px; line-height: 1.35; font-weight: 600; color: var(--ink); text-align: left; scroll-margin-top: 6rem; }
.legal h2:first-child { margin-top: 0; }
.legal a { text-decoration: underline; text-underline-offset: .2em; }
.legal strong { color: var(--ink); }
.footer-mini { padding: 40px 0; border-top: 1px solid var(--line); }
.footer-mini .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-mini .left { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.footer-mini img { width: 112px; height: auto; }
.footer-mini p { font-size: 12px; color: var(--ink-3); }
.footer-mini nav { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.footer-mini nav a { font-size: 14px; color: var(--ink-2); }

/* Responsivo */
@media (max-width: 1023px) {
    .hero .container { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 64px; }
    .hero-shot { margin-right: 0; }
    .section-head, .notes, .faq-grid, .privacy .container { grid-template-columns: 1fr; gap: 28px; }
    .cards, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .legal-layout { grid-template-columns: 1fr; gap: 32px; }
    .toc { position: static; }
}
@media (max-width: 639px) {
    .container { width: min(1200px, 100% - 2.5rem); }
    .nav { display: none; }
    .site-header .pill { font-size: 10px; }
    .hero h1 { font-size: 2.35rem; }
    .hero .lede { font-size: 16.5px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .hero .prose, .prose { text-align: left; }
    .trust ul { grid-template-columns: 1fr; gap: 12px; }
    .section { padding: 56px 0; }
    .cards, .steps, .plans { grid-template-columns: 1fr; }
    .cta-box { padding: 40px 26px; border-radius: 26px; }
    .cta-box .fold { width: 110px; height: 110px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .price strong { font-size: 42px; }
    .plan { padding: 26px; }
}

/* Varianti delle testate di sezione, al posto degli stili inline (la CSP
   del sito non ammette style-src inline). */
.section-head-start { align-items: start; }
.col-start { align-items: flex-start; }
.lede-narrow { max-width: 520px; }
.head-col { display: flex; flex-direction: column; gap: 16px; }
.head-col-narrow { max-width: 680px; }
