/* TrattoCAD - sito (pagine pubbliche). Chiaro e sobrio come i siti dei produttori di CAD, con sezioni scure
   del marchio per il prodotto. Un solo accento: il rosso del "C". */
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  --white: #FFFFFF; --bg-2: #F4F6F9; --bg-3: #EAEEF3; --line: #E2E7EE; --line-2: #CFD6E0;
  --text: #0B1220; --text-2: #4A5567; --text-3: #6B7686;
  --ink: #0A0E15; --ink-2: #111723; --ink-3: #182030; --ink-line: #232C3B; --ink-text: #EEF1F6; --ink-muted: #9AA5B6;
  --red: #E3271E; --red-hi: #EF3A2E; --red-deep: #B9160F; --red-soft: #FDECEB;
  --wrap: 1200px; --hdr: 68px; --r: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  font-family: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 16px); }
body { margin: 0; background: var(--white); color: var(--text); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 4px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.defs { position: absolute; width: 0; height: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- tipografia ---------- */
h1, h2, h3 { margin: 0; letter-spacing: -.012em; }
h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1.04; font-weight: 720; font-stretch: 110%; }
h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.1; font-weight: 700; font-stretch: 108%; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 650; }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--text-2); max-width: 60ch; }
.sec-head { max-width: 760px; margin-bottom: 48px; }
.sec-head p { margin: 16px 0 0; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .lead { margin-left: auto; margin-right: auto; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--text-3); margin-bottom: 18px; }
.crumbs a { text-decoration: none; color: var(--text-2); } .crumbs a:hover { color: var(--red); }

/* ---------- pulsanti ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 8px; border: 1px solid transparent; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn.red { background: var(--red); color: #fff; } .btn.red:hover { background: var(--red-deep); }
.btn.line { border-color: var(--line-2); background: var(--white); color: var(--text); } .btn.line:hover { border-color: var(--text); }
.btn.ghost-d { border-color: #3A4558; color: var(--ink-text); background: transparent; } .btn.ghost-d:hover { border-color: #8C97A9; }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn.lg { height: 52px; padding: 0 26px; font-size: 16px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--red); text-decoration: none; font-size: 15px; }
.more .ico { width: 16px; height: 16px; transition: transform .15s var(--ease); }
.more:hover .ico { transform: translateX(3px); }

/* ---------- testata con menu a pannelli ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.hdr-in { height: var(--hdr); display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
.logo svg { width: 42px; height: 24px; }
.wordmark { font-stretch: 125%; font-weight: 680; font-size: 15px; letter-spacing: .16em; }
.wordmark b { color: var(--red); font-weight: 680; margin-left: .35em; }
.nav { display: flex; align-items: stretch; height: 100%; gap: 2px; flex: 1; }
.nav > .ni { display: flex; align-items: center; }
.nav-t { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 0; background: none; border-radius: 8px; font-weight: 550; font-size: 15px; color: var(--text); text-decoration: none; cursor: pointer; }
.nav-t:hover, .ni.open .nav-t { background: var(--bg-2); }
.nav-t .chev { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.ni.open .chev { transform: rotate(180deg); }
.hdr-cta { display: flex; gap: 10px; align-items: center; }
.mega { position: absolute; left: 0; right: 0; top: var(--hdr); background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px rgba(11,18,32,.12); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s .18s; }
.ni.open .mega { opacity: 1; visibility: visible; transform: none; transition: opacity .18s var(--ease), transform .18s var(--ease); }
.mega-in { display: grid; grid-template-columns: 1fr 1fr 1fr 340px; gap: 8px 28px; padding: 30px 28px 34px; }
.mega-col h4 { margin: 0 0 10px; padding: 0 12px; font-size: 13px; font-weight: 600; color: var(--text-3); }
.mlink { display: flex; gap: 14px; padding: 12px; border-radius: 10px; text-decoration: none; color: var(--text); }
.mlink:hover { background: var(--bg-2); }
.mlink .ico { width: 22px; height: 22px; color: var(--red); margin-top: 2px; }
.mlink b { display: block; font-weight: 620; font-size: 15px; }
.mlink span { display: block; font-size: 13.5px; color: var(--text-2); line-height: 1.45; margin-top: 2px; }
.mega-feat { background: var(--ink); color: var(--ink-text); border-radius: 14px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; }
.mega-feat img { aspect-ratio: 16 / 9; object-fit: cover; object-position: 40% 30%; }
.mega-feat div { padding: 16px 18px 18px; }
.mega-feat b { font-size: 16px; } .mega-feat span { display: block; font-size: 13.5px; color: var(--ink-muted); margin-top: 4px; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; align-items: center; justify-content: center; }
.drawer { display: none; }

/* ---------- sezioni ---------- */
.sec { padding: 104px 0; }
.sec.alt { background: var(--bg-2); }
.sec.dark { background: var(--ink); color: var(--ink-text); }
.sec.dark .lead { color: var(--ink-muted); }
.sec.tight { padding: 72px 0; }

