/* ==========================================================================
   Termica 2000 — foglio di stile
   Struttura: token → base → layout → componenti → sezioni → pagine → utility
   ========================================================================== */

/* ---------- Token ---------- */
:root {
  --navy-950: #08123a;
  --navy-900: #0d1b56;
  --navy-800: #142878;
  --navy-700: #1c3596;
  --navy-600: #2a47b8;
  --navy-100: #e3e8fa;
  --navy-50:  #f1f4fd;

  --flame-600: #d93a12;
  --flame-500: #ec4d1f;
  --flame-100: #fde6dd;
  --sun-400:  #ffc928;

  --ink:      #0f1730;
  --text:     #36405a;
  --muted:    #646e86;
  --line:     #e2e6ef;
  --line-2:   #cfd5e3;
  --bg:       #ffffff;
  --bg-soft:  #f5f7fb;
  --ok:       #12805c;
  --ok-bg:    #e3f5ee;
  --err:      #b42318;
  --err-bg:   #fdecea;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgb(15 23 48 / .06), 0 1px 3px rgb(15 23 48 / .05);
  --shadow:    0 4px 12px rgb(15 23 48 / .06), 0 12px 32px rgb(15 23 48 / .07);
  --shadow-lg: 0 18px 50px rgb(13 27 86 / .18);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--navy-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--flame-600); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -0.022em; margin: 0 0 .5em; font-weight: 750; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); letter-spacing: -0.03em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sun-400); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--navy-100); color: var(--ink); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; }
.section-head--row > div { max-width: 640px; }
.section-head p { font-size: 1.125rem; color: var(--muted); margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--flame-600); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--text); }

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--wide-left { grid-template-columns: 1.15fr .85fr; } }

