/* Interazioni del prototipo. L'aspetto di base rimane in cogitas.css. */
:root {
  --link-hover-ink: #454545;
  --link-hover-light: #d4d4d4;
  --link-hover-surface: #efefed;
}

.link-hover:any-link:is(:hover, :focus-visible),
.link-hover-outline:is(:hover, :focus-visible),
.link-hover-card:is(:hover, :focus-visible) .link-hover-card__label,
.assistant-menu a:is(:hover, :focus-visible) .assistant-menu__label,
[data-disclosure][data-open="true"] > a[data-disclosure-trigger] {
  color: var(--link-hover-ink);
  text-decoration: underline;
  text-underline-offset: .22em;
}

.link-hover-outline:is(:hover, :focus-visible) {
  border-color: var(--link-hover-ink);
}

.link-hover-fill:is(:hover, :focus-visible) {
  background: var(--link-hover-ink);
  color: #fff;
}

.link-hover-inverted {
  color: #000;
}

.link-hover-inverted:is(:hover, :focus-visible) {
  background: var(--link-hover-light);
  color: var(--link-hover-ink);
}

.link-hover-card:is(:hover, :focus-visible) {
  background: var(--link-hover-surface);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 22%);
}

.link-hover-card:is(:hover, :focus-visible) :is(.mono-experiment, svg) {
  color: var(--link-hover-ink);
}

@media (min-width: 1024px) {
  .site-footer__product {
    grid-column-start: 4;
  }
}

.integration-logo {
  display: block;
  width: 176px;
  max-width: 100%;
  height: 80px;
  object-fit: contain;
}

/* Le ancore della pagina soluzione restano visibili sotto la testata fissa. */
main :is(section, a)[id] {
  scroll-margin-top: 112px;
}

@media (max-width: 639px) {
  main :is(section, a)[id] {
    scroll-margin-top: 76px;
  }
}

.mono-experiment {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  line-height: 1.25;
  color: #000;
}

:is(h1, h2) .mono-experiment {
  color: #fff;
  background-color: #000;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-paths {
  display: grid;
  width: max-content;
  max-width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hero-paths__button,
.product-anchor {
  height: 48px;
}

.hero-paths__button {
  min-width: 0;
  justify-content: center;
  padding-block: 0;
  text-align: center;
}

.product-anchor {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding-inline: 20px;
  background: #0c0c0e;
  color: #fff;
  font: 500 14px/1.5 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
  scroll-margin-top: 112px;
}

.product-anchor + .product-demo {
  padding-top: 32px;
}

#chatbot-web-anchor {
  background: transparent;
  color: #000;
}

.enterprise-section {
  padding-top: 24px;
}

.enterprise-anchor {
  margin: 0 -24px 96px;
  background: #fff;
  color: #0c0c0e;
}

@media (min-width: 640px) {
  .enterprise-anchor {
    margin-inline: -40px;
  }
}

@media (min-width: 1024px) {
  .enterprise-anchor {
    margin-inline: -64px;
  }
}

@media (max-width: 767px) {
  .hero-paths {
    width: 100%;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 639px) {
  .product-anchor {
    scroll-margin-top: 76px;
  }
}

.pricing-web {
  padding-block: 24px 80px;
}

.pricing-web .enterprise-anchor {
  margin-bottom: 48px;
}

/* Fascia prodotto: gli stili sono circoscritti alla nuova sezione. */
.product-demo {
  padding-block: 80px;
  scroll-margin-top: 112px;
}

.product-demo__layout {
  display: grid;
  align-items: center;
  gap: 56px;
}

.product-demo__copy {
  min-width: 0;
}

.product-demo__description {
  max-width: 38rem;
}

.product-demo__chat {
  width: 100%;
  max-width: 440px;
  justify-self: center;
}

.feature-detail__intro p + p {
  margin-top: 20px;
}

.feature-detail__media {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: stretch;
  gap: 32px;
  margin-top: 48px;
}

.feature-detail__figure,
.pricing-comparison__frame {
  border: 9px solid #000;
  border-radius: 16px;
}

.feature-detail__figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #f4f4f3;
}

.feature-detail__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(1);
}

@media (max-width: 767px) {
  .feature-detail__media {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-top: 32px;
  }

  .feature-detail__image {
    height: auto;
  }
}

/* Fonti verificabili: cinque illustrazioni vettoriali, solo nella pagina prodotto. */
.sources-detail__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 48px 28px;
  margin-top: 48px;
}

