/* ==========================================================================
   anzio.css — Página de colección Anzio (estaciones de trabajo)
   ========================================================================== */

.page-livello .crumb {
  padding: 22px 0 0;
  font-size: .82rem;
  color: var(--ink-soft);
}

.page-livello .crumb a:hover {
  color: var(--ink);
}

.page-livello .crumb span {
  margin: 0 8px;
  opacity: .5;
}

.page-livello .ph {
  display: flex;
  align-items: flex-end;
  padding: 14px;
  color: rgba(0, 0, 0, .34);
  font-size: .74rem;
  font-style: italic;
}

.page-livello .ph.dark {
  color: rgba(255, 255, 255, .62);
}

/* --- Panes (subsecciones) --- */
.page-livello .livello-pane[hidden] {
  content-visibility: hidden;
  contain-intrinsic-size: 0 720px;
}

/* Contener wraps al marco global */
.page-livello .wrap.crumb,
.page-livello .concepto > .wrap,
.page-livello .vids > .wrap,
.page-livello .acab > .wrap,
.page-livello .compl > .wrap,
.page-livello #livello-panes .wrap,
.page-livello .stand > .wrap,
.page-livello .faq > .wrap,
.page-livello .contact > .wrap {
  width: min(var(--frame-max), calc(100% - (var(--frame-gutter) * 2)));
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}

/* --- Hero --- */
.page-livello .hero {
  padding: clamp(8px, 1.2vw, 20px) 0 60px;
}

.page-livello .hero > .wrap {
  width: min(var(--frame-max), calc(100% - (var(--frame-gutter) * 2)));
  max-width: none;
  padding-inline: 0;
  margin-inline: auto;
}

.page-livello .hero-panel {
  position: relative;
  isolation: isolate;
  border-radius: var(--frame-radius);
  overflow: hidden;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(150deg, #3a3a36, #5a5a52 60%, #7a7a6e);
  color: #fff;
}

/* El marco (--frame-max) crece en pantallas grandes; subimos el alto en la misma
   proporción para que el fondo (object-fit: cover) no se recorte más plano de la cuenta. */
@media (min-width: 1440px) {
  .page-livello .hero-panel {
    min-height: 720px;
  }
}

@media (min-width: 1920px) {
  .page-livello .hero-panel {
    min-height: 820px;
  }
}

@media (min-width: 2560px) {
  .page-livello .hero-panel {
    min-height: 960px;
  }
}

/* Capa de fondo: imágenes por subsección */
.page-livello .hero-panel .livello-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-livello .hero-panel .livello-hero-bg {
  position: absolute;
  inset: 0;
}

.page-livello .hero-panel .livello-hero-bg .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  pointer-events: none;
}

.page-livello .hero-panel .ph {
  position: absolute;
  inset: 0;
  align-items: flex-start;
  justify-content: flex-end;
  color: rgba(255, 255, 255, .5);
}

.page-livello .hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(20, 20, 16, .8) 0%, rgba(20, 20, 16, .42) 45%, transparent 70%);
}

.page-livello .hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 54px 56px;
  max-width: 680px;
}

.page-livello .hero-inner .eyebrow {
  color: rgba(255, 255, 255, .7);
}

.page-livello .hero h1 {
  font-weight: var(--fw-display);
  font-size: var(--fs-h1);
  line-height: var(--lh-display);
  letter-spacing: var(--track-display);
  margin: 16px 0 18px;
  color: #fff;
}

.page-livello .hero h1 b {
  font-weight: var(--fw-emphasis);
}

.page-livello .hero .sub {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, .82);
  max-width: 42ch;
  margin-bottom: 28px;
}

.page-livello .hero-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.page-livello .htag {
  font-size: .8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .25);
  padding: 7px 14px;
  border-radius: 999px;
}

.page-livello .livellorow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.page-livello .livellorow a {
  font-size: .82rem;
  font-weight: 600;
  color: var(--brand-dark);
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .25);
  padding: 6px 13px;
  border-radius: 30px;
}

.page-livello .livellorow a.on,
.page-livello .livellorow a[aria-current="page"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* --- Concepto --- */
.page-livello .concepto {
  padding: 96px 0;
}

.page-livello .concepto .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.page-livello .concepto h2 {
  font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -.03em;
  margin: 14px 0 18px;
}

.page-livello .concepto p {
  color: var(--ink-mid);
  font-size: 1.08rem;
  margin-bottom: 16px;
}

.page-livello .concepto p.big {
  font-size: 1.2rem;
  color: var(--ink);
}

.page-livello .concepto-img {
  aspect-ratio: 4/5;
  border-radius: 14px;
  background: linear-gradient(150deg, #cfcfc7, #b3b3a8);
  position: relative;
  overflow: hidden;
}

.page-livello .concepto-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Videos --- */
.page-livello .vids {
  padding: 96px 0;
}

.page-livello .vidgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 14px;
}

.page-livello .vtile {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-sm);
}