/* ---------- Bottoni ---------- */
.btn {
  --btn-bg: var(--navy-800); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { --btn-bg: var(--navy-700); color: var(--btn-fg); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn--accent { --btn-bg: var(--flame-500); }
.btn--accent:hover { --btn-bg: var(--flame-600); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy-800); --btn-bd: var(--line-2); }
.btn--ghost:hover { --btn-bg: var(--navy-50); --btn-fg: var(--navy-800); --btn-bd: var(--navy-100); box-shadow: none; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--navy-900); }
.btn--light:hover { --btn-bg: var(--navy-50); --btn-fg: var(--navy-900); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgb(255 255 255 / .4); }
.btn--outline-light:hover { --btn-bg: rgb(255 255 255 / .1); --btn-fg: #fff; --btn-bd: #fff; box-shadow: none; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 650; text-decoration: none; color: var(--navy-700); }
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.topbar { background: var(--navy-950); color: #c6cde6; font-size: .875rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 40px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--sun-400); }
.topbar__list { display: flex; gap: 24px; margin: 0; padding: 0; list-style: none; }
.topbar__list li { display: inline-flex; align-items: center; gap: 8px; }
.topbar .icon { width: 15px; height: 15px; opacity: .8; }
@media (max-width: 899px) { .topbar { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgb(255 255 255 / .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) 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 4px 20px rgb(15 23 48 / .05); }
.site-header .container { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand__mark { height: 50px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em; }
.brand__name span { color: var(--flame-500); }
.brand__tag { font-size: .72rem; color: var(--muted); letter-spacing: .02em; margin-top: 3px; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav__link {
  display: block; padding: 10px 12px; border-radius: 10px;
  color: var(--ink); font-weight: 560; font-size: .97rem; text-decoration: none; transition: background-color .15s, color .15s;
}
.nav__link:hover { background: var(--navy-50); color: var(--navy-800); }
.nav__link[aria-current="page"] { color: var(--navy-700); background: var(--navy-50); }
.header-cta { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: transparent; border: 1.5px solid var(--line); color: var(--navy-900); cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: var(--navy-50); color: var(--navy-900); }
.nav-toggle { display: none; }

@media (max-width: 1099px) {
  .nav-toggle { display: inline-grid; }
  .header-cta .btn { display: none; }
  .header-cta { margin-left: auto; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; margin: 0; z-index: 99;
    background: #fff; padding: 16px var(--gutter) 32px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s var(--ease); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav__link { font-size: 1.2rem; padding: 14px 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__link[aria-current="page"] { border-radius: 10px; border-color: transparent; }
  .nav__mobile-cta { display: grid !important; gap: 10px; margin-top: 24px; }
  body.nav-open { overflow: hidden; }
}
@media (min-width: 1100px) { .header-cta .icon-btn--phone { display: none; } }
.nav__mobile-cta { display: none; }
.nav__mobile-info { margin-top: 20px; font-size: .95rem; color: var(--muted); }

/* ---------- Barra azioni mobile ---------- */
.mobile-bar {
  position: fixed; inset: auto 0 0 0; z-index: 90; display: none;
  grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgb(255 255 255 / .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgb(15 23 48 / .08);
}
.mobile-bar .btn { min-height: 46px; padding-inline: 12px; }
@media (max-width: 899px) { .mobile-bar { display: grid; } body { padding-bottom: 76px; } }

/* ---------- Copertina a scorrimento (home) ---------- */
.slider { --swoosh: clamp(34px, 7vw, 100px); position: relative; overflow: hidden; background: var(--navy-950); color: #fff; }
.slider__track { display: grid; }
.slide {
  grid-area: 1 / 1; position: relative; display: grid; align-items: end;
  min-height: clamp(560px, 78vh, 680px);
  opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility 0s .9s;
}
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s var(--ease); }
.slide__media { position: absolute; inset: 0; overflow: hidden; }
.slide__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 8s linear; }
.slide.is-active .slide__media img { transform: scale(1); }
.slide__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgb(8 18 58 / .94) 0%, rgb(8 18 58 / .78) 42%, rgb(8 18 58 / .2) 78%, rgb(8 18 58 / .05) 100%);
}
.slide__body { position: relative; z-index: 1; padding-block: 64px calc(var(--swoosh) + 76px); }
.slide__content { max-width: 620px; }
.slide__content > * { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.slide.is-active .slide__content > * { opacity: 1; transform: none; }
.slide.is-active .slide__content > :nth-child(2) { transition-delay: .08s; }
.slide.is-active .slide__content > :nth-child(3) { transition-delay: .16s; }
.slide.is-active .slide__content > :nth-child(4) { transition-delay: .24s; }
.slide .eyebrow { color: var(--sun-400); }
.slide__title { color: #fff; font-size: clamp(2rem, 4.4vw, 3.5rem); letter-spacing: -0.035em; margin-bottom: 16px; text-shadow: 0 2px 24px rgb(8 18 58 / .35); }
.slide__text { font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: #dfe4f5; margin-bottom: 28px; max-width: 540px; }
@media (min-width: 900px) {
  .slide { align-items: center; }
  .slide__body { padding-block: 72px calc(var(--swoosh) + 40px); }
  .slide__media::after {
    background: linear-gradient(90deg, rgb(8 18 58 / .9) 0%, rgb(8 18 58 / .72) 36%, rgb(8 18 58 / .18) 68%, rgb(8 18 58 / 0) 100%);
  }
}
.slider__swoosh { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: var(--swoosh); z-index: 2; pointer-events: none; }
.slider__controls {
  position: absolute; left: 0; right: 0; bottom: calc(var(--swoosh) * .18); z-index: 3;
  display: flex; align-items: center; justify-content: flex-end; gap: 10px; pointer-events: none;
}
.slider__controls > * { pointer-events: auto; }
.slider__btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; cursor: pointer;
  background: rgb(255 255 255 / .94); color: var(--navy-900); border: 0; box-shadow: var(--shadow-sm);
  transition: background-color .2s, transform .2s var(--ease);
}
.slider__btn:hover { background: #fff; transform: translateY(-1px); }
.slider__btn:focus-visible { outline: 3px solid var(--sun-400); outline-offset: 2px; }
.slider__count { position: relative; display: inline-grid; place-items: center; height: 44px; min-width: 76px; padding: 0 14px; border-radius: 999px; background: rgb(255 255 255 / .94); color: var(--navy-900); font-weight: 700; font-size: .92rem; box-shadow: var(--shadow-sm); overflow: hidden; }
.slider__progress { position: absolute; left: 16px; right: 16px; bottom: 8px; height: 2px; background: var(--navy-100); border-radius: 2px; overflow: hidden; }
.slider__progress span { display: block; height: 100%; width: 100%; background: var(--flame-500); transform-origin: left; transform: scaleX(0); }
.slider.is-playing .slider__progress span { animation: slider-progress var(--slider-delay, 7s) linear forwards; }
@keyframes slider-progress { to { transform: scaleX(1); } }
.slider__play, .slider.is-paused .slider__pause { display: none; }
.slider.is-paused .slider__play { display: block; }
.no-js .slider__controls { display: none; }
@media (max-width: 899px) { .slider__controls { justify-content: flex-start; bottom: calc(var(--swoosh) + 16px); } }
@media (prefers-reduced-motion: reduce) {
  .slide__media img, .slide.is-active .slide__media img { transform: none; }
  .slide__content > * { transform: none; }
}

.icon-circle { flex: none; }
@media (max-width: 600px) { .hero__badge { left: 12px; right: 12px; max-width: none; } }

.icon-circle {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--navy-50); color: var(--navy-700);
}
.icon-circle .icon { width: 24px; height: 24px; }
.icon-circle--flame { background: var(--flame-100); color: var(--flame-600); }
.icon-circle--dark { background: rgb(255 255 255 / .1); color: #fff; }

/* Page hero (pagine interne) */
.page-hero { background: var(--navy-900); color: #cfd6ee; position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -120px; bottom: -200px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgb(236 77 31 / .25), transparent 65%); pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; padding-block: clamp(36px, 6vw, 72px); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }
.page-hero p { max-width: 680px; font-size: 1.125rem; margin: 0; }
.page-hero .eyebrow { color: var(--sun-400); }

.breadcrumb { font-size: .875rem; margin-bottom: 18px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 6px; opacity: .5; }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb--dark { color: var(--muted); }
.breadcrumb--dark a:hover { color: var(--navy-700); }

/* ---------- Card ---------- */
.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 2.5vw, 30px); transition: border-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 1rem; }
.card--link:hover { border-color: var(--navy-100); box-shadow: var(--shadow); transform: translateY(-3px); }
.card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card__link { color: inherit; text-decoration: none; }
.card__link:hover { color: inherit; }
.card .link-arrow { margin-top: auto; padding-top: 8px; }
.card .icon-circle { margin-bottom: 20px; }

/* Intenti (home) */
.intents { margin-top: calc(-1 * clamp(28px, 4vw, 48px)); position: relative; z-index: 2; }
.intent {
  display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--text);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .2s;
}
.intent:hover { color: var(--text); box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--navy-100); }
.intent strong { display: block; color: var(--ink); font-size: 1.08rem; margin-bottom: 2px; }
.intent span { font-size: .95rem; color: var(--muted); }
.intent .icon-circle { flex: none; }
.intent__arrow { margin-left: auto; align-self: center; color: var(--navy-600); }

/* Servizi */
.service ul { list-style: none; padding: 0; margin: 4px 0 16px; display: grid; gap: 6px; font-size: .95rem; }
.service li { display: flex; gap: 8px; align-items: flex-start; }
.service li .icon { width: 18px; height: 18px; color: var(--ok); margin-top: 3px; }

/* Check list */
.checklist { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { color: var(--flame-500); margin-top: 3px; }
.checklist strong { color: var(--ink); }

/* Marchi */
.brand-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.brand-logo {
  display: grid; place-items: center; height: 88px; padding: 14px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s;
}
a.brand-logo:hover { border-color: var(--navy-100); box-shadow: var(--shadow-sm); }
.brand-logo img { max-height: 54px; width: auto; object-fit: contain; mix-blend-mode: multiply; }

.brand-card { padding: 0; overflow: hidden; }
.brand-card__logo { display: grid; place-items: center; height: 130px; border-bottom: 1px solid var(--line); background: #fff; padding: 20px; }
.brand-card__logo img { max-height: 70px; width: auto; mix-blend-mode: multiply; }
.brand-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.brand-card__body p { flex: 1; }
.brand-card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.brand-card__actions { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 4px; }

/* Tag / badge */
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  background: var(--navy-50); color: var(--navy-800); font-size: .8rem; font-weight: 600; line-height: 1.4;
}
.tag--flame { background: var(--flame-100); color: var(--flame-600); }
.tag--ok { background: var(--ok-bg); color: var(--ok); }
.tag--line { background: transparent; border: 1px solid var(--line-2); color: var(--muted); }

/* Statistiche / fiducia */
.trust { background: var(--navy-900); color: #cfd6ee; }
.trust h2, .trust h3 { color: #fff; }
.trust .eyebrow { color: var(--sun-400); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: rgb(255 255 255 / .1); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--navy-900); padding: 28px 24px; }
.stat strong { display: block; font-size: clamp(2rem, 3.4vw, 2.75rem); color: #fff; letter-spacing: -0.04em; line-height: 1.05; }
.stat > span { font-size: .95rem; }
.client-list { columns: 2 260px; column-gap: 32px; list-style: none; padding: 0; margin: 0; }
.client-list li { break-inside: avoid; display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid rgb(255 255 255 / .1); }
.client-list .icon { color: var(--sun-400); margin-top: 4px; width: 18px; height: 18px; }
.section--soft .client-list li, .section .client-list--light li { border-color: var(--line); }
.client-list--light .icon { color: var(--flame-500); }

/* Passi */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); list-style: none; padding: 0; margin: 0; }
.step { counter-increment: step; position: relative; padding: 24px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.step::before {
  content: counter(step, decimal-leading-zero); display: block; font-size: .9rem; font-weight: 800; color: var(--flame-500);
  letter-spacing: .04em; margin-bottom: 14px;
}
.step h3 { font-size: 1.1rem; }
.step p { font-size: .97rem; color: var(--muted); margin: 0; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 28px 44px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 4px solid var(--navy-700);
}
.timeline li:last-child::before { border-color: var(--flame-500); }
.timeline strong { display: block; font-size: 1.15rem; color: var(--ink); letter-spacing: -0.02em; }
.timeline p { margin: 2px 0 0; color: var(--muted); }

/* Media */
.media-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.media-stack img { border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.media-stack img:first-child { grid-column: span 2; aspect-ratio: 16/10; }

/* Galleria foto */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.photo-grid a { display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; background: var(--bg-soft); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.photo-grid a:hover img { transform: scale(1.05); }

/* Lavori */
.work-card { padding: 0; overflow: hidden; }
.work-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.work-card:hover .work-card__media img { transform: scale(1.04); }
.work-card__count {
  position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px; background: rgb(8 18 58 / .78); color: #fff; font-size: .8rem; font-weight: 600;
}
.work-card__count .icon { width: 15px; height: 15px; }
.work-card__body { padding: 20px 22px 24px; }
.work-card__body h3 { font-size: 1.15rem; }
.work-card__place { display: flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--muted); margin-bottom: 10px; }
.work-card__place .icon { width: 16px; height: 16px; }
.work-card button.card__link { all: unset; cursor: pointer; }
.work-card button.card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.work-card button.card__link:focus-visible::after { outline: 3px solid var(--sun-400); outline-offset: 2px; }

/* CTA banda */
.cta-band { background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); color: #d9dff4; border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgb(236 77 31 / .35), transparent 65%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { max-width: 560px; font-size: 1.1rem; }
.cta-band__inner { display: grid; gap: 24px; align-items: center; }
@media (min-width: 860px) { .cta-band__inner { grid-template-columns: 1fr auto; } }

/* ---------- Catalogo ---------- */
.catalog { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1000px) { .catalog { grid-template-columns: 280px 1fr; } }
.filters { display: grid; gap: 24px; }
@media (min-width: 1000px) { .filters { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; padding-right: 6px; } }
.filters__toggle { display: none; }
@media (max-width: 999px) {
  .filters__toggle { display: inline-flex; }
  .filters { display: none; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
  .filters.is-open { display: grid; }
}
.filter-group h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; font-weight: 700; }
.filter-group h3 { font-size: .95rem; margin: 14px 0 6px; color: var(--ink); }
.filter-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.filter-btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 10px; border: 0; background: transparent; cursor: pointer; text-align: left;
  font-size: .97rem; color: var(--text); transition: background-color .15s;
}
.filter-btn:hover { background: var(--bg-soft); }
.filter-btn[aria-pressed="true"] { background: var(--navy-800); color: #fff; font-weight: 600; }
.filter-btn[aria-pressed="true"] .count { color: rgb(255 255 255 / .75); }
.filter-btn[disabled] { opacity: .45; cursor: default; }
.count { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.search { position: relative; }
.search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { padding-left: 44px; }

.area-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 20px; scrollbar-width: none; }
.area-tabs::-webkit-scrollbar { display: none; }
.area-tab {
  flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-weight: 600; font-size: .95rem; color: var(--ink);
  transition: all .15s;
}
.area-tab:hover { border-color: var(--line-2); }
.area-tab[aria-pressed="true"] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.area-tab .icon { width: 18px; height: 18px; }

.results-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.results-count { font-weight: 600; color: var(--ink); margin: 0; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip-remove {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 12px; border-radius: 999px;
  border: 1px solid var(--navy-100); background: var(--navy-50); color: var(--navy-800); font-size: .85rem; font-weight: 600; cursor: pointer;
}
.chip-remove .icon { width: 15px; height: 15px; }
.chip-remove:hover { background: var(--navy-100); }
.text-btn { background: none; border: 0; padding: 4px; color: var(--navy-700); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: .9rem; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 18px; }
.product-card { padding: 0; overflow: hidden; }
.product-card__media { display: grid; place-items: center; aspect-ratio: 1 / 1; padding: 22px; background: linear-gradient(180deg, #fff, var(--bg-soft)); border-bottom: 1px solid var(--line); }
.product-card__media img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; transition: transform .4s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card__brand { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--flame-600); }
.product-card h3 { font-size: 1.05rem; margin: 0; }
.product-card p { font-size: .9rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .tag { align-self: flex-start; margin-top: auto; }
.product-card__foot { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }

.empty-state { text-align: center; padding: 56px 24px; border: 1.5px dashed var(--line-2); border-radius: var(--radius); }
.empty-state h3 { margin-bottom: 6px; }
.empty-state p { color: var(--muted); }

/* ---------- Scheda prodotto ---------- */
.product { display: grid; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (min-width: 960px) { .product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.gallery__main {
  display: grid; place-items: center; aspect-ratio: 1; width: 100%; padding: clamp(20px, 4vw, 48px);
  background: linear-gradient(180deg, #fff, var(--bg-soft)); border: 1px solid var(--line); border-radius: var(--radius-lg); cursor: zoom-in;
}
.gallery__main img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery__thumbs button {
  width: 76px; height: 76px; padding: 6px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; cursor: pointer;
  display: grid; place-items: center;
}
.gallery__thumbs button[aria-current="true"] { border-color: var(--navy-700); box-shadow: 0 0 0 2px var(--navy-100); }
.gallery__thumbs img { max-height: 100%; object-fit: contain; }
@media (min-width: 960px) { .product__media { position: sticky; top: calc(var(--header-h) + 24px); } }
.product__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.product__brand img { height: 36px; width: auto; mix-blend-mode: multiply; }
.product h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 12px; }
.product__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.quote-box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 6px 0 32px; }
.quote-box h2 { font-size: 1.1rem; margin-bottom: 4px; }
.quote-box p { font-size: .95rem; color: var(--muted); margin-bottom: 16px; }
.quote-box .btn-row .btn { flex: 1 1 200px; }
.download {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--radius); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); margin-bottom: 28px; transition: border-color .2s, background-color .2s;
}
.download:hover { border-color: var(--navy-100); background: var(--navy-50); color: var(--ink); }
.download small { display: block; color: var(--muted); font-size: .85rem; }
.download .icon:last-child { margin-left: auto; color: var(--navy-700); }

.prose { color: var(--text); font-size: 1rem; }
.prose h3 { font-size: 1.1rem; margin: 1.6em 0 .6em; }
.prose h3:first-child { margin-top: 0; }
.prose ul { padding-left: 0; list-style: none; display: grid; gap: 8px; margin: 0 0 1.2em; }
.prose li { position: relative; padding-left: 22px; }
.prose li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--flame-500); }
.prose strong { color: var(--ink); font-weight: 650; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 1.2em; -webkit-overflow-scrolling: touch; }
.prose table { border-collapse: collapse; width: 100%; font-size: .9rem; min-width: 480px; }
.prose td, .prose th { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.prose tr:first-child td { background: var(--navy-900); color: #fff; font-weight: 650; }
.prose tr:nth-child(even) td { background: var(--bg-soft); }
.prose tr:last-child td { border-bottom: 0; }

/* ---------- Contatti / form ---------- */
.contact-layout { display: grid; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (min-width: 960px) { .contact-layout { grid-template-columns: .85fr 1.15fr; } }
.contact-cards { display: grid; gap: 12px; }
.contact-card {
  display: flex; gap: 16px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--text); background: #fff; transition: border-color .2s, box-shadow .2s;
}
a.contact-card:hover { border-color: var(--navy-100); box-shadow: var(--shadow-sm); color: var(--text); }
.contact-card small { display: block; color: var(--muted); font-size: .85rem; }
.contact-card strong { color: var(--ink); font-size: 1.1rem; letter-spacing: -0.01em; }
.hours { margin-top: 12px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.hours h3 { display: flex; gap: 10px; align-items: center; font-size: 1.05rem; margin-bottom: 8px; }
.hours h3 .icon { color: var(--navy-700); }
.hours ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; color: var(--ink); }
.company-data { font-size: .95rem; color: var(--muted); margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.company-data dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.company-data dt { color: var(--muted); }
.company-data dd { margin: 0; color: var(--ink); }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3.5vw, 40px); box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.6rem; margin-bottom: 6px; }
.form-card > p { color: var(--muted); }
.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: .95rem; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: #fff;
  transition: border-color .15s, box-shadow .15s; font-size: 1rem;
}
.textarea { min-height: 140px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23646e86' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.input:hover, .select:hover, .textarea:hover { border-color: #b4bccf; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 4px var(--navy-100); }
.field.has-error .input, .field.has-error .textarea { border-color: var(--err); }
.field-error { font-size: .875rem; color: var(--err); display: none; }
.field.has-error .field-error { display: block; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.segmented { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line-2);
  cursor: pointer; font-weight: 600; font-size: .95rem; transition: all .15s; background: #fff;
}
.segmented label .icon { color: var(--muted); }
.segmented input:checked + label { border-color: var(--navy-700); background: var(--navy-50); color: var(--navy-900); box-shadow: 0 0 0 1px var(--navy-700) inset; }
.segmented input:checked + label .icon { color: var(--navy-700); }
.segmented input:focus-visible + label { outline: 3px solid var(--sun-400); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--text); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy-700); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; font-size: .97rem; margin-bottom: 20px; }
.alert--ok { background: var(--ok-bg); color: #0b5c42; }
.alert--err { background: var(--err-bg); color: #8a1c13; }
.alert[hidden] { display: none; }
.alert .icon { margin-top: 2px; }

/* Mappa con consenso */
.map { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--navy-50); border: 1px solid var(--line); }
@media (max-width: 640px) { .map { aspect-ratio: 4 / 5; } }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__consent {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px;
  background:
    repeating-linear-gradient(0deg, transparent 0 38px, rgb(28 53 150 / .06) 38px 39px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgb(28 53 150 / .06) 38px 39px),
    var(--navy-50);
}
.map__consent > div { max-width: 420px; }
.map__consent p { font-size: .92rem; color: var(--muted); }
.map__pin { width: 56px; height: 56px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; background: var(--flame-500); color: #fff; box-shadow: 0 8px 24px rgb(236 77 31 / .35); }
.map__pin .icon { width: 28px; height: 28px; }

/* ---------- Lightbox ---------- */
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(6 12 36 / .94); color: #fff; }
.lightbox::backdrop { background: rgb(6 12 36 / .94); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; gap: 16px; }
.lightbox__counter { font-size: .9rem; opacity: .8; font-variant-numeric: tabular-nums; }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 64px; }
@media (max-width: 640px) { .lightbox__stage { padding: 0 8px; } }
.lightbox__stage img { max-width: 100%; max-height: calc(100vh - 170px); width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.lightbox__caption { text-align: center; padding: 14px 20px 22px; max-width: 760px; margin: 0 auto; font-size: .95rem; opacity: .9; }
.lightbox__caption strong { display: block; font-size: 1.05rem; color: #fff; }
.lb-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: rgb(255 255 255 / .1); border: 0; color: #fff; cursor: pointer; transition: background-color .15s;
}
.lb-btn:hover { background: rgb(255 255 255 / .2); }
.lb-btn[hidden] { display: none; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 8px; } .lightbox__next { right: 8px; }
@media (max-width: 640px) { .lightbox__prev, .lightbox__next { top: auto; bottom: -60px; transform: none; } .lightbox__prev { left: 16px; } .lightbox__next { right: 16px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #aab3d3; font-size: .95rem; padding-top: clamp(48px, 6vw, 80px); }
.site-footer a { color: #e4e8f6; text-decoration: none; }
.site-footer a:hover { color: var(--sun-400); }
.footer-grid { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding-bottom: 48px; }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.site-footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 16px; font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand__tag { color: #8e98bd; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { margin-top: 3px; width: 17px; height: 17px; color: var(--sun-400); }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / .1); padding-block: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: .85rem; color: #8e98bd; }

/* ---------- Animazioni ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-l { margin-top: clamp(28px, 4vw, 48px); }
.text-muted { color: var(--muted); }
.center { text-align: center; }
[hidden] { display: none !important; }

/* ---------- Stampa ---------- */
@media print {
  .topbar, .site-header, .mobile-bar, .site-footer, .quote-box, .gallery__thumbs, .cta-band, .slider__controls, .slider__swoosh { display: none !important; }
  body { padding: 0; font-size: 11pt; }
  .page-hero { background: none; color: #000; } .page-hero h1 { color: #000; }
}
.card .link-arrow.card__link { color: var(--navy-700); }
.card .link-arrow.card__link:hover { color: var(--flame-600); }
.catalog > *, .product > *, .contact-layout > *, .split > * { min-width: 0; }
/* immagini prodotto: riquadro fisso, mai ingrandite oltre la dimensione reale */
.product-card__media, .gallery__main { position: relative; }
.product-card__media img, .gallery__main img {
  position: absolute; inset: 22px; width: calc(100% - 44px); height: calc(100% - 44px); max-height: none; object-fit: scale-down;
}
.gallery__main img { inset: clamp(20px, 4vw, 48px); width: calc(100% - 2 * clamp(20px, 4vw, 48px)); height: calc(100% - 2 * clamp(20px, 4vw, 48px)); }
@media (max-width: 599px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-card__media { padding: 12px; }
  .product-card__media img { inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); }
  .product-card__body { padding: 12px 12px 14px; gap: 4px; }
  .product-card h3 { font-size: .95rem; }
  .product-card p { -webkit-line-clamp: 2; font-size: .82rem; }
  .product-card .tag { font-size: .72rem; padding: 3px 8px; }
  .product-card__foot .tag--line { display: none; }
}
@media (max-width: 479px) { .segmented { grid-template-columns: 1fr; } }
/* il backdrop-filter renderebbe l'header contenitore del pannello fixed del menu */
@media (max-width: 1099px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  body.nav-open .mobile-bar { display: none; }
}
