/* Start IT — foglio di stile unico
   Design: Claude Design, Proposta C. Token da handoff/README.md. */

/* ---------- font-face (self-hosted, woff2, subset latin + latin-ext) ---------- */

@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-serif-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-serif-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-serif-latin-400-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-serif-latin-ext-400-italic.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/manrope-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/manrope-latin-ext-400.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/manrope-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/manrope-latin-ext-500.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/manrope-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/manrope-latin-ext-600.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/manrope-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/manrope-latin-ext-700.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- design tokens (hex fallback, oklch override) ---------- */

:root {
  /* fondali */
  --paper:        #e9e4d9;
  --card:         #f4efe6;
  --card-alt:     #efe9df;

  /* inchiostro */
  --ink:          #21293a;
  --ink-body:     #4e5765;
  --ink-soft:     #5d6673;
  --ink-muted:    #7f8794;

  /* azione */
  --amber:        #d18845;
  --amber-hover:  #c37a37;
  --amber-ink:    #2e2318;
  --amber-label:  #a5622f;
  --amber-num:    #c39a74;
  --amber-text:   #844a1f;   /* testo arancio su fondo arancio tenue (AA) */

  /* accento freddo */
  --teal:         #1a7b96;
  --teal-dark:    #0e6076;

  /* scuro */
  --dark:         #21293a;
  --dark-footer:  #1c2230;
  --on-dark:      #f4efe6;
  --on-dark-soft: #c9c2b0;

  /* linee */
  --rule:         #dcd6c8;
  --rule-strong:  #c9c2b0;
  --rule-soft:    #bab2a0;

  /* tipografia */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --content-max: 700px;
}

@supports (color: oklch(0 0 0)) {
  :root {
    --paper:        oklch(0.93 0.014 85);
    --card:         oklch(0.96 0.012 85);
    --card-alt:     oklch(0.945 0.014 85);

    --ink:          oklch(0.26 0.03 250);
    --ink-body:     oklch(0.38 0.02 250);
    --ink-soft:     oklch(0.44 0.02 250);
    --ink-muted:    oklch(0.58 0.02 250);

    --amber:        oklch(0.68 0.14 55);
    --amber-hover:  oklch(0.63 0.14 55);
    --amber-ink:    oklch(0.2 0.03 45);
    --amber-label:  oklch(0.55 0.13 45);
    --amber-num:    oklch(0.72 0.06 55);
    --amber-text:   oklch(0.47 0.097 54);

    --teal:         oklch(0.5 0.11 205);
    --teal-dark:    oklch(0.4 0.1 205);

    --dark:         oklch(0.26 0.03 250);
    --dark-footer:  oklch(0.22 0.025 250);
    --on-dark:      oklch(0.96 0.012 85);
    --on-dark-soft: oklch(0.82 0.02 85);

    --rule:         oklch(0.86 0.02 85);
    --rule-strong:  oklch(0.82 0.02 85);
    --rule-soft:    oklch(0.78 0.02 85);
  }
}

/* ---------- reset ---------- */

*, *::before, *::after { box-sizing: border-box; }

:root { --header-h: 78px; }

html {
  -webkit-text-size-adjust: 100%;
  /* le ancore non finiscono sotto l'header fisso */
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* dissolvenza tra una pagina e l'altra (browser che la supportano;
     gli altri cambiano pagina normalmente) */
  @view-transition { navigation: auto; }
}

::view-transition-old(root),
::view-transition-new(root) { animation-duration: 280ms; }

/* header e barra mobile restano ferme durante il cambio pagina */
.site-header { view-transition-name: site-header; }
.mobile-action-bar { view-transition-name: mobile-action-bar; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, p, ul, ol, dl { margin: 0; }

ul { padding: 0; list-style: none; }

a {
  color: var(--teal);
  text-decoration: none;
}
a:hover { color: var(--teal-dark); text-decoration: underline; }

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

button { font: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- type ---------- */

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-label);
}
.eyebrow--muted { color: var(--ink-muted); }

h1, h2, .h-display {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
}

.lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: var(--content-max);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }

.btn-dark {
  background: var(--ink);
  color: var(--card);
}
.btn-dark:hover { background: var(--dark-footer); color: var(--card); }