.page-livello .vtile .vmedia {
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, #3a3a36, #6a6a5e);
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}

.page-livello .vtile .vmedia[style*="background-image"] {
  background-size: 220% 220%;
  animation: livello-vpan 9s ease-in-out infinite alternate;
}

.page-livello .vtile .vmedia-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes livello-vpan {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

.page-livello .vtile video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-livello .vtile .vlabel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  color: #fff;
  background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, .72));
  z-index: 2;
}

.page-livello .vtile .loop {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  font-size: .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: var(--fw-emphasis);
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  padding: 4px 9px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-livello .vtile .loop b {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e0392b;
  display: inline-block;
  animation: livello-blink 1.6s infinite;
}

@keyframes livello-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

.page-livello .vtile h4 {
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.25;
  min-height: 2.5em;
  margin-bottom: 4px;
  color: #fff;
}

.page-livello .vtile p {
  font-size: .9rem;
  color: rgba(255, 255, 255, .85);
  line-height: 1.4;
}

/* --- Configuraciones --- */
.page-livello .configs {
  padding: clamp(20px, 2.5vw, 32px) 0 96px;
}

/* Título a la izquierda; texto + botón a la derecha, arrancando a la altura
   del título — agrupados para que el botón quede siempre pegado al texto,
   sin importar cuántas líneas ocupe el título. */
.page-livello .configs-head {
  display: grid;
  grid-template-columns: clamp(320px, 34vw, 460px) 1fr;
  column-gap: 32px;
  align-items: start;
}

.page-livello .configs-head .sec-head {
  display: contents;
}

.page-livello .configs-head .sec-head .eyebrow {
  grid-column: 1;
  grid-row: 1;
}

.page-livello .configs-head .sec-head h2 {
  grid-column: 1;
  grid-row: 2;
}

.page-livello .configs-side {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.page-livello .configs-side p {
  color: var(--ink-soft);
  font-size: var(--fs-lead);
  line-height: var(--lh-body);
  text-align: right;
  margin: 0;
  max-width: 100%;
}

/* Toggle compacto, pegado al texto, alineado a la derecha */
.page-livello .cfg-toggle {
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.page-livello .cfg-toggle .chip {
  padding: 7px 16px;
  font-size: .8rem;
}

.page-livello .cfg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 50px;
}

.page-livello .cfg {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: transform .35s, box-shadow .35s;
}

.page-livello .cfg:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
}

.page-livello .cfg-img {
  aspect-ratio: 4/3;
  background: linear-gradient(150deg, #d8d8d0, #c2c2b6);
  position: relative;
  overflow: hidden;
}

.page-livello .cfg-img img {
  position: absolute;
  inset: 0;
  width: auto;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-livello .cfg-img .tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: #fff;
  border: 1px solid var(--line);
  font-size: .72rem;
  font-weight: var(--fw-emphasis);
  letter-spacing: .04em;
  padding: 5px 11px;
  border-radius: 999px;
}

.page-livello .cfg-body {
  padding: 20px 22px 22px;
}

.page-livello .cfg-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.page-livello .cfg-body p {
  font-size: .88rem;
  color: var(--ink-soft);
}

/* --- Toda la línea --- */
.page-livello .linea {
  padding: 96px 0;
  background: var(--surface);
}

.page-livello .linea-nav .chip:not(.active):not([aria-current="page"]) {
  color: var(--brand-dark);
}

.page-livello .linea-nav .chip.active,
.page-livello .linea-nav .chip[aria-current="page"] {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.page-livello .linea-nav .chip.active:hover,
.page-livello .linea-nav .chip[aria-current="page"]:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}

/* --- Complementos --- */
.page-livello .compl {
  padding: 100px 0;
  background: var(--brand);
  color: #fff;
}

.page-livello .compl .eyebrow {
  color: rgba(255, 255, 255, .6);
}

.page-livello .compl .sec-head h2 {
  color: #fff;
}

.page-livello .compl .sec-head p {
  color: rgba(255, 255, 255, .78);
}

.page-livello .compl-veg {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
  margin: 50px 0 26px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  overflow: hidden;
}

.page-livello .compl-veg .vtxt {
  padding: 42px 40px;
}

.page-livello .compl-veg .vtag {
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, .7);
}

.page-livello .compl-veg h3 {
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -.02em;
  margin: 8px 0 12px;
  line-height: 1.1;
}

.page-livello .compl-veg p {
  color: rgba(255, 255, 255, .82);
  font-size: 1.02rem;
  margin-bottom: 14px;
}

.page-livello .compl-veg .vimg {
  min-height: 320px;
  background: linear-gradient(150deg, #5a6147, #3f4630);
  position: relative;
  overflow: hidden;
}

.page-livello .compl-veg .vimg img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

.page-livello .compl-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.page-livello .cmp {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .3s;
}

.page-livello .cmp:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, .09);
}

