html { scroll-behavior: smooth; }
body { margin: 0; background: #F2F5F7; }
a { color: #0B4E8A; text-decoration: none; }
a:hover { color: #2AB7CA; }
[id] { scroll-margin-top: 16px; }

/* Desktop ≥ 960px, mobile sotto */
.m { display: none; }
@media (max-width: 959px) {
  .d { display: none; }
  .m { display: block; }
}
@media (max-width: 1180px) {
  .d .topbar-addr { display: none !important; }
}

/* Segnaposto per le foto non ancora caricate */
.ph { position: absolute; inset: 0; background: #DCE5EC; }
.img-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* Hover */
.nav-link { transition: color .2s; }
/* Barra in alto nell'hero: tutte le sezioni. Sotto 1500px il menu passa su una riga propria sotto logo e pulsante */
.hero-bar { position: relative; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 16px; padding: 26px 30px 0; }
.hero-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.28); border-radius: 26px; padding: 7px 10px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero-nav a { color: #fff; font-size: 14px; font-weight: 500; padding: 8px 12px; white-space: nowrap; }
.hero-nav i { width: 1px; height: 18px; background: rgba(255,255,255,.34); }
@media (max-width: 1499px) { .hero-nav { order: 3; flex-basis: 100%; } }
@media (max-width: 1180px) { .hero-nav a { font-size: 13px; padding: 8px 8px; } }
.nav-link:hover { color: #7FE3EE !important; }
.btn-pill { transition: transform .2s, box-shadow .2s; }
.btn-pill:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(10,37,64,.22); }
.srv-card:hover { border-top-color: #2AB7CA !important; transform: translateY(-4px); box-shadow: 0 14px 30px rgba(10,37,64,.10); }
.lnk-light:hover { color: #2AB7CA !important; }
.btn-submit { transition: background .2s; }
.btn-submit:hover { background: #1F8FA0 !important; }
.btn-collab:hover { background: #2AB7CA !important; color: #fff !important; }
.btn-google:hover { background: #0B4E8A !important; color: #fff !important; }
.zone-card:hover { background: #0B4E8A !important; color: #fff !important; }

/* FAQ */
details > summary::-webkit-details-marker { display: none; }
details .faq-ico { transition: transform .25s; }
details[open] .faq-ico { transform: rotate(45deg); }

/* Modulo */
.f-in { font: inherit; font-size: 14px; color: #0A2540; border: 1px solid #D9E3EA; border-radius: 0; padding: 14px; background: #fff; width: 100%; box-sizing: border-box; outline: none; -webkit-appearance: none; appearance: none; }
.f-in::placeholder { color: #9BAFBF; opacity: 1; }
.f-in:focus { border-color: #2AB7CA; }
select.f-in { cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, #9BAFBF 50%), linear-gradient(135deg, #9BAFBF 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
select.f-in:invalid { color: #9BAFBF; }
textarea.f-in { resize: vertical; }
.btn-submit { border: 0; cursor: pointer; font-family: inherit; }
.btn-submit[disabled] { opacity: .6; cursor: default; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Menu mobile */
.m-menu { display: none; }
.m-menu.open { display: flex; }

/* Portfolio progetti (card condivise con le pagine interne) */
.pj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 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; }

/* Card progetti più basse su telefono, per scorrere meno */
@media (max-width: 959px) { .pj-img { aspect-ratio: 16/9; } }

/* Testi svuotati dal pannello: niente spazi rimasti */
p:empty, h1:empty, h2:empty, h3:empty { display: none; }

/* Selettore di lingua */
.lang-sw { display: inline-flex; gap: 2px; align-items: center; font-size: 12px; font-weight: 600; letter-spacing: .06em; }
.lang-sw a, .lang-sw b { padding: 4px 7px; border-radius: 999px; line-height: 1; }
.lang-sw--dark a { color: #B9CEDF; } .lang-sw--dark a:hover { color: #fff; }
.lang-sw--dark b { background: rgba(255,255,255,.14); color: #fff; }
.lang-sw--menu { padding: 14px 0 8px; font-size: 13px; gap: 6px; }
.lang-sw--menu a { color: #0B4E8A; border: 1px solid #D9E3EA; padding: 7px 11px; }
.lang-sw--menu b { background: #0B4E8A; color: #fff; padding: 8px 12px; }
.estero-band { transition: background .25s, transform .25s; }
.estero-band:hover { background: #0B4E8A !important; color: #fff !important; transform: translateY(-2px); }

/* Lingue straniere: sillabazione automatica per le parole lunghe (tedesco, olandese) */
html:not([lang="it"]) body { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }

/* Barra compatta che compare scorrendo (il logo torna in cima) */
.sbar { position: fixed; top: 0; left: 0; right: 0; z-index: 900; padding: 10px clamp(10px, 1.6vw, 22px) 0; transform: translateY(-120%); transition: transform .3s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.sbar.on { transform: none; }
.sbar-in { pointer-events: auto; max-width: 1396px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: rgba(10,37,64,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 7px 10px; box-shadow: 0 12px 30px rgba(10,37,64,.25); font-family: Inter, sans-serif; }
.sbar-brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.sbar-brand:hover { color: #fff; }
.sbar-logo { width: 34px; height: 34px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
.sbar-logo img { width: 26px; height: 26px; object-fit: contain; display: block; }
.sbar-n { display: block; font-family: Outfit, sans-serif; font-weight: 600; font-size: 14px; letter-spacing: .14em; line-height: 1.1; }
.sbar-s { display: block; font-size: 7.5px; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.sbar-nav { display: flex; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.sbar-nav a { color: #DCE8F1; font-size: 13.5px; font-weight: 500; padding: 9px 10px; border-radius: 999px; white-space: nowrap; transition: background .2s, color .2s; }
.sbar-nav a:hover { color: #fff; background: rgba(255,255,255,.12); }
@media (max-width: 959px) {
  .sbar { padding: 8px 10px 0; }
  .sbar-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) { .sbar { transition: none; } }
.lavora-band { transition: border-color .25s, transform .25s, box-shadow .25s; }
.lavora-band:hover { border-color: #2AB7CA !important; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(10,37,64,.08); }
.btn-wa { transition: background .2s, transform .2s; }
.btn-wa:hover { background: #3EE07B !important; transform: translateY(-1px); }

/* 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; }

/* Conferma privacy nel modulo */
.f-ck { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 12.5px; line-height: 1.5; color: #4A5F72; cursor: pointer; }
.f-ck input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: #0B4E8A; }
.f-ck a { color: #0B4E8A; text-decoration: underline; }

/* Card di persone e partner in home: foto a tutta larghezza sopra il testo, il clic porta alla loro pagina */
.p-card { display: flex; flex-direction: column; text-align: center; background: #fff; border-radius: 16px; overflow: hidden; color: #0A2540; transition: transform .25s, box-shadow .25s; }
.p-card:hover { color: #0A2540; transform: translateY(-3px); box-shadow: 0 12px 26px rgba(10,37,64,.1); }
.p-foto { position: relative; width: 100%; aspect-ratio: 4 / 5; flex: none; overflow: hidden; background: #DCE5EC; display: flex; align-items: center; justify-content: center; font-family: Outfit, sans-serif; font-weight: 700; font-size: 40px; color: #9FB4C6; }
.p-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
/* Partner: i loghi sono orizzontali, come nel formato consigliato dal pannello */
.p-logo { aspect-ratio: 3 / 2; background: #fff; }
.p-logo img { object-position: center; }
.p-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; padding: 14px 14px 16px; }
.p-nome { font-family: Outfit, sans-serif; font-weight: 700; font-size: 16.5px; line-height: 1.2; color: #0B4E8A; }
.p-ruolo { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #1F8FA0; font-weight: 600; line-height: 1.35; }
.p-qual { font-size: 12px; line-height: 1.4; color: #6B8093; }
.p-link { margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 600; color: #2AB7CA; }
@media (max-width: 959px) {
  .p-card { border-radius: 14px; }
  .p-foto { font-size: 28px; }
  .p-txt { padding: 10px 10px 12px; }
  .p-nome { font-size: 15px; }
  .p-ruolo { font-size: 10px; }
  .p-qual { font-size: 11.5px; }
}

/* Servizi: i primi in vista, gli altri a scomparsa */
.srv-more { margin-top: 20px; }
.srv-more > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; color: #0B4E8A; }
.srv-more > summary::-webkit-details-marker { display: none; }
.srv-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #fff; padding: 15px 16px; border-left: 4px solid #0B4E8A; font-family: Outfit, sans-serif; font-weight: 700; font-size: 15.5px; line-height: 1.25; color: #0B4E8A; }
a.srv-row::after { content: "→"; color: #2AB7CA; flex: none; }
