/* Source Sans 3, SIL Open Font License 1.1, ospitato in locale */
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 300 600;
  font-display: swap;
  src: url(../fonts/source-sans-3-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 300 600;
  font-display: swap;
  src: url(../fonts/source-sans-3-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(../fonts/source-sans-3-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(../fonts/source-sans-3-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Design read: redesign (preserve) del sito di una società di ingegneria per committenti pubblici e privati, linguaggio sobrio trust-first, palette e carattere derivati dal logo. Dial: VARIANCE 5, MOTION 4, DENSITY 4.
   Regola forme: schede 14px, elementi interattivi a pillola. */
/* Layout: hero sul prato con scheda intro sovrapposta, poi sezioni a schede; colori presi dalle fasce della sfera del logo (verde → verde mare → ottanio → blu → indaco) */
:root {
  --bg: #f4f7f8;
  --surface: #fcfdfd;
  --surface-2: #eaf0f2;
  --ink: #1b2a3d;
  --muted: #56667a;
  --line: #dbe3e8;
  --brand: #294c84;      /* blu del logotipo */
  --brand-ink: #f7fafc;
  --link: #1e697b;       /* ottanio del payoff */
  --c1: #2d7233;         /* fasce della sfera */
  --c2: #297c60;
  --c3: #2a7281;
  --c4: #294c84;
  --c5: #293984;
  --shadow: 0 1px 2px rgba(27,42,61,.06), 0 8px 24px -8px rgba(27,42,61,.14);
  --shadow-hi: 0 2px 4px rgba(27,42,61,.08), 0 18px 40px -12px rgba(27,42,61,.24);
  --r: 14px;
  --f-sans: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gut: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1724; --surface: #172235; --surface-2: #1d2b42; --ink: #e6edf5; --muted: #a3b1c4; --line: #2a3a54;
    --brand: #23406f; --link: #7cc3cf;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -8px rgba(0,0,0,.5);
    --shadow-hi: 0 2px 4px rgba(0,0,0,.35), 0 18px 40px -12px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1724; --surface: #172235; --surface-2: #1d2b42; --ink: #e6edf5; --muted: #a3b1c4; --line: #2a3a54;
  --brand: #23406f; --link: #7cc3cf;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -8px rgba(0,0,0,.5);
  --shadow-hi: 0 2px 4px rgba(0,0,0,.35), 0 18px 40px -12px rgba(0,0,0,.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-sans); font-size: 18px; line-height: 1.6; font-weight: 400; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gut); padding-right: var(--gut-r); }
h1, h2, h3 { text-wrap: balance; margin: 0; line-height: 1.15; }
h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 700; letter-spacing: -0.015em; color: var(--ink); }
p { margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--link); margin: 0 0 12px; }
.eyebrow::before { content: ""; width: 22px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--c1), var(--c3), var(--c5)); }

/* Scheda base */
.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); }