.btn-outline {
  border-color: var(--rule-soft);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover { background: var(--card-alt); color: var(--ink); }

.btn-amber {
  background: var(--amber);
  color: var(--amber-ink);
  font-weight: 700;
  transition: background 150ms ease;
}
.btn-amber:hover { background: var(--amber-hover); color: var(--amber-ink); }

.btn-amber-sm {
  padding: 12px 20px;
  font-size: 14px;
}

/* Pulsante "Apri un ticket" nell'header: arancio tenue, pieno all'hover */
.site-header .btn-amber {
  background: rgba(209, 136, 69, 0.16);
  background: color-mix(in srgb, var(--amber) 16%, transparent);
  border-color: rgba(209, 136, 69, 0.55);
  border-color: color-mix(in srgb, var(--amber) 55%, transparent);
  color: var(--amber-text);
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.site-header .btn-amber:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--amber-ink);
}

/* "Assistenza remota" accanto al ticket: stesso riquadro, ma neutro, così
   il ticket resta l'azione principale */
.site-header .btn-remote {
  border-color: var(--rule-soft);
  color: var(--ink);
  background: transparent;
  white-space: nowrap;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.site-header .btn-remote:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--card);
}

/* ---------- skip link ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--card);
  padding: 12px 20px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 48px;
  border-bottom: 1px solid var(--rule);
  background: var(--card);
}

.site-header__logo img {
  height: 40px;
  width: auto;
}

.site-header__right {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav__list {
  display: flex;
  gap: 26px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}

.site-nav__list a {
  color: inherit;
}
.site-nav__list a:hover { color: var(--ink); text-decoration: none; }

.site-nav__list [aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
  border-bottom: 2px solid var(--amber);
  padding-bottom: 2px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.lang-switch a { color: var(--ink-soft); }
.lang-switch a:hover { color: var(--ink); text-decoration: none; }
.lang-switch [aria-current="page"] { color: var(--ink); text-decoration: none; }
.lang-switch__sep { color: var(--rule-strong); }

.header-divider {
  width: 1px;
  height: 26px;
  background: var(--rule);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-phone {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.header-phone:hover { text-decoration: none; color: var(--teal); }

.site-nav__list a,
.site-header .btn { white-space: nowrap; }

/* Desktop stretto: con due pulsanti la barra non ci sta tutta. Si stringono
   gli spazi e il numero lascia il posto (resta nella fascia scura e nei contatti). */
@media (min-width: 1100px) and (max-width: 1339px) {
  .site-header { padding: 0 32px; }
  .site-header__right { gap: 20px; }
  .site-nav__list { gap: 18px; }
  .header-phone { display: none; }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
}

/* ---------- mobile nav dropdown ---------- */

.mobile-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 35;
  background: var(--card);
  border-bottom: 1px solid var(--rule);
  padding: 8px 20px 16px;
}

.mobile-nav[hidden] { display: none; }

.mobile-nav .site-nav__list {
  flex-direction: column;
  gap: 0;
}

.mobile-nav .site-nav__list a {
  display: block;
  padding: 14px 4px;
  border-bottom: 1px solid var(--rule);
  font-size: 16px;
}

.nav-toggle.is-active span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}
.nav-toggle.is-active span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

@media (min-width: 1100px) {
  .mobile-nav { display: none !important; }
}

/* ---------- page shell ---------- */

.page-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
}

