/* Coffee Safety Break · plancia cinematica auto-pilot.
   Icone dal magazzino HUD. Collaudo su 4071. */

html.csb-page,
html.csb-page body {
  margin: 0;
  height: 100%;
  background: #0b1016;
}

.csb {
  --cyan: #3ee7ff;
  --laser: #4d9fff;
  --navy: #1f2e4d;
  --white: rgba(255, 255, 255, 0.92);
  position: fixed;
  inset: 0;
  overflow: hidden;
  color: #f4fbff;
  font: 400 13px/1.4 "Segoe UI", Calibri, Helvetica, sans-serif;
}

.csb-cinema-velo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #05070c;
  pointer-events: none;
}

.csb-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
  display: block;
  z-index: 1;
  transform: scale(1.06);
  opacity: 0;
  transition: opacity 1.35s ease, transform 1.8s ease, filter 0.8s ease;
}

.csb.is-aperto .csb-bg,
.csb.is-corso .csb-bg,
.csb.is-apre .csb-bg {
  opacity: 1;
  transform: scale(1);
}

.csb-vetro-img {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(8, 14, 24, 0.18) 0%,
    rgba(8, 14, 24, 0.08) 42%,
    rgba(8, 14, 24, 0.28) 100%
  );
}

.csb-corso {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  justify-items: center;
  padding: 4.6rem 5% 5.2rem;
  box-sizing: border-box;
}

.csb-corso[hidden] {
  display: none !important;
}

.csb-corso__step {
  margin: 0 0 0.7rem;
  justify-self: start;
  font: 700 10px/1 "Segoe UI", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 251, 255, 0.88);
}

.csb-menu {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(21.5rem, 78%);
  z-index: 7;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.45rem;
  padding: 0.85rem 0.65rem 1rem 0.7rem;
  box-sizing: border-box;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    rgba(8, 14, 24, 0.26) 0%,
    rgba(8, 14, 24, 0.12) 72%,
    rgba(8, 14, 24, 0) 100%
  );
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  animation: csb-tendina-in 0.34s ease;
}

.csb-menu[hidden] {
  display: none !important;
}

