/* Wedare — stile condiviso delle pagine interne (prodotti, blog, contatti, legali). Stesso design system di index.html. */
:root{
  --brand:#C8202A; --brand-press:#A81822; --brand-tint:#FDECEE;
  --ink:#222; --body:#3F3F3F; --muted:#6A6A6A; --muted-soft:#929292;
  --canvas:#fff; --soft:#F7F7F7; --strong:#F2F2F2; --hair-soft:#EBEBEB; --hair:#DDD; --border-strong:#C1C1C1;
  --ok:#1C8A57;
  --lift:rgba(0,0,0,.02) 0 0 0 1px, rgba(0,0,0,.04) 0 2px 6px 0, rgba(0,0,0,.1) 0 4px 8px 0;
  --hdr:80px; --pad:80px; --maxw:1280px;
}
@media (max-width:900px){ :root{ --pad:24px; --hdr:68px; } }
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top:calc(var(--hdr) + 72px); }
body{ margin:0; background:var(--canvas); color:var(--ink); font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif; font-size:16px; line-height:1.5; -webkit-font-smoothing:antialiased; }
h1,h2,h3,h4,p{ margin:0; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; color:inherit; cursor:pointer; }
svg.i{ width:1em; height:1em; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }
:focus-visible{ outline:2px solid var(--ink); outline-offset:2px; }
.container{ max-width:var(--maxw); margin:0 auto; padding:0 var(--pad); }
.container.narrow{ max-width:860px; }
.skip{ position:absolute; left:-999px; top:8px; background:#fff; padding:8px 12px; z-index:200; border-radius:8px; }
.skip:focus{ left:8px; }

/* header */
.site-header{ position:sticky; top:0; z-index:50; height:var(--hdr); background:var(--canvas); border-bottom:1px solid var(--hair-soft); }
.site-header .container{ height:100%; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:16px; }
.logo{ display:flex; align-items:center; }
.logo img{ height:34px; width:auto; display:block; }
.tabs{ display:flex; gap:8px; }
.tab{ position:relative; padding:8px 16px; font-size:15px; font-weight:500; color:var(--muted); border-radius:9999px; transition:color .15s, background .15s; }
.tab:hover{ color:var(--ink); background:var(--soft); }
.tab.active{ color:var(--ink); font-weight:600; }
.tab.active::after{ content:''; position:absolute; left:16px; right:16px; bottom:-14px; height:2px; background:var(--ink); border-radius:2px; }
.hdr-right{ display:flex; justify-content:flex-end; }
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; height:44px; padding:0 22px; border:0; border-radius:8px; background:var(--brand); color:#fff; font-size:15px; font-weight:600; transition:background .15s, transform .1s; }
.btn:hover{ background:var(--brand-press); }
.btn:active{ transform:scale(.98); }
.btn.lg{ height:52px; padding:0 30px; font-size:16px; }
.btn.block{ display:flex; width:100%; }
.btn.ghost{ background:#fff; color:var(--ink); box-shadow:inset 0 0 0 1px var(--ink); }
.btn.ghost:hover{ background:var(--soft); }
.btn:disabled{ background:#F2C4C7; cursor:default; }
.act{ display:inline-flex; align-items:center; gap:4px; font-size:14px; font-weight:600; color:var(--ink); text-decoration:underline; text-underline-offset:3px; }
.act:hover{ color:var(--brand); }
@media (max-width:900px){
  .site-header .container{ grid-template-columns:1fr auto; }
  .tabs{ display:none; }
  .logo img{ height:28px; }
  .btn{ height:40px; padding:0 16px; font-size:14px; }
  .btn.lg{ height:48px; font-size:15px; }
}

/* footer */
footer{ background:var(--soft); border-top:1px solid var(--hair); margin-top:72px; }
.foot-cols{ display:grid; grid-template-columns:repeat(4,1fr); gap:32px; padding-top:48px; padding-bottom:40px; }
.foot-cols h4{ margin:0 0 14px; font-size:14px; font-weight:600; }
.foot-cols ul{ list-style:none; margin:0; padding:0; display:grid; gap:10px; font-size:14px; color:var(--body); }
.foot-cols a:hover{ text-decoration:underline; }
.foot-bottom{ border-top:1px solid var(--hair); }
.foot-bottom .container{ padding-top:20px; padding-bottom:20px; display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; font-size:13px; color:var(--muted); }
@media (max-width:760px){ .foot-cols{ grid-template-columns:1fr 1fr; } }

/* breadcrumbs, chips, pills */
.crumbs{ display:flex; align-items:center; gap:6px; font-size:14px; color:var(--muted); margin-bottom:20px; flex-wrap:wrap; }
.crumbs a{ text-decoration:underline; text-underline-offset:3px; }
.crumbs a:hover{ color:var(--ink); }
.crumbs svg{ font-size:12px; }
.chips{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:16px; }
.chip{ display:inline-flex; padding:5px 12px; border:1px solid var(--hair); border-radius:9999px; font-size:13px; font-weight:600; color:var(--body); }
.chip.ok{ background:#E7F5EE; border-color:#BFE3D0; color:var(--ok); }
.pills{ display:flex; flex-wrap:wrap; gap:10px; margin-top:16px; }
.pills span, .pills a{ padding:9px 16px; border:1px solid var(--hair); border-radius:9999px; font-size:14px; font-weight:500; background:#fff; }
.pills a:hover{ border-color:var(--ink); }

/* product hero */
.phero{ padding:40px 0 48px; }
.phero-grid{ display:grid; grid-template-columns:1.15fr 1fr; gap:56px; align-items:center; }
.phero h1{ font-size:clamp(2.4rem,5vw,3.8rem); font-weight:700; letter-spacing:-1.2px; line-height:1.05; }
.tagline{ margin-top:12px; font-size:clamp(1.15rem,2vw,1.5rem); font-weight:600; letter-spacing:-.3px; color:var(--ink); }
.lead{ margin-top:14px; font-size:18px; color:var(--muted); max-width:60ch; }
.actions{ display:flex; gap:12px; flex-wrap:wrap; margin-top:28px; }
.facts{ list-style:none; margin:24px 0 0; padding:0; display:grid; gap:10px; font-size:15px; color:var(--body); }
.facts li{ display:flex; align-items:center; gap:10px; }
.facts li svg{ color:var(--ok); font-size:18px; }
.facts .plat{ gap:16px; color:var(--muted); font-size:14px; flex-wrap:wrap; }
.facts .plat span{ display:inline-flex; align-items:center; gap:6px; }
.facts .plat svg{ color:var(--muted); font-size:18px; }
.ext{ margin-top:18px; font-size:14px; }
.ext a{ display:inline-flex; gap:4px; align-items:center; font-weight:600; text-decoration:underline; text-underline-offset:3px; }
.ext a:hover{ color:var(--brand); }

.ptile, .art-hero, .mini-tile, .ptile-s{ position:relative; overflow:hidden; background:linear-gradient(140deg,var(--g1),var(--g2)); color:#fff; display:flex; align-items:center; justify-content:center; }
.ptile::before,.art-hero::before,.ptile-s::before,.ptile::after,.art-hero::after,.ptile-s::after{ content:''; position:absolute; border-radius:9999px; background:rgba(255,255,255,.14); }
.ptile::before,.art-hero::before,.ptile-s::before{ width:62%; aspect-ratio:1; right:-18%; top:-22%; }
.ptile::after,.art-hero::after,.ptile-s::after{ width:48%; aspect-ratio:1; left:-14%; bottom:-24%; background:rgba(255,255,255,.1); }
.ptile{ aspect-ratio:1/.9; border-radius:24px; box-shadow:var(--lift); }
.ptile .glyph{ font-size:160px; stroke-width:1.1; }
.glyph{ position:relative; z-index:1; font-size:72px; stroke-width:1.2; filter:drop-shadow(0 6px 14px rgba(0,0,0,.18)); }
@media (max-width:900px){ .phero-grid{ grid-template-columns:1fr; gap:32px; } .ptile{ aspect-ratio:16/9; } .ptile .glyph{ font-size:110px; } }

/* sub navigation (stile Airbnb) */
.subnav{ position:sticky; top:var(--hdr); z-index:40; background:#fff; border-bottom:1px solid var(--hair-soft); border-top:1px solid var(--hair-soft); }
.subnav .container{ display:flex; gap:28px; overflow-x:auto; scrollbar-width:none; }
.subnav .container::-webkit-scrollbar{ display:none; }
.subnav a{ position:relative; flex:0 0 auto; padding:16px 0 14px; font-size:14px; font-weight:600; color:var(--muted); white-space:nowrap; }
.subnav a:hover, .subnav a.on{ color:var(--ink); }
.subnav a.on::after{ content:''; position:absolute; left:0; right:0; bottom:0; height:2px; background:var(--ink); }

/* body + sticky card */
.pbody{ display:grid; grid-template-columns:minmax(0,1fr) 360px; gap:72px; align-items:start; }
@media (max-width:1000px){ .pbody{ grid-template-columns:1fr; gap:0; } .pbody .pside{ display:none; } }
.psec{ padding:48px 0; border-bottom:1px solid var(--hair-soft); }
.psec:last-child{ border-bottom:0; }
.psec h2, .sec-head h2{ font-size:28px; font-weight:700; letter-spacing:-.4px; }
.psec-pad{ padding-top:48px; }
.sec-head{ display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin-bottom:24px; }
.psec > h2{ margin-bottom:24px; }
.psec .note{ margin:-12px 0 24px; color:var(--muted); font-size:15px; }

.feat-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:32px 28px; }
.feat .fi{ width:48px; height:48px; border-radius:9999px; background:linear-gradient(140deg,var(--g1),var(--g2)); color:#fff; display:flex; align-items:center; justify-content:center; font-size:24px; margin-bottom:14px; }
.feat h3{ font-size:17px; font-weight:600; }
.feat p{ margin-top:6px; font-size:15px; color:var(--muted); }

.steps{ list-style:none; margin:0; padding:0; display:grid; gap:22px; }
.steps li{ display:flex; gap:18px; align-items:flex-start; }
.steps .n{ width:36px; height:36px; border-radius:9999px; background:var(--ink); color:#fff; font-weight:700; font-size:15px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.steps h3{ font-size:17px; font-weight:600; padding-top:5px; }
.steps p{ color:var(--muted); font-size:15px; margin-top:2px; }

.plans{ display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:16px; }
.plan{ position:relative; display:flex; flex-direction:column; gap:14px; padding:24px; border:1px solid var(--hair); border-radius:16px; background:#fff; }
.plan.hl{ border:2px solid var(--ink); box-shadow:var(--lift); }
.plan .tag{ position:absolute; top:-12px; left:20px; background:var(--ink); color:#fff; font-size:12px; font-weight:700; padding:3px 10px; border-radius:9999px; }
.plan h3{ font-size:16px; font-weight:600; }
.plan .price strong{ font-size:30px; font-weight:700; letter-spacing:-.5px; }
.plan .price span{ color:var(--muted); font-size:14px; margin-left:2px; }
.plan ul{ list-style:none; margin:0 0 6px; padding:0; display:grid; gap:9px; font-size:14px; color:var(--body); flex:1; }
.plan li{ display:flex; gap:8px; align-items:flex-start; }
.plan li svg{ color:var(--ok); font-size:16px; margin-top:3px; }

.faq details{ border-top:1px solid var(--hair-soft); }
.faq details:last-child{ border-bottom:1px solid var(--hair-soft); }
.faq summary{ list-style:none; cursor:pointer; padding:20px 32px 20px 0; font-size:17px; font-weight:600; position:relative; }
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{ content:'+'; position:absolute; right:4px; top:50%; transform:translateY(-50%); font-size:24px; font-weight:400; color:var(--muted); }
.faq details[open] summary::after{ content:'–'; }
.faq p{ padding:0 32px 20px 0; color:var(--body); font-size:15px; }

.pside{ position:sticky; top:calc(var(--hdr) + 80px); padding:40px 0; }
.bcard{ padding:24px; border:1px solid var(--hair); border-radius:16px; box-shadow:var(--lift); display:grid; gap:12px; }
.bcard .bk{ font-size:13px; font-weight:700; color:var(--brand); text-transform:uppercase; letter-spacing:.6px; }
.bcard .bp strong{ font-size:28px; font-weight:700; letter-spacing:-.5px; }
.bcard .bp span{ color:var(--muted); font-size:14px; }
.bcard .bs{ font-size:14px; color:var(--muted); }
.bcard h3{ font-size:20px; font-weight:600; }
.bcard hr{ border:0; border-top:1px solid var(--hair-soft); margin:4px 0; width:100%; }
.bcard .facts{ margin:4px 0 6px; }
.fine{ font-size:12px; color:var(--muted); text-align:center; }
.bcard .fine{ text-align:left; }
.mini-tile{ height:120px; border-radius:12px; }
.mini-tile .glyph{ font-size:64px; }
.contact-list{ list-style:none; margin:0; padding:0; display:grid; gap:14px; font-size:15px; }
.contact-list li{ display:flex; gap:12px; align-items:flex-start; }
.contact-list svg{ font-size:20px; color:var(--muted); margin-top:2px; }
.contact-list a{ text-decoration:underline; text-underline-offset:3px; }

/* form */
.band-soft{ background:var(--soft); margin-top:48px; padding:72px 0; }
.band-soft h2{ font-size:clamp(1.8rem,3.4vw,2.4rem); font-weight:700; letter-spacing:-.5px; text-align:center; text-wrap:balance; }
.band-soft .sub{ text-align:center; color:var(--muted); font-size:17px; margin:12px auto 32px; max-width:52ch; }
.form-card{ background:#fff; border:1px solid var(--hair); border-radius:16px; padding:28px; box-shadow:var(--lift); }
.lead-form{ display:grid; gap:14px; }
.row2{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media (max-width:600px){ .row2{ grid-template-columns:1fr; } .form-card{ padding:20px; } }
.field span{ display:block; margin-bottom:6px; font-size:13px; font-weight:600; }
.field input, .field textarea{ width:100%; padding:13px 14px; border:1px solid var(--border-strong); border-radius:8px; background:#fff; font:inherit; font-size:15px; color:var(--ink); resize:vertical; }
.field input:focus, .field textarea:focus{ outline:none; border-color:var(--ink); box-shadow:0 0 0 1px var(--ink); }
.seg{ border:0; margin:0; padding:4px; display:grid; grid-template-columns:1fr 1fr; gap:4px; background:var(--strong); border-radius:12px; }
.seg label{ display:block; }
.seg input{ position:absolute; opacity:0; pointer-events:none; }
.seg span{ display:block; text-align:center; padding:11px 8px; border-radius:9px; font-size:14px; font-weight:600; color:var(--muted); cursor:pointer; }
.seg input:checked + span{ background:#fff; color:var(--ink); box-shadow:var(--lift); }
.seg input:focus-visible + span{ outline:2px solid var(--ink); }
.check{ display:flex; gap:10px; align-items:flex-start; font-size:13px; color:var(--body); }
.check input{ margin-top:3px; width:18px; height:18px; accent-color:var(--brand); flex-shrink:0; }
.check a{ text-decoration:underline; text-underline-offset:2px; }
.hp{ position:absolute; left:-9999px; height:0; overflow:hidden; }
.err{ display:none; font-size:14px; color:var(--brand); }
.err.show{ display:block; }
.sent{ display:none; text-align:center; padding:16px 0; }
.sent .ok{ width:56px; height:56px; margin:0 auto 14px; border-radius:9999px; background:var(--brand-tint); color:var(--brand); display:flex; align-items:center; justify-content:center; font-size:28px; }
.sent h3{ font-size:22px; font-weight:600; margin-bottom:6px; }
.sent p{ color:var(--muted); }
.lead-form.done > :not(.sent){ display:none; }
.lead-form.done .sent{ display:block; }

.req{ padding-top:40px; }
.req-grid{ display:grid; grid-template-columns:minmax(0,1fr) 360px; gap:64px; align-items:start; }
.req h1, .phead h1{ font-size:clamp(2rem,4.4vw,3rem); font-weight:700; letter-spacing:-1px; line-height:1.1; text-wrap:balance; }
.req .form-card{ margin-top:28px; }
.req .pside{ padding-top:0; top:calc(var(--hdr) + 24px); }
@media (max-width:1000px){ .req-grid{ grid-template-columns:1fr; } .req .pside{ display:block; position:static; } }
.psec-pad .req-grid .pside{ padding-top:0; }
@media (max-width:1000px){ .psec-pad .req-grid .pside{ display:block; position:static; } }

/* blog */
.phead{ padding:48px 0 8px; }
.phead .lead{ max-width:62ch; }
.pills.filter{ margin-top:24px; }
.post-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:36px 24px; }
.post-grid.big{ grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); }
.pcard .ptile-s{ aspect-ratio:1/.6; border-radius:14px; transition:transform .25s; }
.pcard:hover .ptile-s{ transform:scale(1.015); }
.pmeta{ margin-top:12px; font-size:13px; color:var(--muted); font-weight:500; }
.pcard h3{ margin-top:4px; font-size:19px; font-weight:600; letter-spacing:-.2px; line-height:1.3; }
.pcard h3 a:hover{ text-decoration:underline; text-underline-offset:3px; }
.pex{ margin-top:6px; font-size:15px; color:var(--body); display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.art-title{ font-size:clamp(2rem,4.6vw,3.2rem); }
.byline{ margin-top:16px; font-size:14px; color:var(--muted); }
.art-hero{ aspect-ratio:21/9; border-radius:20px; margin:28px auto 8px; }
.art-hero .glyph{ font-size:110px; }
.prose{ padding-top:24px; padding-bottom:16px; font-size:18px; line-height:1.7; color:var(--body); }
.prose h2{ font-size:26px; font-weight:700; letter-spacing:-.4px; color:var(--ink); margin:40px 0 12px; line-height:1.25; }
.prose h3{ font-size:20px; font-weight:600; color:var(--ink); margin:28px 0 8px; }
.prose h4{ font-size:17px; font-weight:600; color:var(--ink); margin:20px 0 6px; }
.prose p{ margin:0 0 18px; }
.prose ul, .prose ol{ margin:0 0 20px; padding-left:24px; }
.prose li{ margin-bottom:6px; }
.prose a{ color:var(--brand); text-decoration:underline; text-underline-offset:3px; }
.prose blockquote{ margin:24px 0; padding:4px 0 4px 20px; border-left:3px solid var(--ink); font-size:20px; color:var(--ink); font-weight:500; }
.prose img{ max-width:100%; border-radius:12px; }
.prose hr{ border:0; border-top:1px solid var(--hair); margin:36px 0; }
.prose code{ background:var(--strong); padding:2px 6px; border-radius:5px; font-size:.9em; }
.prose table{ width:100%; border-collapse:collapse; font-size:15px; margin:0 0 24px; display:block; overflow-x:auto; }
.prose th, .prose td{ text-align:left; vertical-align:top; padding:10px 12px; border-bottom:1px solid var(--hair-soft); }
.prose th{ font-weight:600; color:var(--ink); }
.legal{ font-size:16px; line-height:1.65; padding-bottom:24px; }
.art-cta{ margin:32px 0 8px; padding:28px; background:var(--soft); border-radius:16px; display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.art-cta h3{ font-size:20px; font-weight:600; }
.art-cta p{ color:var(--muted); margin-top:2px; }
.empty{ text-align:center; padding:56px 20px; color:var(--muted); }
.empty h3{ font-size:20px; font-weight:600; color:var(--ink); margin-bottom:6px; }
.empty .btn{ margin-top:18px; }

@media (prefers-reduced-motion:reduce){ html{ scroll-behavior:auto; } *{ transition:none !important; } }