/* Testata sovrapposta all'hero */
.top { position: absolute; inset: 0 0 auto; z-index: 5; padding-top: env(safe-area-inset-top, 0px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px; }
.logo img { height: 48px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 6px; font-size: 1rem; font-weight: 600; background: rgba(12,28,52,.32); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 5px; }
.nav a { color: #fff; text-decoration: none; padding: 7px 14px; border-radius: 999px; }
.nav a:hover { background: rgba(255,255,255,.14); }
.nav a.cta { background: #fff; color: #294c84; }
.menu-btn { display: none; background: rgba(12,28,52,.4); border: 1px solid rgba(255,255,255,.4); color: #fff; font: 600 0.95rem var(--f-sans); padding: 8px 16px; border-radius: 999px; cursor: pointer; }

/* Hero: il prato e la citazione */
.hero { position: relative; color: #fff; background: #2f4a22 url("../img/hr-hero.jpg") center 62% / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,24,48,.5) 0%, rgba(10,24,48,0) 30%, rgba(10,24,48,.05) 50%, rgba(10,24,48,.7) 100%); }
.hero .wrap { position: relative; z-index: 1; min-height: min(88vh, 780px); display: flex; flex-direction: column; justify-content: flex-end; padding-top: 140px; padding-bottom: 150px; }
.quote { margin: 0; max-width: 980px; }
.quote p { max-width: 30ch; font-family: var(--f-sans); font-style: italic; font-weight: 300; font-size: clamp(1.9rem, 4.2vw, 3.5rem); line-height: 1.16; padding-bottom: 4px; letter-spacing: -0.01em; text-shadow: 0 2px 28px rgba(0,0,0,.3); }
.quote footer { margin-top: 22px; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
.quote footer::before { content: ""; width: 40px; height: 2px; background: currentColor; border-radius: 1px; }

/* Scheda intro sovrapposta al prato */
.intro { position: relative; z-index: 2; margin-top: -96px; }
.intro .card { display: grid; gap: 28px; padding: 48px 52px; box-shadow: var(--shadow-hi); overflow: hidden; position: relative; }
.intro .card::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3), var(--c4), var(--c5)); }
.intro .lead { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 400; line-height: 1.45; color: var(--ink); max-width: 60ch; }
.intro .side { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 24px; }
.intro .side p { max-width: 62ch; }
.btn { display: inline-flex; align-items: center; gap: 10px; font: 700 0.95rem var(--f-sans); letter-spacing: 0.02em; text-decoration: none; color: var(--brand-ink); background: var(--c4); padding: 11px 22px; border-radius: 999px; align-self: flex-start; transition: background .2s; }
.btn:hover { background: var(--c5); }
.btn.ghost { background: transparent; color: var(--link); padding-inline: 0; }
.btn.more { margin-top: 28px; }
.btn span { transition: transform .2s; }
.btn:hover span { transform: translateX(4px); }

section.block { padding-block: 104px 0; }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 24px; margin-bottom: 36px; }

/* Servizi: una scheda per area, ognuna col colore di una fascia del logo */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: stretch; }
.svc { --c: var(--c1); display: flex; flex-direction: column; overflow: hidden; min-width: 0; transition: translate .25s, box-shadow .25s; }
.svc:hover { translate: 0 -4px; box-shadow: var(--shadow-hi); }
.svc:nth-child(2) { --c: var(--c2); }
.svc:nth-child(3) { --c: var(--c3); }
.svc:nth-child(4) { --c: var(--c5); }
.svc-img { aspect-ratio: 16 / 11; max-width: 100%; background-size: cover; background-position: center; position: relative; }
.svc-img::after { content: ""; position: absolute; inset: auto 0 0; height: 5px; background: var(--c); }
.svc-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.svc .count { align-self: flex-start; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: var(--c); padding: 3px 10px; border-radius: 999px; }
.svc-more summary { cursor: pointer; font-weight: 600; font-size: 0.95rem; color: var(--link); list-style: none; display: inline-flex; gap: 8px; margin-top: 2px; }
.svc-more summary::-webkit-details-marker { display: none; }
.svc-more summary::after { content: "+"; font-weight: 700; }
.svc-more[open] summary::after { content: "−"; }
.svc-more ul { margin-top: 10px; }
.svc-body > ul + .svc-more { padding-top: 4px; }
.svc h3 { font-size: 1.22rem; font-weight: 700; line-height: 1.25; }
.svc ul { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--c); color: var(--muted); font-size: 0.98rem; display: grid; gap: 6px; }