@keyframes csb-tendina-in {
  from {
    transform: translateX(-100%);
    opacity: 0.35;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .csb-menu {
    animation: none;
  }
}

.csb-menu__azioni {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.csb-menu__vista {
  min-height: 0;
  overflow: auto;
}

.csb-menu__tendina,
.csb-menu__griglia {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.csb-menu__sotto {
  display: grid;
  gap: 6px;
  margin: 0 0 0.2rem 0.45rem;
  padding: 0 0 0.15rem 0.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.csb-menu__voce {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.28rem;
  width: 100%;
  height: auto;
  min-height: var(--master-fascia-btn-h, 2.45rem);
  padding: 0.7rem 0.85rem;
  white-space: normal;
  line-height: 1.35;
  text-align: left;
}

.csb-menu__voce b {
  font: 800 0.8rem/1.25 "Segoe UI", sans-serif;
}

.csb-menu__voce span {
  font: 650 0.7rem/1.35 "Segoe UI", sans-serif;
  opacity: 0.9;
}

.csb-menu__scheda {
  width: 100%;
  padding: 0.65rem 0.75rem 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(31, 46, 77, 0.28);
  color: #f4fbff;
  text-align: left;
}

.csb-menu__scheda b {
  display: block;
  margin: 0 0 0.2rem;
  font: 800 0.88rem/1.3 "Segoe UI", sans-serif;
}

.csb-menu__scheda span,
.csb-menu__scheda p {
  display: block;
  margin: 0;
  font: 650 0.75rem/1.4 "Segoe UI", sans-serif;
  color: rgba(232, 244, 255, 0.86);
}

.csb-menu__elenco {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  max-height: 42vh;
  overflow: auto;
}

.csb-menu__elenco li {
  display: grid;
  grid-template-columns: 1.6rem 2.1rem 1fr;
  gap: 8px;
  align-items: start;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 14, 24, 0.28);
  color: #f4fbff;
  font: 650 0.8rem/1.35 "Segoe UI", sans-serif;
}

.csb-menu__elenco li > span:first-child {
  padding-top: 0.35rem;
}

.csb-menu__nomi {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.csb-menu__nomi em {
  font: 700 0.68rem/1.2 "Segoe UI", sans-serif;
  font-style: normal;
  letter-spacing: 0.06em;
  color: #E56B10;
}

.csb-menu__nomi b {
  font: 700 0.8rem/1.25 "Segoe UI", sans-serif;
  color: #f4fbff;
}

.csb-menu__nomi i {
  font: 500 0.72rem/1.25 "Segoe UI", sans-serif;
  font-style: normal;
  color: rgba(232, 244, 255, 0.78);
}

.csb-menu__elenco img {
  width: 2.1rem;
  height: 2.1rem;
  object-fit: contain;
}

.csb-test {
  display: none !important;
}

.csb-laser,
.csb-storia {
  display: none !important;
}

.csb-laser {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.csb-laser__ciano {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 0.26;
  stroke-linecap: square;
  stroke-linejoin: miter;
  filter: drop-shadow(0 0 0.5px #3ee7ff);
}

.csb-laser__telaio {
  opacity: 0.72;
}

.csb-laser__vivo {
  stroke-width: 0.36;
  opacity: 1;
}

.csb-laser__mira {
  stroke-width: 0.22;
  opacity: 0.42;
  filter: none;
}

.csb-laser__hub {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 0.3;
}

.csb-percorso {
  --csb-icon-n: 3;
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  width: min(54rem, 94%);
  height: auto;
  min-height: 0;
  align-self: center;
  z-index: 3;
  overflow: visible;
  pointer-events: none;
  container-type: inline-size;
  background: transparent;
  border: 0;
  padding: 0 0.4rem;
  box-sizing: border-box;
  perspective: 1100px;
}

#csb-percorso-binario,
.csb-percorso__binario {
  display: flex !important;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: auto;
  min-height: 0;
  will-change: transform;
  transform-style: preserve-3d;
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.csb-dpi {
  position: relative;
  z-index: 3;
  flex: 0 0 calc(100% / var(--csb-icon-n, 3));
  width: calc(100% / var(--csb-icon-n, 3));
  max-width: 100%;
  min-width: 0;
  transform: translate3d(0, 8%, 0) scale(0.9);
  display: grid;
  justify-items: center;
  align-content: end;
  gap: 0.55rem;
  padding: 0.4rem 0.7rem 0;
  box-sizing: border-box;
  pointer-events: none;
  opacity: 0;
  overflow: visible;
  transform-style: preserve-3d;
  transform-origin: center bottom;
  transition: opacity 0.55s ease, filter 0.45s ease, transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.csb-dpi.is-on {
  opacity: 1;
}

.csb-dpi.is-vivo {
  z-index: 5;
  opacity: 1;
  transform: translate3d(0, 0, 36px) rotateY(0) scale(1);
  filter: none;
  animation: csb-nodo-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.csb-dpi.is-passato {
  z-index: 3;
  opacity: 0.78;
  transform: translate3d(-6%, 8%, -90px) rotateY(26deg) scale(0.84);
  filter: saturate(0.82) brightness(0.92);
}

.csb-dpi.is-futuro {
  z-index: 3;
  opacity: 0.78;
  transform: translate3d(6%, 8%, -90px) rotateY(-26deg) scale(0.84);
  filter: saturate(0.82) brightness(0.92);
}

.csb-dpi[hidden] {
  display: none;
}

.csb-dpi__nome {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font: 800 1.05rem/1.3 "Segoe UI", sans-serif;
  letter-spacing: 0.02em;
  text-transform: none;
  text-align: center;
  color: #fff;
  text-shadow: 0 1px 12px rgba(8, 14, 24, 0.55);
  order: 2;
  max-width: 36rem;
}

.csb-dpi__nome b {
  font: inherit;
}

.csb-dpi__nome i {
  font: 600 0.86rem/1.3 "Segoe UI", sans-serif;
  font-style: normal;
  color: rgba(232, 244, 255, 0.86);
}

.csb-dpi.is-passato .csb-dpi__nome {
  color: rgba(232, 244, 255, 0.82);
  text-shadow: none;
}

.csb-dpi__testo {
  order: 3;
  margin: 0;
  max-width: 18rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font: 650 0.82rem/1.4 "Segoe UI", sans-serif;
  color: rgba(244, 251, 255, 0.92);
  text-shadow: 0 1px 10px rgba(8, 14, 24, 0.7);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  align-items: center;
}

.csb-dpi__norma {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  pointer-events: auto;
  font: 800 0.98rem/1.3 "Segoe UI", sans-serif;
  letter-spacing: 0.08em;
  color: #E56B10;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-shadow: 0 0 12px rgba(229, 107, 16, 0.45);
}

.csb-dpi__norma:hover {
  color: #ff8a2a;
}

.csb-dpi__lastra {
  appearance: none;
  order: 1;
  position: relative;
  width: min(220px, 46cqw);
  height: min(220px, 46cqw);
  max-width: 100%;
  padding: 14px;
  border-radius: 18px;
  box-sizing: border-box;
  background:
    linear-gradient(165deg, rgba(236, 250, 255, 0.58) 0%, rgba(10, 24, 42, 0.48) 48%, rgba(62, 231, 255, 0.22) 100%);
  border: 1px solid rgba(190, 236, 255, 0.72);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28) inset,
    0 0 0 1px rgba(62, 231, 255, 0.28),
    0 18px 40px rgba(4, 12, 24, 0.38),
    0 0 42px rgba(62, 231, 255, 0.28);
  backdrop-filter: blur(20px) saturate(1.45);
  -webkit-backdrop-filter: blur(20px) saturate(1.45);
  pointer-events: none;
  cursor: default;
}

.csb-dpi__lastra::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 12px;
  pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0) 34%, rgba(62, 231, 255, 0.08) 100%);
}

.csb-dpi.is-vivo .csb-dpi__lastra {
  width: min(248px, 52cqw);
  height: min(248px, 52cqw);
  pointer-events: auto;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.34) inset,
    0 0 0 1px rgba(62, 231, 255, 0.42),
    0 28px 54px rgba(4, 12, 24, 0.42),
    0 0 58px rgba(62, 231, 255, 0.42);
}

.csb-dpi__pittogramma {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: 100%;
  border-radius: 8px;
  background: transparent;
  order: unset;
  overflow: visible;
  display: grid;
  place-items: center;
  padding: 0;
  box-sizing: border-box;
}

.csb-dpi.is-vivo .csb-dpi__pittogramma {
  width: 100%;
  height: 100%;
}

.csb-dpi__pittogramma > svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  display: block;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.28));
}

.csb-dpi__pittogramma svg svg {
  width: auto;
  height: auto;
  overflow: visible;
  filter: none;
}

.csb-dpi.is-scan .csb-dpi__pittogramma > svg {
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.28));
}

