/* Pagine interne: zone, schede servizio, privacy — stile del design "ZonaGeometra" */
html { scroll-behavior: smooth; }
body { margin: 0; background: #F2F5F7; }
a { color: #0A2540; text-decoration: none; }
a:hover { color: #2AB7CA; }
summary::-webkit-details-marker { display: none; }
details .faq-ico { transition: transform .25s; }
details[open] .faq-ico { transform: rotate(45deg); }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; background: #F2F5F7; font-family: Inter, sans-serif; color: #0A2540; }
.px { padding-left: clamp(20px, 3.4vw, 48px); padding-right: clamp(20px, 3.4vw, 48px); }

.top { background: #F2F5F7; border-bottom: 1px solid #D9E3EA; position: sticky; top: 0; z-index: 50; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px clamp(20px, 3.4vw, 48px); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand img { width: 44px; height: 44px; object-fit: contain; display: block; }
.brand > span { display: flex; flex-direction: column; gap: 3px; }
.brand-n { font-family: Outfit, sans-serif; font-weight: 700; font-size: 18px; letter-spacing: .1em; line-height: 1; color: #0A2540; }
.brand-s { font-family: Outfit, sans-serif; font-weight: 600; font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: #2AB7CA; }
.top-nav { display: flex; align-items: center; gap: 6px; font-family: Outfit, sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; flex-wrap: wrap; }
.top-cta { background: #2AB7CA; color: #0A2540; padding: 11px 20px; border-radius: 999px; }
.tabs { display: flex; gap: 6px; padding: 0 clamp(20px, 3.4vw, 48px) 12px; overflow-x: auto; font-size: 12.5px; }
.tabs a { white-space: nowrap; padding: 7px 14px; border: 1px solid #D9E3EA; font-weight: 600; }
.tabs a[aria-current] { background: #0A2540; color: #F2F5F7; border-color: #0A2540; }

.crumbs { font-size: 13px; color: #6B8093; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: #6B8093; }
.crumbs .cur { color: #0A2540; font-weight: 600; }

.hero { padding: clamp(28px, 4vw, 56px) clamp(20px, 3.4vw, 48px) clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: clamp(28px, 4vw, 64px); align-items: center; }
.eyebrow { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #1F8FA0; font-weight: 600; }
.h1 { margin: 18px 0 0; font-family: Outfit, sans-serif; font-weight: 700; font-size: clamp(32px, 4vw, 54px); line-height: 1.02; text-transform: uppercase; text-wrap: balance; }
.lead { margin: 22px 0 0; font-size: clamp(15.5px, 1.25vw, 17.5px); line-height: 1.7; color: #4A5F72; max-width: 56ch; }
.btns { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.b1, .b2 { padding: 17px 28px; font-family: Outfit, sans-serif; font-weight: 700; font-size: 13.5px; letter-spacing: .1em; text-transform: uppercase; border-radius: 999px; }
.b1 { background: #2AB7CA; color: #0A2540; }
.b1:hover { background: #7FE3EE; color: #0A2540; }
.b2 { border: 1.5px solid #0A2540; color: #0A2540; padding: 16px 28px; }
.b2:hover { background: #0A2540; color: #F2F5F7; }

.h2 { margin: 0; font-family: Outfit, sans-serif; font-weight: 700; font-size: clamp(24px, 2.6vw, 34px); text-transform: uppercase; }
.sec { padding: clamp(40px, 5vw, 80px) clamp(20px, 3.4vw, 48px); }
.sec-dark { background: #0A2540; color: #F2F5F7; }
.sec-grey { background: #E3EAEF; }
.prose p { margin: 0 0 16px; font-size: 16px; line-height: 1.75; color: #4A5F72; max-width: 70ch; }
.prose p:last-child { margin-bottom: 0; }

.facts { background: #0A2540; color: #F2F5F7; border-radius: 18px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 4px; }
.facts h2 { margin: 0 0 10px; font-family: Outfit, sans-serif; font-weight: 700; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: #7FE3EE; }
.facts dl { margin: 0; }
.facts div { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.facts dt { font-size: 13.5px; color: #A8BFD1; }
.facts dd { margin: 0; font-weight: 600; font-size: 14.5px; color: #fff; }
.facts dd a { color: #fff; }
.facts dd a:hover { color: #7FE3EE; }

.docs { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 10px; }
.docs li { background: #fff; border-left: 4px solid #2AB7CA; padding: 18px 22px; font-size: 15px; line-height: 1.55; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 26px; }
.step { background: #fff; border-top: 3px solid #0A2540; padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; }
.step b { font-family: Outfit, sans-serif; font-size: 12px; color: #2AB7CA; }
.step h3 { margin: 0; font-family: Outfit, sans-serif; font-weight: 700; font-size: 16px; text-transform: uppercase; }
.step p { margin: 0; font-size: 14px; line-height: 1.6; color: #4A5F72; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 16px; margin-top: 26px; }
.card { background: #fff; border-top: 3px solid #0A2540; padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; color: #0A2540; }
.card h3 { margin: 0; font-family: Outfit, sans-serif; font-weight: 700; font-size: 17px; text-transform: uppercase; }
.card p { margin: 0; font-size: 14px; line-height: 1.6; color: #4A5F72; }
.card .more { margin-top: auto; font-family: Outfit, sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #2AB7CA; }

.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: clamp(28px, 4vw, 64px); align-items: start; }
.faq-list { display: flex; flex-direction: column; border-top: 2px solid #0A2540; }
.faq-list details { border-bottom: 1px solid #D9E3EA; }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 0; font-family: Outfit, sans-serif; font-weight: 700; font-size: 16px; text-transform: uppercase; }
.faq-ico { flex-shrink: 0; width: 30px; height: 28px; background: #2AB7CA; display: flex; align-items: center; justify-content: center; border-radius: 999px; }
.faq-list .ans { padding: 0 0 20px; font-size: 15px; line-height: 1.7; color: #4A5F72; max-width: 62ch; }

.cta { background: #0A2540; color: #F2F5F7; padding: clamp(28px, 4vw, 52px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta h2 { margin: 0; font-family: Outfit, sans-serif; font-weight: 700; font-size: clamp(22px, 2.4vw, 32px); text-transform: uppercase; }
.cta p { margin: 12px 0 0; font-size: 15.5px; line-height: 1.6; color: #A8BFD1; max-width: 56ch; }
.cta .b1 { padding: 18px 30px; font-size: 14px; }

.updated { font-size: 13px; color: #6B8093; margin-top: 18px; }

.legal { max-width: 820px; }
.legal h2 { margin: 34px 0 10px; font-family: Outfit, sans-serif; font-weight: 700; font-size: 18px; text-transform: uppercase; }
.legal p, .legal li { font-size: 15.5px; line-height: 1.75; color: #4A5F72; }
.legal a { color: #0B4E8A; text-decoration: underline; }

.foot { background: #0A2540; border-top: 3px solid #2AB7CA; padding: 28px clamp(20px, 3.4vw, 48px); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: #7E97AC; }
.foot a { color: inherit; }
.foot a:hover { color: #2AB7CA; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot .foot-home { color: #F2F5F7; }

/* Portfolio progetti */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.chips a { border: 1px solid #D9E3EA; background: #fff; border-radius: 999px; padding: 9px 16px; font-size: 13.5px; font-weight: 600; }
.chips a span { color: #7E97AC; font-weight: 500; margin-left: 4px; }
.chips a[aria-current] { background: #0A2540; color: #F2F5F7; border-color: #0A2540; }
.chips a[aria-current] span { color: #A8BFD1; }
.pj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 22px; }
.pj { display: flex; flex-direction: column; background: #fff; color: #0A2540; border-radius: 18px; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.pj:hover { color: #0A2540; transform: translateY(-4px); box-shadow: 0 16px 34px rgba(10,37,64,.12); }
.pj-img { position: relative; aspect-ratio: 4/3; background: #E3EAEF; overflow: hidden; display: block; }
.pj-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.pj:hover .pj-img img { transform: scale(1.04); }
.pj-stato { position: absolute; left: 14px; top: 14px; background: #2AB7CA; color: #0A2540; border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700; }
.pj-body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 6px; }
.pj-cat { font-family: Outfit, sans-serif; font-weight: 700; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: #1F8FA0; }
.pj-t { font-family: Outfit, sans-serif; font-weight: 700; font-size: 19px; line-height: 1.2; }
.pj-meta { font-size: 13.5px; color: #6B8093; }
.pj-split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (max-width: 860px) { .pj-split { grid-template-columns: minmax(0, 1fr); } }
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; margin-top: 24px; }
.gal figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.gal-a { display: block; position: relative; aspect-ratio: 4/3; background: #E3EAEF; border-radius: 14px; overflow: hidden; cursor: zoom-in; }
.gal-a img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.gal-a:hover img { transform: scale(1.03); }
.gal figcaption { font-size: 13.5px; line-height: 1.5; color: #4A5F72; }
.tl { list-style: none; margin: 26px 0 0; padding: 0 0 0 22px; border-left: 2px solid #2AB7CA; display: flex; flex-direction: column; gap: 22px; max-width: 760px; }
.tl li { position: relative; }
.tl li::before { content: ''; position: absolute; left: -29px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #0A2540; border: 2px solid #E3EAEF; }
.tl time { font-size: 13px; font-weight: 600; color: #1F8FA0; }
.tl h3 { margin: 4px 0 0; font-family: Outfit, sans-serif; font-weight: 700; font-size: 17px; }
.tl p { margin: 6px 0 0; font-size: 15px; line-height: 1.65; color: #4A5F72; }
.lb { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lb::backdrop { background: rgba(7,24,43,.92); }
.lb[open] { display: flex; align-items: center; justify-content: center; }
.lb figure { margin: 0; max-width: 92vw; max-height: 88vh; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lb img { max-width: 92vw; max-height: 80vh; object-fit: contain; border-radius: 8px; }
.lb figcaption { color: #CFE1EE; font-size: 14px; text-align: center; }
.lb button { position: fixed; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; }
.lb button:hover { background: rgba(255,255,255,.24); }
.lb-x { top: 18px; right: 18px; }
.lb-p { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-n { right: 18px; top: 50%; transform: translateY(-50%); }

/* Selettore di lingua */
.lang-sw { display: inline-flex; gap: 2px; align-items: center; margin-left: 6px; font-family: Outfit, sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.lang-sw a, .lang-sw b { padding: 7px 8px; border-radius: 999px; line-height: 1; }
.lang-sw b { background: #E3EAEF; color: #0A2540; }

/* Lingue straniere: sillabazione automatica per le parole lunghe (tedesco, olandese) */
html:not([lang="it"]) body { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
.lb video { max-width: 92vw; max-height: 80vh; border-radius: 8px; background: #000; }
.gal-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(10,37,64,.72); box-shadow: 0 6px 20px rgba(0,0,0,.25); transition: transform .25s, background .25s; }
.gal-play::after { content: ''; position: absolute; left: 26px; top: 20px; border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent #fff; }
.gal-v { cursor: pointer; }
.gal-v:hover .gal-play { transform: scale(1.08); background: #1F8FA0; }
.tl-media { display: block; margin-top: 12px; width: 100%; max-width: 560px; aspect-ratio: 4/3; border-radius: 12px; background: #0A2540; object-fit: cover; }
video.tl-media { aspect-ratio: 16/9; object-fit: contain; }

/* Lavora con noi: modulo candidatura */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.cand { background: #fff; border-top: 4px solid #2AB7CA; padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px; }
.cand-t { margin: 0 0 4px; font-family: Outfit, sans-serif; font-weight: 700; font-size: 20px; text-transform: uppercase; }
.cand-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 14px; }
.cand-f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: #0A2540; }
.cand-in { font: inherit; font-weight: 400; font-size: 15px; color: #0A2540; border: 1px solid #D9E3EA; border-radius: 0; padding: 13px 14px; background: #fff; width: 100%; box-sizing: border-box; outline: none; }
.cand-in:focus { border-color: #2AB7CA; }
textarea.cand-in { resize: vertical; min-height: 96px; }
.cand-file { padding: 10px; background: #F2F5F7; cursor: pointer; }
.cand-req { color: #B4382A; }
.cand-note { margin: 0; font-size: 12.5px; line-height: 1.55; color: #6B8093; }
.cand-cks { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid #E3EAEF; padding-top: 14px; }
.cand-ck { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 13.5px; line-height: 1.55; color: #4A5F72; cursor: pointer; }
.cand-ck input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: #0B4E8A; cursor: pointer; }
.cand-ck a { color: #0B4E8A; text-decoration: underline; }
.cand-ck em { font-style: normal; color: #7E97AC; }
.cand-btn { border: 0; cursor: pointer; text-align: center; margin-top: 4px; }
.cand-btn:disabled { opacity: .6; cursor: wait; }
.cand-msg { margin: 0; font-size: 14px; line-height: 1.5; font-weight: 600; }
.cand-msg:empty { display: none; }
.cand-help { font-size: 12px; font-weight: 400; color: #6B8093; line-height: 1.45; }
.cand-set { border: 0; margin: 0; padding: 0; min-width: 0; }
.cand-set legend { padding: 0; margin-bottom: 6px; }
.cand-opts { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.cand-opts-row { flex-direction: row; flex-wrap: wrap; }
.cand-opt { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 400; color: #0A2540; border: 1px solid #D9E3EA; padding: 10px 12px; cursor: pointer; }
.cand-opts-row .cand-opt { min-width: 52px; justify-content: center; }
.cand-opt input { width: 17px; height: 17px; margin: 0; accent-color: #0B4E8A; }
.cand-opt:has(input:checked) { border-color: #0B4E8A; background: #EEF5FB; }

/* Testi a scomparsa: il + apre la descrizione, così le pagine restano corte */
.more-d { margin-top: 10px; }
.more-d > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: #0B4E8A; }
.more-d > summary::-webkit-details-marker { display: none; }
.more-ico { width: 24px; height: 24px; flex: none; border-radius: 50%; background: #2AB7CA; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1; transition: transform .25s; }
details[open] > summary .more-ico { transform: rotate(45deg); }
.more-c, details[open] > summary .more-o { display: none; }
details[open] > summary .more-c { display: inline; }
.more-b { margin-top: 10px; font-size: 14.5px; line-height: 1.65; color: #4A5F72; }
.more-b p { margin: 0 0 8px; white-space: pre-line; }
.more-b p:last-child { margin-bottom: 0; }

/* Barra in basso su telefono: WhatsApp in primo piano, Chiama ora con scelta fisso / cellulare */
.m-bar { position: sticky; bottom: 0; z-index: 20; box-sizing: border-box; background: #fff; border-top: 1px solid #E3EAEF; display: grid; grid-template-columns: 1.55fr 1fr; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); align-items: stretch; }
.m-bar-wa { display: flex; align-items: center; justify-content: center; gap: 8px; background: #25D366; color: #0A2540; border-radius: 12px; padding: 14px 8px; font-size: 14.5px; font-weight: 700; white-space: nowrap; }
.m-bar-wa:hover { color: #0A2540; }
.m-bar-call { position: relative; display: flex; }
.m-bar-call > summary { list-style: none; cursor: pointer; flex: 1; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 1.5px solid #0B4E8A; color: #0B4E8A; border-radius: 12px; padding: 13px 6px; font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.m-bar-call > summary::-webkit-details-marker { display: none; }
.m-bar-menu { position: absolute; right: 0; bottom: calc(100% + 18px); min-width: 230px; background: #fff; border-radius: 14px; box-shadow: 0 14px 34px rgba(10,37,64,.28); padding: 6px; display: flex; flex-direction: column; }
.m-bar-menu a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 12px; color: #0B4E8A; font-size: 14px; }
.m-bar-menu a + a { border-top: 1px solid #E3EAEF; }
.m-bar-menu b { font-size: 15.5px; color: #0A2540; }

@media (min-width: 960px) { .m-bar { display: none; } }

/* Pagina della persona: testo e foto affiancati, su telefono la foto sta sopra */
.hero-p { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); }
.hero-p-foto { position: relative; aspect-ratio: 4/5; background: #DCE5EC; border-radius: 18px; overflow: hidden; }
@media (max-width: 860px) {
  .hero-p { grid-template-columns: minmax(0, 1fr); }
  .hero-p-foto { order: -1; width: 100%; max-width: 220px; }
}

/* Sezioni a scomparsa delle schede */
.accs { padding-top: clamp(24px, 3vw, 44px); padding-bottom: clamp(24px, 3vw, 44px); }
.acc { border-bottom: 1px solid #D9E3EA; }
.acc:first-child { border-top: 2px solid #0A2540; }
.acc > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 0; }
.acc > summary .h2 { font-size: clamp(17px, 1.7vw, 21px); }
.acc-b { padding: 0 0 26px; }
.acc-b .docs, .acc-b .steps { margin-top: 16px; }
.card-d { align-self: start; }
.card-d > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.card-d p { margin-top: 10px; }