/* ---------- apertura della home ---------- */
.hero { background: var(--ink); color: var(--ink-text); position: relative; overflow: hidden; padding: 88px 0 0; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: linear-gradient(#141B27 1px, transparent 1px) 0 0 / 48px 48px, linear-gradient(90deg, #141B27 1px, transparent 1px) 0 0 / 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%); }
.hero .wrap { position: relative; }
.hero-copy { text-align: center; max-width: 900px; margin: 0 auto; }
.hero h1 { font-size: clamp(40px, 6vw, 76px); }
.hero .lead { color: var(--ink-muted); margin: 24px auto 0; max-width: 56ch; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.hero-facts { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; margin: 26px 0 0; padding: 0; list-style: none; color: var(--ink-muted); font-size: 14.5px; }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.motto { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 0 0 18px; font-size: 15px; font-weight: 650; letter-spacing: .02em; color: var(--red-hi); }
.motto .pill { text-decoration: none; }
.ftr-motto { font-weight: 700; color: #fff; margin-bottom: 6px; }
.hero-note { margin: 14px 0 0; text-align: center; color: var(--ink-muted); font-size: 13.5px; }
.hero-note.speed { margin-top: 18px; font-size: 15px; color: #C9D0DC; }
.hero-note.speed b { color: #fff; }
.hero-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (hover: none) { .hero-note .drop-hint { display: none; } }
.hero-facts .ico { width: 18px; height: 18px; color: var(--red-hi); stroke-width: 2.2; }
.hero-shot { margin: 64px auto 0; max-width: 1120px; }
.window { border-radius: 14px 14px 0 0; overflow: hidden; border: 1px solid #2A3446; border-bottom: 0; box-shadow: 0 -10px 80px rgba(227,39,30,.10), 0 40px 120px rgba(0,0,0,.6); background: #0E131C; }
.window.full { border-radius: 14px; border-bottom: 1px solid #2A3446; }
.window-bar { height: 38px; display: flex; align-items: center; justify-content: center; background: #0B1018; border-bottom: 1px solid #1C2432; }
.window-bar span { font-size: 12.5px; color: #8C97A9; background: #151C28; padding: 4px 18px; border-radius: 6px; display: inline-flex; gap: 8px; align-items: center; }
.window-bar .ico { width: 13px; height: 13px; }
.window img { width: 100%; height: auto; }

/* trascinare un file sulla home */
.dropzone { position: fixed; inset: 12px; z-index: 90; border: 2px dashed var(--red); border-radius: 18px; background: rgba(10,14,21,.82); display: grid; place-items: center; color: #fff; font-size: 22px; font-weight: 650; opacity: 0; pointer-events: none; transition: opacity .15s; }
.dropzone.on { opacity: 1; }
.uploading { position: fixed; inset: 0; z-index: 95; background: rgba(10,14,21,.72); display: grid; place-items: center; }
.uploading[hidden] { display: none; }
.up-card { background: var(--white); border-radius: 16px; padding: 26px 28px; width: min(420px, 90vw); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.up-card b { display: block; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-card p { margin: 6px 0 16px; color: var(--text-2); font-size: 14px; }
.bar { height: 6px; border-radius: 3px; background: var(--bg-3); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--red); transition: width .2s; }

/* ---------- schede (funzioni) ---------- */
.tabs-nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.tab { display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--white); font-weight: 600; font-size: 15px; cursor: pointer; color: var(--text-2); }
.tab .ico { width: 18px; height: 18px; }
.tab:hover { color: var(--text); border-color: var(--text-3); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tab[aria-selected="true"] .ico { color: var(--red-hi); }
.tab-panel { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: center; }
.tab-panel[hidden] { display: none; }
.tab-panel h3 { font-size: 28px; font-weight: 700; font-stretch: 106%; }
.tab-panel p { color: var(--text-2); margin: 14px 0 22px; }
.ticks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; color: var(--text); }
.ticks .ico { width: 20px; height: 20px; color: var(--red); stroke-width: 2.2; margin-top: 2px; }
.sec.dark .ticks li { color: var(--ink-text); }
.frame { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(11,18,32,.16); background: var(--ink); }
.sec.dark .frame { border-color: #2A3446; box-shadow: 0 30px 80px rgba(0,0,0,.5); }

/* ---------- schede di collegamento ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
a.card:hover { border-color: var(--line-2); box-shadow: 0 18px 40px rgba(11,18,32,.09); transform: translateY(-3px); }
.sec.alt .card { border-color: transparent; }
.card .badge-ico { width: 48px; height: 48px; border-radius: 12px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; margin-bottom: 8px; }
.card .badge-ico .ico { width: 24px; height: 24px; }
.card p { margin: 0; color: var(--text-2); font-size: 15px; }
.card .more { margin-top: auto; padding-top: 8px; }
.sec.dark .card { background: var(--ink-2); border-color: var(--ink-line); color: var(--ink-text); }
.sec.dark .card p { color: var(--ink-muted); }
.sec.dark .card .badge-ico { background: rgba(227,39,30,.14); color: var(--red-hi); }

/* ---------- passi ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: s; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-top: 64px; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 17px; }
.steps li::after { content: ""; position: absolute; top: 22px; left: 56px; right: -14px; height: 1px; background: var(--line-2); }
.steps li:last-child::after { display: none; }
.steps p { color: var(--text-2); margin: 8px 0 0; font-size: 15px; }
.sec.dark .steps li::before { background: var(--red); }
.sec.dark .steps li::after { background: var(--ink-line); }
.sec.dark .steps p { color: var(--ink-muted); }

/* ---------- righe testo + immagine ---------- */
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; }
.split + .split { margin-top: 104px; }
.split.rev .split-text { order: 2; }
.split-text h2 { font-size: clamp(26px, 2.6vw, 36px); }
.split-text p { color: var(--text-2); margin: 16px 0 22px; }

/* ---------- tabelle ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
table.t { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 680px; }
table.t th, table.t td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t thead th { font-size: 14px; font-weight: 650; background: var(--bg-2); }
table.t tbody tr:last-child > * { border-bottom: 0; }
table.t tbody th { font-weight: 550; color: var(--text); width: 30%; }
table.t td { color: var(--text-2); }
table.t .us { background: #FFF7F6; color: var(--text); font-weight: 600; }
table.t thead .us { background: var(--red); color: #fff; }
.yes, .no { display: inline-flex; align-items: center; gap: 8px; }
.yes .ico { color: #1E8E4E; width: 18px; height: 18px; stroke-width: 2.4; }
.no .ico { color: var(--text-3); width: 18px; height: 18px; stroke-width: 2.2; }
.note { font-size: 13px; color: var(--text-3); margin: 14px 0 0; max-width: 90ch; }

/* ---------- prezzi ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 980px; margin: 0 auto; }
.plan { border: 1px solid var(--line); border-radius: 18px; padding: 34px; background: var(--white); display: flex; flex-direction: column; gap: 20px; }
.plan.pro { background: var(--ink); color: var(--ink-text); border-color: var(--ink); position: relative; overflow: hidden; }
.plan.pro::after { content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(227,39,30,.35), transparent 70%); pointer-events: none; }
.plan h3 { font-size: 22px; display: flex; align-items: center; gap: 12px; }
.pill { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 650; background: var(--red-soft); color: var(--red-deep); }
.plan.pro .pill { background: rgba(227,39,30,.2); color: #FF8A80; }
.price { font-size: 46px; font-weight: 740; font-stretch: 112%; line-height: 1; }
.price small { font-size: 15px; font-weight: 500; color: var(--text-3); font-stretch: 100%; margin-left: 6px; }
.plan.pro .price small { color: var(--ink-muted); }
.plan .ticks { margin: 0; }
.plan.pro .ticks li { color: var(--ink-text); }
.plan .btn { margin-top: auto; }
.beta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.beta input { flex: 1 1 210px; height: 48px; border-radius: 8px; border: 1px solid #3A4558; background: #0E131C; color: #fff; padding: 0 14px; }
.beta input::placeholder { color: #6B7686; }
.beta .btn { height: 48px; }
.beta-note { font-size: 13px; color: var(--ink-muted); margin: 0; }
.beta-note.ok { color: #7FD49B; font-weight: 600; }
.light-form .beta input { background: var(--white); color: var(--text); border-color: var(--line-2); }
.light-form .beta-note { color: var(--text-3); }
.light-form .beta-note.ok { color: #1E8E4E; }

/* ---------- domande ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-size: 18px; font-weight: 620; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 11px; height: 11px; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details p { margin: 0 0 22px; color: var(--text-2); max-width: 72ch; }

/* ---------- fascia finale ---------- */
.cta-band { background: var(--ink); color: var(--ink-text); border-radius: 22px; padding: 64px; display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; opacity: .45; pointer-events: none;
  background: linear-gradient(#161E2B 1px, transparent 1px) 0 0 / 40px 40px, linear-gradient(90deg, #161E2B 1px, transparent 1px) 0 0 / 40px 40px;
  mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000); }
.cta-band > * { position: relative; }
.cta-band p { color: var(--ink-muted); margin: 12px 0 0; max-width: 54ch; }
.cta-band .row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- apertura delle pagine interne ---------- */
.phero { padding: 72px 0 0; background: linear-gradient(180deg, var(--bg-2), var(--white)); }
.phero .lead { margin-top: 20px; }
.phero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 0; }
.phero-shot { margin-top: 56px; }
.phero.simple { padding-bottom: 72px; }

/* ---------- vantaggi a griglia ---------- */
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 36px; }
.feat .ico { width: 26px; height: 26px; color: var(--red); margin-bottom: 14px; }
.feat h3 { font-size: 18px; }
.feat p { margin: 8px 0 0; color: var(--text-2); font-size: 15px; }
.sec.dark .feat p { color: var(--ink-muted); }

/* ---------- guida ---------- */
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: calc(var(--hdr) + 24px); }
.toc h4 { margin: 0 0 10px; font-size: 13px; color: var(--text-3); font-weight: 600; }
.toc a { display: block; padding: 7px 12px; border-radius: 8px; text-decoration: none; color: var(--text-2); font-size: 14.5px; border-left: 2px solid transparent; }
.toc a:hover { background: var(--bg-2); color: var(--text); }
.toc a.on { color: var(--red); border-left-color: var(--red); background: var(--red-soft); border-radius: 0 8px 8px 0; }
.doc h2 { font-size: 28px; margin: 0 0 12px; scroll-margin-top: calc(var(--hdr) + 20px); }
.doc section + section { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--line); }
.doc p, .doc li { color: var(--text-2); }
.doc ol, .doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc .frame { margin: 24px 0 8px; }
kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 26px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--white); font: 600 13px "Archivo", sans-serif; color: var(--text); }
.callout { display: flex; gap: 14px; padding: 18px 20px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); margin: 20px 0; }
.callout .ico { color: var(--red); margin-top: 2px; }
.callout p { margin: 0; color: var(--text); }

/* ---------- novita' ---------- */
.log { max-width: 860px; }
.log article { display: grid; grid-template-columns: 160px 1fr; gap: 32px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.log time { font-weight: 650; color: var(--text-2); font-size: 15px; }
.log h3 { font-size: 21px; }
.log ul { margin: 12px 0 0; padding-left: 20px; color: var(--text-2); }
.log li { margin-bottom: 6px; }

/* ---------- telefono ---------- */
.phone { width: 300px; border-radius: 40px; padding: 10px; background: #05070B; box-shadow: 0 30px 80px rgba(11,18,32,.35); margin: 0 auto; }
.phone img { border-radius: 31px; }

/* ---------- testi legali ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 72px 28px 104px; }
.legal h1 { font-size: clamp(34px, 4vw, 46px); }
.legal .updated { color: var(--text-3); margin: 10px 0 34px; }
.legal h2 { font-size: 22px; margin: 42px 0 10px; }
.legal h3 { font-size: 17px; margin: 24px 0 6px; }
.legal p, .legal li { color: var(--text-2); }
.legal a { color: var(--red); }
.legal b { color: var(--text); }

/* ---------- piede ---------- */
.ftr { background: var(--ink); color: var(--ink-muted); padding: 80px 0 36px; font-size: 14.5px; }
.ftr-top { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 36px; padding-bottom: 56px; border-bottom: 1px solid var(--ink-line); }
.ftr .logo { color: var(--ink-text); }
.ftr-brand p { margin: 18px 0 22px; max-width: 34ch; }
.ftr h4 { margin: 0 0 14px; color: var(--ink-text); font-size: 14px; font-weight: 650; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ftr a { text-decoration: none; color: var(--ink-muted); } .ftr a:hover { color: #fff; }
.ftr-bot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 26px; font-size: 13px; color: #6B7686; }
.ftr-bot p { margin: 0; max-width: 80ch; }

/* ---------- schermi stretti ---------- */
@media (max-width: 1080px) {
  .nav, .hdr-cta .btn.line { display: none; }
  .burger { display: inline-flex; }
  .hdr-cta { margin-left: auto; }
  .burger { margin-left: 0; }
  .drawer { display: block; position: fixed; inset: var(--hdr) 0 0 0; z-index: 49; background: var(--white); overflow-y: auto; padding: 12px 20px 40px; transform: translateX(100%); transition: transform .25s var(--ease); visibility: hidden; }
  .drawer.open { transform: none; visibility: visible; }
  .drawer details { border-bottom: 1px solid var(--line); }
  .drawer summary { list-style: none; padding: 18px 4px; font-weight: 650; font-size: 18px; cursor: pointer; }
  .drawer summary::-webkit-details-marker { display: none; }
  .drawer > a { display: block; padding: 18px 4px; font-weight: 650; font-size: 18px; border-bottom: 1px solid var(--line); text-decoration: none; }
  .drawer .mlink { padding: 10px 4px; }
  .drawer .drawer-cta { display: grid; gap: 10px; margin-top: 24px; }
  .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr-brand { grid-column: 1 / -1; }
  .mega-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .sec { padding: 72px 0; }
  .tab-panel, .split { grid-template-columns: 1fr; gap: 32px; }
  .split.rev .split-text { order: 0; }
  .cards, .cards.two, .feats { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  .plans { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 40px 28px; }
  .docs { grid-template-columns: 1fr; }
  .toc { position: static; display: none; }
  .log article { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .hdr-cta .btn.red { display: none; }
  .cards.four, .ftr-top { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .hero-cta .btn { width: 100%; }
  .tabs-nav { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; }
  .tab { flex: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.mt { margin-top: 32px; } .mt10 { margin-top: 10px !important; }
.sec.first { padding-top: 24px; } .sec.first0 { padding-top: 0; }
.light-form.narrow { max-width: 560px; margin-top: 30px; }
/* niente scorrimento laterale sul telefono: colonne che possono stringersi */
html, body { overflow-x: clip; }
@media (max-width: 860px) {
  .tab-panel, .split, .docs, .cards, .cards.two, .feats, .steps, .plans, .cta-band { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) { .cards.four, .ftr-top { grid-template-columns: minmax(0, 1fr); } }

/* ---------- account ---------- */
.auth { min-height: calc(100vh - var(--hdr)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-card { padding: 72px max(28px, 6vw); max-width: 620px; width: 100%; justify-self: end; }
.auth-card h1 { font-size: clamp(32px, 3.4vw, 44px); }
.auth-card .lead { margin: 12px 0 30px; }
.auth-side { background: var(--ink); color: var(--ink-muted); padding: 72px 6vw; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.auth-side img { border-radius: 14px; border: 1px solid #2A3446; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.auth-side p { margin: 0; font-size: 17px; max-width: 40ch; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field input { width: 100%; height: 48px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 14px; background: var(--white); font-size: 16px; }
.field input:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgba(11,18,32,.08); }
.hint { margin: -8px 0 16px; font-size: 13px; color: var(--text-3); }
.check-row { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 22px; font-size: 14.5px; color: var(--text-2); }
.check-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--red); flex: none; }
.check-row a, .auth-links a { color: var(--red); }
.btn.wide { width: 100%; }
.btn.wait { opacity: .6; pointer-events: none; }
.btn.danger { background: var(--white); color: #B42318; border-color: #F4C7C3; } .btn.danger:hover { background: #FEF3F2; }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 22px; font-size: 14.5px; color: var(--text-2); }
.form-note { margin: 14px 0 0; font-size: 14.5px; color: #B42318; }
.form-note.ok, .verify-msg.ok { color: #1E8E4E; }
.auth-off h1 { font-size: clamp(30px, 3.4vw, 42px); }
.account { max-width: 1100px; }
.acc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 28px; }
.acc-head .lead { margin-top: 8px; }
.acc-banner { background: #ECFDF3; color: #05603A; border: 1px solid #ABEFC6; padding: 14px 18px; border-radius: 10px; margin: 0 0 24px; }
.acc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.acc-card { border: 1px solid var(--line); border-radius: 16px; padding: 26px; background: var(--white); }
.acc-card.wide { margin-bottom: 20px; }
.acc-card h2 { font-size: 20px; margin-bottom: 14px; }
.acc-card .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.acc-plan { font-size: 30px; font-weight: 720; font-stretch: 110%; margin: 0 0 6px; }
.muted { color: var(--text-2); }
.badge { display: inline-flex; height: 24px; align-items: center; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 650; }
.badge.good { background: #ECFDF3; color: #05603A; } .badge.warn { background: #FFFAEB; color: #93370D; }
.link-btn { background: none; border: 0; padding: 0; color: var(--red); font-weight: 600; cursor: pointer; font-size: 14px; }
.danger-zone { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.buy { display: grid; gap: 14px; margin-top: auto; }
.period { display: inline-flex; background: rgba(255,255,255,.06); border: 1px solid #3A4558; border-radius: 10px; padding: 4px; gap: 4px; }
.period button { flex: 1; height: 38px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-muted); font-weight: 600; cursor: pointer; }
.period button.on { background: #fff; color: var(--text); }
@media (max-width: 860px) {
  .auth { grid-template-columns: minmax(0, 1fr); } .auth-side { display: none; } .auth-card { justify-self: stretch; padding: 48px 20px; }
  .acc-grid { grid-template-columns: minmax(0, 1fr); } .acc-head { flex-direction: column; }
}

/* ---------- video ---------- */
.hero-loop { display: block; width: 100%; height: auto; background: #0E131C; }
.vid { position: relative; background: #0E131C; }
.vid video { display: block; width: 100%; height: auto; }
.vplay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; border: 0; cursor: pointer; color: #fff;
  background: radial-gradient(circle at 50% 50%, rgba(10,14,21,.15), rgba(10,14,21,.55)); font: 600 15px "Archivo", sans-serif; }
.vplay svg { width: 84px; height: 84px; padding: 24px 22px 24px 28px; border-radius: 50%; background: var(--red); fill: #fff; box-shadow: 0 16px 40px rgba(227,39,30,.45); transition: transform .2s var(--ease); }
.vplay:hover svg { transform: scale(1.06); }
.vplay span { background: rgba(10,14,21,.75); padding: 6px 14px; border-radius: 999px; }
.vid.playing .vplay { display: none; }
.doc-video { margin: 24px 0 8px; }
.vgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.vcard { display: flex; flex-direction: column; gap: 6px; text-align: left; background: none; border: 0; padding: 0; color: var(--ink-text); cursor: pointer; font: inherit; }
.vthumb { position: relative; display: block; border-radius: 12px; overflow: hidden; border: 1px solid #2A3446; margin-bottom: 10px; }
.vthumb img { transition: transform .35s var(--ease); }
.vcard:hover .vthumb img { transform: scale(1.04); }
.vthumb i { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(transparent 40%, rgba(10,14,21,.55)); }
.vthumb i svg { width: 46px; height: 46px; padding: 13px 11px 13px 15px; border-radius: 50%; background: var(--red); fill: #fff; }
.vthumb em { position: absolute; right: 8px; bottom: 8px; font-style: normal; font-size: 12px; font-weight: 600; background: rgba(10,14,21,.85); padding: 2px 8px; border-radius: 6px; }
.vcard b { font-size: 16px; }
.vcard > span:last-child { font-size: 14px; color: var(--ink-muted); }
.vmodal { width: min(1200px, 94vw); padding: 0; border: 0; border-radius: 14px; background: #000; overflow: visible; }
.vmodal::backdrop { background: rgba(5,8,12,.82); }
.vmodal video { display: block; width: 100%; height: auto; border-radius: 14px; }
.vclose { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; display: grid; place-items: center; }
.vclose:hover { background: rgba(255,255,255,.22); }
@media (max-width: 1080px) { .vgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .hero-loop { display: none; } }
.card.sample { padding: 0 0 26px; overflow: hidden; }
.card.sample > :not(.sthumb) { margin-left: 26px; margin-right: 26px; }
.card.sample .pill { align-self: flex-start; margin-top: 4px; }
.sthumb { display: block; border-bottom: 1px solid var(--line); overflow: hidden; }
.sthumb img { transition: transform .35s var(--ease); }
.sthumb:hover img { transform: scale(1.03); }
.card .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