.csb-storia {
  position: absolute;
  z-index: 5;
  top: auto;
  right: 2.8%;
  bottom: 12%;
  left: auto;
  width: min(360px, 32vw);
  height: 21.5rem;
  padding: 14px 14px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(31, 46, 77, 0.48);
  box-shadow:
    0 0 0 1px rgba(62, 231, 255, 0.12) inset,
    0 18px 48px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px) saturate(1.28);
  -webkit-backdrop-filter: blur(22px) saturate(1.28);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 8px;
  pointer-events: auto;
}

.csb-storia__step {
  margin: 0;
  font: 700 10px/1 "Segoe UI", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(62, 231, 255, 0.9);
}

.csb-storia__vista {
  position: relative;
  overflow: hidden;
  min-height: 0;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 78%, transparent 100%);
}

.csb-storia__lista {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin: 0;
  padding: 18% 2px 24%;
  list-style: none;
  width: 100%;
  will-change: transform;
  transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

.csb-storia__voce {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 8px;
  align-items: start;
  padding: 10px 10px 10px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 14, 24, 0.22);
  opacity: 0.38;
  transform: scale(0.92);
  transform-origin: center top;
  transition: opacity 0.55s ease, transform 0.55s ease, border-color 0.4s ease, background 0.4s ease;
}

.csb-storia__voce.is-now {
  opacity: 1;
  transform: scale(1);
  border-color: rgba(62, 231, 255, 0.4);
  background: rgba(8, 14, 24, 0.4);
}

