/* Palette: pietra di Botticino, pietra di Sarnico, ferro */
:root {
  --stone: #E6DFD3;
  --stone-deep: #D6CCBB;
  --ink: #2E2A24;
  --ink-soft: #675F53;
  --sarnico: #5F6452;
  --line: rgba(46, 42, 36, .2);
  --serif: "Petrona", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --gut: clamp(16px, 4vw, 56px);
  --max: 1440px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--stone); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
/* grana della pietra */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .4 0 0 0 0 .33 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-soft); }
:focus-visible { outline: 2px solid var(--sarnico); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--stone); padding: 8px 12px; z-index: 200; }
.skip:focus { left: 8px; }

.link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; text-decoration-color: var(--sarnico); }
.link:hover { text-decoration-thickness: 2px; }
/* link isolati (non dentro un testo): area di tocco di almeno 44px */
.hero-links .link, .sec-more .link, .contact-info .link, .home-services .link, .back.link,
.contact-lines a, .foot-grid a, .foot-links a, .sheet dd a { display: inline-block; padding-block: 12px; margin-block: -12px; }
.foot-grid p, .foot-links a { margin-bottom: 8px !important; }
.btn {
  display: inline-block; background: var(--ink); color: var(--stone); border: 0; cursor: pointer;
  font: 500 1rem/1 var(--sans); padding: 15px 22px; text-decoration: none; border-radius: 2px;
}
.btn:hover { background: var(--sarnico); }

/* ---------- testata ---------- */
.site-head {
  max-width: var(--max); margin: 0 auto; padding: 28px var(--gut);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
}
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font: 500 1.35rem/1.1 var(--serif); }
.brand-sub { color: var(--ink-soft); font-size: .9rem; }
.nav { display: flex; gap: clamp(16px, 2.5vw, 36px); padding-top: 4px; }
.nav a { text-decoration: none; padding-bottom: 3px; border-bottom: 1px solid transparent; }
.nav a:hover { border-color: var(--line); }
.nav a[aria-current] { border-color: var(--ink); }
.nav a.nav-key { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-soft); border-bottom-color: transparent; }
.nav a.nav-key:hover { color: var(--ink); border-bottom-color: transparent; }
.nav-key svg { width: 20px; height: 20px; flex: none; transform: translateY(-1px); }
.nav-key-l { display: none; }
.nav-toggle { display: none; }

main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }

/* sottomenu Lavori */
.has-sub { position: relative; display: flex; align-items: flex-start; gap: 2px; }
.sub-toggle { background: none; border: 0; padding: 0 4px; margin-top: 2px; color: inherit; cursor: pointer; display: inline-flex; align-items: center; min-height: 24px; }
.sub-toggle svg { width: 12px; height: 12px; transition: transform .2s; }
.has-sub.open .sub-toggle svg { transform: rotate(180deg); }
.subnav {
  list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: -16px; z-index: 60; min-width: 230px;
  background: var(--stone); border: 1px solid var(--line); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .35);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; } /* ponte per il mouse */
.subnav { margin-top: 10px; }
.has-sub:hover .subnav, .has-sub.open .subnav { opacity: 1; visibility: visible; transform: none; }
.nav .subnav a { display: block; padding: 10px 16px; border: 0; white-space: nowrap; }
.nav .subnav a:hover, .nav .subnav a[aria-current] { background: var(--stone-deep); }

/* ---------- home ---------- */
.hero {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 72px);
  align-items: end; padding: clamp(24px, 5vw, 72px) 0 clamp(56px, 8vw, 120px);
}
.statement { font: 300 clamp(1.9rem, 3.4vw, 3.4rem)/1.13 var(--serif); letter-spacing: -.015em; max-width: 18ch; margin-bottom: 40px; text-wrap: balance; }
.statement.small { font-size: clamp(1.6rem, 2.6vw, 2.5rem); max-width: 24ch; }
.hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.hero-figure { display: block; text-decoration: none; }
.hero-figure img { width: 100%; height: min(78vh, 760px); object-fit: cover; }
.figcap { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; font-size: .95rem; }
.figcap strong { font-weight: 500; }
.figcap span { color: var(--ink-soft); }
.hero-text { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-figure img { animation: reveal 1.2s cubic-bezier(.6, 0, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes reveal { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }

.sec-title { font-size: clamp(1.5rem, 2.2vw, 2rem); margin-bottom: 32px; }
.selected { padding-bottom: clamp(64px, 9vw, 140px); }
.selected-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 56px clamp(16px, 2.5vw, 40px); }
.card { text-decoration: none; display: block; }
.card-img { overflow: hidden; background: var(--stone-deep); aspect-ratio: 4 / 3; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card-img img { transform: scale(1.03); }
.card h3 { font-size: 1.45rem; margin: 16px 0 2px; }
.card-0 { grid-column: 1 / 8; }
.card-1 { grid-column: 9 / 13; align-self: end; }
.card-1 .card-img, .card-2 .card-img { aspect-ratio: 4 / 5; }
.card-2 { grid-column: 2 / 6; }
.card-3 { grid-column: 7 / 13; margin-top: 18%; }
.selected-grid .card-wide { grid-column: 1 / 13; margin-top: 0; }
.card-wide .card-img { aspect-ratio: 21 / 9 !important; }
.sec-more { margin-top: 48px; }

.home-services { border-top: 1px solid var(--line); padding: 56px 0 clamp(64px, 9vw, 140px); display: grid; grid-template-columns: 5fr 7fr; gap: 0 clamp(24px, 4vw, 72px); }
.home-services > p { grid-column: 2; }
.svc-inline { list-style: none; margin: 0 0 28px; padding: 0; grid-column: 2; grid-row: 1 / 2; font: 300 clamp(1.4rem, 2.2vw, 2rem)/1.35 var(--serif); }
.svc-inline li::before { content: ""; display: inline-block; width: .38em; height: .55em; background: var(--sarnico); margin-right: .5em; vertical-align: .05em; }

.home-contact { background: var(--ink); color: var(--stone); margin: 0 calc(-1 * var(--gut)); padding: clamp(48px, 7vw, 104px) var(--gut); }
.home-contact .statement { margin-bottom: 32px; }
.contact-lines { display: flex; flex-wrap: wrap; gap: 12px 40px; font-size: 1.25rem; }
.contact-lines a { text-decoration-color: rgba(230, 223, 211, .4); text-underline-offset: .25em; }

/* ---------- pagine interne ---------- */
.page-head { padding: clamp(32px, 6vw, 88px) 0 clamp(32px, 4vw, 56px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; }
.page-head h1 { font-size: clamp(2.6rem, 6vw, 5.5rem); line-height: 1; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: .95rem; }
.filters a:hover { border-color: var(--ink); }
.filters a[aria-current] { background: var(--ink); color: var(--stone); border-color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px clamp(16px, 2vw, 32px); padding-bottom: 120px; }
.tile { text-decoration: none; display: block; }
.tile[hidden] { display: none; }
.tile-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone-deep); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.tile:hover .tile-img img { transform: scale(1.03); }
.tile-meta { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; padding-top: 14px; }
.tile-meta h2 { font-size: 1.35rem; line-height: 1.2; }
.tile-meta .muted { grid-column: 1; margin: 2px 0 0; font-size: .95rem; }
.tile-year { grid-column: 2; grid-row: 1; margin: 0; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.empty { padding: 40px 0 160px; font-size: 1.25rem; }

/* scheda lavoro */
.project-head { padding: clamp(28px, 5vw, 72px) 0 40px; max-width: 980px; }
.back { display: inline-block; margin-bottom: 20px; color: var(--ink-soft); }
.project-head h1 { font-size: clamp(2.4rem, 5.5vw, 5rem); line-height: 1.02; margin-bottom: 20px; text-wrap: balance; }
.lead { font: 300 clamp(1.2rem, 1.7vw, 1.5rem)/1.45 var(--serif); max-width: 46ch; }
.project-cover { margin: 0 calc(-1 * var(--gut)); }
.project-cover img { width: 100%; max-height: 92vh; object-fit: cover; }
.project-body { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(24px, 5vw, 96px); padding: clamp(40px, 6vw, 88px) 0; }
.sheet { margin: 0; align-self: start; position: sticky; top: 24px; }
.sheet > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.sheet > div:last-child { border-bottom: 1px solid var(--line); }
.sheet dt { color: var(--ink-soft); font-size: .92rem; padding-top: 1px; }
.sheet dd { margin: 0; }
.prose { max-width: 66ch; }
.prose p { margin-bottom: 1.1em; }
.prose.large { font: 300 clamp(1.25rem, 1.8vw, 1.6rem)/1.5 var(--serif); max-width: 38ch; }
.zoom { all: unset; display: block; cursor: zoom-in; width: 100%; }
.zoom:focus-visible { outline: 2px solid var(--sarnico); outline-offset: 3px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: dense; gap: clamp(12px, 2vw, 28px); }
.g-item.land { grid-column: span 2; }
.g-item.solo { grid-column: span 2; width: 50%; justify-self: center; }
.g-item img { width: 100%; }
.pager { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); margin-top: clamp(56px, 8vw, 120px); padding: 32px 0 96px; }
.pager a { text-decoration: none; display: flex; flex-direction: column; font: 300 clamp(1.3rem, 2vw, 1.8rem)/1.2 var(--serif); max-width: 45%; }
.pager a .muted { font: 400 .9rem var(--sans); margin-bottom: 6px; }
.pager .next { text-align: right; margin-left: auto; }
.draft-note { background: var(--ink); color: var(--stone); padding: 10px 14px; margin-top: 16px; display: inline-block; }

.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(30, 27, 23, .97); display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: calc(100vw - 140px); max-height: calc(100vh - 100px); object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--stone); cursor: pointer; font: 400 1rem var(--sans); padding: 12px; }
.lb-close { top: 16px; right: 20px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 2.6rem !important; line-height: 1; }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: rgba(230, 223, 211, .7); font-size: .9rem; margin: 0; }