.page-livello .cmp-img {
  aspect-ratio: 4/3;
  background: linear-gradient(150deg, #6a6a5e, #4c4c42);
  position: relative;
  overflow: hidden;
}

.page-livello .cmp-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-livello .cmp-body {
  padding: 16px 18px 18px;
}

.page-livello .cmp-body h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 3px;
}

.page-livello .cmp-body p {
  font-size: .82rem;
  color: rgba(255, 255, 255, .7);
}

/* --- Zoom / lightbox --- */
.page-livello .zoom {
  cursor: zoom-in;
  position: relative;
}

.page-livello .zoom::after {
  content: "+";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  opacity: 0;
  transition: .25s;
  z-index: 4;
}

.page-livello .zoom:hover::after {
  opacity: 1;
}

@media (hover: none) {
  .page-livello .zoom::after {
    opacity: 1;
    width: 44px;
    height: 44px;
  }
}

.livello-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, .92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 5vh 5vw;
  cursor: zoom-out;
}

.livello-lightbox.open {
  display: flex;
}

.livello-lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 10px;
  display: block;
}

.livello-lightbox .lb-ph {
  width: min(88vw, 1100px);
  height: 80vh;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .65);
  font-style: italic;
  font-size: 1rem;
  background-size: cover;
  background-position: center;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .5);
}

.livello-lightbox .lb-close {
  position: absolute;
  top: 22px;
  right: 30px;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  opacity: .85;
}

.livello-lightbox .lb-close:hover {
  opacity: 1;
}

/* --- Responsive --- */
@media (max-width: 1100px) {
  .page-livello .concepto .wrap {
    gap: 40px;
  }
}