.sources-detail__card {
  grid-column: span 2;
  min-width: 0;
  margin: 0;
}

.sources-detail__card--wide {
  grid-column: span 3;
}

.sources-detail__visual {
  overflow: hidden;
  border: 9px solid #000;
  border-radius: 16px;
  background: #f1f1f1;
}

.sources-detail__visual svg {
  display: block;
  width: 100%;
  height: auto;
}

.sources-detail__card figcaption {
  padding: 24px 4px 0;
}

.sources-detail__card h3 {
  margin: 0;
  color: #0c0c0e;
  font: 700 22px/1.4 'JetBrains Mono', monospace;
  letter-spacing: -0.025em;
}

.sources-detail__card p {
  margin-top: 14px;
  color: #56565b;
  font-size: 16px;
  line-height: 1.65;
}

.sources-art__connector {
  fill: none;
  stroke: #8a8a8a;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sources-art__panel {
  fill: #fff;
  stroke: #cecece;
  stroke-width: 1.5;
}

.sources-art__line {
  fill: none;
  stroke: #111;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sources-art__label {
  fill: #111;
  font: 500 20px 'JetBrains Mono', monospace;
  letter-spacing: -0.6px;
}

.sources-art__small {
  fill: #626262;
  font: 400 16px 'Montserrat', sans-serif;
}

