/* ==========================================================================
   Pilò S.r.l. — sito istituzionale
   Colori del logo: blu #0077B5 · azzurro #9FC3D6
   ========================================================================== */

@font-face { font-family: "Tenor Sans"; font-weight: 400; font-display: swap; src: url("../fonts/tenor-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 100 900; font-display: swap; src: url("../fonts/hanken-grotesk-var.woff2") format("woff2"); }

:root {
  --ink: #0f2537;
  --ink-2: rgba(15, 37, 55, .72);
  --ink-3: rgba(15, 37, 55, .55);
  --blue: #0077b5;
  --deep: #0b3a5a;
  --night: #0f2537;
  --sky: #9fc3d6;
  --mist: #eaf4f9;
  --line: rgba(15, 37, 55, .16);
  --display: "Tenor Sans", "Optima", "Candara", sans-serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 3.8vw, 56px);
  --container: 1328px;
  --r-s: 24px; --r: 32px; --r-l: 40px;
  --ease: cubic-bezier(.22, .61, .21, 1);
  --btn: linear-gradient(90deg, #5aaedb 0%, #bfe1f1 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink); background: #f3f8fb; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; color: inherit; line-height: 1.12; letter-spacing: -.005em; margin: 0 0 .5em; }
h1 { font-size: clamp(38px, 4.2vw, 60px); letter-spacing: -.015em; }
h2 { font-size: clamp(32px, 3.3vw, 48px); letter-spacing: -.012em; }
h3 { font-size: clamp(21px, 1.7vw, 26px); }
h4 { font-size: 20px; }
p { margin: 0 0 1em; }
em { font-style: normal; color: var(--blue); }
.on-dark em, .hero em, .page-hero em, .footer em { color: var(--sky); }
ul, ol { padding-left: 1.2em; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -60px; z-index: 300; background: var(--night); color: #fff; padding: .7rem 1rem; border-radius: 12px; }
.skip-link:focus { top: 1rem; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.narrow { max-width: 880px; }
.center { text-align: center; margin-inline: auto; }
.section { position: relative; padding: clamp(96px, 11vw, 170px) 0; }
.section--tight { padding: clamp(64px, 7vw, 100px) 0; }

/* Sfondi sfumati come nel riferimento */
.mesh { position: relative; overflow: hidden; overflow: clip; isolation: isolate; }
.mesh::before { content: ""; position: absolute; inset: -20%; z-index: -1; pointer-events: none; animation: mesh 26s ease-in-out infinite alternate; }
.mesh--pale::before { background: radial-gradient(48% 46% at 16% 16%, rgba(159, 195, 214, .95), transparent 72%), radial-gradient(44% 48% at 88% 52%, rgba(0, 119, 181, .42), transparent 72%), radial-gradient(52% 50% at 52% 104%, rgba(205, 234, 246, 1), transparent 70%), #e7f3f9; }
.mesh--blue::before { background: radial-gradient(40% 42% at 52% 10%, rgba(226, 244, 252, .95), transparent 70%), radial-gradient(52% 54% at 10% 74%, rgba(0, 119, 181, .8), transparent 72%), radial-gradient(48% 52% at 92% 58%, rgba(60, 155, 208, .85), transparent 72%), #a8cfe6; }
.mesh--mint::before { background: radial-gradient(46% 44% at 18% 18%, rgba(168, 226, 237, .95), transparent 72%), radial-gradient(46% 46% at 88% 38%, rgba(139, 185, 210, .85), transparent 72%), radial-gradient(48% 46% at 46% 100%, rgba(224, 242, 249, 1), transparent 70%), #d5ecf3; }
/* Campo scuro: una sezione a tutto colore, come i blocchi pieni del riferimento */
.mesh--night::before { background: radial-gradient(52% 50% at 16% 12%, rgba(0, 119, 181, .75), transparent 72%), radial-gradient(46% 48% at 92% 74%, rgba(41, 106, 150, .85), transparent 72%), radial-gradient(60% 60% at 50% 110%, rgba(8, 35, 56, 1), transparent 70%), #0f2537; }
.mesh--sand::before { background: radial-gradient(40% 40% at 25% 30%, rgba(248, 236, 222, .9), transparent 70%), radial-gradient(40% 40% at 80% 70%, rgba(214, 234, 244, 1), transparent 70%), #f5f7f8; }
@keyframes mesh { to { transform: translate3d(3%, -2%, 0) rotate(4deg) scale(1.05); } }

/* Intestazioni e pulsanti */
.eyebrow { display: block; font-family: var(--display); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 18px; color: var(--ink-2); }
.kicker { display: block; font-family: var(--display); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 16px; color: var(--ink-2); }
.on-dark .kicker, .on-dark .eyebrow { color: rgba(255, 255, 255, .8); }
.head { max-width: 860px; margin-bottom: clamp(48px, 6vw, 88px); }
.head.center { text-align: center; }
.head p { font-size: 18px; color: var(--ink-2); max-width: 640px; }
.head.center p { margin-inline: auto; }
.lead { font-size: 19px; line-height: 1.6; color: var(--ink-2); }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; border: 0; cursor: pointer; background: var(--btn); color: var(--night); font: 500 15px/1 var(--sans); transition: transform .35s var(--ease), box-shadow .35s var(--ease), filter .35s; box-shadow: 0 10px 24px -14px rgba(0, 95, 145, .7); }
.btn:hover { transform: translateY(-2px); filter: saturate(1.15); box-shadow: 0 16px 30px -14px rgba(0, 95, 145, .75); }
.btn svg { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--soft { background: linear-gradient(90deg, #fff 0%, #e6f3fa 100%); box-shadow: 0 8px 20px -14px rgba(15, 37, 55, .5); }
.btn--line { background: transparent; box-shadow: none; border: 1px solid var(--line); }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--blue); }
.link svg { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.link:hover svg { transform: translateX(3px); }

/* ==========================================================================
   Menu a pillola
   ========================================================================== */
.nav-bar { position: fixed; z-index: 100; top: 20px; left: 50%; transform: translateX(-50%); width: min(100% - 2 * var(--gutter), 1328px); height: 70px; padding: 0 10px 0 28px; display: flex; align-items: center; gap: 24px; border-radius: 999px; background: rgba(15, 37, 55, .5); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); transition: background .5s, transform .6s var(--ease); }
.nav-bar.is-scrolled { background: rgba(12, 34, 54, .9); }
/* Bordo luminoso sfumato: bianco in alto, azzurro Pilò in basso, con alone esterno */
.nav-bar { border: 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 18px 40px -18px rgba(8, 30, 48, .55), 0 0 28px rgba(159, 195, 214, .28), inset 0 1px 0 rgba(255, 255, 255, .35); }
.nav-bar::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .35) 30%, rgba(159, 195, 214, .25) 55%, rgba(90, 174, 219, .85) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.nav-bar::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -1px; height: 2px; border-radius: 2px; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(159, 195, 214, .95), #fff, rgba(159, 195, 214, .95), transparent); filter: blur(.4px); opacity: .9; }
.menu-open .nav-bar::before, .menu-open .nav-bar::after { opacity: 0; }
.nav-veil { display: none; }
.nav-bar.is-hidden { transform: translate(-50%, -140%); }
.brand img { width: 98px; }
.nav { margin-left: auto; height: 100%; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; height: 100%; align-items: center; gap: 2px; }
.nav > ul > li { position: relative; height: 100%; display: flex; align-items: center; }
.nav > ul > li > a { display: flex; align-items: center; gap: 5px; padding: 9px 14px; border-radius: 999px; color: #fff; font-size: 15px; font-weight: 500; transition: background .3s; }
.nav > ul > li > a:hover, .nav > ul > li:focus-within > a, .nav > ul > li > a[aria-current="page"] { background: rgba(255, 255, 255, .12); }
.nav .caret { width: 11px; height: 11px; }
.dropdown { position: absolute; top: calc(100% - 6px); left: -8px; min-width: 300px; list-style: none; margin: 0; padding: 10px; border-radius: 26px; background: rgba(15, 37, 55, .9); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .35s var(--ease), visibility .3s; }
.nav li:hover > .dropdown, .nav li:focus-within > .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 10px 16px; border-radius: 16px; color: rgba(255, 255, 255, .85); font-size: 15px; }
.dropdown a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.dropdown .dd-title { display: block; padding: 12px 16px 4px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--sky); }
.dropdown--wide { min-width: 600px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 6px; }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; background: var(--btn); color: var(--night); font-weight: 500; font-size: 14px; white-space: nowrap; }
.nav-cta svg { width: 13px; height: 13px; }
.menu-btn { display: none; width: 50px; height: 50px; margin-left: auto; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 16px; right: 16px; height: 2px; border-radius: 2px; background: #fff; transition: transform .4s var(--ease), opacity .2s, top .4s var(--ease); }
.menu-btn span:nth-child(1) { top: 18px; } .menu-btn span:nth-child(2) { top: 24px; } .menu-btn span:nth-child(3) { top: 30px; }
.menu-open .menu-btn span:nth-child(1) { top: 24px; transform: rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { top: 24px; transform: rotate(-45deg); }

/* ==========================================================================
   Apertura
   ========================================================================== */
.hero { position: relative; min-height: max(100svh, 780px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: var(--deep); color: #fff; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img { position: absolute; right: 0; top: 0; width: 72%; height: 110%; object-fit: cover; object-position: 50% 40%; transform: scale(1.1); transition: transform 2.6s var(--ease); }
.is-loaded .hero-media img { transform: scale(1); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 88% 0%, rgba(159, 195, 214, .5), transparent 60%), radial-gradient(50% 60% at 10% 100%, rgba(0, 119, 181, .55), transparent 70%), linear-gradient(90deg, rgba(8, 44, 70, 1) 0%, rgba(8, 56, 90, .96) 32%, rgba(0, 95, 145, .55) 56%, rgba(0, 119, 181, .1) 80%, rgba(0, 119, 181, 0) 100%); }
.hero-copy { padding: 190px 0 60px; max-width: 760px; }
.hero h1 { margin-bottom: 18px; }
.hero .sub { font-family: var(--display); font-size: clamp(24px, 2.6vw, 38px); line-height: 1.2; color: rgba(255, 255, 255, .92); margin-bottom: 30px; }
.hero p { font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, .88); max-width: 620px; margin-bottom: 30px; }
.hero-foot { position: relative; padding: 30px 0 34px; }
.hero-foot::before { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 1px; background: linear-gradient(90deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .05)); }
.hero-foot .claim { font-family: var(--display); font-size: clamp(22px, 2vw, 30px); margin-bottom: 22px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 72px; width: max-content; animation: marquee 48s linear infinite; }
.marquee-track img { height: 40px; width: auto; max-width: 170px; object-fit: contain; opacity: .92; }
@keyframes marquee { to { transform: translateX(calc(-50% - 36px)); } }

/* Apertura pagine interne */
.page-hero { position: relative; min-height: 640px; display: flex; align-items: flex-end; overflow: hidden; background: var(--deep); color: #fff; isolation: isolate; }
.page-hero .bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.page-hero .bg img { position: absolute; right: 0; top: 0; width: 68%; height: 110%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 88% 0%, rgba(159, 195, 214, .45), transparent 60%), linear-gradient(90deg, rgba(8, 44, 70, 1) 0%, rgba(8, 56, 90, .95) 38%, rgba(0, 95, 145, .45) 64%, rgba(0, 119, 181, 0) 100%); }
.page-hero .container { padding: 200px 0 90px; }
.page-hero h1 { max-width: 880px; margin-bottom: 18px; }
.page-hero p { max-width: 640px; font-size: 19px; line-height: 1.55; color: rgba(255, 255, 255, .88); margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 26px; font-size: 14px; color: rgba(255, 255, 255, .7); }
.crumbs a:hover { color: #fff; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }

/* Sotto-navigazione */
.subnav { position: relative; z-index: 5; display: flex; justify-content: center; margin: -28px auto 0; padding: 0 var(--gutter); }
.subnav ul { list-style: none; margin: 0; padding: 6px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; background: rgba(255, 255, 255, .85); border: 1px solid #fff; border-radius: 999px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 40px -26px rgba(15, 37, 55, .5); }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 10px 18px; border-radius: 999px; font-size: 14px; color: var(--ink-2); white-space: nowrap; transition: background .3s, color .3s; }
.subnav a:hover { color: var(--ink); background: rgba(15, 37, 55, .06); }

/* ==========================================================================
   Esploratore dei servizi (home): una riga per servizio, si apre e mostra il dettaglio
   ========================================================================== */
.exp { width: min(100%, 1080px); margin: 0 auto; }
.exp-group + .exp-group { margin-top: 56px; }
.exp-gh { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 0 6px 13px 22px; border-bottom: 1px solid rgba(15, 37, 55, .24); }
.exp-gname { font-family: var(--display); font-size: 13px; letter-spacing: .17em; text-transform: uppercase; color: var(--ink); }
.exp-gn { font-size: 13px; letter-spacing: .03em; color: var(--ink-3); }
.exp-row { position: relative; border-bottom: 1px solid rgba(15, 37, 55, .11); }
.exp-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--blue), rgba(0, 119, 181, .25)); transform: scaleY(0); transform-origin: top; transition: transform .6s var(--ease); }
.exp-row.is-on::before { transform: scaleY(1); }
.exp-h { margin: 0; font-size: inherit; font-weight: inherit; font-family: inherit; }
.exp-head { position: relative; width: 100%; display: flex; align-items: center; gap: 24px; padding: 30px 12px 30px 22px; background: none; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .45s var(--ease), padding-left .45s var(--ease); }
.exp-head:hover, .exp-head:active { background: linear-gradient(90deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .12)); }
/* filo blu che si disegna sotto la riga al passaggio del mouse */
.exp-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .65s var(--ease); }
.exp-head:hover::after { transform: scaleX(1); }
.exp-row.is-on > .exp-h > .exp-head { padding-left: 34px; }
.exp-n { flex: none; width: 24px; font-family: var(--display); font-size: 13px; color: var(--ink-3); transition: color .35s; }
.exp-head:hover .exp-n { color: var(--blue); }
.exp-t { flex: 1; min-width: 0; display: block; font-family: var(--display); font-size: clamp(21px, 2.05vw, 29px); line-height: 1.16; letter-spacing: -.005em; transition: color .35s, transform .55s var(--ease); }
.exp-head:hover .exp-t { transform: translateX(7px); }
.exp-row.is-on .exp-t, .exp-head:hover .exp-t { color: var(--blue); }
.exp-meta { flex: none; font-size: 13px; letter-spacing: .03em; color: var(--ink-3); transition: opacity .35s; }
/* anteprima della foto: compare solo al passaggio del mouse, sparisce se la voce e' aperta */
.exp-thumb { flex: none; width: 96px; height: 62px; border-radius: 12px; overflow: hidden; opacity: 0; transform: translateX(14px) scale(.94); transition: opacity .45s var(--ease), transform .55s var(--ease); box-shadow: 0 20px 34px -24px rgba(15, 37, 55, .8); }
.exp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.exp-head:hover .exp-thumb { opacity: 1; transform: none; }
.exp-row.is-on .exp-thumb, .exp-row.is-on .exp-meta { opacity: 0; }
.exp-ic { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(15, 37, 55, .18); transition: background .35s, border-color .35s, transform .45s var(--ease); }
.exp-head:hover .exp-ic { border-color: var(--blue); }
.exp-head:hover .exp-ic i { background: var(--blue); }
.exp-ic i { position: absolute; left: 50%; top: 50%; width: 13px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .45s var(--ease), background .35s; }
.exp-ic i:last-child { transform: translate(-50%, -50%) rotate(90deg); }
.exp-row.is-on .exp-ic { background: var(--blue); border-color: var(--blue); transform: rotate(180deg); }
.exp-row.is-on .exp-ic i, .exp-row.is-on .exp-head:hover .exp-ic i { background: #fff; }
.exp-row.is-on .exp-ic i:last-child { transform: translate(-50%, -50%) rotate(180deg); }
.exp-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.exp-row.is-on .exp-body { grid-template-rows: 1fr; }
.exp-in { overflow: hidden; min-height: 0; }
.exp-grid { display: grid; grid-template-columns: minmax(0, 320px) 1fr; gap: 30px; padding: 4px 10px 36px 34px; }
.exp-ph { border-radius: var(--r-s); overflow: hidden; aspect-ratio: 4 / 3; background: var(--mist); }
.exp-ph img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); transition: transform 1.4s var(--ease); }
.exp-row.is-on .exp-ph img { transform: none; }
.exp-tx p { margin: 0 0 18px; font-size: 16px; color: var(--ink-2); max-width: 60ch; }
.exp-acts { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.exp-acts li { background: rgba(255, 255, 255, .8); border: 1px solid #fff; border-radius: 999px; padding: 8px 15px; font-size: 14px; color: var(--ink); opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--k) * 55ms); }
.exp-row.is-on .exp-acts li { opacity: 1; transform: none; }

/* Scheda puntata da una pillola */
.card[id] { scroll-margin-top: 130px; }
/* Arrivo da un'altra pagina (menu -> #sezione): il titolo non deve finire sotto la barra */
section[id], div[id], article[id], h2[id] { scroll-margin-top: clamp(96px, 12vw, 130px); }
.card.is-picked { background: #fff; box-shadow: 0 0 0 2px var(--blue), 0 40px 60px -44px rgba(15, 37, 55, .5); animation: pulse 1.6s var(--ease) 2; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(0, 119, 181, .18), 0 40px 60px -44px rgba(15, 37, 55, .5); } }

/* ==========================================================================
   Aree (righe come i "brands" del riferimento)
   ========================================================================== */
.rows { width: min(100%, 1040px); margin: 0 auto; }
.row-item { display: grid; grid-template-columns: 320px 1fr 42px; gap: 32px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); transition: padding .5s var(--ease); }
.row-item:first-child { border-top: 1px solid var(--line); }
.row-item h3 { margin: 0; font-size: clamp(22px, 2vw, 28px); }
.row-item p { margin: 0; font-size: 16px; color: var(--ink-2); }
.row-item .go { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: background .4s, border-color .4s, transform .5s var(--ease), color .4s; }
.row-item .go svg { width: 15px; height: 15px; }
.row-item:hover { padding-left: 14px; }
.row-item:hover .go { background: var(--night); border-color: var(--night); color: #fff; transform: rotate(-45deg); }
.rows-cta { display: flex; justify-content: center; margin-top: 52px; }

/* ==========================================================================
   Servizi: scorrimento orizzontale e schede
   ========================================================================== */
.hs { position: relative; }
.hs-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
/* Senza JavaScript il nastro non puo' scorrere con la pagina: diventa una griglia normale */
html:not(.js) .hs-sticky { position: static; height: auto; padding: 90px 0; }
html:not(.js) .hs-track { flex-wrap: wrap; gap: 20px; }
html:not(.js) .scard { flex: 1 1 300px; }
.hs-head { width: min(100% - 2 * var(--gutter), var(--container)); margin: 70px auto 44px; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.hs-head h2 { margin: 0; }
.hs-count { font-family: var(--display); font-size: 22px; color: var(--ink-2); white-space: nowrap; }
.hs-count b { font-weight: 400; color: var(--blue); }
.hs-track { display: flex; gap: 20px; padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2)); padding-right: var(--gutter); will-change: transform; }
.scard { position: relative; flex: 0 0 clamp(290px, 25vw, 380px); height: min(60vh, 560px); border-radius: var(--r); overflow: hidden; color: #fff; display: block; }
.scard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.scard:hover img { transform: scale(1.07); }
.scard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 119, 181, .55) 0%, rgba(0, 119, 181, 0) 34%, rgba(15, 37, 55, 0) 50%, rgba(15, 37, 55, .88) 100%); }
.scard .t { position: absolute; z-index: 1; inset: 0; padding: 26px 26px 28px; display: flex; flex-direction: column; }
.scard .num { font-family: var(--display); font-size: 15px; opacity: .9; }
.scard h3 { margin: auto 0 10px; font-size: clamp(24px, 2vw, 30px); }
.scard p { margin: 0; font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, .88); }
.scard .more { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .5s var(--ease); }
.scard .more svg { width: 14px; height: 14px; }
.scard:hover .more, .scard:focus-visible .more { opacity: 1; transform: none; }
.hs-progress { width: min(100% - 2 * var(--gutter), var(--container)); margin: 40px auto 0; height: 1px; background: var(--line); }
.hs-progress i { display: block; height: 100%; background: var(--night); transform-origin: left; transform: scaleX(0); }

/* ==========================================================================
   Tabella di confronto
   ========================================================================== */
.table { position: relative; width: min(100%, 1000px); margin: 0 auto; }
.table .col { position: absolute; left: 50%; top: 0; bottom: 0; width: 24%; border-radius: var(--r); background: linear-gradient(180deg, #e3f2fa 0%, #9fc3d6 40%, #3d9bd0 75%, #0077b5 100%); transform-origin: top; transform: scaleY(0); transition: transform 1.8s var(--ease); }
.table.in .col { transform: scaleY(1); }
.trow { position: relative; display: grid; grid-template-columns: 50% 24% 26%; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.trow.h { align-items: end; padding: 30px 0 22px; border-bottom-color: var(--ink); }
.trow.h span { text-align: center; font-family: var(--display); font-size: clamp(20px, 2vw, 28px); line-height: 1.15; }
.trow:last-child { border-bottom: 0; padding-bottom: 26px; }
.trow small { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.trow .l { font-size: 15px; }
.trow .y, .trow .x { text-align: center; font-size: 18px; }
.trow .x { color: var(--ink-3); }
.trow.lo .y { color: #fff; }
.js .table .trow:not(.h) { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.table.in .trow { opacity: 1 !important; transform: none !important; }

/* ==========================================================================
   Come lavoriamo (passi con foto grandi)
   ========================================================================== */
.steps-flow { display: grid; gap: clamp(100px, 11vw, 170px); }
.flow { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; }
.flow .ph { position: relative; border-radius: var(--r-l); overflow: hidden; box-shadow: 0 50px 90px -60px rgba(15, 37, 55, .6); }
.flow .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.flow .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(0, 119, 181, .35), rgba(159, 195, 214, 0) 50%); }
.flow .tx p { font-size: 18px; line-height: 1.6; color: var(--ink-2); margin: 0; }
.flow .step-n { display: block; font-family: var(--display); font-size: 64px; line-height: 1; color: rgba(0, 119, 181, .45); margin-bottom: 18px; }
.flow--1 .tx { grid-column: 1 / span 4; align-self: start; padding-top: 40px; }
.flow--1 .ph.big { grid-column: 6 / span 7; grid-row: 1 / span 2; aspect-ratio: 4 / 4; }
.flow--1 .ph.small { grid-column: 1 / span 4; grid-row: 2; aspect-ratio: 4 / 3.4; }
.flow--2 .ph.big { grid-column: 1 / span 8; aspect-ratio: 16 / 10; }
.flow--2 .tx { grid-column: 10 / span 3; align-self: start; }
.flow--3 .tx { grid-column: 1 / span 4; align-self: start; }
.flow--3 .ph.small { grid-column: 1 / span 4; grid-row: 2; aspect-ratio: 4 / 3.4; }
.flow--3 .ph.big { grid-column: 6 / span 7; grid-row: 1 / span 2; aspect-ratio: 4 / 4.4; }
.flow--4 .ph.big { grid-column: 1 / span 7; aspect-ratio: 16 / 11; }
.flow--4 .tx { grid-column: 9 / span 4; align-self: center; }

/* ==========================================================================
   Presenza (mappa) e numeri
   ========================================================================== */
.map-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.map-wrap { position: relative; max-width: 560px; margin: 0 auto; width: 100%; }
.italy { width: 100%; height: auto; display: block; }
.italy path { fill: rgba(255, 255, 255, .9); stroke: #9fc3d6; stroke-width: 1; transition: fill .5s; }
.italy path.on { fill: #b7def0; }
.italy path.on:hover { fill: #5aaedb; }
.pin { position: absolute; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; transform: translate(-7px, -50%); }
.pin i { width: 14px; height: 14px; border-radius: 50%; background: var(--blue); border: 2px solid #fff; animation: ping 2.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(0, 119, 181, .5); } 70% { box-shadow: 0 0 0 14px rgba(0, 119, 181, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 119, 181, 0); } }
.map-credit { font-size: 11px; color: var(--ink-3); margin-top: 10px; text-align: center; }
.figs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 36px; }
.fig { background: rgba(255, 255, 255, .65); border: 1px solid rgba(255, 255, 255, .95); border-radius: var(--r-s); padding: 24px 26px; }
.fig b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 3.6vw, 56px); line-height: 1; color: var(--night); }
.fig b span { color: var(--blue); }
.fig b i { font-style: normal; }
.fig small { display: block; margin-top: 10px; font-size: 14px; color: var(--ink-2); }

/* ==========================================================================
   Certificazioni e loghi
   ========================================================================== */
.certs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
.certs div { position: relative; aspect-ratio: 1; border-radius: var(--r-s); background: #fff; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.certs div:hover { transform: translateY(-6px); box-shadow: 0 30px 40px -30px rgba(15, 37, 55, .45); }
.certs img { position: absolute; inset: 18%; width: 64%; height: 64%; object-fit: contain; }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.logo-grid div { position: relative; height: 130px; border-radius: var(--r-s); background: #fff; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.logo-grid div:hover { transform: translateY(-5px); box-shadow: 0 30px 40px -30px rgba(15, 37, 55, .45); }
.logo-grid img { position: absolute; inset: 24px 30px; width: calc(100% - 60px); height: calc(100% - 48px); object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .4s, opacity .4s; }
.logo-grid div:hover img { filter: none; opacity: 1; }
.logo-grid div.is-out { display: none; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 44px; }
.filters button { font: 500 14px/1 var(--sans); color: var(--ink-2); padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .6); cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.filters button:hover { color: var(--ink); }
.filters button.is-on { background: var(--night); border-color: var(--night); color: #fff; }

/* ==========================================================================
   Domande frequenti
   ========================================================================== */
.faq { width: min(100%, 1000px); margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 38px; gap: 20px; align-items: center; padding: 28px 0; font-family: var(--display); font-size: clamp(20px, 1.8vw, 24px); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: background .3s, color .3s, transform .5s var(--ease); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 12px; right: 12px; top: 18px; height: 1.5px; background: currentColor; }
.faq summary i::after { transform: rotate(90deg); transition: transform .4s var(--ease); }
.faq details[open] summary i { background: var(--night); color: #fff; transform: rotate(180deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq .ans p { margin: 0 0 28px; max-width: 860px; font-size: 16px; line-height: 1.65; color: var(--ink-2); }

/* ==========================================================================
   Pagine interne
   ========================================================================== */
.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.split2.mid { align-items: center; }
.statement { font-family: var(--display); font-size: clamp(28px, 2.8vw, 42px); line-height: 1.22; margin: 0; }
.prose-2 p { font-size: 17px; color: var(--ink-2); }
.photo { position: relative; border-radius: var(--r-l); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .95); border-radius: var(--r); padding: 34px 32px; transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .4s; }
.card:hover { transform: translateY(-6px); background: #fff; box-shadow: 0 40px 60px -44px rgba(15, 37, 55, .5); }
.card .n { display: block; font-family: var(--display); font-size: 15px; color: var(--blue); margin-bottom: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.timeline { list-style: none; padding: 0; margin: clamp(56px, 8vw, 110px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.timeline li { padding: 30px 26px 0 0; position: relative; }
.timeline li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.timeline b { display: block; font-family: var(--display); font-weight: 400; font-size: 30px; margin-bottom: 8px; }
.timeline p { margin: 0; font-size: 15px; color: var(--ink-2); }

/* Organigramma */
.org { background: rgba(255, 255, 255, .7); border: 1px solid #fff; border-radius: var(--r-l); padding: clamp(24px, 4vw, 52px); }
.org-row { display: grid; grid-template-columns: 1fr 300px 1fr; gap: 18px; align-items: center; position: relative; padding-bottom: 28px; }
.org-row::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 28px; background: var(--sky); }
.org-head { background: var(--night); color: #fff; text-align: center; padding: 18px; border-radius: 999px; font-family: var(--display); font-size: 19px; }
.org-side { display: flex; flex-direction: column; gap: 8px; }
.org-side--l { align-items: flex-end; } .org-side--r { align-items: flex-start; }
.org-chip { font-size: 14px; padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.org-chip--dash { border-style: dashed; background: transparent; }
.org-areas { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; border-top: 1px solid var(--sky); padding-top: 28px; }
.org-area { position: relative; background: #fff; border-radius: var(--r-s); padding: 16px; }
.org-area::before { content: ""; position: absolute; left: 50%; top: -29px; width: 1px; height: 28px; background: var(--sky); }
.org-area h4 { margin: 4px 4px 14px; font-size: 19px; color: var(--blue); min-height: 46px; }
.org-area ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.org-area li { font-size: 13.5px; line-height: 1.35; padding: 10px 12px; border-radius: 14px; background: var(--mist); }

/* Management */
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.person { background: rgba(255, 255, 255, .75); border: 1px solid #fff; border-radius: var(--r); overflow: hidden; }
.person .ph { aspect-ratio: 4 / 4.3; overflow: hidden; background: linear-gradient(180deg, #e3f1f8, #c4dceb); }
.person .ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.person:hover .ph img { transform: scale(1.05); }
.person .bd { padding: 22px 24px 26px; }
.person h3 { font-size: 22px; margin: 0 0 4px; }
.person .role { display: block; font-size: 14px; font-weight: 500; color: var(--blue); margin-bottom: 10px; }
.person p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.person--lead { grid-column: span 2; display: grid; grid-template-columns: 1fr 1.05fr; }
.person--lead .ph { aspect-ratio: auto; }
.person--lead .bd { align-self: center; padding: 30px; }

/* Sedi */
.offices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.office { background: rgba(255, 255, 255, .72); border: 1px solid #fff; border-radius: var(--r); padding: 30px 28px; display: flex; flex-direction: column; min-height: 240px; }
.office small { font-size: 13px; color: var(--ink-2); }
.office h3 { margin: 8px 0 10px; font-size: 30px; }
.office address { font-style: normal; font-size: 15px; line-height: 1.55; color: var(--ink-2); margin-bottom: 20px; }
.office .link { margin-top: auto; }

/* Servizi: panoramica e dettaglio */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.svc-grid .scard, .related .scard { flex: none; height: 460px; }
.svc-group + .svc-group { margin-top: clamp(90px, 9vw, 140px); }
.svc-group .head { margin-bottom: 44px; }
.acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.method { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: m; }
.method .card { counter-increment: m; }
.method .card::before { content: "0" counter(m); display: block; font-family: var(--display); font-size: 44px; line-height: 1; color: var(--sky); margin-bottom: 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { padding: 12px 20px; border-radius: 999px; background: rgba(255, 255, 255, .85); border: 1px solid #fff; font-size: 15px; }
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

/* Qualità */
.cert-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cert-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 20px; align-items: center; background: rgba(255, 255, 255, .75); border: 1px solid #fff; border-radius: var(--r-s); padding: 14px 24px 14px 14px; transition: transform .4s var(--ease), background .3s; }
.cert-item:hover { transform: translateX(6px); background: #fff; }
.cert-item .ic { position: relative; width: 76px; height: 76px; border-radius: 18px; background: #fff; }
.cert-item .ic img { position: absolute; inset: 10px; width: 56px; height: 56px; object-fit: contain; }
.cert-item .ic span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 22px; }
.cert-item strong { font-weight: 500; font-size: 17px; line-height: 1.3; }
.cert-item strong small { display: block; font-weight: 400; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.cert-item .std { font-family: var(--display); font-size: 17px; color: var(--blue); white-space: nowrap; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; font-size: 16px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--btn); }
.check-list li::after { content: ""; position: absolute; left: 7px; top: 8px; width: 6px; height: 4px; border-left: 1.5px solid var(--night); border-bottom: 1.5px solid var(--night); transform: rotate(-45deg); }
.partners { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 46px; align-items: center; }
.partners img { height: 34px; width: auto; max-width: 120px; object-fit: contain; filter: grayscale(1); opacity: .6; mix-blend-mode: multiply; }

/* Moduli */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.contact-data { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-data li { background: rgba(255, 255, 255, .72); border: 1px solid #fff; border-radius: var(--r-s); padding: 18px 24px; }
.contact-data small { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 2px; }
.contact-data a, .contact-data span { font-family: var(--display); font-size: 21px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; color: var(--ink-2); padding-left: 20px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: rgba(255, 255, 255, .88); padding: 16px 22px; border: 1px solid rgba(15, 37, 55, .1); border-radius: 999px; transition: border-color .3s, box-shadow .3s, background .3s; -webkit-appearance: none; appearance: none; }
.field textarea { border-radius: var(--r-s); min-height: 150px; resize: vertical; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2537' stroke-width='1.8'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 20px center; background-size: 16px; padding-right: 48px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 119, 181, .12); }
.field input[type="file"] { border-radius: var(--r-s); padding: 12px 16px; }
.field .hint { font-size: 13px; color: var(--ink-3); padding-left: 20px; }
.consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--ink-2); padding-left: 6px; }
.consent a { text-decoration: underline; }
.consent input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--blue); flex-shrink: 0; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.form-foot small { color: var(--ink-3); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; margin: 0; font-size: 15px; }
.form-status:empty { display: none; }
.form-status.ok { padding: 14px 20px; border-radius: 18px; background: #e5f4ec; color: #1d6b3f; }
.form-status.err { padding: 14px 20px; border-radius: 18px; background: #fbecea; color: #9b2c20; }
.prose h2 { font-size: 30px; margin-top: 2em; }
.prose p { color: var(--ink-2); }

/* ==========================================================================
   Chiusura scura con modulo e nome gigante
   ========================================================================== */
.footer { position: relative; overflow: hidden; background: var(--night); color: #fff; padding: clamp(96px, 10vw, 150px) 0 0; isolation: isolate; }
.footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 50% at 50% 100%, rgba(0, 119, 181, .55), transparent 70%), radial-gradient(40% 40% at 90% 90%, rgba(159, 195, 214, .25), transparent 70%); }
.footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.footer h2 { font-size: clamp(44px, 5vw, 80px); line-height: 1.04; margin-bottom: 18px; }
.footer .sub { color: rgba(255, 255, 255, .85); margin: 0; font-size: 18px; }
.footer .field label { color: rgba(255, 255, 255, .7); }
.footer .field input, .footer .field select, .footer .field textarea { background-color: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .12); color: #fff; }
.footer .field input::placeholder, .footer .field textarea::placeholder { color: rgba(255, 255, 255, .55); }
.footer .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.footer .field select option { color: var(--ink); }
.footer .field input:focus, .footer .field select:focus, .footer .field textarea:focus { background-color: rgba(255, 255, 255, .18); border-color: var(--sky); box-shadow: none; }
.footer .consent { color: rgba(255, 255, 255, .7); }
.footer .form-foot small { color: rgba(255, 255, 255, .5); }
.footer-cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.2fr; gap: 40px; margin-top: clamp(80px, 9vw, 120px); padding-top: 44px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 15px; }
.footer-cols h4 { font-family: var(--sans); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .55); margin-bottom: 14px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-cols a { color: rgba(255, 255, 255, .88); }
.footer-cols a:hover { color: #fff; }
.footer-cols p { color: rgba(255, 255, 255, .7); }
.footer-cols img { width: 120px; margin-bottom: 16px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; padding: 30px 0 0; font-size: 13px; color: rgba(255, 255, 255, .6); }
.footer-legal nav { display: flex; gap: 22px; }
.giant { margin-top: 10px; font-family: var(--sans); font-weight: 800; font-size: 31vw; line-height: 1.02; padding-top: .06em; letter-spacing: -.05em; text-align: center; white-space: nowrap; background: linear-gradient(180deg, rgba(90, 174, 219, .6) 14%, rgba(0, 119, 181, .42) 62%, rgba(15, 37, 55, 0) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; margin-bottom: -5vw; will-change: transform; }

/* ==========================================================================
   Animazioni
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(40px); filter: blur(10px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
.js .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.js .split .w > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 45ms + var(--d, 0s)); }
.js .split.in .w > span { transform: none; }
.js .zoom img { transform: scale(1.16); transition: transform 1.8s var(--ease); }
.js .zoom.in img { transform: scale(1); }

/* ==========================================================================
   Schermi medi e piccoli
   ========================================================================== */
@media (max-width: 1240px) {
  .nav > ul > li > a { padding: 9px 10px; font-size: 14px; }
  .nav-cta { display: none; }
  .certs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .person--lead { grid-column: 1 / -1; grid-template-columns: 320px 1fr; }
  .method { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dropdown--wide { min-width: 520px; }
}

@media (max-width: 1024px) {
  .nav-bar { height: 62px; padding: 0 6px 0 22px; }
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 0; width: 100vw; height: 100svh; max-height: 100svh; margin: 0; background: var(--night); padding: 110px var(--gutter) 60px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
  .nav-bar { transform: none; left: var(--gutter); right: var(--gutter); width: auto; }
  .nav-bar.is-hidden { transform: translateY(-140%); }
  .menu-open .nav { opacity: 1; visibility: visible; }
  /* col menu aperto la pillola resta piena: le voci scorrono sotto senza sovrapporsi al logo */
  .menu-open .nav-bar { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  /* velo sopra il menu che scorre, sotto il logo e il pulsante di chiusura */
  .menu-open .nav-veil { display: block; position: fixed; z-index: 1; top: 0; left: 0; right: 0; height: 108px; pointer-events: none; background: linear-gradient(180deg, var(--night) 0%, var(--night) 66%, rgba(15, 37, 55, 0) 100%); }
  .brand, .menu-btn { position: relative; z-index: 2; }
  .nav > ul { flex-direction: column; align-items: stretch; height: auto; gap: 0; }
  .nav > ul > li { display: block; height: auto; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .nav > ul > li > a { padding: 18px 0; font-family: var(--display); font-size: 28px; border-radius: 0; background: none !important; }
  .nav .caret { display: none; }
  .dropdown, .dropdown--wide { position: static; display: block; min-width: 0; opacity: 1; visibility: visible; transform: none; background: none; border: 0; padding: 0 0 16px; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .dropdown a { padding: 7px 0; color: rgba(255, 255, 255, .65); border-radius: 0; }
  .dropdown .dd-title { padding: 10px 0 4px; }
  .hero-media img, .page-hero .bg img { width: 100%; }
  .hero::before { background: linear-gradient(180deg, rgba(8, 44, 70, .62) 0%, rgba(8, 44, 70, .22) 28%, rgba(8, 44, 70, .58) 62%, rgba(8, 44, 70, .93) 100%); }
  .page-hero::before { background: linear-gradient(180deg, rgba(8, 44, 70, .62) 0%, rgba(8, 44, 70, .3) 30%, rgba(8, 44, 70, .88) 88%); }
  .page-hero { min-height: 520px; }
  .page-hero .container { padding: 150px 0 70px; }
  .split2, .map-grid, .contact-grid, .footer-top { grid-template-columns: 1fr; }
  /* mappa a tutta larghezza: le sedi a destra scrivono verso l'interno */
  .pin--r { flex-direction: row-reverse; transform: translate(calc(-100% + 7px), -50%); }
  .row-item { grid-template-columns: 1fr 42px; gap: 8px 20px; }
  .row-item p { grid-column: 1; }
  .row-item .go { grid-row: 1 / span 2; grid-column: 2; }
  .flow { grid-template-columns: 1fr; gap: 22px; }
  .flow .tx, .flow .ph.big { grid-column: 1 !important; grid-row: auto !important; padding-top: 0 !important; }
  .flow .ph.small { display: none; }
  .flow .tx { order: -1; }
  .cards, .svc-grid, .related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .offices { grid-template-columns: 1fr 1fr; }
  .org-row { grid-template-columns: 1fr; }
  .org-row .org-head { order: -1; }
  .org-side { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .org-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 0; padding-top: 0; }
  .org-area::before { display: none; }
  .cert-list { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }

  .exp-head { gap: 14px; padding: 20px 4px 20px 18px; }
  .exp-row.is-on > .exp-h > .exp-head { padding-left: 24px; }
  .exp-ic { width: 32px; height: 32px; }
  .exp-thumb, .exp-meta { display: none; }
  .exp-gh { padding: 0 2px 10px 18px; }
  .exp-group + .exp-group { margin-top: 38px; }
  .exp-area { font-size: 13px; letter-spacing: .1em; }
  .exp-grid { grid-template-columns: 1fr; gap: 18px; padding: 0 4px 28px 18px; }
  .exp-ph { aspect-ratio: 16 / 10; }
  .exp-acts li { font-size: 13px; padding: 7px 13px; }
  .hs-sticky { height: 100svh; }
  .hs-head { margin: 0 auto 24px; }
  .hs-track { gap: 14px; }
  .scard { height: min(56svh, 440px); }
  .scard .more { opacity: 1; transform: none; }
  .hs-progress { margin-top: 26px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .hero-copy { padding: 140px 0 40px; }
  .hero p { font-size: 16px; }
  .marquee-track { gap: 48px; }
  .marquee-track img { height: 30px; }
  .hs-head { flex-direction: column; align-items: flex-start; }
  .scard { flex-basis: 76vw; }
  .trow { grid-template-columns: 54% 23% 23%; }
  .trow small { font-size: 12px; }
  .trow .y, .trow .x { font-size: 16px; }
  .trow .l { font-size: 14px; }
  .table .col { left: 54%; width: 23%; }
  .certs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-grid div { height: 100px; }
  .cards, .svc-grid, .related, .method, .offices { grid-template-columns: 1fr; }
  /* Cronologia su telefono: un filo verticale continuo, tappe compatte */
  .timeline { grid-template-columns: 1fr; row-gap: 0; border-top: 0; position: relative; padding-left: 30px; margin-top: 48px; }
  .timeline::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 10px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--blue), rgba(0, 119, 181, .12)); }
  .timeline li { padding: 0 0 28px; }
  .timeline li:last-child { padding-bottom: 0; }
  .timeline li::before { top: 8px; left: -30px; width: 10px; height: 10px; box-shadow: 0 0 0 4px rgba(255, 255, 255, .85); }
  .timeline b { font-size: 23px; margin-bottom: 6px; }
  .timeline p { font-size: 15px; line-height: 1.5; }
  .acts { grid-template-columns: 1fr; }
  .people { grid-template-columns: 1fr 1fr; gap: 10px; }
  .person p { display: none; }
  .person .bd { padding: 16px; }
  .person h3 { font-size: 18px; }
  .person--lead { grid-template-columns: 1fr; }
  .person--lead p { display: block; }
  .org-areas { grid-template-columns: 1fr; }
  .cert-item { grid-template-columns: 56px 1fr; }
  .cert-item .ic { width: 56px; height: 56px; }
  .cert-item .ic img { inset: 8px; width: 40px; height: 40px; }
  .cert-item .std { grid-column: 2; font-size: 15px; }
  .form { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; justify-content: center; }
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 520px) {
  /* Schermi stretti: una colonna sola dove due schiacciavano il testo */
  .people { grid-template-columns: 1fr; gap: 12px; }
  .person:not(.person--lead) { display: grid; grid-template-columns: 116px 1fr; align-items: center; }
  .person:not(.person--lead) .ph { aspect-ratio: 1; height: 100%; }
  .person:not(.person--lead) .bd { padding: 14px 18px; }
  .person:not(.person--lead) h3 { font-size: 19px; }
  .person .role { font-size: 13px; margin-bottom: 0; }
  .figs { grid-template-columns: 1fr; }
  .fig { padding: 20px 22px; }
  .certs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dropdown .dd-title { font-size: 13px; }
  .chips span { font-size: 13px; }
}

@media (max-width: 680px) {
  /* ------------------------------------------------------------------
     Resa su telefono sul modello della demo: titoli grandi, campi di
     colore pieni, foto grandi, elenchi a filetto senza scatolette bianche
     ------------------------------------------------------------------ */
  h1 { font-size: clamp(34px, 9.2vw, 44px); line-height: 1.04; }
  h2 { font-size: clamp(29px, 7.8vw, 38px); line-height: 1.07; }
  h3 { font-size: 21px; }
  .head { margin-bottom: 34px; }
  .head p, .lead { font-size: 17px; line-height: 1.55; }
  .eyebrow, .kicker { font-size: 13px; letter-spacing: .12em; margin-bottom: 14px; }
  .section { padding: 88px 0; }

  /* elenchi: filetto sottile al posto del riquadro bianco */
  .cards, .acts, .method { gap: 0; }
  .cards .card, .acts .card, .method .card { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 24px 0 6px; box-shadow: none; }
  .cards .card:hover, .acts .card:hover, .method .card:hover { transform: none; background: none; box-shadow: none; }
  .card .n { margin-bottom: 12px; }
  .method .card::before { font-size: 34px; margin-bottom: 14px; }
  .card p { font-size: 16px; }

  /* certificazioni e numeri: stessa pulizia */
  .cert-item { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 20px 0; }
  .fig { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 20px 0 4px; }

  /* foto grandi, una per schermata */
  .exp-ph { aspect-ratio: 4 / 5; border-radius: 26px; }
  .exp-acts { display: block; margin-bottom: 22px; }
  .exp-acts li { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 12px 0; font-size: 15.5px; }
  .exp-tx p { font-size: 16.5px; }
  .photo, .ph.big { border-radius: 26px; }
  .giant { font-size: 34vw; margin-bottom: -2vw; }
  /* intestazione della tabella: due colonne strette, testo piccolo o va a capo tre volte */
  .trow.h span { font-size: 13px; letter-spacing: .04em; line-height: 1.25; }
  .trow.h .l { font-size: 13px; }
  .flow .step-n { font-size: 52px; margin-bottom: 10px; }
  .steps-flow { gap: 72px; }
}