@media (max-width: 980px) {
  .page-livello .compl-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .page-livello .crumb {
    padding-top: 16px;
    font-size: .78rem;
  }

  .page-livello .hero {
    padding: 20px 0 48px;
  }

  .page-livello .hero-panel {
    min-height: clamp(380px, 62vw, 520px);
    border-radius: 18px;
  }

  .page-livello .hero-panel .livello-hero-bg .hero-bg {
    object-position: 20% center;
  }

  .page-livello .hero-inner {
    padding: 32px 28px;
    max-width: none;
  }

  .page-livello .hero h1 {
    font-size: var(--fs-h1);
    margin: 12px 0 14px;
  }

  .page-livello .hero .sub {
    font-size: 1.05rem;
    max-width: none;
    margin-bottom: 22px;
  }

  .page-livello .livellorow {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding-bottom: 6px;
    margin-right: -4px;
  }

  .page-livello .livellorow a {
    flex: 0 0 auto;
    scroll-snap-align: start;
    font-size: .78rem;
    padding: 10px 14px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .page-livello .concepto,
  .page-livello .vids,
  .page-livello .configs,
  .page-livello .linea,
  .page-livello .stand {
    padding: 72px 0;
  }

  .page-livello .configs {
    padding-top: clamp(20px, 2.5vw, 32px);
  }

  .page-livello .configs-head {
    grid-template-columns: 1fr;
  }

  .page-livello .configs-side {
    grid-column: 1;
    grid-row: 3;
    align-items: flex-start;
    margin-top: 10px;
    width: 100%;
    min-width: 0;
  }

  .page-livello .configs-side p {
    text-align: left;
  }

  .page-livello .cfg-toggle {
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    overflow-x: visible;
    scroll-snap-type: none;
    padding-bottom: 0;
    margin-right: 0;
  }

  .page-livello .cfg-toggle .chip {
    flex: 0 1 auto;
    scroll-snap-align: none;
  }

  .page-livello .compl {
    padding: 72px 0;
  }

  .page-livello .concepto .wrap {
    gap: 32px;
  }

  .page-livello .concepto h2 {
    font-size: clamp(1.65rem, 4.5vw, 2.2rem);
  }

  .page-livello .concepto p {
    font-size: 1rem;
  }

  .page-livello .concepto p.big {
    font-size: 1.08rem;
  }

  .page-livello .compl-veg {
    margin: 36px 0 20px;
    gap: 0;
  }

  .page-livello .compl-veg .vtxt {
    padding: 28px 24px;
  }

  .page-livello .compl-veg h3 {
    font-size: clamp(1.35rem, 4vw, 1.7rem);
  }

  .page-livello .compl-veg p {
    font-size: .98rem;
  }

  .page-livello .cfg-grid {
    margin-top: 32px;
    gap: 16px;
  }
}

@media (max-width: 860px) {
  .page-livello .concepto .wrap,
  .page-livello .compl-veg {
    grid-template-columns: 1fr;
  }

  .page-livello .concepto-img {
    order: -1;
    aspect-ratio: 16 / 10;
  }

  .page-livello .cfg-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-livello .hero-inner {
    padding: 28px 24px;
  }
}

@media (max-width: 820px) {
  .page-livello .vidgrid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .page-livello .hero {
    padding: 16px 0 40px;
  }

  .page-livello .hero-panel {
    min-height: clamp(340px, 88vw, 440px);
    border-radius: 14px;
  }

  .page-livello .hero-inner {
    padding: 24px 20px;
  }

  .page-livello .hero h1 {
    font-size: var(--fs-h1);
  }

  .page-livello .hero .sub {
    font-size: .98rem;
  }

  .page-livello .htag {
    font-size: .74rem;
    padding: 6px 11px;
  }

  .page-livello .concepto,
  .page-livello .vids,
  .page-livello .configs,
  .page-livello .linea,
  .page-livello .compl,
  .page-livello .stand {
    padding: 56px 0;
  }

  .page-livello .configs {
    padding-top: clamp(16px, 4vw, 24px);
  }

  .page-livello .cfg-toggle {
    justify-content: center;
    gap: 6px;
  }

  .page-livello .cfg-toggle .chip {
    flex: 0 0 calc((100% - (var(--chip-cols, 1) - 1) * 6px) / var(--chip-cols, 1));
    min-width: 0;
    padding: 6px 2px;
    min-height: 32px;
    font-size: .52rem;
    line-height: 1.2;
    white-space: normal;
    text-align: center;
    justify-content: center;
  }

  .page-livello .concepto h2 {
    font-size: clamp(1.45rem, 6vw, 1.85rem);
  }

  .page-livello .concepto-img {
    aspect-ratio: 4 / 3;
    border-radius: 12px;
  }

  .page-livello .cfg-grid,
  .page-livello .compl-grid {
    grid-template-columns: 1fr;
  }

  .page-livello .cfg:hover {
    transform: none;
  }

  .page-livello .cfg-body {
    padding: 16px 18px 18px;
  }

  .page-livello .compl-veg .vtxt {
    padding: 22px 20px;
  }

  .page-livello .compl-veg h3 {
    font-size: 1.25rem;
  }

  .page-livello .vtile .vlabel {
    padding: 16px;
  }

  .page-livello .vtile h4 {
    font-size: 1rem;
  }

  .livello-lightbox {
    padding: 16px;
  }

  .livello-lightbox img {
    max-width: 96vw;
    max-height: 80vh;
    border-radius: 8px;
  }

  .livello-lightbox .lb-close {
    top: 14px;
    right: 14px;
    font-size: 1.8rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .livello-lightbox .lb-ph {
    width: 96vw;
    height: 70vh;
  }
}

@media (max-width: 520px) {
  .page-livello .vidgrid {
    grid-template-columns: 1fr;
  }
}

/* --- Demo sit-stand --- */
.page-livello .stand {
  padding: 96px 0;
}

.page-livello .standwrap {
  background: var(--surface);
  border-radius: 24px;
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-livello .sd-stage {
  --lift: 0;
  --sd-base-leg: 78px;
  --sd-base-top: 122px;
  --sd-base-mon: 136px;
  --sd-range: 130px;
  position: relative;
  height: 320px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f3f4ef 0%, #e7eae1 55%, #dfe3d8 100%);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .05);
}

.page-livello .sd-floor {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 42px;
  height: 1px;
  background: rgba(0, 0, 0, .1);
  box-shadow: 0 10px 18px 8px rgba(40, 42, 36, .06);
}

.page-livello .sd-leg {
  position: absolute;
  bottom: 44px;
  width: 10px;
  background: linear-gradient(90deg, #8f908a, #b7b8b2 45%, #9a9b95);
  border-radius: 2px 2px 0 0;
  height: calc(var(--sd-base-leg) + var(--lift) * var(--sd-range));
  transition: height .12s linear;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}

.page-livello .sd-leg.l { left: 34%; }
.page-livello .sd-leg.r { right: 34%; }

.page-livello .sd-foot {
  position: absolute;
  bottom: 40px;
  width: 56px;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, #8a8b85, #6f706a);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .12);
}

.page-livello .sd-foot.l { left: calc(34% - 23px); }
.page-livello .sd-foot.r { right: calc(34% - 23px); }

.page-livello .sd-top {
  position: absolute;
  left: 18%;
  right: 18%;
  height: 14px;
  border-radius: 5px 5px 3px 3px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .22), transparent 40%),
    linear-gradient(180deg, #c8885c, #a66a42 55%, #8a5230);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .2) inset,
    0 10px 20px rgba(0, 0, 0, .16);
  bottom: calc(var(--sd-base-top) + var(--lift) * var(--sd-range));
  transition: bottom .12s linear;
}

.page-livello .sd-top::after {
  content: '';
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -5px;
  height: 5px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(180deg, #6e4024, #5a331c);
  opacity: .9;
}

.page-livello .sd-mon {
  position: absolute;
  left: 45.5%;
  width: 54px;
  height: 34px;
  background: linear-gradient(180deg, #2a2d32, #14161a);
  border-radius: 4px;
  border-bottom: 5px solid #4a4c48;
  box-shadow: 0 6px 12px rgba(0, 0, 0, .18);
  bottom: calc(var(--sd-base-mon) + var(--lift) * var(--sd-range));
  transition: bottom .12s linear;
}

.page-livello .sd-mon::before {
  content: '';
  position: absolute;
  left: 4px;
  right: 4px;
  top: 4px;
  bottom: 4px;
  border-radius: 2px;
  background: linear-gradient(160deg, #3a4550, #1a2026);
}

.page-livello .sd-chair {
  position: absolute;
  left: 17%;
  bottom: 44px;
  width: 28px;
  height: 56px;
  background:
    linear-gradient(180deg, #d2d3cd, #b8b9b2);
  border-radius: 5px 5px 2px 2px;
  opacity: calc(1 - var(--lift));
  transition: opacity .2s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
}

.page-livello .sd-chair::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 12px;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, #dedfd9, #c5c6bf);
}

.page-livello .sd-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #fff;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: .8rem;
  font-weight: var(--fw-emphasis);
  color: var(--brand);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
}

.page-livello .sd-ctrl label {
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: var(--fw-emphasis);
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.page-livello .sd-nota {
  opacity: .8;
  font-size: .92rem;
}

.page-livello .sd-range {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--brand), #a7a7a1);
  outline: none;
}

.page-livello .sd-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--brand);
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .2);
}

.page-livello .sd-range::-moz-range-thumb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--brand);
  cursor: pointer;
}