.csb-storia__voce.is-now.is-entra {
  animation: csb-voce-entra 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.csb-storia__voce.is-passato {
  opacity: 0.55;
  transform: scale(0.94);
}

.csb-storia__n {
  font: 800 11px/1.2 "Segoe UI", sans-serif;
  color: var(--cyan);
}

.csb-storia__voce strong {
  display: block;
  margin: 0 0 4px;
  font: 800 13px/1.25 "Segoe UI", sans-serif;
  letter-spacing: 0.04em;
  color: #fff;
}

.csb-storia__voce p {
  margin: 0;
  font: 650 12px/1.45 "Segoe UI", sans-serif;
  color: rgba(232, 244, 255, 0.94);
}

.csb-tazza {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 8;
  transform: translate(-50%, -50%);
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  min-width: 220px;
  padding: 18px 22px 16px;
  background: rgba(12, 16, 24, 0.55);
  color: #f4fbff;
  cursor: pointer;
  display: grid;
  justify-items: center;
  gap: 10px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.csb-tazza span {
  font: 800 12px/1 "Segoe UI", sans-serif;
  letter-spacing: 0.14em;
}

.csb-tazza__svg {
  width: 64px;
  height: 64px;
  stroke: #f4fbff;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.csb-tazza__vapore {
  stroke-dasharray: 10 7;
  animation: csb-tazza-vapore 2.8s ease-in-out infinite;
}

.csb-tazza:hover {
  background: rgba(18, 24, 34, 0.72);
}

.csb.is-apre .csb-tazza,
.csb.is-corso .csb-tazza {
  display: none;
}

.csb-vapore {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.15s ease;
}

.csb.is-apre .csb-vapore {
  opacity: 1;
}

.csb.is-corso:not(.is-apre) .csb-vapore {
  opacity: 0;
  transition: opacity 1.1s ease;
}

.csb-vapore__nube {
  position: absolute;
  left: 50%;
  top: auto;
  bottom: -12%;
  width: 34vmin;
  height: 34vmin;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.78) 0%, rgba(239, 235, 228, 0.42) 42%, rgba(180, 200, 220, 0.12) 68%, transparent 82%);
  filter: blur(32px);
  transform: translate(-50%, 0) scale(0.35);
  opacity: 0;
}

.csb.is-apre .csb-vapore__nube:nth-child(1) {
  animation: csb-nube 2.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.csb.is-apre .csb-vapore__nube:nth-child(2) {
  width: 48vmin;
  height: 42vmin;
  animation: csb-nube 2.4s cubic-bezier(0.16, 1, 0.3, 1) 0.18s forwards;
}
.csb.is-apre .csb-vapore__nube:nth-child(3) {
  width: 28vmin;
  height: 46vmin;
  animation: csb-nube 2.4s cubic-bezier(0.16, 1, 0.3, 1) 0.36s forwards;
}

.csb-vapore__vetro {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 14, 24, 0) 0%, rgba(8, 14, 24, 0.12) 48%, rgba(245, 250, 255, 0.28) 100%);
  backdrop-filter: blur(0);
  opacity: 0;
}

.csb.is-apre .csb-vapore__vetro {
  animation: csb-vetro 2.4s ease forwards;
}

.csb-vapore__lastra {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -18%;
  height: 62%;
  background: radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.55) 0%, rgba(239, 235, 228, 0.18) 46%, transparent 74%);
  filter: blur(22px);
  opacity: 0;
  transform: translateY(12%) scale(0.7);
}

.csb.is-apre .csb-vapore__lastra {
  animation: csb-lastra 2.4s ease forwards;
}

.csb--guscio {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 6;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: #05070c;
  border-radius: inherit;
  overflow: hidden;
  transition: opacity 0.85s ease, visibility 0.85s ease;
}

.csb--guscio.is-aperto {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.csb--guscio.is-esce {
  opacity: 0;
}

.csb--guscio.is-esce .csb-bg,
.csb--guscio.is-esce .csb-corso,
.csb--guscio.is-esce .csb-menu,
.csb--guscio.is-esce .csb-tazza-esci,
.csb--guscio.is-esce .csb-settori,
.csb--guscio.is-esce .csb-test,
.csb--guscio.is-esce .csb-norma-tab,
.csb--guscio.is-esce .csb-cassetto,
.csb--guscio.is-esce .csb-certifica,
.csb--guscio.is-esce .csb-riprendi,
.csb--guscio.is-esce .csb-chiusura,
.csb--guscio.is-esce .csb-vapore {
  filter: brightness(0.08);
  opacity: 0;
  transition: filter 0.55s ease, opacity 0.55s ease;
}

.csb--guscio .csb-tazza {
  display: none;
}

html.csb-cinema,
body.csb-cinema {
  background: inherit;
}

#card > .csb--guscio {
  position: absolute;
}