.page-aside {
  border-right: 1px solid var(--rule);
  background: var(--card-alt);
  padding: 44px 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 1100px) {
  .page-aside {
    position: sticky;
    top: var(--header-h);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  /* il footer sta fuori da <main> ma resta nella colonna del contenuto,
     con l'indice laterale che gli scorre accanto */
  .page-shell > .page-aside { grid-row: 1 / span 2; }
  .page-shell > .site-footer { grid-column: 2; }
}

.page-aside__intro {
  padding: 0 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-aside__title {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.05;
  color: var(--ink);
}

.aside-nav {
  position: relative;
  display: flex;
  flex-direction: column;
}

.aside-nav a,
.aside-nav__current {
  padding: 13px 28px;
  font-size: 15px;
  color: var(--ink-soft);
  border-left: 3px solid transparent;
  transition: color 150ms ease, background 200ms ease, border-color 150ms ease;
}

/* Indice lungo (servizi): voci più ravvicinate, solo nella colonna verticale */
@media (min-width: 1100px) {
  .aside-nav--compact a,
  .aside-nav--compact .aside-nav__current {
    padding-top: 10px;
    padding-bottom: 10px;
    line-height: 1.4;
  }
}

.aside-nav a:hover {
  color: var(--ink);
  border-left-color: var(--rule-strong);
  text-decoration: none;
}

.aside-nav [aria-current="location"] {
  font-weight: 600;
  color: var(--ink);
  border-left-color: var(--amber);
  background: var(--card);
}

/* indice che segue lo scroll (site.js): la barretta ambra è un unico
   indicatore che scivola sulla voce della sezione in vista */
.aside-nav--spy::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: var(--spy-h, 0);
  background: var(--amber);
  opacity: var(--spy-o, 0);
  transform: translateY(var(--spy-y, 0));
}
.aside-nav--spy.is-ready::before {
  transition: transform 320ms cubic-bezier(0.16, 0.8, 0.24, 1),
              height 320ms cubic-bezier(0.16, 0.8, 0.24, 1),
              width 320ms cubic-bezier(0.16, 0.8, 0.24, 1),
              opacity 200ms ease;
}
.aside-nav--spy [aria-current="location"] { border-left-color: transparent; }

.page-aside__contact {
  margin: 0 28px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-aside__contact p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-body);
}

/* "Portale clienti" in fondo alla colonna: margin-top auto lo spinge in basso
   (la colonna è alta quanto lo schermo, perché sticky) */
.page-aside__client {
  margin: auto 28px 0;
}

.page-aside__client .btn {
  width: 100%;
  padding: 13px 18px;
  font-size: 14px;
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
  white-space: nowrap;
  transition: background 150ms ease, color 150ms ease;
}
.page-aside__client .btn:hover {
  background: var(--ink);
  color: var(--card);
}

/* ---------- hero ---------- */

.hero {
  padding: 76px 48px 56px;
}

.hero__row {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: end;
}

.hero h1 {
  font-size: 84px;
  line-height: 0.98;
  letter-spacing: -0.015em;
}

.hero h1 em,
.h-accent {
  font-style: italic;
  color: var(--teal);
}

/* inline-block: serve per animare la seconda riga del titolo */
.hero h1 .h-accent { display: inline-block; }

.hero p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* ---------- timeline (la giornata) ---------- */

.timeline-section {
  border-top: 1px solid var(--rule);
  background: var(--card-alt);
  padding: 60px 48px 66px;
}

.timeline-section__head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.timeline-section__head p {
  font-size: 16px;
  color: var(--ink-soft);
}

.timeline {
  position: relative;
  padding-top: 26px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--rule-strong);
}

.timeline__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 26px;
}

.timeline__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: -30px;
  width: 9px;
  height: 9px;
  background: var(--amber);
}

.timeline__num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--amber-num);
}

.timeline__title {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.08;
  color: var(--ink);
}

.timeline__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ---------- services registry ---------- */

.services-section {
  padding: 66px 48px 20px;
}

.services-section__head {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: end;
  margin-bottom: 36px;
}

.services-section__head h2 {
  font-size: 46px;
  line-height: 1.05;
}

.services-section__head p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.services-list {
  border-top: 1px solid var(--rule-strong);
}

.service-row {
  position: relative;
  display: grid;
  grid-template-columns: 78px 300px 1fr 130px;
  gap: 24px;
  align-items: baseline;
  padding: 26px 12px;
  border-bottom: 1px solid var(--rule);
  color: inherit;
  transition: background 150ms ease;
}

/* barretta ambra che cresce sul bordo sinistro in hover */
.service-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--amber);
  transform: scaleY(0);
  transition: transform 220ms cubic-bezier(0.16, 0.8, 0.24, 1);
}

.service-row:hover {
  background: var(--card-alt);
  text-decoration: none;
}

.service-row:hover .service-row__cta span {
  transform: translateX(3px);
}

.service-row:focus-visible::before { transform: scaleY(1); }
.service-row:focus-visible .service-row__num { color: var(--amber); }

@media (hover: hover) {
  .service-row:hover::before { transform: scaleY(1); }
  .service-row:hover .service-row__num { color: var(--amber); }
}

.service-row__num {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  color: var(--amber-num);
  transition: color 150ms ease;
}

