/* Card centrale vuota. Colore del momento. Barra destra, dodici posti. */

html, body {
  margin: 0;
  height: 100%;
  width: 100%;
  background: var(--card-surface, #FBF8F3);
  position: relative;
  overflow: hidden;
}

.hv-vuoto {
  position: relative;
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--card-surface, #FBF8F3);
}

html[data-fn-hub="home"] .hv-vuoto,
html[data-fn-hub="anchecasa"] .hv-vuoto {
  height: 100%;
  background: #14323C url("../../identity/sicura/foto-riunione.png") center top / cover no-repeat;
}

.hv-pannello {
  position: absolute;
  top: 0;
  right: calc(40px + 20px);
  bottom: 0;
  left: 70%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-sizing: border-box;
  min-width: 0;
  padding: 22px 28px 18px;
  border-radius: 12px 0 0 0;
  border: 0;
  border-left: 1px solid #C4A35A;
  background: #F4F1EA;
  color: #14323C;
  box-shadow: -18px 0 36px rgba(14, 71, 91, 0.16);
  transform: translate3d(100vw, 0, 0);
  transition: transform 1.6s cubic-bezier(0.37, 0, 0.37, 1);
  pointer-events: none;
  will-change: transform;
}

.hv-pannello.is-on {
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.hv-pannello--sx {
  left: 0;
  right: auto;
  width: calc(58% + 100px);
  border-radius: 0 12px 0 0;
  border-left: 0;
  border-right: 1px solid #C4A35A;
  box-shadow: 18px 0 36px rgba(14, 71, 91, 0.16);
  transform: translate3d(-104%, 0, 0);
}

.hv-pannello__tit {
  margin: 0;
  min-width: 0;
  text-align: left;
  font: 700 22px/1.15 Candara, "Segoe UI", sans-serif;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #14485B;
}

.hv-pannello__meta {
  margin: 8px 0 0;
  font: 600 13px/1.3 Candara, "Segoe UI", sans-serif;
  color: #14485B;
}

.hv-pannello__corpo {
  margin: 12px 0 0;
  font: 400 14px/1.45 Candara, "Segoe UI", sans-serif;
  color: #14323C;
}

.hv-voci-cat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin-top: 18px;
}

.hv-voci-cat[hidden] {
  display: none;
}

.hv-voce {
  appearance: none;
  display: block;
  width: 100%;
  margin: 0 0 6px;
  padding: 8px 10px;
  text-align: left;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.45);
  color: #14323C;
  font: 400 12px/1.3 Candara, "Segoe UI", sans-serif;
  cursor: pointer;
}

.hv-voce:hover,
.hv-voce:focus-visible {
  background: rgba(255, 255, 255, 0.8);
}

.hv-voce.is-scelta,
.hv-voce[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 3px 0 0 #14485B;
}

.hv-footer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  z-index: 6;
  box-sizing: border-box;
  width: 60px;
  height: auto;
  min-height: 0;
  max-height: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 10px;
  background: #F4F1EA;
  border: 0;
  border-left: 1px solid #DED8CE;
  overflow: visible;
  user-select: none;
  pointer-events: none;
}

.hv-footer__riga {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 40px;
  pointer-events: none;
}

.hv-footer__posto {
  appearance: none;
  margin: 0;
  padding: 2px 1px 1px;
  box-sizing: border-box;
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  flex: 0 0 40px;
  aspect-ratio: 1 / 1;
  border: 0;
  border-radius: 8px;
  background: #14485B;
  color: #F4F1EA;
  box-shadow: none;
  pointer-events: auto;
  cursor: pointer;
  font: 600 8px/1.05 Candara, "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  overflow: visible;
}

.hv-footer__posto .ico {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: #F4F1EA;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hv-footer__posto .segno {
  display: block;
  width: 12px;
  height: 2px;
  margin: 2px auto 0;
  background: transparent;
}

.hv-footer__posto:hover {
  background: #0E475B;
  color: #F4F1EA;
}

.hv-footer__posto:hover .ico {
  stroke: #F4F1EA;
}

.hv-footer__posto[aria-pressed="true"] {
  background: #0E475B;
  color: #F4F1EA;
}

.hv-footer__posto[aria-pressed="true"] .ico {
  stroke: #F4F1EA;
}

.hv-footer__posto[aria-pressed="true"] .segno {
  background: #B08A3A;
}

@media (prefers-reduced-motion: reduce) {
  .hv-pannello,
  .hv-pannello--sx {
    transition: none;
  }
}
