.tab-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.tab-navigation {
    display: flex;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    margin-bottom: 2rem;
}

.tab-nav-item {
    padding: 1.5rem 0;
    margin-right: 3rem;
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #adadad;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
    background: none;
    border: none;
    font-weight: 500;
}

.tab-nav-item.active {
    color: #1e1e1e;
}

.tab-indicator {
    position: absolute;
    bottom: -1px;
    height: 2px;
    background: #1e1e1e;
    transition: left 0.6s cubic-bezier(0.19, 1, 0.22, 1), width 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

/* TAB CONTAINER */
.tab-content{
  position: relative;
  width: 100%;
  /* min-height: 500px;  ⬅︎ elimina */
  overflow: visible;     /* resta visibile */
}

/* PANNELLI */
.tab-panel{
  /* da absolute ➜ relative + display:none (default) */
  position: relative;
  display: none;
  opacity: 0;
}
.tab-panel.active{
  display: block;        /* unico pannello visibile */
  opacity: 1;
}

.tab-text {
    color: #666;
}

/* VIDEO */
.tab-video{
  inline-size: 100%;        /* occupa tutta la larghezza disponibile */
  aspect-ratio: 16 / 9;
}
.tab-video iframe{
  inline-size: 100%;
  block-size: 100%;
  border: 0;
}