/* Kartongessi — foglio di stile unico. Colori principali in :root */
:root {
  --ink: #1f2328;
  --ink-2: #4a5059;
  --muted: #6b7280;
  --line: #e4e1da;
  --bg: #ffffff;
  --bg-alt: #f6f4ef;
  --accent: #d97a1e;
  --accent-dark: #b4620f;
  --dark: #1f2328;
  --radius: 10px;
  --wrap: 1140px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code { background: var(--bg-alt); padding: .1em .35em; border-radius: 4px; font-size: .9em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Segnaposto da compilare: evidenziati per trovarli subito */
.todo { background: #fff3c4; color: #7a5a00; outline: 1px dashed #d4a800; border-radius: 3px; padding: 0 .2em; }
.todo-block { background: #fff3c4; color: #7a5a00; border: 1px dashed #d4a800; border-radius: 6px; padding: .8em 1em; }

/* Bottoni */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; background: var(--accent); color: #fff; text-decoration: none; font-weight: 650; padding: .85em 1.4em; border-radius: 8px; border: 2px solid var(--accent); cursor: pointer; font: inherit; font-weight: 650; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-sm { padding: .5em 1em; font-size: .95rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; color: var(--ink); }
.brand-text { font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 550; }
.nav a:not(.btn):hover { color: var(--ink); }
.nav .btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--bg-alt), var(--bg)); padding: 80px 0 90px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--accent-dark); margin-bottom: .8em; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-2); font-size: .95rem; }
.hero-points li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: .45em; }
.hero-visual { position: relative; aspect-ratio: 4/5; max-width: 400px; justify-self: center; width: 100%; }

