/*INTRO*/
#intro .card-grid {
  background-image: url("/image/context.svg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

#intro .container_mx {
  max-width: 80%;
  margin: 0 auto;
}

#intro .left {
  width: 50%;
  margin-left: 50px;
  margin-right: 50px;
}

#intro .right {
  width: 50%;
  margin-left: 50px;
  margin-right: 50px;
}

#intro .card {
  background: #fff;
  padding: 5px;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
}

/* ===== Card-grid: layout a scaletta (sezione #context) ===== */
#intro .card-grid {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, auto);
}

#intro .card-grid > :nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

#intro .card-grid > :nth-child(2) {
  grid-column: 2;
  grid-row: 2;
}

#intro .card-grid > :nth-child(3) {
  grid-column: 1;
  grid-row: 3;
}

#intro .ccy-card__title {
  font-size: 20px;
}

/*SEZIONE CARD*/
#sezioneCard {
  background-image: url("/image/bg_section_dark_2.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding-bottom: 300px;
}

#sezioneCard .title_sezioneCard {
  margin-top: 100px;
}

:root {
  --bg: #0b0f1a;
  --surface: #111827;
  --border: rgba(255, 255, 255, 0.07);
  --accent: #00e5c8;
  --accent2: #4f8fff;
  --text: #e8eaf0;
  --muted: #7a8299;
  --tab-h: 52px;
  --sidebar-w: 280px;
}

/* ── WRAPPER ── */
#sezioneCard {
  width: 100%;
}

.sc-header {
  text-align: center;
  padding-top: 20px;
  margin-bottom: 48px;
}
/* .sc-header h2 {
  font-size: var(--font_size_title);
  font-weight: var(--font_weight_title);
  line-height: var(--line_height_title);
  margin-bottom: var(--margin_bottom_title);
  color: var(--ccy-hero-bg);
  position: relative;
  z-index: 1;
} */

/* Styling titolo sezione horizontal */
.titolo_context_dark {
  font-size: clamp(2.1rem, 5vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.titolo_context_dark::first-letter {
  font-size: clamp(3rem, 4vw, 4rem);
  color: #db1952;
}
.sc-header p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 300;
}

/* ── TABS ── */
.sc-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.sc-tab {
  font-family: "Syne", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 24px;
  height: var(--tab-h);
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--muted);
  position: relative;
  transition: color 0.25s;
  white-space: nowrap;
}
.sc-tab::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sc-tab:hover {
  color: var(--text);
}
.sc-tab.active {
  color: var(--accent);
}
.sc-tab.active::after {
  transform: scaleX(1);
}

/* ── PANEL WRAPPER ── */
.sc-panels {
  background: transparent;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
  min-height: 500px;
  padding: 0 30px;
}

.sc-panel {
  display: none;
}
.sc-panel.active {
  display: flex;
  padding: 0px 50px;
}

/* ── SIDEBAR ── */
.sc-sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  border-right: 1px solid var(--accent2);
  padding: 20px 0;
  margin: 20px 0;
  overflow-y: auto;
}
.sc-sidebar-item {
  display: flex;
  align-items: center;
  margin: 20px 0;
  gap: 12px;
  padding: 14px 24px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  border-left: 3px solid transparent;
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s;
}
.sc-sidebar-item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.sc-sidebar-item.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: rgba(0, 229, 200, 0.05);
}
.sc-sidebar-item .item-num {
  font-family: "Syne", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--border);
  min-width: 20px;
  transition: color 0.2s;
}
.sc-sidebar-item.active .item-num,
.sc-sidebar-item:hover .item-num {
  color: inherit;
}
.sc-sidebar-item .item-label {
  flex: 1;
}
.sc-sidebar-item .sc-item-icon {
  font-size: 1rem;
  flex-shrink: 0;
  opacity: 0.35;
  transition: opacity 0.2s, color 0.2s;
}
.sc-sidebar-item.active .sc-item-icon,
.sc-sidebar-item:hover .sc-item-icon {
  opacity: 1;
  color: var(--accent);
}

/* ── DETAIL AREA ── */
.sc-detail {
  align-items: center;
  width: 100%;
  padding: 20px 40px;
  position: relative;
}

.sc-card-view {
  display: none;
}
.sc-card-view.active {
  display: block;
  height: 100%;
  animation: fadeSlide 0.3s ease both;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateX(14px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.sc-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "Syne", sans-serif;
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(0, 229, 200, 0.14) 0%, rgba(79, 143, 255, 0.07) 100%);
  border: 1px solid rgba(0, 229, 200, 0.35);
  border-radius: 20px;
  padding: 5px 14px;
  margin-bottom: 30px;
  box-shadow:
    0 0 14px rgba(0, 229, 200, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.sc-card-tag::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(0, 229, 200, 0.8);
  flex-shrink: 0;
}
.sc-card-title {
  font-family: "Syne", sans-serif;
  /* font-size: 1.5rem; */
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  color: #fff;
}
.sc-card-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 24px;
  max-width: 560px;
  font-size: 18px;
}
.sc-card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sc-card-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.5;
}
.sc-card-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
  flex-shrink: 0;
}

/* empty state */
.sc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
  color: var(--border);
  font-size: 0.85rem;
}
.sc-empty svg {
  opacity: 0.3;
}

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  .sc-panel.active {
    flex-direction: column;
  }
  .sc-sidebar {
    width: 100%;
    min-width: 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .sc-detail {
    padding: 24px 20px;
  }
}