/* studio, servizi */
.about { padding-bottom: 80px; }
.about.has-img { display: grid; grid-template-columns: 6fr 6fr; gap: clamp(24px, 5vw, 96px); align-items: start; }
.about-img { margin: 0; }
.services { margin: 0 0 120px; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(24px, 5vw, 96px); }
.svc { border-top: 1px solid var(--line); padding: 24px 0 40px; }
.svc dt { font: 400 clamp(1.4rem, 2vw, 1.8rem)/1.2 var(--serif); margin-bottom: 10px; }
.svc dd { margin: 0; color: var(--ink-soft); max-width: 48ch; }

.team { border-top: 1px solid var(--line); padding: 48px 0 120px; }
.team-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px clamp(24px, 4vw, 64px); }
.team-list h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); margin-bottom: 10px; }
.team-list p { font-size: .95rem; margin: 0; }
@media (max-width: 960px) { .team-list { grid-template-columns: 1fr; } }

/* contatti */
.contact { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 112px); padding-bottom: 120px; }
.contact .sheet { position: static; margin-bottom: 32px; }
.contact > * { min-width: 0; }
.contact .map { align-self: start; aspect-ratio: auto; width: 100%; height: clamp(320px, 38vw, 560px); }
.map { aspect-ratio: 4 / 3; background: var(--stone-deep); filter: grayscale(.85) sepia(.15) contrast(.95); }
.map iframe { width: 100%; height: 100%; border: 0; }
.form h2 { font-size: 2rem; margin-bottom: 24px; }
.form label { display: block; margin-bottom: 18px; font-size: .95rem; }
.form input:not([type=checkbox]), .form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 0; font: inherit; font-size: 1.05rem; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--ink-soft); border-radius: 0;
}
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-bottom: 2px solid var(--sarnico); }
.form .check { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); }
.form .check { min-height: 44px; cursor: pointer; }
.form .check input { margin-top: 2px; width: 22px; height: 22px; flex: none; accent-color: var(--ink); }
.hp { position: absolute !important; left: -9999px; }
.notice { padding: 12px 16px; margin-bottom: 24px; }
.notice.ok { background: var(--sarnico); color: #fff; }
.notice.err { background: #7a3b2e; color: #fff; }

/* piede */
.site-foot { background: var(--ink); color: var(--stone); padding: 56px var(--gut) 28px; font-size: .95rem; }
.site-foot .muted { color: #A69D8E; }
.page-home .site-foot { padding-top: 0; }
.page-home .site-foot .foot-grid { border-top: 1px solid rgba(230, 223, 211, .2); padding-top: 40px; }
.foot-grid { max-width: calc(var(--max) - 2 * var(--gut)); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.foot-grid p { margin: 0 0 4px; }
.foot-name { font: 500 1.2rem var(--serif); }
.foot-links { display: flex; flex-direction: column; gap: 4px; }
.foot-legal { max-width: calc(var(--max) - 2 * var(--gut)); margin: 40px auto 0; font-size: .875rem; line-height: 1.6; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .hero, .home-services, .project-body, .contact, .about.has-img { grid-template-columns: 1fr; }
  .home-services > p, .svc-inline { grid-column: 1; grid-row: auto; }
  .hero { padding-top: 8px; }
  .hero-figure { order: -1; }
  .hero-figure img { height: auto; aspect-ratio: 4 / 3; }
  .sheet { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .site-head { align-items: center; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
  .nav-toggle { display: block; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font: 500 .95rem var(--sans); color: var(--ink); cursor: pointer; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; gap: 0; padding-top: 12px; }
  .nav.open { display: flex; }
  .nav a { font: 300 1.8rem/1.2 var(--serif); padding: 10px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current] { border-bottom-color: var(--line); color: var(--sarnico); }
  .nav a.nav-key { font: 400 1.05rem/1.3 var(--sans); border-bottom: 0; padding-top: 16px; }
  .nav-key-l { display: inline; }
  .has-sub { display: block; }
  .has-sub > a { display: block; }
  .has-sub::after, .sub-toggle { display: none; }
  .subnav { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; background: none; padding: 0 0 8px 16px; margin: 0; min-width: 0; }
  .nav .subnav a { font: 400 1.15rem/1.3 var(--sans); padding: 10px 0; border-bottom: 1px solid var(--line); }
  .nav .subnav a:hover, .nav .subnav a[aria-current] { background: none; }
  .grid, .services { grid-template-columns: 1fr; }
  .selected-grid { display: flex; flex-direction: column; gap: 48px; }
  .card-1 .card-img, .card-2 .card-img { aspect-ratio: 4 / 3; }
  .card-3 { margin-top: 0; }
  .gallery { grid-template-columns: 1fr; }
  .g-item.land, .g-item.solo { grid-column: auto; width: 100%; }
  .lightbox img { max-width: 100vw; }
  .lb-prev, .lb-next { top: auto; bottom: 4px; transform: none; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* riquadro mappa quando la mappa incorporata non è disponibile */
.map-fallback { display: grid; place-items: center; width: 100%; height: 100%; text-decoration: underline; text-underline-offset: .25em; color: var(--ink); background: var(--stone-deep); }

/* ---------- home a strisce (tutti i temi) ---------- */
/* frase iniziale */
.idx-intro { padding: clamp(16px, 3vw, 40px) 0 clamp(32px, 4vw, 56px); }
.idx-statement { font: 500 clamp(1.5rem, 2.4vw, 2.3rem)/1.15 var(--sans); letter-spacing: -.03em; max-width: 26ch; margin: 0; }

.cat-icon { width: 44px; height: 44px; flex: none; color: var(--ink); transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.strip-hint { margin: 14px 0 0; color: var(--ink-soft); font-size: .95rem; }
.strip-hint .hint-mouse { display: none; }
@media (hover: hover) and (pointer: fine) {
  .strip-hint .hint-touch { display: none; }
  .strip-hint .hint-mouse { display: inline; }
}
.strips { --strip-h: clamp(300px, 52vh, 580px); display: flex; flex-direction: column; gap: clamp(56px, 7vw, 104px); padding-bottom: clamp(80px, 10vw, 160px); }
.strip { min-width: 0; }
.strip-head { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 14px; margin-bottom: 16px; }
.strip-head .cat-icon { width: 44px; height: 44px; }
.strip-title h2 { font: 600 clamp(1.15rem, 1.6vw, 1.45rem)/1.2 var(--sans); letter-spacing: -.015em; margin: 0; }
.strip-title h2 a { text-decoration: none; }
.strip-title h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.strip-title p { margin: 2px 0 0; color: var(--ink-soft); font-size: .95rem; }
.strip-open { font-size: .95rem; white-space: nowrap; }

.strip-track {
  display: flex; gap: clamp(12px, 1.4vw, 20px); height: var(--strip-h);
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); scroll-padding-inline: var(--gut);
  scroll-snap-type: none; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.strip-track::-webkit-scrollbar { display: none; }
.strip-track:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.sp { flex: none; height: 100%; scroll-snap-align: start; }
.sp-img { display: block; background: var(--stone-deep); }
.sp-img img { display: block; height: 100%; width: auto; max-width: min(88vw, 1400px); object-fit: cover; }

.sp-info, .sp-text { width: var(--pw, clamp(260px, 28vw, 400px)); overflow-y: auto; border-top: 1px solid var(--ink); padding-top: 14px; }
/* con lo script le schede hanno l'altezza della copertina: il testo in più va nella scheda dopo */
.strip.paged .sp-info, .strip.paged .sp-text { overflow: hidden; }
.sp-text p:last-child { margin-bottom: 0; }
.sp-lead { font: 500 clamp(1.1rem, 1.35vw, 1.3rem)/1.35 var(--sans); letter-spacing: -.01em; margin: 0 0 20px; }
.sp-info dl { margin: 0; }
.sp-info dl > div { display: grid; grid-template-columns: 7.2em 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .93rem; }
.sp-info dt { color: var(--ink-soft); }
.sp-info dd { margin: 0; }
.sp-text { font-size: .98rem; line-height: 1.6; }
.sp-text p { margin: 0 0 .9em; }

.sp-end { width: clamp(200px, 20vw, 280px); display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 22px; text-decoration: none; background: var(--ink); color: var(--stone); }
.sp-end span:first-child { font-size: .9rem; opacity: .8; }
.sp-end-title { font: 600 1.4rem/1.15 var(--sans); letter-spacing: -.02em; }
.sp-end:hover .sp-end-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }

.strip-bar { height: 2px; margin-top: 14px; background: var(--line); overflow: hidden; }
.strip-bar span { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* col mouse la striscia si afferra e si trascina */
@media (hover: hover) and (pointer: fine) {
  .strip-track, .strip-track a { scroll-snap-type: none; cursor: grab; }
  .strip-track .sp-end { cursor: pointer; }
  .strip-track.dragging, .strip-track.dragging a { cursor: grabbing; user-select: none; }
}
@media (max-width: 720px) {
  .strips { --strip-h: clamp(280px, 54vh, 500px); }
  .strip-head { grid-template-columns: auto 1fr; }
  .strip-open { display: none; }
  .sp-info, .sp-text { width: 80vw; }
}

/* ---------- strisce: frecce, telefono, animazioni ---------- */
.strip-stage { position: relative; }
.strip-track { position: relative; }
.strip-nav {
  position: absolute; top: 50%; z-index: 3; display: inline-flex; align-items: center; gap: 6px;
  height: 44px; min-width: 44px; padding: 0 12px; justify-content: center;
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  background: color-mix(in srgb, var(--stone) 88%, transparent); color: var(--ink);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font: 500 .9rem/1 var(--sans);
  transition: opacity .3s, transform .3s, background .2s;
}
.strip-nav svg { width: 18px; height: 18px; }
.strip-nav.next { right: 0; }
.strip-nav.prev { left: 0; }
/* frecce e barra di avanzamento in una riga sotto la striscia */
.strip-stage { padding-bottom: 58px; }
.strip-nav { top: auto; bottom: 0; transform: none; }
.strip-bar { margin-top: -31px; margin-left: 64px; margin-right: 100px; }
.strip-nav:hover { background: var(--stone); }
.strip-nav[hidden] { display: inline-flex !important; opacity: 0; pointer-events: none; }
.strip-nav .nav-label { max-width: 5em; overflow: hidden; white-space: nowrap; transition: max-width .35s, opacity .25s; }
.strip:not(.at-start) .strip-nav .nav-label { max-width: 0; opacity: 0; }
.strip.at-start .strip-nav.next { animation: nudge 2.2s ease-in-out 1.4s 2; }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateX(6px); } }

/* telefono: una slide alla volta, foto orizzontali a tutta larghezza */
@media (max-width: 720px) {
  /* tutte le schede alte come la copertina (3:2), così scorrendo l'altezza non cambia */
  .strip-track { height: calc((100vw - 2 * var(--gut)) * 2 / 3); gap: calc(var(--gut) + 8px); scroll-snap-type: none; }
  .sp, .sp-info, .sp-text { width: calc(100vw - 2 * var(--gut)); height: 100%; }
  .sp-img img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
  .sp-info, .sp-text { padding-top: 12px; }
  .sp-text { display: none; }
  .sp-lead { font-size: 1.05rem; margin-bottom: 12px; }
  .sp-info dl > div { padding: 6px 0; }
  .sp-end { aspect-ratio: 3 / 2; }
}

/* entrata dei progetti e delle schede (solo se le animazioni sono attive) */
.js-anim .strip { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
/* le schede compaiono in dissolvenza, senza spostarsi di lato: altrimenti sembra che la striscia scorra da sola */
.js-anim .strip .sp { opacity: 0; transition: opacity .7s ease; transition-delay: calc(.1s + var(--i, 0) * 70ms); }
.js-anim .strip.in, .js-anim .strip.in .sp { opacity: 1; transform: none; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* foto in dissolvenza quando arrivano */
.js-anim img.is-loading { opacity: 0; }
.js-anim img { transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) { .sp-img { overflow: hidden; } .sp-img:hover img { transform: scale(1.025); } }

/* passaggio morbido tra le pagine (browser recenti) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s ease both; }
::view-transition-new(root) { animation: vt-in .45s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  .js-anim .strip, .js-anim .strip .sp, .reveal { opacity: 1 !important; transform: none !important; }
  .strip-nav { animation: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* logo accanto al nome dello studio */
.brand { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.brand-mark { grid-row: span 2; width: 44px; height: 44px; color: var(--ink); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.brand:hover .brand-mark { transform: rotate(-12deg); }
@media (max-width: 720px) { .brand-mark { width: 36px; height: 36px; } }
@media (prefers-reduced-motion: reduce) { .brand:hover .brand-mark { transform: none; } }

/* contatti senza mappa */
.contact.no-map { grid-template-columns: minmax(0, 640px); }

/* ---------- stima parcella ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fee-intro { max-width: 60ch; font-size: 1.1rem; color: var(--ink-soft); margin: -12px 0 40px; }
.fee { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 4vw, 72px); align-items: start; padding-bottom: 48px; }
.fee-inputs { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.fee-block { border: 0; margin: 0; padding: 0; min-width: 0; }
.fee-block legend { font: 600 .95rem var(--sans); padding: 0 0 12px; color: var(--ink-soft); }
.fee-amount { display: flex; align-items: baseline; gap: 10px; }
.fee-cur { font: 500 clamp(1.6rem, 3vw, 2.6rem) var(--sans); color: var(--ink-soft); }
.fee-amount input { flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); font: 600 clamp(2.2rem, 5vw, 4rem)/1.05 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; padding: 0; outline: none; }
.fee-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 18px 0 6px; background: none; cursor: pointer; }
.fee-slider::-webkit-slider-runnable-track { height: 2px; background: var(--ink); }
.fee-slider::-moz-range-track { height: 2px; background: var(--ink); }
.fee-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border-radius: 50%; background: var(--ink); border: 3px solid var(--stone); box-shadow: 0 0 0 1px var(--ink); transition: transform .15s; }
.fee-slider::-moz-range-thumb { width: 22px; height: 22px; box-sizing: border-box; border-radius: 50%; background: var(--ink); border: 3px solid var(--stone); box-shadow: 0 0 0 1px var(--ink); }
.fee-slider:active::-webkit-slider-thumb { transform: scale(1.15); }
.fee-slider:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.fee-scale { position: relative; height: 1.4em; margin: 0 11px; color: var(--ink-soft); font-size: .82rem; font-variant-numeric: tabular-nums; }
.fee-scale span { position: absolute; left: calc(var(--x) * 1%); transform: translateX(-50%); white-space: nowrap; }
.fee-scale span::before { content: ""; position: absolute; left: 50%; top: -9px; width: 1px; height: 6px; background: currentColor; }
.fee-scale span:first-child { transform: translateX(-11px); }
.fee-scale span:first-child::before { left: 11px; }
.fee-scale span:last-child { transform: translateX(calc(-100% + 11px)); }
.fee-scale span:last-child::before { left: auto; right: 11px; }
.fee-area input { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.fee-area .fee-cur { order: 2; font-size: clamp(1.2rem, 2vw, 1.6rem); }
.fee-help { margin: 4px 0 0; color: var(--ink-soft); font-size: .88rem; max-width: 60ch; }
.fee-types { display: flex; flex-wrap: wrap; gap: 8px; }
.fee-type input { position: absolute; opacity: 0; pointer-events: none; }
.fee-type span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.fee-type span:hover { border-color: var(--ink); }
.fee-type input:checked + span { background: var(--ink); color: var(--stone); border-color: var(--ink); }
.fee-type input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.fee-phases { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.fee-phases li { border-bottom: 1px solid var(--line); transition: opacity .25s; }
.fee-phases li.off .fp-text, .fee-phases li.off .fp-amount { opacity: .55; }
.fee-phase { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; padding: 16px 0; cursor: pointer; }
.fee-phase input { position: absolute; opacity: 0; pointer-events: none; }
.fp-box { width: 22px; height: 22px; margin-top: 2px; border: 1.5px solid var(--ink); border-radius: 4px; display: grid; place-items: center; transition: background .2s; }
.fp-box::after { content: ""; width: 10px; height: 5px; border: 2px solid var(--stone); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .2s; }
.fee-phase input:checked + .fp-box { background: var(--ink); }
.fee-phase input:checked + .fp-box::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.fee-phase input:focus-visible + .fp-box { outline: 2px solid var(--ink); outline-offset: 3px; }
.fp-text strong { display: block; font-weight: 600; }
.fp-text span { display: block; color: var(--ink-soft); font-size: .93rem; margin-top: 2px; max-width: 56ch; }
.fp-amount { font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; transition: opacity .25s; }

.fee-result { position: sticky; top: 96px; background: var(--ink); color: var(--stone); padding: clamp(22px, 3vw, 34px); }
.fr-label { margin: 0 0 6px; opacity: .8; font-size: .95rem; }
.fr-total { margin: 0; font: 600 clamp(2.4rem, 4.4vw, 3.6rem)/1 var(--sans); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.fr-total { margin-bottom: 22px !important; }
.fr-sheet { margin: 0 0 20px; }
.fr-sheet > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid color-mix(in srgb, var(--stone) 25%, transparent); font-size: .93rem; }
.fr-sheet dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 500; }
.fr-note { font-size: .82rem; line-height: 1.5; opacity: .75; margin: 0 0 20px; }
.fee-result .fr-cta { background: var(--stone); color: var(--ink); width: 100%; text-align: center; }
.fee-result .fr-cta:hover { background: var(--stone-deep); }
.fee-how { border-top: 1px solid var(--line); padding: 18px 0 100px; max-width: 70ch; }
.fee-how summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
@media (max-width: 960px) {
  .fee { grid-template-columns: 1fr; }
  .fee-result { position: sticky; top: auto; bottom: 0; z-index: 20; margin: 0 calc(-1 * var(--gut)); padding: 16px var(--gut) calc(16px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px; }
  .fr-label { grid-column: 1; font-size: .85rem; margin: 0; }
  .fr-total { grid-column: 1; font-size: 2rem; }
  .fr-total { margin-bottom: 0 !important; }
  .fee-result .fr-cta { grid-column: 2; grid-row: 1 / span 2; width: auto; }
  .fr-sheet, .fr-note { display: none; }
}

/* ---------- intro della home: logo che si disegna, cambia forma e lascia il posto ai lavori ---------- */
.intro { position: relative; height: calc(100svh - var(--head-h, 96px)); min-height: 420px; display: grid; place-items: center; margin-bottom: clamp(24px, 4vw, 56px); }
.intro-stage { display: flex; flex-direction: column; align-items: center; gap: clamp(18px, 3vh, 32px);
  transform: translateY(calc(var(--p, 0) * -18vh)) scale(calc(1 - var(--p, 0) * .45)); opacity: calc(1 - var(--p, 0) * 1.4); will-change: transform, opacity; }
.intro-logo { width: min(70vmin, 624px); height: auto; color: var(--ink); overflow: visible; }
.intro-logo .il-guides, .intro-logo .il-nodes { opacity: 0; transition: opacity 1s; }
.intro-logo .il-guides line { stroke: var(--ink-soft); }
.intro-logo .il-nodes circle { fill: var(--stone); }
.intro-logo .il-orbit2 { stroke: var(--ink-soft); stroke-dasharray: .004 .012; opacity: 0; transition: opacity 1.2s; }
.intro.live .il-guides, .intro.live .il-nodes { opacity: 1; }
.intro.live .il-orbit2 { opacity: .7; }
.intro-name { margin: 0; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.intro-name strong { font: 600 clamp(1.6rem, 3.4vw, 2.6rem)/1 var(--serif); letter-spacing: -.04em; }
.intro-name span { color: var(--ink-soft); font-size: clamp(.95rem, 1.2vw, 1.1rem); }
.intro-down { position: absolute; bottom: clamp(12px, 3vh, 32px); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px;
  text-decoration: none; font-size: .85rem; color: var(--ink-soft); opacity: calc(1 - var(--p, 0) * 3); }
.intro-down svg { width: 22px; height: 22px; animation: intro-bob 1.8s ease-in-out infinite; }
@keyframes intro-bob { 0%, 100% { transform: none; } 50% { transform: translateY(6px); } }
/* disegno a mano del logo */
.js-anim .intro-logo .il-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: intro-draw 1.5s cubic-bezier(.65, 0, .35, 1) forwards; }
.js-anim .intro-logo .il-quad { animation-delay: .45s; }
.js-anim .intro-logo .il-d1 { animation-delay: 1s; animation-duration: .7s; }
.js-anim .intro-logo .il-d2 { animation-delay: 1.25s; animation-duration: .7s; }
.js-anim .intro.seen .intro-logo .il-draw { animation-duration: .01s; animation-delay: 0s; }
@keyframes intro-draw { to { stroke-dashoffset: 0; } }
.js-anim .intro-name > * { opacity: 0; transform: translateY(14px); animation: intro-up .9s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: 1.5s; }
.js-anim .intro-name span { animation-delay: 1.7s; }
.js-anim .intro-down { animation: intro-fade 1s 2.2s both; }
.js-anim .intro.seen .intro-name > *, .js-anim .intro.seen .intro-down { animation-delay: .1s; }
@keyframes intro-up { to { opacity: 1; transform: none; } }
@keyframes intro-fade { from { opacity: 0; } }
@media (max-width: 720px) { .intro { height: calc(100svh - var(--head-h, 80px)); min-height: 360px; } .intro-logo { width: min(86vw, 62svh); } }
@media (prefers-reduced-motion: reduce) { .intro-stage { transform: none; opacity: 1; } .intro-down svg { animation: none; } }

/* sui touch la striscia si trascina via script: il browser gestisce solo lo scorrimento verticale */
@media (hover: none), (pointer: coarse) {
  .strip-track { touch-action: pan-y; scroll-snap-type: none; }
  .strip-track.dragging { scroll-snap-type: none !important; scroll-behavior: auto; }
}
/* variante «volume» */
.intro-logo .il-ring { stroke: var(--ink-soft); stroke-dasharray: 2 10; opacity: 0; transition: opacity 1.2s; }
.intro-logo .il-shadow { fill: var(--ink); stroke: none; opacity: 0; filter: blur(6px); }
.intro-volume .il-guides { display: none; }
.intro.vol .il-ring { opacity: .7; }

/* pagina privacy */
.legal { padding-bottom: clamp(64px, 8vw, 120px); }
.nocookie-box { border-left: 3px solid currentColor; padding: 14px 18px; background: rgba(127,127,127,.09); }
.legal h2 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); margin: 2em 0 .5em; }
.legal ul { padding-left: 1.2em; } .legal li { margin-bottom: .6em; }
.legal code { font-size: .9em; }

/* ---------- quadro economico ---------- */
.qe-hint { font-weight: 400; margin-left: 6px; opacity: .8; }
.qe-sec legend { font: 600 1.05rem var(--sans); color: var(--ink); padding-bottom: 8px; }
.qe-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.qe-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px 92px 32px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.qe-row-single { grid-template-columns: minmax(0, 1fr) auto; border-top: 1px solid var(--line); border-bottom: 0; padding: 12px 0; }
.qe-sec .qe-row-single:first-of-type { border-top-color: var(--ink); }
.qe-label { width: 100%; min-width: 0; border: 0; border-bottom: 1px dashed transparent; background: none; color: var(--ink); font: inherit; padding: 4px 0; }
.qe-label:hover, .qe-label:focus { border-bottom-color: var(--line); outline: none; }
.qe-label-text { line-height: 1.4; }
.qe-val { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); padding: 6px 10px; background: var(--stone); transition: border-color .2s; }
.qe-val:focus-within { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.qe-val span { color: var(--ink-soft); }
.qe-val input, .qe-pct input { width: 100%; min-width: 0; border: 0; background: none; color: var(--ink); font: 500 1rem var(--sans); text-align: right; font-variant-numeric: tabular-nums; outline: none; padding: 0; }
.qe-row-single .qe-val { width: 170px; }
.qe-pct { display: inline-flex; align-items: center; gap: 4px; margin: 0 4px; white-space: nowrap; }
.qe-pct input.qe-small { width: 3.2em; border: 1px solid var(--line); padding: 3px 6px; text-align: center; }
.qe-pct input.qe-small:focus { border-color: var(--ink); }
.qe select { font: inherit; color: var(--ink); background: var(--stone); border: 1px solid var(--line); padding: 4px 8px; margin-left: 4px; max-width: 100%; }
.qe-inc { font-size: .82rem; color: var(--ink-soft); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qe-out { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.qe-del { width: 32px; height: 32px; border: 0; background: none; color: var(--ink-soft); font-size: 1.3rem; line-height: 1; cursor: pointer; border-radius: 50%; }
.qe-del:hover { background: var(--stone-deep); color: var(--ink); }
.qe-add { background: none; border: 0; padding: 12px 0 4px; font: inherit; color: var(--ink); cursor: pointer; }
.qe-sub { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0 0; font-variant-numeric: tabular-nums; }
.qe-sub strong { font-size: 1.15rem; }
.qe-sub.muted { margin-top: 2px; font-size: .9rem; }
.qe-tools { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; }
.qe-tools .link { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-soft); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.qe-tools .link:hover { color: var(--ink); }
.qe-m2 { margin: -12px 0 20px; opacity: .85; }
.qe-m2 strong { font-size: 1.2rem; }
.qe-bar { display: flex; height: 10px; gap: 2px; margin-bottom: 18px; }
.qe-bar span { flex-basis: 0; min-width: 2px; transition: flex-grow .4s cubic-bezier(.2, .7, .2, 1); }
.qe-gA i, .qe-bar .qe-gA { background: var(--stone); }
.qe-gB i, .qe-bar .qe-gB { background: color-mix(in srgb, var(--stone) 70%, var(--ink)); }
.qe-gC i, .qe-bar .qe-gC { background: color-mix(in srgb, var(--stone) 48%, var(--ink)); }
.qe-gD i, .qe-bar .qe-gD { background: color-mix(in srgb, var(--stone) 30%, var(--ink)); outline: 1px solid color-mix(in srgb, var(--stone) 40%, transparent); outline-offset: -1px; }
.qe-sheet dt { display: flex; align-items: center; gap: 8px; }
.qe-sheet dt i { width: 10px; height: 10px; flex: none; }
.qe-sheet dd { text-align: right; }
.qe-sheet dd small { display: block; font-weight: 400; opacity: .7; font-size: .8rem; }
.qe-more { display: none; }
@media (max-width: 720px) {
  .qe-row { grid-template-columns: minmax(0, 1fr) 128px 32px; }
  .qe-row .qe-inc { display: none; }
  .qe-row-single { grid-template-columns: 1fr; gap: 6px; }
  .qe-row-single .qe-val { width: 100%; }
  .qe-row-single .qe-out { justify-self: end; }
}
@media (max-width: 960px) {
  .qe-result .qe-m2 { grid-column: 1; margin: 0; font-size: .85rem; }
  .qe-result .qe-m2 strong { font-size: .95rem; }
  .qe-result .fr-cta { grid-row: 1 / span 3; }
  .qe-result .qe-bar { display: none; }
  .qe-more { display: block; grid-column: 1; justify-self: start; background: none; border: 0; padding: 4px 0 0; color: inherit; font: inherit; font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
  .qe-result.open .qe-sheet { display: block; grid-column: 1 / -1; grid-row: 5; margin: 8px 0 0; max-height: 50vh; overflow: auto; }
}
@media print {
  .site-head, .site-foot, .qe-tools, .qe-add, .qe-del, .fr-cta, .fee-intro, .skip { display: none !important; }
  body { background: #fff; color: #000; }
  .fee { grid-template-columns: 1fr; }
  .fee-result { position: static; background: none; color: #000; border: 1px solid #000; }
  .qe-val, .qe select, .qe-pct input.qe-small { border: 0; background: none; box-shadow: none; }
  .fr-sheet, .qe-bar { display: block !important; }
}
.qe-auto { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.qe-types .fee-type span { flex-direction: column; align-items: flex-start; line-height: 1.2; padding: 10px 16px; border-radius: 12px; }
.qe-types .fee-type small { font-size: .8rem; opacity: .75; margin-top: 2px; font-variant-numeric: tabular-nums; }

/* ---------- costo di costruzione ---------- */
.cc-gap { margin-top: 8px; margin-bottom: 4px; }
.cc-check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 4px; font-size: .95rem; cursor: pointer; }
.cc-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); }
.cc-table { border-top: 1px solid var(--ink); }
.cc-th, .cc-tr { display: grid; grid-template-columns: minmax(0, 1fr) 96px 130px 52px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.cc-th { font-size: .8rem; color: var(--ink-soft); padding: 6px 0; }
.cc-tr input { width: 100%; border: 1px solid var(--line); background: var(--stone); color: var(--ink); font: 500 1rem var(--sans); text-align: right; padding: 7px 10px; font-variant-numeric: tabular-nums; }
.cc-tr input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.cc-p { text-align: right; color: var(--ink-soft); font-size: .9rem; font-variant-numeric: tabular-nums; }
.cc-m2 { width: 150px; }
.cc-m2 span { order: 2; }
.cc .fee-phase { grid-template-columns: auto 1fr; }
.cc .fp-text span { color: var(--ink); font-size: 1rem; margin: 0; }
.cc-warn { color: var(--ink); border-left: 3px solid var(--ink); padding-left: 10px; }
.cc-sheet dd { text-align: right; max-width: 60%; }
.cc .fee-how { padding-bottom: 0; }
@media (max-width: 720px) {
  .cc-th, .cc-tr { grid-template-columns: minmax(0, 1fr) 64px 92px; }
  .cc-th span:last-child, .cc-tr .cc-p { display: none; }
  .cc-m2 { width: 100%; }
}
.fee-excl { margin-top: 14px; color: var(--ink); }

/* descrizione dei lavori giustificata, con sillabazione per evitare spazi troppo larghi */
.project-body .prose p, .sp-text p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; text-wrap: pretty; }
.cc-tab { width: 100%; border-collapse: collapse; margin: 18px 0 8px; font-size: .92rem; font-variant-numeric: tabular-nums; }
.cc-tab caption { text-align: left; font-weight: 600; padding-bottom: 8px; }
.cc-tab th, .cc-tab td { text-align: left; padding: 7px 10px 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.cc-tab thead th { font-weight: 500; color: var(--ink-soft); border-bottom-color: var(--ink); }
.cc-tab td:not(:first-child), .cc-tab th:not(:first-child) { text-align: right; }
@media (max-width: 720px) { .cc-tab { font-size: .82rem; } .cc-tab th, .cc-tab td { padding-right: 6px; } }
/* su computer la striscia si ferma al margine della pagina: oltre il margine non si vede nulla */
@media (min-width: 721px) {
  .strip-track { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--gut)), transparent calc(100% - var(--gut))); mask-image: linear-gradient(to right, #000 calc(100% - var(--gut)), transparent calc(100% - var(--gut))); }
  .strip:not(.at-start) .strip-track { -webkit-mask-image: linear-gradient(to right, transparent var(--gut), #000 var(--gut), #000 calc(100% - var(--gut)), transparent calc(100% - var(--gut))); mask-image: linear-gradient(to right, transparent var(--gut), #000 var(--gut), #000 calc(100% - var(--gut)), transparent calc(100% - var(--gut))); }
}
}
.fee-intro + .cc-note { margin-top: -24px; }

/* testi lunghi giustificati in tutte le pagine (studio, servizi, privacy, strumenti, schede) */
.prose p, .prose li, .svc dd, .lead, .fee-intro, .fee-help, .fr-note, .home-contact .statement + p {
  text-align: justify; hyphens: auto; -webkit-hyphens: auto;
}
.cc-urb { border-top: 1px solid var(--ink); padding-top: 22px; margin-top: 8px; }
.cc-urb h2 { font: 600 1.05rem var(--sans); margin: 0 0 8px; }
.cc-urb-sum { margin: 18px 0 0; font-variant-numeric: tabular-nums; }
.cc-urb-sum > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.cc-urb-sum dd { margin: 0; font-weight: 500; }
.cc-urb-sum .cc-urb-tot { border-top: 1px solid var(--ink); font-size: 1.15rem; }
.cc-urb-sum .cc-urb-tot dt { font-weight: 600; }
.cc-urb-sum .cc-urb-tot dd { font-weight: 700; }

/* scheda 3D: il modello gira piano da solo; un clic lo attiva (ruota, zoom, sposta), Esc o «Chiudi» per uscire */
.sp-3d, .m3d-box { position: relative; color: var(--ink); background: var(--stone-deep); overflow: hidden; cursor: pointer; outline-offset: -2px; }
.sp-3d { aspect-ratio: 1 / 1; }
.m3d-stage { position: absolute; inset: 0; }
.m3d-stage canvas { display: block; width: 100%; height: 100%; }
.m3d-active { cursor: grab; }
.m3d-active .m3d-stage canvas { touch-action: none; }
.m3d-active:active { cursor: grabbing; }
.m3d-ring, .m3d-fallback { position: absolute; inset: 7%; width: 86%; height: 86%; pointer-events: none; }
.m3d-fallback { transition: opacity .4s; }
.m3d-loaded .m3d-fallback { opacity: 0; }
.m3d-hint { position: absolute; left: 16px; right: 16px; bottom: 12px; margin: 0; font-size: .78rem; color: var(--ink-soft); pointer-events: none; }
.m3d-hint b { font-weight: 500; color: var(--ink); }
.m3d-act, .m3d-touch { display: none; }
.m3d-active .m3d-idle { display: none; }
.m3d-active .m3d-act { display: inline; }
@media (hover: none), (pointer: coarse) { .m3d-fine { display: none; } .m3d-touch { display: inline; } }
.m3d-tools { position: absolute; top: 10px; right: 10px; display: none; gap: 6px; }
.m3d-active .m3d-tools { display: flex; }
.m3d-btn { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--stone); color: var(--ink); cursor: pointer; padding: 0; }
.m3d-btn:hover { border-color: var(--ink); }
.m3d-btn svg { width: 18px; height: 18px; }
.m3d-load, .m3d-msg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; font-size: .85rem; color: var(--ink-soft); text-align: center; display: none; pointer-events: none; }
.m3d-load i { display: block; width: 140px; height: 2px; margin: 10px auto 0; background: var(--line); position: relative; overflow: hidden; }
.m3d-load i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--m3d-p, 8%); background: var(--ink); transition: width .2s; }
.m3d-loading .m3d-load { display: block; }
.m3d-err .m3d-msg, .m3d-nogl .m3d-msg { display: block; }
.m3d-err .m3d-hint, .m3d-nogl .m3d-hint { display: none; }
.m3d-fs { background: var(--stone); }
/* pagina del lavoro: riquadro largo sotto la descrizione */
.project-3d { margin: clamp(32px, 5vw, 64px) 0; }
.m3d-box { aspect-ratio: 16 / 9; max-height: 80vh; width: 100%; }
@media (max-width: 720px) { .m3d-box { aspect-ratio: 4 / 5; } }
/* barra dell'area riservata sulle pagine degli strumenti */
/* testata del pannello sulle pagine degli strumenti (come admin/admin.css) */
.a-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px 32px; padding: 22px clamp(16px, 4vw, 56px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; background: var(--stone); font-size: 1rem; }
.a-brand { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; text-decoration: none; line-height: 1.15; color: var(--ink); }
.a-brand svg { grid-row: span 2; width: 40px; height: 40px; color: var(--ink); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.a-brand:hover svg { transform: rotate(-12deg); }
.a-brand strong { font: 600 1.25rem/1.1 var(--serif); letter-spacing: -.03em; }
.a-brand span { color: var(--ink-soft); font-size: .85rem; }
.a-head nav { display: flex; gap: clamp(16px, 2.5vw, 32px); flex-wrap: wrap; align-items: center; }
.a-head nav a, .a-head nav .a-linkbtn { color: var(--ink); text-decoration: none; padding-bottom: 3px; border-bottom: 1px solid transparent; }
.a-head nav a:hover, .a-head nav .a-linkbtn:hover { border-color: var(--line); }
.a-head nav a[aria-current] { border-color: var(--ink); }
.a-inline { display: inline; margin: 0; }
.a-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.a-user { color: var(--ink-soft); }
.tool-main { padding-bottom: 64px; }
@media (max-width: 760px) { .a-head { position: static; gap: 12px 18px; padding-top: 16px; padding-bottom: 16px; } .a-head nav { gap: 10px 18px; } }
.adm-bar { display: flex; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; padding: 8px var(--gut); font-size: .82rem; background: var(--ink); color: var(--stone); }
.adm-bar a { color: inherit; }
/* ---------- foglio di calcolo (Verifiche legno) ---------- */
.fg-tool { --fg-line: var(--ink); --fg-in1: color-mix(in srgb, #F2C230 26%, var(--stone)); --fg-in2: color-mix(in srgb, #E89B3C 20%, var(--stone)); --fg-mod: color-mix(in srgb, #3C7BE8 22%, var(--stone)); margin-top: 28px; }
.fg-bar { display: grid; grid-template-columns: 160px minmax(200px, 1fr) auto; gap: 12px 16px; align-items: end; padding: 18px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.fg-field { display: grid; gap: 4px; font-size: .8rem; color: var(--ink-soft); }
.fg-field input { font: inherit; font-size: 1rem; color: var(--ink); background: var(--stone); border: 1px solid var(--line); padding: 9px 10px; }
.fg-field input:focus { outline: none; border-color: var(--ink); }
.fg-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.fg-actions .btn { padding: 9px 16px; font-size: .9rem; }
#fg-save.pulse { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 20%, transparent); }
.fg-msg { grid-column: 1 / -1; margin: 0; min-height: 1.2em; font-size: .85rem; color: var(--ink-soft); }
.fg-msg.ok { color: #2f7a3e; } .fg-msg.err { color: #b3261e; }
.fg-main { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; margin-top: 18px; align-items: start; }
.fg-tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--ink); }
.fg-tabs button { border: 0; background: none; padding: 9px 12px 10px; font: 500 .88rem var(--sans); color: var(--ink-soft); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.fg-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.fg-tabs i { font-style: normal; font-size: .7rem; padding: 1px 6px; border-radius: 999px; }
.fg-tabs i:empty { display: none; }
.fg-tabs i.ok { background: color-mix(in srgb, #2f7a3e 18%, var(--stone)); color: #2f7a3e; }
.fg-tabs i.no { background: #b3261e; color: #fff; }
.fg-legend { display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: center; font-size: .78rem; color: var(--ink-soft); margin: 10px 0; }
.fg-legend .sw { display: inline-block; width: 14px; height: 10px; vertical-align: -1px; margin-right: -8px; border: 1px solid var(--line); }
.sw.in1 { background: var(--fg-in1); } .sw.in2 { background: var(--fg-in2); } .sw.mod { background: var(--fg-mod); }
.fg-legend .fg-link { margin-left: auto; }
.fg-link { border: 0; background: none; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.fg-actions .fg-sec { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.fg-actions .fg-sec:hover { background: var(--stone-deep); }
.fg-field input::placeholder { color: var(--ink-soft); opacity: .6; }
.fg-sheet { overflow: auto; max-height: 78vh; border: 1px solid var(--line); background: var(--stone); }
table.fg { border-collapse: collapse; table-layout: fixed; width: max-content; font: 12.5px/1.25 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.fg td { padding: 0 3px; height: 18px; white-space: nowrap; overflow: visible; vertical-align: middle; position: relative; }
.fg td > span { position: relative; z-index: 1; }
.fg td.b { font-weight: 600; } .fg td.it { font-style: italic; } .fg td.wr { white-space: normal; }
.fg td.h-center, .fg td.h-centerContinuous { text-align: center; } .fg td.h-right { text-align: right; } .fg td.h-left { text-align: left; }
.fg td.f, .fg td.in { text-align: right; } .fg td.f.h-center, .fg td.f.h-left { text-align: inherit; }
.fg td.rot { padding: 0; }
.fg td.rot > span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); white-space: nowrap; }
.fg td.in1 { background: var(--fg-in1); } .fg td.in2 { background: var(--fg-in2); }
.fg td.calc { background: color-mix(in srgb, var(--ink) 5%, var(--stone)); }
.fg td.mod { background: var(--fg-mod) !important; }
.fg td.k { cursor: text; } .fg td.k:hover { outline: 1px dashed var(--line); outline-offset: -1px; }
.fg-in, .fg-edit { width: 100%; border: 0; background: transparent; font: inherit; color: inherit; text-align: right; padding: 0; height: 18px; }
.fg-in:focus, .fg-edit:focus { outline: 2px solid var(--ink); outline-offset: 0; background: var(--stone); }
.fg-edit { text-align: left; }
.fg td.ok { color: #2f7a3e; } .fg td.no { color: #fff; background: #b3261e; } .fg td.err { color: #b3261e; }
.fg td.red.ok, .fg td.red.no { font-weight: 700; }
.fg-side { position: sticky; top: 90px; border-top: 1px solid var(--ink); padding-top: 12px; }
.fg-side h2 { font: 500 1.05rem var(--serif); margin: 0 0 10px; }
.fg-item { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); }
.fg-item.cur b { text-decoration: underline; text-underline-offset: 3px; }
.fg-open { border: 0; background: none; text-align: left; padding: 0; cursor: pointer; color: inherit; font: inherit; display: grid; gap: 2px; }
.fg-open b { font-weight: 500; font-size: .92rem; }
.fg-when { font-size: .78rem; color: var(--ink-soft); }
.fg-del { font-size: .78rem; border: 0; background: none; cursor: pointer; color: var(--ink-soft); }
.fg-print-title { display: none; }
@media (max-width: 980px) { .fg-main { grid-template-columns: minmax(0, 1fr); } .fg-side { position: static; } .fg-bar { grid-template-columns: 1fr; } }
@media print {
  .site-head, .a-head, .site-foot, .adm-bar, .page-head, .fee-intro, .fg-bar, .fg-tabs, .fg-legend, .fg-side { display: none !important; }
  .fg-main { display: block; margin: 0; } .fg-sheet { max-height: none; overflow: visible; border: 0; }
  .fg-print-title { display: block; font: 600 14px var(--sans); margin: 0 0 8px; }
  table.fg { font-size: 9px; } .fg td { height: 15px; }
  @page { size: A4 landscape; margin: 10mm; }
}
/* ---------- Verifiche legno ---------- */
.lg { margin-top: 28px; }
.lg-bar { display: grid; grid-template-columns: 160px minmax(200px, 1fr) auto; gap: 12px 16px; align-items: end; padding: 18px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.lg-f { display: grid; gap: 5px; font-size: .8rem; color: var(--ink-soft); }
.lg-f input, .lg-f select { font: inherit; font-size: 1rem; color: var(--ink); background: var(--stone); border: 1px solid var(--line); padding: 9px 10px; border-radius: 0; width: 100%; min-width: 0; }
.lg-f input:focus, .lg-f select:focus { outline: none; border-color: var(--ink); }
.lg-f input::placeholder { color: var(--ink-soft); opacity: .6; }
.lg-u { display: flex; align-items: stretch; }
.lg-u input { text-align: right; }
.lg-u i { font-style: normal; display: grid; place-items: center; padding: 0 9px; border: 1px solid var(--line); border-left: 0; background: var(--stone-deep); font-size: .8rem; color: var(--ink-soft); min-width: 44px; }
.lg-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.lg-actions .btn { padding: 9px 15px; font-size: .88rem; }
.lg-actions .lg-sec { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.lg-actions .lg-sec:hover { background: var(--stone-deep); }
#lg-save.pulse { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 20%, transparent); }
.lg-msg { grid-column: 1 / -1; margin: 0; min-height: 1.2em; font-size: .85rem; color: var(--ink-soft); }
.lg-msg.ok { color: #2f7a3e; } .lg-msg.err { color: #b3261e; }
.lg-list { grid-column: 1 / -1; border-top: 1px solid var(--line); max-height: 320px; overflow: auto; }
.lg-item { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.lg-item.cur b { text-decoration: underline; text-underline-offset: 3px; }
.lg-pick { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; color: inherit; font: inherit; display: grid; gap: 2px; }
.lg-pick b { font-weight: 500; }
.lg-link { border: 0; background: none; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lg-del { font-size: .8rem; color: var(--ink-soft); }
.lg-help { font-size: .8rem; color: var(--ink-soft); margin: 8px 0 0; line-height: 1.45; }
.lg-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); margin-top: 26px; align-items: start; }
.lg-types { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.lg-types input { position: absolute; opacity: 0; pointer-events: none; }
.lg-types span { display: grid; justify-items: center; gap: 6px; padding: 14px 10px 12px; border: 1px solid var(--line); cursor: pointer; font-weight: 500; font-size: .95rem; }
.lg-types svg { width: 64px; height: 32px; color: var(--ink-soft); }
.lg-types input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.lg-types input:checked + span svg { color: var(--ink); }
.lg-types input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.lg-block { border: 0; border-top: 1px solid var(--ink); margin: 0 0 22px; padding: 12px 0 0; }
.lg-block legend, .lg-adv summary { font: 500 1.05rem var(--serif); padding: 0 8px 0 0; }
.lg-adv summary { cursor: pointer; margin-bottom: 12px; }
.lg-adv summary .lg-help { font: 400 .8rem var(--sans); }
.lg-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lg-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.lg-piana .lg-only-incl { display: none; }
.lg-out { position: sticky; top: 90px; }
.lg-print-head { display: none; }
.lg-verdict { display: grid; gap: 2px; padding: 20px 22px; background: var(--ink); color: var(--stone); }
.lg-v-lab { font-size: .8rem; opacity: .7; }
.lg-verdict strong { font: 500 2rem/1.1 var(--serif); letter-spacing: -.02em; }
.lg-verdict.no strong { color: #ff9a86; }
.lg-v-sub { font-size: .85rem; opacity: .8; }
.lg-draw { margin: 0; padding: 10px 0 2px; border-bottom: 1px solid var(--line); }
.lg-draw svg { display: block; width: 100%; height: auto; font: 11px var(--sans); fill: var(--ink-soft); overflow: visible; }
.lg-draw .bm { fill: var(--stone-deep); stroke: var(--ink); stroke-width: 1.2; }
.lg-draw .sp { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.lg-draw .gr { stroke: var(--ink); stroke-width: 1.2; }
.lg-draw .lg { fill: rgba(103, 95, 83, .14); stroke: none; }
.lg-draw .lq { fill: rgba(179, 38, 30, .10); stroke: none; }
.lg-draw .ld { stroke: var(--ink-soft); stroke-width: .9; }
.lg-draw .lda { fill: var(--ink-soft); }
.lg-draw .dm, .lg-draw .ex { fill: none; stroke: var(--ink); stroke-width: .8; }
.lg-draw .ex { stroke: var(--ink-soft); stroke-dasharray: 2 2; }
.lg-draw .sec { fill: #e8d5b5; stroke: var(--ink); stroke-width: 1.2; }
.lg-draw .fib { fill: none; stroke: rgba(120, 85, 40, .35); stroke-width: .8; }
.lg-draw .lb { fill: var(--ink); font-size: 11.5px; }
.lg-draw .halo { stroke: var(--stone); stroke-width: 4px; stroke-linejoin: round; }
.lg-draw .sm { font-size: 10px; fill: var(--ink-soft); }
.lg-draw .sb { font-size: 8.5px; }
.lg-draw .cap { font-size: 10px; letter-spacing: .02em; fill: var(--ink-soft); }
.lg-checks { width: 100%; border-collapse: collapse; margin-top: 4px; font-variant-numeric: tabular-nums; font-size: .9rem; }
.lg-checks th { font-weight: 500; font-size: .75rem; color: var(--ink-soft); text-align: left; padding: 10px 6px 6px; border-bottom: 1px solid var(--ink); }
.lg-checks td { padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.lg-checks .n { text-align: right; white-space: nowrap; }
.lg-checks small { color: var(--ink-soft); font-size: .75em; }
.lg-checks .lg-ratio { display: block; }
.lg-grp td { font: 500 .8rem var(--sans); color: var(--ink-soft); padding-top: 14px; border-bottom-color: var(--ink); }
.lg-use { display: inline-block; width: 56px; height: 5px; background: var(--line); margin-right: 8px; vertical-align: middle; }
.lg-use i { display: block; height: 100%; background: #2f7a3e; }
.lg-checks tr.no .lg-use i { background: #b3261e; }
.lg-st { font-weight: 700; text-align: center; width: 40px; }
.lg-checks tr.ok .lg-st { color: #2f7a3e; }
.lg-checks tr.no .lg-st { color: #fff; background: #b3261e; }
.lg-det { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 10px; }
.lg-det summary { cursor: pointer; font-size: .9rem; }
.lg-det dl { margin: 10px 0 0; font-size: .85rem; }
.lg-det dl div { display: grid; grid-template-columns: 11em 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.lg-det dt { color: var(--ink-soft); }
.lg-det dd { margin: 0; }
/* Pilastri in c.a. */
.pc-check { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; margin-top: 4px; cursor: pointer; }
.pc-check input { margin-top: 3px; accent-color: var(--ink); }
.pc-pres { display: grid; grid-template-columns: 1fr 1fr; border-left: 1px solid var(--line); margin-top: 0; }
.pc-pres div { display: grid; gap: 2px; padding: 12px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pc-pres span { font-size: .75rem; color: var(--ink-soft); }
.pc-pres b { font: 500 1.35rem/1.15 var(--serif); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.pc-pres small { font-size: .78rem; color: var(--ink-soft); }
.pc-draw { border-bottom: 1px solid var(--line); padding: 8px 0 4px; }
.pc-draw svg { display: block; width: 100%; max-width: 640px; margin: 0 auto; height: auto; font: 11px var(--sans); fill: var(--ink-soft); }
.pc-draw .cls { fill: var(--stone-deep); stroke: var(--ink); stroke-width: 1.2; }
.pc-draw .st { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.pc-draw .bar { fill: var(--ink); }
.pc-draw .zc, .pc-draw .conf { fill: rgba(179, 38, 30, .13); }
.pc-draw .conf { stroke: var(--ink); stroke-width: .8; }
.pc-draw .stl { stroke: var(--ink); stroke-width: 1; }
.pc-draw .sl { fill: var(--line); }
.pc-draw .grid { stroke: var(--ink-soft); stroke-width: .7; }
.pc-draw .dm { fill: none; stroke: var(--ink); stroke-width: .8; }
.pc-draw .ex { fill: none; stroke: var(--ink-soft); stroke-width: .8; stroke-dasharray: 2 2; }
.pc-draw .lb { fill: var(--ink); }
.pc-draw .sm { font-size: 9.5px; }
.pc-draw .cap { font-size: 10px; letter-spacing: .02em; }
@media (max-width: 980px) { .lg-grid { grid-template-columns: minmax(0, 1fr); } .lg-out { position: static; } .lg-bar { grid-template-columns: 1fr; } .lg-actions { justify-content: flex-start; } }
@media (max-width: 560px) { .lg-row3 { grid-template-columns: 1fr 1fr; } .lg-row2 { grid-template-columns: 1fr; } .lg-checks .lg-use { display: none; } }
@media print {
  .site-head, .a-head, .site-foot, .adm-bar, .fee-intro, .lg-bar, .lg-inputs { display: none !important; }
  .page-head h1 { font-size: 22pt; margin: 0 0 6px; }
  .lg-grid { display: block; margin: 0; } .lg-out { position: static; }
  .lg-print-head { display: block; font-size: 10pt; line-height: 1.5; margin: 0 0 10px; }
  .lg-verdict { background: none; color: #000; border: 1.5px solid #000; padding: 10px 12px; }
  .lg-det summary { display: none; } .lg-det { border: 0; }
  @page { size: A4; margin: 14mm; }
}