/* Sezioni */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: #e9eaec; }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: #f0a55a; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p:last-child { color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.card { padding: 22px !important; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: #fff; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card p { color: var(--ink-2); font-size: .97rem; margin: 0; }
.icon { width: 40px; height: 40px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; }
.steps li { position: relative; }
.step-n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; margin-bottom: 14px; }
.steps p { color: var(--ink-2); font-size: .97rem; margin: 0; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery figure { margin: 0; }
.gallery-link { text-decoration: none; color: inherit; }
.gallery-link:hover img { opacity: .9; }
.gallery img { height: auto; }
.gallery img, .ph-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.ph-img { display: grid; place-items: center; background: repeating-linear-gradient(45deg, #efece5 0 12px, #f6f4ef 12px 24px); color: var(--muted); font-size: .9rem; border: 1px dashed #d6d1c6; }
.gallery figcaption { font-size: .92rem; color: var(--ink-2); margin-top: 8px; }

.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: center; }
.about p { color: #c9ccd1; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.facts li { display: flex; align-items: baseline; gap: 16px; padding: 18px 22px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); }
.facts strong { font-size: 2rem; color: #fff; min-width: 2.6em; }
.facts span { color: #c9ccd1; }

.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list li > span:first-child { width: 90px; color: var(--muted); font-size: .92rem; flex-shrink: 0; }
.contact-list a { color: var(--ink); font-weight: 600; text-decoration: none; }

.form { background: var(--bg-alt); border-radius: 14px; padding: 30px; display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .93rem; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: .7em .85em; border: 1px solid #d6d1c6; border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .88rem; color: var(--ink-2); }
.form .check input { width: auto; margin-top: .3em; }
.form .btn { justify-self: start; }
.hp { position: absolute !important; left: -9999px; }
.form-status:empty { display: none; }
.form-status { padding: .8em 1em; border-radius: 8px; font-weight: 600; }
.form-status.ok { background: #e3f4e6; color: #1f6b30; }
.form-status.err { background: #fbe4e2; color: #9b2c22; }

.site-footer { background: #15181c; color: #a9adb3; padding: 44px 0 30px; font-size: .93rem; }
.site-footer strong { color: #fff; }
.site-footer a { color: #d7d9dc; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 20px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: #d7d9dc; text-decoration: none; }
.copy { grid-column: 1 / -1; margin: 16px 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }
.site-footer .todo { color: #7a5a00; }

.fab { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.25); z-index: 40; }
.fab svg { width: 30px; height: 30px; fill: #fff; }

/* Pagine interne (privacy) */
.page { padding: 60px 0 90px; }
.page .wrap { max-width: 780px; }
.page h2 { font-size: 1.35rem; margin-top: 1.6em; }

/* Responsive */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards .card:last-child:nth-child(odd) { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about, .contact { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 20px; display: none; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { padding: 50px 0 60px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 300px; margin-top: 10px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .cards, .steps, .gallery, .form .row { grid-template-columns: 1fr; }
  .cards .card:last-child:nth-child(odd) { grid-column: auto; }
  .form { padding: 20px; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---- Pagina Lavori ---- */
.page-hero { background: linear-gradient(180deg, var(--bg-alt), var(--bg)); padding: 64px 0 24px; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.section-tight { padding-top: 30px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.chip { font: inherit; font-size: .93rem; font-weight: 600; padding: .5em 1.1em; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; }
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; font: inherit; text-align: left; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; cursor: pointer; color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s; }
.project:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(31,35,40,.4); }
.project:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.project-img { position: relative; aspect-ratio: 4/3; background: var(--bg-alt); }
.project-img img { width: 100%; height: 100%; object-fit: cover; }
.project-count { position: absolute; right: 10px; bottom: 10px; background: rgba(31,35,40,.82); color: #fff; font-size: .8rem; font-weight: 600; padding: .25em .7em; border-radius: 999px; }
.project-body { padding: 16px 18px 20px; }
.project-body h3 { margin: .25em 0 .2em; }
.project-cat { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-dark); }
.project-meta { color: var(--muted); font-size: .9rem; margin: 0; }
.project-desc { color: var(--ink-2); font-size: .93rem; margin: .5em 0 0; }
.projects-empty { text-align: center; max-width: 560px; margin: 0 auto; padding: 20px 0 40px; }
.projects-empty p { color: var(--ink-2); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-inner p { color: #c9ccd1; margin: 0; }
.cta-band { padding: 60px 0; }
.btn-ghost-light { color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.nav a[aria-current="page"] { color: var(--ink); }
.section-more { margin-top: 32px; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15,17,20,.94); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox[hidden] { display: none; }
.lb-stage { margin: 0; display: grid; justify-items: center; gap: 12px; max-height: 100vh; padding: 56px 0 20px; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 4px; }
.lb-stage figcaption { color: #d7d9dc; text-align: center; font-size: .95rem; display: flex; gap: 6px 14px; flex-wrap: wrap; justify-content: center; }
.lb-stage figcaption strong { color: #fff; }
.lb-meta, .lb-count { color: #a9adb3; }
.lightbox button { background: none; border: 0; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; width: 64px; height: 64px; opacity: .8; }
.lightbox button:hover { opacity: 1; }
.lightbox button[hidden] { visibility: hidden; display: block; }
.lb-close { position: absolute; top: 6px; right: 6px; font-size: 2.2rem !important; }

@media (max-width: 980px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .projects { grid-template-columns: 1fr; }
  .lightbox { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { position: absolute; bottom: 10px; }
  .lb-prev { left: 10px; } .lb-next { right: 10px; }
  .lb-stage { padding: 56px 8px 80px; }
}

/* Modulo: altri professionisti */
.form .extra { border: 0; margin: 0; padding: 0; min-width: 0; }
.form .extra legend { font-weight: 600; font-size: .93rem; padding: 0; margin-bottom: 4px; }
.form .extra legend span { font-weight: 400; color: var(--muted); }
.extra-hint { font-size: .86rem; color: var(--muted); margin: 0 0 10px; }
.extra-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.form .check-pill { display: inline-flex; align-items: center; gap: 0; font-weight: 500; cursor: pointer; }
.check-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-pill span { padding: .5em 1em; border: 1px solid #d6d1c6; border-radius: 999px; background: #fff; font-size: .92rem; transition: background .15s, border-color .15s, color .15s; }
.check-pill span::before { content: "+ "; color: var(--accent-dark); font-weight: 700; }
.check-pill:hover span { border-color: var(--accent); }
.check-pill input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.check-pill input:checked + span::before { content: "✓ "; color: #f0a55a; }
.check-pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.req { color: var(--accent-dark); text-decoration: none; font-weight: 700; cursor: help; }
.form-note { margin: 0; font-size: .85rem; color: var(--muted); }

/* Modulo: allegati */
.upload { display: grid; gap: 8px; }
.upload-label { font-weight: 600; font-size: .93rem; }
.upload-label span { font-weight: 400; color: var(--muted); }
.form .dropzone { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 2px dashed #d6d1c6; border-radius: 10px; background: #fff; cursor: pointer; font-weight: 400; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: #fffaf3; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone svg { flex-shrink: 0; width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dz-text { font-size: .92rem; color: var(--ink-2); line-height: 1.45; }
.dz-text strong { color: var(--ink); }
.dz-text small { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.dropzone:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.file-list:empty { display: none; }
.file-list li { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px 6px 6px; font-size: .88rem; }
.file-thumb { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; background: var(--bg-alt); display: grid; place-items: center; font-size: .7rem; font-weight: 700; color: #9b2c22; flex-shrink: 0; }
.file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.file-remove { background: none; border: 0; font-size: 1.3rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.file-remove:hover { color: #9b2c22; background: #fbe4e2; }

/* ---- Pagine servizio ---- */
.svc-hero { background: linear-gradient(180deg, var(--bg-alt), var(--bg)); padding: 40px 0 70px; }
.svc-hero-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: center; }
.svc-hero h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
.svc-hero-img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 24px 50px -28px rgba(31,35,40,.45); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent-dark); }
.sol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sol { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; border-top: 4px solid var(--accent); }
.sol p { color: var(--ink-2); font-size: .97rem; margin: 0; }
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.why > div p:last-child { color: var(--ink-2); }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.why-list li { background: #fff; border-radius: var(--radius); padding: 16px 20px 16px 52px; position: relative; display: grid; gap: 2px; }
.why-list li::before { content: "✓"; position: absolute; left: 18px; top: 15px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .8rem; font-weight: 800; display: grid; place-items: center; }
.why-list span { color: var(--ink-2); font-size: .93rem; }
.faq-wrap { max-width: 860px; }
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 650; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--accent-dark); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 20px 20px; color: var(--ink-2); }
.other-title { font-size: 1.3rem; }
.other-svc { display: flex; flex-wrap: wrap; gap: 10px; }
.other-svc a { padding: .6em 1.1em; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 550; font-size: .95rem; }
.other-svc a:hover { border-color: var(--accent); color: var(--accent-dark); }
@media (max-width: 980px) { .sol-grid { grid-template-columns: repeat(2, 1fr); } .why { grid-template-columns: 1fr; gap: 30px; } }
@media (max-width: 820px) { .svc-hero-inner { grid-template-columns: 1fr; } .svc-hero-img { max-width: 520px; } }
@media (max-width: 560px) { .sol-grid { grid-template-columns: 1fr; } }

/* ---- Menu Servizi a tendina ---- */
.has-sub { position: relative; }
.has-sub .sub-trigger::after { content: ""; display: inline-block; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-left: 8px; position: relative; top: -3px; }
.sub { position: absolute; top: 100%; left: -16px; min-width: 270px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 40px -20px rgba(31,35,40,.35); padding: 8px; display: none; z-index: 60; }
.sub a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .95rem; }
.sub a:hover, .sub a[aria-current="page"] { background: var(--bg-alt); color: var(--ink); }
.has-sub::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.card-links { margin: 14px 0 0 !important; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.card-links a { font-weight: 650; font-size: .92rem; text-decoration: none; color: var(--accent-dark); }
.card-links a:hover { text-decoration: underline; }
.card { display: flex; flex-direction: column; }
.card > p:not(.card-links) { flex: 1; }
.cards-more { margin: 26px 0 0; color: var(--ink-2); }
.cards-more a { font-weight: 650; color: var(--accent-dark); text-decoration: none; }
.footer-svc { grid-column: 1 / -1; margin: 6px 0 0; font-size: .88rem; line-height: 1.9; }
.footer-svc span { color: #fff; font-weight: 600; margin-right: 4px; }
.footer-svc a { color: #c9ccd1; text-decoration: none; }
.footer-svc a:hover { color: #fff; }
@media (max-width: 820px) {
  .has-sub { display: flex; flex-direction: column; }
  .has-sub .sub-trigger { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .has-sub .sub-trigger::after { display: none; }
  .has-sub::before { display: none; }
  .sub { position: static; display: block; border: 0; box-shadow: none; padding: 4px 0 8px 14px; min-width: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .sub a { padding: 8px 0; font-size: .92rem; border-bottom: 0; }
  .nav .sub a[aria-current="page"] { background: none; color: var(--accent-dark); }
}

.contact-svc { display: inline-block; margin: -4px 0 14px; padding: .3em .9em; border-radius: 999px; background: var(--bg-alt); color: var(--accent-dark); font-weight: 650; font-size: .9rem; }

.form select:invalid { color: var(--muted); }
.form select option { color: var(--ink); }

/* ---- Animazione parete in cartongesso (home) ---- */
.hero-visual { cursor: pointer; }
.wall-anim { width: 100%; height: auto; display: block; filter: drop-shadow(0 24px 30px rgba(31,35,40,.12)); }
.wall-anim * { transform-box: fill-box; }
.js-wall .wall-anim:not(.play) * { animation-play-state: paused !important; }
.w-dim { animation: wFade .5s ease both; }
.w-track { transform-origin: left center; animation: wGrowX .6s .25s cubic-bezier(.2,.8,.2,1) both; }
.w-track2 { animation-delay: .4s; }
.w-stud { animation: wDrop .55s var(--d) cubic-bezier(.3,1.4,.5,1) both; }
.w-ins { transform-origin: center bottom; animation: wGrowY .5s var(--d) ease-out both; }
.w-board { animation: wSlide .6s var(--d) cubic-bezier(.2,.8,.2,1) both; }
.w-screw { transform-origin: center; animation: wPop .25s var(--d) ease-out both; }
.w-tape { transform-origin: center top; animation: wGrowY .55s 4.25s ease-in-out both; }
.w-finish { animation: wFade .7s 4.9s ease both; }
.w-led, .w-glow { animation: wFade .5s 5.4s both, wGlow 3s 6s ease-in-out infinite; }
.w-step { opacity: 0; animation: wStep var(--t) var(--d) both; }
.w-step-last { animation: wFade .4s var(--d) both; }
@keyframes wFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wGrowX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes wGrowY { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes wDrop { from { transform: translateY(-460px); opacity: 0; } 30% { opacity: 1; } to { transform: translateY(0); opacity: 1; } }
@keyframes wSlide { from { transform: translateX(260px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes wPop { from { transform: scale(0); } 70% { transform: scale(1.6); } to { transform: scale(1); } }
@keyframes wGlow { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes wStep { 0% { opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }

/* ---- Comparsa morbida delle sezioni allo scorrimento ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: var(--rd, 0s); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .wall-anim *, .w-step { animation: none !important; }
  .w-step { opacity: 0; } .w-step-last { opacity: 1; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Animazioni delle pagine servizio ---- */
.anim { width: 100%; height: auto; display: block; }
.anim * { transform-box: fill-box; }
.js-wall .anim:not(.play) * { animation-play-state: paused !important; }
.a-fade { animation: aFade var(--t, .5s) var(--d, 0s) ease both; }
.a-out { opacity: 0; animation: aOut var(--t, .5s) var(--d, 0s) ease both; }
.a-drop { animation: aDrop var(--t, .55s) var(--d, 0s) cubic-bezier(.3,1.3,.5,1) both; }
.a-slide-r { animation: aSlideR var(--t, .6s) var(--d, 0s) cubic-bezier(.2,.8,.2,1) both; }
.a-slide-l { animation: aSlideL var(--t, .6s) var(--d, 0s) cubic-bezier(.2,.8,.2,1) both; }
.a-slide-u { animation: aSlideU var(--t, .6s) var(--d, 0s) cubic-bezier(.2,.8,.2,1) both; }
.a-grow-x { transform-origin: left center; animation: wGrowX var(--t, .5s) var(--d, 0s) cubic-bezier(.2,.8,.2,1) both; }
.a-grow-y { transform-origin: center bottom; animation: wGrowY var(--t, .5s) var(--d, 0s) ease-out both; }
.a-grow-yt { transform-origin: center top; animation: wGrowY var(--t, .5s) var(--d, 0s) ease-out both; }
.a-pop { transform-origin: center; animation: wPop var(--t, .25s) var(--d, 0s) ease-out both; }
.a-glow { animation: aFade .5s var(--d, 0s) both, wGlow 3s calc(var(--d, 0s) + .6s) ease-in-out infinite; }
.a-dust { opacity: 0; transform-origin: center; animation: aDust var(--t, .9s) var(--d, 0s) ease-out both; }
@keyframes aDust { 0% { opacity: 0; transform: scale(0); } 30% { opacity: 1; transform: scale(1.3) translateY(-4px); } 100% { opacity: 0; transform: scale(1.8) translateY(-14px); } }
.a-move-x { transform: translateX(var(--dx)); animation: aMoveX var(--t, 1s) var(--d, 0s) ease-in-out both; }
.a-move-x.a-hide-end { opacity: 0; animation: aMoveX var(--t, 1s) var(--d, 0s) ease-in-out both, aOut .3s calc(var(--d, 0s) + var(--t, 1s)) forwards; }
@keyframes aFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes aOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes aDrop { from { transform: translateY(-320px); opacity: 0; } 30% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes aSlideR { from { transform: translateX(300px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes aSlideL { from { transform: translateX(-300px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes aSlideU { from { transform: translateY(120px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes aMoveX { 0% { transform: translateX(0); opacity: 0; } 5% { opacity: 1; } 100% { transform: translateX(var(--dx)); opacity: 1; } }
.svc-hero-anim { border-radius: 14px; overflow: hidden; box-shadow: 0 24px 50px -28px rgba(31,35,40,.45); cursor: pointer; background: #f3f0ea; }
@media (max-width: 820px) { .svc-hero-anim { max-width: 520px; } }
@media (prefers-reduced-motion: reduce) { .anim * { animation: none !important; } }