.service-row__title {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.service-row__title strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.1;
  color: var(--ink);
}

.service-row__tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.service-row__desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-body);
}

.service-row__cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
  text-align: right;
}

.service-row__cta span {
  display: inline-block;
  transition: transform 150ms ease;
}

/* ---------- how we work ---------- */

.howwework-section {
  padding: 62px 48px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
}

.howwework-section__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.howwework-section__head h2 {
  font-size: 40px;
  line-height: 1.05;
}

.howwework-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.howwework-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 22px;
}

/* filetto ambra in testa alla card (pseudo-elemento: si può disegnare) */
.howwework-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--amber);
  transform-origin: left;
}

.howwework-card strong {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
}

.howwework-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* ---------- partners ---------- */

.partners-section {
  padding: 20px 48px 62px;
}

.partners-card {
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 32px 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px 30px;
  align-items: center;
}

.partners-grid__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.partners-grid__cell img {
  height: auto;
  width: auto;
  max-height: 32px;
  max-width: 100%;
  transition: filter 200ms ease;
}

.partners-grid__word {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  transition: color 200ms ease;
}
.partners-grid__word img { width: 30px; height: 30px; }

/* correzioni ottiche: il marchio HP è tondo, QNAP è molto largo e pieno */
.partners-grid__cell img[src$="hp-flat.png"] { max-height: 44px; }
.partners-grid__cell img[src$="qnap-flat.svg"] { max-height: 21px; }

/* in hover il logo si scurisce: resta grigio, non viene ricolorato */
@media (hover: hover) {
  .partners-grid__cell:hover img { filter: brightness(0.55); }
  .partners-grid__word:hover { color: var(--ink); }
}

/* ---------- CTA band (dark) ---------- */

.cta-band {
  background: var(--dark);
  padding: 66px 48px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: center;
}

.cta-band__copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cta-band__copy h2 {
  font-size: 44px;
  line-height: 1.05;
  color: var(--on-dark);
}

.cta-band__copy p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--on-dark-soft);
  max-width: 540px;
}

.cta-band__actions {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-end;  /* senza subgrid: ogni riga a filo del bordo destro */
  justify-self: end;      /* blocco contatti allineato al bordo destro */
  width: max-content;
  max-width: 100%;
}

/* Contatti della CTA: elenco testuale, senza riquadri.
   Padding verticale 10px: ogni riga resta alta almeno 44px (area di tocco). */
.cta-tile {
  padding: 10px 0;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 12px;
  color: var(--on-dark);
  text-decoration: none;
}
.cta-tile:hover { text-decoration: none; }

/* Dove c'è subgrid i contatti fanno da tabella a due colonne: etichette
   allineate a destra tra loro, valori allineati a sinistra tra loro.
   Ogni riga resta un unico link (subgrid, non display: contents). */
@supports (grid-template-columns: subgrid) {
  .cta-band__actions {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 12px;
    align-items: baseline;
  }
  .cta-tile {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: subgrid;
  }
}

.cta-tile__label {
  min-width: 52px;
  text-align: right;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}

.cta-tile__value {
  font-size: 16px;
  font-weight: 600;
  color: var(--on-dark);
  transition: color 150ms ease;
}
.cta-tile:hover .cta-tile__value { color: var(--amber); }

/* Telefono: evidenziato solo dall'etichetta arancio */
.cta-tile--amber .cta-tile__label { color: var(--amber); }

/* Riga con freccia (es. "Apri un ticket") */
.cta-tile--link .cta-tile__value {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.cta-link {
  padding: 16px 26px;
  border: 1px solid var(--ink-soft);
  color: var(--on-dark);
  font-size: 15px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  text-decoration: none;
}
.cta-link:hover { background: rgba(244, 239, 230, 0.06); text-decoration: none; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--dark-footer);
  padding: 26px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--on-dark-soft);
}

.site-footer__links {
  display: flex;
  gap: 24px;
}

.site-footer a {
  color: var(--on-dark-soft);
}
.site-footer a:hover { color: var(--on-dark); }

/* ---------- mobile action bar ---------- */

.mobile-action-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--rule);
  z-index: 20;
}