/* Perché noi: fascia con il gradiente della sfera */
.why { margin-top: 104px; color: #fff; background: linear-gradient(125deg, var(--c5) 0%, var(--c4) 38%, var(--c3) 78%, var(--c2) 100%); position: relative; overflow: hidden; }
/* sfera del logo ricostruita in vettoriale (fasce ondulate) */
.why::before { content: ""; position: absolute; right: -60px; top: 50%; translate: 0 -50%; width: min(600px, 80vw); aspect-ratio: 1; background: url('../img/sphere.svg') center / contain no-repeat; opacity: .1; pointer-events: none; }
.why .wrap { position: relative; display: grid; grid-template-columns: 5fr 7fr; gap: 56px; padding-block: 96px; align-items: center; }
.why .eyebrow { color: #cfe9de; }
.why .eyebrow::before { background: #fff; }
.why h2 { color: #fff; margin-bottom: 18px; }
.why-photo { aspect-ratio: 4 / 5; max-width: 100%; border-radius: var(--r); background: url("../img/7.jpg") center / cover; box-shadow: 0 24px 48px -16px rgba(0,0,0,.45); }
.why p.txt { opacity: .9; max-width: 58ch; }
.why ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; }
.why li { display: flex; gap: 12px; align-items: baseline; font-weight: 600; }
.why li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.18); display: inline-grid; place-items: center; font-size: 0.75rem; transform: translateY(2px); }
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.fig { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: var(--r); padding: 20px 20px 18px; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.fig strong { display: block; font-weight: 800; font-size: clamp(2rem, 3.2vw, 2.6rem); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.fig strong.iso { font-size: 1.25rem; line-height: 1.2; font-weight: 700; letter-spacing: 0; }
.fig span { display: block; margin-top: 8px; font-size: 0.95rem; opacity: .85; }

/* Certificazioni: testo e badge a sinistra, illustrazione a destra */
.cert .wrap { display: grid; grid-template-columns: 6fr 5fr; gap: 56px; align-items: center; }
.cert h2 { margin-bottom: 12px; }
.cert .std { color: var(--muted); font-size: 1.05rem; }
.badges { display: grid; grid-template-columns: repeat(2, minmax(0, 200px)); gap: 24px; margin-block: 32px 28px; }
.badge { margin: 0; padding: 18px 18px 16px; display: grid; gap: 14px; justify-items: center; text-align: center; }
.badge img { width: 100%; max-width: 160px; height: auto; display: block; }
.badge figcaption { font-weight: 700; font-size: 1rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.badge figcaption small { display: block; font-weight: 400; font-size: 0.85rem; color: var(--muted); margin-top: 2px; }
@media (max-width: 1020px) { .cert .wrap { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 420px) { .badges { grid-template-columns: 1fr 1fr; gap: 14px; } .badge { padding: 14px 10px 12px; } .badge figcaption { font-size: 0.9rem; } }

/* Politica per qualità e ambiente: impaginata come documento ufficiale, testo invariato */
.pol-head { display: grid; gap: 12px; margin-bottom: 28px; }
.pol-meta { color: var(--muted); font-size: 1rem; }
.pol-meta .pol-badge { margin-right: 10px; vertical-align: 1px; }
.pol-meta a { color: var(--link); overflow-wrap: anywhere; }
.pol-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c4); border: 1.5px solid var(--c4); padding: 3px 10px; border-radius: 999px; }
.pol-doc { max-width: 860px; margin-inline: auto; background: #fdfdfb; color: #1b2a3d; border: 1px solid #d8dee4; border-radius: 6px; box-shadow: 0 1px 2px rgba(27,42,61,.06), 0 20px 50px -20px rgba(27,42,61,.3); }
.pol-doc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; padding: 26px 48px; border-bottom: 2px solid #294c84; }
.pol-doc-head img { height: 64px; width: auto; display: block; }
.pol-doc-head dl { margin: 0; display: grid; grid-template-columns: repeat(3, auto); border: 1px solid #c9d2da; }
.pol-doc-head dl div { padding: 6px 14px; border-left: 1px solid #c9d2da; }
.pol-doc-head dl div:first-child { border-left: 0; }
.pol-doc-head dt { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #5a6a7c; }
.pol-doc-head dd { margin: 0; font-weight: 600; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.pol-doc-body { padding: 36px 48px 28px; font-size: 1rem; line-height: 1.7; }
.pol-doc-body p { margin: 0 0 14px; text-align: justify; hyphens: auto; }
.pol-doc-body p.c { text-align: center; margin-bottom: 4px; }
.pol-doc-body p.c + p:not(.c) { margin-top: 22px; }
.pol-doc-title { text-align: center; font-size: 1.35rem; font-weight: 700; letter-spacing: 0.02em; margin: 0 0 14px; }
.pol-doc-body h4 { margin: 30px 0 12px; font-size: 1.1rem; font-weight: 700; letter-spacing: 0.02em; color: #294c84; }
.pol-doc-body h5 { margin: 20px 0 8px; font-size: 1rem; font-weight: 700; color: #1b2a3d; }
.pol-doc-body ul { margin: 14px 0 6px; padding-left: 22px; }
.pol-doc-body li::marker { color: #294c84; }
.pol-doc-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; padding: 16px 48px 22px; border-top: 1px solid #d8dee4; font-size: 0.82rem; color: #5a6a7c; }
.pol-doc-foot img { height: 40px; width: auto; }
@media (max-width: 760px) { .pol-doc-head, .pol-doc-body, .pol-doc-foot { padding-left: 20px; padding-right: 20px; } .pol-doc-body p { text-align: left; } .pol-doc-head dl { grid-template-columns: repeat(3, auto); } .pol-doc-head img { height: 48px; } }

.cert-pol { display: grid; gap: 16px; min-width: 0; }
.pol-preview { display: grid; grid-template-columns: 1fr; justify-items: start; gap: 18px; width: 100%; padding: 0; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.pol-sheet { width: 100%; position: relative; display: flex; flex-direction: column; gap: 10px; height: 340px; overflow: hidden; padding: 22px 28px; background: #fdfdfb; color: #1b2a3d; border: 1px solid #d8dee4; border-radius: 6px; box-shadow: 0 1px 2px rgba(27,42,61,.06), 0 20px 50px -20px rgba(27,42,61,.3); transition: translate .25s, box-shadow .25s; }
.pol-sheet::after { content: ""; position: absolute; inset: auto 0 0; height: 110px; background: linear-gradient(180deg, rgba(253,253,251,0), #fdfdfb 85%); }
.pol-preview:hover .pol-sheet { translate: 0 -4px; box-shadow: 0 2px 4px rgba(27,42,61,.08), 0 28px 60px -20px rgba(27,42,61,.38); }
.pol-preview:focus-visible { outline: none; }
.pol-preview:focus-visible .pol-sheet { outline: 3px solid var(--link); outline-offset: 4px; }
.pol-sheet-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 2px solid #294c84; }
.pol-sheet-head img { height: 44px; width: auto; }
.pol-sheet-code { font-size: 0.78rem; font-weight: 600; text-align: right; color: #5a6a7c; line-height: 1.35; }
.pol-sheet-title { text-align: center; font-weight: 700; font-size: 1.05rem; margin-top: 8px; }
.pol-sheet-sub { text-align: center; font-weight: 700; font-size: 0.82rem; }
.pol-sheet-text { font-size: 0.85rem; line-height: 1.6; text-align: justify; color: #34465a; }
.pol-cta { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1rem; color: var(--brand-ink); background: var(--c4); padding: 12px 22px; border-radius: 999px; white-space: nowrap; }
.pol-preview:hover .pol-cta { background: var(--c5); }
/* documento a tutto schermo */
.pol-dlg { width: min(900px, 100vw); max-width: 100vw; height: calc(100dvh - 32px); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: 10px; background: #eef2f5; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.pol-dlg::backdrop { background: rgba(10,20,36,.72); }
.pol-dlg-bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px 10px 20px; background: rgba(238,242,245,.94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-bottom: 1px solid #d8dee4; }
.pol-dlg .pol-x { position: static; background: #fdfdfb; color: #1b2a3d; }
.pol-dlg .pol-doc { margin: 20px; }
@media (max-width: 760px) {
  .pol-preview { grid-template-columns: 1fr; }
  .pol-sheet { height: 300px; }
  .pol-cta { justify-self: start; }
  .pol-dlg { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .pol-dlg-bar { padding-top: max(10px, env(safe-area-inset-top, 0px)); }
  .pol-dlg .pol-doc { margin: 0; border: 0; border-radius: 0; box-shadow: none; }
}

/* Progetti */
.filters { display: flex; flex-wrap: wrap; gap: 6px; background: var(--surface); padding: 5px; border-radius: 999px; box-shadow: var(--shadow); }
.filters button { font: 600 0.92rem var(--f-sans); background: transparent; color: var(--muted); border: 0; padding: 8px 18px; border-radius: 999px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--c4); color: #fff; }
.proj-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: stretch; }
.proj { grid-column: span 4; }
.proj[data-extra] { grid-column: span 3; }
.proj[data-extra] h3 { font-size: 1rem; }
.proj { min-width: 0; display: flex; flex-direction: column; overflow: hidden; transition: translate .25s, box-shadow .25s; }
.proj:hover { translate: 0 -4px; box-shadow: var(--shadow-hi); }
.proj-img { aspect-ratio: 4 / 3; max-width: 100%; background-size: cover; background-position: center; background-color: var(--surface-2); position: relative; }
.proj-body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.svc-more { margin-top: auto; }
.proj .cat { font-size: 0.9rem; font-weight: 600; color: var(--c4); }
.proj[data-cat="consulenza"] .cat { color: var(--c2); }
.proj h3 { font-size: 1.08rem; font-weight: 600; line-height: 1.35; }
.proj[data-cat="survey"] .cat { color: var(--c3); }
.proj .pdesc { color: var(--muted); font-size: 0.95rem; }
.proj-grid.collapsed .proj[data-extra] { display: none; }
.proj { position: relative; cursor: pointer; }
.proj-open { position: absolute; inset: 0; z-index: 1; background: transparent; border: 0; border-radius: var(--r); cursor: pointer; }
.proj-open:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
.proj .open-hint { margin-top: auto; padding-top: 8px; font-size: 0.92rem; font-weight: 600; color: var(--link); }
.proj:hover .open-hint span { display: inline-block; transform: translateX(3px); transition: transform .2s; }
/* Dettaglio progetto: gallery + attività */
.pdlg { width: min(1100px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--r); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-hi); overflow: auto; }
.pdlg::backdrop { background: rgba(10,20,36,.72); backdrop-filter: blur(3px); }
.pdlg-in { display: grid; grid-template-columns: 3fr 2fr; position: relative; }
.pdlg-x { position: absolute; top: 12px; right: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 999px; border: 0; background: var(--surface-2); color: var(--ink); font-size: 1rem; cursor: pointer; }
.pdlg-gal { background: #0d1a2b; display: flex; flex-direction: column; min-width: 0; }
.pdlg-main { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.pdlg-main img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; display: block; }
.pdlg-nav { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 999px; border: 0; background: rgba(252,253,253,.88); color: #1b2a3d; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.pdlg-nav.prev { left: 12px; } .pdlg-nav.next { right: 12px; }
.pdlg-count { position: absolute; left: 12px; bottom: 12px; font-size: 0.85rem; font-weight: 600; color: #f7fafc; background: rgba(10,20,36,.6); padding: 3px 10px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.pdlg-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.pdlg-thumbs button { flex: none; width: 84px; aspect-ratio: 4 / 3; border: 2px solid transparent; border-radius: 8px; padding: 0; background-size: cover; background-position: center; cursor: pointer; opacity: .7; }
.pdlg-thumbs button[aria-current="true"] { border-color: #f7fafc; opacity: 1; }
.pdlg-txt { padding: 36px 32px 32px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pdlg-txt .cat { font-size: 0.9rem; font-weight: 600; color: var(--link); }
.pdlg-txt h3 { font-size: 1.45rem; font-weight: 700; line-height: 1.25; padding-right: 36px; }
.pdlg-txt h4 { margin: 12px 0 0; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.pdlg-txt ul { margin: 4px 0 0; padding: 0 0 0 14px; border-left: 2px solid var(--c3); display: grid; gap: 6px; list-style: none; color: var(--ink); }
@media (max-width: 800px) { .pdlg-in { grid-template-columns: 1fr; } .pdlg-txt { padding: 24px 20px; } }
#svc-all, #more-btn { border: 0; cursor: pointer; font-family: var(--f-sans); }

/* Contatti */
.contact { padding-block: 104px; }
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 24px; align-items: stretch; }
.contact-main { padding: 40px; display: flex; flex-direction: column; gap: 18px; background: var(--surface); position: relative; overflow: hidden; }
.contact-main::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--c1), var(--c3), var(--c5)); }
.contact-main .intro-txt { color: var(--muted); }
.contact-main .lines { display: grid; gap: 10px; margin-top: 6px; }
.contact-main .lines p { font-size: 1.2rem; font-weight: 600; overflow-wrap: anywhere; }
.contact-main .lines small { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cgrid .card { padding: 26px 28px; min-width: 0; }
.cgrid h3 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--link); margin-bottom: 10px; }
.cgrid p { font-size: 1rem; color: var(--ink); overflow-wrap: anywhere; }

footer.site { background: var(--surface); border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--muted); }
footer.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding-block: 28px; }
.flogo { height: 72px; width: auto; display: block; background: #fff; border-radius: 10px; padding: 6px 10px; }
footer.site a { color: inherit; }
.note { font-size: 0.8rem; opacity: .7; }

/* Responsive */
@media (max-width: 1020px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .proj, .proj[data-extra] { grid-column: auto; }
  .why .wrap, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-photo { aspect-ratio: 16 / 9; }
}
@media (max-width: 800px) {
  .nav { display: none; }
  .menu-btn { display: inline-block; }
  .top.open .nav { display: flex; flex-direction: column; align-items: stretch; border-radius: var(--r); position: absolute; top: 84px; right: var(--gut-r); left: var(--gut); background: rgba(12,28,52,.92); padding: 10px; }
  .logo img { height: 38px; }
  .hero .wrap { min-height: 600px; padding-top: 120px; padding-bottom: 130px; }
  .intro .card { padding: 32px 24px; }
  .figures { grid-template-columns: 1fr; }
  .cgrid { grid-template-columns: 1fr; }
  .contact-main { padding: 32px 24px; }
  section.block, .contact { padding-block: 72px 0; }
  .contact { padding-bottom: 72px; }
  .why { margin-top: 72px; }
}
@media (max-width: 540px) {
  .svc-grid, .proj-grid { grid-template-columns: 1fr; }
}

.svc { position: relative; cursor: pointer; }
.svc .open-hint { margin-top: auto; padding-top: 8px; font-size: 0.92rem; font-weight: 600; color: var(--link); }
.svc .open-hint span { display: inline-block; transition: transform .3s cubic-bezier(.32,.72,0,1); }
.svc:hover .open-hint span { transform: translateX(4px); }
.pdlg-txt ul { overflow-wrap: anywhere; }
/* separatori di sezione: filetto sfumato con la sfera del logo al centro */
.sec-mark { position: relative; height: 56px; margin-bottom: 64px; display: grid; place-items: center; }
.sec-mark::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, var(--line) 18%, var(--c3) 50%, var(--line) 82%, transparent); opacity: .9; }
.sec-mark .to-top { position: relative; width: 56px; height: 56px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 1px var(--line), 0 0 0 8px var(--bg); display: grid; place-items: center; }
.sec-mark .to-top::after { content: ""; width: 30px; height: 30px; background: linear-gradient(160deg, var(--c1), var(--c3) 50%, var(--c5)); -webkit-mask: url('../img/sphere.svg') center / contain no-repeat; mask: url('../img/sphere.svg') center / contain no-repeat; }
.cert .sec-mark { grid-column: 1 / -1; }
section.block { padding-top: 72px; }
.contact { padding-top: 72px; }
@supports (animation-timeline: view()) {
  .sec-mark::before { animation: draw both cubic-bezier(.32,.72,0,1); animation-timeline: view(); animation-range: entry 0% entry 80%; }
  .sec-mark .to-top { animation: spin-in both cubic-bezier(.32,.72,0,1); animation-timeline: view(); animation-range: entry 10% entry 90%; }
}
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes spin-in { from { transform: rotate(-90deg) scale(.6); } to { transform: none; } }

.sec-mark .to-top { border: 0; padding: 0; cursor: pointer; transition: box-shadow .4s cubic-bezier(.32,.72,0,1); }
.sec-mark .to-top::after { transition: transform .6s cubic-bezier(.32,.72,0,1); }
.sec-mark .to-top:hover { box-shadow: 0 0 0 1px var(--c3), 0 0 0 8px var(--bg); }
.sec-mark .to-top:hover::after { transform: rotate(-20deg) scale(1.08); }
.sec-mark .to-top:active::after { transform: scale(.94); }
.why .sec-mark { grid-column: 1 / -1; margin-bottom: 0; }
.sec-mark.on-dark::before { background: linear-gradient(90deg, transparent, rgba(255,255,255,.35) 20%, rgba(255,255,255,.7) 50%, rgba(255,255,255,.35) 80%, transparent); }
.sec-mark.on-dark .to-top { background: rgba(255,255,255,.1); box-shadow: 0 0 0 1px rgba(255,255,255,.35); backdrop-filter: none; }
.sec-mark.on-dark .to-top::after { background: #fff; }
.sec-mark.on-dark .to-top:hover { box-shadow: 0 0 0 1px #fff; background: rgba(255,255,255,.18); }
/* bordi ondulati della fascia "Perchè noi" (linee mosse del logo) */
.why { margin-top: 88px; }
.why-photo, .why .wrap { z-index: 1; }
.why-edge { position: absolute; left: 0; width: 100%; height: clamp(56px, 8vw, 120px); pointer-events: none; z-index: 1; }
.why-edge.top { top: -1px; }
.why-edge.bot { bottom: -1px; }
.why-edge .fill { fill: var(--bg); }
.why-edge .iso { fill: none; stroke: rgba(255,255,255,.28); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.why-edge .iso.i2 { stroke: rgba(255,255,255,.14); stroke-dasharray: 6 6; }
.why-edge.bot .iso { stroke: rgba(255,255,255,.22); }
.why .wrap { padding-block: clamp(120px, 12vw, 176px); }
@media (max-width: 720px) { .sec-mark { margin-bottom: 40px; } }

/* pagina Chi siamo */
.view[hidden] { display: none !important; }
.phero { position: relative; color: #fff; background: linear-gradient(125deg, var(--c5) 0%, var(--c4) 40%, var(--c3) 80%, var(--c2) 100%); overflow: hidden; }
.phero::before { content: ""; position: absolute; right: -60px; top: 45%; translate: 0 -50%; width: min(520px, 75vw); aspect-ratio: 1; background: url('../img/sphere.svg') center / contain no-repeat; opacity: .1; pointer-events: none; }
.phero .wrap { position: relative; z-index: 1; padding-top: 168px; padding-bottom: clamp(120px, 12vw, 170px); }
.phero h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; max-width: 20ch; }
.phero .eyebrow { color: #cfe9de; }
.phero .eyebrow::before { background: #fff; }
.crumbs { display: flex; gap: 10px; font-size: 0.9rem; color: rgba(255,255,255,.75); margin-bottom: 28px; }
.crumbs a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); }
.about-lead { font-size: clamp(1.35rem, 2.3vw, 1.85rem); line-height: 1.42; font-weight: 400; max-width: 46ch; color: var(--ink); margin: 0 0 48px; }
.about-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; color: var(--muted); }
.about-cols p { margin: 0; padding-top: 18px; border-top: 2px solid var(--line); }
.about-cols p:nth-child(1) { border-color: var(--c1); } .about-cols p:nth-child(2) { border-color: var(--c3); } .about-cols p:nth-child(3) { border-color: var(--c5); }
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 460px)); gap: 28px; }
.member { padding: 6px; border-radius: 22px; background: color-mix(in srgb, var(--ink) 4%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 7%, transparent); transition: translate .6s cubic-bezier(.32,.72,0,1); }
.member:hover { translate: 0 -4px; }
.member-in { background: var(--surface); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); height: 100%; display: flex; flex-direction: column; }
.member-photo { aspect-ratio: 1; overflow: hidden; background: var(--surface-2); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s cubic-bezier(.32,.72,0,1); }
.member:hover .member-photo img { transform: scale(1.03); }
.member-body { padding: 22px 24px 24px; display: grid; gap: 6px; justify-items: start; }
.member-body h3 { font-size: 1.35rem; font-weight: 700; }
.member .role { margin: 0 0 10px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--link); }
.pill-link { display: inline-flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; border-radius: 999px; background: var(--surface-2); color: var(--ink); font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: transform .3s cubic-bezier(.32,.72,0,1); }
.pill-ico { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--c4); color: #fff; font-size: 0.85rem; transition: transform .4s cubic-bezier(.32,.72,0,1); }
.pill-link:hover .pill-ico { transform: translate(2px, -1px) scale(1.06); }
.pill-link:active { transform: scale(.98); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.wfig { padding: 26px 26px 22px; position: relative; overflow: hidden; }
.wfig::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--c1), var(--c3), var(--c5)); }
.wfig strong { display: block; font-size: clamp(2rem, 3.2vw, 2.6rem); line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.wfig:first-child strong { font-size: 1.5rem; line-height: 1.2; letter-spacing: 0; }
.wfig span { display: block; margin-top: 8px; color: var(--muted); }
.cert-strip { margin-top: 20px; padding: 22px 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.cert-strip dl { margin: 0; display: flex; flex-wrap: wrap; gap: 14px 48px; }
.cert-strip dt { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--link); }
.cert-strip dd { margin: 2px 0 0; font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.cert-strip dd small { display: block; font-weight: 400; font-size: 0.85rem; color: var(--muted); }
.cert-strip .btn { border: 0; cursor: pointer; }
.chi-end { padding-bottom: 104px; }
.chi-cta { padding: 32px 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; position: relative; overflow: hidden; }
.chi-cta::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--c1), var(--c3), var(--c5)); }
.chi-cta .eyebrow { margin-bottom: 4px; }
.addr { margin: 0; font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 600; }
.nav a[aria-current] { background: rgba(255,255,255,.18); }
@media (max-width: 900px) { .about-cols, .why-grid { grid-template-columns: 1fr; gap: 24px; } .team-grid { grid-template-columns: 1fr 1fr; gap: 16px; } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } .phero .wrap { padding-top: 132px; } .chi-cta, .cert-strip { padding: 24px 22px; } }

/* privacy e cookie policy */
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--link); }
.legal-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: #fdfdfb; box-shadow: inset 0 0 0 1px #d8dee4; }
.legal-tabs button { font: 600 0.92rem var(--f-sans); border: 0; background: transparent; color: #5a6a7c; padding: 7px 16px; border-radius: 999px; cursor: pointer; transition: background .3s cubic-bezier(.32,.72,0,1), color .3s cubic-bezier(.32,.72,0,1); }
.legal-tabs button[aria-selected="true"] { background: #294c84; color: #fff; }
.legal-doc[hidden] { display: none; }
.legal-doc .pol-doc-head dl { grid-template-columns: repeat(3, auto); }
.legal-doc .pol-doc-body p { text-align: left; hyphens: manual; }
.legal-scroll { overflow-x: auto; margin: 14px 0 16px; -webkit-overflow-scrolling: touch; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; line-height: 1.5; min-width: 560px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid #d8dee4; }
.legal-table thead th { background: #eef2f5; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #294c84; }
.legal-table td:first-child { font-weight: 600; }
.legal-table small { font-weight: 400; color: #5a6a7c; }
.legal-kv { border-collapse: collapse; margin: 10px 0 6px; font-size: 0.98rem; }
.legal-kv th { text-align: left; font-weight: 600; color: #5a6a7c; padding: 4px 24px 4px 0; vertical-align: top; }
.legal-kv td { padding: 4px 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .legal-tabs button { padding: 7px 12px; font-size: 0.86rem; } .legal-doc .pol-doc-head dl { grid-template-columns: 1fr; } .legal-doc .pol-doc-head dl div { border-left: 0; border-top: 1px solid #c9d2da; } .legal-doc .pol-doc-head dl div:first-child { border-top: 0; } }
@media (max-width: 640px) {
  .legal-table { min-width: 0; border: 0; }
  .legal-table thead { display: none; }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
  .legal-table tr { border: 1px solid #d8dee4; border-radius: 8px; margin-bottom: 12px; overflow: hidden; }
  .legal-table td { border: 0; border-top: 1px solid #e6ebef; padding: 8px 12px; }
  .legal-table td:first-child { border-top: 0; background: #eef2f5; }
  .legal-table td:not(:first-child)::before { content: attr(data-label); display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #294c84; margin-bottom: 2px; }
}

/* certificati ISO */
.badge { position: relative; transition: translate .5s cubic-bezier(.32,.72,0,1), box-shadow .5s cubic-bezier(.32,.72,0,1); }
.badge:hover { translate: 0 -4px; box-shadow: var(--shadow-hi); }
.badge .open-hint { display: block; margin-top: 8px; font-size: 0.85rem; font-weight: 600; color: var(--link); }
.badge .open-hint span { display: inline-block; transition: transform .3s cubic-bezier(.32,.72,0,1); }
.badge:hover .open-hint span { transform: translateX(4px); }
.cert-dlg { width: min(860px, 100vw); }
.cert-dlg-act { display: flex; align-items: center; gap: 10px; }
.cert-dlg-act .btn { padding: 8px 16px; font-size: 0.88rem; white-space: nowrap; }
.cert-dlg .pol-badge { white-space: nowrap; }
.cert-sheet { margin: 20px; background: #fff; border: 1px solid #d8dee4; border-radius: 6px; box-shadow: 0 20px 50px -20px rgba(27,42,61,.3); overflow: hidden; }
.cert-sheet img { display: block; width: 100%; height: auto; }
@media (max-width: 560px) { .cert-sheet { margin: 10px; } .cert-dlg .pol-badge { font-size: 0.62rem; } }

/* video e mappa con anteprima, caricamento su richiesta */
.media-card { margin-top: 40px; display: grid; grid-template-columns: 5fr 7fr; gap: 0; overflow: hidden; }
.media-txt { padding: 36px 36px 32px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; justify-content: center; }
.media-txt h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 700; line-height: 1.2; }
.media-meta { margin: 0; color: var(--muted); font-weight: 600; }
.media-note { margin: 6px 0 14px; font-size: 0.88rem; color: var(--muted); }
.media-frame { position: relative; overflow: hidden; background: #0d1a2b; min-width: 0; }
.video-frame { aspect-ratio: 16 / 9; }
.video-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.32,.72,0,1), filter .6s cubic-bezier(.32,.72,0,1); filter: saturate(.9) brightness(.85); }
.video-frame:hover img { transform: scale(1.03); filter: saturate(1) brightness(.95); }
.play { position: absolute; inset: 0; margin: auto; width: 92px; height: 92px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 0 20px 40px -12px rgba(0,0,0,.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; transition: transform .5s cubic-bezier(.32,.72,0,1), background .5s cubic-bezier(.32,.72,0,1); }
.play span { width: 64px; height: 64px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.play span::after { content: ""; margin-left: 5px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--c4); }
.play:hover { transform: scale(1.06); background: rgba(255,255,255,.26); }
.play:active { transform: scale(.97); }
.media-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; background: #0d1a2b; }
.media-frame.live > :not(iframe) { visibility: hidden; }
.map-card { margin-top: 24px; overflow: hidden; padding: 0; }
.map-frame { aspect-ratio: 21 / 8; min-height: 340px; background: var(--surface-2); }
.map-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-art .grid line { stroke: var(--line); stroke-width: 1; }
.map-art .iso path { fill: none; stroke: color-mix(in srgb, var(--c3) 45%, transparent); stroke-width: 1.1; }
.map-art .iso path.cm { stroke: var(--c4); stroke-width: 1.6; opacity: .7; }
.map-art .pin .halo { fill: color-mix(in srgb, var(--c3) 22%, transparent); }
.map-art .pin .dot { fill: var(--c4); stroke: var(--surface); stroke-width: 4; }
.map-label { position: absolute; left: 32px; top: 32px; display: grid; gap: 2px; background: var(--surface); padding: 18px 22px; border-radius: var(--r); box-shadow: var(--shadow); }
.map-label .eyebrow { margin: 0 0 4px; }
.map-label strong { font-size: 1.3rem; }
.map-label span:last-child { color: var(--muted); }
.map-actions { position: absolute; left: 32px; bottom: 32px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.map-actions .btn { border: 0; cursor: pointer; }
.map-actions .pill-link { background: var(--surface); box-shadow: var(--shadow); }
.map-note { position: absolute; right: 24px; bottom: 18px; margin: 0; font-size: 0.8rem; }
@media (max-width: 900px) {
  .media-card { grid-template-columns: 1fr; }
  .media-frame.video-frame { order: -1; }
  .media-txt { padding: 26px 22px 24px; }
  .map-frame { aspect-ratio: auto; min-height: 460px; }
  .map-label { left: 16px; right: 16px; top: 16px; }
  .map-actions { left: 16px; right: 16px; bottom: 44px; }
  .map-note { left: 16px; right: 16px; bottom: 14px; }
}
.powered { display: inline-flex; align-items: center; gap: 10px; font-size: 0.85rem; letter-spacing: 0.04em; }
.powered .nz { height: 28px; width: auto; display: block; }
.powered .nz-name { font-weight: 700; color: var(--ink); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; }
.nz-dark { display: none !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nz-dark { display: block !important; } :root:not([data-theme="light"]) .nz-light { display: none !important; } }
:root[data-theme="dark"] .nz-dark { display: block !important; } :root[data-theme="dark"] .nz-light { display: none !important; }
.blocked-note { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 4; width: min(420px, calc(100% - 32px)); margin: 0; padding: 14px 18px; border-radius: var(--r); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-hi); font-size: 0.92rem; text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  .quote { animation: rise .9s cubic-bezier(.16,1,.3,1) both; }
  .intro .card { animation: rise .9s .15s cubic-bezier(.16,1,.3,1) both; }
  @supports (animation-timeline: view()) {
    .reveal { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: translateY(24px) scale(.985); } to { transform: none; } }
.btn:active, .filters button:active { transform: scale(.98); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .sec-mark::before, .sec-mark .to-top { animation: none !important; } .svc:hover, .proj:hover { translate: none; } }

/* pagina 404 */
.err-page { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.err { max-width: 520px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.err img { height: 90px; width: auto; }
.err h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.err p { margin: 0; color: var(--muted); }