.sources-art__light { fill: #fff; }

/* Fonti nella stessa nuvoletta della risposta, come nel chatbot reale. */
.citation-art__answer { fill: #111; font: 400 20px 'Montserrat', sans-serif; }
.citation-art__toggle-label { fill: #111; font: 600 14px 'Montserrat', sans-serif; }
.citation-art__domain { fill: #777; font: 400 12px 'Montserrat', sans-serif; }
.citation-art__source-title { fill: #111; font: 600 16px 'Montserrat', sans-serif; }
.citation-art__source-url { fill: #111; font: 400 14px 'Montserrat', sans-serif; text-decoration: underline; text-underline-offset: 3px; }
.citation-art__excerpt { fill: #111; font: 400 16px 'Montserrat', sans-serif; }
.citation-art__show, .citation-art__hover, .citation-art__click { opacity: 0; }
.citation-art__cursor { display: none; }
.citation-art__feedback { transform: translateY(296px); }
.citation-art__toggle { display: block; margin: 12px 0 0 auto; padding: 4px 0; border: 0; background: transparent; color: #555; font: 400 11px/1.5 'JetBrains Mono', monospace; cursor: pointer; }
.citation-art__toggle[hidden] { display: none; }
.citation-art__toggle:hover { color: #111; }
.citation-art__toggle:focus-visible { outline: 2px solid #111; outline-offset: 4px; }
svg[data-citation-animated] :is(.citation-art__bubble, .citation-art__list, .citation-art__show, .citation-art__hide, .citation-art__hover, .citation-art__click, .citation-art__cursor, .citation-art__feedback) { animation-duration: 12s; animation-timing-function: linear; animation-iteration-count: infinite; }
svg[data-citation-animated] .citation-art__bubble { animation-name: citation-bubble; }
svg[data-citation-animated] .citation-art__list { animation-name: citation-list; }
svg[data-citation-animated] .citation-art__show { animation-name: citation-show; }
svg[data-citation-animated] .citation-art__hide { animation-name: citation-hide; }
svg[data-citation-animated] .citation-art__hover { animation-name: citation-hover; }
svg[data-citation-animated] .citation-art__feedback { animation-name: citation-feedback; }
svg[data-citation-animated] .citation-art__cursor { display: block; animation-name: citation-cursor; }
svg[data-citation-animated] .citation-art__click { transform-box: fill-box; transform-origin: center; animation-name: citation-click; }
svg[data-citation-paused="true"] * { animation-play-state: paused; }
@keyframes citation-bubble { 0%,26%,95%,100% { height: 114px; } 38%,85% { height: 260px; } }
@keyframes citation-list { 0%,31%,95%,100% { opacity: 0; clip-path: inset(0 0 100% 0); } 40%,85% { opacity: 1; clip-path: inset(0); } }
@keyframes citation-show { 0%,29%,91%,100% { opacity: 1; } 30%,90% { opacity: 0; } }
@keyframes citation-hide { 0%,29%,91%,100% { opacity: 0; } 30%,90% { opacity: 1; } }
@keyframes citation-hover { 0%,19%,33%,100% { opacity: 0; } 23%,29% { opacity: 1; } }
@keyframes citation-feedback { 0%,26%,95%,100% { transform: translateY(150px); } 38%,85% { transform: translateY(296px); } }
@keyframes citation-cursor { 0%,10% { opacity: 0; transform: translate(300px, 200px); } 14% { opacity: 1; transform: translate(300px, 200px); } 24%,29% { opacity: 1; transform: translate(188px, 107px) scale(1); } 26% { opacity: 1; transform: translate(188px, 107px) scale(.88); } 34%,100% { opacity: 0; transform: translate(188px, 107px); } }
@keyframes citation-click { 0%,25% { opacity: 0; transform: scale(.2); } 28% { opacity: .6; transform: scale(1); } 34%,100% { opacity: 0; transform: scale(1.8); } }
@media (prefers-reduced-motion: reduce) {
  svg[data-citation-animated] * { animation: none !important; }
  svg[data-citation-animated] .citation-art__cursor, [data-citation-toggle] { display: none; }
}

/* Domanda → fonti → conoscenza → risposta. Testi vettoriali traducibili. */
.repetitive-detail__diagram {
  display: grid;
  align-items: center;
  background: #f1f1f1;
  --repetitive-cycle: 14s;
}

.repetitive-detail__diagram svg {
  display: block;
  width: 100%;
  height: auto;
}

.repetitive-art__answer {
  fill: #111;
  font: 400 21px 'Montserrat', sans-serif;
}

.repetitive-art__chat-text { font: 400 22px 'Montserrat', sans-serif; }
.repetitive-detail__toggle {
  justify-self: end;
  margin: 0 20px 16px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #555;
  cursor: pointer;
  font: 400 11px/1.5 'JetBrains Mono', monospace;
}
.repetitive-detail__toggle:hover { color: #111; }
.repetitive-detail__toggle:focus-visible { outline: 2px solid #111; outline-offset: 4px; }

svg[data-repetitive-animated] :is(.repetitive-art__question, .repetitive-art__to-sources, .repetitive-art__sources, .repetitive-art__source-panels, .repetitive-art__to-knowledge, .repetitive-art__knowledge, .repetitive-art__sync, .repetitive-art__ready, .repetitive-art__to-answer, .repetitive-art__response, .repetitive-art__answer-line, .repetitive-art__citation) {
  animation-duration: var(--repetitive-cycle);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
svg[data-repetitive-animated] .repetitive-art__question { animation-name: repetitive-question; }
svg[data-repetitive-animated] .repetitive-art__to-sources { animation-name: repetitive-to-sources; }
svg[data-repetitive-animated] .repetitive-art__sources { animation-name: repetitive-sources; }
svg[data-repetitive-animated] .repetitive-art__source-panels { animation-name: repetitive-source-panels; }
svg[data-repetitive-animated] .repetitive-art__to-knowledge { animation-name: repetitive-to-knowledge; }
svg[data-repetitive-animated] .repetitive-art__knowledge { animation-name: repetitive-knowledge; }
svg[data-repetitive-animated] .repetitive-art__sync { transform-box: fill-box; transform-origin: center; animation-name: repetitive-sync; }
svg[data-repetitive-animated] .repetitive-art__ready { animation-name: repetitive-ready; }
svg[data-repetitive-animated] .repetitive-art__to-answer { animation-name: repetitive-to-answer; }
svg[data-repetitive-animated] .repetitive-art__response { animation-name: repetitive-response; }
svg[data-repetitive-animated] .repetitive-art__answer-line--one { animation-name: repetitive-line-one; }
svg[data-repetitive-animated] .repetitive-art__answer-line--two { animation-name: repetitive-line-two; }
svg[data-repetitive-animated] .repetitive-art__answer-line--three { animation-name: repetitive-line-three; }
svg[data-repetitive-animated] .repetitive-art__citation { animation-name: repetitive-citation; }
svg[data-repetitive-paused="true"] * { animation-play-state: paused; }

@keyframes repetitive-question { 0% { opacity: 0; transform: translateY(8px); } 6%,96% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; } }
@keyframes repetitive-to-sources { 0%,8% { opacity: 0; } 12%,96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes repetitive-sources { 0%,16% { opacity: 0; transform: translateY(6px); } 22%,96% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; } }
@keyframes repetitive-source-panels { 0%,22%,42%,100% { stroke: #cecece; } 27%,36% { stroke: #111; } }
@keyframes repetitive-to-knowledge { 0%,26% { opacity: 0; } 30%,96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes repetitive-knowledge { 0%,36% { opacity: 0; } 42%,96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes repetitive-sync { 0%,40% { transform: rotate(0deg); } 54%,100% { transform: rotate(-360deg); } }
@keyframes repetitive-ready { 0%,54% { opacity: 0; } 58%,96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes repetitive-to-answer { 0%,54% { opacity: 0; } 58%,96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes repetitive-response { 0%,60% { opacity: 0; transform: translateY(8px); } 65%,96% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; } }
@keyframes repetitive-line-one { 0%,64% { opacity: 0; } 67%,100% { opacity: 1; } }
@keyframes repetitive-line-two { 0%,68% { opacity: 0; } 71%,100% { opacity: 1; } }
@keyframes repetitive-line-three { 0%,72% { opacity: 0; } 75%,100% { opacity: 1; } }
@keyframes repetitive-citation { 0%,76% { opacity: 0; } 80%,100% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  svg[data-repetitive-animated] * { animation: none !important; }
  .repetitive-detail__toggle { display: none; }
}

@media (max-width: 767px) {
  .repetitive-detail__diagram .sources-art__label { font-size: 25px; }
  .repetitive-detail__diagram .sources-art__small { font-size: 19px; }
  .repetitive-detail__diagram .repetitive-art__answer { font-size: 22px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .sources-detail__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sources-detail__card { grid-column: span 1; }
  .sources-detail__card:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
  .sources-detail__card:last-child figcaption { padding-top: 0; }
}

@media (max-width: 767px) {
  .sources-detail__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 32px; }
  .sources-detail__card { grid-column: span 1; }
  .sources-detail__card figcaption { padding-top: 20px; }
}

/* Sezione passaggio al team: schermate originali con annotazioni HTML. */
.handover-detail,
.pricing-web {
  background: #0c0c0e;
  color: #fafaf7;
}

.handover-detail h2 .mono-experiment,
.pricing-web h1 .mono-experiment {
  background: #fafaf7;
  color: #000;
}

.handover-detail__pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.handover-detail__card,
.handover-detail__workspace {
  min-width: 0;
  margin: 0;
}

.handover-detail__visual,
.handover-detail__overview {
  overflow: hidden;
  border: 9px solid #fafaf7;
  border-radius: 16px;
  background: #e9e9e7;
}

.handover-detail__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 560px;
  padding: 32px;
  background: #e9e9e7;
  color: #0c0c0e;
}

.handover-detail__widget {
  position: relative;
  width: 340px;
  max-width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgb(0 0 0 / 15%);
}

.handover-detail__widget img {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(1);
}

.handover-detail__request {
  position: absolute;
  top: 26%;
  right: 6%;
  max-width: 70%;
  padding: 12px 14px;
  border-radius: 14px 14px 3px 14px;
  color: #fff;
  background: #171717;
  font-size: 14px;
  line-height: 1.5;
}

.handover-detail__context-note {
  align-self: center;
  width: max-content;
  max-width: 100%;
  margin-bottom: 24px;
  font: 500 16px/1.5 'JetBrains Mono', monospace;
}

.handover-detail__context-note span {
  display: block;
  margin-top: 12px;
  font-size: 26px;
}

.handover-detail__app-crop {
  position: relative;
  width: 100%;
  max-width: 500px;
  flex-shrink: 0;
  aspect-ratio: 748 / 588;
  overflow: hidden;
  border: 1px solid #d0d0d0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px rgb(0 0 0 / 10%);
}

.handover-detail__app-crop img {
  position: absolute;
  max-width: none;
  width: 255.0802%;
  height: auto;
  left: -149.4652%;
  top: -40.8163%;
  filter: grayscale(1);
}

.handover-detail__intervene-ring {
  position: absolute;
  right: 1.6%;
  bottom: 1.4%;
  width: 15%;
  height: 11%;
  border: 2px solid #000;
  border-radius: 14px;
}

.handover-detail__card figcaption,
.handover-detail__workspace > figcaption {
  padding: 24px 4px 0;
}

.handover-detail__eyebrow {
  display: block;
  margin-bottom: 14px;
  font: 500 11px/1.6 'JetBrains Mono', monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #c8c8c8;
}

.handover-detail h3 {
  font: 700 22px/1.4 'JetBrains Mono', monospace;
  letter-spacing: -.03em;
  color: #fafaf7;
}

.handover-detail figcaption p {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.6;
  color: #d0d0d0;
}

.handover-detail__workspace {
  margin-top: 32px;
}

.handover-detail__overview {
  position: relative;
}

.handover-detail__overview img {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(1);
}

.handover-detail__marker,
.handover-detail__legend > li > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #000;
  color: #fff;
  border: 2px solid #fff;
  font: 700 14px/1 'JetBrains Mono', monospace;
}

.handover-detail__marker {
  position: absolute;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 12px rgb(0 0 0 / 20%);
}

.handover-detail__marker--availability { left: 80.5%; top: 15.5%; }
.handover-detail__marker--history { left: 62%; top: 40%; }
.handover-detail__marker--intervene { left: 91%; top: 87%; }

.handover-detail__legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 24px 4px 0;
  list-style: none;
}

.handover-detail__legend li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.handover-detail__legend strong {
  font: 500 14px/1.5 'JetBrains Mono', monospace;
}

.handover-detail__legend p {
  margin-top: 6px;
  color: #c8c8c8;
  font-size: 13px;
  line-height: 1.6;
}

.handover-detail__cta {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border: 1px solid #777;
  border-radius: 2px;
  color: #fafaf7;
  font: 400 14px/1.5 'JetBrains Mono', monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color .15s, border-color .15s, background .15s;
}

.handover-detail__cta--primary {
  border-color: #fafaf7;
  background: #fafaf7;
  color: #0c0c0e;
}

.handover-detail__cta:is(:hover, :focus-visible) {
  border-color: var(--link-hover-light);
  color: var(--link-hover-light);
}

.handover-detail__cta--primary:is(:hover, :focus-visible) {
  background: var(--link-hover-light);
  color: var(--link-hover-ink);
}

@media (max-width: 1023px) {
  .handover-detail__stage { height: 440px; padding: 20px; }
  .handover-detail__widget { width: 276px; }
  .handover-detail__request { font-size: 12px; padding: 9px 10px; }
}

@media (max-width: 767px) {
  .handover-detail__pair { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 32px; }
  .handover-detail__card figcaption, .handover-detail__workspace > figcaption { padding-top: 20px; }
  .handover-detail__stage--team { height: auto; min-height: 350px; padding: 32px 16px; }
  .handover-detail__context-note { font-size: 14px; }
  .handover-detail__workspace { margin-top: 24px; }
  .handover-detail__legend { grid-template-columns: 1fr; }
  .handover-detail__marker { width: 22px; height: 22px; font-size: 10px; }
}

.product-demo__frame {
  display: block;
  width: 100%;
  height: 620px;
  border: 9px solid #000;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 48px rgb(0 0 0 / 8%);
}

.product-demo__chat-link {
  display: block;
  margin-top: 16px;
  color: #6f6f76;
  font-size: 12px;
  text-align: center;
  text-underline-offset: 4px;
}

.product-demo__chat-link:is(:hover, :focus-visible) {
  color: var(--link-hover-ink);
  text-decoration: underline;
}

@media (min-width: 1200px) {
  .product-demo {
    padding-block: 96px;
  }

  .product-demo__layout {
    grid-template-columns: minmax(0, max-content) minmax(clamp(360px, 30vw, 440px), 1fr);
    gap: 48px;
  }

  .product-demo__chat {
    width: clamp(360px, 30vw, 440px);
  }
}

@media (max-width: 639px) {
  .product-demo {
    padding-block: 56px;
  }

  .product-demo__frame {
    height: 560px;
  }
}

.product-ticker {
  overflow: hidden;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  background: #0a0a0a;
  color: #fff;
}

.product-ticker__track {
  display: flex;
  width: max-content;
  animation: product-ticker-scroll 40s linear infinite;
}

.product-ticker__items {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-around;
  min-width: 100vw;
  gap: 4rem;
  margin: 0;
  padding: 0 2rem;
  list-style: none;
}

.product-ticker a {
  display: block;
  padding-block: 10px;
  color: #fff;
  font: 400 11px/1.5 'JetBrains Mono', monospace;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-ticker a:is(:hover, :focus-visible) {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.product-ticker:hover .product-ticker__track {
  animation-play-state: paused;
}

.product-ticker:has(a:focus-visible) {
  overflow-x: auto;
}

.product-ticker:has(a:focus-visible) .product-ticker__track {
  animation: none;
}

.product-ticker:has(a:focus-visible) .product-ticker__items[aria-hidden] {
  display: none;
}

@keyframes product-ticker-scroll {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .product-ticker { overflow-x: auto; }
  .product-ticker__track { animation: none; }
  .product-ticker__items[aria-hidden] { display: none; }
}

.language-picker {
  position: relative;
  display: none;
}

.language-picker__trigger {
  display: grid;
  width: 40px;
  height: 44px;
  place-items: center;
  color: #2f2f33;
}

.language-picker__trigger > svg {
  width: 22px;
  height: 22px;
}

.language-picker__panel {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 50;
  width: 210px;
  padding-top: 10px;
}

.language-picker__menu {
  border: 1px solid rgb(0 0 0 / 8%);
  background: #fff;
  box-shadow: 0 16px 32px rgb(0 0 0 / 8%);
}

.language-picker__option {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid rgb(0 0 0 / 8%);
  color: #2f2f33;
  font: 400 14px/1.5 'JetBrains Mono', monospace;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
  cursor: default;
}

.language-picker__option > svg {
  width: 14px;
  height: 14px;
}

.language-picker__option:not([aria-current="page"]) > svg {
  display: none;
}

a.language-picker__option:is(:hover, :focus-visible),
.language-picker-mobile > a:is(:hover, :focus-visible) {
  background: var(--link-hover-surface);
  color: var(--link-hover-ink);
  text-decoration: underline;
  text-underline-offset: .22em;
}

.language-picker__codes {
  padding: 12px 16px;
  color: #9a9a9f;
  font: 400 10px/1.5 'JetBrains Mono', monospace;
}

.language-picker-mobile {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-block: 16px;
  border-top: 1px solid rgb(0 0 0 / 8%);
}

.language-picker-mobile > :is(button, a) {
  padding: 10px 12px;
  border: 1px solid rgb(0 0 0 / 16%);
  border-radius: 2px;
  background: #fff;
  color: #2f2f33;
  font: 400 14px/1.5 'JetBrains Mono', monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: default;
}

.language-picker-mobile > [aria-current="page"] {
  border-color: #0c0c0e;
  background: #0c0c0e;
  color: #fff;
}

.language-picker a[href],
.language-picker-mobile > a[href] {
  cursor: pointer;
}

@media (min-width: 1280px) {
  .language-picker {
    display: inline-flex;
  }
}

.assistant-menu {
  display: grid;
}

.assistant-menu--desktop {
  grid-template-columns: repeat(2, minmax(0, 20rem));
  gap: .5rem 2rem;
}

nav:has(#website-assistants-panel),
[data-disclosure="website-assistants"] {
  align-self: stretch;
}

[data-disclosure="website-assistants"] {
  display: flex;
  align-items: center;
}

#website-assistants-panel {
  max-height: calc(100dvh - 104px);
  overflow-y: auto;
}

.assistant-menu--mobile {
  padding-block: 0 .75rem;
}

.assistant-menu a {
  display: grid;
  gap: .25rem;
  padding-block: .625rem;
}

.assistant-menu__label {
  font-size: 14px;
  font-weight: 600;
}

.assistant-menu__description {
  max-width: 48ch;
  color: #646469;
  font: 400 11px/1.5 'JetBrains Mono', monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}

[data-disclosure-trigger] {
  cursor: pointer;
  text-align: left;
}

/* Una sola sorgente di stato per hover, click e tastiera. */
[data-disclosure] > [data-disclosure-panel] {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none;
  transform: translateY(-0.25rem) !important;
}

[data-disclosure][data-open="true"] > [data-disclosure-panel] {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto;
  transform: translateY(0) !important;
}

[data-disclosure][data-open="true"] > [data-disclosure-trigger] {
  color: var(--link-hover-ink);
}

[data-disclosure-trigger] > svg {
  rotate: 0deg;
  transform: none;
}

[data-disclosure="login"][data-open="true"] > [data-disclosure-trigger] > svg {
  rotate: 180deg;
}

[data-disclosure-trigger]:focus-visible,
[data-mobile-toggle]:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid #7e4df7;
  outline-offset: 4px;
}

[data-mobile-toggle] {
  cursor: pointer;
}

[data-mobile-panel][hidden] {
  display: none !important;
}

@media (max-width: 1279px) {
  [data-mobile-panel]:not([hidden]) {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
