/* The labelled links are the keyboard equivalents of the illustrated hotspots. */
.map-art { display: block; height: auto; }
.map-branch {
  stroke: var(--accent);
  stroke-width: var(--map-stroke, 2.2px);
  stroke-linejoin: round;
  stroke-linecap: round;
  opacity: var(--map-branch-opacity, .6);
  pointer-events: none;
}
.map-node { cursor: pointer; }
.map-node-hit { fill: transparent; }
.map-node-mark { pointer-events: none; }
.map-node-ring { stroke: var(--accent); stroke-width: 1.5px; opacity: var(--map-ring, .24); }
.map-node-disc { fill: var(--map-disc, var(--paper)); stroke: var(--accent); stroke-width: 2px; }
.map-node-icon {
  stroke: var(--map-icon, var(--accent));
  stroke-width: 2.3px;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.map-link[data-map-topic] {
  background-color: var(--map-link-bg, transparent);
  text-decoration-line: var(--map-link-decoration, none);
}
.map-node:hover,
.map:has(a[data-map-topic="adempimenti"]:is(:hover, :focus-visible, :active)) [data-map-topic="adempimenti"],
.map:has(a[data-map-topic="formazione"]:is(:hover, :focus-visible, :active)) [data-map-topic="formazione"],
.map:has(a[data-map-topic="pratica"]:is(:hover, :focus-visible, :active)) [data-map-topic="pratica"],
.map:has(a[data-map-topic="referente"]:is(:hover, :focus-visible, :active)) [data-map-topic="referente"] {
  --map-stroke: 4px;
  --map-branch-opacity: 1;
  --map-ring: .85;
  --map-disc: var(--accent);
  --map-icon: var(--white);
  --map-link-bg: var(--soft);
  --map-link-decoration: underline;
}
.map-art [data-map-topic="formazione"] { --map-delay: 100ms; }
.map-art [data-map-topic="pratica"] { --map-delay: 200ms; }
.map-art [data-map-topic="referente"] { --map-delay: 300ms; }
@media (prefers-reduced-motion: no-preference) {
  .home-hero .map.is-entering { animation: none; }
  .map-center, .map-node-mark { transform-box: fill-box; transform-origin: center; }
  .map.is-entering .map-center { animation: map-center-in 660ms cubic-bezier(.19,.72,.29,1) backwards; }
  .map.is-entering .map-branch { animation: map-draw 720ms ease-out var(--map-delay, 0ms) backwards; }
  .map.is-entering .map-node-mark {
    animation: map-node-in 550ms cubic-bezier(.21,.72,.31,1) calc(170ms + var(--map-delay, 0ms)) backwards;
  }
  @keyframes map-center-in {
    from { transform: scale(.84); opacity: .42; }
    to { transform: none; opacity: 1; }
  }
  @keyframes map-draw {
    from { stroke-dasharray: 1; stroke-dashoffset: 1; }
    to { stroke-dasharray: 1; stroke-dashoffset: 0; }
  }
  @keyframes map-node-in {
    from { transform: scale(.58); opacity: .18; }
    74% { transform: scale(1.08); opacity: 1; }
    to { transform: none; opacity: 1; }
  }
}
@media (max-width: 767px) {
  .map .map-art { order: 0; margin-block: 0 8px; }
}

.home-section-intro { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px, 6vw, 90px); align-items: end; }
.home-section-intro h2 { max-width: 19ch; }
.home-section-intro p, .home-faq-grid > div:first-child > p { max-width: 45ch; color: var(--muted); }
.situation { background: var(--white); border-bottom: 1px solid var(--rule); }
.situation-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 56px); margin-top: 42px; }
.situation-list article { display: flex; flex-direction: column; align-items: start; border-top: 2px solid var(--rule); padding-top: 23px; }
.situation-list svg { color: var(--accent); stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.situation-list h3, .process-list h3 { margin: 15px 0 8px; color: var(--ink); font: 700 clamp(23px, 2.15vw, 31px)/1.16 var(--display); letter-spacing: -.025em; }
.situation-list p, .home-profile-copy p, .process-list p, .faq-list p { color: var(--muted); }
.situation-list p { margin-bottom: 15px; }
.situation-list a { font-weight: 650; padding-block: 4px; display: inline-block; }
.situation-list article > a, .situation-links { margin-top: auto; }
.situation-links { display: flex; flex-wrap: wrap; column-gap: 18px; }
.home-profile { background: var(--soft); border-block: 1px solid var(--rule); }
.home-profile-grid { display: grid; grid-template-columns: .95fr 1fr; gap: clamp(30px, 7vw, 108px); align-items: center; }
.home-profile-copy p { margin-top: 17px; max-width: 54ch; }
.home-profile-copy .button { margin-top: 24px; }
.profile-illustration { border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; background: var(--paper); }
.profile-illustration img { width: 100%; }
.home-clients { background: var(--white); border-bottom: 1px solid var(--rule); }
.logo-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.logo-heading h2 { font-size: clamp(27px, 4.2vw, 56px); }
.logo-window { margin-top: clamp(20px, 3vw, 36px); background: #fff; border-block: 1px solid var(--rule); }
.client-logos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.client-logos li { display: grid; place-items: center; min-height: clamp(105px, 10vw, 142px); padding: 8px 14px; position: relative; }
.client-logos li::before { content: ''; position: absolute; left: 0; inset-block: 23%; border-left: 1px solid var(--rule); opacity: .55; }
.client-logos:first-child li:first-child::before { visibility: hidden; }
.client-logos img { width: min(100%, 220px); height: auto; }
.client-logos .logo-digital-origin { width: min(100%, 156px); }
.logo-placeholder { color: var(--muted); text-align: center; line-height: 1.25; }
.logo-placeholder strong { display: block; color: var(--ink); font: 700 clamp(19px, 2vw, 26px)/1.2 var(--display); }
.logo-placeholder span { display: block; margin-top: 4px; }
.logo-placeholder-shop strong { font-family: Georgia, serif; }
.logo-placeholder-studio strong { text-transform: uppercase; letter-spacing: .04em; }
.logo-control { flex: 0 0 44px; display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink); background: var(--white); border: 1px solid var(--rule); border-radius: 50%; cursor: pointer; }
.logo-control:hover { color: var(--accent); background: var(--soft); }
.logo-control span { width: 11px; height: 14px; border-inline: 3px solid currentColor; }
.logo-ribbon[data-paused] .logo-control span { width: 0; height: 0; margin-left: 3px; border: solid transparent; border-width: 7px 0 7px 11px; border-left-color: currentColor; }

@media (max-width: 1050px) {
  .client-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .client-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: no-preference) {
  .logo-ribbon[data-animated] .logo-window { overflow: clip; position: relative; }
  .logo-ribbon[data-animated] .logo-window::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #fff, transparent 20px, transparent calc(100% - 20px), #fff); pointer-events: none; }
  .logo-ribbon[data-animated] .logo-track { display: flex; }
  .logo-ribbon[data-animated] .client-logos { display: flex; flex: none; min-width: 100%; animation: logo-pass 38s linear infinite paused; }
  .logo-ribbon[data-running]:not([data-paused]) .client-logos { animation-play-state: running; }
  .logo-ribbon[data-animated] .client-logos li { flex: 1 0 clamp(166px, 20vw, 235px); }
  .logo-ribbon[data-animated] .client-logos:first-child li:first-child::before { visibility: visible; }
  @keyframes logo-pass { to { transform: translateX(-100%); } }
}
@media (prefers-reduced-motion: reduce) {
  .client-logos[aria-hidden], .logo-ribbon .logo-control { display: none; }
}
.process-map { --art-height: clamp(170px, 16vw, 224px); --route: #e9a76f; position: relative; isolation: isolate; overflow: hidden; margin-top: clamp(24px, 4vw, 48px); border: 1px solid var(--rule); border-radius: 9px; background: var(--white); }
.process-map::before { content: ''; position: absolute; inset: 0 0 auto; height: var(--art-height); z-index: -1; background: radial-gradient(circle, #78919c59 1px, transparent 1.3px) 0 0 / 19px 19px, var(--ink); }
.process-route { position: absolute; inset: calc(var(--art-height) - 49px) 0 auto; width: 100%; height: 40px; stroke: var(--route); stroke-width: 1.65px; pointer-events: none; }
.process-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; }
.process-list li { min-width: 0; }
.process-list li + li { border-left: 1px solid #b9a89b73; }
.process-art { position: relative; display: grid; justify-items: center; align-content: center; height: var(--art-height); padding-bottom: 44px; }
.process-art svg { width: clamp(124px, 13.2vw, 186px); height: auto; }
.process-halo { fill: #2b4656; }
.process-guide { stroke: #8399a3; stroke-width: 1; }
.process-sheet { fill: #f6e9d9; stroke: #edbd96; stroke-width: 1.4; }
.process-ink { stroke: #865136; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.process-highlight { fill: var(--route); stroke: #e9a76f; stroke-width: 1.5; }
.process-highlight-ink { stroke: #432715; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step-number { position: absolute; left: 50%; bottom: 11px; translate: -50% 0; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--route); border-radius: 50%; background: var(--ink); color: #ffe1c2; font: 700 18px/1 var(--display); font-variant-numeric: tabular-nums; }
.process-copy { padding: clamp(21px, 2.7vw, 38px); }
.process-copy h3 { margin-top: 0; }
.process-copy p { max-width: 39ch; }
.home-faq { background: var(--white); border-top: 1px solid var(--rule); }
.home-faq-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 7vw, 105px); align-items: start; }
.home-faq-grid > div:first-child > p { margin-top: 17px; }
.faq-list { border-top: 1px solid var(--rule); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary { display: grid; grid-template-columns: 1fr 18px; gap: 15px; align-items: center; padding-block: 16px; color: var(--ink); font-weight: 650; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ''; width: 10px; height: 10px; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: rotate(45deg); justify-self: center; margin-top: -5px; }
.faq-list details[open] summary::after { transform: rotate(225deg); margin-top: 5px; }
.faq-list summary:hover { color: var(--accent); }
.faq-list summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.faq-list p { padding: 0 22px 18px 0; max-width: 59ch; }

@media (max-width: 767px) {
  .home-section-intro, .home-profile-grid, .home-faq-grid { grid-template-columns: 1fr; gap: 17px; }
  .situation-list { grid-template-columns: 1fr; margin-top: 26px; gap: 22px; }
  .situation-list article { padding-top: 16px; }
  .situation-list svg { width: 37px; height: 37px; }
  .situation-list h3 { margin-top: 8px; }
  .situation-list p { margin-bottom: 6px; }
  .home-profile-copy { grid-row: 1; }
  .home-profile-grid { gap: 25px; }
  .process-map { --art-rail: clamp(72px, 21vw, 112px); }
  .process-map::before { inset: 0 auto 0 0; width: var(--art-rail); height: auto; }
  .process-map::after { content: ''; position: absolute; z-index: -1; inset: 0 auto 0 calc(var(--art-rail) / 2); border-left: 1px solid var(--route); pointer-events: none; }
  .process-route { display: none; }
  .process-list { display: block; }
  .process-list li { display: grid; grid-template-columns: var(--art-rail) minmax(0, 1fr); }
  .process-list li + li { border-left: 0; border-top: 1px solid #b9a89b73; }
  .process-art { height: 100%; align-content: start; padding: 58px 0 16px; }
  .process-art svg { width: calc(var(--art-rail) - 7px); background: var(--ink); }
  .step-number { bottom: auto; top: 17px; width: 34px; height: 34px; font-size: 17px; }
  .process-copy { padding: 18px 15px 20px; }
  .process-copy h3 { font-size: 23px; }
  .faq-list { margin-top: 7px; }
}
