/* ==========================================================================
   SideraHR / Cedolino.NET — foglio di stile del sito
   Palette: blu SideraHR + toni caldi delle illustrazioni in stile Depero
   ========================================================================== */

@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('../fonts/manrope-latin-wght.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/inter-latin-wght.woff2') format('woff2'); }

:root {
  --blue: #2d81b1;
  --blue-700: #1f6690;
  --blue-900: #143f5c;
  --blue-50: #e8f2f9;
  --navy: #0d1821;
  --navy-2: #16232f;
  --orange: #ec6725;
  --orange-600: #cf5416;
  --red: #c8412b;
  --ocher: #e9b44c;
  --cream: #f6efe3;
  --paper: #faf7f1;
  --white: #ffffff;
  --ink: #1b2430;
  --ink-2: #44505e;
  --ink-3: #6b7683;
  --line: #e4e0d8;
  --shadow-sm: 0 1px 2px rgba(20, 30, 40, .06), 0 2px 8px rgba(20, 30, 40, .06);
  --shadow: 0 6px 24px rgba(20, 30, 40, .10);
  --shadow-lg: 0 20px 60px rgba(13, 24, 33, .18);
  --radius: 18px;
  --radius-sm: 10px;
  --max: 1180px;
  --font-head: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --stripes: repeating-linear-gradient(90deg, var(--blue) 0 14px, var(--ocher) 14px 24px, var(--red) 24px 34px, var(--cream) 34px 40px, var(--orange) 40px 52px, var(--navy) 52px 58px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--paper);
  font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
p svg, a:not(.btn):not(.card-link) > svg, .notice > svg, h3 svg { width: 1em; height: 1em; display: inline-block; vertical-align: -.15em; }
a { color: var(--blue-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange-600); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .6em; color: var(--ink); font-weight: 800; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
li { margin: .25em 0; }
strong { font-weight: 650; }
.lead { font-size: 1.2rem; color: var(--ink-2); line-height: 1.6; }
.muted { color: var(--ink-3); }
.eyebrow { display: inline-flex; align-items: center; gap: .5em; font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-600); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--stripes); }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.wrap { width: min(var(--max), 100% - 2rem); margin-inline: auto; }
.wrap-narrow { width: min(800px, 100% - 2rem); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head.center { margin-inline: auto; }
.bg-cream { background: var(--cream); }
.bg-white { background: var(--white); }
.bg-navy { background: var(--navy); color: #d9dee4; }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: var(--white); }
.bg-navy .card h3, .bg-navy .card h4 { color: var(--ink); }
.bg-navy .card a { color: var(--blue-700); }
.bg-navy .lead { color: #b9c3cd; }
.bg-navy a { color: #8fc5e6; }
.bg-navy a:hover { color: var(--ocher); }
.bg-blue { background: linear-gradient(135deg, var(--blue-900), var(--blue)); color: #eaf3fa; }
.bg-blue h1, .bg-blue h2, .bg-blue h3 { color: var(--white); }
.bg-blue .lead, .bg-blue p { color: #d8e8f3; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 999; }
.skip-link:focus { left: 1rem; top: 1rem; }
.stripe { height: 6px; background: var(--stripes); }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .8em 1.5em; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s, color .18s, border-color .18s; line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--ocher); outline-offset: 2px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(45, 129, 177, .32); }
.btn-primary:hover { background: var(--blue-700); color: #fff; }
.btn-accent { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(236, 103, 37, .32); }
.btn-accent:hover { background: var(--orange-600); color: #fff; }
.btn-outline { border-color: var(--blue); color: var(--blue-700); background: transparent; }
.btn-outline:hover { background: var(--blue-50); color: var(--blue-900); }
.bg-navy .btn-outline, .bg-blue .btn-outline { border-color: rgba(255, 255, 255, .55); color: #fff; }
.bg-navy .btn-outline:hover, .bg-blue .btn-outline:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-sm { padding: .55em 1.1em; font-size: .92rem; }
.btn-group { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(250, 247, 241, .86); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(20, 30, 40, .06); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand img { height: 54px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-menu > li { position: relative; }
.nav-menu a, .nav-menu button.nav-toggle-sub {
  display: inline-flex; align-items: center; gap: .35em; padding: .6rem .85rem; border-radius: 999px; font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; transition: background-color .15s, color .15s;
}
.nav-menu a:hover, .nav-menu button.nav-toggle-sub:hover, .nav-menu a[aria-current="page"] { background: var(--blue-50); color: var(--blue-900); }
.nav-menu .chev { width: 14px; height: 14px; transition: transform .2s; }
.nav-menu li.open > .nav-toggle-sub .chev { transform: rotate(180deg); }
.submenu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: .5rem; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; border: 1px solid var(--line);
}
.nav-menu li.open > .submenu, .nav-menu li:focus-within > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
@media (hover: hover) { .nav-menu li:hover > .submenu { opacity: 1; visibility: visible; transform: translateY(0); } }
.submenu a { display: flex; gap: .7rem; align-items: center; justify-content: flex-start !important; border-radius: 10px; padding: .6rem .75rem; font-weight: 600; width: 100%; text-align: left; }
.submenu a > span:last-child { flex: 1; }
.submenu a small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--ink-3); font-size: .8rem; line-height: 1.3; }
.submenu .ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; color: #fff; }
.submenu .ico svg { width: 18px; height: 18px; }
.nav-cta { display: flex; gap: .5rem; align-items: center; }
.nav-burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; border-radius: 10px; padding: 0; }
.nav-burger span { display: block; width: 24px; height: 2.5px; background: var(--ink); margin: 5px auto; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
@media (max-width: 1023px) {
  .nav-burger { display: block; }
  .nav-cta .btn-outline { display: none; }
  .site-header { position: sticky; }
  .nav-collapse { position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 76px); height: calc(100dvh - 76px); background: var(--paper); overflow: auto; padding: 1rem; display: none; border-top: 1px solid var(--line); box-shadow: 0 20px 40px rgba(0,0,0,.15); }
  .nav-collapse.is-open { display: block; }
  .nav-menu { flex-direction: column; align-items: stretch; gap: .15rem; }
  .nav-menu a, .nav-menu button.nav-toggle-sub { width: 100%; justify-content: space-between; font-size: 1.05rem; padding: .85rem 1rem; border-radius: 12px; }
  .submenu { position: static; box-shadow: none; border: 0; background: var(--cream); display: none; opacity: 1; visibility: visible; transform: none; padding: .35rem; margin: .25rem 0 .5rem; }
  .nav-menu li.open > .submenu { display: block; }
  .nav-mobile-cta { display: flex; flex-direction: column; gap: .6rem; padding: 1rem .5rem; }
}
@media (min-width: 1024px) { .nav-mobile-cta { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--cream); }
.hero-home { min-height: min(86vh, 760px); display: grid; align-items: center; }
.hero-home .hero-bg { position: absolute; inset: 0; background: url('../img/depero/hero-home.webp') center right / cover no-repeat; }
.hero-home .hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(246, 239, 227, .96) 0%, rgba(246, 239, 227, .88) 38%, rgba(246, 239, 227, .25) 62%, rgba(246, 239, 227, 0) 100%); }
.hero-home .wrap { position: relative; padding-block: clamp(3rem, 8vw, 6rem); }
.hero-card { max-width: 600px; }
.hero-card .brand-mark { height: 64px; width: auto; margin-bottom: 1.5rem; }
.hero-card h1 { margin-bottom: 1rem; font-size: clamp(2rem, 4vw, 3.2rem); }
.hero-card h1 em { font-style: normal; color: var(--blue); position: relative; }
.hero-card .lead { margin-bottom: 1.75rem; max-width: 34ch; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin-top: 1.75rem; color: var(--ink-2); font-size: .92rem; }
.hero-badges span { display: inline-flex; align-items: center; gap: .4em; }
.hero-badges svg { width: 18px; height: 18px; color: var(--blue); }
@media (max-width: 767px) {
  .hero-home .hero-bg { background-position: 78% top; opacity: .55; }
  .hero-home .hero-bg::after { background: linear-gradient(180deg, rgba(246, 239, 227, .2), rgba(246, 239, 227, .96) 60%); }
}

.page-hero { position: relative; overflow: hidden; background: var(--navy); color: #d9dee4; }
.page-hero .wrap { position: relative; display: grid; gap: 2rem; align-items: center; padding-block: clamp(3rem, 7vw, 5.5rem); grid-template-columns: 1fr; }
@media (min-width: 900px) { .page-hero .wrap { grid-template-columns: 1.1fr .9fr; } }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: #c4cdd6; }
.page-hero .eyebrow { color: var(--ocher); }
.page-hero figure { margin: 0; position: relative; }
.page-hero figure img { border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 4px solid rgba(255, 255, 255, .08); }
.page-hero .deco { position: absolute; inset: auto -8% -30% auto; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(233, 180, 76, .35), transparent 60%); pointer-events: none; }
.breadcrumb { font-size: .85rem; color: #98a4b0; margin-bottom: 1rem; }
.breadcrumb a { color: #b8c3cd; text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span::before { content: "/"; margin: 0 .5em; color: #56636f; }

/* ---------- Griglie e card ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.card {
  background: #fff; border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: .75rem; position: relative; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--ink-2); }
.card .card-link { margin-top: auto; padding-top: .5rem; font-family: var(--font-head); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .4em; color: var(--blue-700); }
.card .card-link svg { width: 1em; height: 1em; transition: transform .2s; }
.card:hover .card-link svg { transform: translateX(4px); }
.card-stretch { text-decoration: none; color: inherit; }
.card-stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.icon-badge { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: var(--blue); box-shadow: 0 6px 16px rgba(45, 129, 177, .25); }
.icon-badge svg { width: 28px; height: 28px; }
.icon-badge.orange { background: var(--orange); box-shadow: 0 6px 16px rgba(236, 103, 37, .25); }
.icon-badge.red { background: var(--red); box-shadow: 0 6px 16px rgba(200, 65, 43, .25); }
.icon-badge.ocher { background: var(--ocher); color: var(--navy); box-shadow: 0 6px 16px rgba(233, 180, 76, .3); }
.icon-badge.navy { background: var(--navy); }
.card-img { border-radius: var(--radius); overflow: hidden; padding: 0; }
.card-img img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; transition: transform .35s ease; }
.card-img:hover img { transform: scale(1.04); }
.card-img .card-body { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; }

/* card funzionalità (aprono un dialog) */
.feature { text-align: left; align-items: flex-start; cursor: pointer; font: inherit; }
.feature .tag { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-600); font-family: var(--font-head); }
.feature.is-new::before { content: "Novità"; position: absolute; top: 14px; right: 14px; background: var(--orange); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: .3em .7em; border-radius: 999px; }

/* ---------- Sezioni alternate testo/immagine ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; } .split.reverse > .split-media { order: -1; } }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.split-media::before { content: ""; position: absolute; inset: 12% -6% -8% 10%; background: var(--stripes); opacity: .35; border-radius: var(--radius); z-index: -1; transform: rotate(-2deg); }
.checks { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .55rem; }
.checks li { display: flex; gap: .7rem; align-items: flex-start; margin: 0; }
.checks svg { width: 22px; height: 22px; flex: none; color: var(--blue); margin-top: .15em; }
.checks li strong { color: var(--ink); }

/* ---------- Numeri ---------- */
.stats { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.stat { background: #fff; border-radius: var(--radius); padding: 1.6rem 1.5rem; border-top: 5px solid var(--blue); box-shadow: var(--shadow-sm); }
.stat:nth-child(2) { border-top-color: var(--orange); }
.stat:nth-child(3) { border-top-color: var(--red); }
.stat:nth-child(4) { border-top-color: var(--ocher); }
.stat .num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 3.6vw, 3rem); letter-spacing: -.02em; color: var(--ink); line-height: 1; }
.stat .num small { font-size: .5em; font-weight: 700; color: var(--ink-3); margin-left: .1em; }
.stat .lbl { color: var(--ink-2); margin-top: .5rem; font-size: .95rem; }

/* ---------- Galleria (carosello + lightbox) ---------- */
.gallery { position: relative; }
.gallery-track { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .25rem .25rem 1rem; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.gallery-track figure { flex: 0 0 min(88%, 720px); scroll-snap-align: center; margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.gallery-track button { display: block; width: 100%; border: 0; padding: 0; background: #f1ede6; cursor: zoom-in; }
.gallery-track img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #f1ede6; }
.gallery-track figcaption { padding: .8rem 1rem; font-size: .9rem; color: var(--ink-2); }
.gallery-nav { display: flex; gap: .5rem; justify-content: flex-end; margin-top: .25rem; }
.gallery-nav button, .lightbox .lb-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--ink); transition: background-color .15s; }
.gallery-nav button:hover { background: var(--blue-50); }
.gallery-nav svg, .lightbox .lb-btn svg { width: 20px; height: 20px; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); width: 100%; }
.lightbox::backdrop { background: rgba(13, 24, 33, .92); backdrop-filter: blur(4px); }
.lightbox img { max-height: 84vh; width: auto; max-width: 100%; margin: 0 auto; border-radius: 12px; background: #fff; }
.lightbox figcaption { color: #d9dee4; text-align: center; padding: .8rem; }
.lightbox .lb-bar { display: flex; justify-content: center; gap: .6rem; margin-top: .5rem; }
.lightbox .lb-btn { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); color: #fff; }

/* ---------- Dialog funzionalità ---------- */
.modal { border: 0; border-radius: 22px; padding: 0; width: min(92vw, 860px); max-height: 88vh; box-shadow: var(--shadow-lg); background: #fff; color: var(--ink); }
.modal::backdrop { background: rgba(13, 24, 33, .6); backdrop-filter: blur(3px); }
.modal[open] { animation: pop .22s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.5rem 1.75rem 0; }
.modal-head h3 { font-size: 1.45rem; margin: 0; }
.modal-close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; flex: none; color: var(--ink); }
.modal-close:hover { background: var(--cream); }
.modal-close svg { width: 18px; height: 18px; }
.modal-body { padding: 1rem 1.75rem 1.75rem; overflow: auto; max-height: calc(88vh - 90px); }
.modal-body h4 { margin: 1.25rem 0 .4rem; color: var(--blue-900); }
.modal-body p, .modal-body li { color: var(--ink-2); }
.modal-body img { border-radius: 12px; border: 1px solid var(--line); margin-top: 1rem; }
.modal-body .callout { background: var(--cream); border-left: 4px solid var(--orange); padding: .9rem 1.1rem; border-radius: 0 12px 12px 0; margin-top: 1.25rem; }
.modal-body ul { padding-left: 1.2em; }

/* ---------- Accordion / FAQ ---------- */
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; cursor: pointer; padding: 1.1rem .25rem; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--blue); transition: transform .2s; line-height: 1; }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .acc-body { padding: 0 .25rem 1.25rem; color: var(--ink-2); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 1.75rem; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 3px; background: var(--stripes); border-radius: 2px; opacity: .8; }
.timeline li { position: relative; padding-left: 3rem; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: .35rem; width: 19px; height: 19px; border-radius: 50%; background: var(--blue); border: 4px solid var(--cream); box-shadow: 0 0 0 2px var(--blue); }
.timeline .year { font-family: var(--font-head); font-weight: 800; color: var(--orange-600); font-size: .95rem; letter-spacing: .06em; }
.timeline h3 { margin: .1rem 0 .3rem; font-size: 1.2rem; }
.timeline p { margin: 0; color: var(--ink-2); }
.bg-navy .timeline p { color: #b9c3cd; }
.bg-navy .timeline li::before { border-color: var(--navy); }

/* ---------- Team ---------- */
.team { display: grid; gap: 1.5rem 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
.member { text-align: center; }
.member img { width: 128px; height: 128px; border-radius: 30% 30% 30% 30% / 40% 40% 40% 40%; object-fit: cover; margin: 0 auto .8rem; box-shadow: var(--shadow); border: 3px solid #fff; }
.member h3 { font-size: 1.02rem; margin: 0 0 .15rem; }
.member p { font-size: .85rem; color: var(--ink-3); margin: 0; }

/* ---------- Grafici ---------- */
.grid-charts { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid-charts { grid-template-columns: 1fr 1fr; } }
.chart-card { background: #fff; border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.chart-card h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.chart-card .muted { font-size: .9rem; margin-bottom: .75rem; }
.chart-card canvas { width: 100% !important; height: 260px !important; }

/* ---------- Quote ---------- */
.quote { position: relative; background: var(--navy-2); color: #d9dee4; border-radius: var(--radius); padding: clamp(1.75rem, 4vw, 3rem); }
.quote::before { content: "“"; position: absolute; top: -.2em; left: 1.2rem; font-family: var(--font-head); font-size: 7rem; line-height: 1; color: var(--ocher); opacity: .6; }
.quote p { position: relative; }
.quote strong { color: #fff; }
.quote .sign { font-family: var(--font-head); font-weight: 700; color: var(--ocher); margin-top: 1rem; }

/* ---------- Contatti ---------- */
.contact-card { display: flex; gap: 1rem; align-items: flex-start; }
.contact-card .icon-badge { flex: none; }
.contact-card h3 { margin-bottom: .2rem; font-size: 1.1rem; }
.contact-card p { margin: 0; color: var(--ink-2); }
.contact-card a { text-decoration: none; font-weight: 600; }
.form { display: grid; gap: 1rem; }
.form label { font-weight: 600; font-size: .92rem; display: grid; gap: .35rem; }
.form input, .form textarea, .form select { font: inherit; padding: .8rem 1rem; border-radius: 12px; border: 1px solid #cfd6de; background: #fff; color: var(--ink); width: 100%; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 3px solid rgba(45, 129, 177, .3); border-color: var(--blue); }
.form .row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.form .hint { font-size: .85rem; color: var(--ink-3); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .notice.err { background: #fdecea; border-color: #f3b9b3; color: #8a2a1e; }
.form .notice.ok { background: #e8f5ec; border-color: #b7dfc3; color: #1e5a33; }
.form button[disabled] { opacity: .6; cursor: wait; transform: none; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #e9e5dd; aspect-ratio: 16 / 9; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band .wrap { position: relative; display: grid; gap: 1.5rem; align-items: center; grid-template-columns: 1fr; padding-block: clamp(3rem, 6vw, 4.5rem); }
@media (min-width: 880px) { .cta-band .wrap { grid-template-columns: 1.4fr 1fr; } .cta-band .btn-group { justify-content: flex-end; } }
.cta-band::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 14px; background: var(--stripes); opacity: .9; }
.cta-band h2 { margin-bottom: .5rem; }
.cta-band p { margin: 0; }

/* ---------- Logo strip ---------- */
.logos { display: flex; flex-wrap: wrap; gap: 2rem 3rem; align-items: center; justify-content: center; }
.logos img { height: 44px; width: auto; filter: grayscale(1) contrast(.9); opacity: .7; transition: filter .2s, opacity .2s; }
.logos img:hover { filter: none; opacity: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9c3cd; font-size: .95rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); padding-block: 3.5rem 2.5rem; }
.site-footer h4 { color: #fff; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer a { color: #c9d2db; text-decoration: none; }
.site-footer a:hover { color: var(--ocher); }
.site-footer .brand img { height: 40px; }
.footer-about p { margin-top: 1rem; color: #98a4b0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 1.25rem; display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; font-size: .85rem; color: #8a96a2; }
.footer-bottom a { color: #a9b4bf; }
.cert-badges { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.cert-badges a { display: inline-flex; align-items: center; gap: .45em; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; padding: .35em .8em; font-size: .8rem; font-weight: 600; }
.cert-badges svg { width: 14px; height: 14px; }

/* ---------- Utilità ---------- */
.to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 90; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .card, .btn { transition: none; } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pill-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.pill-list li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .35em .9em; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.bg-navy .pill-list li { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .15); color: #d9dee4; }
.notice { background: var(--blue-50); border: 1px solid #cfe1ee; border-radius: 12px; padding: .9rem 1.1rem; font-size: .95rem; color: var(--blue-900); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start; }
.steps li::before { content: counter(step); width: 44px; height: 44px; border-radius: 12px; background: var(--orange); color: #fff; font-family: var(--font-head); font-weight: 800; display: grid; place-items: center; font-size: 1.1rem; }
.steps h4 { margin: .35rem 0 .2rem; }
.steps p { margin: 0; color: var(--ink-2); }

/* ---------- Live ---------- */
.live-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 0 0 rgba(46, 204, 113, .6); animation: livepulse 1.6s ease-out infinite; vertical-align: middle; margin-right: .35em; }
.live-dot.off { background: var(--red); animation: none; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, .6); } 100% { box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.nav-menu .live-dot { width: 8px; height: 8px; }
.live-status { display: flex; align-items: center; gap: .4em; flex-wrap: wrap; margin-top: 1rem; color: #c4cdd6; }
.kpis { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.kpi { background: #fff; border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: grid; gap: .6rem; }
.kpi .icon-badge { width: 44px; height: 44px; border-radius: 12px; }
.kpi .icon-badge svg { width: 22px; height: 22px; }
.kpi-num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 3.8vw, 3.2rem); letter-spacing: -.02em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; transition: color .3s; }
.kpi-num.bump { color: var(--orange-600); }
.kpi-lbl { color: var(--ink-2); font-size: .95rem; }
.live-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .live-grid { grid-template-columns: 2fr 1fr; } }
.ticker { list-style: none; padding: 0; margin: .5rem 0 1rem; display: grid; gap: .4rem; font-variant-numeric: tabular-nums; }
.ticker li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem .75rem; background: var(--cream); border-radius: 10px; font-size: .95rem; animation: tickin .4s ease-out; margin: 0; }
.ticker li .tipo { color: var(--ink-3); font-size: .85rem; }
@keyframes tickin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
#live-chart { width: 100% !important; height: 240px !important; }

/* ---------- Perché noi ---------- */
.why-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.why { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-sm); display: grid; gap: .75rem; overflow: hidden; }
.why-n { position: absolute; top: .6rem; right: 1rem; font-family: var(--font-head); font-weight: 800; font-size: 4.5rem; line-height: 1; color: var(--cream); letter-spacing: -.04em; user-select: none; }
.why h3, .why p, .why .icon-badge { position: relative; }
.why h3 { margin: .25rem 0 0; }
.why p { margin: 0; color: var(--ink-2); }
.why-proof { display: flex; gap: .5rem; align-items: flex-start; font-size: .92rem; color: var(--blue-900); background: var(--blue-50); border-radius: 12px; padding: .7rem .9rem; margin-top: .25rem !important; }
.why-proof svg { width: 18px; height: 18px; flex: none; color: var(--blue); margin-top: .15em; }
.speed { background: var(--navy-2); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 1rem; }
.speed hr { border: 0; border-top: 1px solid rgba(255,255,255,.12); margin: .25rem 0; }
.speed-row { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr auto; gap: 1rem; align-items: center; }
.speed-lbl { display: grid; line-height: 1.2; color: #fff; font-size: .92rem; }
.speed-lbl span { color: #98a4b0; font-size: .8rem; }
.speed-bar { height: 14px; background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden; }
.speed-fill { height: 100%; border-radius: 999px; background: #8a96a2; min-width: 8px; }
.speed-fill.fast { background: linear-gradient(90deg, var(--orange), var(--ocher)); box-shadow: 0 0 12px rgba(236,103,37,.6); }
.speed-val { font-family: var(--font-head); font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; min-width: 4.5ch; text-align: right; }
@media (max-width: 480px) { .speed-row { grid-template-columns: 1fr auto; } .speed-bar { grid-column: 1 / -1; } }