/* Estos overrides van después de las reglas base de .standwrap/.sd-stage
   a propósito: si se ponen antes (junto a los demás breakpoints de la hoja),
   la regla base de más abajo los pisa y el stand nunca se apila en móvil. */
@media (max-width: 900px) {
  .page-livello .standwrap {
    padding: 32px 28px;
    gap: 28px;
  }
}

@media (max-width: 860px) {
  .page-livello .standwrap {
    grid-template-columns: 1fr;
  }

  .page-livello .sd-stage {
    order: -1;
  }
}

@media (max-width: 560px) {
  .page-livello .standwrap {
    padding: 24px 20px;
    border-radius: 18px;
    gap: 22px;
  }

  .page-livello .sd-stage {
    height: 260px;
    --sd-base-leg: 63px;
    --sd-base-top: 99px;
    --sd-base-mon: 110px;
    --sd-range: 106px;
  }
}

@media (max-width: 400px) {
  .page-livello .sd-stage {
    height: 220px;
    --sd-base-leg: 54px;
    --sd-base-top: 84px;
    --sd-base-mon: 94px;
    --sd-range: 89px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-livello .sd-leg,
  .page-livello .sd-top,
  .page-livello .sd-mon,
  .page-livello .sd-chair {
    transition: none;
  }
}