.mobile-action-bar a {
  padding: 18px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.mobile-action-bar__call {
  background: var(--ink);
  color: var(--card);
}

.mobile-action-bar__ticket {
  background: var(--amber);
  color: var(--amber-ink);
  font-weight: 700;
}

/* ---------- internal page hero ---------- */

.page-hero {
  padding: 72px 48px 52px;
  border-bottom: 1px solid var(--rule);
}

.page-hero__row {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: end;
}

.page-hero h1 {
  line-height: 1;
  letter-spacing: -0.015em;
}

.page-hero--servizi h1 { font-size: 74px; }
.page-hero--contatti h1 { font-size: 56px; }
.page-hero--privacy h1 { font-size: 52px; }

.page-hero p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.page-hero .eyebrow { display: block; margin-bottom: 14px; }

.page-hero--narrow .page-hero__row {
  display: block;
  max-width: var(--content-max);
}
.page-hero--narrow p { max-width: 560px; margin-top: 14px; }

.visit-card .btn { align-self: flex-start; }


/* ---------- service detail grid (servizi.html) ---------- */

.service-detail-section {
  padding: 52px 48px;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px 56px;
}

.service-detail {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-detail__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--amber);
}

.service-detail__num {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  color: var(--amber-num);
}

.service-detail__title {
  flex: 1;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.05;
  color: var(--ink);
}

.service-detail__tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.service-detail__desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-body);
}

.service-detail__list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 4px;
}

.service-detail__list li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.service-detail__list li::before {
  content: '—';
  color: var(--amber-num);
}

.service-detail__helpbox {
  margin: 0 28px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-detail__helpbox p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-body);
}

.service-detail__helpbox a {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.service-detail__helpbox a:hover { color: var(--teal); }

/* ---------- chi siamo: story + values ---------- */

.story-section {
  border-top: 1px solid var(--rule);
  background: var(--card-alt);
  padding: 60px 48px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
}

.story-section__head h2 {
  font-size: 38px;
  line-height: 1.05;
}

.story-section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 4px;
}

.story-section__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: var(--content-max);
}

.story-section__body p {
  line-height: 1.7;
  color: var(--ink-body);
}
.story-section__body p:first-of-type {
  font-size: 18px;
  color: var(--ink-soft);
}
.story-section__body p:not(:first-of-type) {
  font-size: 16px;
}

/* "Come siamo cambiati": tappe in verticale lungo una linea. Le tappe passate
   hanno il quadratino vuoto, l'ultima ("adesso") pieno. */
.evolution-section {
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  border-bottom: 1px solid var(--rule);
}

.evolution-section__head h2 {
  font-size: 38px;
  line-height: 1.05;
}

.evolution {
  max-width: var(--content-max);
  padding-left: 28px;
  border-left: 1px solid var(--rule-strong);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.evolution__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.evolution__item::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 2px;
  width: 11px;
  height: 11px;
  background: var(--paper);
  border: 2px solid var(--amber);
}

.evolution__item--now::before { background: var(--amber); }

.evolution__num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-label);
}

.evolution__title {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.1;
  color: var(--ink);
}

.evolution__desc,
.evolution__points li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.evolution__points {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.evolution__points strong {
  font-weight: 700;
  color: var(--ink);
}

.values-section {
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  border-bottom: 1px solid var(--rule);
}

.values-section__head h2 {
  font-size: 38px;
  line-height: 1.05;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-content: start;
}

.value-card {
  border: 1px solid var(--rule);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.value-card strong {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.value-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ---------- contatti ---------- */

.page-hero--contatti { border-bottom: 0; padding-bottom: 44px; }

/* niente riquadri: due colonne per i contatti diretti, tre per i servizi clienti, solo filetti */
.contact-list {
  padding: 0 48px 64px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.contact-direct {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-line {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
}
a.contact-line:hover { color: var(--ink); text-decoration: none; }

.contact-line__label,
.contact-services__head {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.contact-line__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--amber-label);
}

.contact-line__value {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.1;
  transition: color 200ms ease;
}

.contact-line__note {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-body);
}

@media (hover: hover) {
  a.contact-line:hover .contact-line__value { color: var(--teal); font-style: italic; }
}
a.contact-line:focus-visible { outline-offset: 6px; }

.contact-services__head { font-family: var(--font-body); margin-bottom: 18px; }

.contact-services__list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.contact-service {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--rule-strong);
  color: var(--ink);
  text-decoration: none;
}
a.contact-service:hover { color: var(--ink); text-decoration: none; }

.contact-service__num {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1;
  color: var(--amber-num);
  transition: color 200ms ease;
}

.contact-service__title {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.15;
}
.contact-service__title span {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--amber);
  margin-left: 4px;
  transition: transform 200ms ease;
}

.contact-service__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

@media (hover: hover) {
  a.contact-service:hover { border-top-color: var(--amber); }
  a.contact-service:hover .contact-service__num { color: var(--amber); }
  a.contact-service:hover .contact-service__title span { transform: translate(2px, -2px); }
}
a.contact-service:focus-visible { outline-offset: 6px; }

.visit-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--rule);
}