.csb--guscio .csb-percorso {
  left: auto;
  right: auto;
  top: auto;
  height: auto;
}

.csb--guscio .csb-dpi__pittogramma,
.csb--guscio .csb-dpi.is-vivo .csb-dpi__pittogramma {
  width: 100%;
  height: 100%;
}

.csb-tazza-esci {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  appearance: none;
  min-height: var(--master-fascia-btn-h, 2.45rem);
  padding: 0 14px 0 12px;
  border: 0;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font: 700 12px/1 "Segoe UI", sans-serif;
  cursor: pointer;
  white-space: nowrap;
  min-width: 11.2rem;
}

.csb-tazza-esci__svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.csb-tazza-esci:hover {
  background: #2a3d5c;
}

html.csb-page .csb-tazza-esci {
  display: none;
}

html.csb-page .csb.is-corso .csb-tazza-esci,
html.csb-page .csb.is-menu .csb-tazza-esci {
  display: inline-flex;
}

@keyframes csb-nodo-in {
  from { opacity: 0; transform: translate3d(28%, 16%, 0) rotateY(-18deg) scale(0.86); }
  to { opacity: 1; transform: translate3d(0, 0, 0) rotateY(0) scale(1); }
}

@keyframes csb-voce-entra {
  from { opacity: 0; transform: translateY(36px) scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes csb-tazza-vapore {
  0%, 100% { stroke-dashoffset: 0; opacity: 0.55; }
  50% { stroke-dashoffset: -8; opacity: 1; }
}

@keyframes csb-nube {
  0% { transform: translate(-50%, 18%) scale(0.4); opacity: 0.15; }
  28% { opacity: 0.7; }
  100% { transform: translate(-50%, -118%) scale(1.85); opacity: 0; }
}

@keyframes csb-vetro {
  0% { opacity: 0; }
  35% { opacity: 0.45; }
  100% { opacity: 0; }
}

@keyframes csb-lastra {
  0% { opacity: 0.2; transform: translateY(18%) scale(0.7); }
  40% { opacity: 0.7; }
  100% { opacity: 0; transform: translateY(-46%) scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .csb-dpi.is-on,
  .csb-tazza__vapore,
  .csb-cassetto,
  .csb-storia__lista,
  .csb-storia__voce.is-now.is-entra {
    animation: none;
    transition: none;
  }
}

@media (max-width: 860px) {
  .csb-corso {
    padding: 4rem 4% 4.5rem;
  }
  .csb-percorso {
    left: auto;
    right: auto;
    top: auto;
    height: auto;
    width: 100%;
  }
  .csb-dpi__pittogramma,
  .csb-dpi.is-vivo .csb-dpi__pittogramma {
    width: min(168px, 52cqw);
    height: min(168px, 52cqw);
  }
}

.csb-tazza-esci:disabled,
.csb-tazza-esci.is-blocco {
  opacity: 0.55;
  cursor: not-allowed;
  background: #1f2e4d;
}

.csb .hub-btn {
  appearance: none;
  border: 1px solid #D4CDC3;
  border-radius: 10px;
  width: 57px;
  min-width: 57px;
  max-width: 57px;
  height: 57px;
  min-height: 57px;
  max-height: 57px;
  padding: 3px 2px 2px;
  font: 600 9px/1.05 "Segoe UI", sans-serif;
  cursor: pointer;
  flex: 0 0 57px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.csb .hub-btn .ico {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.csb .hub-btn.csb-norma-tab {
  display: none;
  box-sizing: border-box;
  width: 36px;
  min-width: 36px;
  max-width: 36px;
  height: 152px;
  min-height: 152px;
  max-height: 152px;
  flex: 0 0 36px;
  aspect-ratio: auto;
  padding: 14px 0;
  border-radius: 10px 0 0 10px;
  border: 1px solid #1A2432;
  background: #2A3C54;
  color: #FBF8F3;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font: 700 11px/1 "Segoe UI", sans-serif;
}

.csb .hub-btn.ghost.csb-norma-tab:hover {
  background: #1A2432;
  color: #FBF8F3;
}

.csb.is-corso .hub-btn.csb-norma-tab {
  display: flex;
  align-items: center;
  justify-content: center;
}

.csb.is-legge .hub-btn.csb-norma-tab,
.csb.is-corso.is-legge .hub-btn.csb-norma-tab {
  display: none;
}

.csb .hub-btn.pri {
  background: #1f2e4d;
  color: #fff;
  border-color: #152238;
}

.csb .hub-btn.pri:hover {
  background: #2a3d5c;
}

.csb .hub-btn.pri:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.csb .hub-btn.ghost {
  background: rgba(242, 244, 247, 0.88);
  color: #24344f;
}

.csb .hub-btn.ghost:hover {
  background: #e8ecf1;
}

.csb .hub-btn.ghost.csb-norma-tab,
.csb .hub-btn.ghost.csb-norma-tab:hover {
  background: #2A3C54;
  color: #FBF8F3;
  border-color: #1A2432;
}

.csb .hub-btn.ghost.csb-norma-tab:hover {
  background: #1A2432;
}

.csb .hub-btn.ghost.is-on,
.csb .hub-btn.ghost[aria-pressed="true"] {
  background: #1f2e4d;
  color: #fff;
}

.csb-menu .hub-btn.ghost.csb-menu__voce {
  background: rgba(255, 255, 255, 0.12);
  color: #f4fbff;
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 0;
  max-height: none;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.55rem 0.7rem;
  font: 600 0.78rem/1.25 "Segoe UI", sans-serif;
  border: 0;
}

.csb-menu .hub-btn.ghost.csb-menu__voce:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.csb-menu .hub-btn.ghost.csb-menu__voce.is-on {
  background: #1f2e4d;
  color: #fff;
}

.csb-settori {
  display: none;
}

.csb-test {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 12;
  display: none;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.csb.is-test.is-corso .csb-test,
.csb.is-test.is-chiusura .csb-test {
  display: inline-flex;
}

.csb-test[hidden] {
  display: none !important;
}

.csb-test__lab {
  font: 700 10px/1 "Segoe UI", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(62, 231, 255, 0.82);
}

.csb-test__grafico {
  min-width: 2.45rem;
  padding: 0 0.55rem;
}

.csb-test__select {
  appearance: none;
  min-height: var(--master-fascia-btn-h, 2.45rem);
  padding: 0 1.8rem 0 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(12, 18, 32, 0.62) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23c9d4e4' stroke-width='1.6' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 0.65rem center;
  color: #f4fbff;
  font: 700 0.72rem/1 "Segoe UI", sans-serif;
  cursor: pointer;
}

.csb-test__select:focus {
  outline: 1px solid rgba(62, 231, 255, 0.55);
}

.csb-riprendi,
.csb-chiusura {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 16;
  width: min(420px, 86vw);
  padding: 28px 26px 24px;
  border-radius: 12px;
  border: 1px solid rgba(62, 231, 255, 0.32);
  background: rgba(8, 16, 28, 0.58);
  box-shadow:
    0 0 0 1px rgba(62, 231, 255, 0.12) inset,
    0 24px 64px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(22px) saturate(1.28);
  -webkit-backdrop-filter: blur(22px) saturate(1.28);
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.csb-riprendi[hidden],
.csb-chiusura[hidden] {
  display: none !important;
}

.csb-hud-kicker {
  margin: 0 0 10px;
  font: 700 11px/1 "Segoe UI", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(62, 231, 255, 0.9);
}

.csb-riprendi h2,
.csb-chiusura h2 {
  margin: 0 0 10px;
  font: 700 28px/1.15 "Segoe UI", sans-serif;
  color: #f4fbff;
}

.csb-riprendi p,
.csb-chiusura p {
  margin: 0;
  font: 600 14px/1.45 "Segoe UI", sans-serif;
  color: rgba(244, 251, 255, 0.82);
}

.csb-chiusura__hint {
  margin-top: 14px;
  font: 700 11px/1 "Segoe UI", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 122, 58, 0.92);
}

.csb.is-riprende .csb-corso,
.csb.is-chiusura .csb-corso,
.csb.is-chiusura .csb-norma-tab,
.csb.is-chiusura .csb-cassetto {
  opacity: 0.18;
  pointer-events: none;
}

.csb.is-legge .csb-percorso {
  opacity: 0.55;
}

.csb-dpi.is-vivo .csb-dpi__pittogramma > svg {
  filter: drop-shadow(0 0 12px rgba(62, 231, 255, 0.55)) drop-shadow(0 0 8px rgba(255, 255, 255, 0.28));
}

.csb.is-chiusura .csb-bg {
  filter: saturate(0.78) brightness(0.72);
}

.csb.is-chiusura .csb-tazza-esci {
  box-shadow: 0 0 0 1px rgba(62, 231, 255, 0.45), 0 0 24px rgba(62, 231, 255, 0.22);
}

.csb-norma-tab {
  position: absolute;
  top: 50%;
  right: 0;
  z-index: 13;
  display: none;
  transform: translateY(-50%);
  pointer-events: auto;
}

.csb.is-corso .csb-norma-tab {
  display: flex;
  align-items: center;
  justify-content: center;
}

.csb.is-legge .csb-norma-tab,
.csb.is-corso.is-legge .csb-norma-tab {
  display: none;
}

.csb-cassetto {
  position: absolute;
  top: 72px;
  right: 0;
  bottom: 72px;
  z-index: 12;
  width: min(340px, 86vw);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  padding: 18px 18px 16px;
  border-radius: 12px 0 0 12px;
  border: 1px solid #E5E0D7;
  background: #FBF8F3;
  box-shadow: -18px 0 36px rgba(26, 36, 50, 0.14);
  transform: translateX(110%);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.csb-cassetto.is-on {
  transform: translateX(0);
  pointer-events: auto;
}

.csb-cassetto__capo {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  min-width: 0;
  padding: 2px 4px 0;
  background: transparent;
  border-radius: 8px;
}

.csb-cassetto__logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 58%;
  max-height: 36px;
  margin: 0 auto;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: center;
}

.csb-cassetto__tit {
  margin: 0;
  min-width: 0;
  text-align: center;
  font: 700 10px/1.1 "Segoe UI", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #E56B10;
}

.csb-cassetto__testo {
  margin: 0;
  min-height: 0;
  overflow: auto;
  white-space: pre-wrap;
  font: 600 12px/1.45 "Segoe UI", sans-serif;
  color: #1A2432;
}

.csb-cassetto #csb-cassetto-chiudi {
  justify-self: start;
  width: 32px;
  min-width: 32px;
  max-width: 32px;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  flex: 0 0 32px;
  padding: 1px;
  font: 600 7px/1 "Segoe UI", sans-serif;
  border-radius: 8px;
}

.csb-cassetto #csb-cassetto-chiudi .ico {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.csb-cassetto #csb-cassetto-chiudi .segno {
  width: 10px;
  height: 2px;
  margin-top: 1px;
}

.csb-certifica {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 14;
  display: inline-flex;
  align-items: center;
  transform: translateX(-50%);
  pointer-events: auto;
}

.csb-certifica[hidden] {
  display: none !important;
}

.csb-fab {
  display: none;
}

.csb-policy {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid #d7dce5;
  background: #f7f8fa;
}

.csb-policy__tit {
  margin: 0.7rem 0 0.45rem;
  font: 700 0.78rem/1.3 "Segoe UI", sans-serif;
  color: #1f2e4d;
}

.csb-policy__tit:first-child {
  margin-top: 0;
}

.csb-policy__riga {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.4rem 0;
  font: 600 0.78rem/1.3 "Segoe UI", sans-serif;
  color: #24344f;
}

.csb-policy__riga input[type="number"] {
  width: 4.2rem;
  min-height: var(--master-fascia-btn-h, 2.45rem);
  border: 1px solid #d7dce5;
  border-radius: 8px;
  padding: 0 0.45rem;
  font: 700 0.78rem/1 "Segoe UI", sans-serif;
  color: #1f2e4d;
}

.csb-policy__report {
  margin: 0;
  padding-left: 1.1rem;
  color: #5c6674;
  font: 600 0.72rem/1.45 "Segoe UI", sans-serif;
}

.csb.is-vista-a .csb-dpi__nome b {
  color: #FBF8F3;
}

.csb.is-vista-a .csb-dpi__testo {
  border-color: rgba(229, 107, 16, 0.45);
  background: rgba(26, 36, 50, 0.55);
}

.csb.is-vista-a .csb-dpi__pittogramma > svg {
  filter: drop-shadow(0 0 10px rgba(251, 248, 243, 0.35));
}
