/* --- GLOBAL --- */
.chz-sat-wrapper {
  box-sizing: border-box;
  font-family: inherit;
}
.chz-sat-wrapper * {
  box-sizing: border-box;
}

/* --- HERO SLIDER --- */
.chz-hero-fullwidth-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.chz-hero-slider {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 700px;
  background-color: #000;
  color: #fff;
}

.chz-hero-slider .carousel-inner,
.chz-hero-slider .carousel-item {
  height: 100%;
}

/* BACKGROUND CON BLUR FORZATO */
.chz-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 1;
}
.chz-hero-bg.blurred {
  -webkit-filter: blur(20px) brightness(0.6);
  filter: blur(20px) brightness(0.6);
  transform: scale(1.1); /* Zoom necessario per i bordi */
}

/* OVERLAY */
.chz-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.2) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* --- TEXT & CONTENT --- */
.chz-hero-title a {
  font-size: 3.5rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.9);
  line-height: 1.1;
  letter-spacing: 1px;
}
.chz-hero-title a:hover {
  color: #ffc107;
}

/* Countdown */
.chz-hero-countdown {
  display: flex;
  gap: 15px;
  margin: 25px 0;
}
.chz-countdown-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  min-width: 75px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
.chz-cd-val {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffc107;
  line-height: 1;
}
.chz-cd-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #ccc;
  margin-top: 4px;
  display: block;
}

/* --- AVAILABILITY BOX STILE MADRE --- */
.chz-availability-wrapper {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.chz-availability-box {
  background-color: rgba(33, 37, 41, 0.9); /* Quasi nero */
  border: 1px solid rgba(108, 117, 125, 0.5);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(5px);
  min-width: 320px;
}

.chz-avail-title {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
}

.chz-avail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.chz-avail-row:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.chz-avail-text {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.chz-cat-name {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}
.chz-cat-max {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  font-weight: 400;
}

/* --- TRAFFIC LIGHT (Puntini Orizzontali) --- */
.chz-traffic-light-box {
  background-color: #2c3e50;
  border-radius: 12px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #1a252f;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
}
.chz-traffic-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #455a64; /* Spento */
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}
.chz-traffic-dot.green.active {
  background-color: #00e676;
  box-shadow:
    0 0 6px #00e676,
    inset 0 -1px 2px rgba(0, 0, 0, 0.2);
}
.chz-traffic-dot.yellow.active {
  background-color: #ffea00;
  box-shadow:
    0 0 6px #ffea00,
    inset 0 -1px 2px rgba(0, 0, 0, 0.2);
}
.chz-traffic-dot.red.active {
  background-color: #ff1744;
  box-shadow:
    0 0 6px #ff1744,
    inset 0 -1px 2px rgba(0, 0, 0, 0.2);
}

/* Status Flashing */
.chz-status-big {
  font-size: 3rem;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 2px;
  animation: chzBlink 2s infinite;
}
.chz-status-big.cancelled {
  color: #ffc107;
  text-shadow: 0 0 15px rgba(255, 193, 7, 0.8);
}
.chz-status-big.sold-out {
  color: #dc3545;
  text-shadow: 0 0 15px rgba(220, 53, 69, 0.8);
}
@keyframes chzBlink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

/* BUTTON */
.chz-hero-btn {
  background-color: #ffc107;
  border: none;
  color: #000 !important;
  font-weight: 800 !important;
  padding: 12px 40px;
  font-size: 1rem;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  text-decoration: none;
  display: inline-block;
}
.chz-hero-btn:hover {
  background-color: #ffca2c;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 193, 7, 0.4) !important;
  color: #000 !important;
}

/* POSTER FRAME */
.chz-media-frame {
  border: 10px solid rgba(255, 255, 255, 0.1);
  padding: 0;
  background: #000;
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  transform: rotate(3deg);
  transition: transform 0.5s ease;
  max-width: 400px;
}
.chz-media-frame:hover {
  transform: rotate(0deg) scale(1.02);
}
.chz-media-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* MOBILE */
@media (max-width: 991px) {
  .chz-media-frame {
    display: none;
  }
  .chz-hero-title a {
    font-size: 2rem;
  }
  .chz-hero-slider {
    min-height: 800px;
  }
  .chz-availability-box {
    min-width: 100%;
  }
}

/* TICKER */
.chz-ticker-section {
  padding: 40px 0;
  overflow: hidden;
}
.chz-ticker-header {
  text-align: center;
  margin-bottom: 20px;
  font-weight: 800;
  font-size: 1.5rem;
  text-transform: uppercase;
}
.chz-ticker-wrap {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}
.chz-ticker-track {
  display: inline-flex;
  gap: 30px;
  animation: chzTickerSlide 45s linear infinite;
}
.chz-ticker-track:hover {
  animation-play-state: paused;
}
.chz-ticker-item {
  flex-shrink: 0;
  transition: transform 0.3s;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}
.chz-ticker-item:hover {
  transform: scale(1.05);
  z-index: 10;
}
.chz-ticker-item img {
  display: block;
  height: 250px;
  width: auto;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #fff;
}
.chz-ticker-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 10px;
  font-size: 0.85rem;
  white-space: normal;
}
.chz-ticker-date {
  color: #ffc107;
  font-weight: bold;
  font-size: 0.7rem;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.chz-ticker-name {
  font-weight: 700;
  line-height: 1.2;
}
@keyframes chzTickerSlide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