.visit-card {
  padding: 40px 48px;
  background: var(--card-alt);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.visit-card h2 {
  font-size: 30px;
  line-height: 1.05;
}

.visit-table {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px 20px;
  font-size: 15px;
  color: var(--ink);
}

.visit-table dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-top: 3px;
}

.visit-table dd {
  margin: 0;
  line-height: 1.55;
}

.visit-map {
  position: relative;
  min-height: 330px;
}

.visit-map img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 48%;
}

/* Contatti su desktop: spazi più raccolti, così in Full HD (circa 950px utili)
   la pagina sta in uno schermo senza scorrere */
@media (min-width: 1100px) {
  .page-hero--contatti { padding-top: 34px; padding-bottom: 24px; }
  .page-hero--contatti .eyebrow { margin-bottom: 10px; }
  .page-hero--contatti.page-hero--narrow p { margin-top: 10px; }
  .contact-list { padding-bottom: 28px; gap: 24px; }
  .contact-line { padding-top: 16px; gap: 6px; }
  .contact-services__head { margin-bottom: 12px; }
  .contact-service { padding-top: 14px; gap: 6px; }
  .visit-card { padding-top: 20px; padding-bottom: 20px; gap: 12px; }
  .visit-card .btn { padding: 12px 20px; }
  .visit-table { gap: 8px 20px; }
  .visit-map { min-height: 220px; }

  /* La pagina riempie sempre lo schermo: sugli schermi alti il footer resta
     in fondo e la fascia sede + mappa si allunga a occupare lo spazio */
  .page-fill {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  .page-fill main {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .page-fill .visit-section { flex: 1; }
}

.visit-map__btn {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 1;
}

/* ---------- privacy ---------- */

.legal-section {
  padding: 34px 48px 56px;
  max-width: 760px;
}

.legal-section h2 {
  font-size: 30px;
  line-height: 1.1;
  margin-top: 40px;
}
.legal-section h2:first-child { margin-top: 0; }

.legal-section p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-body);
  margin-top: 16px;
}

.legal-section p:first-of-type { margin-top: 16px; }

.legal-section strong { font-weight: 600; color: var(--ink); }

.legal-subhead {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-label);
  margin-top: 26px;
}

.legal-table {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 10px 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 22px 0;
  margin: 16px 0;
}
.legal-table dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-top: 3px;
}
.legal-table dd { margin: 0; }

.legal-footer {
  border-top: 1px solid var(--rule);
  background: var(--card-alt);
  padding: 26px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
}

.legal-footer__date {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.legal-footer__back {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- finestra assistenza remota ---------- */

/* lo sfondo resta fermo mentre la finestra è aperta */
html:has(.remote-dialog[open]) { overflow: hidden; }

.remote-dialog {
  width: min(440px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--rule);
  background: var(--card);
  color: var(--ink-body);
  box-shadow: 0 24px 60px rgba(28, 34, 48, 0.28);
}
.remote-dialog::backdrop {
  background: rgba(28, 34, 48, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.remote-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 36px 32px 32px;
}

.remote-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.remote-close:hover { color: var(--ink); }

.remote-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
}
.remote-intro { margin: 0; font-size: 15px; line-height: 1.55; }

.remote-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.remote-field input {
  padding: 12px 14px;
  border: 1px solid var(--rule-soft);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 400;
}
.remote-field input[name="supportSessionId"] {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}
.remote-field input:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 0;
  border-color: var(--teal);
}

.remote-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}
.remote-actions .btn { padding: 13px 22px; }

@media (prefers-reduced-motion: no-preference) {
  .remote-dialog[open] { animation: remote-in 200ms ease-out; }
  .remote-dialog[open]::backdrop { animation: remote-fade 200ms ease-out; }
}
@keyframes remote-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
}
@keyframes remote-fade {
  from { opacity: 0; }
}

@media (max-width: 480px) {
  .remote-form { padding: 32px 20px 22px; }
  .remote-title { font-size: 30px; }
  .remote-actions { flex-direction: column-reverse; }
  .remote-actions .btn { width: 100%; }
}

/* ---------- animazioni ---------- */
/* Attive solo se site.js ha aggiunto html.js-ready: senza JS, o con
   "riduci animazioni" attivo nel sistema, tutto resta visibile da subito.
   La comparsa usa un'animation (non una transition) così non interferisce
   con le transizioni di hover degli stessi elementi. */

@keyframes reveal {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

html.js-ready .reveal:not(.is-visible) { opacity: 0; }

html.js-ready .reveal.is-visible {
  animation: reveal 600ms cubic-bezier(0.16, 0.8, 0.24, 1) backwards;
  animation-delay: var(--reveal-delay, 0ms);
}

/* titolo della home a due tempi: prima riga, poi la seconda, poi il resto */
html.js-ready .hero__row.is-visible .h-accent {
  animation: reveal 700ms cubic-bezier(0.16, 0.8, 0.24, 1) 320ms backwards;
}
html.js-ready .hero__row.is-visible p {
  animation: reveal 700ms cubic-bezier(0.16, 0.8, 0.24, 1) 480ms backwards;
}
html.js-ready .hero__actions.is-visible { --reveal-delay: 620ms; }

/* la riga della "giornata" si disegna da sinistra a destra... */
html.js-ready .timeline::before {
  transform: scaleX(0);
  transform-origin: left;
}
html.js-ready .timeline.is-visible::before {
  transform: scaleX(1);
  transition: transform 900ms cubic-bezier(0.16, 0.8, 0.24, 1);
}

/* ...e i quadratini si accendono uno dopo l'altro mentre la linea li raggiunge */
html.js-ready .timeline__item::before {
  background: var(--rule-strong);
  transform: scale(0.35);
}
html.js-ready .timeline.is-visible .timeline__item::before {
  background: var(--amber);
  transform: none;
  transition: transform 380ms cubic-bezier(0.34, 1.56, 0.64, 1),
              background-color 380ms ease;
}
html.js-ready .timeline.is-visible .timeline__item:nth-child(1)::before { transition-delay: 60ms; }
html.js-ready .timeline.is-visible .timeline__item:nth-child(2)::before { transition-delay: 170ms; }
html.js-ready .timeline.is-visible .timeline__item:nth-child(3)::before { transition-delay: 290ms; }
html.js-ready .timeline.is-visible .timeline__item:nth-child(4)::before { transition-delay: 420ms; }
html.js-ready .timeline.is-visible .timeline__item:nth-child(5)::before { transition-delay: 570ms; }

/* il filetto ambra delle card "Come lavoriamo" si disegna quando entra in vista */
html.js-ready .howwework-card::before { transform: scaleX(0); }
html.js-ready .howwework-card.is-visible::before {
  transform: scaleX(1);
  transition: transform 800ms cubic-bezier(0.16, 0.8, 0.24, 1);
  transition-delay: calc(var(--reveal-delay, 0ms) + 200ms);
}

@media (prefers-reduced-motion: reduce) {
  html.js-ready .reveal { opacity: 1 !important; animation: none !important; }
}

/* ---------- responsive ---------- */

@media (max-width: 1099px) {
  .site-header .site-nav__list,
  .lang-switch,
  .header-divider,
  .header-phone { display: none; }
  .nav-toggle { display: flex; }

  .page-shell {
    grid-template-columns: 1fr;
  }

  .page-aside {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding: 0;
    overflow-x: auto;
  }

  .page-aside__intro,
  .page-aside__contact,
  .page-aside__client { display: none; }

  .aside-nav {
    flex-direction: row;
  }

  .aside-nav a,
  .aside-nav__current {
    border-left: 0;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
  }

  .aside-nav [aria-current="location"] {
    border-left: 0;
    border-bottom-color: var(--amber);
  }

  /* indice orizzontale: l'indicatore scorre sotto le voci */
  .aside-nav--spy::before {
    top: auto;
    bottom: 0;
    width: var(--spy-w, 0);
    height: 3px;
    transform: translateX(var(--spy-x, 0));
  }
  .aside-nav--spy [aria-current="location"] { border-bottom-color: transparent; }

  .service-row {
    grid-template-columns: 56px 1fr auto;
  }
  .service-row__title { grid-column: 2; }
  .service-row__desc { grid-column: 1 / -1; padding-left: 80px; }
  .service-row__cta { text-align: right; }

  .howwework-section,
  .partners-card,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .cta-band__actions { align-items: stretch; justify-self: start; }

  .page-hero__row { grid-template-columns: 1fr; gap: 20px; }
  .page-hero--servizi h1 { font-size: 56px; }

  .service-detail-grid { grid-template-columns: 1fr; }

  .story-section,
  .evolution-section,
  .values-section { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }

  .contact-services__list { grid-template-columns: 1fr; gap: 0; }
  .contact-service { padding-bottom: 18px; }

  .visit-section { grid-template-columns: 1fr; }
  .visit-map { min-height: 260px; }
}

@media (max-width: 767px) {
  :root { --header-h: 62px; }
  .site-header { padding: 0 20px; }
  .site-header__logo img { height: 30px; }

  .header-actions .btn { padding: 10px 16px; font-size: 13px; }
  .header-actions .btn-remote { display: none; } /* su mobile sta nel menu */

  .page-aside { display: none; }

  .hero { padding: 36px 20px; }
  .hero__row { grid-template-columns: 1fr; gap: 20px; }
  .hero h1 { font-size: 46px; }
  .hero__actions .btn { flex: 1; text-align: center; }

  .timeline-section,
  .services-section,
  .howwework-section,
  .partners-section,
  .cta-band {
    padding: 36px 20px;
  }

  .timeline__list {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-left: 18px;
    border-left: 1px solid var(--rule-strong);
  }
  .timeline::before { display: none; }
  .timeline__item::before { left: -22px; top: 8px; }
  .timeline__title { font-size: 24px; }

  .services-section__head { grid-template-columns: 1fr; gap: 16px; }
  .services-section__head h2 { font-size: 32px; }

  .service-row {
    grid-template-columns: 1fr auto;
    padding: 18px 0;
  }
  .service-row__num { display: none; }
  .service-row__title { grid-column: 1; }
  .service-row__desc { grid-column: 1 / -1; padding-left: 0; }

  .howwework-grid { grid-template-columns: 1fr; gap: 24px; }

  .partners-grid { grid-template-columns: repeat(3, 1fr); }

  .cta-band__copy h2 { font-size: 30px; }

  .site-footer { padding: 20px; flex-direction: column; align-items: flex-start; gap: 10px; }

  .mobile-action-bar { display: grid; }
  body { padding-bottom: 60px; }

  .page-hero { padding: 36px 20px; }
  .page-hero--servizi h1 { font-size: 40px; }
  .page-hero--contatti h1 { font-size: 38px; }
  .page-hero--privacy h1 { font-size: 34px; }
  .story-section__title { font-size: 34px; }

  .service-detail-section { padding: 36px 20px; }
  .service-detail-grid { gap: 34px; }
  .service-detail__title { font-size: 26px; }

  .story-section,
  .evolution-section,
  .values-section,
  .service-detail__helpbox,
  .contact-list,
  .visit-card,
  .legal-section,
  .legal-footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  .story-section,
  .evolution-section,
  .values-section { padding-top: 36px; padding-bottom: 36px; gap: 24px; }
  .evolution-section__head h2 { font-size: 30px; }
  .evolution { padding-left: 20px; }
  .evolution__item::before { left: -26px; }
  .evolution__title { font-size: 24px; }
  .values-grid { grid-template-columns: 1fr; }
  .service-detail__helpbox { margin: 0; }

  .page-hero--contatti { padding-bottom: 24px; }
  .contact-list { padding-bottom: 36px; gap: 40px; }
  .contact-direct { grid-template-columns: 1fr; gap: 28px; }
  .contact-line__value { font-size: 30px; }

  .visit-card { padding-top: 30px; padding-bottom: 30px; }

  .legal-section { padding-top: 24px; padding-bottom: 36px; }
  .legal-footer { padding-top: 20px; padding-bottom: 20px; }
}
